MindCMS [PHP & MySQLi]

Results 1 to 20 of 20
  1. #1
    Novice MindCMS is offline
    MemberRank
    Jul 2013 Join Date
    1Posts

    MindCMS [PHP & MySQLi]

    I decided to make a CMS from scratch for my hotel and want to share it with you. It's not really a CMS, but has the basic features (login, register and me page which only has a link to client). It was coded using a Phoenix database, but may work with others (haven't tried).

    Screenshots






    I can't guarantee it's bug free. Also, this won't work with active hotels. It uses its own hashing method.


    Download
    cms2 (2).zip

    Installation
    Open _includes/_config.php in a text editor and add your own settings.


  2. #2
    Valued Member TheFlamingo is offline
    MemberRank
    May 2013 Join Date
    123Posts

    Re: MindCMS [PHP & MySQLi]

    Its kinda to simple, but thanks anyway

  3. #3
    Planning Stuff Since 2013 Vrop93 is offline
    MemberRank
    Jan 2012 Join Date
    Grocery StoreLocation
    320Posts

    Re: MindCMS [PHP & MySQLi]

    Thanks for this (:

  4. #4
    Not so spooky... MrSpooks is offline
    MemberRank
    May 2010 Join Date
    Under a rockLocation
    1,068Posts

    Re: MindCMS [PHP & MySQLi]

    Could be a nice little base for other projects to! cheers dude :)

  5. #5
    Account Upgraded | Title Enabled! Mozilla2 is offline
    MemberRank
    Apr 2012 Join Date
    The NetherlandsLocation
    223Posts

    Re: MindCMS [PHP & MySQLi]

    I like it, Maybe i can code the me page further, and the news page and housekeeping

  6. #6
    Novice Femq is offline
    MemberRank
    Jul 2013 Join Date
    United KingdomLocation
    3Posts

    Re: MindCMS [PHP & MySQLi]

    Nice Work, but id rather not use this. sorry

  7. #7
    Mr VPS - Cheap VPS Server NOC is offline
    MemberRank
    Sep 2011 Join Date
    Liverpool, UKLocation
    844Posts

    Re: MindCMS [PHP & MySQLi]

    I will check it out, looks good so far

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

    Re: MindCMS [PHP & MySQLi]

    Edit: WORST THING I'VE SEEN: EVAL. You don't need it at all so why do you run such a dangerous command. Just do a str_replace on your file_get_contents to filter the variables with their values. You can even do a foreach on $GLOBALS if you need all variables that much, but please don't use eval for something which can be fixed in a lot easier ways.

    --

    Simple coding tips:

    - Use an absolute path, so use a define('root') or something
    - Use single quotes over double, it's quicker and more bug-free "$var" is something else than '$var', in double quotes variables will be replaced by their values, so single quotes are better
    - Just use md5(value.hash) or md5(sha1(value)) because those are the most used hashes in CMSes. md5ing 3x is overkill and totally unneccesary.
    - Don't keep unneeded values in memory with a variable
    {
    $find_sql = "SELECT null FROM users WHERE username = '{$username}' AND password = '{$password}'";
    $run_login = $db->query($find_sql);
    }
    Use the string directly so it can be removed from memory after executing (not sure about PHPs GC though). You don't need $find_sql anymore in the code so you should just use the string directly.

    That's actually pretty much is, since you didn't really give us a lot of coding except for ripped pages from Habbo. Start with OOP is all I can say and learn2tpl

    BTW using $_SESSION["login_limit"] will just annoy users who try to type their passwords too fast, and hackers can easily avoid it by cleaning their $_COOKIE['PHP_SESSID']

  9. #9
    Ask me about Daoism FullmetalPride is offline
    MemberRank
    Nov 2010 Join Date
    2,172Posts

    Re: MindCMS [PHP & MySQLi]

    Quote Originally Posted by azaidi View Post
    Edit: WORST THING I'VE SEEN: EVAL. You don't need it at all so why do you run such a dangerous command. Just do a str_replace on your file_get_contents to filter the variables with their values. You can even do a foreach on $GLOBALS if you need all variables that much, but please don't use eval for something which can be fixed in a lot easier ways.

    --

    Simple coding tips:

    - Use an absolute path, so use a define('root') or something
    - Use single quotes over double, it's quicker and more bug-free "$var" is something else than '$var', in double quotes variables will be replaced by their values, so single quotes are better
    - Just use md5(value.hash) or md5(sha1(value)) because those are the most used hashes in CMSes. md5ing 3x is overkill and totally unneccesary.
    - Don't keep unneeded values in memory with a variable
    {
    $find_sql = "SELECT null FROM users WHERE username = '{$username}' AND password = '{$password}'";
    $run_login = $db->query($find_sql);
    }
    Use the string directly so it can be removed from memory after executing (not sure about PHPs GC though). You don't need $find_sql anymore in the code so you should just use the string directly.

    That's actually pretty much is, since you didn't really give us a lot of coding except for ripped pages from Habbo. Start with OOP is all I can say and learn2tpl

    BTW using $_SESSION["login_limit"] will just annoy users who try to type their passwords too fast, and hackers can easily avoid it by cleaning their $_COOKIE['PHP_SESSID']
    I have to much to learn..:(


    Great effort m8. Keep improving, keep testing, keep releasing.

  10. #10
    Proficient Member KeineChance is offline
    MemberRank
    Aug 2012 Join Date
    174Posts

    Re: MindCMS [PHP & MySQLi]

    Can someone reupload please??

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

    Re: MindCMS [PHP & MySQLi]

    If you mixed the PHP & HTML in the document, never do that, it's bad practice and inefficient :)

  12. #12
    Novice Pepe967 is offline
    MemberRank
    Jan 2009 Join Date
    3Posts

    Re: MindCMS [PHP & MySQLi]

    Please reupload it!

  13. #13
    Planning Stuff Since 2013 Vrop93 is offline
    MemberRank
    Jan 2012 Join Date
    Grocery StoreLocation
    320Posts

    Re: MindCMS [PHP & MySQLi]

    Quote Originally Posted by Pepe967 View Post
    Please reupload it!
    Mirror - Download cms2.zip from Sendspace.com - send big files the easy way

  14. #14
    Novice jhon0416 is offline
    MemberRank
    Feb 2013 Join Date
    1Posts

    Re: MindCMS [PHP & MySQLi]

    link does not work you could reup.

    Thank you.

  15. #15
    Novice Pepe967 is offline
    MemberRank
    Jan 2009 Join Date
    3Posts

    Re: MindCMS [PHP & MySQLi]

    Thank you too

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

    Re: MindCMS [PHP & MySQLi]

    Why didn't you put the Client also in a tpl file? o_O

  17. #17
    Proficient Member arran565 is offline
    MemberRank
    Aug 2010 Join Date
    ScotlandLocation
    153Posts

    Re: MindCMS [PHP & MySQLi]

    Saw this on a hotel, Didnt really like it at first and now
    I love it. Thanks for teh release

  18. #18
    Account Upgraded | Title Enabled! iRetro™ is offline
    MemberRank
    Feb 2010 Join Date
    United KingdomLocation
    558Posts

    Re: MindCMS [PHP & MySQLi]

    I like the idea of a simple CMS. ;D

  19. #19
    Proficient Member arran565 is offline
    MemberRank
    Aug 2010 Join Date
    ScotlandLocation
    153Posts

    Re: MindCMS [PHP & MySQLi]

    Quote Originally Posted by ImJoeYz View Post
    I like the idea of a simple CMS. ;D
    There honestly the best. :)

  20. #20
    Proficient Member arran565 is offline
    MemberRank
    Aug 2010 Join Date
    ScotlandLocation
    153Posts

    Re: MindCMS [PHP & MySQLi]

    Im beggining to work out a bug. Illumina works fine, with swift. This doesnt it loads perfect, Then restarts again and again.



Advertisement