Файл: chats/victkup.php
Строк: 28
<?php
####################################
## SCRIPT POWERED : ##
## ICQ : ##
## Email : @ ##
## WEB SITE Version 1.0 ##
####################################
###################################################################
## ___ _ ##
## _.-| | ( ( ##
## { | | /___/ | | ##
## "-.|___| o o / ___ _) ) ##
## .__|_|_. _( Y ) . `O / ##
## | | _((_ `^-' _ /__< ##
## .+|______|_.-|__)`-' (((/ ((_d ##
## ##
## ##
## ##
## ##
## "888 888 ,a8""8a, ,a8""8a "888b ,888" ,a8""8a ,a8""8a ##
## 888 dP 88b b88 88b b88 88Y8b,8888 88b d88 88b b88 ##
## 888dP 88a a88 88a 88 Y88P888 88a a88 88a ##
## 888 8b 88Y Y88 88Y Y88 88 YP 888 88Y Y88 88Y Y88 ##
## 888 888 `"8ad8"' `"8ad8"' a88a a888a `"8ad8"' `"8ad8"' ##
###################################################################
$v_now = time( );
$v_posts = $row['vposts'];
$vict = file( "../data/vict.dat" );
$vict = explode( "|", $vict[0] );
$answer = $vict[1];
$v_time = $vict[2];
$v_out = $v_time + 120;
$psk = $vict[0];
$flag = FALSE;
if ( $answer == $msg )
///
$vposts = $row['vposts'];
$vposts = $vposts + 1;
if ( $answer == $msg && !empty( $answer ) )
{
mysql_query( "Update users set vposts='".$vposts."' where id ='".$id."'" );
$flag = TRUE;
$psk = "Молодец rn<u>".$row['login']."</u> -- rrnэто гениально!<br/>rnВерное слово <u>{$msg}</u>!</b>!<br/>rnt<b>".$row['login']."</b>rrnt</b> правильно отвечает на <b>{$vposts}</b> вопрос!";
++$v_posts;
mysql_query( "Update users set vposts='".$v_posts."' where id ='".$id."'" );
}
if ( $flag )
{
$quest = gzfile( "../quest.gz" );
$rn = rand( 0, count( $quest ) - 1 );
$data = explode( "::", $quest[$rn] );
$nv = trim( $data[0] );
$answer = trim( $data[1] );
$len = strlen( $answer ) / 2;
$fp = fopen( "../data/vict.dat", "wb" );
fputs( $fp, $nv." (".$len." букв)|".$answer."|".$v_now );
fclose( $fp );
}
?>