Development Simple Flat-File PHP5 CMS

Discussion in 'Software' started by hacker 8991, 27 May 2006.

  1. hacker 8991

    hacker 8991 What's a Dremel?

    Joined:
    8 Jan 2004
    Posts:
    643
    Likes Received:
    1
    I've been working on a flat-file CMS for PHP over the past few weeks, since I don't have access to an SQL database on one of my servers. I'm putting up an open version of it (read: admin available to all) to test it. You can either try it out (go to the admin directory to goof around) or download the tar. Please try it out just as you would any other CMS, although you can try to break it if you want. Let me know what needs to be changed and/or fixed.

    A couple of caveats:
    - There is no file editing system. I plan to integrate one in the future, but I didn't have enough time to finish it yet. Since it is fundamentally the same as the file creation system, it should be simple to make.
    - There is no validation of form entries in the admin panel. I know it's bad to trust the user here, but (once again) I haven't had the time to implement this.

    If you download the tar and want to install it to test on your own server (which I would appreciate), here are some instructions:
    - Make sure you have PHP5
    - Unpack the tar (tar -xf named.tar) into wherever you want
    - Open the config file (inc/config.php) and set all the variables. Remeber the $entrydir one.
    - Create the entry directory as defined in the config file by $entrydir (mkdir whatever) and give everyone full permissions on it (chmod 777 whatever)
    - Load up the site in your browser and navigate to the admin directory to start adding files and categories.

    Oh, and a quick key for the admin files:
    cc: Category Create
    cr: Category Remove
    fc: File Create
    fr: File Remove

    - tf
     
  2. NiHiLiST

    NiHiLiST New-born car whore

    Joined:
    18 Aug 2001
    Posts:
    3,987
    Likes Received:
    6
    An alternative to using flat files would be to use SQLite. That would make it very easy to migrate to a proper SQL database should you ever need to.
     
  3. eek

    eek CAMRA ***.

    Joined:
    23 Jan 2002
    Posts:
    1,600
    Likes Received:
    14
    Seconded.

    If you have PHP5, chances are SQLite will be installed.
    It will also make things much easier with regards to setting file permissions etc.
     
  4. hacker 8991

    hacker 8991 What's a Dremel?

    Joined:
    8 Jan 2004
    Posts:
    643
    Likes Received:
    1
    I've never heard of SQLite before, but I'll probably end up migrating to it now that I know it exists. Anyways, comments on the existing site are still welcome.

    - tf
     
  5. eek

    eek CAMRA ***.

    Joined:
    23 Jan 2002
    Posts:
    1,600
    Likes Received:
    14
    Just had a quick look, the one thing that I would say about it is that if you go to an admin page and do something, you get to a dead end and there are no more links. You have to click back 1000 times to get back to other pages. Not too neat imo.

    Other than that, it seems to be ok :)
    I assume you are checking input for the equivelent of sql injection attacks?
     

Share This Page