--> <?php if (!$SERVER['system_safe']) { exit; } if (empty($STORED_loginname) && empty($STORED_loginpass)) { opmain_body("Login Form"); echo "\n<SCRIPT language=\"JavaScript\" src=\"function/registration.js\"></SCRIPT>\n<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"3\" align=\"center\">\n\t<TBODY>\n\t<form action=\"index.php?act=login_action\" method=\"post\" enctype=\"multipart/form-data\" name=\"login_form\" onSubmit=\"return CheckLogin()\">\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD width=\"20%\">\n\t\t\t\t{$lang['login_user']} :\n\t\t\t</TD>\n\t\t\t<TD width=\"80%\">\n\t\t\t\t<input name=\"LG_USER\" type=\"text\" size=\"24\" 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>\n\t\t\t\t{$lang['login_pass']} :\n\t\t\t</TD>\n\t\t\t<TD>\n\t\t\t\t<input name=\"LG_PASS\" type=\"password\" size=\"24\" maxlength=\"24\" class=\"textinput\">\n\t\t\t</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=\"hidden\" name=\"referer\" value=\"{$Referer}\">\n\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"{$lang['login']}\" class=\"textinput\">\n\t\t\t\t<input type=\"reset\" name=\"Reset\" value=\"{$lang['Resetprivilege']}\" class=\"textinput\">\n\t\t\t</TD>\n\t\t</TR>\n\t</form>\n\t</TBODY>\n</TABLE>\n"; clmain_body(); } else { echo "<script type='text/javascript'>\nvar check_sls = 0;\n"; if ($CONFIG_change_password_with_sls) { echo "check_sls = 1;"; } echo "function CheckDisplayname(){var p1 = document.ch_display_name.display_name.value; var p2 = document.ch_display_name.password.value;if (p1.length < 4 || p1.length > 24) {alert('Please enter your display name between 4 - 24 characters.');document.ch_display_name.display_name.focus();return false;}else if (p2.length < 4 || p2.length > 24) {alert('Please enter password between 4 - 24 characters.');document.ch_display_name.password.focus();return false;}else {document.ch_display_name.Submit.disabled=true;return true;}}\nfunction CheckPass(){var p1 = document.ch_pass.password.value; var p2 = document.ch_pass.password2.value; if(check_sls) var p3 = document.ch_pass.slspassword.value; var p4 = document.ch_pass.confirmpass.value;if ((p3.length < 4 || p3.length > 24) && check_sls) {alert('Please enter your SLS password between 4 - 24 characters.');document.ch_pass.slspassword.focus();return false;}else if (p1.length < 4 || p1.length > 24) {alert('Please enter your old password between 4 - 24 characters.');document.ch_pass.password.focus();return false;}else if (p2.length < 4 || p2.length > 24) {alert('Please enter your new password between 4 - 24 characters.');document.ch_pass.password2.focus();return false;}else if (p2 == p1) {alert('Old password does not like new password.');document.ch_pass.password2.focus();return false;}\nelse if (p4.length < 4 || p4.length > 24) {alert('Please enter confirm password between 4 - 24 characters.');document.ch_pass.confirmpass.focus();return false;}else if (p4 != p2) {alert('Confirm password must be as new password.');document.ch_pass.confirmpass.focus();return false;}else {document.ch_pass.Submit.disabled=true;return true;}}\nfunction CheckSLSPass(){var p1 = document.ch_sls_pass.slspassword.value; var p2 = document.ch_sls_pass.slspassword2.value;if (p1.length < 4 || p1.length > 24) {alert('Please enter your old SLS password between 4 - 24 characters.');document.ch_sls_pass.slspassword.focus();return false;}else if (p2.length < 4 || p2.length > 24) {alert('Please enter your new SLS password between 4 - 24 characters.');document.ch_sls_pass.slspassword2.focus();return false;}else if (p2 == p1) {alert('Old SLS password does not like new SLS password.');document.ch_sls_pass.slspassword2.focus();return false;}else {document.ch_sls_pass.Submit.disabled=true;return true;}}\nfunction CheckEMail(){var m1 = document.ch_email.email1.value;var m2 = document.ch_email.email2.value;var m3 = document.ch_email.password.value;if (m1 == m2) {alert('Old E-Mail does not like new E-Mail.');document.ch_email.email2.focus();return false;}else if (m2.indexOf('@') == -1) {alert('New E-Mail is not right.');document.ch_email.email2.focus();return false;}else if (m3.length < 4 || m3.length > 24) {alert('Please enter your password between 4 - 24 characters.');document.ch_email.password.focus();return false;}else {document.ch_email.Submit.disabled=true;return true;}}\nfunction CheckAvatar(){var A1 = document.ch_avatar.avatar_width.value;var A2 = document.ch_avatar.avatar_height.value;if (A1.length < 1|| A1 > 150) {alert('Your width avatar can not more 150 pixels');document.ch_avatar.avatar_width.focus();return false;}else if (A2.length < 1|| A2 > 150) {alert('Your height avatar can not more 150 pixels');document.ch_avatar.avatar_height.focus();return false;}else {document.ch_avatar.Submit.disabled=true;return true;}}\n</script>\n"; get_cp_profile($CP[login_id]); if ($CP[login_sex] == 'M') { $sex = "{$lang['login_male']}"; } else { $sex = "{$lang['login_female']}"; } opmain_body("User Profile"); echo "\n<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"topic_title6\">\n\t<TR>\n\t\t<TD>\n\t\t\t<TABLE width=\"100%\" height=\"100%\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"10\" class=\"topic_title6\">\n\t\t\t\t<TR>\n\t\t\t\t\t<TD width=\"30%\" 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}<BR>\n\t\t\t\t\t\t\t\t\t{$lang['Mem_No']}: {$reply_number}<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\t<TD>\n\t\t\t\t\t\t<TABLE align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\n\t\t\t\t\t\t\t<TBODY vAlign=\"top\">\n\t\t\t\t\t\t\t\t<TR vAlign=\"top\">\n\t\t\t\t\t\t\t\t\t<TD width=\"50%\" align=\"right\">{$lang['login_user']} :</TD>\n\t\t\t\t\t\t\t\t\t<TD width=\"50%\" align=\"left\"><B>{$CP['login_name']}</B></TD>\n\t\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t\t\t<TD align=\"right\">{$lang['login_pass']} :</TD>\n\t\t\t\t\t\t\t\t\t<TD align=\"left\">********</TD>\n\t\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t\t\t<TD align=\"right\">{$lang['login_sex']} :</TD>\n\t\t\t\t\t\t\t\t\t<TD align=\"left\">{$sex}</TD>\n\t\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t\t</TBODY>\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"; if (!empty($reply_signature)) { $reply_signature_ = replace_text($reply_signature); opmain_body("Signature", 0, '90%'); echo "\n\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=\"15\"></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=\"15\"></TD>\n\t\t\t\t</TR>\n\t\t\t</TABLE>\n"; clmain_body(); echo "\t\t\t<BR>"; } $query = "SELECT account_id,name,base_level,job_level,class,zeny FROM {$CONFIG_sql_dbname}.char WHERE account_id =\"" . $CP['login_id'] . "\"";
$IS_GUEST = 1; } if ($IS_GUEST) { $reply_avatar = ""; $reply_avatar_width = ""; $reply_avatar_height = ""; $reply_post = ""; $reply_number = ""; $reply_joined = ""; $reply_signature = ""; $rank_title = ""; $reply_imgroup = ""; $reply_group = ""; $status_bar = ""; } else { get_cp_profile($row[reply_user_id]); } $reply_emo = $row[reply_emo] ? "<img src=\"theme/{$STORED['THEME']}/images/icon/icon{$row['reply_emo']}.gif\" border=\"0\"> " : ""; $reply_date = get_date("M j y, H:i:s A", $row[reply_date]); $reply_edit_date = get_date("M j y, H:i:s A", $row[reply_edit_date]); $reply_message = replace_text($row[reply_message]); if ($IS_GUEST) { $reply_group = "Non Member"; } if ($reply_num != 1) { echo "\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t<TD colspan=\"3\" class=\"emptytable2\"></TD>\n\t\t\t\t\t\t</TR>\n"; } echo "\t\t\t\t\t\t<TR height=\"27\" class=\"topic_title7\">\n\t\t\t\t\t\t\t<TD width=\"20%\" class=\"textinput\" id=\"entry" . $row[reply_id] . "\">\n"; if ($IS_GUEST) { echo "\t\t\t\t\t\t\t\t<a name=\"entry{$row['reply_id']}\"><font size=\"2\"><B>{$reply_name}</B></font></a>\n"; } else {
$IS_SEARCHING_ID = checkprivilege_action($CP[login_id], g_searching_id) ? 1 : 0; $query = "SELECT user_id FROM {$CONFIG_sql_cpdbname}.user_profile WHERE md5(`user_id`) =\"" . mysql_res($GET_showuser) . "\""; $sql->result = $sql->execute_query($query, 'showuser.php'); $sql->total_query++; if (!$sql->count_rows()) { $sql->execute_query("INSERT INTO {$CONFIG_sql_cpdbname}.user_profile (user_id,display_name,user_sls_pass,user_time_offset ,user_joined) VALUES (\"" . mysql_res($account_id) . "\",\"" . mysql_res($userid) . "\",\"\",\"" . mysql_res($CONFIG_time_offset) . "\",\"" . $CP['time'] . "\")", 'showuser.php'); $sql->total_query++; $sql->execute_query("INSERT INTO {$CONFIG_sql_cpdbname}.privilege (account_id,privilege) VALUES (\"" . mysql_res($account_id) . "\",\"2\")", 'showuser.php'); $sql->total_query++; } else { $row = $sql->fetch_row(); $account_id = $row["user_id"]; } $username = get_username($account_id); $show_username = $IS_SEARCHING_ID ? "<a href=\"index.php?act=searching_id&account_id={$account_id}\">{$username}</a>" : "{$username}"; get_cp_profile($account_id); opmain_body("User Information: {$username}", 0, '100%'); 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>";