*/ $post_inst = new post(); $phpFiglet = new phpFiglet(); $inst_post = new mybb_style(); $htmlinst = new html(); $admin = new adminclass(); $util = new utilities(); $cook = new cookie(); /* * Check if sqlite database file is not existed * If yes, then redirect to create.php */ if (sqlite_file == '' || !file_exists(sqlite_file)) { $htmlinst->change_location("./create.php"); } $_SERVER['REMOTE_ADDR'] = $util->get_client_ip($_SERVER); $phpFiglet->loadFont("./figlet/spliff.flf"); $db = new SQLite3(sqlite_file, SQLITE3_OPEN_READWRITE); $title = $db->query("SELECT Name, Value FROM Options WHERE Name='title';"); $title = $title->fetchArray(SQLITE3_ASSOC); /* * Check if user have old_skkooll cookie * If yes, then give appropriate privilege to user through cookie::check_cookie function */ if (isset($_COOKIE['old_skkooll'])) { $cook_book = $cook->check_cookie($_COOKIE['old_skkooll'], random_str, $db); } ?> <link rel="stylesheet" href="./style.css" /> <script type="text/javascript" src="./js/jquery.min.js"></script> <script type='text/javascript' src="./js/jquery.imagefit-0.2.js"></script>
<html> <head> <?php require_once "./class/utilities_class.php"; require_once "./config.php"; $instance = new utilities(); $_SERVER['REMOTE_ADDR'] = $instance->get_client_ip($_SERVER); ?> <title>FiRST RUN!</title> <link rel="stylesheet" href="./style.css" /> <script type='text/javascript' src='./js/script.js'></script> </head> <body> <br> <br> <br> <?php if (sqlite_file != '') { if (file_exists(sqlite_file)) { $text = "Database already exist!"; ?> <font class='spacer'> <?php $instance->header_line($text); ?> </font> <b><br> <?php $instance->top_text($text); ?> </b><br>