if ($_REQUEST['step']==1){ // step 1 - basic requirements if (!session_id()) $error['session'] = true; if (!is_writable(TMP_CORE_ROOT."inc/settings.inc.php")) $error['settings'] = true; // check writable settings file if (!check_folder(TMP_CORE_ROOT.NEWS_PICS)) $error['news_pics'] = true; if (!check_folder(TMP_CORE_ROOT.FORUM_UAVATARS)) $error['forum_uavatars'] = true; if (!check_folder(TMP_CORE_ROOT.FORUM_UPICTURES)) $error['forum_upictures'] = true; if (!check_folder(TMP_CORE_ROOT.FORUM_UFILES)) $error['forum_ufiles'] = true; if (!check_folder(TMP_CORE_ROOT.FLD_DOWNLS)) $error['fld_downls'] = true; if (!in_array("gd",get_loaded_extensions())) { $error['gb_installed'] = true; $error['gb_version'] = true; } if (!$error['gb_installed']){ $info = gd_info(); if (preg_replace("/[^\d\.]/","",$info['GD Version'])*1 < 2) $error['gd_version']= true; } if (!in_array("mysql",get_loaded_extensions())) $error['mysql'] = true; if (!$error){ $error['next'] = true; // enable next step $_SESSION['step1'] = true; // step 1 passed*/ } $sm->assign ("error",$error); $install_step = "step1";