<?
if(!isset($_GET['op'])){
require("../includes/denied.php");
denied('user');
}
?>
<?php require("config.php"); ?>
<?
$account_id = stripslashes($_SESSION['user']);
$account_id = clean_var($account_id);
if($account_id == NULL){Die ("<img src=\"images/warning.gif\" alt=\"Access Denied\"> Access Denied!</div></table></div></table></table>");}
$sql_accountid_check = $db->Execute("select accountid from MuWeb_mail where accountid='$account_id'");
$sql_accountid_check_execute = $sql_accountid_check->numrows();
if($sql_accountid_check_execute <= 0){$sql_insert_account = $db->Execute("INSERT INTO MuWeb_mail (accountid) VALUES ('$account_id')");
$sql_insert_account2 = $db->Execute("INSERT INTO MuWeb_mail_store (accountid,store_inbox,store_sent) VALUES ('$account_id','0','0')");}
$sql_inbox_msg_check_script = $db->Execute("select read_msg from MuWeb_mail where accountid='$account_id' and inbox='inbox' and read_msg='0'");
$sql_inbox_msg_check = $sql_inbox_msg_check_script->numrows();
?>
<script language=javascript>
function CheckLen(Target)
{
MaxLength = <? echo($muweb['msg_length']); ?>;
if (Target.value.length > MaxLength)
document.new_mail.new_msg.value =
document.new_mail.new_msg.value.substr(0,MaxLength);
}
///////////////////////////////////////////////////////////////
function ask_stats()
{
var detStatus=confirm("Are You Sure You Want To Add Those Stats?");
if (detStatus)
document.stats_normal.submit();
else
return false;
}
/////////////////////////////////////////////////////////////////
function ask_stats_dl()
{
var detStatus=confirm("Are You Sure You Want To Add Those Stats");
if (detStatus)
document.stats_dl_normal.submit();
else
return false;
}
/////////////////////////////////////////////////////////////////
function check_password_form()
{
if ( document.change_password.oldpassword.value == "")
{
alert("Please enter Curent Password.");
return false;
}
if ( document.change_password.newpassword.value == "")
{
alert("Please enter New Password.");
return false;
}
if ( document.change_password.renewpassword.value == "")
{
alert("Please retype New Password.");
return false;
}
//return false;
document.change_password.submit();
}
</script>
<script type="text/javascript" src="includes/js/tabpane.js"></script>
<style type="text/css">
<!--
.style1 {color: #CCCCCC}
-->
</style>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="420" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="420"><a href="index.php?op=user&option=characters">Characters</a> <span class="style1">|</span> <a href="index.php?op=user&option=warp">Warp</a> <span class="style1">|</span> <a href="index.php?op=user&option=signature">Server Sig</a> <span class="style1">|</span> <? require("includes/gm_func.php"); ban_unban($_SESSION['user']); ?></td>
</tr>
</table>
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center">
<? if(!isset($_GET['option'])){include("modules/user/characters.php"); } else{user_modules();} ?>
</div></td>
</tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<p> </p>