re-run the installer."); } require_once('../setup.php'); $ps_instance = $_REQUEST['instance']; $ps_action = $_REQUEST['action']; $pn_page = $_REQUEST['page']; $ps_email = isset($_REQUEST['email']) ? $_REQUEST['email'] : ''; $ps_profile = isset($_REQUEST['profile']) ? $_REQUEST['profile'] : ''; $pb_overwrite = (isset($_REQUEST['overwrite']) && defined('__CA_ALLOW_INSTALLER_TO_OVERWRITE_EXISTING_INSTALLS__')) ? (bool)$_REQUEST['overwrite'] : false; $pb_debug = (isset($_REQUEST['debug']) && defined('__CA_ALLOW_INSTALLER_TO_OVERWRITE_EXISTING_INSTALLS__')) ? (bool)$_REQUEST['debug'] : false; $va_errors = array(); $va_tmp = explode("/", str_replace("\\", "/", $_SERVER['SCRIPT_NAME'])); array_pop($va_tmp); $vs_url_path = join("/", $va_tmp); require_once('../app/helpers/htmlFormHelpers.php'); require_once('../app/helpers/configurationHelpers.php'); require_once("inc/Installer.php"); // get current locale $locale = 'en_US'; // get current theme $theme = 'default'; $_ = new Zend_Translate('gettext', __CA_APP_DIR__.'/locale/'.$locale.'/messages.mo', $locale); require_once(__CA_LIB_DIR__.'/core/Configuration.php'); require_once(__CA_LIB_DIR__.'/core/Db.php'); require_once(__CA_LIB_DIR__.'/core/Datamodel.php'); $o_dm = Datamodel::load(); // Check setup.php settings // ... if ($pn_page == 2) { $ps_email = $_REQUEST['email']; if (!preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9\._\-\+])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/" , $ps_email)) { $va_errors[] = 'Administrator e-mail address is invalid'; $pn_page = 1; } } ?>