PHP Classes

Auto CMS: Generate a basic content site

Recommend this page to a friend!
  Info   View files Example   Demos   View files View files (22)   DownloadInstall with Composer Download .zip   Reputation   Support forum (7)   Blog (1)    
Ratings Unique User Downloads Download Rankings
StarStarStar 48%Total: 5,459 All time: 460 This week: 65Up
Version License PHP version Categories
autocms 2BSD License4.0Content management, Code Generation
Description 

Author

This class can be used to generate a basic content site.

It can present a form in an administration page protected with a password to let the administrator set several options about common site content sections that it supports.

The class can generate PHP file with definitions that set configuration options according to the options the user set in the form.

The main application script includes the class and the generated options to determine how to present the site based on the option values.

Currently the class can present site pages with automatic headers, footers, a menu bar with links to an about section, news section,products and services, a contact form.

The page presentation is configurable with CSS styles.

Innovation Award
PHP Programming Innovation award nominee
July 2009
Number 2


Prize: One book of choice by Packt
Sometimes you need to create a simple institutional site for your company or for a customer, that only requires the same basic pages.

This class provides a very simple solution to let users setup simple sites without programming knowledge and without requiring a database server.

The class generates the necessary PHP code to customize the site page elements, such as headers, footers, menus and even an about section, contact form and a blog or news section.

Manuel Lemos
Picture of Roberto Aleman
  Performance   Level  
Name: Roberto Aleman <contact>
Classes: 19 packages by
Country: Venezuela Venezuela
Age: 50
All time rank: 1391 in Venezuela Venezuela
Week rank: 214 Down1 in Venezuela Venezuela Equal
Innovation award
Innovation award
Nominee: 10x

Winner: 1x

Recommendations

What is the best PHP landing page creation class?
Create new PHP landing pages on the fly

Example

<?php
require_once("data/vars.php");
require_once(
"core/autocms.php");
require_once(
"lang/".current_language);
$cms = new autocms();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8;"/>
        <title><?php echo sitetitle;?></title>
        <meta name="keyword" content="AutoCMS,small,lightweight,CMS,minimal,space, easy web site, small businness"/>
        <meta name="description" content="<?php echo sitetitle;?>"/>
        <link href="public_tpl/basic.css" rel="stylesheet" type="text/css"/>
        </head>
        <body>
        <a name="top" id="top"></a>
        <div class="main">
        <div class="header">
<div class="sitename"><a href="<?php echo site_url; ?>" target="_self"><?php echo site_name; ?></a></div>
        <div class="sitedescription"><?php echo sitetitle; ?></div>
      
</div>

       <div class="menubar">
       <a href="<?php echo site_url; ?>" target="_self"><?php echo index_name_link; ?></a> | <a href="#about" target="_self"><?php echo about_name_link; ?></a> | <a href="#ps" target="_self"><?php echo ps_name_link; ?></a> | <a href="#news" target="_self"><?php echo news_name_link; ?></a> | <a href="#contact" target="_self"><?php echo contact_name_link; ?></a>
       </div>

<div class="news">
        <a name="news" id="news"></a><h2><a href="#<?php echo news_name_link; ?>" ><?php echo news_name_link; ?></a></h2>
        <?php $this->show_block(news_content); ?>
</div>

<div id="ads" class="ads"><center>
    Ads Block Available, goto <a href="#contact">Contact Form</a> to clain this place
</center></div>

<div class="uptotop"><a href="#top" target="_self"><img src="public_tpl/basic.png" width="16" height="16" alt="up top" border="0" /></a></div>
<div class="about"><a name="about" id="about"></a><h2><a href="#<?php echo about_name_link; ?>" ><?php echo about_name_link." ".site_name; ?></a></h2><?php $this->show_block(about_content); ?> </div>

<div class="uptotop"><a href="#top" target="_self"><img src="public_tpl/basic.png" width="16" height="16" alt="up top" border="0" /></a></div>
<div class="pys"><a name="ps" id="ps"></a><h2><a href="#<?php echo ps_name_link; ?>" ><?php echo ps_name_link; ?></a></h2><?php
$this
->show_block(ps_content); ?></div>

<div class="uptotop"><a href="#top" target="_self"><img src="public_tpl/basic.png" width="16" height="16" alt="up top" border="0" /></a></div>
<div class="contact"><a name="contact" id="contact"></a><h2><a href="#<?php echo contact_name_link; ?>" ><?php echo contact_name_link; ?></a></h2><form action="index.php" method="post" >
<p><?php echo Your_Email_lang; ?> :<br/><input id="Msg_input" name="Email" type="text" size="50" maxlength="100" /></p>
<p><?php echo Your_Message_lang; ?>:<br/><textarea id="Msg" name="Msg" cols="50" rows="4"></textarea></p>
<input name="submit" type="submit"/></form>
</div>
       <div class="menubar">
       <a href="<?php echo site_url; ?>" target="_self"><?php echo index_name_link; ?></a> | <a href="#about" target="_self"><?php echo about_name_link; ?></a> | <a href="#ps" target="_self"><?php echo ps_name_link; ?></a> | <a href="#news" target="_self"><?php echo news_name_link; ?></a> | <a href="#contact" target="_self"><?php echo contact_name_link; ?></a>
       </div>

<div class="footer">
<a href="http://www.ventics.com/autocms/" target="_self">Powered by Auto CMS</a>,<a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0</a>,<a href="http://jigsaw.w3.org/css-validator/check/referer">CSS 2.1 Valid</a>,<a href="<?php echo site_url; ?>admin/index.php?login" target="_self" >*</a>
</div>
</div>
</body>
</html>


  AutoCMS Home PageExternal page  
  Files folder image Files  
File Role Description
Files folder imageadmin (7 files)
Files folder imagecore (2 files)
Files folder imagedata (2 files)
Files folder imagedocs (1 file)
Files folder imagelang (3 files)
Files folder imagepublic_tpl (4 files)
Image file autocms2-screenshot.jpg Screen AutoCMS 2 ScreenShot
Plain text file .htaccess Conf. apache config
Plain text file index.php Appl. Index File

  Files folder image Files  /  admin  
File Role Description
  Plain text file admin.css Data admin css style
  Plain text file admin.php Appl. admin class
  Plain text file index.html Data cero file
  Plain text file index.php Appl. index admin
  Plain text file nicEdit.js Aux. wysiwyg editor core
  Image file nicEditorIcons.gif Photo wysiwyg editor menubar
  Plain text file panel.php Appl. admin template

  Files folder image Files  /  core  
File Role Description
  Plain text file autocms.php Class class source
  Plain text file index.html Data cero file

  Files folder image Files  /  data  
File Role Description
  Plain text file index.html Aux. cero file
  Plain text file vars.php Conf. Data Store

  Files folder image Files  /  docs  
File Role Description
  Plain text file install.txt Doc. Steps for the installation

  Files folder image Files  /  lang  
File Role Description
  Plain text file english.php Conf. lang file
  Plain text file index.html Data cero file
  Plain text file spanish.php Conf. lang file

  Files folder image Files  /  public_tpl  
File Role Description
  Plain text file basic.css Data public css style
  Plain text file basic.php Example Default Template
  Image file basic.png Photo icon file
  HTML file index.html Data cero file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:5,459
This week:0
All time:460
This week:65Up
User Ratings User Comments (3)
 All time
Utility:60%StarStarStarStar
Consistency:60%StarStarStarStar
Documentation:55%StarStarStar
Examples:65%StarStarStarStar
Tests:-
Videos:-
Overall:48%StarStarStar
Rank:2948