Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include '../_class/cms_class.php';
- $obj = new modernCMS();
- // Setup our connection vars
- $obj->host = 'localhost';
- $obj->username = 'root';
- $obj->password = '';
- $obj->db = 'modernCMS';
- //Connect to our DB
- $obj->connect();
- ?>
- <html>
- </head>
- <title>My Modern CMS</title>
- </head>
- <body>
- <?php include 'nav.php'; ?>
- <?php
- if($_POST['add']):
- $obj->add_content($_POST);
- endif;
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement