[Requests] Who needs ... ?

10/09/2009 18:22 janvier123#1
who needs a script in php that they want for there site / server ?
if there is something that you may need and that is USEFULL post it here
it will be written in PHP !

let me know
10/09/2009 18:45 Zombe#2
Write me a script that will give me milk and cookies =3

Heh, just kidding. I was thinking of making a thread like this too, because I was bored, so how about this:

If anyone asks here, I will make the script too, how I make it, and we will see who makes it better :D

It will be like a competition, ok? ^^
10/09/2009 19:15 icehac#3
How about a script that shows how many users are online atm. That would be fantastic :D
10/09/2009 19:17 janvier123#4
Quote:
Originally Posted by icehac View Post
How about a script that shows how many users are online atm. That would be fantastic :D
PHP Code:
<?php

$mssql 
= array(
        
'host' => "localhost",
        
'user' => "sa",
        
'pass' => "server"
    
);
    
echo 
"<center>Player Online List<br><br>";
echo 
"<table border='1'>
    <tr>
        <td align='center'>Character Name</td>
        <td align='center'>Level</td>
        <td align='center'>Map</td>
        <td align='center'>Login</td>

    </tr>"
;

$con mssql_connect($mssql['host'],$mssql['user'],$mssql['pass']);

$result1 mssql_query("SELECT user_no FROM account.dbo.USER_PROFILE WHERE login_flag = '1100'",$con);


while(
$row1 mssql_fetch_row($result1)) {
    
    
$result2 mssql_query("SELECT character_name,wLevel,wMapIndex,login_time FROM character.dbo.user_character WHERE user_no = '".$row1[0]."' ORDER by login_time DESC",$con);
    
$row2 mssql_fetch_row($result2);

        echo 
"<tr>
            <td align='left'>"
.$row2[0]."</td>
            <td align='center'>"
.$row2[1]."</td>
            <td align='center'>"
.$row2[2]."</td>
            <td align='center'>"
.$row2[3]."</td>

        </tr>"
;

}
echo 
"</table></center>";
?>
DONE! i win, zombe :)
10/09/2009 19:21 Zombe#5
No way, I didn't even start...
And the competition is like who makes it better, not who makes it faster.
Your scripts don't look like shit, but mine are... Well, they are more stable, kind of...
For example: ur OsDs control panel with 1/2 functions working :D
10/09/2009 19:54 Bigshow107#6
janiver double posting xD
did not reported fix it b4 trane come XD
10/09/2009 20:03 janvier123#7
some one deleted his post and makes me look like a double poster
10/09/2009 20:06 Decima#8
Quote:
Originally Posted by Zombe View Post
No way, I didn't even start...
And the competition is like who makes it better, not who makes it faster.
Your scripts don't look like shit, but mine are... Well, they are more stable, kind of...
For example: ur OsDs control panel with 1/2 functions working :D
why dont u guys team up and fix the other half?
10/09/2009 20:30 lol2k1#9
well ur pros ?
make for me aloken create script on web :)

O_o Not Joking
10/09/2009 20:30 janvier123#10
good idea, dunno if he can keep up with me :D
ye we are pro's :)
aloken script ?

more info plz
10/09/2009 20:34 lol2k1#11
Quote:
Originally Posted by janvier123 View Post
good idea, dunno if he can keep up with me :D
aloken script ?

more info plz
Well .
-Good Flash Button:
~Create Aloken Character~
-Clicks On It Will Opens :
Aloken Character Name :
For Example : lol2k1
-After That Click " Create " Or " Finish "
-Aloken Character Created Have Fun Playing
-You Go In Game And You See That U Have Aloken Character With The Name You Wrote On WebSite .

I'll Leave Thanks If You Make That :)
:D:D:D:D

AnyWay It Was On PServer Of Dekaron Thailand if u remamber that
10/09/2009 20:51 caper#12
Your script is listing who is online, which might be desirable to some. But why throw count() in there and add a total player count to the top right corner of the screen?
10/09/2009 21:44 janvier123#13
Quote:
Originally Posted by lol2k1 View Post
Well .
-Good Flash Button:
~Create Aloken Character~
-Clicks On It Will Opens :
Aloken Character Name :
For Example : lol2k1
-After That Click " Create " Or " Finish "
-Aloken Character Created Have Fun Playing
-You Go In Game And You See That U Have Aloken Character With The Name You Wrote On WebSite .
i said USEFULL comments !
not retarded ones


PHP Code:
        $q "SELECT * FROM account.dbo.USER_PROFILE WHERE login_flag = '1100'";
        
$r mssql_query($q);
        
$sad mssql_num_rows($r);
        echo 
"<div align=left>Total Characters Online: $sad"
like that ?
srr i use my own code, i know there are other ways :)
10/09/2009 22:05 freeskier4lif3#14
Janvier, I could really use some php help from you.

I could use a password changing script that asks to verify username, email address, and password.

I have this script that asks for username and pw, but I keep getting an error on it.

Code:
//Connection Infos
$account_odbc = odbc_connect($db_account,$db_sa,$db_sa_pw);

//Get Infos of existing Acc
$strSql="select * from Tbl_user where user_id='$pusername'";
$user_result=odbc_do($account_odbc,$strSql);
$result_query=odbc_fetch_row($user_result);

$pwdsql="select user_pwd from user_profile where user_id='$pusername'";
$pwd_result=odbc_do($account_odbc,$pwdsql);
$pwd_result_query=odbc_fetch_row($pwd_result);

if (odbc_result($pwd_result,2)=="$oldpw")
{
    //Chicking for forbidden signs
    if(!preg_match("/^[0-9a-zA-Z]{6,12}$/i", $_POST[newpw])) $errors[]="Your new password mustn't consist of other characters than 1-9 or A-Z!";
    
    //Checkig Password-Characters
    if(preg_match("/^[0-9]{6,12}$/i",$_POST[newpw])) $errors[]="Your new password must have at least one character form A-Z in it";
    
    //Checking Password-length
    if(strlen($_POST[newpw])<6) $errors[] = "Your password must have at least 6 characters";
    if(strlen($_POST[newpw])>12) $errors[] = "Your password cannot have more than 12 characters";
    
    //Checking if Passwords match to each other
    if($_POST[newpw2]!=$_POST[newpw]) $errors[] = "Your new passwords aren't the same!";
    
    //Errors
    if(sizeof($errors)>0)
    {
       $errorStr .= "<br><font>";
       $errorStr .= "Mistakes:";
       foreach($errors as $error)
               $errorStr .= "<li>$error</li>";
       $errorStr .= "</font><br><br>";
    }
    else
    {
        $password=md5($_POST[newpw]);
        
        $repasswd_query="UPDATE user_profile SET user_pwd='$password' WHERE user_id='$pusername'";    
        $repasswd_query2="UPDATE Tbl_user SET user_pwd='$pnewpwd2' WHERE user_id='$pusername'";
        
        $dk_account_result=odbc_do($account_odbc,$repasswd_query);
        $dk_account_result=odbc_do($account_odbc,$repasswd_query2);
        odbc_close($account_odbc);
    }
    return $errorStr;
}

echo "$errorStr";

echo "<form action='index.php' method='post'><input type='submit' name='change' value='Back'></form>";
echo "<form action='index.php' method='post'><input type='submit' value='To Startpage'></form>";


?>
10/10/2009 07:21 xfactorbowler#15
I done a search and didn't see it so how about a coin.php simple nothing fancy

setup like accntname and ammount of coins to send. or if you already have one made post it up