FailPHP

Page 23 of 24 FirstFirst ... 1315161718192021222324 LastLast
Results 331 to 345 of 359
  1. #331
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    Re: FailPHP

    Quote Originally Posted by Aaron View Post
    You should still redirect all unknown URLS to either a 404 page, or to the homepage.
    He's just tipping you some advice.
    Conclusion: Modified .htaccess to only allow certain characters.





    Clicked modify and typed in something...



    Updated it.



    Being shown on me page..

    Remove also works...

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

    Re: FailPHP

    I've seen all these images, but no real good php code.. Maybe show us some of your classes? I understand you have all these images but it would get boring just looking at images and no snips.

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

    Re: FailPHP

    Quote Originally Posted by Makarov View Post
    I've seen all these images, but no real good php code.. Maybe show us some of your classes? I understand you have all these images but it would get boring just looking at images and no snips.
    You should really concentrate on your own development rather than trolling mine.

    But here, have a peek at my horrible coding (as you so call stated).

    PHP Code:
    <?php
    defined
    ('SECURITY') or die('Unallowed access');

    function 
    listBan()
    {
        global 
    $db;
        
        return (
    $db->sql_query("SELECT ID,Username FROM users WHERE Rank = '1'"));
    }

    function 
    deleteBan($user)
    {
        global 
    $db;
        
        return (
    $db->sql_query("UPDATE users SET Rank = '2' WHERE Username = '".$db->sql_escape($user)."' LIMIT 1"));
    }

    function 
    remoteBan($user)
    {
        global 
    $db;
        
        return (
    $db->sql_query("UPDATE users SET Rank = '1' WHERE Username = '".$db->sql_escape($user)."' LIMIT 1"));
    }

    function 
    listFeature()
    {
        global 
    $db;
        
        return (
    $db->sql_query("SELECT Image,Message FROM featured"));
    }

    function 
    deleteFeature($id)
    {
        global 
    $db;
        
        return (
    $db->sql_query("DELETE FROM featured WHERE Message = '".$db->sql_escape($id)."' LIMIT 1"));
    }

    function 
    editFeature($id)
    {
        global 
    $db;
        
        
    $result $db->sql_query("SELECT ID,Image,Message FROM featured WHERE Message = '".$db->sql_escape($id)."' LIMIT 1");
        return (
    $db->sql_fetchrow($result));
    }

    function 
    updateFeature($image,$message,$id)
    {
        global 
    $db;
        
        return (
    $db->sql_query("UPDATE featured SET Image = '".$db->sql_escape($image)."', Message = '".$db->sql_escape($message)."' WHERE ID = '".$db->sql_escape($id)."' LIMIT 1"));
    }
    ?>

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

    Re: FailPHP

    Quote Originally Posted by Predict View Post
    You should really concentrate on your own development rather than trolling mine.

    But here, have a peek at my horrible coding (as you so call stated).

    PHP Code:
    <?php
    defined
    ('SECURITY') or die('Unallowed access');

    function 
    listBan()
    {
        global 
    $db;
        
        return (
    $db->sql_query("SELECT ID,Username FROM users WHERE Rank = '1'"));
    }

    function 
    deleteBan($user)
    {
        global 
    $db;
        
        return (
    $db->sql_query("UPDATE users SET Rank = '2' WHERE Username = '".$db->sql_escape($user)."' LIMIT 1"));
    }

    function 
    remoteBan($user)
    {
        global 
    $db;
        
        return (
    $db->sql_query("UPDATE users SET Rank = '1' WHERE Username = '".$db->sql_escape($user)."' LIMIT 1"));
    }

    function 
    listFeature()
    {
        global 
    $db;
        
        return (
    $db->sql_query("SELECT Image,Message FROM featured"));
    }

    function 
    deleteFeature($id)
    {
        global 
    $db;
        
        return (
    $db->sql_query("DELETE FROM featured WHERE Message = '".$db->sql_escape($id)."' LIMIT 1"));
    }

    function 
    editFeature($id)
    {
        global 
    $db;
        
        
    $result $db->sql_query("SELECT ID,Image,Message FROM featured WHERE Message = '".$db->sql_escape($id)."' LIMIT 1");
        return (
    $db->sql_fetchrow($result));
    }

    function 
    updateFeature($image,$message,$id)
    {
        global 
    $db;
        
        return (
    $db->sql_query("UPDATE featured SET Image = '".$db->sql_escape($image)."', Message = '".$db->sql_escape($message)."' WHERE ID = '".$db->sql_escape($id)."' LIMIT 1"));
    }
    ?>
    Eh... He isn't trolling, look back on the past few pages all you have done is post pictures. His point is valid ^_^

  5. #335
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    Re: FailPHP

    Still not sure about this function

    PHP Code:
    function remoteBan($user)
    {
        global 
    $db;
        
        return (
    $db->sql_query("UPDATE users SET Rank = '1' WHERE Username = '".$db->sql_escape($user)."' LIMIT 1"));

    When banning someone in the emu his rank will not be set to 1, he will just be added to the bans table. Not sure if it is a smart way to go.

    I might be missing something though.

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

    Re: FailPHP



    - ID links you back to the webpage for that article.
    - When updating the article the title, message, author and timestamp get updated. $title and $message are defined by what you place in the text box's, but the author is automatically updated to the person updating it last and timestamp gets updated to time().
    - Textarea won't stretch on its x axis, but you can alter its height how much you want. Thanks to width and max-width.
    - Remove basically deletes the article from the database.

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

    Re: FailPHP

    Lets go over an overview whats included inside FailPHP.

    - Mysqli (supports 2 mysql versions, 4.1+ 5.0+)
    - 2 class's, 4 function's and 1 config files
    - 17 images being stored on FailPHP and 2 .CSS files

    What's on FailPHP.
    - .htacess
    - articles.php
    - errors.php
    - index.php
    - logout.php
    - me.php
    - profile.php
    - register.php
    - settings/email/password
    - support.php

    Housekeeping
    - add.article.php
    - add.feature.php
    - index.php
    - list.article.php
    - list.ban.php
    - list.feature.php
    - remote.ban.php

    what's planned next...
    I'm heading onto doing a maintenance page, probably static (therefore .HTML will be used). Add a few more things into housekeeping (support topics, content, etc).

    Try it out: Habbo Hotel: Login (Been updated to the latest revision, database wipe).

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

    Re: FailPHP

    Though the index design looked pretty shit, updated it.



    Didn't like the magnifying glass.


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

    Re: FailPHP

    Probably going to take a break from FailPHP, but if anyone wants to continue the development, give me a PM or post a message here.

  10. #340
    Goin Goin Gone! LHaZze is offline
    MemberRank
    Mar 2011 Join Date
    VirginiaLocation
    695Posts

    Re: FailPHP

    Ah, stop changing it up. I keep coming back and its all different. I loved the first. then it went to rubbish.. :(

    & Can I get a copy of this, I might play around with it :) Just message me it? thanks if you can bro.

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

    Re: FailPHP

    Dead?

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

    Re: FailPHP

    It's an unfinished project. Why is it unfinished? I can't be arsed updating the tables to Phoenix/Uber.

    Credits: phpBB Group for their dbal.

    Download: housekeeping.zip

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

    Re: FailPHP

    Quote Originally Posted by Predict View Post
    It's an unfinished project. Why is it unfinished? I can't be arsed updating the tables to Phoenix/Uber.

    Credits: phpBB Group for their dbal.

    Download: housekeeping.zip
    Just downloaded it, and it's amazing, thanks.

    oh and it won't be hard 2 update it to phoenix

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

    Re: FailPHP

    Ye, cool story ^

    After a long think in my little brain, I learnt that it's pointless coding a CMS from scratch because everyone will still use UberCMS... This is the first time I've actually touched the original release and here's what I've done so far...


    #Revision 1
    - Removed magic_quotes from global.php
    - Removed uservoice from head-int.tpl (including defined HIDE_FEEDBACK)
    - Added site_name into class.tpl
    - Updated flash_build to 63_1132
    - Updated web_build to 63_1dc60c6d6ea6e089c6893ab4e0541ee0/863
    - Updated web_build_str to 63-BUILD1132 - 15.02.2012 23:05 - com
    - Removed UberCMS overrides (.tpl)
    - Removed Uber Pedo seal
    Progress: http://i.imgur.com/AbuxY.png

    #Revision 2
    Updated http://images.habbo.com/habboweb/%we.../frontpage.css to http://images.habbo.com/habboweb/%we.../frontpage.css
    Updated head-init.tpl (indenting)
    Updated head-bottom.tpl (removed keywords from meta description)
    Progress: http://i.imgur.com/PV8a3.png

    #Revision 3
    Updated case frontpage on class.tpl
    PHP Code:
                case "frontpage":
                
                    
    $this->AddIncludeFile(new IncludeFile('text/css''%www%/templates/css/frontpage.css''stylesheet'));            
                    break; 
    Updated head-init.tpl
    Updated head-bottom.tpl
    Updated page-fp.tpl
    PHP Code:
    <body>
    <
    div id="site-header">
        <
    form action="%www%/account/submit" method="post">
    %
    login_result%
            <
    div id="site-header-content">
                <
    div id="habbo-logo"></div>
                <
    div id="login-form">
                    <
    div id="login-form-email">
                        <
    label class="login-text">Email</label>
                        <
    input type="text" class="login-field" name="credentials.username" id="login-username" maxlength="48">
                    </
    div>
                    <
    div id="login-form-password">
                        <
    label class="login-text">Password</label>
                        <
    input type="password" class="login-field" name="credentials.password" id="login-password" maxlength="32">
                    </
    div>
                    <
    div id="login-form-submit">
                        <
    input type="submit" id="login-submit-button" value="Login" />
                    </
    div>
                    <
    div id="login-onlinecount">
                        
    0 members online
                    
    </div>
                </
    div>
            </
    div>
        </
    form>
    </
    div>
    <
    div id="fp-container">
        <
    div id="tagline">%site_nameHotel... make friendschillaxget noticed!</div>
        <
    div id="frontpage-image-container">
            <
    div id="frontpage-image">
                <
    a href="register" id="frontpage-image-button"></a>
            </
    div>
        </
    div>
    </
    div>
    </
    body>
    </
    html
    Removed generic->footer from index.php
    Progress: http://i.imgur.com/irznm.png
    Updated index.php
    Progress: http://i.imgur.com/KdZZQ.png

  15. #345
    Custom Title Enabled James is offline
    LegendRank
    Jan 2007 Join Date
    DenverLocation
    2,288Posts

    Re: FailPHP

    I don't know why you guys are trolling Predict so hard, the codes not that bad, he just needs to patch exploits in his queries etc. Everyone does things different



Advertisement