Advertisement
Asegar

display.php

Aug 3rd, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  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('_class/simpleCMS.php');
  12.             $obj = new simpleCMS();
  13.             $obj->host = 'database.host.net';
  14.             $obj->username = 'DB1234567';
  15.             $obj->password = 'DBpassword';
  16.             $obj->table = 'DB1234567';
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement