[PHP, MySQL] CronicUIF [Phoenix Compatible]

Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 35
  1. #16
    Ultra Light Beam Makarov is offline
    MemberRank
    Apr 2010 Join Date
    GothamLocation
    3,622Posts

    Re: [PHP, MySQL] CronicUIF [Phoenix Compatible]

    I believe to pull this off it needs to transition like the client too. Login/Load like the client loads.. After you login you have the habbo panel on the left which is the navigator and so on..

  2. #17
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    Re: [PHP, MySQL] CronicUIF [Phoenix Compatible]

    Quote Originally Posted by joopie View Post
    You mean sulake made...
    Posted via Mobile Device
    Not the images, good sir.

  3. #18
    "(still lacks brains)" NoBrain is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    2,658Posts

    Re: [PHP, MySQL] CronicUIF [Phoenix Compatible]

    Quote Originally Posted by Livar View Post
    Any more snippets? Will this be in OOP?

    Oh and it looks like the layout Predict made which he copied off Nominal.
    It's not in OOP, I checked it over teamviewer few hours ago.

  4. #19
    Web Developer Papercup is offline
    MemberRank
    Nov 2009 Join Date
    WalesLocation
    1,607Posts

    Re: [PHP, MySQL] CronicUIF [Phoenix Compatible]

    I could code it in OOP it'd only help me learn more. Also it will have client features like Makarov described. This is just the start.
    Posted via Mobile Device

  5. #20
    "(still lacks brains)" NoBrain is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    2,658Posts

    Re: [PHP, MySQL] CronicUIF [Phoenix Compatible]

    Quote Originally Posted by Seano2o6 View Post
    I could code it in OOP it'd only help me learn more. Also it will have client features like Makarov described. This is just the start.
    Posted via Mobile Device
    It doesn't NEED to be in OOP but it's recommended. Do whatever you feel is best.

  6. #21
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,479Posts

    Re: [PHP, MySQL] CronicUIF [Phoenix Compatible]

    Not coding in OOP makes more work to do. Just saying..

  7. #22
    Learning C# - Developer wy479 is offline
    MemberRank
    Nov 2010 Join Date
    :O You PERVERT!Location
    1,132Posts

    Re: [PHP, MySQL] CronicUIF [Phoenix Compatible]

    Well it looks great so far but the login and the register look a bit empty? Maybe also add the news?

  8. #23
    Web Developer Papercup is offline
    MemberRank
    Nov 2009 Join Date
    WalesLocation
    1,607Posts

    Re: [PHP, MySQL] CronicUIF [Phoenix Compatible]

    Ok, So I've started to resume this now. Had a busy weekend. Anyhow,

    Registration is now complete.

    Expanded Config:
    PHP Code:
    // Registation Settings

    $rfigure 'hr-115-42.hd-190-1.ch-215-62.lg-285-91.sh-290-62'// Starting Look
    $rmotto 'New Here!'// Starting Motto 
    Snippet
    PHP Code:
    <?php

    if(isset($_POST['password']))
    {
      
    $username mysql_real_escape_string($_POST['username']);
      
    $password md5($_POST['password']);
      
    $email mysql_real_escape_string($_POST['email']);
      
    $ip $_SERVER['REMOTE_ADDR'];
      
       if(!
    $Core->IsValidName($username)) 
       { 
        echo 
    "You are using invalid characters. <br>"
       }
      
       elseif(
    $Core->IsNameTaken($username)) 
       { 
        echo include 
    "/errors/inuse.php"
       }
       
       elseif(
    strlen($username) < 3
       { 
       echo include 
    "/errors/small.php";
       }

       elseif(
    strlen($password) < 6
       { 
       echo include 
    "/errors/smallp.php";
       } 
       
       if(
    mysql_num_rows(mysql_query("SELECT * FROM users WHERE username = '$username'")) == 0
       {
       
    mysql_query("INSERT INTO users (username, password, mail, look, credits, ip_last, ip_reg) VALUES ('$username', '$password', '$email', '$rfigure', '3000', '$ip', '$ip')");
       
    $_SESSION['username'] = $username;
       
    Header("Location: me.php");
       }
       
    }

       
     
    ?>

  9. #24
    Live Ocottish Sverlord Joopie is online now
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: [PHP, MySQL] CronicUIF [Phoenix Compatible]

    Why are you checking twice if the username is taken???

    Also, Learn how to make a error page and not with the include shit

    php: trigger_error

    Look at that ;)

  10. #25
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    Re: [PHP, MySQL] CronicUIF [Phoenix Compatible]

    Look's really familiar to another CMS...

  11. #26
    Ultra Light Beam Makarov is offline
    MemberRank
    Apr 2010 Join Date
    GothamLocation
    3,622Posts

    Re: [PHP, MySQL] CronicUIF [Phoenix Compatible]

    The fact that you have different error PAGES for different errors over simplifies everything you're trying to do. The code could be cleaned up and if Jos doesn't beat me to it, I will.

  12. #27
    Apprentice Zeno96 is offline
    MemberRank
    Jan 2012 Join Date
    11Posts

    Re: [PHP, MySQL] CronicUIF [Phoenix Compatible]

    Use: $config['site']['sname'] = 'Cronic Hotel';
    Instead of: $sname = 'Cronic Hotel';

  13. #28
    Garry's Mod is addictive! Law is offline
    MemberRank
    Dec 2009 Join Date
    NorwayLocation
    993Posts

    Re: [PHP, MySQL] CronicUIF [Phoenix Compatible]

    Quote Originally Posted by Zeno96 View Post
    Use: $config['site']['sname'] = 'Cronic Hotel';
    Instead of: $sname = 'Cronic Hotel';
    Maybe you should tell him why? :)

  14. #29
    Web Developer Papercup is offline
    MemberRank
    Nov 2009 Join Date
    WalesLocation
    1,607Posts

    Re: [PHP, MySQL] CronicUIF [Phoenix Compatible]

    Yea, Why? LOL

  15. #30
    Proficient Member Nathandj is offline
    MemberRank
    Jan 2012 Join Date
    The NetherlandsLocation
    194Posts

    Re: [PHP, MySQL] CronicUIF [Phoenix Compatible]

    Whats the point off echo an include

    Code:
       elseif(strlen($username) < 3) 
       { 
       echo include "/errors/small.php";
       }



Page 2 of 3 FirstFirst 123 LastLast

Advertisement