setTimezone($deftz); $utctz = new DateTimeZone("UTC"); $utccurtime = new DateTime(); $utccurtime->setTimestamp($defcurtime->getTimestamp()); $utccurtime->setTimezone($utctz); $servcurtime = new DateTime(); $servcurtime->setTimestamp($defcurtime->getTimestamp()); $usercurtime = new DateTime(); $usercurtime->setTimestamp($defcurtime->getTimestamp()); /* Do not change anything below this line unless you know what you are doing */ if(!isset($Settings['clean_ob'])) { $Settings['clean_ob'] = "off"; } function idb_output_handler($buffer) { return $buffer; } if($Settings['clean_ob']=="on") { /* Check for other output handlers/buffers are open and close and get the contents in an array */ $numob = count(ob_list_handlers()); $iob = 0; while ($iob < $numob) { $old_ob_var[$iob] = ob_get_clean(); ++$iob; } } ob_start("idb_output_handler"); if(ini_get("register_globals")) { if(!isset($SettDir['misc'])) { $SettDir['misc'] = "inc/misc/"; } require_once($SettDir['misc'].'killglobals.php'); } if(!isset($preact['idb'])) { $preact['idb'] = null; } if(!isset($_GET['act'])) { $_GET['act'] = null; } if(!isset($_POST['act'])) { $_POST['act'] = null; } if ($_GET['act']==null||$_GET['act']=="view") { $_GET['act']="Part1"; } if ($_POST['act']==null||$_POST['act']=="view") { $_POST['act']="Part1"; } $_TEG = array(null); $_TEG['part'] = preg_replace("/Part(1|2|3|4)/","\\1",$_GET['act']); $_GET['act'] = strtolower($_GET['act']); if(isset($_TEG['part'])) { if($_TEG['part']<=4&&$_TEG['part']>=1) { $_GET['act'] = "Part".$_TEG['part']; } } if ($_GET['act']!="Part4"&&$_POST['act']!="Part4") { $preact['idb'] = "installing"; } $SetupDir['setup'] = "setup/"; $ConvertDir['setup'] = $SetupDir['setup']; $SetupDir['sql'] = "setup/sql/"; $SetupDir['convert'] = "setup/convert/"; $ConvertDir['convert'] = $SetupDir['convert']; $ConvertDir['sql'] = $SetupDir['sql']; $Settings['output_type'] = "html"; $Settings['html_type'] = "html5"; $Settings['board_name'] = "Installing iDB"; if(!isset($Settings['charset'])) { $Settings['charset'] = "ISO-8859-15"; header("Content-Type: text/html; charset=ISO-8859-15"); } if(isset($Settings['charset'])) { if($Settings['charset']!="ISO-8859-15"&&$Settings['charset']!="ISO-8859-1"&& $Settings['charset']!="UTF-8"&&$Settings['charset']!="CP866"&& $Settings['charset']!="Windows-1251"&&$Settings['charset']!="Windows-1252"&& $Settings['charset']!="KOI8-R"&&$Settings['charset']!="BIG5"&& $Settings['charset']!="GB2312"&&$Settings['charset']!="BIG5-HKSCS"&& $Settings['charset']!="Shift_JIS"&&$Settings['charset']!="EUC-JP") { $Settings['charset'] = "ISO-8859-15"; header("Content-Type: text/html; charset=ISO-8859-15"); } } $SQLCharset = "latin1"; if(isset($_POST['charset'])) { if($_POST['charset']=="ISO-8859-1") { $SQLCharset = "latin1"; } if($_POST['charset']=="ISO-8859-15") { $SQLCharset = "latin1"; } if($_POST['charset']=="UTF-8") { $SQLCharset = "utf8"; } $Settings['charset'] = $_POST['charset']; } $ServHTTPS = "off"; if(isset($_SERVER['HTTPS'])) { $ServHTTPS=="off"; } if($ServHTTPS=="on") { $prehost = "https://"; } if($ServHTTPS!="on") { $prehost = "http://"; } $this_dir = null; if(dirname($_SERVER['SCRIPT_NAME'])!="."|| dirname($_SERVER['SCRIPT_NAME'])!=null) { $this_dir = dirname($_SERVER['SCRIPT_NAME'])."/"; } if($this_dir==null||$this_dir==".") { if(dirname($_SERVER['SCRIPT_NAME'])=="."|| dirname($_SERVER['SCRIPT_NAME'])==null) { $this_dir = dirname($_SERVER['PHP_SELF'])."/"; } } if($this_dir=="\/") { $this_dir="/"; } $this_dir = str_replace("//", "/", $this_dir); $idbdir = addslashes(str_replace("\\","/",dirname(__FILE__)."/")); if(!isset($_POST['BoardURL'])) { $Settings['idburl'] = $prehost.$_SERVER["HTTP_HOST"].$this_dir; } if(isset($_POST['BoardURL'])) { $Settings['idburl'] = $_POST['BoardURL']; } $Settings['qstr'] = "&"; $Settings['qsep'] = "="; require($SetupDir['setup'].'preinstall.php'); require_once($SettDir['misc'].'utf8.php'); require_once($SettDir['inc'].'filename.php'); require_once($SettDir['inc'].'function.php'); if($_GET['act']=="README"||$_GET['act']=="ReadME") { $_GET['act']="readme"; } if($_GET['act']=="readme"||$_GET['act']=="ReadMe") { header("Content-Type: text/plain; charset=".$Settings['charset']); require("README"); fix_amp(null); die(); } if($_GET['act']=="LICENSE"||$_GET['act']=="License") { $_GET['act']="license"; } if($_GET['act']=="license"||$_GET['act']=="BSD") { header("Content-Type: text/plain; charset=".$Settings['charset']); require("LICENSE"); fix_amp(null); die(); } if($_GET['act']=="TOS"||$_GET['act']=="ToS") { $_GET['act']="tos"; } if($_GET['act']=="tos"||$_GET['act']=="terms") { header("Content-Type: text/plain; charset=".$Settings['charset']); require("TOS"); fix_amp(null); die(); } $Settings['board_name'] = "Installing ".$RName; function get_theme_values($matches) { global $ThemeSet; $return_text = null; if(isset($ThemeSet[$matches[1]])) { $return_text = $ThemeSet[$matches[1]]; } if(!isset($ThemeSet[$matches[1]])) { $return_text = null; } return $return_text; } foreach($ThemeSet AS $key => $value) { $ThemeSet[$key] = preg_replace("/%%/s", "{percent}p", $ThemeSet[$key]); $ThemeSet[$key] = preg_replace_callback("/%\{([^\}]*)\}T/s", "get_theme_values", $ThemeSet[$key]); $ThemeSet[$key] = preg_replace_callback("/%\{([^\}]*)\}e/s", "get_env_values", $ThemeSet[$key]); $ThemeSet[$key] = preg_replace_callback("/%\{([^\}]*)\}i/s", "get_server_values", $ThemeSet[$key]); $ThemeSet[$key] = preg_replace_callback("/%\{([^\}]*)\}s/s", "get_setting_values", $ThemeSet[$key]); $ThemeSet[$key] = preg_replace_callback("/%\{([^\}]*)\}t/s", "get_time", $ThemeSet[$key]); $ThemeSet[$key] = preg_replace("/\{percent\}p/s", "%", $ThemeSet[$key]); } require($SetupDir['convert'].'info.php'); require($SetupDir['setup'].'html5.php'); $Error = null; $_GET['time'] = false; $title_html = htmlentities("Installing ".$VerInfo['iDB_Ver_Show'], ENT_QUOTES, $Settings['charset']); ?> <?php echo "Installing ".$VerInfo['iDB_Ver_Show']; ?>
">Install

Install Failed with errors. ">Click here to restart install. <_<

">Install
 Inert your install info:  
 ">Readme.txt | ">License.txt