game/modules_data/_ref2.php

347 lines
19 KiB
PHP

<?php
if(!defined('GAME') || !isset($_GET['referals']))
{
die();
}
die('Ðàçäåë â ðàçðàáîòêå...');
$tal = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `items_users` WHERE `uid` = "'.$u->info['id'].'" AND `item_id` = "4005" AND `delete` < 1234567890'));
$rfs = array();
$rfs['count'] = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `users` WHERE `host_reg` = "'.$u->info['id'].'" AND `mail` != "No E-Mail" LIMIT 1000'));
$rfs['count'] = 0+$rfs['count'][0];
$rfs['c'] = 1;
$rfs['data'] = explode('|',$u->info['ref_data']);
if(isset($_POST['r_bank']) || isset($_POST['r_type']))
{
$bnk = mysql_fetch_array(mysql_query('SELECT * FROM `bank` WHERE `id` = "'.mysql_real_escape_string($_POST['r_bank']).'" AND `uid` = "'.$u->info['id'].'" AND `block` = "0" LIMIT 1'));
if(!isset($bnk['id']))
{
}else{
if($_POST['r_type']==1){ $_POST['r_type'] = 1; }else{ $_POST['r_type'] = 2; }
$u->info['ref_data'] = $bnk['id'].'|'.$_POST['r_type'];
$rfs['data'] = explode('|',$u->info['ref_data']);
mysql_query('UPDATE `stats` SET `ref_data` = "'.mysql_real_escape_string($u->info['ref_data']).'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
}
}
$rfs['see'] = '';
$sp = mysql_query('SELECT `s`.`active`,`u`.`online`,`u`.`id`,`u`.`level`,`u`.`login` FROM `users` AS `u` LEFT JOIN `stats` AS `s` ON `u`.`id` = `s`.`id` WHERE `u`.`host_reg` = "'.$u->info['id'].'" AND `u`.`mail` != "No E-Mail" ORDER BY `u`.`level` DESC LIMIT '.$rfs['count']);
while($pl = mysql_fetch_array($sp))
{
$rfs['c2'] = '&nbsp;<img onclick="top.chat.addto(\''.$pl['login'].'\',\'private\')" style="display:inline-block;cursor:pointer;" src="https://img.new-combats.com/i/lock.gif" width="20" height="15"> &nbsp; '.$u->microLogin($pl['id'],1).'';
if($pl['level']>7)
{
$rfs['c2'] = '<font color="green">'.$rfs['c2'].'</font>';
}
if($pl['online'] >time()-520) {
$rfs['c2'] .= '<font color="green"> &nbsp; <small>ONLINE</small></font>';
}
$rfs['see'] .= $rfs['c2'].'<br>';
$rfs['c']++;
}
if($rfs['see']=='')
{
$rfs['see'] = '<center><b>Ê ñîæàëåíèþ, ó Âàñ íåò âîñïèòàííèêîâ. Ïðèãëàñèòå äðóçåé ñåé÷àñ!</b></center>';
}
if(isset($_GET['nastanew'])) {
$_GET['nastanew'] = htmlspecialchars($_GET['nastanew'],NULL,'cp1251');
$upr = mysql_fetch_array(mysql_query('SELECT `id`,`login`,`online`,`admin`,`banned`,`level`,`host_reg` FROM `users` WHERE `login` = "'.mysql_real_escape_string($_GET['nastanew']).'" ORDER BY `id` ASC LIMIT 1'));
if(isset($upr['id']) && $upr['inUser'] == 0) {
$ch1 = mysql_fetch_array(mysql_query('SELECT * FROM `chat` WHERE `type` = 90 AND `to` = "'.$upr['login'].'" AND `time` > '.(time()-3600).' AND `login` = "'.$u->info['login'].'" LIMIT 1'));
if(isset($ch1['id'])) {
$u->error = 'Âû óæå îòïðàâëÿëè ïðèãëàøåíèå ïåðñîíàæó &quot;'.$upr['login'].'&quot;. (Íå ÷àùå îäíîãî ðàçà â ÷àñ)';
}elseif($upr['login'] == $u->info['login']) {
$u->error = 'Õèòðî :) Íàâåðíîå äîëãî äóìàëè íàä ýòèì?';
}elseif($upr['level'] > 9 && $u->info['admin'] == 0) {
$u->error = 'Íåëüçÿ ñòàòü íàñòàâíèêîì ïåðñîíàæà ñòàðøå 9-ãî óðîâíÿ';
}elseif($upr['id'] == $u->info['host_reg']) {
$u->error = 'Íåëüçÿ ñòàòü âîñïèòàííèêîì ñâîåãî íàñòàâíèêà';
}elseif($upr['online'] > time()-520) {
if(is_int($upr['host_reg']) || $upr['host_reg'] > 0) {
$u->error = 'Ó ïåðñîíàæà &quot;'.$upr['login'].'&quot; óæå åñòü íàñòàâíèê.';
}else{
$u->error = 'Âû âûñëàëè ïðèãëàøåíèå ïåðñîíàæó &quot;'.$upr['login'].'&quot; ñòàòü âàøèì âîñïèòàííèêîì.';
mysql_query('INSERT INTO `chat` (`login`,`to`,`type`,`new`,`time`) VALUES ("'.$u->info['login'].'","'.$upr['login'].'","90","1","'.time().'")');
}
}else{
$u->error = 'Ïåðñîíàæ &quot;'.$upr['login'].'&quot; äîëæåí áûòü â îíëàéíå.';
}
}else{
$u->error = 'Ïåðñîíàæ ñ ëîãèíîì &quot;'.$_GET['nastanew'].'&quot; íå íàéäåí.';
}
}elseif(isset($_GET['nastayes'])) {
$_GET['nastayes'] = htmlspecialchars($_GET['nastayes'],NULL,'cp1251');
$upr = mysql_fetch_array(mysql_query('SELECT `id`,`login`,`online`,`admin`,`banned`,`level`,`host_reg` FROM `users` WHERE `login` = "'.mysql_real_escape_string($_GET['nastayes']).'" LIMIT 1'));
if(isset($upr['id'])) {
$ch1 = mysql_fetch_array(mysql_query('SELECT * FROM `chat` WHERE `type` = 90 AND `to` = "'.$u->info['login'].'" AND `delete` > 0 AND `login` = "'.$upr['login'].'" LIMIT 1'));
if(isset($ch1['id'])) {
$myna = mysql_fetch_array(mysql_query('SELECT `id` FROM `users` WHERE `id` = "'.mysql_real_escape_string($u->info['host_reg']).'" LIMIT 1'));
if(isset($myna['id'])) {
$u->error = 'Ó âàñ óæå åñòü íàñòàâíèê.';
}else{
$u->error = 'Ïåðñîíàæ &quot;'.$_GET['nastayes'].'&quot; ñòàë âàøèì íàñòàâíèêîì!';
mysql_query('UPDATE `users` SET `host_reg` = "'.$upr['id'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES ('1','capitalcity','0','','".$upr['login']."',' Ïåðñîíàæ &quot;".$u->info['login']."&quot; ïîäòâåðäèë ÷òî îí âàø âîñïèòàííèê. Âû ïîëó÷àåòå <b>Òàëàíò Íàñòàâíèêà</b> (<small>x1</small>).','-1','6','0')");
$u->addItem(4005,$upr['id']);
}
}else{
$u->error = 'Ïåðñîíàæ &quot;'.$_GET['nastayes'].'&quot; íå îòïðàâëÿë âàì çàÿâîê íàñòàâíèêà.';
}
}else{
$u->error = 'Ïåðñîíàæ &quot;'.$_GET['nastayes'].'&quot; íå îòïðàâëÿë âàì çàÿâîê íàñòàâíèêà.';
}
}
?>
<table cellspacing="0" cellpadding="2" width="100%">
<tr>
<td style="vertical-align: top; "><table cellspacing="0" cellpadding="2" width="100%">
<tr>
<td align="left">
<?
if($u->error != '') {
echo '<font color=red>'.$u->error.'</font><br>';
}
?>
<input type="button" onclick="top.nastavniknew()" class="btn btn-success" value="Ïðåäëîæèòü íàñòàâíè÷åñòâî">
&nbsp; &nbsp;
<center><b>Ññûëêà äëÿ äðóçåé:<br> <input class="btn btn-danger" value="new-combats.com/r<?=$u->info['id']?>" /></center></b>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="2" width="100%">
<tr>
<td align="center"><h4>Êàê çàðàáîòàòü èãðîâóþ âàëþòó è ðåàëüíûå äåíüãè â ÁÊ:</h4></td>
</tr>
<tr>
<td>
<? if( true == false ) { ?>
<u><font color="#003388"><b>Àêòèâàöèÿ ïîäàðî÷íûõ âàó÷åðîâ</b>:</font></u><br />
<form style="padding:10px;" method="post" action="main.php?referals">
Íîìåð:
<input type="text" value="" name="va_num" />
&nbsp; Ïàðîëü:
<input type="password" name="va_psw" value="" />
<button type="submit" class="btnnew"><small>Àêòèâèðîâàòü</small></button>
<br />
Ññûëêà íà âàó÷åð:
<input style="width:280px" type="text" name="va_url" value="" />
<br />
</form>
<small><b>Ïðàâèëà ðàçìåùåíèÿ âàó÷åðà:</b> <br />
- Âàó÷åð äîëæåí áûòü ðàçìåùåí â ñîöèàëüíûõ ñåòÿõ, ëèáî äðóãèõ ñàéòàõ ñ ïîäðîáíîé èíôîðìàöèåé ïî åãî èñïîëüçîâàíèþ <br />
- Îí äîëæåí íàõîäèòüñÿ íà óêàçàííîì àäðåñå íå ìåíåå ñóòîê <br />
- Íàãðàäó çà âàó÷åð âîçìîæíî ïîëó÷èòü â òå÷åíèè 24 ÷. (Çàùèòà îò &quot;íàêðóòêè&quot;) <br />
- Äëÿ ñîçäàíèÿ ñîáñòâåííîãî âàó÷åðà ïåðåéäèòå ïî ññûëêå: <a href="#"> ðàçðàáîòêå</a> </small> <br />
<br />
<? } ?>
<?
$rpgtop = mysql_fetch_array(mysql_query('SELECT * FROM `an_data` WHERE `var` = "rpgtop" AND `uid` = "'.$u->info['id'].'" LIMIT 1'));
if(!isset($rpgtop['id'])) {
if(isset($_GET['testtoprpg'])) {
$html = file_get_contents('https://rpgtop.su/comm/t1/25443/1.htm');
$html = strripos($html,'*ID'.$u->info['id'].'*');
if($html == false) {
$html = file_get_contents('https://rpgtop.su/comm/t2/25443/1.htm');
$html = strripos($html,'*ID'.$u->info['id'].'*');
}
if($html == true) {
echo '<div><b><font color=red>Ñïàñèáî ÷òî ïðîãîëîñîâàëè çà íàø ïðîåêò! Ñâèòêè äîáàâëåíû ê âàì â èíâåíòàðü.</font></b></div>';
mysql_query('INSERT INTO `an_data` (`uid`,`time`,`var`) VALUES (
"'.$u->info['id'].'","'.time().'","rpgtop"
)');
$rpgtop['id'] = mysql_insert_id();
// Çâåçäíîå ñèÿíèå (+10) è ÆÆ6
$u->addItem(1463,$u->info['id'],'|nosale=1|notransfer=1|sudba=1|noremont=1');
$u->addItem(3101,$u->info['id'],'|nosale=1|notransfer=1|sudba=1|noremont=1');
//
}else{
echo '<div><b><font color=red>Âàø îòçûâ íå íàéäåí â ïîëîæèòåëüíûõ.</font></b></div>';
}
}
}
if(!isset($rpgtop['id'])) {
?>
<!-- <u><font color="#003388"><b>Íàãðàäà</b> çà ïîëîæèòåëüíûé îòçûâ íà ñàéòå <a href="https://rpgtop.su/comm/25443/1.htm" target="_blank">rpgtop.su</a>:</font></u><br />
1. Ïåðåéäèòå ïî ññûëêå <a href="https://rpgtop.su/comm/25443/1.htm" target="_blank">https://rpgtop.su/comm/25443/1.htm</a><br>
2. Îñòàâüòå ïîëîæèòåëüíûé îòçûâ è â êîíöå äîïèøèòå òåêñò â êîâû÷êàõ: " <b> *ID<?=$u->info['id']?>* </b> " (âìåñòå ñ çâåçäî÷êàìè)<br>
3. Íàæìèòå íà êíîïêó "Ïðîâåðèòü ìîé îòçûâ"<br>
4. Ïðè óñïåøíîì ïîäòâåðæäåíèè âû ïîëó÷èòå <a href="https://new-combats.com/item/1463" target="_blank"><img src="https://img.new-combats.com/i/items/spell_starshine.gif" height="20"> Çâåçäíîå Ñèÿíèå</a> è <a href="https://new-combats.com/item/3101" target="_blank"><img src="https://img.new-combats.com/i/items/spell_powerHPup6.gif" height="20"> Æàæäà Æèçíè +6</a><br>
<input onclick="location.href='https://new-combats.com/main.php?referals&testtoprpg';" type="button" class="btnnew" value="Ïðîâåðèòü ìîé îòçûâ"><br><br>-->
<?
}
?>
<u><font color="#003388"><b>Êðåäèòû</b> ìîæíî ïîëó÷èòü:</font></u> <br />
- íàáèðàÿ îïûò â áîÿõ è ïîäíèìàÿñü ïî àïàì è óðîâíÿì â ñîîòâåòñòâèè ñ <a href="https://new-combats.com/exp.php" target="_blank">Òàáëèöåé Îïûòà</a> (äîñòóïíî íà ëþáîì óðîâíå)<br />
- â Ïåùåðàõ: ïðîäàâ ðåñóðñû â Ìàãàçèí<br />
- ñ ïîìîùüþ <b>Ðåôåðàëüíîé ñèñòåìû</b>, êîòîðàÿ îïèñàíà íèæå (äîñòóïíî íà ëþáîì óðîâíå)<br />
- ëå÷åíèåì è äðóãèìè ìàãè÷åñêèìè óñëóãàìè (äîñòóïíî ñ 4 óðîâíÿ)<br />
- òîðãîâëåé (äîñòóïíî ñ 4 óðîâíÿ)<br />
- â Áàøíå Ñìåðòè: îáíàëè÷èâ ó Àðõèâàðèóñà íàéäåííûé â áàøíå ÷åê (äîñòóïíî ñ 5 óðîâíÿ)<br />
<br />
<br />
<u><font color="#003388"><b>Åâðîêðåäèòû</b> ìîæíî ïîëó÷èòü:</font></u><br />
- ñ ïîìîùüþ <b>Ðåôåðàëüíîé ñèñòåìû</b>, êîòîðàÿ îïèñàíà íèæå (äîñòóïíî íà ëþáîì óðîâíå)<br />
- êóïèâ åâðîêðåäèòû ó îôèöèàëüíûõ äèëåðîâ ÁÊ èëè ÷åðåç ñèñòåìó àâòîîïëàòû<br />
<br />
<br />
<u><font color="#003388"><b>Ðåàëüíûå äåíüãè</b> ìîæíî ïîëó÷èòü:</font></u><br />
- ñ ïîìîùüþ <b>Ïàðòíåðñêîé ïðîãðàììû ÁÊ</b>.<br />
<br />
<br />
<b>Ðåôåðàëüíàÿ ñèñòåìà</b> - ýòî âîçìîæíîñòü Âàøåãî <b>äîïîëíèòåëüíîãî çàðàáîòêà</b> â èãðå. Ïðè îòêðûòèè ñ÷åòà â áàíêå, Âû àâòîìàòè÷åñêè ïîëó÷àåòå ëè÷íóþ <b>ðåôåðàëüíóþ ññûëêó</b>, êîòîðóþ ìîæåòå ðàçäàòü ñâîèì äðóçüÿì è çíàêîìûì.<br />
<br />
<b>Êàæäûé ïåðñîíàæ</b>, çàðåãèñòðèðîâàâøèéñÿ â ÁÊ ïî Âàøåé ðåôåðàëüíîé ññûëêå, ïî äîñòèæåíèþ èì <b>1ãî</b> óðîâíÿ íà÷íåò ïðèíîñèòü Âàì <b>äîïîëíèòåëüíûé çàðàáîòîê</b>.</td>
</tr>
<tr>
<td><p>&nbsp;</p>
<ul>
 ðåôåðàëüíîé ñèñòåìå îòîáðàæàþòñÿ ïåðñîíàæè ïðîøåäøèå ðåãèñòðàöèþ
Âûïëàòû ïðîèçâîäÿòñÿ ïî áàíêîâñêîìó ñ÷åòó óêàçàíîìó â íàñòðîéêàõ ñèñòåìû
</ul></td>
</tr>
</table></td>
<td style="width: 5%; vertical-align: top; ">&nbsp;</td>
<td style="width: 30%; vertical-align: top; "><table width="100%" cellpadding="2" cellspacing="0">
<tr>
<td style="width: 25%; vertical-align: top; text-align: right; "><input class="btn" type='button' value='Îáíîâèòü' style='width: 100px' onclick='location=&quot;main.php?referals&quot;' />
&nbsp;
<input type="button" value="Âåðíóòüñÿ" style='width: 100px' class="btn" onclick='location=&quot;main.php&quot;' /></td>
</tr>
<tr>
<td align="center" valign="middle"><br />
<? if( $u->info['host_reg'] > 0 ) {
echo 'Âàø íàñòàâíèê: '.$u->microLogin($u->info['host_reg'],1).'<hr />';
$nas = mysql_fetch_array(mysql_query('SELECT `id`,`banned`,`room`,`login`,`align`,`level`,`city`,`room`,`online` FROM `users` WHERE `id` = "'.mysql_real_escape_string($u->info['host_reg']).'" LIMIT 1'));
if(isset($nas['id'])) {
$itm0 = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `items_users` WHERE `uid` = "'.$u->info['id'].'" AND `item_id` = 4004 AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$itm0 = $itm0[0];
}
if(isset($nas['id']) && $itm0 > 0) {
if(isset($_GET['read_pr'])) {
$itm0--;
}
echo 'Âû ìîæåòå èçó÷èòü ïðèåìû íàñòàâíèêà:<br><small>Îñòàëîñü <b>'.$itm0.'</b> <u>Ó÷åáíèêîâ âîñïèòàííèêà</u>.</small><br>';
if($nas['banned'] > 0 || $nas['align'] == 2) {
echo '<font color=red><b>Âàø íàñòàâíèê â õàîñå èëè çàáëîêèðîâàí.</b></font>';
}elseif($nas['room'] != $u->info['room'] && $nas['online'] > time()-520 ) {
echo '<font color=red><b>Âû äîëæíû íàõîäèòüñÿ ñ íàñòàâíèêîì â îäíîé êîìíàòå</b></font>';
}else{
$priz = '';
$sp = mysql_query('SELECT * FROM `actions` WHERE `uid` = "'.$nas['id'].'" AND `vars` LIKE "%read%" AND `vals` > 1042 ORDER BY `vals` ASC');
while($pl = mysql_fetch_array($sp)) {
$tstsp = mysql_fetch_array(mysql_query('SELECT `id` FROM `actions` WHERE `uid` = "'.$u->info['id'].'" AND `vars` LIKE "%read%" AND `vals` = "'.$pl['vals'].'" LIMIT 1'));
if(!isset($tstsp['id'])) {
$prm = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "'.$pl['vals'].'" LIMIT 1'));
if(isset($prm['id'])) {
if(isset($_GET['read_pr']) && $_GET['read_pr'] == $prm['id']) {
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES ('1','capitalcity','0','','".$u->info['login']."','Âû óñïåøíî èçó÷èëè ïðèåì <b>".$prm['name']."</b> ïðè ïîìîùè Ó÷åáíèêà âîñïèòàííèêà. ','".time()."','6','0')");
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES ('1','capitalcity','0','','".$nas['login']."',' Âàø âîñïèòàííèê &quot;".$u->info['login']."&quot; èçó÷èë ïðèåì <b>".$prm['name']."</b> ïðè ïîìîùè Ó÷åáíèêà âîñïèòàííèêà. <br><b>Âû ïîëó÷èëè Òàëàíò Íàñòàâíèêà x3</b>','-1','6','0')");
$u->addItem(4005,$nas['id']);
$u->addItem(4005,$nas['id']);
$u->addItem(4005,$nas['id']);
mysql_query('INSERT INTO `actions` (`uid`,`time`,`city`,`room`,`vars`,`ip`,`vals`,`val`) VALUES (
"'.$u->info['id'].'","'.time().'","'.$u->info['city'].'","'.$u->info['room'].'","read","'.$u->info['ip'].'",
"'.$prm['id'].'",""
)');
mysql_query('DELETE FROM `items_users` WHERE `uid` = "'.$u->info['id'].'" AND `item_id` = 4004 AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1');
echo '<font color=red><b>Ïðèåì &quot;'.$prm['name'].'&quot; áûë óñïåøíî èçó÷åí!</b></font><br>';
}else{
$priz .= '<a href="?referals&read_pr='.$prm['id'].'"><img width="40" height="25" title="Èçó÷èòü &quot;'.$prm['name'].'&quot;" src="https://img.new-combats.com/i/eff/'.$prm['img'].'"></a> ';
}
}
}
}
if($priz == '') {
echo '<font color=red><b>Ó íàñòàâíèêà íåò èçó÷åííûõ ïðèåìîâ êîòîðûå Âû ìîãëè áû ïîëó÷èòü</b></font>';
}else{
echo $priz;
}
}
echo '<hr>';
}
}
?>
<div style="display:inline-block;width:300px;" align="left">
<? $bsees = '<option value="0">Âûáåðèòå ñ÷åò</option>';
$sp = mysql_query('SELECT * FROM `bank` WHERE `uid` = "'.$u->info['id'].'" AND `block` = "0" LIMIT 1');
while($pl = mysql_fetch_array($sp))
{
if($rfs['data'][0]==$pl['id'])
{
$bsees .= '<option selected="selected" value="'.$pl['id'].'">¹ '.$pl['id'].'</option>';
}else{
$bsees .= '<option value="'.$pl['id'].'">¹ '.$pl['id'].'</option>';
}
}
$r = '<b><small>Çà äîñòèæåíèÿ ðåôåðàëà âû ïîëó÷èòå</small></b>:<br>';
$sp = mysql_query('SELECT * FROM `referal_bous` WHERE `type` = "1"');
while($pl = mysql_fetch_array($sp)) {
if($pl['add_bank'] > 0 || $pl['add_money'] > 0) {
$r .= '<span style="display:inline-block;width:90px;">'.$pl['level'].' óðîâåíü</span> - ';
if($pl['add_money'] > 0) {
$r .= '<span style="display:inline-block;width:90px;"> '.$pl['add_money'].' êð.</span>';
}
if($pl['add_bank'] > 0) {
$r .= '<span style="display:inline-block;width:90px;"> '.$pl['add_bank'].' ekr.</span>';
}
$r .= '<br>';
}
}
echo $r;
/*
?>
<br />
<b>Ïîëó÷èòü íàãðàäó çà beta-òåñò</b><br />
Ââåäèòå ëîãèí è ïàðîëü ñ beta-òåñòà:<br />
<?
if(isset($_POST['betalogin'])) {
$beta = mysql_fetch_array(mysql_query('SELECT * FROM `beta_testers` WHERE `login` = "'.mysql_real_escape_string($_POST['betalogin']).'" LIMIT 1'));
$beta2 = mysql_fetch_array(mysql_query('SELECT * FROM `beta_testers` WHERE `active` = "'.$u->info['id'].'" LIMIT 1'));
if(!isset($beta['id'])) {
echo '<font color=red><b>Ëîãèí beta-òåñòåðà íå íàéäåí</b></font>';
}elseif(md5($_POST['betapass']) != $beta['pass']) {
echo '<font color=red><b>Óêàæèòå ïàðîëü êîòîðûé áûë âî âðåìÿ beta-òåñòà</b></font>';
}elseif(isset($beta2['id'])) {
echo '<font color=red><b>Âû óæå ïîëó÷àëè âîçíàãðàæäåíèå!</b></font>';
}else{
echo '<font color=red><b>Âû óñïåøíî ïîëó÷èëè âîçíàãðàæäåíèå, çíà÷îê beta-òåñòåðà.</b></font>';
//çíà÷îê â èíôî
mysql_query('INSERT INTO `users_ico` (
`uid`,`time`,`text`,`img`,`type`,`x`
) VALUES (
"'.$u->info['id'].'","'.time().'","<b>beta-òåñòåð</b><br>Áëàãîäàðíîñòü îò Àäìèíèñòðàöèè ïðîåêòà.","icn123.gif","1","1"
)');
//
mysql_query('UPDATE `beta_testers` SET `active` = "'.$u->info['id'].'" WHERE `id` = "'.$beta['id'].'" LIMIT 1');
}
}
?>
<div align="center">
<form style="width:144px;" method="post" action="main.php?referals=1">
<input style="width:144px;" name="betalogin" value="" type="text" /><br />
<input style="width:144px;" name="betapass" value="" type="password" /><br />
<input style="width:144px;" type="submit" class="btnnew" value="Çàáðàòü âîçíàãðàæäåíèå!" />
</form>
</div><? */ ?>
</div>
</td>
</tr>
<tr>
<td align="center"><h4>Âàøè âîñïèòàííèêè online:</h4></td>
</tr>
<tr>
<td><?=$rfs['see']?></td>
</tr>
<tr>
<td align="center" valign="middle">&nbsp;</td>
</tr>
</table></td>
</tr>
</table>