$loginmessage = ""; } // variable saying we are inside admin panel (i.e. to use in addons) $admin_panel = 1; session_start(); if (isset($_GET['errors']) && $_SESSION["pixelpost_admin"]) { error_reporting(E_ALL ^ E_NOTICE); } elseif (isset($_GET['errorsall']) && $_SESSION["pixelpost_admin"]) { error_reporting(E_ALL); } require_once "../includes/pixelpost.php"; require_once "../includes/functions.php"; // Pixelpost Version $version = "MS43LjEgKEJldHRlciB0aGFuIEV2ZXIpIC0gSmFudWFyeSAyMDA4"; $pixelpost_prefix_used = $pixelpost_db_prefix; start_mysql('../includes/pixelpost.php', 'admin'); /** * Added to allow upgrades * This will be 0 for clean install, 1.3 for that version, 1.4+ for newer versions... * */ $installed_version = Get_Pixelpost_Version($pixelpost_db_prefix); if ($installed_version < 1.71) { header("Location: install.php"); exit; } // Changed to allow upgrades if ($cfgquery = mysql_query("SELECT * FROM `" . $pixelpost_db_prefix . "config`")) { $cfgrow = mysql_fetch_assoc($cfgquery); $upload_dir = $cfgrow['imagepath']; } else {
// the function below is from wordpress. It cleans globals set by register_globals is enabled; require_once "includes/functions.php"; PP_unregister_GLOBALS(); ini_set('arg_separator.output', '&'); error_reporting(0); /** * Define constants * */ define('PHP_SELF', 'index.php'); define('ADDON_DIR', 'addons/'); define('ADMIN_DIR', 'admin/'); if (file_exists("includes/pixelpost.php")) { require_once "includes/pixelpost.php"; } start_mysql('includes/pixelpost.php', 'front'); /** * Load the $cfgrow configuration variable and set the upload directory * */ if ($cfgrow = sql_array("SELECT * FROM `" . $pixelpost_db_prefix . "config`")) { //$upload_dir = $cfgrow['imagepath']; } else { show_splash('Coming Soon. Not Installed Yet. Cause #1', 'templates'); } /** * Begin frontpage addons * */ refresh_addons_table(ADDON_DIR); $addon_front_functions = array(0 => array('function_name' => '', 'workspace' => '', 'menu_name' => '', 'submenu_name' => ''));
print '<form name="form" action="' . $file_name . '" method="post">'; print '<input type="submit" name="start_mysql_confirm" value="' . $US['start-mysql-button'] . '"></font>'; print "</form>"; print "</div>"; } if (@$_POST['start_mysql_confirm'] == $US['start-mysql-button']) { //=== User confirmed MySQL server start print "<h2>» " . $US['start-mysql-head1'] . "</h2>"; print "<h3>" . $US['start-mysql-head2'] . "...</h3>"; if (mysql_running()) { // Is MySQL running print "<p>" . $US['start-mysql-txt2'] . "</p>"; // yes: Inform user already is running } else { // no: Server not running start_mysql(); // start server print "<p>" . $US['start-mysql-txt3'] . "</p>"; // inform user } print "</div>"; } //============================================================================= //=== Stop MySQL server ======================================================= if (@$_GET['sel'] == 'stop_mysql') { // Display MySQL server stop confirmation print "<h2>» " . $US['stop-mysql-head1'] . "</h2>"; print "<h3>" . $US['stop-mysql-head1'] . "</h3>"; print "<p>" . $US['stop-mysql-txt1'] . "</p>"; print '<form name="form" action="' . $file_name . '" method="post">'; print '<input type="submit" name="stop_mysql_confirm" value="' . $US['stop-mysql-button'] . '"></font>';