// / ___/__ ___ / /________ / / / _ \___ ____ ___ / / // / /__/ _ \/ _ \/ __/ __/ _ \/ / / ___/ _ `/ _ \/ -_) / // \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // Copyright (c) Stargames Control Panel - Licensed under GNU GPL. // See LICENSE File // ========================================================================= // Project Lead by: Mysterious // ========================================================================= --> <?php if (!$SERVER['system_safe']) { exit; } $GET_account_id = (int) $GET_account_id; if (checkprivilege_action($CP[login_id], g_searching_id)) { $query = "SELECT account_id,userid,email,lastlogin,last_ip,sex,state FROM {$CONFIG_sql_dbname}.login WHERE account_id =\"" . mysql_res($GET_account_id) . "\""; $sql->result = $sql->execute_query($query, 'searching_id.php'); $sql->total_query++; if ($sql->count_rows()) { if ($GET_code == 00) { $row = $sql->fetch_row(); $last_ip = $row['last_ip']; //for($i=0,$x=0;$i<15;$i++) { if($last_ip[$i]=='.') $x++; else $ip[$x].=$last_ip[$i]; } $query = "SELECT COUNT(*) FROM {$CONFIG_sql_dbname}.ipbanlist WHERE list=\"" . mysql_res($last_ip) . "\""; $sql->result = $sql->execute_query($query, 'searching_id.php'); $sql->total_query++; $ipban_row = $sql->result(); $query = "SELECT memory_value2 FROM {$CONFIG_sql_cpdbname}.memory WHERE memory_object =\"ip_blacklist\" AND memory_value1=\"" . mysql_res($last_ip) . "\""; $sql->result = $sql->execute_query($query, 'searching_id.php'); $sql->total_query++;
$sql->total_query++; $display = "{$lang['Success_deleteprivilege']}"; } else { $display = "{$lang['No_aclv']}"; } } else { $display = "CP can not delete this group"; } redir("index.php?act=privilege&code=03", $display, 3); } else { $display = "{$lang['No_privilege']}"; redir("index.php?act=privilege", $display, 3); } } else { if ($GET_code == 04 && $POST_g_1) { if (checkprivilege_action($CP[login_id], g_add_privilege)) { $POST_g_1 = checkstring($POST_g_1, 1); $POST_g_2 = truestr($POST_g_2); $POST_g_3 = truestr($POST_g_3); for ($i = 2; $i <= MAX_GROUP_PRIVILEGE; $i++) { $g_name = "POST_g_" . $i . ""; ${$g_name} = mysql_res(${$g_name}); } $sql->execute_query("INSERT INTO {$CONFIG_sql_cpdbname}.groups VALUES ('',\n\t\"{$POST_g_1}\",\n\t\"{$POST_g_2}\",\n\t\"{$POST_g_3}\",\n\t\"{$POST_g_4}\",\n\t\"{$POST_g_5}\",\n\t\"{$POST_g_6}\",\n\t\"{$POST_g_7}\",\n\t\"{$POST_g_8}\",\n\t\"{$POST_g_9}\",\n\t\"{$POST_g_10}\",\n\t\"{$POST_g_11}\",\n\t\"{$POST_g_12}\",\n\t\"{$POST_g_13}\",\n\t\"{$POST_g_14}\",\n\t\"{$POST_g_15}\",\n\t\"{$POST_g_16}\",\n\t\"{$POST_g_17}\",\n\t\"{$POST_g_18}\",\n\t\"{$POST_g_19}\",\n\t\"{$POST_g_20}\",\n\t\"{$POST_g_21}\",\n\t\"{$POST_g_22}\",\n\t\"{$POST_g_23}\",\n\t\"{$POST_g_24}\",\n\t\"{$POST_g_25}\",\n\t\"{$POST_g_26}\",\n\t\"{$POST_g_27}\",\n\t\"{$POST_g_28}\",\n\t\"{$POST_g_29}\",\n\t\"{$POST_g_30}\",\n\t\"{$POST_g_31}\",\n\t\"{$POST_g_32}\",\n\t\"{$POST_g_33}\",\n\t\"{$POST_g_34}\",\n\t\"{$POST_g_35}\",\n\t\"{$POST_g_36}\",\n\t\"{$POST_g_37}\",\n\t\"{$POST_g_38}\")", 'privilege_action.php'); $sql->total_query++; $display = "{$lang['Success_addprivilege']}"; redir("index.php?act=privilege&code=03", $display, 3); } else { $display = "{$lang['No_privilege']}"; redir("index.php?act=privilege", $display, 3); }
$IS_EDIT_TOPIC = 0; } echo "\n<form action=\"index.php?act=insert_topic&code=02\" method=\"post\" enctype=\"multipart/form-data\" id=\"t_post_form\" OnSubmit=\"return " . $return . "\">\n<input type=\"hidden\" name=\"f\" value=\"{$GET_f}\">\n<input type=\"hidden\" name=\"t\" value=\"{$GET_t}\">\n<input type=\"hidden\" name=\"p\" value=\"{$GET_p}\">\n<div id=\"post_preview\"></div>\n<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" class=\"topic_title\">\n\t<TBODY>\n\t\t<TR>\n\t\t\t<TD class=\"title_bar\" height=\"29\">\n\t\t\t\t<a class=\"m_title\"> Editing a post in " . $topic_name . "</a>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR>\n\t\t\t<TD>\n\t\t\t\t<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\" class=\"emptytable\">\n\t\t\t\t\t<TBODY>\n"; if ($IS_EDIT_TOPIC) { echo "\t\t\t\t\t<input type=\"hidden\" name=\"edit_topic\" value=\"1\">\n\t\t\t\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t\t\t<TD width=\"100%\" colspan=\"2\">\n\t\t\t\t\t\t\t\t<div class=\"title_face3\"><B>Topic Settings</B></div>\n\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t<TR class=\"topic_title6\">\n\t\t\t\t\t\t\t<TD width=\"30%\">\n\t\t\t\t\t\t\t\t<div class=\"title_face4\">Topic Title</div>\n\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t<TD width=\"70%\">\n\t\t\t\t\t\t\t\t<input name=\"t_title\" type=\"text\" size=\"40\" maxlength=\"50\" class=\"textinput\" value=\"{$row['topic_name']}\">\n\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t<TR class=\"topic_title6\">\n\t\t\t\t\t\t\t<TD width=\"30%\">\n\t\t\t\t\t\t\t\t<div class=\"title_face4\">Topic Description</div>\n\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t<TD width=\"70%\">\n\t\t\t\t\t\t\t\t<input name=\"t_desc\" type=\"text\" size=\"40\" maxlength=\"40\" class=\"textinput\" value=\"{$row['topic_description']}\">\n\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t</TR>\n"; } include_once "function/post.php"; echo "\t\t\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t\t\t<TD width=\"100%\" colspan=\"2\" align=\"center\">\n\t\t\t\t\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"Submit�Modified�Post\" class=\"textinput\" onclick=\"return CheckPostlength('t_post_form','{$CONFIG_max_post_length}');\">\n\t\t\t\t\t\t\t\t<input type=\"button\" name=\"Preview\" value=\"Preview Post\" class=\"textinput\" onClick=\"preview_post('t_post_form');\">\n\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t</TR>\n\t\t\t\t\t</TBODY>\n\t\t\t\t</TABLE>\n\t\t\t</TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n</form>\n"; } else { redir("index.php?act=webboard", "{$lang['No_topic']}", 3); } } else { redir("index.php?act=forum", "{$lang['No_privilege']}", 3); } } if ($GET_code == 03 && checkprivilege_action($CP[login_id], g_delete_posts)) { $query = "SELECT COUNT(*) FROM {$CONFIG_sql_cpdbname}.board_reply WHERE topic_id =\"" . mysql_res($GET_t) . "\" AND reply_id = \"" . mysql_res($GET_p) . "\" "; $sql->result = $sql->execute_query($query, 'action_post.php'); $sql->total_query++; if ($sql->result()) { $sql->execute_query("DELETE FROM {$CONFIG_sql_cpdbname}.board_reply WHERE topic_id =\"" . mysql_res($GET_t) . "\" AND reply_id = \"" . mysql_res($GET_p) . "\" ", 'action_post.php'); $sql->total_query++; $query = "SELECT reply_user_id FROM {$CONFIG_sql_cpdbname}.board_reply WHERE topic_id =\"" . mysql_res($GET_t) . "\" order by reply_id DESC LIMIT 1"; $sql->result = $sql->execute_query($query, 'action_post.php'); $sql->total_query++; $row_reply = $sql->fetch_row(); $lastnewreplyid = $row_reply[reply_user_id]; $sql->execute_query("UPDATE {$CONFIG_sql_cpdbname}.board_topic SET topic_replying=topic_replying-1,topic_lastreply_name=\"" . $lastnewreplyid . "\" WHERE topic_id =\"" . mysql_res($GET_t) . "\" ", 'action_post.php'); $sql->total_query++; redir("index.php?showtopic={$GET_t}&view=getnewpost", "{$lang['Delete_topic']}", 3); } else {
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"; if ($CONFIG_upload_avatar && checkprivilege_action($CP[login_id], g_avatar_upload)) { echo "\t\t\t\t\t<TR class=\"topic_title6\">\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t{$lang['login_upavatar']}\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<input name=\"upavatar\" type=\"file\" 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>\n\t\t\t\t\t\t\t{$lang['login_avatar_size']}\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\twidth: <input name=\"avatar_width\" type=\"text\" size=\"2\" maxlength=\"3\" class=\"textinput\" value=\"{$reply_avatar_width}\">\n\t\t\t\t\t\t\theight: <input name=\"avatar_height\" type=\"text\" size=\"2\" maxlength=\"3\" class=\"textinput\" value=\"{$reply_avatar_height}\"> pixels\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['avatar_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"; $vmes = "document.t_post_form.t_mes"; echo "\t\t\t\t\t<form action=\"index.php?act=change_profile&code=04\" method=\"post\" enctype=\"multipart/form-data\" name=\"t_post_form\" id=\"t_post_form\" OnSubmit=\"if({$vmes}.value.length > {$CONFIG_max_signature_length}) {alert('Please input your signature less than {$CONFIG_max_signature_length} characters ['+{$vmes}.value.length+']'); {$vmes}.focus(); return false;} document.t_post_form.Submit.disabled=true; return true;\">\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>Signature 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></TD>\n\t\t\t\t\t\t<TD>\n"; get_bbcode('t_post_form'); $edit_signature = my_br2nl($reply_signature); echo "\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 vAlign=\"top\">\n\t\t\t\t\t\t\tEdit your signature\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<textarea name=\"t_mes\" cols=\"65\" rows=\"10\" class=\"textinput\">" . $edit_signature . "</textarea>\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['signature_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\t\t\t\t\t<form action=\"index.php?act=change_profile&code=06\" method=\"post\" enctype=\"multipart/form-data\" name=\"ch_time_offset\" onSubmit=\"document.ch_time_offset.Submit.disabled=true;\">\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>Time-Zone Offset 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['time_offset_setting']}\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<select name=\"u_timezone\" class=\"textinput\">\n"; include_once "function/time_zone.php"; $time_zone = array_keys($Timezone); for ($i = 0; $i < count($time_zone); $i++) { $tmz_val = $time_zone[$i]; $tmz_list = $Timezone["" . $tmz_val . ""]; $selected = $CP[time_offset] == $tmz_val ? " selected" : ""; echo "\t\t\t\t\t\t\t\t<option value=\"{$tmz_val}\"" . $selected . ">" . $tmz_list . "</option>\n";
// _____ /___/ __ ___ __ // / ___/__ ___ / /________ / / / _ \___ ____ ___ / / // / /__/ _ \/ _ \/ __/ __/ _ \/ / / ___/ _ `/ _ \/ -_) / // \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // 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_edit_mes_control)) { if ($GET_code == 00 || $GET_code == 01) { if ($GET_code == 00) { $mes_title = "Ro Message"; $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++;
$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"; } } } } echo "\t\t\t</select>\n\t\t</TD>\n\t</TR>\n\t<TR class=\"topic_title5\" align=\"center\">\n\t\t<TD colspan=\"2\">\n\t\t\t<input type=\"submit\" name=\"Submit\" value=\"Move�this�topic\" class=\"textinput\">\n\t\t</TD>\n\t</TR>\n\t</form>\n</TABLE>\n"; clmain_body(); } if ($POST_code == '08' && checkprivilege_action($CP[login_id], g_move_topics) && check_category($POST_f) && check_category($POST_select_forum) && $POST_t) { $sql->execute_query("UPDATE {$CONFIG_sql_cpdbname}.board_reply SET forum_id=\"" . mysql_res($POST_select_forum) . "\" WHERE topic_id =\"" . mysql_res($POST_t) . "\" AND forum_id = \"" . mysql_res($POST_f) . "\" ", 'moderate.php'); $sql->execute_query("UPDATE {$CONFIG_sql_cpdbname}.board_topic SET forum_id=\"" . mysql_res($POST_select_forum) . "\" WHERE topic_id =\"" . mysql_res($POST_t) . "\" AND forum_id = \"" . mysql_res($POST_f) . "\" ", 'moderate.php'); header_location("index.php?showtopic={$POST_t}"); } } } 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_board)) { $GET_showforum = (int) $GET_showforum; if ($category_id = check_category($GET_showforum)) { $CP['g_id'] = checkprivilege($CP[login_id]); if (check_forum_perm($GET_showforum, $CP['g_id'], 'read_perm')) { if (!isset($GET_st)) { $GET_st = 0; } $GET_st = (int) $GET_st; $page = get_page($GET_st, $CONFIG_t_per_page); $query = "SELECT COUNT(*) FROM {$CONFIG_sql_cpdbname}.board_topic WHERE forum_id = \"" . mysql_res($GET_showforum) . "\" AND pinned_mode =\"0\""; $sql->result = $sql->execute_query($query, 'showforum.php'); $sql->total_query++; $total = $sql->result(); $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_starter)\n\tWHERE t.forum_id = \"" . mysql_res($GET_showforum) . "\" AND t.pinned_mode =\"0\" ORDER by t.topic_last_action_date DESC LIMIT " . mysql_res($GET_st) . "," . mysql_res($CONFIG_t_per_page) . ""; $sql->result = $sql->execute_query($query, 'showforum.php');
if (!$SERVER['system_safe']) { exit; } include_once "header_bar.php"; if ($CONFIG_show_all_id) { $sql->result = $sql->execute_query("SELECT COUNT(*) FROM {$CONFIG_sql_dbname}.login WHERE sex != \"S\"", 'menu_left.php', 0); $totalid = $sql->result(); $sql->result = $sql->execute_query("SELECT COUNT(*) FROM {$CONFIG_sql_dbname}.char", 'menu_left.php', 0); $totalchar = $sql->result(); } $SELECT_MENU = 0; if ($mquick) { $quick_style = "display:none;"; } echo "<TR>\n\t<TD vAlign=\"top\">\n<TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"table_main_left\"><TR><TD>\n<TABLE width=\"208\" height=\"{$CONFIG_height}\" border=\"0\" align=\"left\" cellspacing=\"0\" cellpadding=\"0\">\n\t<TBODY>\n\t\t<TR height=\"20\">\n\t\t\t<TD><img src=\"theme/{$STORED['THEME']}/templates/left_box_header_01.gif\"></TD><TD width=\"100%\" background=\"theme/{$STORED['THEME']}/templates/left_box_header_02.gif\"></TD><TD><img src=\"theme/{$STORED['THEME']}/templates/left_box_header_03.gif\"></TD>\n\t\t</TR>\n\t\t<TR align=\"center\">\n\t\t\t<TD width=\"19\" background=\"theme/{$STORED['THEME']}/templates/left_box_float_01.gif\"></TD>\n\t\t\t<TD vAlign=\"top\" background=\"theme/{$STORED['THEME']}/templates/left_box_float_02.gif\">\n\t\t\t\t<TABLE width=\"100%\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"table_left_menu\">\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t<TABLE width=\"100%\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"tablefill\">\n\t\t\t\t\t\t<TR align=\"center\">\n\t\t\t\t\t\t\t<form name=\"Current_Time\">\n\t\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t\t<input type=\"text\" name=\"clock\" class=\"currenttime\" size=\"21\" maxlength=\"255\" readonly>\n\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t<SCRIPT language=\"javascript\" src=\"function/currenttime.js\"></SCRIPT>\n\t\t\t\t\t\t</TR>\n\t\t\t\t</TABLE>\n\t\t\t\t<BR>\n\t\t\t\t<TABLE width=\"100%\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"tablefill\">\n\t\t\t\t\t<TBODY>\n"; if (checkprivilege_action($CP[login_id], g_view_adminmenu)) { $SELECT_MENU = 1; echo "\t\t\t\t\t\t<TR align=\"center\">\n\t\t\t\t\t\t\t<form name=\"Adminmenu\">\n\t\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t\t<select name=\"admin_options\" onChange=\"if(document.Adminmenu.admin_options.value==-1){return false;}else{javascript:change_page();}\" class=\"selectmenu\" style=\"width:90%\">\n\t\t\t\t\t\t\t\t\t<option value=\"-1\" selected>Admin Menu</option>\n\t\t\t\t\t\t\t\t\t<option value=\"index.php?act=mesctrl\">- {$lang['Message_Control']}</option>\n\t\t\t\t\t\t\t\t\t<option value=\"index.php?act=readnews\">- {$lang['News_Control']}</option>\n\t\t\t\t\t\t\t\t\t<option value=\"index.php?act=privilege\">- {$lang['Privilege_Control']}</option>\n\t\t\t\t\t\t\t\t\t<option value=\"index.php?act=forum_manage\">- {$lang['Forum_Manage']}</option>\n\t\t\t\t\t\t\t\t\t<option value=\"index.php?act=account_manage\">- {$lang['Account_Manage']}</option>\n\t\t\t\t\t\t\t\t\t<option value=\"index.php?act=rank_title\">- {$lang['Member_Titles_Ranks']}</option>\n\t\t\t\t\t\t\t\t\t<option value=\"index.php?act=deluser\">- {$lang['Deleteuser']}</option>\n\t\t\t\t\t\t\t\t\t<option value=\"index.php?act=checkcp\">- {$lang['CheckCP']}</option>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</TR>\n"; } if ($CONFIG_language_select_mode) { get_language_select(); } if ($CONFIG_theme_select_mode) { get_theme_select(); } echo "\t\t\t\t\t</TBODY>\n\t\t\t\t</TABLE>\n"; if ($SELECT_MENU) { echo "<BR>\n"; } if (empty($STORED_loginname) && empty($STORED_loginpass)) { echo "\n\t\t\t\t<SCRIPT language=\"JavaScript\" src=\"function/registration.js\"></SCRIPT>\n\t\t\t\t<TABLE width=\"100%\" align=\"center\" border=\"0\" cellspacing=\"5\" cellpadding=\"0\" class=\"tablefill2\">\n\t\t\t\t\t<TBODY>\n\t\t\t\t\t\t<form action=\"index.php?act=login_action\" method=\"post\" enctype=\"multipart/form-data\" name=\"login_form2\" onSubmit=\"return CheckLogin2()\">\n\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t<TD width=\"30%\">ID :</TD>\n\t\t\t\t\t\t\t<TD width=\"70%\"><input name=\"LG_USER\" type=\"text\" size=\"13\" maxlength=\"24\" class=\"textinput\"></TD>\n\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t<TD>Pass :</TD>\n\t\t\t\t\t\t\t<TD><input name=\"LG_PASS\" type=\"password\" size=\"13\" maxlength=\"24\" class=\"textinput\"></TD>\n\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t<TR align=\"center\">\n\t\t\t\t\t\t\t<TD colspan=\"2\">\n\t\t\t\t\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"{$lang['login']}\" class=\"textinput3\">\n\t\t\t\t\t\t\t\t<input type=\"reset\" name=\"Reset\" value=\"{$lang['Resetprivilege']}\" class=\"textinput3\">\n\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</TBODY>\n\t\t\t\t</TABLE>\n\t\t\t\t<BR>\n";
$sql->total_query++; if (!$sql->result()) { $display = "{$lang['Error']}"; } else { $sql->execute_query("DELETE FROM {$CONFIG_sql_cpdbname}.bugreport WHERE post_id = \"" . mysql_res($GET_post_id) . "\"", 'bugreport.php'); $sql->total_query++; $display = "{$lang['Success_delnews']}"; } } redir("index.php?act=bugreport", "{$display}", 3); } else { if ($GET_code == 04) { if (!$GET_post_id || !checkprivilege_action($CP[login_id], g_edit_news) || !length($POST_poster, 4, 24) || !length($POST_report, 5, 512)) { $display = "{$lang['Error']}"; } else { if (!checkprivilege_action($CP[login_id], g_non_showip)) { $ip = $CP['ip_address']; } else { $ip = '---------------'; } if (!$CP[login_sex]) { $CP[login_sex] = 'M'; } $POST_poster = checkstring($POST_poster, 1); $POST_report = checkstring($POST_report, 1); $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()) { $display = "{$lang['Error']}"; } else {
// _____ /___/ __ ___ __ // / ___/__ ___ / /________ / / / _ \___ ____ ___ / / // / /__/ _ \/ _ \/ __/ __/ _ \/ / / ___/ _ `/ _ \/ -_) / // \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // 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_edit_rank_title)) { if ($GET_code == 00) { opmain_body("Member Titles/Ranks"); echo "\n<TABLE width=\"100%\" height=\"100%\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\" class=\"emptytable3\">\n\t<TBODY>\n\t\t<TR height=\"27\" class=\"title_bar2\">\n\t\t\t<TD width=\"40%\" class=\"title_face\" align=\"center\">Title</TD>\n\t\t\t<TD width=\"40%\" class=\"title_face\" align=\"center\">Min Posts</TD>\n\t\t\t<TD width=\"10%\"></TD>\n\t\t\t<TD width=\"10%\"></TD>\n\t\t</TR>\n"; $query = "SELECT title_id,title,min_post FROM {$CONFIG_sql_cpdbname}.rank_title ORDER by min_post ASC"; $sql->result = $sql->execute_query($query, 'rank_title.php'); $sql->total_query++; if ($sql->count_rows()) { while ($row = $sql->fetch_row()) { echo "\n\t\t<TR>\n\t\t\t<TD align=\"center\" class=\"topic_title4\"><B>{$row['title']}</B></TD>\n\t\t\t<TD align=\"center\" class=\"topic_title6\">{$row['min_post']}</TD>\n\t\t\t<TD align=\"center\" class=\"topic_title4\"><a href=\"index.php?act=rank_title&code=02&id={$row['title_id']}\" title=\"Edit\"><img src =\"theme/{$STORED['THEME']}/images/edit.gif\" border=\"0\"></a></TD>\n\t\t\t<TD align=\"center\" class=\"topic_title6\"><a href=\"index.php?act=rank_title&code=04&id={$row['title_id']}\" title=\"Remove\"><img src =\"theme/{$STORED['THEME']}/images/drop.gif\" border=\"0\"></a></TD>\n\t\t</TR>\n"; } } else { echo "\n\t\t<TR>\n\t\t\t<TD colspan=\"4\">No Member Ranks/Titles in database</TD>\n\t\t</TR>\n"; } echo "\n\t<TBODY>\n</TABLE>\n"; clmain_body();
<!-- // ========================================================================= // ______ // / __/ /____ ________ ____ ___ _ ___ ___ // _\ \/ __/ _ `/ __/ _ `/ _ `/ ' \/ -_|_-< // /___/\__/\_,_/_/ \_, /\_,_/_/_/_/\__/___/ // _____ /___/ __ ___ __ // / ___/__ ___ / /________ / / / _ \___ ____ ___ / / // / /__/ _ \/ _ \/ __/ __/ _ \/ / / ___/ _ `/ _ \/ -_) / // \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // Copyright (c) Stargames Control Panel - Licensed under GNU GPL. // See LICENSE File // ========================================================================= // Project Lead by: Mysterious // ========================================================================= --> <?php if (!$SERVER['system_safe']) { exit; } include_once "gzip_header.php"; if (strstr($CONFIG_width, '%') && $CONFIG_width > 100) { $CONFIG_width = '100%'; } echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n<head>\n"; get_cptitle($CP[title]); echo "\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<script language=\"JavaScript\" src=\"function/function.js\"></script>\n<script language=\"JavaScript\" src=\"function/ajax.js\"></script>\n<script language=\"JavaScript\" src=\"function/bbcode.js\"></script>\n<script type=\"text/javascript\">\n\tvar theme = \"{$STORED['THEME']}\";\n</script>\n<div id=\"cploading\" style=\"position:absolute;left:40%;top:50%;\"></div>\n"; echo "\n<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n\t<TR>\n\t\t<TD>\n\t\t\t<TABLE width=\"{$CONFIG_width}\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" " . $THEME[logo_background] . ">\n\t\t\t\t<TR>\n\t\t\t\t\t<TD align=\"{$THEME['logo_img_align']}\"><img src=\"theme/{$STORED['THEME']}/{$THEME['logo_img_url']}\"></TD>\n\t\t\t\t</TR>\n\t\t\t</TABLE>\n"; $access_lv = checkprivilege_action($CP[login_id], g_title); echo "\n\t\t\t<TABLE width=\"{$CONFIG_width}\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n\t\t\t\t<TR height=\"25\">\n\t\t\t\t\t<TD background=\"theme/{$STORED['THEME']}/templates/m_titlebar.gif\"><a href=\"index.php?act=idx\" title=\"Home\"><img src=theme/{$STORED['THEME']}/templates/menu_01.gif border=\"0\"></a><a href=\"index.php?act=register\" title=\"Register\"><img src=theme/{$STORED['THEME']}/templates/menu_02.gif border=\"0\"></a><a href=\"index.php?act=download\" title=\"Download\"><img src=theme/{$STORED['THEME']}/templates/menu_03.gif border=\"0\"></a><a href=\"index.php?act=bugreport\" title=\"Bug Report\"><img src=theme/{$STORED['THEME']}/templates/menu_04.gif border=\"0\"></a><a href=\"index.php?act=forum\" title=\"Forum\"><img src=theme/{$STORED['THEME']}/templates/menu_05.gif border=\"0\"></a><a href=\"index.php?act=sls\" title=\"Self Locking System\"><img src=theme/{$STORED['THEME']}/templates/menu_06.gif border=\"0\"></a></TD>\n\t\t\t\t\t<TD background=\"theme/{$STORED['THEME']}/templates/m_titlebar.gif\" align=\"right\"><font class=\"m_title\">{$lang['Loggedin']} : {$CP['login_nname']} ({$access_lv}){$CP['login_logout']}</font></a> </TD>\n\t\t\t\t</TR>\n\t\t\t</TABLE>\n\t\t</TD>\n\t</TR>\n</TABLE>\n<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n\t<TR>\n\t\t<TD>\n\t\t\t<TABLE width=\"{$CONFIG_width}\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n";
$POST_t_title = checkstring($POST_t_title, 1); $POST_t_desc = checkstring($POST_t_desc, 1); $sql->execute_query("UPDATE {$CONFIG_sql_cpdbname}.board_topic SET topic_name=\"" . $POST_t_title . "\",topic_description=\"" . $POST_t_desc . "\" WHERE topic_id=\"" . mysql_res($POST_t) . "\" ", 'insert_topic.php'); } $reply_edit_name = $POST_add_edit ? $CP['login_name'] : ""; $POST_t_mes = checkstring($POST_t_mes, 1); $POST_t_emo = (int) $POST_t_emo; $sql->execute_query("UPDATE {$CONFIG_sql_cpdbname}.board_reply SET reply_emo=\"" . mysql_res($POST_t_emo) . "\",reply_message=\"" . $POST_t_mes . "\",reply_ip=\"" . $CP['ip_address'] . "\",reply_edit_name=\"" . mysql_res($reply_edit_name) . "\",reply_edit_date=\"" . $CP['time'] . "\" WHERE topic_id=\"" . mysql_res($POST_t) . "\" AND reply_id=\"" . mysql_res($POST_p) . "\" ", 'insert_topic.php'); header_location("index.php?showtopic={$POST_t}&#entry{$POST_p}"); } } } else { redir("index.php?act=forum", "{$lang['No_privilege']}", 3); } } if ($GET_code == 03 && $POST_t && $POST_clickvote && checkprivilege_action($CP[login_id], g_vote_polls)) { $query = "SELECT COUNT(*) FROM {$CONFIG_sql_cpdbname}.voters WHERE member_id = \"" . $CP['login_id'] . "\" AND topic_id = \"" . mysql_res($POST_t) . "\""; $sql->result = $sql->execute_query($query, 'insert_topic.php'); $sql->total_query++; if ($sql->result()) { $display = $lang[No_vote]; } else { $voteid = "vote" . (int) $POST_poll_vote . ""; if ($nullvote != 'View Results (Null Vote)') { $sql->execute_query("UPDATE {$CONFIG_sql_cpdbname}.poll SET last_vote_date=\"" . $CP['time'] . "\" WHERE topic_id=\"" . mysql_res($POST_t) . "\"", 'insert_topic.php'); $sql->total_query++; $sql->execute_query("UPDATE {$CONFIG_sql_cpdbname}.poll_vote SET {$voteid}=" . mysql_res($voteid) . "+1 WHERE topic_id=\"" . mysql_res($POST_t) . "\"", 'insert_topic.php'); $sql->total_query++; } $sql->execute_query("INSERT INTO {$CONFIG_sql_cpdbname}.voters (ip_address,vote_date,topic_id,member_id) VALUES (\"" . $CP['ip_address'] . "\",\"" . $CP['time'] . "\",\"" . mysql_res($POST_t) . "\",\"" . $CP['login_id'] . "\")", 'insert_topic.php'); $sql->total_query++;
$sql->total_query++; if (!$sql->result()) { $display = $lang[Fail_editnews]; } else { $sql->execute_query("UPDATE {$CONFIG_sql_cpdbname}.mainnews SET title = \"{$POST_title}\", message = \"{$POST_t_mes}\", poster = \"" . $CP['login_name'] . "\", date = \"" . $CP['time'] . "\" WHERE post_id = \"" . mysql_res($GET_post_id) . "\" ;", 'action_news.php'); $sql->total_query++; $display = $lang[Success_editnews]; } } redir("index.php?act=readnews", "{$display}", 3); } else { redir("index.php?act=idx", "{$lang['No_privilege']}", 3); } } else { if ($GET_code == 05) { if (checkprivilege_action($CP[login_id], g_delete_news)) { if (!$GET_post_id) { $display = $lang[Fail_delnews]; } else { $query = "SELECT COUNT(*) 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++; if (!$sql->result()) { $display = $lang[Fail_delnews]; } else { $sql->execute_query("DELETE FROM {$CONFIG_sql_cpdbname}.mainnews WHERE post_id = \"" . mysql_res($GET_post_id) . "\"", 'action_news.php'); $sql->total_query++; $display = $lang[Success_delnews]; } } redir("index.php?act=readnews", "{$display}", 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); }
<!-- // ========================================================================= // ______ // / __/ /____ ________ ____ ___ _ ___ ___ // _\ \/ __/ _ `/ __/ _ `/ _ `/ ' \/ -_|_-< // /___/\__/\_,_/_/ \_, /\_,_/_/_/_/\__/___/ // _____ /___/ __ ___ __ // / ___/__ ___ / /________ / / / _ \___ ____ ___ / / // / /__/ _ \/ _ \/ __/ __/ _ \/ / / ___/ _ `/ _ \/ -_) / // \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // 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); }
if ($topic_pin == '1') { $val04 = "{$lang['Unpin_Topic']}"; } else { $val04 = "{$lang['Pin_Topic']}"; } echo "\n<form action=\"index.php?act=mod\" method=\"post\" enctype=\"multipart/form-data\" name=\"topic_option\" onsubmit=\"return CheckMod()\">\n\t<input type=\"hidden\" name=\"f\" value=\"{$forum_id}\">\n\t<input type=\"hidden\" name=\"t\" value=\"{$GET_showtopic}\">\n\t<input type=\"hidden\" name=\"topic_pin\" value=\"{$topic_pin}\">\n\t<input type=\"hidden\" name=\"topic_closed\" value=\"{$topic_closed}\">\n\t<select name=\"code\" class=\"textinput\">\n\t\t<option value=\"00\">Moderation Options</option>\n\t\t<option value=\"07\">-{$lang['Move_Topic']}</option>\n"; if (checkprivilege_action($CP[login_id], g_closed_topics)) { 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);
// _____ /___/ __ ___ __ // / ___/__ ___ / /________ / / / _ \___ ____ ___ / / // / /__/ _ \/ _ \/ __/ __/ _ \/ / / ___/ _ `/ _ \/ -_) / // \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // 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"];
// _____ /___/ __ ___ __ // / ___/__ ___ / /________ / / / _ \___ ____ ___ / / // / /__/ _ \/ _ \/ __/ __/ _ \/ / / ___/ _ `/ _ \/ -_) / // \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // 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_forum_manage)) { if ($GET_manage && ($POST_c || $POST_f)) { switch ($GET_manage) { case newcategory: if (length($POST_category_name, 1, 50)) { $query = "SELECT memory_value1 FROM {$CONFIG_sql_cpdbname}.memory WHERE memory_object =\"forum_category\" ORDER by memory_value1 DESC"; $sql->result = $sql->execute_query($query, 'forum_manage.php'); $sql->total_query++; $row = $sql->fetch_row(); $newcategory_id = $row[memory_value1] + 1; $count_category = $sql->execute_query("SELECT COUNT(*) FROM {$CONFIG_sql_cpdbname}.memory WHERE memory_object =\"forum_category\"", 'forum_manage.php'); $count_category = $sql->result($count_category); $count_category++; $POST_category_name = checkstring($POST_category_name, 1); $sql->execute_query("INSERT INTO {$CONFIG_sql_cpdbname}.memory (memory_object,memory_value1,memory_value2,memory_value3) VALUES (\"forum_category\",\"" . mysql_res($newcategory_id) . "\",\"" . mysql_res($count_category) . "\",\"" . $POST_category_name . "\")", 'forum_manage.php'); }
$mrow = $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);
function upload_files($files) { global $CONFIG_uploads_mode; if (empty($files[name]) || !$CONFIG_uploads_mode) { $attachs_name = ""; $upload_error = ""; } else { global $CP, $lang, $CONFIG_uploads_size, $CONFIG_uploads_folder; if (eregi(".htm|.html|.shtm|.shtml|.js|.jse|.vb|.php|.php3|.php4|.php5|.asp|.aspx|.jsp|.sql", $files[name])) { $upload_error = "<font color=\"red\">{$lang['Upload_Type_Error']}</font><br /><br />"; $attachs_name = ""; } else { if (($files[size] > $CONFIG_uploads_size * 1024 || $files[size] == 0) && !checkprivilege_action($CP[login_id], g_upload_nonlimit)) { $upload_error = "<font color=red>{$lang['Upload_Limit']}</font><br /><br />"; $attachs_name = ""; } else { $attachs_name = truestr($files['name']); if ($attachs_name && move_uploaded_file($files['tmp_name'], "{$CONFIG_uploads_folder}/[" . $CP[login_id] . "]" . $attachs_name . "")) { $upload_error = ""; } else { $upload_error = "<font color=red>There was a problem uploading your file.</font><br /><br />"; $attachs_name = ""; } } } } return array('name' => $attachs_name, 'error' => $upload_error); }
// _____ /___/ __ ___ __ // / ___/__ ___ / /________ / / / _ \___ ____ ___ / / // / /__/ _ \/ _ \/ __/ __/ _ \/ / / ___/ _ `/ _ \/ -_) / // \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/ // ========================================================================= // 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_account_manage)) { if ($GET_manage) { switch ($GET_manage) { case updateaccount: $HTTP_REFERER = get_referer(); $POST_account_id = mysql_res($POST_account_id); $POST_user_pass = mysql_res($POST_user_pass); $POST_lastlogin = mysql_res($POST_lastlogin); $POST_sex = mysql_res($POST_sex); $POST_email = mysql_res($POST_email); $POST_unban_time = mysql_res($POST_unban_time); $POST_state = mysql_res($POST_state); $POST_display_name = checkstring($POST_display_name, 1); $sql->execute_query("UPDATE {$CONFIG_sql_dbname}.login SET user_pass=\"{$POST_user_pass}\", lastlogin=\"{$POST_lastlogin}\", sex=\"{$POST_sex}\", email=\"{$POST_email}\", unban_time=\"{$POST_unban_time}\", state=\"{$POST_state}\" WHERE account_id=\"{$POST_account_id}\"", 'account_manage.php'); $sql->execute_query("UPDATE {$CONFIG_sql_cpdbname}.user_profile SET display_name=\"{$POST_display_name}\" WHERE user_id=\"{$POST_account_id}\"", 'account_manage.php'); header_location("{$HTTP_REFERER}");
<?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); $name = $IS_SEARCHING_ID ? "<a href=\"index.php?act=searching_id&account_id={$grow['account_id']}\">" . htmlspecialchars($grow['name']) . "</a>" : "" . htmlspecialchars($grow['name']) . ""; echo "\n\t\t<TR align=\"center\" class=\"topic_title4\">\n\t\t\t<TD>{$i}</TD>\n\t\t\t<TD>{$name}</TD>\n\t\t\t<TD>{$jobname[$jobid]}</TD>\n\t\t\t<TD>{$grow['lv']}</TD>\n\t\t\t<TD>{$grow['exp']}</TD>\n\t\t\t<TD>" . htmlspecialchars($prow['name']) . "</TD>\n\t\t</TR>\n"; } if (isset($emblems)) { session_register(emblems); $_SESSION['emblems'] = $emblems;
function do_cp_update() { global $CP; if (checkprivilege_action($CP[login_id], g_view_lastestcp)) { $sgcp = new CP_Update(); $version = cp_current_version(); $cp_version = $sgcp->version_data($version, 0); $cp_release = $sgcp->version_data($version, 1); $list_version = cp_list_version(); if (!is_dir("tmp_update")) { if (!mkdir("tmp_update")) { exit; } } $count_files = $sgcp->count_list_update_file($cp_version, $cp_release, $list_version) * 2; $date = date("Y-m-d_H_i_s"); $count_success = 0; cp_update_set_msg(0, 0); cp_update_set_msg(3, 0); for ($i = 0; $i < count($list_version); $i++) { $load_version = $sgcp->version_data($list_version[$i], 0); $load_release = $sgcp->version_data($list_version[$i], 1); if ($load_version && cp_check_version($cp_version, $cp_release, $load_version, $load_release)) { $list_update_file = file_get_result("bin/" . $list_version[$i] . "/list.sgcp", 1); $list_update_file = $sgcp->true_list_update_file($list_update_file); $list_download_file = $sgcp->true_list_download_file($list_update_file, $list_version[$i]); $tmp_list_update_file[$i] = $list_update_file; for ($j = 0; $j < count($list_download_file); $j++) { cp_update_set_msg(1, $list_download_file[$j]); if (!($tmp_update_result[$i][$j] = file_get_result($list_download_file[$j]))) { cp_update_set_msg(4, $list_download_file[$j]); exit; } else { $count_success++; $percent = $count_success / $count_files * 100; $percent = (int) $percent; cp_update_set_msg(3, $percent); } } } } for ($i = 0; $i < count($list_version); $i++) { $load_version = $sgcp->version_data($list_version[$i], 0); $load_release = $sgcp->version_data($list_version[$i], 1); if ($load_version && cp_check_version($cp_version, $cp_release, $load_version, $load_release)) { $list_update_file = $tmp_list_update_file[$i]; $list_download_file = $sgcp->true_list_download_file($list_update_file, $list_version[$i]); for ($j = 0; $j < count($list_download_file); $j++) { // Check & Create dirs $sgcp->list_create_dir($list_update_file[$j]); // Backup files backup_file($list_update_file[$j], $date); if (!($handle = fopen($list_update_file[$j], 'w+'))) { cp_update_set_msg(5, $list_update_file[$j]); exit; } else { cp_update_set_msg(2, $list_update_file[$j]); if (fwrite($handle, $tmp_update_result[$i][$j]) === FALSE) { cp_update_set_msg(5, $list_update_file[$j]); exit; } else { $count_success++; $percent = $count_success / $count_files * 100; $percent = (int) $percent; cp_update_set_msg(3, $percent); } fclose($handle); } } } } cp_update_set_msg(0, 3); } }