PHP Classes

PHP Content Management System: Manage content pages stored on a MySQL database

Recommend this page to a friend!
  Info   Example   Demos   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 740 All time: 4,527 This week: 48Up
Version License PHP version Categories
php-cms 1.1GNU General Publi...5PHP 5, Databases, Content management, S...
Description 

Author

This package can manage content pages stored on a MySQL database.

It provides a Web interface for performing operations to manipulate the content of Web pages stored in a database.

Currently it can login and logout the user, present a dashboard, manage pages, add pages, and edit existing pages.

Picture of Vivek moyal
  Performance   Level  
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

 

Recommendations

url rewriting
I need rewrite url in my site

Example

<?php include_once './inc/header.php';
include_once
'messages/alertClass.php';
$message=new alertClass();
if(isset(
$_POST["submit"])){
    include_once
'functions/gump.class.php';
   
$gump = new GUMP();
   
$gump->validation_rules(array(
   
'Title' => 'required',
       
'URL' => 'required',
       
'PageDetails' => 'required',
       
'PageName' => 'required'
));
   
$gump->filter_rules(array(
   
'Title' => 'trim|sanitize_string',
       
'URL' => 'trim|sanitize_string',
       
'Keywords' => 'trim|sanitize_string',
       
'Description' => 'trim|sanitize_string',
       
'PageName' => 'trim|sanitize_string'
));
   
$validated_data = $gump->run($_POST);
    if(
$validated_data === false) {
   
$alert=$message->getAlert($gump->get_readable_errors(true),"error");
} else {
        unset(
$validated_data['submit']);
       
define('pageclassconst', TRUE);
        include
'pages/pageClass.php';
       
$pageClass=new pagesClass();
       
$alert=$pageClass->addPage($validated_data);
}
}
?>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-8 col-md-offset-2 main">
          <h1 class="page-header">Add Pages</h1>
          <?php echo $alert; ?>
<form method="post" action="<?php echo $_SERVER["PHP_SELF"] ?>" enctype="multipart/form-data">
              <div class="form-group">
                  <label>Page Name*</label>
                  <input type="text" id="PageName" name="PageName" value="<?php echo $_POST["PageName"] ?>" class="form-control">
              </div>
              <div class="form-group">
                  <label>Title*</label>
                  <input type="text" id="Title" name="Title" value="<?php echo $_POST["Title"] ?>" class="form-control">
              </div>
              <div class="form-group">
                  <label>URL*</label>
                  <input type="text" id="URL" name="URL" value="<?php echo $_POST["URL"] ?>" class="form-control">
              </div>
              <div class="form-group">
                  <label>Meta Keywords</label>
                  <input type="text" id="Keywords" name="Keywords" value="<?php echo $_POST["Keywords"] ?>" class="form-control">
              </div>
              <div class="form-group">
                  <label>Meta Description</label>
                  <textarea id="Description" name="Description" class="form-control"><?php echo $_POST["Description"] ?></textarea>
              </div>
              <div class="form-group">
                  <label>Page Details*</label>
                  <textarea id="summernote" name="PageDetails"><?php echo $_POST["PageDetails"] ?></textarea>
              </div>
              <input type="submit" id="submit" name="submit" value="Add Page" class="btn btn-primary">
          </form>
        </div>
      </div>
    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
    <script src="../js/summernote/summernote.min.js"></script>
    <script>
    $(document).ready(function() {
        $('#summernote').summernote({
  height: 300, // set editor height
  minHeight: null, // set minimum height of editor
  maxHeight: null, // set maximum height of editor
  focus: true // set focus to editable area after initializing summernote
});
    });
  </script>
  </body>
</html>


Details

php-cms

Simple PHP Content Management System for making Dynamic Website


  Simple PHP CMSExternal page  

Open in a separate window

  Files folder image Files (25)  
File Role Description
Files folder imagecms (4 files, 3 directories)
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:740
This week:0
All time:4,527
This week:48Up