FailPHP

Page 16 of 24 FirstFirst ... 689101112131415161718192021222324 LastLast
Results 226 to 240 of 359
  1. #226
    Ultra Light Beam Makarov is offline
    MemberRank
    Apr 2010 Join Date
    GothamLocation
    3,622Posts

    Re: FailPHP

    Jonty is partially right, you should look into a template system. It's the modern way to do habbo CMS' now a days.

  2. #227
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,375Posts

    Re: FailPHP

    Quote Originally Posted by Predict View Post
    It might be ugly, but at least it functions correctly, oh and at least I don't backdoor people with queries to delete all their tables.
    I was being polite. Your CMS is disgusting. Your coding is horrible. You need to wise up. You are not the best PHP developer in this section. (and neither am I, it's not what i'm getting at).

    Just because you can do a simple 3 table design doesn't mean you are god, Dan, stop acting like it.

    Good luck, nonetheless.

    Jonteh

  3. #228
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    Re: FailPHP

    Quote Originally Posted by Jonteh View Post
    I was being polite. Your CMS is disgusting. Your coding is horrible. You need to wise up. You are not the best PHP developer in this section. (and neither am I, it's not what i'm getting at).

    Just because you can do a simple 3 table design doesn't mean you are god, Dan, stop acting like it.

    Good luck, nonetheless.

    Jonteh
    Polite
    Having or showing respectful and considerate behavior.

    Calling my work ugly ain't very polite, is it?
    I never said I was the best PHP developer here? I'm still learning, hence the revisions. Why shouldn't I act like it? It's called being enthusiastic about my work.

    Thank you for your "polite" comment.

    I'll be updating the files from my localhost to talan.x10.bz/revision2 soon.

    Design - Login

    It's been updated. ^^

    Fixed session handling with (about). ^^

    Design - Register
    If you hadn't noticed, but register won't allow you to use MOD-. ^^

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

    Re: FailPHP

    Quote Originally Posted by Predict View Post
    Nice troll. You and I both know you can put any username inside

    "http://www.talan.x10.bz/revision2/index.php?reg='USERNAME'"
    Check your coding, M0D is still allowed.

  5. #230
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    Re: FailPHP

    Quote Originally Posted by Makarov View Post
    Check your coding, M0D is still allowed.
    PHP Code:
    function isValidUsername($username)
    {
        return 
    preg_match("/^[a-zA-Z0-9.:,-]+$/i",trim($username)) && !preg_match("/mod-/i"trim($username));


    I guess I'll add M0D just to make you happy.

  6. #231
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,375Posts

    Re: FailPHP

    Quote Originally Posted by Predict View Post
    PHP Code:
    function isValidUsername($username)
    {
        return 
    preg_match("/^[a-zA-Z0-9.:,-]+$/i",trim($username)) && !preg_match("/mod-/i"trim($username));


    I guess I'll add M0D just to make you happy.
    It'd be nicer to have the disallowed names or name types in an array.

  7. #232
    The next don TheAJ is offline
    DeveloperRank
    May 2007 Join Date
    Toronto, CanadaLocation
    3,946Posts

    Re: FailPHP

    Quote Originally Posted by Predict View Post
    PHP Code:
    function isValidUsername($username)
    {
        return 
    preg_match("/^[a-zA-Z0-9.:,-]+$/i",trim($username)) && !preg_match("/mod-/i"trim($username));


    I guess I'll add M0D just to make you happy.
    Why not just use one regular expression match?

    Code:
    function isValidUsername($username)
    {
    	return preg_match("/^(?!mod-)[a-zA-Z0-9.:,-]+$/i",trim($username)));
    
    }

  8. #233
    Account Upgraded | Title Enabled! HopAndJump is offline
    MemberRank
    Jul 2011 Join Date
    547Posts

    Re: FailPHP

    Let me help you with some errors - on your profile where your name is suppose to be on the navigator is says 'talan' and not your username. and u cant edit your motto.

  9. #234
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    Re: FailPHP

    Quote Originally Posted by Jonteh View Post
    It'd be nicer to have the disallowed names or name types in an array.
    Not really, Habbo doesn't disallow names apart from MOD- or the symbols (which were added).

    Quote Originally Posted by TheAJ View Post
    Why not just use one regular expression match?

    Code:
    function isValidUsername($username)
    {
    	return preg_match("/^(?!mod-)[a-zA-Z0-9.:,-]+$/i",trim($username)));
    
    }
    Thank you.

    Quote Originally Posted by HopAndJump View Post
    Let me help you with some errors - on your profile where your name is suppose to be on the navigator is says 'talan' and not your username. and u cant edit your motto.
    Fixed the first error (it was a typo, LOL) and the motto, well I ain't got round to that.

    ---



    Showing news articles, probably a better way to do this, but what the hell. I'll add the time stamp/author later, this ain't been added to talan.x10.bz/revision2/ yet.

    PHP Code:
    <?php
        define
    ('SECURITY'true);
        require_once(
    "habboweb/templates/configeration.php"); 
         
        if(!
    userLoggedIn()) { header("Location: index.php"); die; } 
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <!-- Designed and coded by Predict on forum.ragezone.com -->
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Design</title>
    <link rel="stylesheet" href="habboweb/styles/style.css" type="text/css" />
    </head>
    <body>
    <div id="header-container">
        <div id="header">
            <div id="logo">
                <a href="me.php"></a>
            </div>
            <div id="whitebox">
                0 members online
                <a href="logout.php">Logout</a>
            </div>
            <div id="enter-hotel">
                <a href="me.php">Enter Habbo Hotel</a>
            </div>
            <ul id="navigation">
                <li>
                    <a href="me.php"><?php echo $loggedIn->username?></a>
                </li>
                <li>
                    <b>Community</b>
                </li>
            </ul>
        </div>
    </div>
    <div id="content-container">
        <div id="content">
            <div id="subnavigation-container">
                <div id="subnavigation">
                    <ul>
                        <li class="selected last">
                            Articles
                        </li>
                    </ul>
                </div>
            </div>
            <div id="content-content">
                <div id="content-left" class="left">
                    <div class="content-bubble">
    <?php
    if(!isset($_GET['id']) || !is_numeric($_GET['id']))
    {
    $result NewsListArticleOPTION1();
    }
    else
    {
    $result NewsListArticleOPTION2();
    }
    $row $db->sql_fetchrow($result);
    ?>
                        <div class="content-bubble-header orange"><?php echo $row['Title']; ?></div>
                        <?php echo $row['Message']; ?>
                    </div>
                </div>
                <div id="content-right" class="right">
                    <div class="content-bubble">
                        <div class="content-bubble-header orange">Latest news</div>
                        <ul>
    <?php
    $result 
    NewsListLong();
    while(
    $row $db->sql_fetchrow($result))
    {
    ?>
                            <li class="even">
                                <a href="community.php?id=<?php echo $row['ID']; ?>"><?php echo $row['Title']; ?> &raquo;</a>

                            </li>
    <?php
    }
    ?>

                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </body>
    </html>

  10. #235
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    Re: FailPHP

    Design - Login

    Been updated ^

    Added community .php
    Reworked on habboweb/styles/style .css
    Reworked on profile .php
    Reworked on me .php

    Design - Login

    Updated some of the functions, added some new ones.
    Removed the old files revision2 and 1.
    Database is the same from Revision2.

    http://www.talan.x10.bz/getadmin.php - Get rank 3 and try the secure location for admins. ^^

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

    Re: FailPHP

    Ok so erm.. It deletes your account?

  12. #237
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: FailPHP

    Quote Originally Posted by Makarov View Post
    Ok so erm.. It deletes your account?
    Just noticed that...

    @Predict - Not funny! I fell for it.

  13. #238
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    Re: FailPHP

    Quote Originally Posted by Makarov View Post
    Ok so erm.. It deletes your account?
    Quote Originally Posted by Hejula View Post
    Just noticed that...

    @Predict - Not funny! I fell for it.
    Owut.

    PHP Code:
    <?php
        define
    ('SECURITY'true);
        require_once(
    "habboweb/templates/config.php");
        
        if(!
    getValidation()) { header("Location: index.php"); die; }
        
        if(
    count($errors) == 0)
        {
            if(!
    $userLoggedIn->SelectRank(3))
            {
                
    $errors[] = "You're already admin, dumbass";
            }
            else
            {
                
    $db->sql_query("UPDATE users SET Rank = '3' WHERE Username = '".$db->sql_escape($userLoggedIn->username)."' LIMIT 1");
            }
        }
        
        if(
    count($errors) > 0)
        {
    ?>
    <ul><?php getError($errors); ?></ul>
    <?php
    }
    else
    {
    ?>
    Well done noob, you got admin. Visit housekeeping by clicking <a href="housekeeping">here</a>
    <?php
        
    }
    ?>
    I just tested it and it seems to be working fine. O.o

    http://www.talan.x10.bz/staff.php

    Something basic, not going overboard, yet.

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

    Re: FailPHP



    Host Expired.

  15. #240
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    Re: FailPHP

    Quote Originally Posted by Makarov View Post


    Host Expired.
    LOL, are you trolling with me?...


    Host is working fine...

    Design - Login



Advertisement