// _____ /___/ __ ___ __ // / ___/__ ___ / /________ / / / _ \___ ____ ___ / / // / /__/ _ \/ _ \/ __/ __/ _ \/ / / ___/ _ `/ _ \/ -_) / // \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // Copyright (c) Stargames Control Panel - Licensed under GNU GPL. // See LICENSE File // ========================================================================= // Project Lead by: Mysterious // ========================================================================= --> <?php if (!$SERVER['system_safe']) { exit; } opmain_body("{$lang['Guild_CSD']}"); echo "\n<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"1\" align=\"center\">\n\t<TBODY>\n\t\t<TR align=\"center\" class=\"topic_title3\" style=\"font-weight: bold;\">\n\t\t\t<TD>Castle</TD>\n\t\t\t<TD>Guild</TD>\n\t\t\t<TD>Guild Master</TD>\n\t\t\t<TD>Emblem</TD>\n\t\t</TR>\n"; $query = "SELECT castle_id,guild_id FROM {$CONFIG_sql_dbname}.guild_castle WHERE guild_id!=\"\" order by castle_id ASC"; $sql->result = $sql->execute_query($query, 'guild_standing.php'); $sql->total_query++; if ($sql->count_rows() > 0) { $countstanding = 0; include_once "config/config_guild.php"; while ($row = $sql->fetch_row()) { $gvalue = $row[castle_id]; if ($GUILD_CASTLE[$gvalue]) { $countstanding = 1; $gvalue = getcastlename($gvalue); $query = "SELECT name,master,emblem_data FROM {$CONFIG_sql_dbname}.guild WHERE guild_id=\"" . $row['guild_id'] . "\""; $sql->result2 = $sql->execute_query($query, 'guild_standing.php'); $grow = $sql->fetch_row($sql->result2);
$form_code = "02"; $memory_object = "ro_message"; } else { if ($GET_code == 01) { $mes_title = "Server Information"; $form_code = "03"; $memory_object = "server_info"; } } $query = "SELECT memory_value3 FROM {$CONFIG_sql_cpdbname}.memory WHERE memory_object=\"" . mysql_res($memory_object) . "\""; $sql->result = $sql->execute_query($query, 'mescontrol.php'); $sql->total_query++; $row = $sql->fetch_row(); $message = my_br2nl($row[memory_value3]); $message_preview = $row[memory_value3] ? replace_text($row[memory_value3]) : "--------------------"; opmain_body("{$mes_title}"); echo "<form action=\"index.php?act=mesctrl&code={$form_code}\" method=\"post\" enctype=\"multipart/form-data\" name=\"t_post_form\" id=\"t_post_form\" OnSubmit=\"document.t_post_form.Submit.disabled=true; return true;\">\n<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\" class=\"emptytable\">\n\t<TBODY>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD width=\"100%\" colspan=\"2\">\n\t\t\t\t<div class=\"title_face3\"><B>Code Buttons</B></div>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD width=\"30%\"> </TD>\n\t\t\t<TD width=\"70%\">\n"; get_bbcode('t_post_form'); echo "\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD colspan=\"2\">\n\t\t\t\t<div class=\"title_face3\"><B>Enter {$mes_title}</B></div>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD vAlign=\"top\">\n"; emotions_select('t_post_form'); echo "\t\t\t</TD>\n\t\t\t<TD vAlign=\"top\">\n\t\t\t\t<textarea style=\"width:100%\" name=\"t_mes\" cols=\"60\" rows=\"15\" class=\"textinput\">{$message}</textarea>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD align=\"center\">\n\t\t\t\t<select name=\"change_edit\" onChange=\"if(document.t_post_form.change_edit.value==-1){return false;}else{var A1=document.t_post_form.change_edit.value; document.location.replace(''+A1+'');}\" class=\"selectmenu\">\n\t\t\t\t\t<option value=\"-1\" selected>���� --�Select Action�--����</option>\n"; $selected = "value=\"-1\" class=\"slbackground\""; $ADD_OPTION1 = $GET_code == 00 ? $selected : "value=\"index.php?act=mesctrl&code=00\""; $ADD_OPTION2 = $GET_code == 01 ? $selected : "value=\"index.php?act=mesctrl&code=01\""; echo "\t\t\t\t\t<option " . $ADD_OPTION1 . ">- Edit Ro Message</option>\n\t\t\t\t\t<option " . $ADD_OPTION2 . ">- Edit Server Information</option>\n\t\t\t\t</select>\n\t\t\t</TD>\n\t\t\t<TD>\n\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"Submit\" class=\"textinput\">\n\t\t\t\t<input type=\"reset\" name=\"Reset\" value=\"Restore\" class=\"textinput\">\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\" height=\"100%\">\n\t\t\t<TD class=\"title_face4\" vAlign=\"top\" colspan=\"2\">\n\t\t\t\t<div class=\"poststyle\">{$message_preview}</div>\n\t\t\t</TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n</form>\n<script type='text/javascript'>\n\tvar max_width = " . $CONFIG_max_img_width . ";\n\tvar max_height = " . $CONFIG_max_img_height . ";\n\tvar total_img_resize = " . $CP[images_num] . ";\n\twindow.onload=resize_img;\n</script>\n"; clmain_body(); } else { if ($GET_code == 02) { $query = "SELECT COUNT(*) FROM {$CONFIG_sql_cpdbname}.memory WHERE memory_object=\"ro_message\""; $sql->result = $sql->execute_query($query, 'mescontrol.php'); $sql->total_query++;
} if ($POST_code == '06' && checkprivilege_action($CP[login_id], g_delete_topics)) { $query = "SELECT forum_id FROM {$CONFIG_sql_cpdbname}.board_topic WHERE topic_id =\"" . mysql_res($POST_t) . "\""; $sql->result = $sql->execute_query($query, 'moderate.php'); $row = $sql->fetch_row(); $sql->execute_query("DELETE FROM {$CONFIG_sql_cpdbname}.board_reply WHERE topic_id =\"" . mysql_res($POST_t) . "\" ", 'moderate.php'); $sql->execute_query("DELETE FROM {$CONFIG_sql_cpdbname}.board_topic WHERE topic_id =\"" . mysql_res($POST_t) . "\" ", 'moderate.php'); $sql->execute_query("DELETE FROM {$CONFIG_sql_cpdbname}.poll WHERE topic_id =\"" . mysql_res($POST_t) . "\" ", 'moderate.php'); $sql->execute_query("DELETE FROM {$CONFIG_sql_cpdbname}.poll_vote WHERE topic_id =\"" . mysql_res($POST_t) . "\" ", 'moderate.php'); $sql->execute_query("DELETE FROM {$CONFIG_sql_cpdbname}.voters WHERE topic_id =\"" . mysql_res($POST_t) . "\" ", 'moderate.php'); header_location("index.php?showforum={$row['forum_id']}"); } if ($POST_code == '07' && checkprivilege_action($CP[login_id], g_move_topics)) { $forum_name = get_forumname($POST_f); $topic_name = get_topicname($POST_t); opmain_body("Move Topic " . $forum_name . " > " . $topic_name . ""); echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\">\n\t<form action=\"index.php?act=mod\" method=\"post\" enctype=\"multipart/form-data\" name=\"Move_Topic_Form\">\n\t<input type=\"hidden\" name=\"code\" value=\"08\">\n\t<input type=\"hidden\" name=\"f\" value=\"{$POST_f}\">\n\t<input type=\"hidden\" name=\"t\" value=\"{$POST_t}\">\n\t<TR class=\"topic_title5\">\n\t\t<TD colspan=\"2\" height=\"27\">\n\t\t\t<div class=\"title_face\">Please select the destination forum and method of moving</div>\n\t\t</TD>\n\t</TR>\n\t<TR class=\"topic_title6\">\n\t\t<TD width=\"30%\">\n\t\t\t<div class=\"title_face4\"><b>Move this topic from New Forum to</b></div>\n\t\t</TD>\n\t\t<TD width=\"70%\">\n\t\t\t<select name=\"select_forum\" class=\"selectmenu\">\n"; $query = "SELECT memory_value1,memory_value3 FROM {$CONFIG_sql_cpdbname}.memory WHERE memory_object =\"forum_category\" ORDER by memory_value2 ASC"; $sql->result = $sql->execute_query($query, 'forum_manage.php'); $sql->total_query++; if ($sql->count_rows()) { while ($row = $sql->fetch_row()) { $query = "SELECT forum_id,forum_title FROM {$CONFIG_sql_cpdbname}.forum WHERE category_id=\"" . $row[memory_value1] . "\" ORDER by forum_id ASC"; $sql->result2 = $sql->execute_query($query, 'forum_manage.php'); echo "\t\t\t\t<optgroup label=\"{$row['memory_value3']}\"></optgroup>\n"; if ($sql->count_rows($sql->result2)) { while ($row2 = $sql->fetch_row($sql->result2)) { echo "\t\t\t\t<option value=\"{$row2['forum_id']}\"> |-- {$row2['forum_title']}</option>\n"; } } }
<!-- // ========================================================================= // ______ // / __/ /____ ________ ____ ___ _ ___ ___ // _\ \/ __/ _ `/ __/ _ `/ _ `/ ' \/ -_|_-< // /___/\__/\_,_/_/ \_, /\_,_/_/_/_/\__/___/ // _____ /___/ __ ___ __ // / ___/__ ___ / /________ / / / _ \___ ____ ___ / / // / /__/ _ \/ _ \/ __/ __/ _ \/ / / ___/ _ `/ _ \/ -_) / // \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // Copyright (c) Stargames Control Panel - Licensed under GNU GPL. // See LICENSE File // ========================================================================= // Project Lead by: Mysterious // ========================================================================= --> <?php if (!$SERVER['system_safe']) { exit; } $query = "SELECT memory_value3 FROM {$CONFIG_sql_cpdbname}.memory WHERE memory_object=\"server_info\""; $sql->result = $sql->execute_query($query, 'main.php'); $sql->total_query++; $row = $sql->fetch_row(); $serverinfo_mes = $row[memory_value3] ? replace_text($row[memory_value3]) : "--------------------"; opmain_body("Server Information", 150); echo "\n<TABLE width=\"100%\" height=\"100%\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\">\n\t<TBODY>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD width=\"100%\" height=\"25\" vAlign=\"top\"></TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\" height=\"100%\">\n\t\t\t<TD class=\"title_face4\" vAlign=\"top\">\n\t\t\t\t<div class=\"poststyle\">" . $serverinfo_mes . "</div>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD width=\"100%\" height=\"25\"></TD>\n\t\t</TR>\n\t<TBODY>\n</TABLE>\n<script type='text/javascript'>\n\tvar max_width = " . $CONFIG_max_img_width . ";\n\tvar max_height = " . $CONFIG_max_img_height . ";\n\tvar total_img_resize = " . $CP[images_num] . ";\n\twindow.onload=resize_img;\n</script>\n"; clmain_body();
$start_topics_selected = ""; } echo "\t<TR align=\"center\" class=\"topic_title6\">\n\t\t<TD>{$grow['1']}</TD>\n\t\t<TD><input name=\"show_forum_" . $grow[0] . "\" type=\"checkbox\" value=\"1\"" . $show_forum_selected . "></TD>\n\t\t<TD><input name=\"read_topics_" . $grow[0] . "\" type=\"checkbox\" value=\"1\"" . $read_topics_selected . "></TD>\n\t\t<TD><input name=\"reply_topics_" . $grow[0] . "\" type=\"checkbox\" value=\"1\"" . $reply_topics_selected . "></TD>\n\t\t<TD><input name=\"start_topics_" . $grow[0] . "\" type=\"checkbox\" value=\"1\"" . $start_topics_selected . "></TD>\n\t</TR>\n"; } echo "</TABLE>\n"; } echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\">\n\t<TR class=\"topic_title5\">\n\t\t<TD width=\"100%\" align=\"center\">\n\t\t\t<input type=\"submit\" name=\"Submit\" value=\"Edit�this�forum\" class=\"textinput\">\n\t\t\t<input type=\"reset\" name=\"Reset\" value=\"Restore\" class=\"textinput\">\n\t\t</TD>\n\t</TR>\n</TABLE>\n\t\t</TD>\n\t</TR>\n\t</form>\n</TABLE>\n"; clmain_body(); } else { if ($GET_code == "dropcategory" && $GET_c) { $category_name = get_categoryname($GET_c); opmain_body("Delete Category"); echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\">\n\t<TBODY>\n\t<form action=\"index.php?act=forum_manage&manage=dropcategory\" method=\"post\" enctype=\"multipart/form-data\" name=\"Category_Form\">\n\t<input type=\"hidden\" name=\"c\" value=\"{$GET_c}\">\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD height=\"27\" colspan=\"2\"><div class=\"title_face\">{$category_name}</div></TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD width=\"30%\"><div class=\"title_face4\"><B>Category to remove:</B></div></TD>\n\t\t\t<TD width=\"70%\"><B>{$category_name}</B></TD>\n\t\t</TR>\n\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t<TD width=\"100%\" colspan=\"2\" align=\"center\">\n\t\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"Delete�this�category\" class=\"textinput\">\n\t\t\t\t</TD>\n\t\t</TR>\n\t</form>\n\t</TBODY>\n</TABLE>\n"; clmain_body(); } else { if ($GET_code == "dropforum" && $GET_f) { $category_name = get_categoryname(check_category($GET_f)); $forum_name = get_forumname($GET_f); opmain_body("Delete Forum"); echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\">\n\t<TBODY>\n\t<form action=\"index.php?act=forum_manage&manage=dropforum\" method=\"post\" enctype=\"multipart/form-data\" name=\"Forum_Form\">\n\t<input type=\"hidden\" name=\"f\" value=\"{$GET_f}\">\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD height=\"27\" colspan=\"2\"><div class=\"title_face\">{$category_name} -> {$forum_name}</div></TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD width=\"30%\"><div class=\"title_face4\"><B>Forum to remove:</B></div></TD>\n\t\t\t<TD width=\"70%\"><B>{$forum_name}</B></TD>\n\t\t</TR>\n\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t<TD width=\"100%\" colspan=\"2\" align=\"center\">\n\t\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"Delete�this�forum\" class=\"textinput\">\n\t\t\t\t</TD>\n\t\t</TR>\n\t</form>\n\t</TBODY>\n</TABLE>\n"; clmain_body(); } } } } } } } } else { redir("index.php?act=idx", "{$lang['No_privilege']}", 3); }
} else { if ($GET_code == 01) { if ($GET_readed != 'true') { header("location:index.php?act=register"); } if (!$CONFIG_register_mode) { redir("index.php?act=idx", "{$lang['Reg_closed']}", 3); } else { if ($CONFIG_security_mode) { $sc_time = $CP['time'] - 60 * 30; $sql->execute_query("DELETE FROM {$CONFIG_sql_cpdbname}.security_code WHERE sc_time < " . mysql_res($sc_time) . "", 'register.php', 0); $sc_id = md5(uniqid(microtime())); $sc_code = generate_password(6); $sql->execute_query("INSERT INTO {$CONFIG_sql_cpdbname}.security_code VALUES (\"" . mysql_res($sc_id) . "\",\"" . mysql_res($sc_code) . "\"," . $CP['time'] . ")", 'register.php', 0); } opmain_body("Registration Form"); echo "\n<SCRIPT language=\"JavaScript\" src=\"function/registration.js\"></SCRIPT>\n<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"3\" align=\"center\" class=\"emptytable3\">\n\t<TBODY>\n\t<form action=\"index.php?act=register&code=02\" method=\"post\" enctype=\"multipart/form-data\" name=\"regis_form\" onsubmit=\"return CheckRegis();\">\n\t\t<TR class=\"topic_title5\" height=\"25\">\n\t\t\t<TD colspan=\"2\"></TD>\n\t\t</TR>\n\t\t<TR id=\"attn_userid\" class=\"reg_attention\" style=\"display:none\"><TD id=\"attn_userid_\" colspan=\"2\" style=\"font-weight:bold\"></TD></TR>\n\t\t<TR id=\"attn_pass\" class=\"reg_attention\" style=\"display:none\"><TD id=\"attn_pass_\" colspan=\"2\" style=\"font-weight:bold\"></TD></TR>\n\t\t<TR id=\"attn_pass2\" class=\"reg_attention\" style=\"display:none\"><TD id=\"attn_pass2_\" colspan=\"2\" style=\"font-weight:bold\"></TD></TR>\n\t\t<TR id=\"attn_slspass\" class=\"reg_attention\" style=\"display:none\"><TD id=\"attn_slspass_\" colspan=\"2\" style=\"font-weight:bold\"></TD></TR>\n\t\t<TR id=\"attn_slspass2\" class=\"reg_attention\" style=\"display:none\"><TD id=\"attn_slspass2_\" colspan=\"2\" style=\"font-weight:bold\"></TD></TR>\n\t\t<TR id=\"attn_email\" class=\"reg_attention\" style=\"display:none\"><TD id=\"attn_email_\" colspan=\"2\" style=\"font-weight:bold\"></TD></TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD width=\"50%\" align=\"right\">\n\t\t\t\t{$lang['Reg_id']} :\n\t\t\t</TD>\n\t\t\t<TD width=\"50%\">\n\t\t\t\t<input name=\"userid\" type=\"text\" size=\"20\" maxlength=\"24\" class=\"textinput\" onblur=\"check_reg('userid')\">\n\t\t\t\t<span id=\"_attn_userid\"></span>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD align=\"right\">\n\t\t\t\t{$lang['Reg_pass']} :\n\t\t\t</TD>\n\t\t\t<TD>\n\t\t\t\t<input name=\"userpass\" type=\"password\" size=\"20\" maxlength=\"24\" class=\"textinput\" onblur=\"check_reg('pass')\">\n\t\t\t\t<span id=\"_attn_pass\"></span>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD align=\"right\">\n\t\t\t\t{$lang['Reg_pass2']} :\n\n\t\t\t</TD>\n\t\t\t<TD>\n\t\t\t\t<input name=\"userpass2\" type=\"password\" size=\"20\" maxlength=\"24\" class=\"textinput\" onblur=\"check_reg('pass2')\">\n\t\t\t\t<span id=\"_attn_pass2\"></span>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD align=\"right\">\n\t\t\t\t{$lang['Reg_sls_pass']} :\n\n\t\t\t</TD>\n\t\t\t<TD>\n\t\t\t\t<input name=\"userslspass\" type=\"password\" size=\"20\" maxlength=\"24\" class=\"textinput\" onblur=\"check_reg('slspass')\">\n\t\t\t\t<span id=\"_attn_slspass\"></span>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD align=\"right\">\n\t\t\t\t{$lang['Reg_sls_pass2']} :\n\n\t\t\t</TD>\n\t\t\t<TD>\n\t\t\t\t<input name=\"userslspass2\" type=\"password\" size=\"20\" maxlength=\"24\" class=\"textinput\" onblur=\"check_reg('slspass2')\">\n\t\t\t\t<span id=\"_attn_slspass2\"></span>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD align=\"right\">\n\t\t\t\t{$lang['Reg_sex']} :\n\n\t\t\t</TD>\n\t\t\t<TD>\n\t\t\t\t<select name=\"sex\" class=\"textinput\">\n\t\t\t\t\t<option value=\"M\" selected>Male</option>\n\t\t\t\t\t<option value=\"F\">Female</option>\n\t\t\t\t</select>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD align=\"right\">\n\t\t\t\t{$lang['Reg_email']} :\n\n\t\t\t</TD>\n\t\t\t<TD>\n\t\t\t\t<input name=\"email\" type=\"text\" size=\"20\" class=\"textinput\" onblur=\"check_reg('email')\">\n\t\t\t\t<span id=\"_attn_email\"></span>\n\t\t\t</TD>\n\t\t</TR>\n"; if ($CONFIG_security_mode) { echo "\n\t\t<input name=\"security_id\" type=\"hidden\" value=\"" . $sc_id . "\">\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD align=\"right\">\n\t\t\t\t{$lang['Reg_security_code']} :\n\n\t\t\t</TD>\n\t\t\t<TD>\n\t\t\t\t<img src=\"reg_code.php?sc={$sc_id}\"><BR>\n\t\t\t\t<i><a href=\"javascript:ViewSC_Code('{$sc_id}');\">{$lang['Reg_view_sc_code']}</a></i>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD align=\"right\">\n\t\t\t\t{$lang['Reg_security_code_confirm']} :\n\n\t\t\t</TD>\n\t\t\t<TD>\n\t\t\t\t<input name=\"security_code\" type=\"text\" size=\"20\" maxlength=\"6\" class=\"textinput\">\n\t\t\t</TD>\n\t\t</TR>\n"; } echo "\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD align=\"center\" colspan=\"2\">\n\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"{$lang['Reg_insert']}\" class=\"textinput\">\n\t\t\t\t<input type=\"reset\" name=\"reset\" value=\"{$lang['Reg_edit']}\" class=\"textinput\">\n\t\t\t</TD>\n\t\t</TR>\n\t</form>\n\t</TBODY>\n</TABLE>\n"; clmain_body(); } } else { if ($GET_code == 02) { if (!$CONFIG_register_mode) { redir("index.php?act=idx", "{$lang['Reg_closed']}", 3); } else { if (empty($POST_userid) && empty($POST_userpass) && empty($POST_email)) { redir("index.php?act=register", "{$lang['Error']}", 3); } else {
if (!$SERVER['system_safe']) { exit; } $query = "SELECT memory_value1,memory_value2,memory_value3 FROM {$CONFIG_sql_cpdbname}.memory WHERE memory_object=\"ro_message\""; $sql->result = $sql->execute_query($query, 'main.php'); $sql->total_query++; $row = $sql->fetch_row(); $announced_date = get_date("Y-m-j", $row[memory_value2]); $announced_mes = $row[memory_value3] ? replace_text($row[memory_value3]) : "--------------------"; opmain_body("{$lang['RO_Mes']}", 150); echo "<TABLE width=\"100%\" height=\"100%\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">\n\t<TBODY>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD width=\"100%\" height=\"25\" vAlign=\"top\"></TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\" height=\"100%\">\n\t\t\t<TD class=\"title_face4\" vAlign=\"top\">\n\t\t\t\t<div class=\"poststyle\">{$announced_mes}</div>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD width=\"100%\" vAlign=\"top\" align=\"right\">\n\t\t\t\t<B>{$lang['Announced']} <U>{$row['memory_value1']}</U>, {$lang['Date']}: {$announced_date}</B>\n\t\t\t</TD>\n\t\t</TR>\n\t<TBODY>\n</TABLE>\n<script type='text/javascript'>\n\tvar max_width = " . $CONFIG_max_img_width . ";\n\tvar max_height = " . $CONFIG_max_img_height . ";\n\tvar total_img_resize = " . $CP[images_num] . ";\n\twindow.onload=resize_img;\n</script>\n"; clmain_body(); include_once "news.php"; if ($CONFIG_show_last_topic_reply) { echo "<BR>\n"; opmain_body("{$lang['Last_TRP']}"); echo "<TABLE width=\"100%\" height=\"100%\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\n\t<TBODY>\n"; $query = "SELECT us.display_name, t.* FROM {$CONFIG_sql_cpdbname}.board_topic t\n\t\tLEFT JOIN {$CONFIG_sql_cpdbname}.user_profile us ON (us.user_id=t.topic_lastreply_name)\n\tORDER by t.topic_last_action_date DESC LIMIT " . mysql_res($CONFIG_show_last_topic_reply_per) . ""; $sql->result = $sql->execute_query($query, 'main.php'); $sql->total_query++; if ($sql->count_rows() > 0) { while ($row = $sql->fetch_row()) { $topic_lastreply_name = get_displayname($row[display_name], $row[topic_lastreply_name]); $topic_lastreply_name = $topic_lastreply_name == $lang[Guest] ? $lang[Guest] : "<a href=\"index.php?showuser="******"\">{$topic_lastreply_name}</a>"; $topic_start_date = get_date("M j y, H:i:s A", $row[topic_start_date]); if ($trcolor2 != 'topic_title4') { $trcolor2 = 'topic_title4'; } else { $trcolor2 = 'topic_title3'; } echo "\t\t<TR class=\"{$trcolor2}\" height=\"20\">\n\t\t\t<TD align=\"center\" width=\"5%\"><img src=\"theme/{$STORED['THEME']}/images/f_norm.gif\"></TD>\n\t\t\t<TD width=\"70%\">\n\t\t\t\t <a href=\"index.php?showtopic={$row['topic_id']}&view=getnewpost\" title=\"This topic was started: {$topic_start_date}\">{$row['topic_name']}</a>\n\t\t\t</TD>\n\t\t\t<TD width=\"25%\" align=\"left\">\n\t\t\t\t <a href=\"index.php?showtopic={$row['topic_id']}&view=getnewpost\">{$lang['Last_Post']}</a>: " . $topic_lastreply_name . "\n\t\t\t</TD>\n\t\t</TR>\n";
redir("index.php?act=bugreport", $lang[Success_addreport], 3); } } } else { if ($GET_code == 02) { if (checkprivilege_action($CP[login_id], g_edit_news)) { if (!$GET_post_id) { $display = $lang[Error]; redir("index.php?act=idx", "{$display}", 3); } else { $query = "SELECT post_id,poster,report FROM {$CONFIG_sql_cpdbname}.bugreport WHERE post_id = \"" . mysql_res($GET_post_id) . "\" LIMIT 0,1"; $sql->result = $sql->execute_query($query, 'bugreport.php'); $sql->total_query++; $row = $sql->fetch_row(); $report = my_br2nl($row[report]); opmain_body("Edit Bug Report"); echo "\n<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"3\" align=\"center\">\n\t<TBODY>\n\t<form action=\"index.php?act=bugreport&code=04&post_id={$row['post_id']}\" method=\"post\" enctype=\"multipart/form-data\" name=\"Addreport\" id=\"bugreport\" onsubmit=\"return CheckAddreport()\">\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD colspan=\"2\">\n\t\t\t\t<font class=\"title_face3\">\n\t\t\t\t\t<B> Report Form</B>\n\t\t\t\t</font>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD width=\"30%\" align=\"right\">\n\t\t\t\t{$lang['Bug_user']} :\n\t\t\t</TD>\n\t\t\t<TD width=\"70%\" align=\"left\">\n\t\t\t\t<input name=\"poster\" type=\"text\" value=\"{$row['poster']}\" size=\"25\" readonly=\"true\" class=\"textinput\">\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD width=\"30%\" valign=\"top\" align=\"right\">\n\t\t\t\t{$lang['Bug_mreport']} :\n\t\t\t</TD>\n\t\t\t<TD width=\"70%\" align=\"left\">\n\t\t\t\t<textarea name=\"report\" cols=\"50\" rows=\"7\" wrap=\"VIRTUAL\" class=\"textinput\">{$report}</textarea>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD colspan=\"2\" align=\"center\">\n\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"{$lang['Sentnews']}\" class=\"textinput\">\n\t\t\t\t<input name=\"Reset\" type=\"reset\" value=\"{$lang['Resetnews']}\" class=\"textinput\">\n\t\t\t</TD>\n\t\t</TR>\n\t</form>\n\t</TBODY>\n</TABLE>\n"; clmain_body(); } } else { redir("index.php?act=idx", "{$lang['No_privilege']}", 3); } } else { if ($GET_code == 03) { if (!$GET_post_id || !checkprivilege_action($CP[login_id], g_delete_news)) { $display = "{$lang['Error']}"; } else { $query = "SELECT COUNT(*) FROM {$CONFIG_sql_cpdbname}.bugreport WHERE post_id = \"" . mysql_res($GET_post_id) . "\" LIMIT 0,1"; $sql->result = $sql->execute_query($query, 'bugreport.php'); $sql->total_query++; if (!$sql->result()) {
if (!isset($GET_st)) { $GET_st = 0; } $GET_st = (int) $GET_st; $page = get_page($GET_st, $CONFIG_guild_per_page); $query = "SELECT COUNT(*) FROM {$CONFIG_sql_dbname}.guild"; $sql->result = $sql->execute_query($query, 'guild_rank.php'); $sql->total_query++; $total = $sql->result(); $query = "SELECT name,master,guild_id,emblem_data,guild_lv,average_lv FROM {$CONFIG_sql_dbname}.guild ORDER by guild_lv DESC LIMIT " . mysql_res($GET_st) . "," . mysql_res($CONFIG_guild_per_page) . ""; $sql->result = $sql->execute_query($query, 'guild_rank.php'); $sql->total_query++; echo "<TABLE width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n\t<TBODY>\n\t\t<TR>\n\t\t\t<TD align=\"right\">\n"; get_selectpage($total, $CONFIG_guild_per_page, $page, "index.php?act=g_rank"); echo "\n\t\t\t</TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n<BR>\n"; opmain_body("Guild Ranking"); echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"1\" align=\"center\">\n\t<TBODY>\n\t\t<TR align=\"center\" class=\"topic_title3\" style=\"font-weight: bold;\">\n\t\t\t<TD>No.</TD>\n\t\t\t<TD>Guild</TD>\n\t\t\t<TD>Guild Master</TD>\n\t\t\t<TD>Guild Level</TD>\n\t\t\t<TD>Average Level</TD>\n\t\t\t<TD>Emblem</TD>\n\t\t</TR>\n"; if ($sql->count_rows()) { $countstanding = 0; $i = ($page - 1) * $CONFIG_guild_per_page; while ($grow = $sql->fetch_row()) { $i++; $countstanding = 1; $guild_name = htmlspecialchars($grow['name']); $g_master_name = htmlspecialchars($grow['master']); $guild_id = $grow[guild_id]; $emblems[$guild_id] = $grow[emblem_data]; echo "\t\t<TR align=\"center\" class=\"topic_title4\">\n\t\t\t<TD>{$i}</TD>\n\t\t\t<TD><a href=\"index.php?act=guildinfo&guild_id={$guild_id}\">{$guild_name}</a></TD>\n\t\t\t<TD>{$g_master_name}</TD>\n\t\t\t<TD>{$grow['guild_lv']}</TD>\n\t\t\t<TD>{$grow['average_lv']}</TD>\n\t\t\t<TD><img src=\"emblem.php?data={$guild_id}\" alt=\"{$guild_name}\"></TD>\n\t\t</TR>\n"; } if (isset($emblems)) { session_register(emblems);
// / __/ /____ ________ ____ ___ _ ___ ___ // _\ \/ __/ _ `/ __/ _ `/ _ `/ ' \/ -_|_-< // /___/\__/\_,_/_/ \_, /\_,_/_/_/_/\__/___/ // _____ /___/ __ ___ __ // / ___/__ ___ / /________ / / / _ \___ ____ ___ / / // / /__/ _ \/ _ \/ __/ __/ _ \/ / / ___/ _ `/ _ \/ -_) / // \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // Copyright (c) Stargames Control Panel - Licensed under GNU GPL. // See LICENSE File // ========================================================================= // Project Lead by: Mysterious // ========================================================================= --> <?php require "memory.php"; include_once "gzip_header.php"; echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n<head>\n\t<title>Connection failed</title>\n\t<meta name=\"Author\" content=\"" . $CP[author] . "\">\n\t<meta name=\"Keywords\" content=\"" . $CP[name] . "\">\n\t<meta name=\"Description\" content=\"" . $CP[credit] . "\">\n\t<meta name=\"Copyright\" content=\"" . $CP[name] . " (c) " . $CP[corp] . "\">\n\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-874\">\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"theme/{$STORED['THEME']}/style.css\">\n\t<style type=\"text/css\">\n\t\t.title_bar {\n\t\t\tBACKGROUND-IMAGE: url(theme/{$STORED['THEME']}/{$THEME['title_bar_img_url']})\n\t\t}\n\t\t.title_bar2 {\n\t\t\tBACKGROUND-IMAGE: url(theme/{$STORED['THEME']}/{$THEME['title_bar2_img_url']})\n\t\t}\n\t</style>\n</head>\n<body " . $THEME[background] . ">\n"; switch ($GET_code) { case 01: $ERROR['MES'] = "You have been blocked by Administrator. Please contact your administrator."; break; default: $ERROR['MES'] = "There isn't an error message in this code."; break; } opmain_body("CP Error Message", 0, "80%"); echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\" class=\"emptytable3\">\n\t<TBODY>\n\t\t<TR height=\"27\" class=\"title_bar2\">\n\t\t\t<TD><div class=\"title_face\"></div></TD>\n\t\t</TR>\n\t\t<TR height=\"27\" class=\"topic_title7\">\n\t\t\t<TD><B>{$ERROR['MES']}</B></TD>\n\t\t</TR>\n\t\t<TR height=\"27\" class=\"topic_title5\">\n\t\t\t<TD></TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n"; clmain_body(); echo "</body>\n</html>"; include_once "gzip_footer.php";
// \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // Copyright (c) Stargames Control Panel - Licensed under GNU GPL. // See LICENSE File // ========================================================================= // Project Lead by: Mysterious // ========================================================================= // To change the message that is outputted, edit the file in /lang/English.php --> <?php if (!$SERVER['system_safe']) { exit; } if ($CONFIG_lost_pass_mode || $CONFIG_md5_support >= '1') { if ($GET_code == 00) { opmain_body("{$lang['Mn_lostpass']}"); echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\" class=\"emptytable3\">\n\t<form action=\"index.php?act=lostpass&code=01\" method=\"post\" enctype=\"multipart/form-data\" name=\"Lost_Pass\">\n\t<TBODY>\n\t\t<TR height=\"27\" class=\"title_bar2\">\n\t\t\t<TD colspan=\"2\"><div class=\"title_face\">{$lang['LP_form']}</div></TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD width=\"20%\"><B>{$lang['LP_input']}</B></TD>\n\t\t\t<TD width=\"80%\"><input name=\"userid\" type=\"text\" size=\"24\" maxlength=\"24\" class=\"textinput\"> {$lang['LP_info']}</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title5\" align=\"center\">\n\t\t\t<TD colspan=\"2\"><input type=\"submit\" name=\"Submit\" value=\"{$lang['LP_submit']}\" class=\"textinput\"></TD>\n\t\t</TR>\n\t</TBODY>\n\t</form>\n</TABLE>\n"; clmain_body(); } else { if ($GET_code == 01) { $query = "SELECT userid,user_pass,email FROM {$CONFIG_sql_dbname}.login WHERE userid = \"" . mysql_res($POST_userid) . "\""; $sql->result = $sql->execute_query($query, 'lostpass.php', 0); $sql->total_query++; if ($sql->count_rows()) { $row = $sql->fetch_row(); $mail_subject = "Lost Password ( SGCP user registration information )"; $mail_messages = sprintf("\n\n{$lang['LP_mes_1']}\n\n{$lang['LP_mes_2']}\n{$lang['LP_mes_3']}\n{$lang['LP_mes_4']}\n\n{$lang['LP_mes_5']}\n{$lang['LP_mes_6']}\n\n{$lang['LP_mes_7']}\n{$lang['LP_mes_8']}\n", $CONFIG_server_name, $CONFIG_server_name, $row[userid], $row[user_pass], $CONFIG_server_name, $CONFIG_admin_email, $CONFIG_server_name); if (SendMail($row[email], $mail_subject, $mail_messages)) { redir("index.php?act=lostpass", "{$lang['LP_send_success']}", 3); } else { redir("index.php?act=lostpass", "{$lang['LP_send_fail']}", 3);
$search_map = ""; } if (!isset($GET_st)) { $GET_st = 0; } $GET_st = (int) $GET_st; $page = get_page($GET_st, $GET_rows); $sql->result = $sql->execute_query("SELECT COUNT(*) FROM {$CONFIG_sql_dbname}.char " . $job . " " . $online . " " . $showid . " " . $search_name_1 . "" . $search_map . "", 'player_rank.php'); $total = $sql->result(); $query = "SELECT account_id,name,class,base_level,job_level,max_hp,max_sp,last_map,online\n\tFROM {$CONFIG_sql_dbname}.char\n\t" . $job . " " . $online . " " . $showid . " " . $search_name_1 . "" . $search_map . "\n\tORDER by " . mysql_res($GET_ptype) . " " . mysql_res($GET_key) . " LIMIT " . mysql_res($GET_st) . "," . mysql_res($GET_rows) . ""; $sql->result = $sql->execute_query($query, 'player_rank.php'); $sql->total_query++; echo "<BR>\n<TABLE width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n\t<TBODY>\n\t\t<TR>\n\t\t\t<TD align=\"right\">\n"; get_selectpage($total, $GET_rows, $page, "index.php?act=p_rank&charname={$charname}&ctype={$GET_ctype}&job={$GET_job}&ptype={$GET_ptype}&map={$GET_map}&key={$GET_key}&status={$GET_status}&rows={$GET_rows}"); echo "\t\t\t</TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n<BR>\n"; opmain_body("Player(s) Ranking"); echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"1\" align=\"center\">\n\t<TBODY>\n\t\t<TR align=\"center\" class=\"topic_title3\" style=\"font-weight: bold;\">\n\t\t\t<TD>No.</TD>\n\t\t\t<TD>Name</TD>\n\t\t\t<TD>Class</TD>\n\t\t\t<TD>Base Level</TD>\n\t\t\t<TD>Job Level</TD>\n\t\t\t<TD>Max HP</TD>\n\t\t\t<TD>Max SP</TD>\n\t\t\t<TD>Last Map</TD>\n\t\t\t<TD>Status</TD>\n\t\t</TR>\n"; if ($sql->count_rows()) { $IS_SEARCHING_ID = checkprivilege_action($CP[login_id], g_searching_id) ? 1 : 0; $n = ($page - 1) * $GET_rows; while ($row = $sql->fetch_row()) { $n++; if ($row[online]) { $online = "<font class=\"status_on\">Online</font>"; } else { $online = "<font class=\"status_off\">Offline</font>"; } $jobid = $row['class']; $name = $IS_SEARCHING_ID ? "<a href=\"index.php?act=searching_id&account_id={$row['account_id']}\">" . htmlspecialchars($row['name']) . "</a>" : "" . htmlspecialchars($row['name']) . ""; $last_map = $IS_SEARCHING_ID ? "<a href=\"index.php?act=p_rank&charname={$charname}&ctype={$GET_ctype}&job={$GET_job}&ptype={$GET_ptype}&map={$row['last_map']}&key={$GET_key}&status={$GET_status}&rows={$GET_rows}\">{$row['last_map']}</a>" : $row[last_map]; echo "\t\t<TR align=\"center\" class=\"topic_title4\">\n\t\t\t<TD>{$n}</TD>\n\t\t\t<TD>{$name}</TD>\n\t\t\t<TD>{$jobname[$jobid]}</TD>\n\t\t\t<TD>{$row['base_level']}</TD>\n\t\t\t<TD>{$row['job_level']}</TD>\n\t\t\t<TD>{$row['max_hp']}</TD>\n\t\t\t<TD>{$row['max_sp']}</TD>\n\t\t\t<TD>{$last_map}</TD>\n\t\t\t<TD>{$online}</TD>\n\t\t</TR>\n";
} else { redir("index.php?act=idx", "{$lang['No_privilege']}", 3); } } else { if ($GET_code == 03) { if (checkprivilege_action($CP[login_id], g_edit_news)) { if (!$GET_post_id) { $display = "{$lang['Error']}"; redir("index.php?act=idx", "{$display}", 3); } else { $query = "SELECT post_id,message,title FROM {$CONFIG_sql_cpdbname}.mainnews WHERE post_id = \"" . mysql_res($GET_post_id) . "\" LIMIT 0,1"; $sql->result = $sql->execute_query($query, 'action_news.php'); $sql->total_query++; $row = $sql->fetch_row(); $message = my_br2nl($row[message]); opmain_body("Edit News Form"); echo "\n<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\" class=\"emptytable\">\n\t<TBODY>\n\t<form action=\"index.php?act=action_news&code=04&post_id={$row['post_id']}\" method=\"post\" enctype=\"multipart/form-data\" name=\"t_post_form\" id=\"t_post_form\" onsubmit=\"return CheckAddnews()\">\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD width=\"100%\" colspan=\"2\">\n\t\t\t\t<div class=\"title_face3\"><B>News Settings</B></div>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD width=\"30%\">\n\t\t\t\t<div class=\"title_face4\">{$lang['Title']}</div>\n\t\t\t</TD>\n\t\t\t<TD width=\"70%\">\n\t\t\t\t<input name=\"title\" type=\"text\" id=\"title\" size=\"65\" value=\"{$row['title']}\" class=\"textinput\">\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD colspan=\"2\">\n\t\t\t\t<div class=\"title_face3\"><B>Code Buttons</B></div>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD></TD>\n\t\t\t<TD>\n"; get_bbcode('t_post_form'); echo "\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD vAlign=\"top\">\n"; emotions_select('t_post_form'); echo "\t\t\t</TD>\n\t\t\t<TD vAlign=\"top\">\n\t\t\t\t<textarea style=\"width:100%\" name=\"t_mes\" cols=\"65\" rows=\"15\" wrap=\"VIRTUAL\" class=\"textinput\">{$message}</textarea>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD colspan=\"2\" align=\"center\">\n\t\t\t\t<input name=\"Submit\" type=\"submit\" value=\"{$lang['Edit']}\" class=\"textinput\">\n\t\t\t\t<input name=\"Reset\" type=\"reset\" value=\"{$lang['Restore']}\" class=\"textinput\">\n\t\t\t</TD>\n\t\t</TR>\n\t</form>\n\t</TBODY>\n</TABLE>\n"; clmain_body(); } } else { redir("index.php?act=idx", "{$lang['No_privilege']}", 3); } } else { if ($GET_code == 04) { if (checkprivilege_action($CP[login_id], g_edit_news)) { if (!$GET_post_id || !length($POST_title, 1) || !length($POST_t_mes, 5)) { $display = "{$lang['Fail_editnews']}";
--> <?php require "memory.php"; include_once "gzip_header.php"; echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n<head>\n\t<title>View Security Code</title>\n\t<meta name=\"Author\" content=\"" . $CP[author] . "\">\n\t<meta name=\"Keywords\" content=\"" . $CP[name] . "\">\n\t<meta name=\"Description\" content=\"" . $CP[credit] . "\">\n\t<meta name=\"Copyright\" content=\"" . $CP[name] . " (c) " . $CP[corp] . "\">\n\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-874\">\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"theme/{$STORED['THEME']}/style.css\">\n\t<style type=\"text/css\">\n\t\t.title_bar {\n\t\t\tBACKGROUND-IMAGE: url(theme/{$STORED['THEME']}/{$THEME['title_bar_img_url']})\n\t\t}\n\t\t.title_bar2 {\n\t\t\tBACKGROUND-IMAGE: url(theme/{$STORED['THEME']}/{$THEME['title_bar2_img_url']})\n\t\t}\n\t</style>\n</head>\n<body " . $THEME[background] . ">\n"; if ($_GET[sc] && isAlphaNumeric($_GET[sc])) { $sql = new MySQL(); $sql->Connect($CONFIG_sql_host, $CONFIG_sql_username, $CONFIG_sql_password); $query = "SELECT sc_code FROM {$CONFIG_sql_cpdbname}.security_code WHERE sc_id = \"" . mysql_res($_GET[sc]) . "\""; $sql->result = $sql->execute_query($query, 'viewcode.php'); if ($sql->count_rows()) { $row = $sql->fetch_row(); $sc_code = $row[sc_code]; $num = strlen($sc_code); $reg_str = ""; for ($i = 0; $i < 6; $i++) { $ret_str .= $sc_code[$i]; $ret_str .= " "; } $sc_code = $ret_str; $display = "{$lang['Reg_view_sc_code_success']}: <B>{$sc_code}</B>"; } else { $display = $lang[Reg_view_sc_code_fail]; } opmain_body("View Security Code", "20", "270"); echo "<TABLE width=\"100%\" height=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\" class=\"emptytable3\">\n\t<TBODY>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD colspan=\"2\">{$display}</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD align=\"center\">\n\t\t\t\t<a href=\"javascript:window.close()\">{$lang['Close_windows']}</a>\n\t\t\t</TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n"; clmain_body(); } echo "</body>\n</html>"; mysql_close(); include_once "gzip_footer.php";
if ($sql->count_rows()) { echo "\n\t\t\t<TABLE width=\"90%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" class=\"topic_title\" align=\"center\">\n\t\t\t\t<TBODY>\n\t\t\t\t\t<TR align=\"center\" class=\"title_bar\" height=\"29\">\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<a class=\"m_title\">Character in user: {$CP['login_name']}</a>\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=1\"\" align=\"center\">\n\t\t\t\t\t\t\t\t<TBODY>\n\t\t\t\t\t\t\t\t\t<TR align=\"center\" class=\"topic_title3\" style=\"font-weight: bold;\">\n\t\t\t\t\t\t\t\t\t\t<TD>No.</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>Name</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>Class</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>Base Level</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>Job Level</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>Zeny</TD>\n\t\t\t\t\t\t\t\t\t</TR>\n"; $n = 0; while ($c_row = $sql->fetch_row()) { if (empty($char_manage_menu)) { $charname = $c_row[name]; } else { $charname = "<a href=\"index.php?act=searching_char&account_id={$c_row['account_id']}\">{$c_row['name']}</a>"; } $n++; $jobid = "{$c_row['class']}"; echo "\n\t\t\t\t\t\t\t\t\t<TR align=\"center\" class=\"topic_title4\">\n\t\t\t\t\t\t\t\t\t\t<TD>{$n}</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>{$charname}</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>{$jobname[$jobid]}</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>{$c_row['base_level']}</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>{$c_row['job_level']}</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>{$c_row['zeny']}</TD>\n\t\t\t\t\t\t\t\t\t</TR>\n"; } echo "\t\t\t\t\t\t\t\t</TBODY>\n\t\t\t\t\t\t\t</TABLE>\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TBODY>\n\t\t\t</TABLE>\n\t\t\t<BR>\n"; } opmain_body("User Settings", 0, '90%'); echo "\t\t\t<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\" class=\"emptytable\">\n\t\t\t\t<TBODY>\n\t\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t\t<TD width=\"100%\" colspan=\"2\">\n\t\t\t\t\t\t\t<div class=\"title_face3\"><B>Display Name Settings</B></div>\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<form action=\"index.php?act=change_profile&code=07\" method=\"post\" enctype=\"multipart/form-data\" name=\"ch_display_name\" onSubmit=\"return CheckDisplayname()\">\n\t\t\t\t\t<TR class=\"topic_title6\">\n\t\t\t\t\t\t<TD width=\"30%\">\n\t\t\t\t\t\t\t{$lang['login_display_name']}\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD width=\"70%\">\n\t\t\t\t\t\t\t<input name=\"display_name\" value=\"{$display_name}\" type=\"text\" size=\"28\" maxlength=\"24\" class=\"textinput\">\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR class=\"topic_title6\">\n\t\t\t\t\t\t<TD width=\"30%\">\n\t\t\t\t\t\t\tPassword\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD width=\"70%\">\n\t\t\t\t\t\t\t<input name=\"password\" type=\"password\" size=\"28\" maxlength=\"24\" class=\"textinput\">\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t\t<TD width=\"100%\" colspan=\"2\" align=\"center\">\n\t\t\t\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"{$lang['display_name_change']}\" class=\"textinput\">\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t</form>\n"; if ($CONFIG_change_password) { echo "\t\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t\t<TD width=\"100%\" colspan=\"2\">\n\t\t\t\t\t\t\t<div class=\"title_face3\"><B>Password Settings</B></div>\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<form action=\"index.php?act=change_profile&code=01\" method=\"post\" enctype=\"multipart/form-data\" name=\"ch_pass\" onSubmit=\"return CheckPass()\">\n"; if ($CONFIG_change_password_with_sls) { echo "\n\t\t\t\t\t<TR class=\"topic_title6\">\n\t\t\t\t\t\t<TD width=\"30%\">\n\t\t\t\t\t\t\tSLS Password\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD width=\"70%\">\n\t\t\t\t\t\t\t<input name=\"slspassword\" type=\"password\" size=\"28\" maxlength=\"24\" class=\"textinput\">\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n"; } echo "\t\t\t\t\t<TR class=\"topic_title6\">\n\t\t\t\t\t\t<TD width=\"30%\">\n\t\t\t\t\t\t\t{$lang['login_password']}\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD width=\"70%\">\n\t\t\t\t\t\t\t<input name=\"password\" type=\"password\" size=\"28\" maxlength=\"24\" class=\"textinput\">\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR class=\"topic_title6\">\n\t\t\t\t\t\t<TD width=\"30%\">\n\t\t\t\t\t\t\t{$lang['login_newpassword']}\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD width=\"70%\">\n\t\t\t\t\t\t\t<input name=\"password2\" type=\"password\" size=\"28\" maxlength=\"24\" class=\"textinput\">\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR class=\"topic_title6\">\n\t\t\t\t\t\t<TD width=\"30%\">\n\t\t\t\t\t\t\t{$lang['login_confirmpassword']}\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD width=\"70%\">\n\t\t\t\t\t\t\t<input name=\"confirmpass\" type=\"password\" size=\"28\" maxlength=\"24\" class=\"textinput\">\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t\t<TD width=\"100%\" colspan=\"2\" align=\"center\">\n\t\t\t\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"{$lang['password_change']}\" class=\"textinput\">\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t</form>\n"; } if ($CONFIG_change_slspassword) { echo "\t\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t\t<TD width=\"100%\" colspan=\"2\">\n\t\t\t\t\t\t\t<div class=\"title_face3\"><B>SLS Password Settings</B></div>\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<form action=\"index.php?act=change_profile&code=05\" method=\"post\" enctype=\"multipart/form-data\" name=\"ch_sls_pass\" onSubmit=\"return CheckSLSPass()\">\n\t\t\t\t\t<TR class=\"topic_title6\">\n\t\t\t\t\t\t<TD width=\"30%\">\n\t\t\t\t\t\t\t{$lang['login_sls_password']}\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD width=\"70%\">\n\t\t\t\t\t\t\t<input name=\"slspassword\" type=\"password\" size=\"28\" maxlength=\"24\" class=\"textinput\">\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR class=\"topic_title6\">\n\t\t\t\t\t\t<TD width=\"30%\">\n\t\t\t\t\t\t\t{$lang['login_sls_newpassword']}\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD width=\"70%\">\n\t\t\t\t\t\t\t<input name=\"slspassword2\" type=\"password\" size=\"28\" maxlength=\"24\" class=\"textinput\">\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t\t<TD width=\"100%\" colspan=\"2\" align=\"center\">\n\t\t\t\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"{$lang['sls_password_change']}\" class=\"textinput\">\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t</form>\n"; } if ($CONFIG_change_email) { echo "\t\t\t\t\t<form action=\"index.php?act=change_profile&code=02\" method=\"post\" enctype=\"multipart/form-data\" name=\"ch_email\" onSubmit=\"return CheckEMail()\">\n\t\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t\t<TD width=\"100%\" colspan=\"2\">\n\t\t\t\t\t\t\t<div class=\"title_face3\"><B>E-Mail Settings</B></div>\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR class=\"topic_title6\">\n\t\t\t\t\t\t<TD width=\"30%\">\n\t\t\t\t\t\t\t{$lang['login_email']}\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD width=\"70%\">\n\t\t\t\t\t\t\t<input name=\"email1\" type=\"text\" size=\"28\" class=\"textinput\">\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR class=\"topic_title6\">\n\t\t\t\t\t\t<TD width=\"30%\">\n\t\t\t\t\t\t\t{$lang['login_newemail']}\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD width=\"70%\">\n\t\t\t\t\t\t\t<input name=\"email2\" type=\"text\" size=\"28\" class=\"textinput\">\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR class=\"topic_title6\">\n\t\t\t\t\t\t<TD width=\"30%\">\n\t\t\t\t\t\t\t{$lang['Reg_pass2']}\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD width=\"70%\">\n\t\t\t\t\t\t\t<input name=\"password\" type=\"password\" size=\"28\" class=\"textinput\">\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t\t<TD width=\"100%\" colspan=\"2\" align=\"center\">\n\t\t\t\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"{$lang['email_change']}\" class=\"textinput\">\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t</form>\n"; } echo "\t\t\t\t\t<form action=\"index.php?act=change_profile&code=03\" method=\"post\" enctype=\"multipart/form-data\" name=\"ch_avatar\" onSubmit=\"return CheckAvatar()\">\n\t\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t\t<TD width=\"100%\" colspan=\"2\">\n\t\t\t\t\t\t\t<div class=\"title_face3\"><B>Avatar Settings</B></div>\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR class=\"topic_title6\">\n\t\t\t\t\t\t<TD width=\"30%\">\n\t\t\t\t\t\t\t{$lang['login_avatar']}\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD width=\"70%\">\n\t\t\t\t\t\t\t<input name=\"avatar_url\" type=\"text\" size=\"28\" class=\"textinput\" value=\"{$reply_avatar_url}\">\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n";
$POST_title = checkstring($POST_title, 1); $sql->execute_query("INSERT INTO {$CONFIG_sql_cpdbname}.rank_title (title,min_post) VALUES (\"" . $POST_title . "\",\"" . mysql_res($POST_min_post) . "\")", 'rank_title.php', 0); header_location("index.php?act=rank_title"); } } else { if ($GET_code == 02) { $GET_id = (int) $GET_id; if (empty($GET_id)) { redir("index.php?act=idx", "{$lang['Error']}", 3); } else { $query = "SELECT title,min_post FROM {$CONFIG_sql_cpdbname}.rank_title WHERE title_id = \"" . mysql_res($GET_id) . "\""; $sql->result = $sql->execute_query($query, 'rank_title.php'); $sql->total_query++; if ($sql->count_rows()) { $row = $sql->fetch_row(); opmain_body("Edit Member Rank"); echo "\n<TABLE width=\"100%\" height=\"100%\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\" class=\"emptytable3\">\n\t<TBODY>\n\t\t<form action=\"index.php?act=rank_title&code=03&id={$GET_id}\" method=\"post\" enctype=\"multipart/form-data\">\n\t\t<TR class=\"topic_title4\">\n\t\t\t<TD width=\"40%\"><B>Rank Title</B></TD>\n\t\t\t<TD width=\"60%\"><input name=\"title\" type=\"text\" size=\"25\" value=\"{$row['title']}\" class=\"textinput\"></TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title4\">\n\t\t\t<TD><B>Minimum number of posts needed</B></TD>\n\t\t\t<TD><input name=\"min_post\" type=\"text\" size=\"25\" value=\"{$row['min_post']}\" class=\"textinput\"></TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title5\" align=\"center\">\n\t\t\t<TD colspan=\"2\">\n\t\t\t\t<input type=\"Submit\" name=\"Submit\" value=\"Update this rank\" class=\"textinput\">\n\t\t\t\t<input type=\"Reset\" name=\"Reset\" value=\"Reset\" class=\"textinput\">\n\t\t\t</TD>\n\t\t</TR>\n\t\t</form>\n\t<TBODY>\n</TABLE>\n"; clmain_body(); } else { redir("index.php?act=idx", "{$lang['Error']}", 3); } } } else { if ($GET_code == 03) { $GET_id = (int) $GET_id; $POST_min_post = (int) $POST_min_post; if (empty($GET_id)) { redir("index.php?act=idx", "{$lang['Error']}", 3); } else { $query = "SELECT COUNT(*) FROM {$CONFIG_sql_cpdbname}.rank_title WHERE title_id = \"" . mysql_res($GET_id) . "\""; $sql->result = $sql->execute_query($query, 'rank_title.php');
if ($ipban_row > 0) { $Blockip_Text = 'Unblock this IP'; } else { $Blockip_Text = 'Block this IP'; } if ($blacklist_row[memory_value2] == "block") { $Blacklist_Text = 'Unblock from this site'; } else { $Blacklist_Text = 'Block from this site'; } if ($sql->result()) { $Ignore_Ranking_Text = 'Remove Ignore Player Ranking'; } else { $Ignore_Ranking_Text = 'Ignore Player Ranking'; } opmain_body("Searching Account ID : {$GET_account_id}"); echo "\n<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\">\n\t<TBODY>\n\t<form action=\"index.php?act=searching_id&code=01&account_id={$GET_account_id}\" method=\"post\" enctype=\"multipart/form-data\" name=\"Searching_ID\" OnSubmit=\"\">\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD width=\"100%\" colspan=\"2\">\n\t\t\t\t<div class=\"title_face3\">\n\t\t\t\t\t<B>Account ID Settings</B>\n\t\t\t\t</div>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD width=\"15%\">\n\t\t\t\t<div class=\"title_face3\">\n\t\t\t\t\t<B>ID :</B>\n\t\t\t\t</div>\n\t\t\t</TD>\n\t\t\t<TD width=\"85%\">\n\t\t\t\t<a href=\"index.php?showuser="******"\">{$row['userid']}</a> <a href=\"index.php?act=account_manage&code=view_account&searchby=userid&search_value={$row['userid']}&ctype=anyword\"><i><Manage Account></i></a>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD>\n\t\t\t\t<div class=\"title_face3\">\n\t\t\t\t\t<B>Last Login :</B>\n\t\t\t\t</div>\n\t\t\t</TD>\n\t\t\t<TD>\n\t\t\t\t<input name=\"lastlogin\" type=\"text\" size=\"24\" class=\"textinput\" value=\"{$row['lastlogin']}\" readonly=\"true\">\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD>\n\t\t\t\t<div class=\"title_face3\">\n\t\t\t\t\t<B>Sex :</B>\n\t\t\t\t</div>\n\t\t\t</TD>\n\t\t\t<TD>\n\t\t\t\t<select name=\"sex\" class=\"textinput\">\n\t\t\t\t\t<option value=\"M\" " . $M_Select . ">Male</option>\n\t\t\t\t\t<option value=\"F\" " . $F_Select . ">Female</option>\n\t\t\t\t</select>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD>\n\t\t\t\t<div class=\"title_face3\">\n\t\t\t\t\t<B>E-MAIL :</B>\n\t\t\t\t</div>\n\t\t\t</TD>\n\t\t\t<TD>\n\t\t\t\t<input name=\"email\" type=\"text\" size=\"24\" class=\"textinput\" value=\"{$row['email']}\">\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD>\n\t\t\t\t<div class=\"title_face3\">\n\t\t\t\t\t<B>Last IP :</B>\n\t\t\t\t</div>\n\t\t\t</TD>\n\t\t\t<TD>\n\t\t\t\t<input name=\"last_ip\" type=\"text\" size=\"24\" class=\"textinput\" value=\"{$row['last_ip']}\" readonly=\"true\">\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD colspan=2 align=\"center\">\n\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"Save\" class=\"textinput\">\n\t\t\t\t<input type=\"reset\" name=\"Reset\" value=\"Restore\" class=\"textinput\">\n\t\t\t</TD>\n\t\t</TR>\n\t</form>\n\t<form name=\"Select_Action_ID\" method=\"post\" enctype=\"multipart/form-data\">\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD colspan=2 align=\"center\">\n\t\t\t\t<select name=\"Action\" class=\"textinput\" OnChange=document.location.replace(\"\"+document.Select_Action_ID.Action.value+\"\");>\n\t\t\t\t\t<option value=\"index.php?act=searching_id&account_id={$GET_account_id}\" selected>Select Action</option>\n\t\t\t\t\t<option value=\"index.php?act=searching_id&code=02&account_id={$GET_account_id}\">{$Block_Text}</option>\n\t\t\t\t\t<option value=\"index.php?act=searching_id&code=04&account_id={$GET_account_id}\">{$Blockip_Text}</option>\n\t\t\t\t\t<option value=\"index.php?act=searching_id&code=05&account_id={$GET_account_id}\">{$Blockallid_Text}</option>\n\t\t\t\t\t<option value=\"index.php?act=searching_id&code=06&account_id={$GET_account_id}\">{$Blacklist_Text}</option>\n\t\t\t\t\t<option value=\"index.php?act=searching_id&code=03&account_id={$GET_account_id}\">{$Ignore_Ranking_Text}</option>\n\t\t\t\t</select>\n\t\t\t</TD>\n\t\t</TR>\n\t</form>\n\t</TBODY>\n</TABLE>\n"; clmain_body(); } else { if ($GET_code == 01) { if (isMailform($POST_email)) { $POST_sex = $POST_sex == 'M' ? "M" : "F"; $sql->execute_query("UPDATE {$CONFIG_sql_dbname}.login SET sex=\"" . mysql_res($POST_sex) . "\",email=\"" . mysql_res($POST_email) . "\" WHERE account_id=\"" . mysql_res($GET_account_id) . "\"", 'searching_id.php'); header_location("index.php?act=searching_id&account_id={$GET_account_id}"); } else { redir("index.php?act=searching_id&account_id=" . $GET_account_id . "", $lang['Reg_attn_9'], 3); } } else { if ($GET_code == 02) { $row = $sql->fetch_row(); if ($row[state] == '5') {
<!-- // ========================================================================= // ______ // / __/ /____ ________ ____ ___ _ ___ ___ // _\ \/ __/ _ `/ __/ _ `/ _ `/ ' \/ -_|_-< // /___/\__/\_,_/_/ \_, /\_,_/_/_/_/\__/___/ // _____ /___/ __ ___ __ // / ___/__ ___ / /________ / / / _ \___ ____ ___ / / // / /__/ _ \/ _ \/ __/ __/ _ \/ / / ___/ _ `/ _ \/ -_) / // \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // Copyright (c) Stargames Control Panel - Licensed under GNU GPL. // See LICENSE File // ========================================================================= // Project Lead by: Mysterious // ========================================================================= --> <?php if (!$SERVER['system_safe']) { exit; } if (checkprivilege_action($CP[login_id], g_read_news)) { opmain_body("Read News"); echo "\n<TABLE width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n\t<TBODY>\n"; include_once "function/inc_news.php"; echo "\n\t</TBODY>\n</TABLE>\n"; clmain_body(); echo "\n<BR>\n<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n\t<form>\n\t<TD align=\"right\">\n\t\t<input type=\"button\" value=\"{$lang['Addnews']}\" onClick=\"hyperlink('index.php?act=action_news&code=01');\"class=\"textinput\">\n\t</TD>\n\t</form>\n</TABLE>\n"; } else { redir("index.php?act=idx", "{$lang['No_privilege']}", 3); }
<!-- // ========================================================================= // ______ // / __/ /____ ________ ____ ___ _ ___ ___ // _\ \/ __/ _ `/ __/ _ `/ _ `/ ' \/ -_|_-< // /___/\__/\_,_/_/ \_, /\_,_/_/_/_/\__/___/ // _____ /___/ __ ___ __ // / ___/__ ___ / /________ / / / _ \___ ____ ___ / / // / /__/ _ \/ _ \/ __/ __/ _ \/ / / ___/ _ `/ _ \/ -_) / // \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // Copyright (c) Stargames Control Panel - Licensed under GNU GPL. // See LICENSE File // ========================================================================= // Project Lead by: Mysterious // ========================================================================= --> <?php if (!$SERVER['system_safe']) { exit; } if (checkprivilege_action($CP[login_id], g_view_lastestcp)) { opmain_body("SGCP Update"); echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\" class=\"emptytable3\">\n\t<TBODY>\n\t\t<TR height=\"27\" class=\"title_bar2\">\n\t\t\t<TD colspan=\"2\"><span class=\"m_title\"> Automatic Update</span></TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title8\">\n\t\t\t<TD colspan=\"2\">\n\t\t\t\t<span id=\"cp_update\">" . $lang['CPUD_cp_update'] . "</span>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<form name=\"CP_Update\">\n\t\t<TR class=\"topic_title8\">\n\t\t\t<TD width=\"40%\"><span id=\"cp_update_mes\">" . $lang['CPUD_check_mes'] . "</span></TD>\n\t\t\t<TD width=\"60%\"><span id=\"cp_update_button\"><input name=\"Button\" value=\"" . $lang['CPUD_check_button'] . "\" type=\"button\" onClick=\"this.disabled=true; check_cp_update();\" class=\"textinput\"></span></TD>\n\t\t</TR>\n\t\t</form>\n\t\t<TR height=\"25\" class=\"topic_title5\">\n\t\t\t<TD colspan=\"2\"></TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n"; echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" class=\"emptytable3\">\n\t<TBODY>\n\t\t<TR height=\"27\" class=\"title_bar2\">\n\t\t\t<TD><span class=\"m_title\"> Manual Update</span></TD>\n\t\t</TR>\n\t\t<TR>\n\t\t\t<TD><iframe name=\"CP_update\" src=\"index.php?init_load=cpupdate\" width=\"100%\" height=\"200\" frameborder=\"0\" scroll=\"yes\"></iframe></TD>\n\t\t</TR>\n\t\t<TR height=\"25\" class=\"topic_title5\">\n\t\t\t<TD></TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n"; clmain_body(); } else { redir("index.php?act=idx", "{$lang['No_privilege']}", 3); }
if ($GET_code == 04) { if (checkprivilege_action($CP[login_id], g_add_privilege)) { ?> <script language=JavaScript> function CheckAddPrivilegeGroup(){ var A1 = document.AddPrivilegeGroup.g_1.value; if (A1.length < 1) { alert("Please enter a title at least 1 characters."); document.AddPrivilegeGroup.g_1.focus();return false; } else { document.AddPrivilegeGroup.Submit.disabled=true; return true; } } </script> <?php opmain_body("Add Privilege Group"); echo "\n<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" class=\"topic_title6\">\n\t<TR>\n\t\t<TD>\n\t\t\t<BR>\n\t\t\t<TABLE width=\"90%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"topic_title\" align=\"center\">\n\t\t\t\t<TBODY>\n\t\t\t\t\t<form action=\"index.php?act=privilege_action&code=04\" method=\"post\" enctype=\"multipart/form-data\" name=\"AddPrivilegeGroup\" OnSubmit=\"return CheckAddPrivilegeGroup();\">\n\t\t\t\t\t<TR align=\"center\" class=\"title_bar\" height=\"29\">\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<a class=\"m_title\">Add Privilege Group Form\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"1\" align=\"center\">\n\t\t\t\t\t\t\t\t<TR align=\"center\">\n\t\t\t\t\t\t\t\t\t<TD class=\"topic_title4\">\n\t\t\t\t\t\t\t\t\t\t{$lang['Privilegemes_1']}\n\t\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t\t\t<TD class=\"topic_title6\">\n\t\t\t\t\t\t\t\t\t\t<input name=\"g_1\" type=\"text\" size=\"12\" class=\"textinput\">\n\t\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t\t\t<TR align=\"center\">\n\t\t\t\t\t\t\t\t\t<TD class=\"topic_title4\">\n\t\t\t\t\t\t\t\t\t\t{$lang['Privilegemes_2']}\n\t\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t\t\t<TD class=\"topic_title6\">\n\t\t\t\t\t\t\t\t\t\t<input name=\"g_2\" type=\"text\" size=\"12\" class=\"textinput\">\n\t\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t\t\t<TR align=\"center\">\n\t\t\t\t\t\t\t\t\t<TD class=\"topic_title4\">\n\t\t\t\t\t\t\t\t\t\t{$lang['Privilegemes_3']}\n\t\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t\t\t<TD class=\"topic_title6\">\n\t\t\t\t\t\t\t\t\t\t<input name=\"g_3\" type=\"text\" size=\"12\" class=\"textinput\">\n\t\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t\t</TR>\n"; for ($a = 4; $a <= MAX_GROUP_PRIVILEGE; $a++) { $privilegemes = "Privilegemes_{$a}"; echo "\n\t\t\t\t\t\t\t\t<TR align=\"center\">\n\t\t\t\t\t\t\t\t\t<TD class=\"topic_title4\">\n\t\t\t\t\t\t\t\t\t\t{$lang[$privilegemes]}\n\t\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t\t\t<TD class=\"topic_title6\">\n\t\t\t\t\t\t\t\t\t\tYes\n\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"g_{$a}\" value=\"1\" class=\"textinput\"> \n\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"g_{$a}\" value=\"0\" class=\"textinput\" checked>\n\t\t\t\t\t\t\t\t\t\tNo\n\t\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t\t</TR>\n"; } echo "\n\t\t\t\t\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t\t\t\t\t<TD colspan=\"2\" align=\"center\">\n\t\t\t\t\t\t\t\t\t\t<input name=\"Submit\" type=\"submit\" value=\"{$lang['Save']}\" class=\"textinput\">\n\t\t\t\t\t\t\t\t\t\t<input name=\"Reset\" type=\"reset\" value=\"{$lang['Restore']}\" class=\"textinput\">\n\t\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t\t</TABLE>\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</form>\n\t\t\t\t</TBODY>\n\t\t\t</TABLE>\n\t\t\t<BR>\n\t\t</TD>\n\t</TR>\n</TABLE>\n"; clmain_body(); } else { redir("index.php?act=idx", "{$lang['No_privilege']}", 3); } } } else { redir("index.php?act=idx", "{$lang['No_privilege']}", 3); }
echo "\t\t<option value=\"01\">-{$val01}</option>\n"; } if (checkprivilege_action($CP[login_id], g_delete_topics)) { echo "\t\t<option value=\"02\">-{$lang['Del_Topic']}</option>\n"; } if (checkprivilege_action($CP[login_id], g_edit_topics)) { echo "\t\t<option value=\"03\">-{$lang['Edit_Topic_Title']}</option>\n"; } if (checkprivilege_action($CP[login_id], g_pinned_topics)) { echo "\t\t<option value=\"04\">-{$val04}</option>\n"; } echo "\t</select>\n\t<input type=\"submit\" name=\"Submit\" value=\"Go\" class=\"textinput\">\n</form>\n"; } if ($qr_open && !$topic_closed) { echo "<br>\n<TABLE width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n\t<TR>\n\t\t<TD id=\"qr_open\" class=\"topic_title8\" style=\"visibility:hidden;\">\n"; opmain_body("Fast Reply", 0, '100%'); echo "\t\t\t<TABLE width=\"100%\" cellspacing=\"0\" cellpadding=\"5\" align=\"center\">\n\t\t\t\t<TR>\n\t\t\t\t\t<TD>\n\t\t\t\t\t\t<TABLE width=\"80%\" cellspacing=\"0\" cellpadding=\"5\" align=\"center\" class=\"tablefill\">\n\t\t\t\t\t\t<form action=\"index.php?act=insert_topic&code=01\" method=\"post\" enctype=\"multipart/form-data\" id=\"t_post_form\" OnSubmit=\"return CheckReplymessage('t_post_form')\">\n\t\t\t\t\t\t<input type=\"hidden\" name=\"f\" value=\"" . $forum_id . "\">\n\t\t\t\t\t\t<input type=\"hidden\" name=\"t\" value=\"" . $GET_showtopic . "\">\n\t\t\t\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t\t\t\t<TD>\n"; get_bbcode("t_post_form"); echo "\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t\t<TR class=\"topic_title5\" align=\"center\">\n\t\t\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t\t\t<textarea style=\"width:100%;\" name=\"t_mes\" cols=\"80\" rows=\"15\" class=\"textinput\"></textarea>\n\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t\t<TR class=\"topic_title5\" align=\"center\">\n\t\t\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"Add�Reply\" class=\"textinput\" onclick=\"return CheckPostlength('t_post_form','{$CONFIG_max_post_length}');\">\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"Button\" value=\"Close Fast Reply\" class=\"textinput\" onclick=\"ShowHide('qr_open')\">\n\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</TABLE>\n\t\t\t\t\t</TD>\n\t\t\t\t</TR>\n\t\t\t</TABLE>\n"; clmain_body(); echo "\t\t</TD>\n\t</TR>\n</TABLE>\n"; } } else { redir("index.php?act=webboard", "{$lang['No_topic']}", 3); } } else { redir("index.php?act=forum", "{$lang['No_privilege']}", 3); } } else { redir("index.php?act=forum", "{$lang['No_Forum']}", 3); }
// \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // Copyright (c) Stargames Control Panel - Licensed under GNU GPL. // See LICENSE File // ========================================================================= // Project Lead by: Mysterious // ========================================================================= --> <?php if (!$SERVER['system_safe']) { exit; } if (checkprivilege_action($CP[login_id], g_delete_id) && $CONFIG_deluser_mode) { $day = $POST_day ? $POST_day : ($GET_day ? $GET_day : 90); $maxusers = $POST_maxusers ? $POST_maxusers : ($GET_maxusers ? $GET_maxusers : 100); opmain_body("Delete User"); echo "\n<script language=\"JavaScript\">\nfunction deleteid() {\n\tif (confirm('Are you sure you want to delete?'))\n\t\treturn true;\n\telse\n\t\treturn false;\n}\nfunction Showusers() {\n\tvar A1 = document.Deluser.day.value;\n\tvar A2 = document.Deluser.maxusers.value;\n\thyperlink('index.php?act=deluser&code=02&day='+A1+'&maxusers='+A2+'');\nreturn false;\n}\n</script>\n<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\" class=\"emptytable3\">\n\t<form action=\"index.php?act=deluser&code=01\" method=\"post\" enctype=\"multipart/form-data\" name=\"Deluser\" OnSubmit=\"return deleteid()\">\n\t<TBODY>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD colspan=\"2\">{$lang['Delusers_input']}</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD width=\"25%\">{$lang['Delusers_input_time']}</TD>\n\t\t\t<TD width=\"75%\"><input type=\"text\" name=\"day\" value=\"" . $day . "\" size=\"5\" maxlength=\"10\" class=\"textinput\"> {$lang['Delusers_day']}</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD>{$lang['Delusers_input_maxusers']}</TD>\n\t\t\t<TD><input type=\"text\" name=\"maxusers\" value=\"" . $maxusers . "\" size=\"5\" maxlength=\"5\" class=\"textinput\"> {$lang['Delusers_maxusers']}</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD colspan=\"2\"><input name=\"delalldata\" type=\"checkbox\" value=\"1\" checked> {$lang['Delusers_check_all']}</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD colspan=\"2\">\n\t\t\t\t<input type=\"button\" name=\"Button\" value=\"{$lang['Delusers_show_users']}\" class=\"textinput\" onClick=\"Showusers();\">\n\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"{$lang['Delusers_del_users']}\" class=\"textinput\">\n\t\t\t</TD>\n\t\t</TR>\n"; if ($GET_code == 01 && $POST_day && $POST_maxusers) { ini_set("max_execution_time", 60 * 10); $tmp_lastlogin = $CP[time] - $POST_day * 3600 * 24; $lastlogin = date("Y-m-d H:i:s", $tmp_lastlogin); $query = "SELECT account_id,userid,lastlogin,logincount FROM {$CONFIG_sql_dbname}.login WHERE lastlogin < \"" . mysql_res($lastlogin) . "\" AND sex != \"S\" AND logincount > \"0\" ORDER by lastlogin ASC LIMIT " . mysql_res($POST_maxusers) . ""; $sql->result = $sql->execute_query($query, 'deluser.php'); $sql->total_query++; echo "\t\t<TR class=\"topic_title6\">\n\t\t\t<TD colspan=\"2\">\n"; while ($row = $sql->fetch_row()) { $diffday = ($CP[time] - strtotime($row[lastlogin])) / 3600 / 24; $aid = $row["account_id"]; $sql->execute_query("DELETE FROM {$CONFIG_sql_dbname}.login WHERE account_id =\"{$aid}\"", 'deluser.php'); if ($POST_delalldata == 1) { $sql->execute_query("DELETE FROM {$CONFIG_sql_cpdbname}.user_profile WHERE user_id =\"{$aid}\"", 'deluser.php');
$display = $lang[sls_pass_incorrect]; } } } else { $display = $lang[state_incorrect]; } } else { $display = $lang[login_wrong]; } redir("index.php?act=sls", "{$display}", 3); } else { if ($GET_code == 02) { ?> <script language="JavaScript">function CheckSLS(){var L1 = document.sls_form.LG_USER.value; var L2 = document.sls_form.LG_PASS.value; var L3 = document.sls_form.SLS_PASS.value;if (L1.length < 4) {alert("Please enter your ID at least 4 characters."); document.sls_form.LG_USER.focus(); return false;}else if (L2.length < 4) {alert("Please enter your password at least 4 characters."); document.sls_form.LG_PASS.focus(); return false;}else if (L3.length < 4) {alert("Please enter your SLS password at least 4 characters."); document.sls_form.SLS_PASS.focus(); return false;}else {document.sls_form.Submit.disabled=true;return true;}}</script> <?php opmain_body("Self Locking System"); echo "\n<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"3\" align=\"center\">\n\t<TBODY>\n\t<form action=\"index.php?act=sls&code=03\" method=\"post\" enctype=\"multipart/form-data\" name=\"sls_form\" onSubmit=\"return CheckSLS()\">\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD width=\"20%\" align=\"right\">\n\t\t\t\t{$lang['login_user']} :\n\t\t\t</TD>\n\t\t\t<TD width=\"80%\" align=\"left\">\n\t\t\t\t<input name=\"LG_USER\" type=\"text\" size=\"28\" maxlength=\"24\" class=\"textinput\">\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD align=\"right\">\n\t\t\t\t{$lang['login_pass']} :\n\t\t\t</TD>\n\t\t\t<TD align=\"left\">\n\t\t\t\t<input name=\"LG_PASS\" type=\"password\" size=\"28\" maxlength=\"24\" class=\"textinput\">\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD align=\"right\">\n\t\t\t\t{$lang['login_sls_pass']} :\n\t\t\t</TD>\n\t\t\t<TD align=\"left\">\n\t\t\t\t<input name=\"SLS_PASS\" type=\"password\" size=\"28\" maxlength=\"24\" class=\"textinput\">\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD></TD>\n\t\t\t<TD>\n\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"{$lang['make_sls_pass']}\" class=\"textinput\">\n\t\t\t</TD>\n\t\t</TR>\n\t</form>\n\t</TBODY>\n</TABLE>\n"; clmain_body(); } else { if ($GET_code == 03 && isAlphaNumeric($POST_LG_USER) && isAlphaNumeric($POST_LG_PASS) && isAlphaNumeric($POST_SLS_PASS)) { $POST_LG_PASS = mysql_res(checkmd5($CONFIG_md5_support, $POST_LG_PASS)); $query = "SELECT account_id FROM {$CONFIG_sql_dbname}.login WHERE userid = \"" . mysql_res($POST_LG_USER) . "\" AND user_pass=\"{$POST_LG_PASS}\" LIMIT 0,1"; $sql->result = $sql->execute_query($query, 'sls.php'); $sql->total_query++; if ($sql->count_rows()) { $row = $sql->fetch_row(); $userid = $row[account_id]; $query = "SELECT user_sls_pass FROM {$CONFIG_sql_cpdbname}.user_profile WHERE user_id = \"" . mysql_res($userid) . "\" LIMIT 0,1"; $sql->result = $sql->execute_query($query, 'sls.php'); if ($sql->count_rows()) { $row2 = $sql->fetch_row();
$query = "SELECT user_id, display_name, user_last_login FROM {$CONFIG_sql_cpdbname}.user_profile WHERE user_online =\"1\" ORDER by user_last_login DESC"; $sql->result = $sql->execute_query($query, 'forum.php'); $sql->total_query++; $member_online = $sql->count_rows(); $guest_online = $user_online - $member_online; if ($guest_online < 0) { $guest_online = '0'; } $mdate = get_date("M j y, H:i A", $mrow[memory_value2]); $i = ""; while ($urow = $sql->fetch_row()) { //$username = get_username($urow[user_id]); $username = get_displayname($urow[display_name], $urow[user_id]); $user_last_login = get_date("H:i A", $urow[user_last_login]); $color = checkprivilege_action($urow[user_id], g_color); $members_online = "{$members_online}" . $i . "<a href=\"index.php?showuser="******"\" title=\"{$user_last_login}\"><font color=\"{$color}\">{$username}</font></a>"; $i = ", "; } $FR_Stat_1 = sprintf("{$lang['FR_Stat_1']}", $user_online); $FR_Stat_2 = sprintf("\n\t\t\t\t{$lang['FR_Stat_2']}<BR>\n\t\t\t\t{$lang['FR_Stat_3']}<BR>\n\t\t\t\t{$lang['FR_Stat_4']}<BR>\n\t\t\t\t{$lang['FR_Stat_5']}", $total_post, $total_registered, "<a href=\"index.php?showuser="******"\">{$last_registered_name}</a>", $mrow[memory_value1], $mdate); opmain_body("{$lang['FR_Stat']}"); echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\" class=\"emptytable3\">\n\t<TBODY>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD colspan=\"2\"><div class=\"title_face\">{$FR_Stat_1}</div></TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title4\">\n\t\t\t<TD rowspan=\"2\" width=\"6%\" align=\"center\"><img src=\"theme/{$STORED['THEME']}/images/user.gif\" alt=\"Active Users\"></TD>\n\t\t\t<TD width=\"94%\"><B>{$guest_online}</B> {$lang['Guests']}, <B>{$member_online}</B> {$lang['Members']}</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title4\">\n\t\t\t<TD>" . $members_online . " </TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD colspan=\"2\"><div class=\"title_face\">{$lang['FR_Stat']}</div></TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title4\">\n\t\t\t<TD align=\"center\"><img src=\"theme/{$STORED['THEME']}/images/stats.gif\" alt=\"Forum Stats\"></TD>\n\t\t\t<TD>{$FR_Stat_2}\n\t\t\t</TD>\n\t\t</TR>\t\t\n\t</TBODY>\n</TABLE>\n"; clmain_body(); } else { opmain_body("CP Message"); echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\" class=\"emptytable3\">\n\t<TBODY>\n\t\t<TR height=\"27\" class=\"title_bar2\">\n\t\t\t<TD><div class=\"title_face\">CP Message</div></TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title7\">\n\t\t\t<TD align=\"center\"><B>{$lang['No_Category']}</B></TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n"; clmain_body(); } } else { redir("index.php?act=idx", "{$lang['No_privilege']}", 3); }
<!-- // ========================================================================= // ______ // / __/ /____ ________ ____ ___ _ ___ ___ // _\ \/ __/ _ `/ __/ _ `/ _ `/ ' \/ -_|_-< // /___/\__/\_,_/_/ \_, /\_,_/_/_/_/\__/___/ // _____ /___/ __ ___ __ // / ___/__ ___ / /________ / / / _ \___ ____ ___ / / // / /__/ _ \/ _ \/ __/ __/ _ \/ / / ___/ _ `/ _ \/ -_) / // \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // Copyright (c) Stargames Control Panel - Licensed under GNU GPL. // See LICENSE File // ========================================================================= // Project Lead by: Mysterious // ========================================================================= --> <?php if (!$SERVER['system_safe']) { exit; } if (empty($STORED_loginname) && empty($STORED_loginpass) && !$CONFIG_download_mode) { redir("index.php?act=login", "{$lang['Must_login']}", 3); } else { opmain_body("Download", 150); echo "\n<TABLE width=\"100%\" height=\"100%\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\">\n\t<TBODY>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD width=\"100%\" height=\"25\" vAlign=\"top\"></TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\" height=\"100%\">\n\t\t\t<TD class=\"title_face4\" vAlign=\"top\">\n"; include_once "pages/download.php"; echo "\t\t\t</TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD width=\"100%\" height=\"25\"></TD>\n\t\t</TR>\n\t<TBODY>\n</TABLE>\n"; clmain_body(); }
echo "<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\" class=\"topic_title6\">\n\t<TR class=\"topic_title5\"><TD height=\"25\"></TD></TR>\n\t<TR>\n\t\t<TD>\n<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"topic_title6\">\n\t<TR>\n\t\t<TD>\n<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n\t<TR>\n\t\t<TD width=\"30%\" vAlign=\"top\">\n\t\t\t<TABLE width=\"100%\" height=\"100%\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"10\">\n\t\t\t\t<TR>\n\t\t\t\t\t<TD align=\"left\">\n\t\t\t\t\t\t<TABLE width=\"100%\" height=\"100%\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\n\t\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t\t\t{$reply_avatar}<BR><BR>\n\t\t\t\t\t\t\t\t\t{$rank_title}<BR>\n\t\t\t\t\t\t\t\t\t<img src=\"theme/{$STORED['THEME']}/images/groups/{$reply_imgroup}\" alt=\"Group Icon\"><BR><BR>\n\t\t\t\t\t\t\t\t\t{$lang['Group']}: {$reply_group}<BR>\n\t\t\t\t\t\t\t\t\t{$lang['Posts']}: {$reply_post}</B><BR>\n\t\t\t\t\t\t\t\t\t{$lang['Mem_No']}: {$reply_number}</B><BR>\n\t\t\t\t\t\t\t\t\t{$lang['Join']}: {$reply_joined}<BR><BR>\n\t\t\t\t\t\t\t\t\t{$status_bar}\n\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t</TABLE>\n\t\t\t\t\t</TD>\n\t\t\t\t</TR>\n\t\t\t</TABLE>\n\t\t</TD>\n\t</TR>\n</TABLE>\n\t\t</TD>\n\t\t<TD width=\"70%\" vAlign=\"top\">\n"; $query = "SELECT name,class,base_level,job_level,online FROM {$CONFIG_sql_dbname}.char WHERE md5(`account_id`) =\"" . mysql_res($GET_showuser) . "\""; $sql->result = $sql->execute_query($query, 'showuser.php'); $sql->total_query++; if ($sql->count_rows()) { echo "\t\t\t<TABLE width=\"100%\" height=\"100%\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"10\">\n\t\t\t\t<TR>\n\t\t\t\t\t<TD>\n\t\t\t<TABLE width=\"80%\" height=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" class=\"topic_title\">\n\t\t\t\t<TBODY>\n\t\t\t\t\t<TR align=\"center\" class=\"title_bar\" height=\"29\">\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<a class=\"m_title\">Character in user: {$show_username}</a>\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"1\" align=\"center\">\n\t\t\t\t\t\t\t\t<TBODY>\n\t\t\t\t\t\t\t\t\t<TR align=\"center\" class=\"topic_title3\" style=\"font-weight: bold;\">\n\t\t\t\t\t\t\t\t\t\t<TD>No.</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>Name</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>Class</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>Base Level</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>Job Level</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>Status</TD>\n\t\t\t\t\t\t\t\t\t</TR>\n"; $n = 0; while ($c_row = $sql->fetch_row()) { $n++; $jobid = "{$c_row['class']}"; if ($c_row[online]) { $online = "<font class=\"status_on\">Online</font>"; } else { $online = "<font class=\"status_off\">Offline</font>"; } echo "\t\t\t\t\t\t\t\t\t<TR align=\"center\" class=\"topic_title4\">\n\t\t\t\t\t\t\t\t\t\t<TD>{$n}</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>{$c_row['name']}</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>{$jobname[$jobid]}</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>{$c_row['base_level']}</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>{$c_row['job_level']}</TD>\n\t\t\t\t\t\t\t\t\t\t<TD>{$online}</TD>\n\t\t\t\t\t\t\t\t\t</TR>\n"; } echo "\t\t\t\t\t\t\t\t</TBODY>\n\t\t\t\t\t\t\t</TABLE>\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t</TABLE>\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TBODY>\n\t\t\t</TABLE>\n\t\t\t<BR>\n"; } echo "\t\t</TD>\n\t</TR>\n</TABLE>\n"; if (!empty($reply_signature)) { $reply_signature_ = replace_text($reply_signature); opmain_body("Signature", 0, '95%'); echo "\t\t\t<TABLE width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\">\n\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t<TD height=\"25\"></TD>\n\t\t\t\t</TR>\n\t\t\t\t<TR class=\"topic_title8\">\n\t\t\t\t\t<TD>{$reply_signature_}</TD>\n\t\t\t\t</TR>\n\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t<TD height=\"25\"></TD>\n\t\t\t\t</TR>\n\t\t\t</TABLE>\n"; clmain_body(); } echo "\t\t</TD>\n\t</TR>\n\t<TR class=\"topic_title5\"><TD height=\"25\"></TD></TR>\n</TABLE>\n"; clmain_body(); } else { redir("index.php?act=idx", "{$lang['No_user']}", 3); }
function redir_back($message) { global $lang; if (empty($message)) { $message_ = ""; } else { $message_ = "" . htmlspecialchars($message) . "<br /><br />"; $message_ = exceptchars_decode($message_); } echo "\n\t<TABLE width=\"100%\" height=\"85%\" align=\"center\">\n\t\t<TR>\n\t\t\t<TD valign=\"top\">\n"; opmain_body("CP Message", 0, 0); echo "\t\t\t\t<TABLE align=\"center\" cellpadding=\"4\" cellspacing=\"0\">\n\t\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t\t<TD height=\"20\"></TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR class=\"topic_title6\">\n\t\t\t\t\t\t<TD width=\"250\" height=\"50\" align=\"center\" nowrap=\"nowrap\" align=\"center\">\n\t\t\t\t\t\t\t{$message_}\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR class=\"topic_title5\" align=\"center\">\n\t\t\t\t\t\t<TD height=\"20\"><B><a href=\"javascript:history.back();\">{$lang['Wait_Back']}</a></B></TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TABLE>\n"; clmain_body(); echo "\t\t\t</TD>\n\t\t</TR>\n\t</TABLE>\n"; }
} else { if ($GET_code == "view_inactiveid") { if (!isset($GET_st)) { $GET_st = 0; } $GET_st = (int) $GET_st; $page = get_page($GET_st, $CONFIG_AM_per_page); $sql->result = $sql->execute_query("SELECT COUNT(*) FROM {$CONFIG_sql_cpdbname}.memory WHERE memory_object=\"activate_id\"", 'account_manage.php'); $total = $sql->result(); $query = "SELECT memory_value1,memory_value2 FROM {$CONFIG_sql_cpdbname}.memory WHERE memory_object=\"activate_id\" ORDER by memory_value1 ASC LIMIT " . mysql_res($GET_st) . "," . mysql_res($CONFIG_AM_per_page) . ""; $sql->result = $sql->execute_query($query, 'account_manage.php'); $sql->total_query++; echo "<TABLE width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n\t<TBODY>\n\t\t<TR>\n\t\t\t<TD align=\"right\">\n"; get_selectpage($total, $CONFIG_AM_per_page, $page, "index.php?act=account_manage&code=view_inactiveid"); echo "\t\t\t</TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n<BR>\n"; opmain_body("Inactive Account"); if ($sql->count_rows()) { echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\" class=\"emptytable3\">\n\t<TBODY>\n\t\t<TR height=\"27\" class=\"title_bar2\" align=\"center\">\n\t\t\t<TD width=\"5%\"><div class=\"title_face\">No.</div></TD>\n\t\t\t<TD width=\"25%\"><div class=\"title_face\">User ID</div></TD>\n\t\t\t<TD width=\"20%\"><div class=\"title_face\">Registed date</div></TD>\n\t\t\t<TD width=\"50%\"></TD>\n\t\t</TR>\n"; $i = 0; while ($row = $sql->fetch_row()) { $i++; $query = "SELECT user_joined FROM {$CONFIG_sql_cpdbname}.user_profile WHERE user_id=\"{$row['memory_value2']}\""; $sql->result2 = $sql->execute_query($query, 'account_manage.php'); $urow = $sql->fetch_row($sql->result2); $user_joined = get_date("j-M y", $urow[user_joined]); $userid = get_username($row[memory_value2]); echo "\t\t<form action=\"index.php?act=account_manage&manage=activeaccount\" method=\"post\" enctype=\"multipart/form-data\" name=\"Account_Manage_Form\">\n\t\t<input type=\"hidden\" name=\"account_id\" value=\"{$row['memory_value2']}\">\n\t\t<TR class=\"topic_title7\" align=\"center\">\n\t\t\t<TD>{$i}</TD>\n\t\t\t<TD>{$userid}</TD>\n\t\t\t<TD>{$user_joined}</TD>\n\t\t\t<TD><input type=\"submit\" name=\"Submit\" value=\"Active this account\" class=\"textinput\"><input type=\"button\" name=\"Remove\" value=\"Delete this account\" class=\"textinput\" onClick=\"hyperlink('index.php?act=account_manage&manage=deleteinactiveid&account_id={$row['memory_value2']}');\"></TD>\n\t\t</TR>\n\t\t</form>\n"; } echo "\t</TBODY>\n</TABLE>\n"; } else { echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\" class=\"emptytable3\">\n\t<TBODY>\n\t\t<TR height=\"27\" class=\"title_bar2\">\n\t\t\t<TD><div class=\"title_face\">CP Message</div></TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title7\">\n\t\t\t<TD align=\"center\"><B>There isn't an inactive account.</B></TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n";
// Copyright (c) Stargames Control Panel - Licensed under GNU GPL. // See LICENSE File // ========================================================================= // Project Lead by: Mysterious // ========================================================================= --> <?php if (!$SERVER['system_safe']) { exit; } $GET_guild_id = (int) $GET_guild_id; $query = "SELECT name FROM {$CONFIG_sql_dbname}.guild WHERE guild_id=\"" . mysql_res($GET_guild_id) . "\""; $sql->result = $sql->execute_query($query, 'guildinfo.php'); $sql->total_query++; $row = $sql->fetch_row(); opmain_body("" . $row['name'] . " Guild"); echo "\n<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"1\" align=\"center\">\n\t<TBODY>\n\t\t<TR align=\"center\" class=\"topic_title3\" style=\"font-weight: bold;\">\n\t\t\t<TD>No.</TD>\n\t\t\t<TD>Name</TD>\n\t\t\t<TD>Class</TD>\n\t\t\t<TD>Level</TD>\n\t\t\t<TD>EXP Donated</TD>\n\t\t\t<TD>Position</TD>\n\t\t</TR>\n"; if ($sql->count_rows()) { $query = "SELECT account_id,name,class,lv,exp,position FROM {$CONFIG_sql_dbname}.guild_member WHERE guild_id=\"" . mysql_res($GET_guild_id) . "\" ORDER BY position ASC"; $sql->result = $sql->execute_query($query, 'guildinfo.php'); $sql->total_query++; $IS_SEARCHING_ID = checkprivilege_action($CP[login_id], g_searching_id) ? 1 : 0; $countstanding = 0; $i = 0; while ($grow = $sql->fetch_row()) { $i++; $countstanding = 1; $jobid = $grow['class']; $query = "SELECT name FROM {$CONFIG_sql_dbname}.guild_position WHERE guild_id=\"" . mysql_res($GET_guild_id) . "\" and position=\"" . $grow['position'] . "\""; $sql->result2 = $sql->execute_query($query, 'guildinfo.php'); $prow = $sql->fetch_row($sql->result2);
<!-- // ========================================================================= // ______ // / __/ /____ ________ ____ ___ _ ___ ___ // _\ \/ __/ _ `/ __/ _ `/ _ `/ ' \/ -_|_-< // /___/\__/\_,_/_/ \_, /\_,_/_/_/_/\__/___/ // _____ /___/ __ ___ __ // / ___/__ ___ / /________ / / / _ \___ ____ ___ / / // / /__/ _ \/ _ \/ __/ __/ _ \/ / / ___/ _ `/ _ \/ -_) / // \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // Copyright (c) Stargames Control Panel - Licensed under GNU GPL. // See LICENSE File // ========================================================================= // Project Lead by: Mysterious // ========================================================================= --> <?php if (!$SERVER['system_safe']) { exit; } echo "<BR>\n"; opmain_body("{$lang['RO_News']}"); echo "<TABLE width=\"100%\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n\t<TBODY>\n"; include "function/inc_news.php"; echo "\t</TBODY>\n</TABLE>\n"; clmain_body();