Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11

    Default

    PHP Code:
     <body topmargin="0" leftmargin="0" bgcolor="#FFFFFF">
    <?  
    ob_start
    ();  
    // allows you to use cookies.  
    include("config.php");  
    if (!
    $logged[username])  
    {  
    if (!
    $_POST[login])  
    {  
    echo(
    "  
    <center><form method=\"POST\">  
    <table>  
    <tr>  
    <td align=\"center\">  
    Username: <input type=\"text\" size=\"15\" maxlength=\"25\" name=\"username\">  
    </td>  
    </tr>  
    <tr>  
    <td align=\"center\">  
    Password: <input type=\"password\" size=\"15\" maxlength=\"25\" name=\"password\">  
    </td></tr><tr>  
    <td align=\"center\">  
    <input type=\"submit\" name=\"login\" value=\"Login\" size="
    20">  
    </td></tr><tr>  
    <td align=\"center\">  
    <a href=\"register.php\" target=\"middle\">Register Here</a>  
    </td> 
    </tr></table></form></center>"
    );  
     }  
    if (
    $_POST[login]) {  
    // the form has been submitted.  We continue...  
    $username=$_POST['username'];  
    $password md5($_POST[password]);  
    // the above lines set variables with the submitted information.    
    $info mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());  
    $data mysql_fetch_array($info);  
    if(
    $data[password] != $password) {  
    // the password was not the user's password!  
    echo "<meta http-equiv=\"Refresh\" content=\"2; URL=login.php\"/><center>Incorrect username or password!<br><br>Please Wait</center>";  
    }else{  
    // the password was right!  
    $profile mysql_query("SELECT * FROM users WHERE username = '$logged[username]'") or die(mysql_error()); 
    $query mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());  
    $user mysql_fetch_array($query);  
    $date =  date("j F  G : i"); 
    if(
    $user[level] == 11){ 
    mysql_query("INSERT INTO `modlogins` (`id` , `description` ) VALUES (NULL , '$user[username] :::: $date')"); 

    // gets the user's information  
    setcookie("id"$user[id],time()+(60*60*24*5), "/"""); 
    setcookie("pass"$user[password],time()+(60*60*24*5), "/"""); 
    mysql_query("INSERT INTO `logins` (`id`, `username` , `description` ) VALUES (NULL , '$user[username]' , '$date')"); 
    // the above lines set 2 cookies. 1 with the user's id and another with his/her password. 
    echo ("<meta http-equiv=\"Refresh\" content=\"0; URL=login.php\"/><center>Thank You! You will be redirected</center>");  
    // modify the above line...add in your site url instead of yoursite.com  
    }  
    }  
    }  

    else  

    $profile mysql_query("SELECT * FROM users WHERE username = '$logged[username]'") or die(mysql_error());    
    $new mysql_query("select * from pmessages where unread = 'unread' and touser = '$logged[username]'");  
    $new mysql_num_rows($new); 
    $pms mysql_query("select * from pmessages where touser = '$logged[username]'");  
    $pms mysql_num_rows($pms);  
    $rquery mysql_query("SELECT * FROM cfh"); # Queries The Call For Help Messages  
    while($m=mysql_fetch_array($rquery)) # Displays Them All In Order 
    // we now display the user controls. 
    if($logged[username] && $logged[level] == ){ 
    echo 
    "<p>Sorry, you are banned. And therefore cannot view this page!</p><p>To have the ban lifted, email [email protected] and we will look into the case.</p>"

    if(
    $logged[username] && $logged[level] >= 1

    echo (
    "<p>Welcome <span class='$logged[level]'><b>$logged[username]</b></span>!<br>
    - <a href=\"select_badge.php\" target=\"middle\">Set Display Badge</a><br /> 
    - <a href=\"messages.php\" target=\"middle\">Message Center</a> "
    );
    include(
    "new.php");
    echo (
    "<p>Welcome <span class='$logged[level]'><b>$logged[username]</b></span>!<br>
    - <a href=\"select_badge.php\" target=\"middle\">Set Display Badge</a><br /> 
    - <a href=\"messages.php\" target=\"middle\">Message Center</a> "
    );
    include(
    "new.php");
    echo (
    "<p>Welcome <span class='$logged[level]'><b>$logged[username]</b></span>!<br>
    - <a href=\"select_badge.php\" target=\"middle\">Set Display Badge</a><br /> 
    - <a href=\"messages.php\" target=\"middle\">Message Center</a> "
    );
    include(
    "new.php");
    $html =<select style="font-family: Verdana; font-size: 10px; color: #000000;">
      <
    option>Home</option>
    <
    option value="./home.html">News</option>
    <
    option value="/select_badge.php">Your Badge</option>
    <
    option value="/messages.php">Messages</option>
    <
    option value="/values_1.php">Rare values</option>
    <
    option value="/badges.php">Full list of badges</option>
    <
    option value="/rooms.php">Chat Rooms</option>
    <
    option value="/contact.php">Request Line</option>
    <
    option value="/logout.php">Logout</option>
      </
    select>
    HTML;
    echo 
    $html;
    if(
    $logged[username] && $logged[level] == 12
    echo 
    "- <a href=\"admin/index.php\" target=\"gay>\">JamieB</a><br/>"
    if(
    $logged[username] && $logged[level] == 11 || $logged[level] == 12
    echo 
    "- <a href=\"mod/index.php\" target=\"middle\">Mod Panel</a><br />";  
    if(
    $logged[username] && $logged[level] == || $logged[level] == 12
    echo 
    "- <a href=\"managers/index.php\" target=\"middle\">Managers Panel</a><br />";  
    if(
    $logged[username] && $logged[level] == 10 || $logged[level] == 12
    echo 
    "- <a href=\"support/index.php\" dumb=\"<your\">Player Support</a><br />";  
    }  

    ?> 
    <html> 
    <head> 
    <title>Home</title> 
    <style type="text/css"> 
    a { 
    font-size: 10px; 
    color: #000000; 

    a:link { 
    text-decoration: none; 
    color: #000000; 

    a:visited { 
    text-decoration: none; 
    color: #000000; 

    a:hover { 
    text-decoration: underline; 
    color: #000000; 

    a:active { 
    text-decoration: none; 
    color: #000000; 

    body, td, th, p { 
    font-family: Verdana; 
    font-size: 10px; 
    color: #000000; 

    .12 { color: red; } 
    .11 { color: navy; } 
    .10 {  } 
    .9 { color: darkorchid; } 
    .8 { color: darkorchid; } 
    .7 { color: darkorchid; } 
    .6 { color: darkorchid; } 
    .5 { color: green; } 
    .4 { color: green; } 
    .3 { color: green; } 
    .2 { color: green; } 
    .1 { color: black; } 
    input { 
        font-family: Tahoma, Arial; 
        font-size: 8pt; 
        font-weight: bold; 
        width: 100; 
        color: #000000; 
        background-color: #FFFFFF; 
        border: 1px solid #000000; 

    select { 
        background-color: #ffffff; 
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 8pt; 
        color: #000000; 
        width: 100; 
        border: 1px solid #000000; 

    textarea { 
    background-color: #ffffff; 
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 8pt; 
        color: #000000; 
        width: 100; 
        border: 1px solid #000000; 


    </style> 
    <meta http-equiv=\"Refresh\" content=\"30; URL=login.php\"/>
    </head> 
    </body> 
    </html>
    <?
    if ($logged[banned] == 'banned'){
    echo (
    "<meta http-equiv=\"Refresh\" content=\"0; URL=banned.php\"/>");
    }
    ?>

  2. #12
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default

    Iv cleaned the code a little..

    Might be easyer.


    PHP Code:
    <?  
    ob_start
    ();  
    // allows you to use cookies.  
    include("config.php");  
    if (!
    $logged[username])  
    {  
    if (!
    $_POST[login])  
    {  
    echo(
    "  
    <center><form method=\"POST\">  
    <table>  
    <tr>  
    <td align=\"center\">  
    Username: <input type=\"text\" size=\"15\" maxlength=\"25\" name=\"username\">  
    </td>  
    </tr>  
    <tr>  
    <td align=\"center\">  
    Password: <input type=\"password\" size=\"15\" maxlength=\"25\" name=\"password\">  
    </td></tr><tr>  
    <td align=\"center\">  
    <input type=\"submit\" name=\"login\" value=\"Login\">  
    </td></tr><tr>  
    <td align=\"center\">  
    <a href=\"register.php\" target=\"middle\">Register Here</a>  
    </td> 
    </tr></table></form></center>"
    );  
     }  
    if (
    $_POST[login]) {  
    // the form has been submitted.  We continue...  
    $username=$_POST['username'];  
    $password md5($_POST[password]);  
    // the above lines set variables with the submitted information.    
    $info mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());  
    $data mysql_fetch_array($info);  
    if(
    $data[password] != $password) {  
    // the password was not the user's password!  
    echo "<meta http-equiv=\"Refresh\" content=\"2; URL=login.php\"/><center>Incorrect username or password!<br><br>Please Wait</center>";  
    }else{  
    // the password was right!  
    $profile mysql_query("SELECT * FROM users WHERE username = '$logged[username]'") or die(mysql_error()); 
    $query mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());  
    $user mysql_fetch_array($query);  
    $date =  date("j F  G : i"); 
    if(
    $user[level] == 11){ 
    mysql_query("INSERT INTO `modlogins` (`id` , `description` ) VALUES (NULL , '$user[username] :::: $date')"); 

    // gets the user's information  
    setcookie("id"$user[id],time()+(60*60*24*5), "/"""); 
    setcookie("pass"$user[password],time()+(60*60*24*5), "/"""); 
    mysql_query("INSERT INTO `logins` (`id`, `username` , `description` ) VALUES (NULL , '$user[username]' , '$date')"); 
    // the above lines set 2 cookies. 1 with the user's id and another with his/her password. 
    echo ("<meta http-equiv=\"Refresh\" content=\"0; URL=login.php\"/><center>Thank You! You will be redirected</center>");  
    // modify the above line...add in your site url instead of yoursite.com  
    }  
    }  
    }  

    else  

    $profile mysql_query("SELECT * FROM users WHERE username = '$logged[username]'") or die(mysql_error());    
    $new mysql_query("select * from pmessages where unread = 'unread' and touser = '$logged[username]'");  
    $new mysql_num_rows($new); 
    $pms mysql_query("select * from pmessages where touser = '$logged[username]'");  
    $pms mysql_num_rows($pms);  
    $rquery mysql_query("SELECT * FROM cfh"); # Queries The Call For Help Messages  
    while($m=mysql_fetch_array($rquery)) # Displays Them All In Order 
    // we now display the user controls. 
    if($logged[username] && $logged[level] == ){ 
    echo 
    "<p>Sorry, you are banned. And therefore cannot view this page!</p><p>To have the ban lifted, email [email protected] and we will look into the case.</p>"

    if(
    $logged[username] && $logged[level] >= 1

    echo (
    "<p>Welcome <span class='$logged[level]'><b>$logged[username]</b></span>!<br>
    <br>
    I WANT THE DROPDOWN MENU HERE
    <br> "
    ); 
    if(
    $logged[username] && $logged[level] == 12
    echo 
    "- <a href=\"admin/index.php\" target=\"middle\">Admin Panel</a><br/>"
    if(
    $logged[username] && $logged[level] == 11 || $logged[level] == 12
    echo 
    "- <a href=\"mod/index.php\" target=\"middle\">Mod Panel</a><br />";  
    if(
    $logged[username] && $logged[level] == || $logged[level] == 12
    echo 
    "- <a href=\"managers/index.php\" target=\"middle\">Managers Panel</a><br />";  
    if(
    $logged[username] && $logged[level] == 10 || $logged[level] == 12
    echo 
    "- <a href=\"support/index.php\" target=\"middle\">Player Support</a><br />";  
    }  

    ?>
    <html> 
    <head> 
    <title>Home</title> 
    <body topmargin="0" leftmargin="0" bgcolor="#FFFFFF">
    <style type="text/css"> 
    a { 
    font-size: 10px; 
    color: #000000; 

    a:link { 
    text-decoration: none; 
    color: #000000; 

    a:visited { 
    text-decoration: none; 
    color: #000000; 

    a:hover { 
    text-decoration: underline; 
    color: #000000; 

    a:active { 
    text-decoration: none; 
    color: #000000; 

    body,td,th,p { 
    font-family: Verdana; 
    font-size: 10px; 
    color: #000000; 

    .12 { color: red; } 
    .11 { color: navy; } 
    .10 { color: ; } 
    .9 { color: darkorchid; } 
    .8 { color: darkorchid; } 
    .7 { color: darkorchid; } 
    .6 { color: darkorchid; } 
    .5 { color: green; } 
    .4 { color: green; } 
    .3 { color: green; } 
    .2 { color: green; } 
    .1 { color: black; } 
    input { 
        font-family: Tahoma, Arial; 
        font-size: 8pt; 
        font-weight: bold; 
        width: 100; 
        color: #000000; 
        background-color: #FFFFFF; 
        border: 1px solid #000000; 

    select { 
        background-color: #ffffff; 
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 8pt; 
        color: #000000; 
        width: 100; 
        border: 1px solid #000000; 

    textarea { 
    background-color: #ffffff; 
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 8pt; 
        color: #000000; 
        width: 100; 
        border: 1px solid #000000; 


    </style> 
    <meta http-equiv=\"Refresh\" content=\"30; URL=login.php\"/>
    </head> 
    <body bgcolor="transparent"> 
    </body> 
    </html>
    <?
    if ($logged[banned] == 'banned'){
    echo (
    "<meta http-equiv=\"Refresh\" content=\"0; URL=banned.php\"/>");
    }
    ?>

  3. #13
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    You didn't escape your "
    How could this hapen to meeeeeeeeeeeeeee?lol.

  4. #14

    Default

    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not be rude.
    Last edited by jesus; 21-03-2008 at 05:54 PM.

  5. #15
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default

    Grow up.

  6. #16

    Default

    Its in here too lolllll
    Quote Originally Posted by Jamieb View Post
    Iv cleaned the code a little..

    Might be easyer.


    PHP Code:
    <?  
    ob_start
    ();  
    // allows you to use cookies.  
    include("config.php");  
    if (!
    $logged[username])  
    {  
    if (!
    $_POST[login])  
    {  
    echo(
    "  
    <center><form method=\"POST\">  
    <table>  
    <tr>  
    <td align=\"center\">  
    Username: <input type=\"text\" size=\"15\" maxlength=\"25\" name=\"username\">  
    </td>  
    </tr>  
    <tr>  
    <td align=\"center\">  
    Password: <input type=\"password\" size=\"15\" maxlength=\"25\" name=\"password\">  
    </td></tr><tr>  
    <td align=\"center\">  
    <input type=\"submit\" name=\"login\" value=\"Login\">  
    </td></tr><tr>  
    <td align=\"center\">  
    <a href=\"register.php\" target=\"middle\">Register Here</a>  
    </td> 
    </tr></table></form></center>"
    );  
     }  
    if (
    $_POST[login]) {  
    // the form has been submitted.  We continue...  
    $username=$_POST['username'];  
    $password md5($_POST[password]);  
    // the above lines set variables with the submitted information.    
    $info mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());  
    $data mysql_fetch_array($info);  
    if(
    $data[password] != $password) {  
    // the password was not the user's password!  
    echo "<meta http-equiv=\"Refresh\" content=\"2; URL=login.php\"/><center>Incorrect username or password!<br><br>Please Wait</center>";  
    }else{  
    // the password was right!  
    $profile mysql_query("SELECT * FROM users WHERE username = '$logged[username]'") or die(mysql_error()); 
    $query mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());  
    $user mysql_fetch_array($query);  
    $date =  date("j F  G : i"); 
    if(
    $user[level] == 11){ 
    mysql_query("INSERT INTO `modlogins` (`id` , `description` ) VALUES (NULL , '$user[username] :::: $date')"); 

    // gets the user's information  
    setcookie("id"$user[id],time()+(60*60*24*5), "/"""); 
    setcookie("pass"$user[password],time()+(60*60*24*5), "/"""); 
    mysql_query("INSERT INTO `logins` (`id`, `username` , `description` ) VALUES (NULL , '$user[username]' , '$date')"); 
    // the above lines set 2 cookies. 1 with the user's id and another with his/her password. 
    echo ("<meta http-equiv=\"Refresh\" content=\"0; URL=login.php\"/><center>Thank You! You will be redirected</center>");  
    // modify the above line...add in your site url instead of yoursite.com  
    }  
    }  
    }  

    else  

    $profile mysql_query("SELECT * FROM users WHERE username = '$logged[username]'") or die(mysql_error());    
    $new mysql_query("select * from pmessages where unread = 'unread' and touser = '$logged[username]'");  
    $new mysql_num_rows($new); 
    $pms mysql_query("select * from pmessages where touser = '$logged[username]'");  
    $pms mysql_num_rows($pms);  
    $rquery mysql_query("SELECT * FROM cfh"); # Queries The Call For Help Messages  
    while($m=mysql_fetch_array($rquery)) # Displays Them All In Order 
    // we now display the user controls. 
    if($logged[username] && $logged[level] == ){ 
    echo 
    "<p>Sorry, you are banned. And therefore cannot view this page!</p><p>To have the ban lifted, email [email protected] and we will look into the case.</p>"

    if(
    $logged[username] && $logged[level] >= 1

    echo (
    "<p>Welcome <span class='$logged[level]'><b>$logged[username]</b></span>!<br>
    <br>
    I WANT THE DROPDOWN MENU HERE
    <br> "
    ); 
    if(
    $logged[username] && $logged[level] == 12
    echo 
    "- <a href=\"admin/index.php\" target=\"middle\">Admin Panel</a><br/>"
    if(
    $logged[username] && $logged[level] == 11 || $logged[level] == 12
    echo 
    "- <a href=\"mod/index.php\" target=\"middle\">Mod Panel</a><br />";  
    if(
    $logged[username] && $logged[level] == || $logged[level] == 12
    echo 
    "- <a href=\"managers/index.php\" target=\"middle\">Managers Panel</a><br />";  
    if(
    $logged[username] && $logged[level] == 10 || $logged[level] == 12
    echo 
    "- <a href=\"support/index.php\" target=\"middle\">Player Support</a><br />";  
    }  

    ?>
    <html> 
    <head> 
    <title>Home</title> 
    <body topmargin="0" leftmargin="0" bgcolor="#FFFFFF">
    <style type="text/css"> 
    a { 
    font-size: 10px; 
    color: #000000; 

    a:link { 
    text-decoration: none; 
    color: #000000; 

    a:visited { 
    text-decoration: none; 
    color: #000000; 

    a:hover { 
    text-decoration: underline; 
    color: #000000; 

    a:active { 
    text-decoration: none; 
    color: #000000; 

    body,td,th,p { 
    font-family: Verdana; 
    font-size: 10px; 
    color: #000000; 

    .12 { color: red; } 
    .11 { color: navy; } 
    .10 { color: ; } 
    .9 { color: darkorchid; } 
    .8 { color: darkorchid; } 
    .7 { color: darkorchid; } 
    .6 { color: darkorchid; } 
    .5 { color: green; } 
    .4 { color: green; } 
    .3 { color: green; } 
    .2 { color: green; } 
    .1 { color: black; } 
    input { 
        font-family: Tahoma, Arial; 
        font-size: 8pt; 
        font-weight: bold; 
        width: 100; 
        color: #000000; 
        background-color: #FFFFFF; 
        border: 1px solid #000000; 

    select { 
        background-color: #ffffff; 
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 8pt; 
        color: #000000; 
        width: 100; 
        border: 1px solid #000000; 

    textarea { 
    background-color: #ffffff; 
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 8pt; 
        color: #000000; 
        width: 100; 
        border: 1px solid #000000; 


    </style> 
    <meta http-equiv=\"Refresh\" content=\"30; URL=login.php\"/>
    </head> 
    <body bgcolor="transparent"> 
    </body> 
    </html>
    <?
    if ($logged[banned] == 'banned'){
    echo (
    "<meta http-equiv=\"Refresh\" content=\"0; URL=banned.php\"/>");
    }
    ?>

  7. #17
    Join Date
    May 2007
    Posts
    971
    Tokens
    1,516
    Habbo
    Jabbaboy

    Latest Awards:

    Default

    PHP Code:
    <?  
    ob_start
    ();  
    // allows you to use cookies.  
    include("config.php");  
    if (!
    $logged[username])  
    {  
    if (!
    $_POST[login])  
    {  
    echo(
    "  
    <center><form method=\"POST\">  
    <table>  
    <tr>  
    <td align=\"center\">  
    Username: <input type=\"text\" size=\"15\" maxlength=\"25\" name=\"username\">  
    </td>  
    </tr>  
    <tr>  
    <td align=\"center\">  
    Password: <input type=\"password\" size=\"15\" maxlength=\"25\" name=\"password\">  
    </td></tr><tr>  
    <td align=\"center\">  
    <input type=\"submit\" name=\"login\" value=\"Login\">  
    </td></tr><tr>  
    <td align=\"center\">  
    <a href=\"register.php\" target=\"middle\">Register Here</a>  
    </td> 
    </tr></table></form></center>"
    );  
     }  
    if (
    $_POST[login]) {  
    // the form has been submitted.  We continue...  
    $username=$_POST['username'];  
    $password md5($_POST[password]);  
    // the above lines set variables with the submitted information.    
    $info mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());  
    $data mysql_fetch_array($info);  
    if(
    $data[password] != $password) {  
    // the password was not the user's password!  
    echo "<meta http-equiv=\"Refresh\" content=\"2; URL=login.php\"/><center>Incorrect username or password!<br><br>Please Wait</center>";  
    }else{  
    // the password was right!  
    $profile mysql_query("SELECT * FROM users WHERE username = '$logged[username]'") or die(mysql_error()); 
    $query mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());  
    $user mysql_fetch_array($query);  
    $date =  date("j F  G : i"); 
    if(
    $user[level] == 11){ 
    mysql_query("INSERT INTO `modlogins` (`id` , `description` ) VALUES (NULL , '$user[username] :::: $date')"); 

    // gets the user's information  
    setcookie("id"$user[id],time()+(60*60*24*5), "/"""); 
    setcookie("pass"$user[password],time()+(60*60*24*5), "/"""); 
    mysql_query("INSERT INTO `logins` (`id`, `username` , `description` ) VALUES (NULL , '$user[username]' , '$date')"); 
    // the above lines set 2 cookies. 1 with the user's id and another with his/her password. 
    echo ("<meta http-equiv=\"Refresh\" content=\"0; URL=login.php\"/><center>Thank You! You will be redirected</center>");  
    // modify the above line...add in your site url instead of yoursite.com  
    }  
    }  
    }  

    else  

    $profile mysql_query("SELECT * FROM users WHERE username = '$logged[username]'") or die(mysql_error());    
    $new mysql_query("select * from pmessages where unread = 'unread' and touser = '$logged[username]'");  
    $new mysql_num_rows($new); 
    $pms mysql_query("select * from pmessages where touser = '$logged[username]'");  
    $pms mysql_num_rows($pms);  
    $rquery mysql_query("SELECT * FROM cfh"); # Queries The Call For Help Messages  
    while($m=mysql_fetch_array($rquery)) # Displays Them All In Order 
    // we now display the user controls. 
    if($logged[username] && $logged[level] == ){ 
    echo 
    "<p>Sorry, you are banned. And therefore cannot view this page!</p><p>To have the ban lifted, email [email protected] and we will look into the case.</p>"

    if(
    $logged[username] && $logged[level] >= 1

    ?>
    <p>Welcome <span class='$logged[level]'><b>$logged[username]</b></span>!<br>
    <br>
    I WANT THE DROPDOWN MENU HERE
    <br> 
    <?php
    if($logged[username] && $logged[level] == 12
    echo 
    "- <a href=\"admin/index.php\" target=\"middle\">Admin Panel</a><br/>"
    if(
    $logged[username] && $logged[level] == 11 || $logged[level] == 12
    echo 
    "- <a href=\"mod/index.php\" target=\"middle\">Mod Panel</a><br />";  
    if(
    $logged[username] && $logged[level] == || $logged[level] == 12
    echo 
    "- <a href=\"managers/index.php\" target=\"middle\">Managers Panel</a><br />";  
    if(
    $logged[username] && $logged[level] == 10 || $logged[level] == 12
    echo 
    "- <a href=\"support/index.php\" target=\"middle\">Player Support</a><br />";  
    }  

    ?>
    <html> 
    <head> 
    <title>Home</title> 
    <body topmargin="0" leftmargin="0" bgcolor="#FFFFFF">
    <style type="text/css"> 
    a { 
    font-size: 10px; 
    color: #000000; 

    a:link { 
    text-decoration: none; 
    color: #000000; 

    a:visited { 
    text-decoration: none; 
    color: #000000; 

    a:hover { 
    text-decoration: underline; 
    color: #000000; 

    a:active { 
    text-decoration: none; 
    color: #000000; 

    body,td,th,p { 
    font-family: Verdana; 
    font-size: 10px; 
    color: #000000; 

    .12 { color: red; } 
    .11 { color: navy; } 
    .10 { color: ; } 
    .9 { color: darkorchid; } 
    .8 { color: darkorchid; } 
    .7 { color: darkorchid; } 
    .6 { color: darkorchid; } 
    .5 { color: green; } 
    .4 { color: green; } 
    .3 { color: green; } 
    .2 { color: green; } 
    .1 { color: black; } 
    input { 
        font-family: Tahoma, Arial; 
        font-size: 8pt; 
        font-weight: bold; 
        width: 100; 
        color: #000000; 
        background-color: #FFFFFF; 
        border: 1px solid #000000; 

    select { 
        background-color: #ffffff; 
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 8pt; 
        color: #000000; 
        width: 100; 
        border: 1px solid #000000; 

    textarea { 
    background-color: #ffffff; 
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 8pt; 
        color: #000000; 
        width: 100; 
        border: 1px solid #000000; 


    </style> 
    <meta http-equiv=\"Refresh\" content=\"30; URL=login.php\"/>
    </head> 
    <body bgcolor="transparent"> 
    </body> 
    </html>
    <?
    if ($logged[banned] == 'banned'){
    echo (
    "<meta http-equiv=\"Refresh\" content=\"0; URL=banned.php\"/>");
    }
    ?>
    Add whatever you want in there and it will work.
    Email: [email protected] | Don't Have Skype or anything else.

  8. #18
    Join Date
    Apr 2006
    Location
    Leamington Spa
    Posts
    1,375
    Tokens
    72

    Latest Awards:

    Default

    PHP Code:
    <body topmargin='0' leftmargin='0' bgcolor='#FFFFFF'>
    <?  
    ob_start
    ();  
    // allows you to use cookies.  
    include("config.php");  
    if (!
    $logged[username])  
    {  
    if (!
    $_POST[login])  
    {  
    echo(
    "  
    <center><form method='POST'>  
    <table>  
    <tr>  
    <td align='center'>  
    Username: <input type='text' size='15' maxlength='25' name='username'>  
    </td>  
    </tr>  
    <tr>  
    <td align='center'>  
    Password: <input type='password' size='15' maxlength='25' name='password'>  
    </td></tr><tr>  
    <td align='center'>  
    <input type='submit' name='login' value='Login' size='20'>  
    </td></tr><tr>  
    <td align='center'>  
    <a href='register.php' target='middle'>Register Here</a>  
    </td> 
    </tr></table></form></center>"
    );  
     }  
    if (
    $_POST[login]) {  
    // the form has been submitted.  We continue...  
    $username=$_POST['username'];  
    $password md5($_POST[password]);  
    // the above lines set variables with the submitted information.    
    $info mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());  
    $data mysql_fetch_array($info);  
    if(
    $data[password] != $password) {  
    // the password was not the user's password!  
    echo '<meta http-equiv='Refresh' content='2URL=login.php'/><center>Incorrect username or password!<br><br>Please Wait</center>';  
    }else{  
    // the password was right!  
    $profile mysql_query("SELECT * FROM users WHERE username = '$logged[username]'") or die(mysql_error()); 
    $query mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());  
    $user mysql_fetch_array($query);  
    $date =  date("j F  G : i"); 
    if(
    $user[level] == 11){ 
    mysql_query("INSERT INTO `modlogins` (`id` , `description` ) VALUES (NULL , '$user[username] :::: $date")"); 

    // gets the user's information  
    setcookie("
    id', $user[id],time()+(60*60*24*5), '/', '"); 
    setcookie("
    pass', $user[password],time()+(60*60*24*5), '/', '"); 
    mysql_query("
    INSERT INTO `logins` (`id`, `username` , `description` ) VALUES (NULL '$user[username]' '$date")"); 
    // the above lines set 2 cookies. 1 with the user'
    s id and another with his/her password
    echo (
    "<meta http-equiv='Refresh' content='0; URL=login.php'/><center>Thank You! You will be redirected</center>");  
    // modify the above line...add in your site url instead of yoursite.com  
    }  
    }  
    }  

    else  

    $profile mysql_query("SELECT * FROM users WHERE username = '$logged[username]'") or die(mysql_error());    
    $new mysql_query("select * from pmessages where unread = 'unread' and touser = '$logged[username]'");  
    $new mysql_num_rows($new); 
    $pms mysql_query("select * from pmessages where touser = '$logged[username]'");  
    $pms mysql_num_rows($pms);  
    $rquery mysql_query("SELECT * FROM cfh"); # Queries The Call For Help Messages  
    while($m=mysql_fetch_array($rquery)) # Displays Them All In Order 
    // we now display the user controls. 
    if($logged[username] && $logged[level] == ){ 
    echo 
    '<p>Sorry, you are banned. And therefore cannot view this page!</p><p>To have the ban lifted, email [email protected] and we will look into the case.</p>'

    if(
    $logged[username] && $logged[level] >= 1

    echo (
    "<p>Welcome <span class='$logged[level]'><b>$logged[username]</b></span>!<br>
    - <a href='select_badge.php' target='middle'>Set Display Badge</a><br /> 
    - <a href='messages.php' target='middle'>Message Center</a> "
    );
    include(
    "new.php");
    echo (
    "<p>Welcome <span class='$logged[level]'><b>$logged[username]</b></span>!<br>
    - <a href='select_badge.php' target='middle'>Set Display Badge</a><br /> 
    - <a href='messages.php' target='middle'>Message Center</a> "
    );
    include(
    "new.php");
    echo (
    "<p>Welcome <span class='$logged[level]'><b>$logged[username]</b></span>!<br>
    - <a href='select_badge.php' target='middle'>Set Display Badge</a><br /> 
    - <a href='messages.php' target='middle'>Message Center</a> "
    );
    include(
    "new.php");
    echo(
    "<select style='font-family: Verdana; font-size: 10px; color: #000000;'>
      <option>Home</option>
    <option value='./home.html'>News</option>
    <option value='/select_badge.php'>Your Badge</option>
    <option value='/messages.php'>Messages</option>
    <option value='/values_1.php'>Rare values</option>
    <option value='/badges.php'>Full list of badges</option>
    <option value='/rooms.php'>Chat Rooms</option>
    <option value='/contact.php'>Request Line</option>
    <option value='/logout.php'>Logout</option>
      </select>
    "
    );
    if(
    $logged[username] && $logged[level] == 12
    echo 
    '- <a href='admin/index.php' target='gay>'>JamieB</a><br/>'
    if(
    $logged[username] && $logged[level] == 11 || $logged[level] == 12
    echo 
    '- <a href='mod/index.php' target='middle'>Mod Panel</a><br />';  
    if(
    $logged[username] && $logged[level] == || $logged[level] == 12
    echo 
    '- <a href='managers/index.php' target='middle'>Managers Panel</a><br />';  
    if(
    $logged[username] && $logged[level] == 10 || $logged[level] == 12
    echo 
    '- <a href='support/index.php' dumb='<your'>Player Support</a><br />';  
    }  

    ?> 
    <html> 
    <head> 
    <title>Home</title> 
    <style type='text/css'> 
    a { 
    font-size: 10px; 
    color: #000000; 

    a:link { 
    text-decoration: none; 
    color: #000000; 

    a:visited { 
    text-decoration: none; 
    color: #000000; 

    a:hover { 
    text-decoration: underline; 
    color: #000000; 

    a:active { 
    text-decoration: none; 
    color: #000000; 

    body, td, th, p { 
    font-family: Verdana; 
    font-size: 10px; 
    color: #000000; 

    .12 { color: red; } 
    .11 { color: navy; } 
    .10 {  } 
    .9 { color: darkorchid; } 
    .8 { color: darkorchid; } 
    .7 { color: darkorchid; } 
    .6 { color: darkorchid; } 
    .5 { color: green; } 
    .4 { color: green; } 
    .3 { color: green; } 
    .2 { color: green; } 
    .1 { color: black; } 
    input { 
        font-family: Tahoma, Arial; 
        font-size: 8pt; 
        font-weight: bold; 
        width: 100; 
        color: #000000; 
        background-color: #FFFFFF; 
        border: 1px solid #000000; 

    select { 
        background-color: #ffffff; 
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 8pt; 
        color: #000000; 
        width: 100; 
        border: 1px solid #000000; 

    textarea { 
    background-color: #ffffff; 
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 8pt; 
        color: #000000; 
        width: 100; 
        border: 1px solid #000000; 


    </style> 
    <meta http-equiv='Refresh' content='30; URL=login.php'/>
    </head> 
    </body> 
    </html>
    <?
    if ($logged[banned] == 'banned"){
    echo ("<meta http-equiv='
    Refresh' content='0URL=banned.php'/>);
    }
    ?>
    Found all instances of \" and " and replaced with '. Do it yourself next time?

    Also, please try harder to learn. Please.
    Last edited by lolwut; 22-03-2008 at 03:16 PM.
    i've been here for over 8 years and i don't know why

  9. #19
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by lolwut View Post
    PHP Code:
    <body topmargin='0' leftmargin='0' bgcolor='#FFFFFF'>
    <?  
    ob_start
    ();  
    // allows you to use cookies.  
    include("config.php");  
    if (!
    $logged[username])  
    {  
    if (!
    $_POST[login])  
    {  
    echo(
    "  
    <center><form method='POST'>  
    <table>  
    <tr>  
    <td align='center'>  
    Username: <input type='text' size='15' maxlength='25' name='username'>  
    </td>  
    </tr>  
    <tr>  
    <td align='center'>  
    Password: <input type='password' size='15' maxlength='25' name='password'>  
    </td></tr><tr>  
    <td align='center'>  
    <input type='submit' name='login' value='Login' size='20'>  
    </td></tr><tr>  
    <td align='center'>  
    <a href='register.php' target='middle'>Register Here</a>  
    </td> 
    </tr></table></form></center>"
    );  
     }  
    if (
    $_POST[login]) {  
    // the form has been submitted.  We continue...  
    $username=$_POST['username'];  
    $password md5($_POST[password]);  
    // the above lines set variables with the submitted information.    
    $info mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());  
    $data mysql_fetch_array($info);  
    if(
    $data[password] != $password) {  
    // the password was not the user's password!  
    echo '<meta http-equiv='Refresh' content='2URL=login.php'/><center>Incorrect username or password!<br><br>Please Wait</center>';  
    }else{  
    // the password was right!  
    $profile mysql_query("SELECT * FROM users WHERE username = '$logged[username]'") or die(mysql_error()); 
    $query mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());  
    $user mysql_fetch_array($query);  
    $date =  date("j F  G : i"); 
    if(
    $user[level] == 11){ 
    mysql_query("INSERT INTO `modlogins` (`id` , `description` ) VALUES (NULL , '$user[username] :::: $date")"); 

    // gets the user's information  
    setcookie("
    id', $user[id],time()+(60*60*24*5), '/', '"); 
    setcookie("
    pass', $user[password],time()+(60*60*24*5), '/', '"); 
    mysql_query("
    INSERT INTO `logins` (`id`, `username` , `description` ) VALUES (NULL '$user[username]' '$date")"); 
    // the above lines set 2 cookies. 1 with the user'
    s id and another with his/her password
    echo (
    "<meta http-equiv='Refresh' content='0; URL=login.php'/><center>Thank You! You will be redirected</center>");  
    // modify the above line...add in your site url instead of yoursite.com  
    }  
    }  
    }  
     
    else  

    $profile mysql_query("SELECT * FROM users WHERE username = '$logged[username]'") or die(mysql_error());    
    $new mysql_query("select * from pmessages where unread = 'unread' and touser = '$logged[username]'");  
    $new mysql_num_rows($new); 
    $pms mysql_query("select * from pmessages where touser = '$logged[username]'");  
    $pms mysql_num_rows($pms);  
    $rquery mysql_query("SELECT * FROM cfh"); # Queries The Call For Help Messages  
    while($m=mysql_fetch_array($rquery)) # Displays Them All In Order 
    // we now display the user controls. 
    if($logged[username] && $logged[level] == ){ 
    echo 
    '<p>Sorry, you are banned. And therefore cannot view this page!</p><p>To have the ban lifted, email [email protected] and we will look into the case.</p>'

    if(
    $logged[username] && $logged[level] >= 1

    echo (
    "<p>Welcome <span class='$logged[level]'><b>$logged[username]</b></span>!<br>
    - <a href='select_badge.php' target='middle'>Set Display Badge</a><br /> 
    - <a href='messages.php' target='middle'>Message Center</a> "
    );
    include(
    "new.php");
    echo (
    "<p>Welcome <span class='$logged[level]'><b>$logged[username]</b></span>!<br>
    - <a href='select_badge.php' target='middle'>Set Display Badge</a><br /> 
    - <a href='messages.php' target='middle'>Message Center</a> "
    );
    include(
    "new.php");
    echo (
    "<p>Welcome <span class='$logged[level]'><b>$logged[username]</b></span>!<br>
    - <a href='select_badge.php' target='middle'>Set Display Badge</a><br /> 
    - <a href='messages.php' target='middle'>Message Center</a> "
    );
    include(
    "new.php");
    echo(
    "<select style='font-family: Verdana; font-size: 10px; color: #000000;'>
      <option>Home</option>
    <option value='./home.html'>News</option>
    <option value='/select_badge.php'>Your Badge</option>
    <option value='/messages.php'>Messages</option>
    <option value='/values_1.php'>Rare values</option>
    <option value='/badges.php'>Full list of badges</option>
    <option value='/rooms.php'>Chat Rooms</option>
    <option value='/contact.php'>Request Line</option>
    <option value='/logout.php'>Logout</option>
      </select>
    "
    );
    if(
    $logged[username] && $logged[level] == 12
    echo 
    '- <a href='admin/index.php' target='gay>'>JamieB</a><br/>'
    if(
    $logged[username] && $logged[level] == 11 || $logged[level] == 12
    echo 
    '- <a href='mod/index.php' target='middle'>Mod Panel</a><br />';  
    if(
    $logged[username] && $logged[level] == || $logged[level] == 12
    echo 
    '- <a href='managers/index.php' target='middle'>Managers Panel</a><br />';  
    if(
    $logged[username] && $logged[level] == 10 || $logged[level] == 12
    echo 
    '- <a href='support/index.php' dumb='<your'>Player Support</a><br />';  
    }  

    ?> 
    <html> 
    <head> 
    <title>Home</title> 
    <style type='text/css'> 
    a { 
    font-size: 10px; 
    color: #000000; 

    a:link { 
    text-decoration: none; 
    color: #000000; 

    a:visited { 
    text-decoration: none; 
    color: #000000; 

    a:hover { 
    text-decoration: underline; 
    color: #000000; 

    a:active { 
    text-decoration: none; 
    color: #000000; 

    body, td, th, p { 
    font-family: Verdana; 
    font-size: 10px; 
    color: #000000; 

    .12 { color: red; } 
    .11 { color: navy; } 
    .10 {  } 
    .9 { color: darkorchid; } 
    .8 { color: darkorchid; } 
    .7 { color: darkorchid; } 
    .6 { color: darkorchid; } 
    .5 { color: green; } 
    .4 { color: green; } 
    .3 { color: green; } 
    .2 { color: green; } 
    .1 { color: black; } 
    input { 
        font-family: Tahoma, Arial; 
        font-size: 8pt; 
        font-weight: bold; 
        width: 100; 
        color: #000000; 
        background-color: #FFFFFF; 
        border: 1px solid #000000; 

    select { 
        background-color: #ffffff; 
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 8pt; 
        color: #000000; 
        width: 100; 
        border: 1px solid #000000; 

    textarea { 
    background-color: #ffffff; 
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 8pt; 
        color: #000000; 
        width: 100; 
        border: 1px solid #000000; 

     
    </style> 
    <meta http-equiv='Refresh' content='30; URL=login.php'/>
    </head> 
    </body> 
    </html>
    <?
    if ($logged[banned] == 'banned"){
    echo ("<meta http-equiv='
    Refresh' content='0URL=banned.php'/>);
    }
    ?>
    Found all instances of \" and " and replaced with '. Do it yourself next time?

    Also, please try harder to learn. Please.

    DAMN EDD, YOU BEAT ME TO IT!

  10. #20
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    Quote Originally Posted by lolwut View Post
    PHP Code:
    <body topmargin='0' leftmargin='0' bgcolor='#FFFFFF'>
    <?  
    ob_start
    ();  
    // allows you to use cookies.  
    include("config.php");  
    if (!
    $logged[username])  
    {  
    if (!
    $_POST[login])  
    {  
    echo(
    "  
    <center><form method='POST'>  
    <table>  
    <tr>  
    <td align='center'>  
    Username: <input type='text' size='15' maxlength='25' name='username'>  
    </td>  
    </tr>  
    <tr>  
    <td align='center'>  
    Password: <input type='password' size='15' maxlength='25' name='password'>  
    </td></tr><tr>  
    <td align='center'>  
    <input type='submit' name='login' value='Login' size='20'>  
    </td></tr><tr>  
    <td align='center'>  
    <a href='register.php' target='middle'>Register Here</a>  
    </td> 
    </tr></table></form></center>"
    );  
     }  
    if (
    $_POST[login]) {  
    // the form has been submitted.  We continue...  
    $username=$_POST['username'];  
    $password md5($_POST[password]);  
    // the above lines set variables with the submitted information.    
    $info mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());  
    $data mysql_fetch_array($info);  
    if(
    $data[password] != $password) {  
    // the password was not the user's password!  
    echo '<meta http-equiv='Refresh' content='2URL=login.php'/><center>Incorrect username or password!<br><br>Please Wait</center>';  
    }else{  
    // the password was right!  
    $profile mysql_query("SELECT * FROM users WHERE username = '$logged[username]'") or die(mysql_error()); 
    $query mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());  
    $user mysql_fetch_array($query);  
    $date =  date("j F  G : i"); 
    if(
    $user[level] == 11){ 
    mysql_query("INSERT INTO `modlogins` (`id` , `description` ) VALUES (NULL , '$user[username] :::: $date")"); 

    // gets the user's information  
    setcookie("
    id', $user[id],time()+(60*60*24*5), '/', '"); 
    setcookie("
    pass', $user[password],time()+(60*60*24*5), '/', '"); 
    mysql_query("
    INSERT INTO `logins` (`id`, `username` , `description` ) VALUES (NULL '$user[username]' '$date")"); 
    // the above lines set 2 cookies. 1 with the user'
    s id and another with his/her password
    echo (
    "<meta http-equiv='Refresh' content='0; URL=login.php'/><center>Thank You! You will be redirected</center>");  
    // modify the above line...add in your site url instead of yoursite.com  
    }  
    }  
    }  

    else  

    $profile mysql_query("SELECT * FROM users WHERE username = '$logged[username]'") or die(mysql_error());    
    $new mysql_query("select * from pmessages where unread = 'unread' and touser = '$logged[username]'");  
    $new mysql_num_rows($new); 
    $pms mysql_query("select * from pmessages where touser = '$logged[username]'");  
    $pms mysql_num_rows($pms);  
    $rquery mysql_query("SELECT * FROM cfh"); # Queries The Call For Help Messages  
    while($m=mysql_fetch_array($rquery)) # Displays Them All In Order 
    // we now display the user controls. 
    if($logged[username] && $logged[level] == ){ 
    echo 
    '<p>Sorry, you are banned. And therefore cannot view this page!</p><p>To have the ban lifted, email [email protected] and we will look into the case.</p>'

    if(
    $logged[username] && $logged[level] >= 1

    echo (
    "<p>Welcome <span class='$logged[level]'><b>$logged[username]</b></span>!<br>
    - <a href='select_badge.php' target='middle'>Set Display Badge</a><br /> 
    - <a href='messages.php' target='middle'>Message Center</a> "
    );
    include(
    "new.php");
    echo (
    "<p>Welcome <span class='$logged[level]'><b>$logged[username]</b></span>!<br>
    - <a href='select_badge.php' target='middle'>Set Display Badge</a><br /> 
    - <a href='messages.php' target='middle'>Message Center</a> "
    );
    include(
    "new.php");
    echo (
    "<p>Welcome <span class='$logged[level]'><b>$logged[username]</b></span>!<br>
    - <a href='select_badge.php' target='middle'>Set Display Badge</a><br /> 
    - <a href='messages.php' target='middle'>Message Center</a> "
    );
    include(
    "new.php");
    echo(
    "<select style='font-family: Verdana; font-size: 10px; color: #000000;'>
      <option>Home</option>
    <option value='./home.html'>News</option>
    <option value='/select_badge.php'>Your Badge</option>
    <option value='/messages.php'>Messages</option>
    <option value='/values_1.php'>Rare values</option>
    <option value='/badges.php'>Full list of badges</option>
    <option value='/rooms.php'>Chat Rooms</option>
    <option value='/contact.php'>Request Line</option>
    <option value='/logout.php'>Logout</option>
      </select>
    "
    );
    if(
    $logged[username] && $logged[level] == 12
    echo 
    '- <a href='admin/index.php' target='gay>'>JamieB</a><br/>'
    if(
    $logged[username] && $logged[level] == 11 || $logged[level] == 12
    echo 
    '- <a href='mod/index.php' target='middle'>Mod Panel</a><br />';  
    if(
    $logged[username] && $logged[level] == || $logged[level] == 12
    echo 
    '- <a href='managers/index.php' target='middle'>Managers Panel</a><br />';  
    if(
    $logged[username] && $logged[level] == 10 || $logged[level] == 12
    echo 
    '- <a href='support/index.php' dumb='<your'>Player Support</a><br />';  
    }  

    ?> 
    <html> 
    <head> 
    <title>Home</title> 
    <style type='text/css'> 
    a { 
    font-size: 10px; 
    color: #000000; 

    a:link { 
    text-decoration: none; 
    color: #000000; 

    a:visited { 
    text-decoration: none; 
    color: #000000; 

    a:hover { 
    text-decoration: underline; 
    color: #000000; 

    a:active { 
    text-decoration: none; 
    color: #000000; 

    body, td, th, p { 
    font-family: Verdana; 
    font-size: 10px; 
    color: #000000; 

    .12 { color: red; } 
    .11 { color: navy; } 
    .10 {  } 
    .9 { color: darkorchid; } 
    .8 { color: darkorchid; } 
    .7 { color: darkorchid; } 
    .6 { color: darkorchid; } 
    .5 { color: green; } 
    .4 { color: green; } 
    .3 { color: green; } 
    .2 { color: green; } 
    .1 { color: black; } 
    input { 
        font-family: Tahoma, Arial; 
        font-size: 8pt; 
        font-weight: bold; 
        width: 100; 
        color: #000000; 
        background-color: #FFFFFF; 
        border: 1px solid #000000; 

    select { 
        background-color: #ffffff; 
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 8pt; 
        color: #000000; 
        width: 100; 
        border: 1px solid #000000; 

    textarea { 
    background-color: #ffffff; 
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 8pt; 
        color: #000000; 
        width: 100; 
        border: 1px solid #000000; 


    </style> 
    <meta http-equiv='Refresh' content='30; URL=login.php'/>
    </head> 
    </body> 
    </html>
    <?
    if ($logged[banned] == 'banned"){
    echo ("<meta http-equiv='
    Refresh' content='0URL=banned.php'/>);
    }
    ?>
    Found all instances of \" and " and replaced with '. Do it yourself next time?

    Also, please try harder to learn. Please.
    Please try harder to clean code. Please. What you've just done is invalidated his code html wise. Well done, have yourself a big *** cookie. Then learn to code because there is still a php error with your code.

    PHP Code:
    <html>
        <head>
            <meta name="generator" content="HTML Tidy, see www.w3.org">
            <title>Home</title>
            <style type="text/css">
                a {
                    font-size: 10px;
                    color: #000000;
                }
                
                a:link {
                    text-decoration: none;
                    color: #000000;
                }
                
                a:visited {
                    text-decoration: none;
                    color: #000000;
                }
                
                a:hover {
                    text-decoration: underline;
                    color: #000000;
                }
                
                a:active {
                    text-decoration: none;
                    color: #000000;
                }
                
                body, td, th, p {
                    font-family: Verdana;
                    font-size: 10px;
                    color: #000000;
                }
                
                input {
                    font-family: Tahoma, Arial;
                    font-size: 8pt;
                    font-weight: bold;
                    width: 100px;
                    color: #000000;
                    background-color: #FFFFFF;
                    border: 1px solid #000000;
                }
                
                select {
                    background-color: #ffffff;
                    font-family: Arial, Helvetica, sans-serif;
                    font-size: 8pt;
                    color: #000000;
                    width: 100px;
                    border: 1px solid #000000;
                }
                
                textarea {
                    background-color: #ffffff;
                    font-family: Arial, Helvetica, sans-serif;
                    font-size: 8pt;
                    color: #000000;
                    width: 100px;
                    border: 1px solid #000000;
                }
            </style>
            <meta http-equiv="Refresh" content="30;URL=login.php">
        </head>
        <body>
            <?php
    //ob_start();
    // allows you to use cookies.
    // ob is output buffering not cookies ***  
    include("config.php");  
    if (!
    $logged["username"])  
    {  
        if (!
    $_POST[login])  
        {  
            echo(
    "  
            <center><form method=\"POST\">  
            <table>  
            <tr>  
            <td align=\"center\">  
            Username: <input type=\"text\" size=\"15\" maxlength=\"25\" name=\"username\">  
            </td>  
            </tr>  
            <tr>  
            <td align=\"center\">  
            Password: <input type=\"password\" size=\"15\" maxlength=\"25\" name=\"password\">  
            </td></tr><tr>  
            <td align=\"center\">  
            <input type=\"submit\" name=\"login\" value=\"Login\" size=\"20\">  
            </td></tr><tr>  
            <td align=\"center\">  
            <a href=\"register.php\" target=\"middle\">Register Here</a>  
            </td>
            </tr></table></form></center>"
    );  
         }  
        else
        {  
            
    // the form has been submitted.  We continue...  
            
    $username $_POST["username"];  
            
    $password md5($_POST["password"]);  
            
    // the above lines set variables with the submitted information.    
            
    $info mysql_query("SELECT * FROM `users` WHERE `username` = '$username'") or die(mysql_error());  
            
    $data mysql_fetch_array($info);  
            if(
    $data[password] != $password)
            {  
                
    // the password was not the user\"s password!  
                
    echo "<meta http-equiv=\"Refresh\" content=\"2; URL=login.php\"/><center>Incorrect username or password!<br><br>Please Wait</center>";  
            }
            else
            {  
                
    // the password was right!  
                
    $query mysql_query("SELECT * FROM `users` WHERE `username` = '{$logged["username"]}'") or die(mysql_error());
                
    $user mysql_fetch_array($query);  
                
    $date =  date("j F  G : i");
                if(
    $user[level] == 11)
                {
                    
    mysql_query("INSERT INTO `modlogins` (`id` , `description` ) VALUES (NULL , '$user[username] :::: $date')");
                }
                
    // gets the user\"s information  
                
    setcookie("id\", $user[id],time()+(60*60*24*5), \"/\", \"");
                
    setcookie("pass\", $user[password],time()+(60*60*24*5), \"/\", \"");
                
    mysql_query("INSERT INTO `logins` (`id`, `username` , `description` ) VALUES (NULL , '{$user["username"]}' , '$date')");
                
    // the above lines set 2 cookies. 1 with the user\"s id and another with his/her password.
                
    echo ("<meta http-equiv=\"Refresh\" content=\"0; URL=login.php\"/><center>Thank You! You will be redirected</center>");  
                
    // modify the above line...add in your site url instead of yoursite.com  
            
    }  
        }  
    }
    else  
    {
        
    $profile mysql_query("SELECT * FROM users WHERE username = \"$logged[username]\"") or die(mysql_error());    
        
    $new mysql_query("select * from pmessages where unread = \"unread\" and touser = \"$logged[username]\"");  
        
    $new mysql_num_rows($new);
        
    $pms mysql_query("select * from pmessages where touser = \"$logged[username]\"");  
        
    $pms mysql_num_rows($pms);  
        
    $rquery mysql_query("SELECT * FROM cfh"); # Queries The Call For Help Messages  
        
    while($m=mysql_fetch_array($rquery)) # Displays Them All In Order
        // we now display the user controls.
        
    if($logged[username] && $logged[level] == )
        {
            echo 
    "<p>Sorry, you are banned. And therefore cannot view this page!</p><p>To have the ban lifted, email [email protected] and we will look into the case.</p>";
        }
        if(
    $logged[username] && $logged[level] >= 1)
        {
            echo (
    "<p>Welcome <span class=\"{$logged["level"]}\"><b>$logged[username]</b></span>!<br>
            - <a href=\"select_badge.php\" target=\"middle\">Set Display Badge</a><br />
            - <a href=\"messages.php\" target=\"middle\">Message Center</a> "
    );
            include(
    "new.php");
            echo (
    "<p>Welcome <span class=\"$logged[level]\"><b>$logged[username]</b></span>!<br>
            - <a href=\"select_badge.php\" target=\"middle\">Set Display Badge</a><br />
            - <a href=\"messages.php\" target=\"middle\">Message Center</a> "
    );
            include(
    "new.php");
            echo (
    "<p>Welcome <span class=\"$logged[level]\"><b>$logged[username]</b></span>!<br>
            - <a href=\"select_badge.php\" target=\"middle\">Set Display Badge</a><br />
            - <a href=\"messages.php\" target=\"middle\">Message Center</a> "
    );
            include(
    "new.php");
            echo(
    "<select style=\"font-family: Verdana; font-size: 10px; color: #000000;\">
              <option>Home</option>
            <option value=\"./home.html\">News</option>
            <option value=\"/select_badge.php\">Your Badge</option>
            <option value=\"/messages.php\">Messages</option>
            <option value=\"/values_1.php\">Rare values</option>
            <option value=\"/badges.php\">Full list of badges</option>
            <option value=\"/rooms.php\">Chat Rooms</option>
            <option value=\"/contact.php\">Request Line</option>
            <option value=\"/logout.php\">Logout</option>
              </select>
            "
    );
            if(
    $logged[username] && $logged[level] == 12)
            {
                echo 
    "- <a href=\"admin/index.php\" target=\"gay>\">JamieB</a><br/>";
            }
            if(
    $logged[username] && $logged[level] == 11 || $logged[level] == 12)
            {
                echo 
    "- <a href=\"mod/index.php\" target=\"middle\">Mod Panel</a><br />";  
            }
            if(
    $logged[username] && $logged[level] == || $logged[level] == 12)
            {
                echo 
    "- <a href=\"managers/index.php\" target=\"middle\">Managers Panel</a><br />";  
            }
            if(
    $logged[username] && $logged[level] == 10 || $logged[level] == 12)
            {
                echo 
    "- <a href=\"support/index.php\" dumb=\"<your\">Player Support</a><br />";  
            }
        }
    }

    if (
    $logged["banned"] == "banned")
    {
            echo(
    "<meta http-equiv=\"Refresh\" content=\"3;URL=banned.php\"/>");
    }
    ?>
    </body>
    </html>
    because i am so pro.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •