Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Console Logger
- function consoleLog($entry){
- echo "<script>console.log('$entry')</script>";
- }
- //Is the CMS Installed?
- if(file_exists("admin/config.php")){
- //Connect to database
- require('admin/config.php');
- $mysqli = new mysqli($config['db_host'], $config['db_user'], $config['db_pass'], $config['db_name']);
- //Get Theme
- $sql = "select value from settings where setting = 'theme'";
- $themePath = "themes/" . $mysqli->query($sql)->fetch_assoc()['value'] . "/";
- //Spawn Theme
- include($themePath . "index.php");
- //Install CMS
- } else {
- include("admin/core/install/install.php");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement