• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Dpoints Giver

Newbie Spellweaver
Joined
Jan 25, 2011
Messages
11
Reaction score
0
Hi..Im new to this forums and im new to PHP...I just want to release this maybe some people might need it..Its not really good, so those people who are pro already with PHP bare with me.. xD

Script
<title>Dpoints Page</title>

<font face="Courier New">
<center>
<h6>

<?php
function Connect() {mssql_connect('\SQLEXPRESS','SA','*YOURPASSWORD*') or die('Error: Connection to DB Failed.');
}
function InitForm(){
echo "Adding Dpoints<br>
<form name='character' method='post'>
<lable>Account Name</lable><br/>
<input type='text' name='account'/><br/>
<lable>Number Of Dpoints</lable><br/>
<input type='text' name='auth'/><br/>
<input type='submit'/>
</form>
<br>Dpoints Check<br />
<form name='select' method='post'>
<lable>Account Name</lable><br/>
<input type='text' name='char2'/><br/>
<input type='submit'/>
</form>";
}
function PostListener (){
$init = Connect();
$account = @$_POST['account'];
$auth = @$_POST['auth'];
$name = @$_POST['char'];
$name2 = @$_POST['char2'];
if (!empty($_POST['account']) && !empty($_POST['auth'])){
$query = mssql_query("update [ACCOUNT_DBF].[dbo].[ACCOUNT_TBL] set cash
= '{$auth}' where account = '{$account}'");
echo "{$account} Has Now '{$auth}' Dpoints";
}
if (!empty($_POST['char2'])){
$Auth = mssql_query("select * from [ACCOUNT_DBF].[dbo].[ACCOUNT_TBL] where
account = '{$name2}'");
while ($row = mssql_fetch_object($Auth)){
echo "{$name2} Currently Have '$row->cash' Dpoints";
}
}
}
$InitForm = InitForm();
$Listener = PostListener();
?>

</h6>
</center>
</font>

Screenshot
xDejavu - Dpoints Giver - RaGEZONE Forums


You need to make a login page for Admins so that not all people can access this script in your website if you use it..

Just discover how to use it..Its so easy...
 
Scarlet Dreamz ~waves~
Joined
Jul 29, 2008
Messages
786
Reaction score
87
i just comment this, cuz its simple, and useful.
 
Trust your senses
Joined
Sep 12, 2009
Messages
661
Reaction score
173
These functions in your code:
Code:
function Connect() {mssql_connect('\SQLEXPRESS','SA','*YOURPASSWORD*') or die('Error: Connection to DB Failed.');
}
function InitForm(){

function PostListener (){
$init = Connect();

$InitForm = InitForm();
$Listener = PostListener();

I've seen the exact same thing before on another website code. I was wondering from what you got that code, please tell me, and if you made it up yourself, then I guess my mind is messing with me.

Good release though for people who didn't have a script like this yet.
 
Last edited:
Trust your senses
Joined
Sep 12, 2009
Messages
661
Reaction score
173
Use your brains before posting, ofcourse it is, where else would you have Dpoints ?
 
Newbie Spellweaver
Joined
Jan 25, 2011
Messages
11
Reaction score
0
This piece of code:
Code:
function Connect() {mssql_connect('\SQLEXPRESS','SA','*YOURPASSWORD*') or die('Error: Connection to DB Failed.');
}
function InitForm(){

function PostListener (){
$init = Connect();

$InitForm = InitForm();
$Listener = PostListener();
Looks soo extremely familiar to something I've seen before, I think on a MySQL coded website for the old Caali files. Like the UserCP caja made. :O:

Good release though for people who didn't have a script like this yet.

thats already in the script man...please check before you post...and this isnt from caali files...
 
Divine Celestial
Joined
May 2, 2009
Messages
862
Reaction score
179
It's from Andrew's GM auth scripts.

He used it as a base, and took out the GM Check, and edited the GM editing.

Not much work that he did, so it's really like 90% Andrew's Work.

-BGxApixen
 
Back
Top