UpdateSubject($param); break; case 16: GetSubjects(); break; case 17: InsertLang($param); break; case 18: DelLang($param); break; case 19: UpdateLang($param); break; case 20: GetLangs(); break; case 21: InsertDialect($param); break; case 22: DelDialect($param); break; case 23: UpdateDialect($param); break; case 24: GetDialects($param->lang); break; case 25: DelFile($param);
public function index() { SubMenu('语言管理', array(array('语言列表及操作', 'language', 1))); $Langs = GetLangs(); array_unshift($Langs, "Auto"); foreach ($Langs as $k => $val) { $laname = Iif($val == 'Auto', '自动', Iif($val == 'Chinese', '中文', $val)); $langstr .= '<input type="radio" name="Lang" id="Lang_' . $k . '" value="' . $val . '"' . Iif(APP::$_CFG['Lang'] == $val, ' checked') . '><label for="Lang_' . $k . '">' . $laname . '</label><i class="w20"></i>'; } TableHeader('访客默认语言'); TableRow('<form> <b>设置访客窗口默认语言:</b><i class="w20"></i>' . $langstr . ' <input type="submit" value="保存设置" class="cancel" id="setlang"><BR> <font class=grey>注: 当选择 <span class=note>自动</span> 时, 访客对话窗口将根据其浏览器语言自动选择语言, 非中文浏览器将显示英文信息提示.</font> </form>'); TableFooter(); BR(2); TableHeader('语言文件列表'); $files = GetLangs(1); $columncount = 0; echo '<td class="td last"><table width="100%" border="0" cellpadding="5" cellspacing="0">'; for ($i = 0; $i < count($files); $i++) { $columncount++; if ($columncount == 1) { echo '<tr>'; } echo '<td width="33%">'; $this->DisplayFileDetails($files[$i]); echo '</td>'; if ($columncount == 3) { echo '</tr>'; $columncount = 0; } } @closedir($handle); if ($columncount != 0 && $columncount != 3) { while ($columncount < 3) { $columncount++; echo '<td> </td>'; } echo '</tr>'; } echo '</table></td>'; TableFooter(); echo '<script type="text/javascript"> $(function(){ $("#setlang").click(function(e){ var data = $(this).parent().serialize(); ajax("' . BURL('language/ajax?action=setlang') . '", data, function(data){ showInfo("访客窗口默认语言设置成功.", "Ajax操作", "", 1, 1); }); e.preventDefault(); }); $("#main a.ajax").click(function(e){ var _me=$(this); showDialog("确定删除语言文件: " + _me.attr("file") + " 吗?", "确认操作", function(){ ajax("' . BURL('language/ajax?action=delete') . '", {file: _me.attr("file")}, function(data){ _me.parent().parent().hide(); }); }); e.preventDefault(); }); }); </script>'; }
} //########### PRINT DEFAULT ########### if ($action == 'displaysettings') { echo '<form method="post" action="admin.settings.php"> <input type="hidden" name="action" value="updatesettings"> <table id="welive_list" border="0" cellpadding="0" cellspacing="0" class="moreinfo"> <thead> <tr> <th colspan="2">系统设置:</th> </tr> </thead> <tbody> <tr> <td><B>前台默认语言</B><BR>当选择 \'<b>自动</b>\' 时, 将根据访客的浏览器语言自动选择语言, 中文浏览器进入中文, 其它语言浏览器自动进入英文.</td> <td>'; $Langs = GetLangs(); $Select = NewObject('Select'); $Select->Name = 'settings[cLang]'; $Select->SelectedValue = $_CFG['cLang']; $Select->AddOption('Auto', '自动'); foreach ($Langs as $val) { $Select->AddOption($val, $val); } echo $Select->Get(); echo '</td> </tr> <tr> <td><B>客服小面板高度</B><BR>调用WeLive客服系统时显示客服小面板的高度(像素). 随客服数量的增减, 需要设置此项调整面板显示高度.</td> <td> <input type="text" size="40" name="settings[cPanalHeight]" value="' . $_CFG['cPanalHeight'] . '">
function ShowConfigPage() { global $CONF, $LNG, $USER; if ($_POST['opt_save'] == "1") { $Log .= "\n" . $LNG['log_the_user'] . $USER['username'] . $LNG['log_sett_no1'] . ":\n"; if (isset($_POST['closed']) && $_POST['closed'] == 'on') { $CONF['game_disable'] = 1; } else { $CONF['game_disable'] = 0; } if (isset($_POST['noobprotection']) && $_POST['noobprotection'] == 'on') { $CONF['noobprotection'] = 1; } else { $CONF['noobprotection'] = 0; } if (isset($_POST['debug']) && $_POST['debug'] == 'on') { $CONF['debug'] = 1; } else { $CONF['debug'] = 0; } if (isset($_POST['adm_attack']) && $_POST['adm_attack'] == 'on') { $CONF['adm_attack'] = 1; } else { $CONF['adm_attack'] = 0; } if (isset($_POST['newsframe']) && $_POST['newsframe'] == 'on') { $CONF['OverviewNewsFrame'] = 1; $CONF['OverviewNewsText'] = $_POST['NewsText']; } else { $CONF['OverviewNewsFrame'] = 0; $CONF['OverviewNewsText'] = $_POST['NewsText']; } if (isset($_POST['capaktiv']) && $_POST['capaktiv'] == 'on') { $CONF['capaktiv'] = 1; } else { $CONF['capaktiv'] = 0; } if (isset($_POST['reg_closed']) && $_POST['reg_closed'] == 'on') { $CONF['reg_closed'] = 1; } else { $CONF['reg_closed'] = 0; } if (isset($_POST['user_valid']) && $_POST['user_valid'] == 'on') { $CONF['user_valid'] = 1; } else { $CONF['user_valid'] = 0; } if (isset($_POST['ga_active']) && $_POST['ga_active'] == 'on') { $CONF['ga_active'] = 1; } else { $CONF['ga_active'] = 0; } if (isset($_POST['bgm_active']) && $_POST['bgm_active'] == 'on') { $CONF['bgm_active'] = 1; } else { $CONF['bgm_active'] = 0; } $CONF['close_reason'] = request_var('close_reason', '', true); $CONF['game_name'] = request_var('game_name', '', true); $CONF['forum_url'] = request_var('forum_url', '', true); $CONF['game_speed'] = 2500 * request_var('game_speed', 0.0); $CONF['fleet_speed'] = 2500 * request_var('fleet_speed', 0.0); $CONF['resource_multiplier'] = request_var('resource_multiplier', 0.0); $CONF['halt_speed'] = request_var('halt_speed', 0.0); $CONF['initial_fields'] = request_var('initial_fields', 0); $CONF['metal_basic_income'] = request_var('metal_basic_income', 0); $CONF['crystal_basic_income'] = request_var('crystal_basic_income', 0); $CONF['deuterium_basic_income'] = request_var('deuterium_basic_income', 0); $CONF['lang'] = request_var('lang', ''); $CONF['Defs_Cdr'] = request_var('Defs_Cdr', 0); $CONF['Fleet_Cdr'] = request_var('Fleet_Cdr', 0); $CONF['noobprotectiontime'] = request_var('noobprotectiontime', 0); $CONF['noobprotectionmulti'] = request_var('noobprotectionmulti', 0); $CONF['capprivate'] = request_var('capprivate', ''); $CONF['cappublic'] = request_var('cappublic', ''); $CONF['min_build_time'] = request_var('min_build_time', 0); $CONF['ga_key'] = request_var('ga_key', '', true); $CONF['bgm_file'] = request_var('bgm_file', '', true); $CONF['smtp_host'] = request_var('smtp_host', '', true); $CONF['smtp_port'] = request_var('smtp_port', 0); $CONF['smtp_user'] = request_var('smtp_user', '', true); $CONF['smtp_sendmail'] = request_var('smtp_sendmail', '', true); $CONF['smtp_pass'] = request_var('smtp_pass', '', true); $CONF['smtp_ssl'] = request_var('smtp_ssl', ''); $CONF['ftp_server'] = request_var('ftp_server', '', true); $CONF['ftp_user_name'] = request_var('ftp_user_name', '', true); $CONF['ftp_root_path'] = request_var('ftp_root_path', '', true); $Temp = request_var('ftp_user_pass', '', true); $CONF['ftp_user_pass'] = str_pad('', strlen($CONF['ftp_user_pass']), 'x') == $Temp ? $CONF['ftp_user_pass'] : $Temp; update_config('noobprotectiontime', $CONF['noobprotectiontime']); update_config('noobprotectionmulti', $CONF['noobprotectionmulti']); update_config('noobprotection', $CONF['noobprotection']); update_config('Defs_Cdr', $CONF['Defs_Cdr']); update_config('Fleet_Cdr', $CONF['Fleet_Cdr']); update_config('game_disable', $CONF['game_disable']); update_config('close_reason', $CONF['close_reason']); update_config('OverviewNewsFrame', $CONF['OverviewNewsFrame']); update_config('reg_closed', $CONF['reg_closed']); update_config('OverviewNewsText', $CONF['OverviewNewsText']); update_config('game_name', $CONF['game_name']); update_config('forum_url', $CONF['forum_url']); update_config('game_speed', $CONF['game_speed']); update_config('fleet_speed', $CONF['fleet_speed']); update_config('resource_multiplier', $CONF['resource_multiplier']); update_config('halt_speed', $CONF['halt_speed']); update_config('initial_fields', $CONF['initial_fields']); update_config('metal_basic_income', $CONF['metal_basic_income']); update_config('crystal_basic_income', $CONF['crystal_basic_income']); update_config('deuterium_basic_income', $CONF['deuterium_basic_income']); update_config('debug', $CONF['debug']); update_config('adm_attack', $CONF['adm_attack']); update_config('lang', $CONF['lang']); update_config('capaktiv', $CONF['capaktiv']); update_config('capprivate', $CONF['capprivate']); update_config('cappublic', $CONF['cappublic']); update_config('min_build_time', $CONF['min_build_time']); update_config('smtp_host', $CONF['smtp_host']); update_config('smtp_port', $CONF['smtp_port']); update_config('smtp_user', $CONF['smtp_user']); update_config('smtp_pass', $CONF['smtp_pass']); update_config('smtp_ssl', $CONF['smtp_ssl']); update_config('smtp_sendmail', $CONF['smtp_sendmail']); update_config('user_valid', $CONF['user_valid']); update_config('ftp_server', $CONF['ftp_server']); update_config('ftp_user_name', $CONF['ftp_user_name']); update_config('ftp_user_pass', $CONF['ftp_user_pass']); update_config('ftp_root_path', $CONF['ftp_root_path']); update_config('ga_active', $CONF['ga_active']); update_config('ga_key', $CONF['ga_key']); update_config('bgm_active', $CONF['bgm_active']); update_config('bgm_file', $CONF['bgm_file']); } $template = new template(); $template->page_header(); $template->assign_vars(array('se_server_parameters' => $LNG['se_server_parameters'], 'se_name' => $LNG['se_name'], 'se_server_name' => $LNG['se_server_name'], 'se_cookie_name' => $LNG['se_cookie_name'], 'se_cookie_advert' => $LNG['se_cookie_advert'], 'se_lang' => $LNG['se_lang'], 'se_general_speed' => $LNG['se_general_speed'], 'se_fleet_speed' => $LNG['se_fleet_speed'], 'se_halt_speed' => $LNG['se_halt_speed'], 'se_normal_speed' => $LNG['se_normal_speed'], 'se_normal_speed_fleet' => $LNG['se_normal_speed_fleet'], 'se_resources_producion_speed' => $LNG['se_resources_producion_speed'], 'se_normal_speed_resoruces' => $LNG['se_normal_speed_resoruces'], 'se_normal_speed_halt' => $LNG['se_normal_speed_halt'], 'se_forum_link' => $LNG['se_forum_link'], 'se_server_op_close' => $LNG['se_server_op_close'], 'se_server_status_message' => $LNG['se_server_status_message'], 'se_server_planet_parameters' => $LNG['se_server_planet_parameters'], 'se_initial_fields' => $LNG['se_initial_fields'], 'se_metal_production' => $LNG['se_metal_production'], 'se_admin_protection' => $LNG['se_admin_protection'], 'se_crystal_production' => $LNG['se_crystal_production'], 'se_deuterium_production' => $LNG['se_deuterium_production'], 'se_several_parameters' => $LNG['se_several_parameters'], 'se_min_build_time' => $LNG['se_min_build_time'], 'se_reg_closed' => $LNG['se_reg_closed'], 'se_verfiy_mail' => $LNG['se_verfiy_mail'], 'se_min_build_time_info' => $LNG['se_min_build_time_info'], 'se_verfiy_mail_info' => $LNG['se_verfiy_mail_info'], 'se_fields' => $LNG['se_fields'], 'se_per_hour' => $LNG['se_per_hour'], 'se_debug_mode' => $LNG['se_debug_mode'], 'se_title_admins_protection' => $LNG['se_title_admins_protection'], 'se_debug_message' => $LNG['se_debug_message'], 'se_ships_cdr_message' => $LNG['se_ships_cdr_message'], 'se_def_cdr_message' => $LNG['se_def_cdr_message'], 'se_ships_cdr' => $LNG['se_ships_cdr'], 'se_def_cdr' => $LNG['se_def_cdr'], 'se_noob_protect' => $LNG['se_noob_protect'], 'se_noob_protect3' => $LNG['se_noob_protect3'], 'se_noob_protect2' => $LNG['se_noob_protect2'], 'se_noob_protect_e2' => $LNG['se_noob_protect_e2'], 'se_noob_protect_e3' => $LNG['se_noob_protect_e3'], 'se_news_head' => $LNG['se_news_head'], 'se_news_active' => $LNG['se_news_active'], 'se_news_info' => $LNG['se_news_info'], 'se_news' => $LNG['se_news'], 'se_news_limit' => $LNG['se_news_limit'], 'se_recaptcha_head' => $LNG['se_recaptcha_head'], 'se_recaptcha_active' => $LNG['se_recaptcha_active'], 'se_recaptcha_desc' => $LNG['se_recaptcha_desc'], 'se_recaptcha_public' => $LNG['se_recaptcha_public'], 'se_recaptcha_private' => $LNG['se_recaptcha_private'], 'se_smtp' => $LNG['se_smtp'], 'se_smtp_info' => $LNG['se_smtp_info'], 'se_smtp_host' => $LNG['se_smtp_host'], 'se_smtp_host_info' => $LNG['se_smtp_host_info'], 'se_smtp_ssl' => $LNG['se_smtp_ssl'], 'se_smtp_ssl_info' => $LNG['se_smtp_ssl_info'], 'se_smtp_port' => $LNG['se_smtp_port'], 'se_smtp_port_info' => $LNG['se_smtp_port_info'], 'se_smtp_user' => $LNG['se_smtp_user'], 'se_smtp_pass' => $LNG['se_smtp_pass'], 'se_smtp_sendmail' => $LNG['se_smtp_sendmail'], 'se_smtp_sendmail_info' => $LNG['se_smtp_sendmail_info'], 'se_ftp' => $LNG['se_ftp'], 'se_ftp_info' => $LNG['se_ftp_info'], 'se_ftp_host' => $LNG['se_ftp_host'], 'se_ftp_user' => $LNG['se_ftp_user'], 'se_ftp_pass' => $LNG['se_ftp_pass'], 'se_ftp_dir' => $LNG['se_ftp_dir'], 'se_ftp_dir_info' => $LNG['se_ftp_dir_info'], 'se_google' => $LNG['se_google'], 'se_google_active' => $LNG['se_google_active'], 'se_google_info' => $LNG['se_google_info'], 'se_google_key' => $LNG['se_google_key'], 'se_google_key_info' => $LNG['se_google_key_info'], 'se_bgm_login' => $LNG['se_bgm_login'], 'se_bgm_active' => $LNG['se_bgm_active'], 'se_bgm_info' => $LNG['se_bgm_info'], 'se_bgm_file' => $LNG['se_bgm_file'], 'se_bgm_file_info' => $LNG['se_bgm_file_info'], 'se_google_key_info' => $LNG['se_google_key_info'], 'se_save_parameters' => $LNG['se_save_parameters'], 'game_name' => $CONF['game_name'], 'game_speed' => $CONF['game_speed'] / 2500, 'fleet_speed' => $CONF['fleet_speed'] / 2500, 'resource_multiplier' => $CONF['resource_multiplier'], 'halt_speed' => $CONF['halt_speed'], 'forum_url' => $CONF['forum_url'], 'initial_fields' => $CONF['initial_fields'], 'metal_basic_income' => $CONF['metal_basic_income'], 'crystal_basic_income' => $CONF['crystal_basic_income'], 'deuterium_basic_income' => $CONF['deuterium_basic_income'], 'game_disable' => $CONF['game_disable'], 'close_reason' => $CONF['close_reason'], 'debug' => $CONF['debug'], 'adm_attack' => $CONF['adm_attack'], 'cookie' => $CONF['COOKIE_NAME'], 'defenses' => $CONF['Defs_Cdr'], 'shiips' => $CONF['Fleet_Cdr'], 'noobprot' => $CONF['noobprotection'], 'noobprot2' => $CONF['noobprotectiontime'], 'noobprot3' => $CONF['noobprotectionmulti'], 'smtp_host' => $CONF['smtp_host'], 'smtp_port' => $CONF['smtp_port'], 'smtp_user' => $CONF['smtp_user'], 'smtp_pass' => $CONF['smtp_pass'], 'smtp_sendmail' => $CONF['smtp_sendmail'], 'smtp_ssl' => $CONF['smtp_ssl'], 'user_valid' => $CONF['user_valid'], 'newsframe' => $CONF['OverviewNewsFrame'], 'reg_closed' => $CONF['reg_closed'], 'NewsTextVal' => $CONF['OverviewNewsText'], 'capprivate' => $CONF['capprivate'], 'cappublic' => $CONF['cappublic'], 'capaktiv' => $CONF['capaktiv'], 'min_build_time' => $CONF['min_build_time'], 'ftp_server' => $CONF['ftp_server'], 'ftp_user_name' => $CONF['ftp_user_name'], 'ftp_user_pass' => str_pad('', strlen($CONF['ftp_user_pass']), 'x'), 'ftp_root_path' => $CONF['ftp_root_path'], 'ga_active' => $CONF['ga_active'], 'ga_key' => $CONF['ga_key'], 'bgm_active' => $CONF['bgm_active'], 'bgm_file' => $CONF['bgm_file'], 'Selector' => array('langs' => GetLangs(), 'mail' => array('' => $LNG['se_smtp_ssl_1'], 'ssl' => $LNG['se_smtp_ssl_2'], 'tls' => $LNG['se_smtp_ssl_3'])), 'lang' => $CONF['lang'])); $template->show('adm/ConfigBody.tpl'); }
public function index() { echo '<form method="post" action="' . BURL('settings/save') . '">'; TableHeader('基本设置'); TableRow(array('<B>客服系统URL</B><BR><font class=grey>WeLive在线客服系统安装后的完整URL, 用于找回密码、邮件发送等. 请以 <span class=note>/</span> 结束.<BR>将: <span class=note><script type="text/javascript" charset="UTF-8" src="' . BASEURL . 'welive.js"></script></span><BR>插入网页代码的<head></head>内, 才能加载(显示)WeLive客服小面板, 此面板为访客提供对话窗口.</font>', '<input type="text" style="width:292px;" name="settings[BaseUrl]" value="' . BASEURL . '">')); $Radio = new Radio(); $Radio->Name = 'settings[Actived]'; $Radio->SelectedID = APP::$_CFG['Actived']; $Radio->AddOption(1, '开启', '<i class="w20"></i>'); $Radio->AddOption(0, '关闭', ' '); TableRow(array('<B>系统工作状态</B><BR><font class=grey>WeLive在线客服系统工作状态, 设置为 <span class=note>关闭</span> 时, 将不提供任何服务, 包括留言.</font>', $Radio->Get())); $Radio->Clear(); $Radio->Name = 'settings[History]'; $Radio->SelectedID = APP::$_CFG['History']; $Radio->AddOption(1, '保存记录', '<i class="w20"></i>'); $Radio->AddOption(0, '不保存', ' '); TableRow(array('<B>保存对话记录</B><BR><font class=grey>将客人与客服间的对话记录保存到MySQL数据库中. 如果追求 <span class=note>更快的交互性能</span>, 可以关闭保存记录的功能.<BR>注: <span class=note>此项设置仅在Socket服务重启后生效</span>, 进入客服后可以重启Socket服务.</font>', $Radio->Get())); $Radio->Clear(); $Radio->Name = 'settings[Record]'; $Radio->SelectedID = APP::$_CFG['Record']; $Radio->AddOption(0, '不显示', '<i class="w20"></i>'); $Radio->AddOption(10, '10条', '<i class="w20"></i>'); $Radio->AddOption(20, '20条', '<i class="w20"></i>'); $Radio->AddOption(30, '30条', '<i class="w20"></i>'); $Radio->AddOption(40, '40条', '<i class="w20"></i>'); TableRow(array('<B>显示对话记录数</B><BR><font class=grey>客人再次进入客服后, 系统自动显示多少条对话历史记录. <span class=note>此项设置依赖上一项设置</span>.', $Radio->Get())); $Langs = GetLangs(); $Radio->Clear(); $Radio->Name = 'settings[Lang]'; $Radio->SelectedID = APP::$_CFG['Lang']; $Radio->AddOption('Auto', '自动', '<i class="w20"></i>'); foreach ($Langs as $lang) { $lang_name = Iif($lang == 'Chinese', '中文', $lang); $Radio->AddOption($lang, $lang_name, '<i class="w20"></i>'); } TableRow(array('<B>访客窗口默认语言</B><BR><font class=grey>当选择 <span class=note>自动</span> 时, 访客对话窗口将根据其浏览器语言自动选择语言, 非中文浏览器将显示英文信息提示.</font>', $Radio->Get())); TableRow(array('<B>Socket服务端口号</B><BR><font class=grey>WeLive将建立Socket服务进行通讯, 此服务占用服务器的哪个端口号, <span class=note>此项设置仅在Socket服务重启后生效</span>.<BR>Web服务器开放的端口号一般为: 1 ~ 65535, 其中1000以下为众所周知的端口号, 建议设置成1000以上.<BR>如果您对此项设置不太了解, <span class=note>建议咨询您的服务器提供商</span>.</font>', '<input type="text" style="width:80px;" name="settings[SocketPort]" value="' . APP::$_CFG['SocketPort'] . '">')); $Select = new Select(); $Select->Name = 'settings[Update]'; $Select->SelectedValue = APP::$_CFG['Update']; for ($i = 1; $i <= 20; $i++) { $Select->AddOption($i, "{$i} 秒"); } TableRow(array('<B>输入状态更新时间</B><BR><font class=grey>' . APP_NAME . '对话时客服可以看到客人的输入状态, 更新这个状态信息的时间.<BR>注意: <span class=note>设置的时间越短,服务器的承载压力越大</span>. 如果您的服务器较慢, 建议设置为较大值.</font>', $Select->Get())); $Select->Clear(); $Select->Name = 'settings[AutoOffline]'; $Select->SelectedValue = APP::$_CFG['AutoOffline']; for ($i = 6; $i <= 60; $i += 2) { $Select->AddOption($i, "{$i} 分钟"); } TableRow(array('<B>自动离线时间</B><BR><font class=grey>访客保持沉默的状态(不发言)多少分钟后, 系统会自动将其设置成离线, 并断开其与服务器的Socket连接.<BR><span class=note>此项设置有利于减少服务器资源的浪费, 保持其承载能力</span>.</font>', $Select->Get())); TableRow(array('<B>防机器人代码</B><BR><font class=grey>此码用于防止机器人进入客服、破解后台管理密码等. 可时常更换, 但<span class=note>不能设置为空</span>.</font>', '<input type="text" style="width:150px;" name="settings[KillRobotCode]" value="' . APP::$_CFG['KillRobotCode'] . '">')); $Select->Clear(); $Select->Name = 'settings[Timezone]'; $Select->SelectedValue = APP::$_CFG['Timezone']; $Select->AddOption('-12', '(GMT -12) Eniwetok,Kwajalein'); $Select->AddOption('-11', '(GMT -11) Midway Island,Samoa'); $Select->AddOption('-10', '(GMT -10) Hawaii'); $Select->AddOption('-9', '(GMT -9) Alaska'); $Select->AddOption('-8', '(GMT -8) Pacific Time(US & Canada)'); $Select->AddOption('-7', '(GMT -7) Mountain Time(US & Canada)'); $Select->AddOption('-6', '(GMT -6) Mexico City'); $Select->AddOption('-5', '(GMT -5) Bogota,Lima'); $Select->AddOption('-4', '(GMT -4) Caracas,La Paz'); $Select->AddOption('-3', '(GMT -3) Brazil,Buenos Aires,Georgetown'); $Select->AddOption('-2', '(GMT -2) Mid-Atlantic'); $Select->AddOption('-1', '(GMT -1) Azores,CapeVerde Islands'); $Select->AddOption('', '(GMT) London,Lisbon,Casablanca'); $Select->AddOption('+1', '(GMT +1) Paris,Brussels,Copenhagen'); $Select->AddOption('+2', '(GMT +2) Kaliningrad,South Africa'); $Select->AddOption('+3', '(GMT +3) Moscow,Baghdad,Petersburg'); $Select->AddOption('+4', '(GMT +4) Abu Dhabi,Muscat,Baku,Tbilisi'); $Select->AddOption('+5', '(GMT +5) Karachi,Islamabad,Tashkent'); $Select->AddOption('+6', '(GMT +6) Almaty,Dhaka,Colombo'); $Select->AddOption('+7', '(GMT +7) Bangkok,Hanoi,Jakarta'); $Select->AddOption('+8', '(GMT +8) 北京, 香港, 新加坡'); $Select->AddOption('+9', '(GMT +9) Tokyo,Osaka,Yakutsk'); $Select->AddOption('+10', '(GMT +10) Australia,Guam,Vladivostok'); $Select->AddOption('+11', '(GMT +11) Magadan,Solomon Islands'); $Select->AddOption('+12', '(GMT +12) Auckland,Wellington,Fiji'); TableRow(array('<B>系统默认时区</B><BR><font class=grey>' . APP_NAME . '在线客服系统将此项设置的时区显示日期和时间.</font>', $Select->Get())); $Select->Clear(); $Select->Name = 'settings[DateFormat]'; $Select->SelectedValue = APP::$_CFG['DateFormat']; $Select->AddOption('Y-m-d', "2010-08-12"); $Select->AddOption('Y-n-j', "2010-8-12"); $Select->AddOption('Y/m/d', "2010/08/12"); $Select->AddOption('Y/n/j', "2010/8/12"); $Select->AddOption('Y年n月j日', "2010年8月12日"); $Select->AddOption('m-d-Y', "08-12-2010"); $Select->AddOption('m/d/Y', "08/12/2010"); $Select->AddOption('M j, Y', "Aug 12, 2010"); TableRow(array('<B>日期格式</B><BR><font class=grey>系统显示日期的格式.</font>', $Select->Get())); TableRow(array('<B>系统页面标题</B><BR><font class=grey>' . APP_NAME . '在线客服系统后台管理或客服操作页面显示的标题.</font>', '<input type="text" style="width:292px;" name="settings[Title]" value="' . APP::$_CFG['Title'] . '">')); TableRow(array('<B>欢迎信息(<span class=blue>中文</span>)</B><BR><font class=grey>访客(中文浏览器)进入客服后,首次显示的问候语.</font>', '<input type="text" style="width:292px;" name="settings[Welcome]" value="' . APP::$_CFG['Welcome'] . '">')); TableRow(array('<B>欢迎信息(<span class=red>English</span>)</B><BR><font class=grey>访客(非中文浏览器)进入客服后,首次显示的问候语.</font>', '<input type="text" style="width:292px;" name="settings[Welcome_en]" value="' . APP::$_CFG['Welcome_en'] . '">')); TableFooter(); PrintSubmit('保存设置', '取消'); }
public function __construct() { global $USER, $PLANET, $CONF, $LNG, $LANG, $db; $mode = request_var('mode', ''); $exit = request_var('exit_modus', ''); $db_deaktjava = request_var('db_deaktjava', ''); $PlanetRess = new ResourceUpdate(); $PlanetRess->CalcResource(); $PlanetRess->SavePlanetToDB(); $template = new template(); $template->page_header(); $template->page_topnav(); $template->page_leftmenu(); $template->page_planetmenu(); $template->page_footer(); $SQLQuery = ""; switch ($mode) { case "exit": if ($exit == 'on' and $USER['urlaubs_until'] <= TIMESTAMP) { $SQLQuery .= "UPDATE " . USERS . " SET `urlaubs_modus` = '0', `urlaubs_until` = '0' WHERE `id` = '" . $USER['id'] . "' LIMIT 1;UPDATE " . PLANETS . " SET `last_update` = '" . TIMESTAMP . "', `energy_used` = '10', `energy_max` = '10', `metal_mine_porcent` = '10', `crystal_mine_porcent` = '10', `deuterium_sintetizer_porcent` = '10', `solar_plant_porcent` = '10', `fusion_plant_porcent` = '10', `solar_satelit_porcent` = '10' WHERE `id_owner` = '" . $USER["id"] . "';"; } if ($db_deaktjava == 'on') { $SQLQuery .= "UPDATE " . USERS . " SET `db_deaktjava` = '" . TIMESTAMP . "' WHERE `id` = '" . $USER['id'] . "' LIMIT 1;"; } else { $SQLQuery .= "UPDATE " . USERS . " SET `db_deaktjava` = '0' WHERE `id` = '" . $USER['id'] . "' LIMIT 1;"; } $db->multi_query($SQLQuery); $template->message($LNG['op_options_changed'], '?page=options', 1); break; case "change": $design = request_var('design', ''); $noipcheck = request_var('noipcheck', ''); $USERname = request_var('db_character', $USER['username'], UTF8_SUPPORT); $db_email = request_var('db_email', $USER['email']); $spio_anz = max(request_var('spio_anz', 5), 1); $settings_tooltiptime = request_var('settings_tooltiptime', 1); $settings_fleetactions = max(request_var('settings_fleetactions', 1), 1); $settings_planetmenu = request_var('settings_planetmenu', ''); $settings_esp = request_var('settings_esp', ''); $settings_wri = request_var('settings_wri', ''); $settings_bud = request_var('settings_bud', ''); $settings_mis = request_var('settings_mis', ''); $settings_rep = request_var('settings_rep', ''); $settings_tnstor = request_var('settings_tnstor', ''); $urlaubs_modus = request_var('urlaubs_modus', ''); $SetSort = request_var('settings_sort', 0); $SetOrder = request_var('settings_order', 0); $dpath = request_var('dpath', ''); $db_password = request_var('db_password', ''); $newpass1 = request_var('newpass1', ''); $newpass2 = request_var('newpass2', ''); $hof = request_var('hof', ''); $adm_pl_prot = request_var('adm_pl_prot', ''); $langs = request_var('langs', 'de'); $design = $design == 'on' ? 1 : 0; $hof = $hof == 'on' ? 1 : 0; $noipcheck = $noipcheck == 'on' ? 1 : 0; $settings_esp = $settings_esp == 'on' ? 1 : 0; $settings_wri = $settings_wri == 'on' ? 1 : 0; $settings_bud = $settings_bud == 'on' ? 1 : 0; $settings_mis = $settings_mis == 'on' ? 1 : 0; $settings_rep = $settings_rep == 'on' ? 1 : 0; $settings_tnstor = $settings_tnstor == 'on' ? 1 : 0; $settings_planetmenu = $settings_planetmenu == 'on' ? 1 : 0; $db_deaktjava = $db_deaktjava == 'on' ? TIMESTAMP : 0; $langs = array_key_exists($langs, $LNG['langs']) ? $langs : $LANG; if ($urlaubs_modus == 'on') { if (!$this->CheckVMode()) { $template->message($LNG['op_cant_activate_vacation_mode'], '?page=options', 3); exit; } $SQLQuery .= "UPDATE " . USERS . " SET \r\n\t\t\t\t\t\t\t\t\t`urlaubs_modus` = '1',\r\n\t\t\t\t\t\t\t\t\t`urlaubs_until` = '" . (TIMESTAMP + VACATION_MIN_TIME) . "'\r\n\t\t\t\t\t\t\t\t\tWHERE `id` = '" . $USER["id"] . "';"; "UPDATE " . PLANETS . " SET\r\n\t\t\t\t\t\t\t\t\t`energy_used` = '0',\r\n\t\t\t\t\t\t\t\t\t`energy_max` = '0',\r\n\t\t\t\t\t\t\t\t\t`metal_mine_porcent` = '0',\r\n\t\t\t\t\t\t\t\t\t`crystal_mine_porcent` = '0',\r\n\t\t\t\t\t\t\t\t\t`deuterium_sintetizer_porcent` = '0',\r\n\t\t\t\t\t\t\t\t\t`solar_plant_porcent` = '0',\r\n\t\t\t\t\t\t\t\t\t`fusion_plant_porcent` = '0',\r\n\t\t\t\t\t\t\t\t\t`solar_satelit_porcent` = '0',\r\n\t\t\t\t\t\t\t\t\t`metal_perhour` = '0',\r\n `crystal_perhour` = '0',\r\n `deuterium_perhour` = '0'\r\n WHERE `id_owner` = '" . $USER["id"] . "';"; } $SQLQuery .= "UPDATE " . USERS . " SET\r\n\t\t\t\t\t\t\t\t`dpath` = '" . $db->sql_escape($dpath) . "',\r\n\t\t\t\t\t\t\t\t`design` = '" . $design . "',\r\n\t\t\t\t\t\t\t\t`noipcheck` = '" . $noipcheck . "',\r\n\t\t\t\t\t\t\t\t`planet_sort` = '" . $SetSort . "',\r\n\t\t\t\t\t\t\t\t`planet_sort_order` = '" . $SetOrder . "',\r\n\t\t\t\t\t\t\t\t`spio_anz` = '" . $spio_anz . "',\r\n\t\t\t\t\t\t\t\t`settings_tooltiptime` = '" . $settings_tooltiptime . "',\r\n\t\t\t\t\t\t\t\t`settings_fleetactions` = '" . $settings_fleetactions . "',\r\n\t\t\t\t\t\t\t\t`settings_planetmenu` = '" . $settings_planetmenu . "',\r\n\t\t\t\t\t\t\t\t`settings_esp` = '" . $settings_esp . "',\r\n\t\t\t\t\t\t\t\t`settings_wri` = '" . $settings_wri . "',\r\n\t\t\t\t\t\t\t\t`settings_bud` = '" . $settings_bud . "',\r\n\t\t\t\t\t\t\t\t`settings_mis` = '" . $settings_mis . "',\r\n\t\t\t\t\t\t\t\t`settings_tnstor` = '" . $settings_tnstor . "',\r\n\t\t\t\t\t\t\t\t`db_deaktjava` = '" . $db_deaktjava . "',\r\n\t\t\t\t\t\t\t\t`lang` = '" . $langs . "',\r\n\t\t\t\t\t\t\t\t`hof` = '" . $hof . "',\r\n\t\t\t\t\t\t\t\t`settings_rep` = '" . $settings_rep . "' \r\n\t\t\t\t\t\t\t\tWHERE `id` = '" . $USER["id"] . "';"; if ($USER['authlevel'] > 0) { if ($adm_pl_prot == 'on') { $SQLQuery .= "UPDATE " . PLANETS . " SET `id_level` = '" . $USER['authlevel'] . "' WHERE `id_owner` = '" . $USER['id'] . "';"; } else { $SQLQuery .= "UPDATE " . PLANETS . " SET `id_level` = '0' WHERE `id_owner` = '" . $USER['id'] . "';"; } } if (!empty($db_email) && $db_email != $USER['email'] && md5($db_password) == $USER['password']) { if (!ValidateAddress($db_email)) { $template->message($LNG['op_not_vaild_mail'], '?page=options', 3); exit; } $query = $db->uniquequery("SELECT id FROM " . USERS . " WHERE email = '" . $db->sql_escape($db_email) . "' OR email_2 = '" . $db->sql_escape($db_email) . "';"); if (!empty($query)) { $template->message(sprintf($LNG['op_change_mail_exist'], $db_email), '?page=options', 3); exit; } $SQLQuery .= "UPDATE " . USERS . " SET `email` = '" . $db->sql_escape($db_email) . "', `setmail` = '" . (TIMESTAMP + 604800) . "' WHERE `id` = '" . $USER['id'] . "';"; } if (!empty($newpass1) && md5($db_password) == $USER["password"] && $newpass1 == $newpass2) { $newpass = md5($newpass1); $SQLQuery .= "UPDATE " . USERS . " SET `password` = '" . $newpass . "' WHERE `id` = '" . $USER['id'] . "';"; session_destroy(); $template->message($LNG['op_password_changed'], "index.php", 3); } elseif ($USER['username'] != $USERname) { if (!CheckName($USERname)) { $template->message($LNG['op_user_name_no_alphanumeric'], '?page=options', 3); } elseif ($USER['uctime'] >= TIMESTAMP - 60 * 60 * 24 * 7) { $template->message($LNG['op_change_name_pro_week'], '?page=options', 3); } else { $query = $db->uniquequery("SELECT id FROM " . USERS . " WHERE username='******';"); if (!empty($query)) { $template->message(sprintf($LNG['op_change_name_exist'], $USERname), '?page=options', 3); } else { $SQLQuery .= "UPDATE " . USERS . " SET `username` = '" . $db->sql_escape($USERname) . "', `uctime` = '" . TIMESTAMP . "' WHERE `id`= '" . $USER['id'] . "';"; session_destroy(); $template->message($LNG['op_username_changed'], 'index.php', 3); } } } else { $template->message($LNG['op_options_changed'], '?page=options', 3); } $db->multi_query($SQLQuery); break; default: if ($USER['urlaubs_modus'] == 1) { $template->assign_vars(array('vacation_until' => date("d.m.Y H:i:s", $USER['urlaubs_until']), 'op_save_changes' => $LNG['op_save_changes'], 'op_end_vacation_mode' => $LNG['op_end_vacation_mode'], 'op_vacation_mode_active_message' => $LNG['op_vacation_mode_active_message'], 'op_dlte_account_descrip' => $LNG['op_dlte_account_descrip'], 'op_dlte_account' => $LNG['op_dlte_account'], 'opt_delac_data' => $USER['db_deaktjava'], 'is_deak_vacation' => $USER['urlaubs_until'] <= TIMESTAMP ? true : false)); $template->show("options_overview_vmode.tpl"); } else { $template->assign_vars(array('opt_usern_data' => $USER['username'], 'opt_mail1_data' => $USER['email'], 'opt_mail2_data' => $USER['email_2'], 'opt_dpath_data' => $USER['dpath'], 'opt_dpath_data_sel' => substr($USER['dpath'], 13, -1), 'opt_probe_data' => $USER['spio_anz'], 'opt_toolt_data' => $USER['settings_tooltiptime'], 'opt_fleet_data' => $USER['settings_fleetactions'], 'opt_sskin_data' => $USER['design'], 'opt_noipc_data' => $USER['noipcheck'], 'opt_allyl_data' => $USER['settings_planetmenu'], 'opt_delac_data' => $USER['db_deaktjava'], 'opt_stor_data' => $USER['settings_tnstor'], 'user_settings_rep' => $USER['settings_rep'], 'user_settings_esp' => $USER['settings_esp'], 'user_settings_wri' => $USER['settings_wri'], 'user_settings_mis' => $USER['settings_mis'], 'user_settings_bud' => $USER['settings_bud'], 'opt_hof' => $USER['hof'], 'langs' => $USER['lang'], 'adm_pl_prot_data' => $PLANET['id_level'], 'user_authlevel' => $USER['authlevel'], 'Selectors' => array('Sort' => array(0 => $LNG['op_sort_normal'], 1 => $LNG['op_sort_koords'], 2 => $LNG['op_sort_abc']), 'SortUpDown' => array(0 => $LNG['op_sort_up'], 1 => $LNG['op_sort_down']), 'Skins' => array_diff(scandir(ROOT_PATH . 'styles/skins/'), array('..', '.', '.svn', '.htaccess', 'index.htm', 'darkness')), 'lang' => GetLangs()), 'planet_sort' => $USER['planet_sort'], 'planet_sort_order' => $USER['planet_sort_order'], 'uctime' => TIMESTAMP - $USER['uctime'] >= 60 * 60 * 24 * 7 ? true : false, 'op_admin_planets_protection' => $LNG['op_admin_planets_protection'], 'op_admin_title_options' => $LNG['op_admin_title_options'], 'op_user_data' => $LNG['op_user_data'], 'op_username' => $LNG['op_username'], 'op_old_pass' => $LNG['op_old_pass'], 'op_new_pass' => $LNG['op_new_pass'], 'op_repeat_new_pass' => $LNG['op_repeat_new_pass'], 'op_email_adress_descrip' => $LNG['op_email_adress_descrip'], 'op_email_adress' => $LNG['op_email_adress'], 'op_permanent_email_adress' => $LNG['op_permanent_email_adress'], 'op_general_settings' => $LNG['op_general_settings'], 'op_lang' => $LNG['op_lang'], 'op_sort_planets_by' => $LNG['op_sort_planets_by'], 'op_sort_kind' => $LNG['op_sort_kind'], 'op_skin_example' => $LNG['op_skin_example'], 'op_show_skin' => $LNG['op_show_skin'], 'op_active_build_messages' => $LNG['op_active_build_messages'], 'op_deactivate_ipcheck_descrip' => $LNG['op_deactivate_ipcheck_descrip'], 'op_deactivate_ipcheck' => $LNG['op_deactivate_ipcheck'], 'op_galaxy_settings' => $LNG['op_galaxy_settings'], 'op_spy_probes_number_descrip' => $LNG['op_spy_probes_number_descrip'], 'op_spy_probes_number' => $LNG['op_spy_probes_number'], 'op_seconds' => $LNG['op_seconds'], 'op_toolt_data' => $LNG['op_toolt_data'], 'op_max_fleets_messages' => $LNG['op_max_fleets_messages'], 'op_show_planetmenu' => $LNG['op_show_planetmenu'], 'op_shortcut' => $LNG['op_shortcut'], 'op_show' => $LNG['op_show'], 'op_spy' => $LNG['op_spy'], 'op_write_message' => $LNG['op_write_message'], 'op_add_to_buddy_list' => $LNG['op_add_to_buddy_list'], 'op_missile_attack' => $LNG['op_missile_attack'], 'op_send_report' => $LNG['op_send_report'], 'op_vacation_delete_mode' => $LNG['op_vacation_delete_mode'], 'op_activate_vacation_mode_descrip' => $LNG['op_activate_vacation_mode_descrip'], 'op_activate_vacation_mode' => $LNG['op_activate_vacation_mode'], 'op_dlte_account_descrip' => $LNG['op_dlte_account_descrip'], 'op_dlte_account' => $LNG['op_dlte_account'], 'op_save_changes' => $LNG['op_save_changes'], 'op_small_storage' => $LNG['op_small_storage'])); $template->show("options_overview.tpl"); } break; } }
$phpself = $_SERVER['PHP_SELF']; $nextpage = $Page + 1; if (empty($Mode)) { $Mode = 'intro'; } if (empty($Page)) { $Page = 1; } $template = new template(); $template->assign_vars(array('scripts' => $template->script, 'rawlang' => $LANG, 'lang' => 'lang=' . $LANG, 'title' => 'Installer • 2Moons', 'intro_instal' => $LNG['intro_instal'], 'menu_intro' => $LNG['menu_intro'], 'menu_install' => $LNG['menu_install'], 'menu_license' => $LNG['menu_license'], 'menu_convert' => $LNG['menu_convert'])); switch ($Mode) { case 'license': $template->show('install/ins_license.tpl'); break; case 'intro': $template->assign_vars(array('Selector' => GetLangs(), 'intro_text' => $LNG['intro_text'], 'intro_welcome' => $LNG['intro_welcome'], 'intro_install' => $LNG['intro_install'], 'intro_lang' => $LNG['intro_lang'])); $template->show('install/ins_intro.tpl'); break; case 'req': $error = 0; if (version_compare(PHP_VERSION, "5.2.5", ">=")) { $PHP = "<span class=\"yes\">" . $LNG['reg_yes'] . ", " . PHP_VERSION . "</span>"; } else { $PHP = "<span class=\"no\">" . $LNG['reg_no'] . ", " . PHP_VERSION . "</span>"; $error++; } if (@ini_get('safe_mode') == 0) { $safemode = "<span class=\"yes\">" . $LNG['reg_yes'] . "</span>"; } else { $safemode = "<span class=\"no\">" . $LNG['reg_no'] . "</span>"; $error++;
/** * ok - we have to use all 8 parameters that the display engine can take, all because we * need to be able to get the saved settings when editing a weblog. eh.. it works, so * let's just leave it at that, shall we? -mark * * @return array */ function get_weblog_config1($orig_name = "") { $templates = gettemplates(); foreach ($templates as $key => $val) { $pos1 = strpos($val, '_aux_'); $pos2 = strpos($val, '_sub_'); if ($pos1 === 0 || $pos2 === 0) { unset($templates[$key]); } } sort($templates); $config = array(array('orig_name', lang('weblog_config', 'name'), '', 7, $orig_name), array('name', lang('weblog_config', 'name'), '', 0), array('payoff', lang('weblog_config', 'payoff'), lang('weblog_config', 'payoff_desc'), 0, '', 60), array('siteurl', lang('weblog_config', 'url'), lang('weblog_config', 'url_desc'), 0, '', 40), array('front_filename', lang('weblog_config', 'index_name'), lang('weblog_config', 'index_name_desc'), 0), array('front_path', lang('weblog_config', 'front_path'), lang('weblog_config', 'front_path_desc'), 0), array('language', lang('weblog_config', 'language'), lang('weblog_config', 'language_desc'), 3, GetLangs(), '', ''), array('heading', lang('weblog_config', 'entry_heading'), '', 8, '', 2), array('live_entries', lang('weblog_config', 'live_comments'), lang('weblog_config', 'live_comments_desc'), 3, 'yn'), array('entry_filename', lang('weblog_config', 'file_format'), '', 0), array('entry_path', lang('weblog_config', 'entry_path'), lang('weblog_config', 'entry_path_desc'), 0), array('read_more', lang('weblog_config', 'readmore'), lang('weblog_config', 'readmore_desc'), 0), array('heading', lang('weblog_config', 'arc_heading'), '', 8, '', 2), array('archive_filename', lang('weblog_config', 'arc_index'), '', 0), array('archive_path', lang('weblog_config', 'arc_path'), '', 0), array('archive_unit', lang('weblog_config', 'archive_unit'), '', 3, array(lang('weblog_config', 'archive_none'), 'none', lang('weblog_config', 'archive_weekly'), 'week', lang('weblog_config', 'archive_monthly'), 'month', lang('weblog_config', 'archive_yearly'), 'year')), array('archive_link', lang('weblog_config', 'archive_link'), '', 5, '', '60', 'rows=3'), array('archive_linkfile', lang('weblog_config', 'archive_linkfile'), '', 5, '', '60', 'rows=3'), array('archive_order', lang('weblog_config', 'archive_order'), '', 3, array(lang('weblog_config', 'archive_ascending'), 'ascending', lang('weblog_config', 'archive_descending'), 'descending')), array('heading', lang('weblog_config', 'templates_heading'), '', 8, '', 2), array('front_template', lang('weblog_config', 'frontpage_template'), lang('weblog_config', 'frontpage_template_desc'), 3, $templates), array('archive_template', lang('weblog_config', 'archivepage_template'), lang('weblog_config', 'archivepage_template_desc'), 3, $templates), array('entry_template', lang('weblog_config', 'entrypage_template'), lang('weblog_config', 'entrypage_template_desc'), 3, $templates), array('extra_template', lang('weblog_config', 'extrapage_template'), lang('weblog_config', 'extrapage_template_desc'), 3, $templates)); return $config; }
// // PIVOT - LICENSE: // // This file is part of Pivot. Pivot and all its parts are licensed under // the GPL version 2. see: http://www.pivotlog.net/help/help_about_gpl.php // for more information. // // --------------------------------------------------------------------------- // don't access directly.. if (!defined('INPIVOT')) { exit('not in pivot'); } global $Pivot_Vars, $Cfg, $Users, $Weblogs; $setupstepn = 5; PageHeader('setup', 0); $Setupstep1 = array(array('heading', 'Set up the Administrator User', '', 8, '', '2', ''), array('step', '', '', 7, '1', '', ''), array('username', 'Username', '', 0, '', '', ''), array('pass1', 'Password', '', 1, '', '', 'maxlength="15"'), array('pass2', 'Password (confirm)', '', 1, '', '', 'maxlength="15"'), array('email', 'Email', '', 0, '', '', ''), array('nick', 'Nickname', '', 0, '', '', ''), array('heading', 'Site Info', '', 8, '', '2', ''), array('sitename', 'Site Name', '', 0, 'Pivot Powered', '', ''), array('deflang', 'Language', '', 3, GetLangs(), '', '')); /* $Setupstep2 = array( array('heading', 'News File Info', '', 8, '', '2', ''), array('step', '', '', 7, '2', '', ''), array('localpath', 'Local Path', '', 0, '../', '', ''), array('indexfile', 'Index File', '', 0, 'index.html', '', ''), array('file_format', 'File Format', '', 0, 'entry_%1.html', '', ''), array('heading', 'Archives', '', 8, '', '2', ''), array('archive_amount', 'Archive Amount', '', 0, '1', '', ''), array('archive_unit', 'Archive Unit', '', 3, array('week', 'week', 'month', 'month'), '', ''), array('archive_format', 'Archive Format', '', 0, 'archive_%1.html', '', '') ); $Setupstep3 = array( array('heading', 'Final Config', '', 8, '', '2', ''), array('step', '', '', 7, '3', '', ''),