daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Oct 23rd, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4.   <head>
  5.     <title>SimpleCMS</title>
  6.   </head>
  7.  
  8.   <body>
  9. <?php
  10.  
  11.   include_once('myCMS.php');
  12.   $obj = new myCMS();
  13.   $obj->host = 'hostname';
  14.   $obj->username = 'username';
  15.   $obj->password = 'password';
  16.   $obj->table = 'blogDB';
  17.   $obj->connect();
  18.  
  19.   if ( $_POST )
  20.     $obj->write($_POST);
  21.  
  22.   echo ( $_GET['admin'] == 1 ) ? $obj->display_admin() : $obj->display_public();
  23.  
  24. ?>
  25.   </body>
  26.  
  27. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top