mCMS [PHP,SQL]

Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 48
  1. #16
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: mCMS [PHP,SQL]

    Instead of doing
    PHP Code:
    if ( $p['password'] ) 
    you can do this :)

    PHP Code:
    if ( array_key_exists('password'$p) ) 
    Your way it expact that it is a boolean (true/false)

    With array_key_exists it check if the key (currently used `password`) exists and if so, It returns true

  2. #17
    Account Upgraded | Title Enabled! Tony is offline
    MemberRank
    Feb 2011 Join Date
    349Posts

    Re: mCMS [PHP,SQL]

    Checks Pass Strength

    PHP Code:
    $('#pass').keyup(function(e) {
         var 
    strongRegex = new RegExp("^(?=.{8,})(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*\\W).*$""g");
         var 
    mediumRegex = new RegExp("^(?=.{7,})(((?=.*[A-Z])(?=.*[a-z]))|((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))).*$""g");
         var 
    enoughRegex = new RegExp("(?=.{6,}).*""g");
         if (
    false == enoughRegex.test($(this).val())) {
                 $(
    '#passstrength').html('More Characters');
         } else if (
    strongRegex.test($(this).val())) {
                 $(
    '#passstrength').className 'ok';
                 $(
    '#passstrength').html('Strong!');
         } else if (
    mediumRegex.test($(this).val())) {
                 $(
    '#passstrength').className 'alert';
                 $(
    '#passstrength').html('Medium!');
         } else {
                 $(
    '#passstrength').className 'error';
                 $(
    '#passstrength').html('Weak!');
         }
         return 
    true;
    }); 

  3. #18
    Account Upgraded | Title Enabled! Pure is offline
    MemberRank
    May 2008 Join Date
    809Posts

    Re: mCMS [PHP,SQL]

    Quote Originally Posted by Malik View Post
    PHP Code:
    public function write($p) {
        if ( 
    $p['username'] )
          
    $username mysql_real_escape_string($p['username']);
        if ( 
    $p['password'])
          
    $password mysql_real_escape_string($p['password']);
        if ( 
    $username && $password ) {
          
    $created time();
          
    $sql "INSERT INTO mDB VALUES('$username','$password','$created')";
          return 
    mysql_query($sql);
        } else {
          return 
    false;
        }

    Use UNIX_TIMESTAMP() instead of $time = time();

  4. #19
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: mCMS [PHP,SQL]

    Quote Originally Posted by Pure View Post
    Use UNIX_TIMESTAMP() instead of $time = time();
    And UNIX_TIMESTAMP() is ofcourse a sql function x]

  5. #20
    Account Upgraded | Title Enabled! Tony is offline
    MemberRank
    Feb 2011 Join Date
    349Posts

    Re: mCMS [PHP,SQL]

    I Will.


    Login function what do you think?

    PHP Code:
    function LoadUser($name$password 0) { return $this->LoadSingle("select * from ".$this->config['table_prefix']."users where name = '".mysql_real_escape_string($name)."' ".($password === "" "and password = '".mysql_real_escape_string($password)."'")." limit 1"); 

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

    Re: mCMS [PHP,SQL]

    Don't forget to add my credits since your using a few of my files ;)

  7. #22
    Account Upgraded | Title Enabled! Tony is offline
    MemberRank
    Feb 2011 Join Date
    349Posts

    Re: mCMS [PHP,SQL]

    Not using them anymore threw that away! HA !

  8. #23
    son, i am dissapoint Near is offline
    MemberRank
    Sep 2009 Join Date
    The NetherlandsLocation
    491Posts

    Re: mCMS [PHP,SQL]

    Quote Originally Posted by Jupos View Post
    Don't forget to add my credits since your using a few of my files ;)
    Are you serious? He has to give you credit for you giving him just a few lines of code? What kind of idiot are you? Trying to get credited everywhere.. Seriously, leave man, leave.

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

    Re: mCMS [PHP,SQL]

    Quote Originally Posted by Near View Post
    Are you serious? He has to give you credit for you giving him just a few lines of code? What kind of idiot are you? Trying to get credited everywhere.. Seriously, leave man, leave.
    Bro, it's simple, if someone used some of your files then you would ask for credit -.-

  10. #25
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts
    Quote Originally Posted by Jupos View Post
    Bro, it's simple, if someone used some of your files then you would ask for credit -.-
    Dude, its ragezone. What did you expect.
    Posted via Mobile Device

  11. #26
    Iron like a Lion in Zion! vLife is offline
    Super ModRank
    Apr 2009 Join Date
    The BahamasLocation
    3,788Posts

    Re: mCMS [PHP,SQL]

    Because in RaGEZONE Habbo's section.
    e-Penis is a must!

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

    Re: mCMS [PHP,SQL]

    Quote Originally Posted by joopie View Post
    Dude, its ragezone. What did you expect.
    Posted via Mobile Device
    Lol, yeah :)

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

    Re: mCMS [PHP,SQL]

    Quote Originally Posted by Jupos View Post
    Lol, yeah :)
    He's basing the CMS off of this https://github.com/Makarovich/CMSulake

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

    Re: mCMS [PHP,SQL]

    Quote Originally Posted by Tr0ll.™ View Post
    He's basing the CMS off of this https://github.com/Makarovich/CMSulake
    I have the old version, he has change it now.

  15. #30
    Account Upgraded | Title Enabled! Tony is offline
    MemberRank
    Feb 2011 Join Date
    349Posts

    Re: mCMS [PHP,SQL]

    Right you have the old version. When the cms is not that stable. Which I am using CMSulake as a base it is at a good stage to start from.



Page 2 of 4 FirstFirst 1234 LastLast

Advertisement