Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Here's a WYSIWYG CMS with disk space allocation

  1. #1
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default Here's a WYSIWYG CMS with disk space allocation

    For those wanting to offer a friend/client/themselves a simple CMS to manage the content of a website you have made and are hosting for them:

    The complete package - Here's my CMS all set up as a test: http://temp.jemcon.org/cms/
    Please excuse all the pink! It's not perfect by all means, and the interface needs some work to display properly in all browsers, but its good enough for my own use.

    Lil' CMS 2: http://www.lilcms.com/ (installs the same way as version 1 but has TinyMCE integrated - scroll down for the version 2 upgrade)
    You can define editable blocks so your friend/client can only edit the bits you specify. They cant mash up any important code outside the blocks.
    Has a WYSIWYG web page editor so its easy to edit content (like using Word) and can backup/restore web pages.

    Allow them to upload and manage their own content (images, docs, media files) with TinyBrowser: http://www.lunarvis.com/products/tin...withupload.php
    (very easy to integrate into TinyMCE)

    Password protect the Lil' CMS 2 index page, and important upload scripts in the TinyBrowser folder, with this password protect script from Zubrag: http://www.zubrag.com/scripts/password-protect.php
    (can have multiple users and uses session cookies) Aswell as the Lil' CMS 2 interface, the following files should be password protected in the TinyBrowser folder:
    • edit.php
    • folders.php
    • tinybrowser.php
    • upload.php

    A folder space allocation script and pie chart to display disk space usage: http://www2.aj-services.com/downloads/spacegraph.zip
    It can't actually limit the folder space used, and your client will be able to overstep their limit, but you can use some IF statements and an auto-email script to alert you if they do, then you can take action if needs be (delete files or change their password in the Zubrag script).
    Here's the one I wrote - just insert it into the spacegraph "1.php" file, right above the echo that displays the pie chart image, at the bottom of the file:


    Code:
    //if disk space allocation has been exceeded show critical message and send auto-email to webmaster
    if ($spaceuseda > $spacea) {
    function criticalalert()
    {
    //change below to your preferred email address - seperate multiple with a comma
    $to = "webmaster@yourwebsite.com"; 
    $subject = "WEBHOSTING - Disk usage limit exceeded!"; 
    $email = $_REQUEST['email'] ; 
    $message = "Hi Webmaster,\n\nDomain http://friend.yourwebsite.com has exceeded its disk usage limit of 50MB.\n\nPlease review the account and delete resources as necessary."; 
    // below should use an email account on your domain to send the email
    $headers = "From: admin@yourwebsite.com"; 
    $sent = mail($to, $subject, $message, $headers) ; 
    }
    criticalalert();
    echo "<div style='color:red'><b>CRITICAL!</b> You have exceeded your disk usage limit! The webmaster has been notified of this by email and will take further action as necessary. To avoid seeing this message again, please delete some resources immediately!</div>";
    }
     
    //if less than 5MB of disk space allowance is free show warning message
    else if ($spacefree < 5) {
    echo "<div style='color:red'><b>WARNING!</b> You are approaching your disk usage limit. Please consider deleting some resources to free-up space.</div>";
    }

    BTW - I inserted the pie chart into the Lil' CMS 2 index page using DD's Ajax include script: http://www.dynamicdrive.com/dynamici...axincludes.htm
    You can pass the username and password variables from the spacegraph "1.csv" file to the ajax include, so you dont have to login to see the piechart, like so (username:"Gloria" / password:"lovesick"):
    <script type="text/javascript">ajaxinclude("1.php?username=Gloria&password=lovesick")</script>


    Hope this helps somebody!

  2. #2
    Join Date
    Jan 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Beverleyh,
    i'm surfing all day the web looking for lil cms v.2 but didn't find it....
    Will you please send me the zip file containing the v.2 software ?
    I'm looking for lil with Tiny MCE Integration
    Thank you very much
    Ciao
    Sbobba

  3. #3
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    emailed you

  4. #4
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I can't find lilcms 2 either...

    Hello. Is it possible to get that emailed to me as well? I could really use that script right now. Thank you very much in advance!!

  5. #5
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Got it bev!!

    Thank you for the email. I'll try it out and let you know as soon as possible!!

  6. #6
    Join Date
    Nov 2010
    Location
    Nashville, TN
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Looking for the Lil' CMS 2 script

    I need the Lil' CMS 2 scipt. Could you send me a copy please?

  7. #7
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Sorry, the Lil CMS 2 script is no longer available from http://www.lilcms.com/ and mine was a heavily modified mash-up, but the Lil CMS 1 script functions in exactly the same way so just download that, follow the setup tutorial and then intergrate the very latest version of TinyMCE yourself http://tinymce.moxiecode.com/

    That was the only difference anyway. TinyMCE is very easy to integrate and they have all different versions of example code on their site - depending on your WYSIWYG toolbar needs. Very easy to customise and write your own functions for too.

    Alternatively you could try the Fast Edit CMS via the link in my signature - There's a demo included on my site.
    Last edited by Beverleyh; 11-27-2010 at 08:45 AM. Reason: corrected link to TinyMCE site
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  8. #8
    Join Date
    Jan 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Have installed version 1.1, however after backing up content,
    it is not displayed when i press the restore button,
    unlike it did in the previous version.

    The backup file on the server is however updated.

    Regards

    Neil

  9. #9
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    You should probably contact the author of Lil CMS 1.1 directly if something doesnt work.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  10. #10
    Join Date
    Jan 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Revised the script and restore now works.

    Regards

    Neil

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •