Addition to superfun's register Page.

Results 1 to 12 of 12
  1. #1
    Account Upgraded | Title Enabled! Amandy is offline
    MemberRank
    Feb 2007 Join Date
    Crapvile, USALocation
    768Posts

    Addition to superfun's register Page.

    - Added total Accounts + Characters & Server Status.

    Total.php


    PHP Code:
    <?php
    $host
    ['naam'] = 'localhost';                // my host
    $host['gebruikersnaam'] = 'root';       // my database username
    $host['wachtwoord'] = '';   // my database password
    $host['databasenaam'] = 'maplestory';       // my database name

    $db mysql_connect($host['naam'], $host['gebruikersnaam'], $host['wachtwoord']) OR die ('Cant connect to the database');
    mysql_select_db($host['databasenaam'], $db);

    $result mysql_query("SELECT * FROM users"$db);// Account section
    $num_rows mysql_num_rows($result);

    echo 
    "$num_rows Accounts\n";

    $result mysql_query("SELECT * FROM characters"$db);// Character section
    $num_rowsc mysql_num_rows($result);
    echo 
    $num_rowsc Characters\n";

    ?>
    PHP Code:
    Status.php

    <?php
    //Page Variables
        
    $online='<td>Online</td>';
        
    $offline='<td>Offline</td>';
    //Functions
        
    function servercheck($server,$port){
            
    //Check that the port value is not empty
            
    if(empty($port)){
                
    $port=80;
            }
            
    //Check that the server value is not empty
            
    if(empty($server)){
                
    $server='localhost';
            }
            
    //Connection
            
    $fp=@fsockopen($server$port$errno$errstr1);
                
    //Check if connection is present
                
    if($fp){
                    
    //Return Alive
                    
    return 1;
                } else{
                    
    //Return Dead
                    
    return 0;
                }
            
    //Close Connection
            
    fclose($fp);
        }
    //Ports and Services to check
    $services=array(
        
    'MSServer' => array('localhost' => 8484),
    );
    ?>
    <table>
    <?php
    //Check All Services
    foreach($services as $name => $server){
    ?>
        <tr>
        <td><?php echo $name?></td>
    <?php
        
    foreach($server as $host => $port){
            if(
    servercheck($host,$port)){ echo $online; }else{ echo $offline; }
        }
    ?>
        </tr>
    <?php
    }
    ?>
    Download : Filebeam - Free Fast File Hosting

    Preview :



  2. #2
    Valued Member Pwnnned is offline
    MemberRank
    Jan 2008 Join Date
    126Posts

    Re: [Release]Addtion to superfun's register Page.

    This is a bit confusing. I'm not 100% sure where Im suppose to add stuff and where im not suppose to.. Are we suppose to guess or something..

  3. #3
    Account Upgraded | Title Enabled! Amandy is offline
    MemberRank
    Feb 2007 Join Date
    Crapvile, USALocation
    768Posts

    Re: [Release]Addtion to superfun's register Page.

    You could just download the file I included , with the register script and those fix's already in it.

  4. #4
    Account Upgraded | Title Enabled! xnBlaze is offline
    MemberRank
    Apr 2008 Join Date
    860Posts

    Re: [Release]Addition to superfun's register Page.

    can you post a tutorial on how to make a register page, or atleast a link to one?

  5. #5
    Apprentice clanner is offline
    MemberRank
    Apr 2008 Join Date
    12Posts

    Re: [Release]Addition to superfun's register Page.

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Program Files\wamp\www\Private Server\Total.php on line 11
    Accounts
    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Program Files\wamp\www\Private Server\Total.php on line 16
    Characters

    Thats the error I got when i tried to view the Total.php Page.

  6. #6
    Account Upgraded | Title Enabled! Amandy is offline
    MemberRank
    Feb 2007 Join Date
    Crapvile, USALocation
    768Posts

    Re: [Release]Addition to superfun's register Page.

    did you fill out the right Db info? I had that error at one point because of that.

  7. #7
    Apprentice clanner is offline
    MemberRank
    Apr 2008 Join Date
    12Posts

    Re: [Release]Addition to superfun's register Page.

    Nvm, fixed. I forgot i reinstalled my wampserver so it deleted my database info things.

  8. #8
    ~Somebody~ Sora1221 is offline
    MemberRank
    Apr 2008 Join Date
    New Lenox, ILLocation
    280Posts

    Re: [Release]Addition to superfun's register Page.

    whenever my members make an account, it says

    Unknown column 'GM' in 'field list'

    Help? Also the server status doesn't work.

  9. #9
    Novice SympathyMS is offline
    MemberRank
    Aug 2008 Join Date
    In a dark basementLocation
    4Posts

    Re: [Release]Addition to superfun's register Page.

    How do i get to my site..?

  10. #10
    Infraction Banned DaOdin is offline
    MemberRank
    Apr 2008 Join Date
    .Location
    1,824Posts

    Re: [Release]Addition to superfun's register Page.

    Quote Originally Posted by sympathyms View Post
    how do i get to my site..?
    04-06-2008, 06:28 am

  11. #11
    Alpha Member Gmanpopinjay is offline
    MemberRank
    Dec 2007 Join Date
    1,588Posts

    Re: [Release]Addition to superfun's register Page.

    Lmao Such A Old Post -.- And Such A Nooby Question Also

  12. #12
    for(alive>0){makeMoney()} xphire is offline
    MemberRank
    Aug 2006 Join Date
    Usa, NYLocation
    1,257Posts

    Re: [Release]Addition to superfun's register Page.

    Dude this is an ancient post, why bump it. This is the very first ver of the registration page that he made lol.



Advertisement