echo "<br><span class='tab-s'>" . $strAdministratorAccount . "</span><br>"; echo "<img src='images/break-el.gif' width='100%' height='1' vspace='8'>"; echo "<span class='install'>" . $strInstallMessageAdmin . "</td></tr></table><br><br>"; phpAds_ShowBreak(); phpAds_ShowSettings(array(array('text' => $strSpecifyAdmin, 'items' => array(array('type' => 'text', 'name' => 'admin_fullname', 'text' => $strAdminFullName, 'size' => 35, 'req' => true), array('type' => 'break'), array('type' => 'text', 'name' => 'company_name', 'text' => $strCompanyName, 'size' => 35), array('type' => 'break'), array('type' => 'text', 'name' => 'admin_email', 'text' => $strAdminEmail, 'size' => 35, 'check' => 'email', 'req' => true), array('type' => 'break'), array('type' => 'select', 'name' => 'language', 'text' => $strLanguage, 'items' => phpAds_AvailableLanguages()), array('type' => 'break', 'size' => 'full'), array('type' => 'text', 'name' => 'admin', 'text' => $strUsername, 'size' => 25, 'req' => true), array('type' => 'break'), array('type' => 'password', 'name' => 'admin_pw', 'text' => $strNewPassword, 'size' => 25, 'req' => true), array('type' => 'break'), array('type' => 'password', 'name' => 'admin_pw2', 'text' => $strRepeatPassword, 'size' => 25, 'check' => 'compare:admin_pw', 'req' => true))), array('text' => $strSpecifyLocaton, 'items' => array(array('type' => 'text', 'name' => 'url_prefix', 'text' => $strUrlPrefix, 'size' => 35, 'check' => 'url', 'req' => true)))), $errormessage); break; case 4: // Database settings echo "<form name='settingsform' method='post' action='install.php' onSubmit='return phpAds_formCheck(this);'>"; echo "<br><br><table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td valign='top'>"; echo "<img src='images/install-database.gif'></td><td width='100%' valign='top'>"; echo "<br><span class='tab-s'>" . $strDatabasePage . "</span><br>"; echo "<img src='images/break-el.gif' width='100%' height='1' vspace='8'>"; echo "<span class='install'>" . $strInstallMessageDatabase . "</td></tr></table><br><br>"; phpAds_ShowBreak(); phpAds_ShowSettings(array(array('text' => $strDatabaseSettings, 'items' => array(array('type' => 'checkbox', 'name' => 'dblocal', 'text' => $strDbLocal, 'req' => true), array('type' => 'break'), array('type' => 'text', 'name' => 'dbhost', 'text' => $strDbHost, 'req' => true), array('type' => 'break'), array('type' => 'text', 'name' => 'dbport', 'text' => $strDbPort, 'depends' => 'dblocal==false'), array('type' => 'break'), array('type' => 'text', 'name' => 'dbuser', 'text' => $strDbUser, 'req' => true), array('type' => 'break'), array('type' => 'password', 'name' => 'dbpassword', 'text' => $strDbPassword), array('type' => 'break'), array('type' => 'text', 'name' => 'dbname', 'text' => $strDbName, 'req' => true))), array('text' => $strAdvancedSettings, 'items' => array(array('type' => 'text', 'name' => 'table_prefix', 'text' => $strTablesPrefix, 'req' => true), array('type' => 'break', 'visible' => phpAds_tableTypesSupported), array('type' => 'select', 'name' => 'table_type', 'text' => $strTablesType, 'items' => phpAds_getTableTypes(), 'visible' => phpAds_tableTypesSupported)))), $errormessage); break; case 5: // Admin settings if (!isset($fatal) || !count($fatal)) { echo "<form name='settingsform' method='post' action='settings-index.php'>"; echo "<br><br><table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td valign='top'>"; echo "<img src='images/install-success.gif'></td><td width='100%' valign='top'>"; echo "<br><span class='tab-s'>" . $strCongratulations . "</span><br>"; echo "<img src='images/break-el.gif' width='100%' height='1' vspace='8'>"; echo "<span class='install'>" . $strInstallSuccess . "</td></tr></table><br><br>"; } else { echo "<form name='settingsform' method='post' action='settings-index.php'>"; echo "<br><br><table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td valign='top'>"; echo "<img src='images/install-error.gif'></td><td width='100%' valign='top'>"; echo "<br><span class='tab-s'>" . $strInstallFailed . "</span><br>";
phpAds_PrepareHelp(); phpAds_PageHeader("5.1"); phpAds_ShowSections(array("5.1", "5.3", "5.4", "5.2")); phpAds_SettingsSelection("banner"); /*********************************************************/ /* Cache settings fields and get help HTML Code */ /*********************************************************/ // Split FTP settings if (!empty($phpAds_config['type_web_ftp'])) { if ($ftpserver = @parse_url($phpAds_config['type_web_ftp'])) { // Decode URL parts $ftpserver['user'] = urldecode($ftpserver['user']); $ftpserver['pass'] = urldecode($ftpserver['pass']); $ftpserver['path'] = urldecode($ftpserver['path']); $ftpserver['path'] = preg_replace('#^/#', '', $ftpserver['path']); $ftpserver['path'] = preg_replace('#/$#', '', $ftpserver['path']); $phpAds_config['type_web_ftp_host'] = $ftpserver['host'] . (isset($ftpserver['port']) && $ftpserver['port'] != '' ? ':' . $ftpserver['port'] : ''); $phpAds_config['type_web_ftp_user'] = $ftpserver['user']; $phpAds_config['type_web_ftp_password'] = $ftpserver['pass']; $phpAds_config['type_web_ftp_path'] = $ftpserver['path']; } } $settings = array(array('text' => $strDefaultBanners, 'items' => array(array('type' => 'text', 'name' => 'default_banner_url', 'text' => $strDefaultBannerUrl, 'size' => 35, 'check' => 'url'), array('type' => 'break'), array('type' => 'text', 'name' => 'default_banner_target', 'text' => $strDefaultBannerTarget, 'size' => 35, 'check' => 'url'))), array('text' => $strAllowedBannerTypes, 'items' => array(array('type' => 'checkbox', 'name' => 'type_sql_allow', 'text' => $strTypeSqlAllow), array('type' => 'checkbox', 'name' => 'type_web_allow', 'text' => $strTypeWebAllow), array('type' => 'checkbox', 'name' => 'type_url_allow', 'text' => $strTypeUrlAllow), array('type' => 'checkbox', 'name' => 'type_html_allow', 'text' => $strTypeHtmlAllow), array('type' => 'checkbox', 'name' => 'type_txt_allow', 'text' => $strTypeTxtAllow))), array('text' => $strTypeWebSettings, 'items' => array(array('type' => 'select', 'name' => 'type_web_mode', 'text' => $strTypeWebMode, 'items' => array($strTypeWebModeLocal, $strTypeWebModeFtp), 'depends' => 'type_web_allow==true'), array('type' => 'break'), array('type' => 'text', 'name' => 'type_web_url', 'text' => $strTypeWebUrl, 'size' => 35, 'check' => 'url', 'depends' => 'type_web_allow==true'), array('type' => 'break', 'size' => 'full'), array('type' => 'text', 'name' => 'type_web_dir', 'text' => $strTypeWebDir, 'size' => 35, 'depends' => 'type_web_allow==true && type_web_mode==0'), array('type' => 'break', 'size' => 'full'), array('type' => 'text', 'name' => 'type_web_ftp_host', 'text' => $strTypeFTPHost, 'size' => 35, 'depends' => 'type_web_allow==true && type_web_mode==1'), array('type' => 'break'), array('type' => 'text', 'name' => 'type_web_ftp_path', 'text' => $strTypeFTPDirectory, 'size' => 35, 'depends' => 'type_web_allow==true && type_web_mode==1'), array('type' => 'break'), array('type' => 'text', 'name' => 'type_web_ftp_user', 'text' => $strTypeFTPUsername, 'size' => 35, 'depends' => 'type_web_allow==true && type_web_mode==1'), array('type' => 'break'), array('type' => 'password', 'name' => 'type_web_ftp_password', 'text' => $strTypeFTPPassword, 'size' => 35, 'depends' => 'type_web_allow==true && type_web_mode==1'))), array('text' => $strTypeHtmlSettings, 'items' => array(array('type' => 'checkbox', 'name' => 'type_html_auto', 'text' => $strTypeHtmlAuto, 'depends' => 'type_html_allow==true'), array('type' => 'checkbox', 'name' => 'type_html_php', 'text' => $strTypeHtmlPhp, 'depends' => 'type_html_allow==true')))); /*********************************************************/ /* Main code */ /*********************************************************/ phpAds_ShowSettings($settings, $errormessage); /*********************************************************/ /* HTML framework */ /*********************************************************/ phpAds_PageFooter();
echo "<img src='images/break-el.gif' width='100%' height='1' vspace='8'>"; echo "<span class='install'>" . $strInstallMessage . "</td></tr></table><br><br>"; phpAds_ShowBreak(); phpAds_ShowSettings(array(array('text' => $strDatabaseSettings, 'items' => array(array('type' => 'text', 'name' => 'dbhost', 'text' => $strDbHost, 'req' => true), array('type' => 'break'), array('type' => 'text', 'name' => 'dbport', 'text' => $strDbPort, 'req' => true), array('type' => 'break'), array('type' => 'text', 'name' => 'dbuser', 'text' => $strDbUser, 'req' => true), array('type' => 'break'), array('type' => 'password', 'name' => 'dbpassword', 'text' => $strDbPassword, 'req' => true), array('type' => 'break'), array('type' => 'text', 'name' => 'dbname', 'text' => $strDbName, 'req' => true))), array('text' => $strAdvancedSettings, 'items' => array(array('type' => 'text', 'name' => 'table_prefix', 'text' => $strTablesPrefix, 'req' => true), array('type' => 'break', 'visible' => phpAds_tableTypesSupported), array('type' => 'select', 'name' => 'table_type', 'text' => $strTablesType, 'items' => phpAds_getTableTypes(), 'visible' => phpAds_tableTypesSupported)))), $errormessage); break; case 3: // Admin settings echo "<form name='settingsform' method='post' action='install.php' onSubmit='return phpAds_formCheck(this);'>"; echo "<br><br><table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td valign='top'>"; echo "<img src='images/install-welcome.gif'></td><td width='100%' valign='top'>"; echo "<br><span class='tab-s'>" . $strInstallWelcome . " " . $phpAds_version_readable . "</span><br>"; echo "<img src='images/break-el.gif' width='100%' height='1' vspace='8'>"; echo "<span class='install'>" . $strInstallMessage . "</td></tr></table><br><br>"; $phpAds_config['admin_pw'] = ''; phpAds_ShowBreak(); phpAds_ShowSettings(array(array('text' => $strAdminSettings, 'items' => array(array('type' => 'text', 'name' => 'admin', 'text' => $strUsername, 'size' => 25, 'req' => true), array('type' => 'break'), array('type' => 'password', 'name' => 'admin_pw', 'text' => $strNewPassword, 'size' => 25, 'req' => true), array('type' => 'break'), array('type' => 'password', 'name' => 'admin_pw2', 'text' => $strRepeatPassword, 'size' => 25, 'check' => 'compare:admin_pw', 'req' => true))), array('text' => $strOtherSettings, 'items' => array(array('type' => 'text', 'name' => 'url_prefix', 'text' => $strUrlPrefix, 'size' => 35, 'check' => 'url', 'req' => true), array('type' => 'break'), array('type' => 'text', 'name' => 'ssl_url_prefix', 'text' => $strSslUrlPrefix, 'size' => 35, 'check' => 'url', 'req' => true)))), $errormessage); break; case 4: // Admin settings if (!isset($fatal) || !count($fatal)) { echo "<form name='settingsform' method='post' action='settings-index.php'>"; echo "<br><br><table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td valign='top'>"; echo "<img src='images/install-welcome.gif'></td><td width='100%' valign='top'>"; echo "<br><span class='tab-s'>" . $strInstallWelcome . " " . $phpAds_version_readable . "</span><br>"; echo "<img src='images/break-el.gif' width='100%' height='1' vspace='8'>"; echo "<span class='install'>" . $strInstallSuccess . "</td></tr></table><br><br>"; } else { echo "<form name='settingsform' method='post' action='settings-index.php'>"; echo "<br><br><table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td valign='top'>"; echo "<img src='images/install-welcome.gif'></td><td width='100%' valign='top'>"; echo "<br><span class='tab-s'>" . $strInstallWelcome . " " . $phpAds_version_readable . "</span><br>";