zCMS [PHP, OOP, Phoenix, Secure]

Page 12 of 13 FirstFirst ... 245678910111213 LastLast
Results 166 to 180 of 185
  1. #166
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    Re: zCMS [PHP, OOP, Phoenix, Secure]

    Quote Originally Posted by Jonteh View Post
    Yeah, no, shutup. You have no idea what you are talking about.

    The "exploit" that I supposedly left in there is an unfiltered $_GET param that is actually left unfiltered in the stock copy of uber. So where's your theory now.

    Exploit is in article.php btw. Enjoy. This is why Supa will stay private for a while before release - idiots like you.
    You can't blame em if the CMS has exploits in there.

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

    Re: zCMS [PHP, OOP, Phoenix, Secure]

    Quote Originally Posted by Zak© View Post
    You can't blame em if the CMS has exploits in there.
    I can when they're telling everyone I planted it when it was there originally.

  3. #168
    ex visor Aaron is offline
    MemberRank
    May 2007 Join Date
    MichiganLocation
    4,028Posts

    Re: zCMS [PHP, OOP, Phoenix, Secure]

    I understand the frustration - people are mad because a param was left unfiltered. However, a simple $_GET param is easily resolvable.

    There shouldn't be further argument regarding this.
    If your understanding of PHP is at least basic, then you should be able to resolve the issue.

  4. #169
    I don't even know azaidi is offline
    MemberRank
    Apr 2010 Join Date
    the NetherlandsLocation
    2,065Posts

    Re: zCMS [PHP, OOP, Phoenix, Secure]

    mysql_real_escape_string(stripslashes(trim( $_GET SHIT )))

    Wow that's really hard :O

  5. #170
    Creative One. TheEngineer is offline
    MemberRank
    Oct 2011 Join Date
    Your RouterLocation
    500Posts

    Re: zCMS [PHP, OOP, Phoenix, Secure]

    Quote Originally Posted by azaidi View Post
    mysql_real_escape_string(stripslashes(trim( $_GET SHIT )))

    Wow that's really hard :O
    Woa. Woa. Woa. Woa.
    Stop there.

    Do you even know what Realescape, Stripslashes, and Trim does?

    You will only need Stripslashes & Trim, or you could do this
    Functions Bro, Functions

    PHP Code:

    /**
     * Cleans the inputted String
     * Will protects against Basic SQL injections
     * @param $_GET / $_POST
     * @return Stripped Variable
     */
    function cleanvar($s_string){
        
    $sStr Stripslashes($s_string);

    $sTtr Trim($sStr);

    return 
    $sTtr;
    }


    cleanvar($_GET[ADMINPASSWORDINPLAINTEXTISSOSAFE]); 

  6. #171
    ex visor Aaron is offline
    MemberRank
    May 2007 Join Date
    MichiganLocation
    4,028Posts

    Re: zCMS [PHP, OOP, Phoenix, Secure]

    Quote Originally Posted by G33k View Post
    Woa. Woa. Woa. Woa.
    Stop there.

    Do you even know what Realescape, Stripslashes, and Trim does?

    You will only need Stripslashes & Trim, or you could do this
    Functions Bro, Functions

    PHP Code:

    /**
     * Cleans the inputted String
     * Will protects against Basic SQL injections
     * @param $_GET / $_POST
     * @return Stripped Variable
     */
    function cleanvar($s_string){
        
    $sStr Stripslashes($s_string);

    $sTtr Trim($sStr);

    return 
    $sTtr;
    }


    cleanvar($_GET[ADMINPASSWORDINPLAINTEXTISSOSAFE]); 

    You do realize that if anything is going in, or coming out of a database you want to use mysql_real_escape_string right?

    When you're trimming a string, you're basically removing whitespaces from both sides, which imo, could cause a lot of database confusion if someone posts a space before an e-mail or something. Stripslashes just removes backslashes.. Therefore the function you're using really isn't cleaning the string from any/all vulnerabilities that it may contain. That's where mysql_real_escape_string comes in handy. It removes specicial characters that could manipulate your SQL database.

    So function or not, his code was still correct over yours... that is if your main intention was stripping the string completely clean. Goes to show that functions doesn't always make your code 'right'. It just makes it more organized, and dynamic... while also requiring less work down the line. Before moving onto functions you should at least understand the complete basics.

    Not trying to offend you or anything either. =P

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

    Re: zCMS [PHP, OOP, Phoenix, Secure]

    Quote Originally Posted by Aaron View Post
    You do realize that if anything is going in, or coming out of a database you want to use mysql_real_escape_string right?

    When you're trimming a string, you're basically removing whitespaces from both sides, which imo, could cause a lot of database confusion if someone posts a space before an e-mail or something. Stripslashes just removes backslashes.. Therefore the function you're using really isn't cleaning the string from any/all vulnerabilities that it may contain. That's where mysql_real_escape_string comes in handy. It removes specicial characters that could manipulate your SQL database.

    So function or not, his code was still correct over yours... that is if your main intention was stripping the string completely clean. Goes to show that functions doesn't always make your code 'right'. It just makes it more organized, and dynamic... while also requiring less work down the line. Before moving onto functions you should at least understand the complete basics.

    Not trying to offend you or anything either. =P
    You also need to be connected to a db to use mysql_real_escape_string but if you use MySQLi..


    PHP Code:
    $db = new MySQLi("connection infos");
    $string "''''lol''''";
    echo 
    $db->real_escape_string($string); 
    ^^

  8. #173
    I don't even know azaidi is offline
    MemberRank
    Apr 2010 Join Date
    the NetherlandsLocation
    2,065Posts

    Re: zCMS [PHP, OOP, Phoenix, Secure]

    It was just an example typed on my mobile, I know how to make a function of it. + What G33k did can be shortened a lot:

    function cleanvar($s_string){
    return stripslashes(trim($s_string));
    }
    I know I left the mysql_real_escape string out but I'm just shortening his php code :P

  9. #174
    Creative One. TheEngineer is offline
    MemberRank
    Oct 2011 Join Date
    Your RouterLocation
    500Posts

    Re: zCMS [PHP, OOP, Phoenix, Secure]

    Code is not about being short.
    If i could, i could paste all code from conradUK into 1 PHP FILE

    BUT THAT WOULD BE A CLUSTERFUCK

  10. #175
    I don't even know azaidi is offline
    MemberRank
    Apr 2010 Join Date
    the NetherlandsLocation
    2,065Posts

    Re: zCMS [PHP, OOP, Phoenix, Secure]

    well if you code it your way the cms is instead of 20mb gonna be 50mb -.-"

  11. #176
    Apprentice RzHoster is offline
    MemberRank
    Jan 2012 Join Date
    6Posts

    Re: zCMS [PHP, OOP, Phoenix, Secure]

    Jonty thank you soo much this is the best cms ever !!! :D thanks,

  12. #177
    Banned V for Vendetta is offline
    BannedRank
    Feb 2007 Join Date
    1,809Posts

    Re: zCMS [PHP, OOP, Phoenix, Secure]

    i got this error :O

    Notice: Undefined index: HTTP_CF_CONNECTING_IP in C:\xampp\htdocs\global.php on line 21

    Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 12 in C:\xampp\htdocs\inc\class.core.php on line 19

  13. #178
    Member Jake7383 is offline
    MemberRank
    Dec 2011 Join Date
    KentuckyLocation
    57Posts

    Re: zCMS [PHP, OOP, Phoenix, Secure]

    WILL be using like ASAP!

  14. #179
    Account Upgraded | Title Enabled! nickymonsma is offline
    MemberRank
    Sep 2009 Join Date
    The NetherlandsLocation
    232Posts

    Re: zCMS [PHP, OOP, Phoenix, Secure]

    Nice Nice

  15. #180
    Account Upgraded | Title Enabled! J4y2 is offline
    MemberRank
    Feb 2012 Join Date
    South KoreaLocation
    317Posts

    Re: zCMS [PHP, OOP, Phoenix, Secure]

    not working on me,but nice release :)

    my problem same as spruitje and I Can't load me.php



Advertisement