bachcotsau
12-03-08, 12:33 PM
Demo : <b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>
use và pass là admin
Coder bởi BachCotSau !:big_smile:
Code 1
}
function disconnect ($name)
{
require("config.php");
$name = stripslashes($_POST['character_disconnect']);
$status_check=$db->Execute("Select ConnectStat from MEMB_STAT where memb___id=?",array($name));
$status = $status_check->fetchrow();
if(empty($name)){
show_error("$warning_start ChÆ°a có nhân váºt trong tà i khoản! $warning_end");}
elseif($status[0] == 0)
{
show_error("$ok_start Rất tiếc $name hiện đã thoát game $ok_end");
}
else
{
$disconnect=$db->Execute("Update MEMB_STAT set [ConnectStat]=0 where memb___id=?",array($name));
show_error("$ok_start Thà nh công, $name Äã được thoát ra ngoà i! $ok_end");
}
}
Code 2
<?
/**
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>
*/
$account_id = stripslashes($_SESSION['user']);
$account_id = clean_var($account_id);
require("config.php");
$from_character_sql_script = $db->Execute("Select gameid1,gameid2,gameid3,gameid4,gameid5,gameidc From accountcharacter WHERE id=?",array($account_id));
$from_character_execute = $from_character_sql_script->fetchrow();
?>
<script language=javascript>
function check_disconnect_form()
{
if ( document.disconnect.character_disconnect.value == "")
{
alert("Please select character.");
return false;
}
//return false;
document.disconnect.submit();
}
</script>
<table width="307" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="307"> </td>
</tr>
<tr>
<td><div align="center"><? if(isset($_POST['disconnect'])){ require("includes/character.class.php"); disconnect($_POST['character_disconnect']); } ?></div></td>
</tr>
</table>
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center">
<form action="" method="post" name="disconnect" id="disconnect">
<fieldset>
<legend>Disconnect Char</legend><table width="200" border="0" align="center" cellpadding="0" cellspacing="4">
<tr>
<td width="60" align="right" class="normal_text_white">Character</td>
<td width="140" align="left" class="normal_text_white"><div align="left">
<? echo("
<select name='character_disconnect' id='character_disconnect'>
<option value='$from_character_execute[0]'>$from_character_execute[0]</option>
<option value='$from_character_execute[1]'>$from_character_execute[1]</option>
<option value='$from_character_execute[2]'>$from_character_execute[2]</option>
<option value='$from_character_execute[3]'>$from_character_execute[3]</option>
<option value='$from_character_execute[4]'>$from_character_execute[4]</option>
</select>"); ?>
</div>
</td>
</tr>
</table>
<table width="190" border="0" cellspacing="4" cellpadding="0">
<tr>
<td width="88"><div align="right">
<input type="submit" class="button" name="Submit" value="Thoát nhân váºt" onclick="return check_disconnect_form()">
</div></td>
<td width="90"><input type="reset" class="button" name="Reset" value="Hủy bá»"></td>
</tr>
</table></fieldset>
</form>
</div></td>
</tr>
</table>
<table width="393" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<table width="320" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="395" height="37" background="images/img_mu_did-u-know.gif"><div align="center">
<table width="220" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="left"><strong>Chú ý </strong></div></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table width="417" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="100"> </td>
<td width="317"><table width="220" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left"><strong>Chức năng nà y sẽ là m nhân váºt trong game của bạn thoát ra ngoà i .</strong> </td>
</tr>
</table></td>
</tr>
</table>
use và pass là admin
Coder bởi BachCotSau !:big_smile:
Code 1
}
function disconnect ($name)
{
require("config.php");
$name = stripslashes($_POST['character_disconnect']);
$status_check=$db->Execute("Select ConnectStat from MEMB_STAT where memb___id=?",array($name));
$status = $status_check->fetchrow();
if(empty($name)){
show_error("$warning_start ChÆ°a có nhân váºt trong tà i khoản! $warning_end");}
elseif($status[0] == 0)
{
show_error("$ok_start Rất tiếc $name hiện đã thoát game $ok_end");
}
else
{
$disconnect=$db->Execute("Update MEMB_STAT set [ConnectStat]=0 where memb___id=?",array($name));
show_error("$ok_start Thà nh công, $name Äã được thoát ra ngoà i! $ok_end");
}
}
Code 2
<?
/**
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>
*/
$account_id = stripslashes($_SESSION['user']);
$account_id = clean_var($account_id);
require("config.php");
$from_character_sql_script = $db->Execute("Select gameid1,gameid2,gameid3,gameid4,gameid5,gameidc From accountcharacter WHERE id=?",array($account_id));
$from_character_execute = $from_character_sql_script->fetchrow();
?>
<script language=javascript>
function check_disconnect_form()
{
if ( document.disconnect.character_disconnect.value == "")
{
alert("Please select character.");
return false;
}
//return false;
document.disconnect.submit();
}
</script>
<table width="307" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="307"> </td>
</tr>
<tr>
<td><div align="center"><? if(isset($_POST['disconnect'])){ require("includes/character.class.php"); disconnect($_POST['character_disconnect']); } ?></div></td>
</tr>
</table>
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center">
<form action="" method="post" name="disconnect" id="disconnect">
<fieldset>
<legend>Disconnect Char</legend><table width="200" border="0" align="center" cellpadding="0" cellspacing="4">
<tr>
<td width="60" align="right" class="normal_text_white">Character</td>
<td width="140" align="left" class="normal_text_white"><div align="left">
<? echo("
<select name='character_disconnect' id='character_disconnect'>
<option value='$from_character_execute[0]'>$from_character_execute[0]</option>
<option value='$from_character_execute[1]'>$from_character_execute[1]</option>
<option value='$from_character_execute[2]'>$from_character_execute[2]</option>
<option value='$from_character_execute[3]'>$from_character_execute[3]</option>
<option value='$from_character_execute[4]'>$from_character_execute[4]</option>
</select>"); ?>
</div>
</td>
</tr>
</table>
<table width="190" border="0" cellspacing="4" cellpadding="0">
<tr>
<td width="88"><div align="right">
<input type="submit" class="button" name="Submit" value="Thoát nhân váºt" onclick="return check_disconnect_form()">
</div></td>
<td width="90"><input type="reset" class="button" name="Reset" value="Hủy bá»"></td>
</tr>
</table></fieldset>
</form>
</div></td>
</tr>
</table>
<table width="393" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<table width="320" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="395" height="37" background="images/img_mu_did-u-know.gif"><div align="center">
<table width="220" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="left"><strong>Chú ý </strong></div></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table width="417" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="100"> </td>
<td width="317"><table width="220" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left"><strong>Chức năng nà y sẽ là m nhân váºt trong game của bạn thoát ra ngoà i .</strong> </td>
</tr>
</table></td>
</tr>
</table>