<?php include "antet.php"; include "func.php";
global $db_id
?>
<html>
<?php echo "<link rel='stylesheet' type='text/css' href='".$imgs.$fimgs."default.css'>"; ?>
<head>
<title><?php echo $title." - ".$name[0]; ?></title>
</head>
<body class="q_body">
<div align="center">
<?php echo $top_ad; ?>
<table class="q_table">
<tr>
<td class="td_logo">
<?php logo($title); ?></td>
</tr>
<tr>
<td class="td_top_menu"><?php menu_up(); ?></td>
</tr>
<tr>
<td class="td_contentexpbg">
</td>
</tr>
<tr>
<td class="td_content3">
<table class="q_table3"><tr><td class="td_content3">
<?php
$result = mysql_query("SELECT * FROM users WHERE UNIX_TIMESTAMP(lastVisit) >= '".(time()-600)."' ORDER BY id", $db_id);
?>
<table class="q_tableinfo" width="50%" align="center">
<tr>
<td class="td_infot2">Кто в онлайне?</td>
</tr>
<tr>
<td class="td_infot" align="center">
<?php
$x = 1;
while ( $whosonline = mysql_fetch_array( $result ) ) {
if ( $x != 1 ) {
echo "<hr>";
}
echo "<a href=\"profile_view.php?id=$whosonline[id]\">$whosonline[name]</a>
";
$x++;
}
?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="td_contentexpbg">
</td>
</tr>
<tr>
<td class="td_bottom_menu">
<?php menu_down(); ?></td>
</tr>
</table>
<?php echo $bottom_ad; ?>
<?php about(); ?></div>
</body>
</html>
<?php include "antet.php"; include "func.php";
$config=config();
if (!$config[3][1]) msg($lang['regClosed']);
$factions=factions();
//$_SESSION["code"]=rand(1000, 9999);
?>
<html>
<?php echo "<link rel='stylesheet' type='text/css' href='".$imgs.$fimgs."default.css'>"; ?>
<head>
<title><?php echo $title; ?> - <?php echo $lang['register'] ?></title>
</head>
<body class="q_body">
<div align="center">
<?php echo $top_ad; ?>
<table class="q_table">
<tr>
<td class="td_logo">
<?php logo($title); ?></td>
</tr>
<tr>
<td class="td_top_menu"><?php menu_up(); ?></td>
</tr>
<tr>
<td class="td_content">
<form name="form1" method="post" action="register_.php">
<label><?php echo $lang['username'] ?>
<input class='textbox' type="text" name="name">
</label>
<label><?php echo $lang['password'] ?>
<input class='textbox' type="password" name="pass">
</label>
</p>
<label><?php echo $lang['retypePass'] ?>
<input class='textbox' type="password" name="pass_">
</label>
</p>
<label><?php echo $lang['validEmail'] ?>
<input class='textbox' type="text" name="email">
</label>
</p>
<label><?php echo $lang['faction'] ?>
<select class='dropdown' name="faction">
<?php for ($i=0; $i<count($factions); $i++) echo "<option value='".$i."'>".$factions[$i][1]."</option>"; ?>
</select>
</label>
</p>
<label><?php echo $lang['typeCode'] ?> [img]captcha.php[/img]
<input class='textbox' type="text" name="code">
</label>
</p>
<label>
<input class='button' type="submit" name="reg" value="<?php echo $lang['submit'] ?>">
</label>
</p>
</form> </td>
</tr>
<tr>
<td class="td_bottom_menu">
<?php menu_down(); ?></td>
</tr>
</table>
<?php echo $bottom_ad; ?>
<?php about(); ?></div>
</body>
</html>
<?php
session_start();
$en=100;
$boy=25;
$sayi = mt_rand(0,9999999);
$_SESSION['code'] = $sayi;
$tuval = imagecreatetruecolor($en,$boy);
$b = imagecolorallocate($tuval,175,238,238);
$s = imagecolorallocate($tuval,0,0,0);
imagefill($tuval,0,0,$s);
imageline($tuval,20,50,$en,$boy,$b);
imagestring($tuval,3,27,7,$sayi,$b);
Header("content-type:image/gif");
imagegif($tuval);
imagedestroy($tuval);
?>
при попытке выслать пароль выскакивает ошибка - Неудача.You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'\' at line 1