Advertisement
Guest User

Untitled

a guest
May 30th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <?php
  2.  
  3. include '../_class/cms_class.php';
  4.  
  5. $obj = new modernCMS();
  6.  
  7. // Setup our connection vars
  8. $obj->host = 'localhost';
  9. $obj->username = 'root';
  10. $obj->password = '';
  11. $obj->db = 'modernCMS';
  12.  
  13. //Connect to our DB
  14. $obj->connect();
  15. ?>
  16.  
  17. <html>
  18. </head>
  19. <title>My Modern CMS</title>
  20. </head>
  21.  
  22. <body>
  23. <?php include 'nav.php'; ?>
  24.  
  25. <?php
  26. if($_POST['add']):
  27. $obj->add_content($_POST);
  28. endif;
  29. ?>
  30. </body>
  31.  
  32. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement