Файл: world-faces.ru/world-faces.ru/play/777/help.php
Строк: 66
<?php
include_once '../../sys/inc/start.php';
include_once '../../sys/inc/compress.php';
include_once '../../sys/inc/sess.php';
include_once '../../sys/inc/home.php';
include_once '../../sys/inc/settings.php';
include_once '../../sys/inc/db_connect.php';
include_once '../../sys/inc/ipua.php';
include_once '../../sys/inc/fnc.php';
include_once '../../sys/inc/user.php';
$set['title']='777'; // заголовок страницы
include_once '../../sys/inc/thead.php';
title();
aut();
if(mysql_result(mysql_query("SELECT count(id) FROM `my_apps` where `id_us` = '".$us['id']."' and `id_app` = '12'"),0)==0){
$app = DB::$dbs->queryFetch("SELECT * FROM `apps` where `id` = ? limit 1",array(12));
function ret($type){
$type = str_replace('И','и',$type);
$type = str_replace('а','ы',$type);
$type = str_replace('П','п',$type);
$type = str_replace('ие','ия',$type);
return $type;
}
echo '<div class="title" align="center">Запуск '.ret($app['type']).' | <a href="/play">закрыть</a></div>';
echo '<div class="prof"><img src="'.$app['img'].'" align="middle" alt="'.$app['name'].'"/><b>'.$app['name'].'</b><br/>'.$app['opis'].'</div>';
echo '<div class="app">Запустили уже <b>'.DB::$dbs->querySingle("SELECT count(id) FROM `my_apps` where `id_app` = '12'").'</b> человек! <a href="?add"><input type="submit" value="Запустить '.$app['name'].'!"/></a></div>';
if(isset($_GET['add'])){
DB::$dbs->query("INSERT INTO `my_apps` set `id_us` = ?, `id_app` = ?",array($us['id'],12));
$text = 'запустил'.(($us['pol']==0)?'а':'').' приложение <b>[url='.$app['src'].']"'.$app['name'].'"[/url]</b>!';
DB::$dbs->query("INSERT INTO `lenta_saita` set `user` = ?, `time` = ?,`action` = ?",array($us['nick'],time(),$text));
header('location:'.$app['src'].'');
}
niz(); exit;
}
echo "[9]-[9]-[9] - 90 баллов<br/>n";
echo "[8]-[8]-[8] - 100 баллов<br/>n";
echo "[7]-[7]-[7] - 150 баллов<br/>n";
echo "[3]-[3]-[3] - 60 баллов<br/>n";
echo "[1]-[1]-[1] - 50 баллов<br/>n";
echo "<a href="777.php">»Играть</a><br/>n";
echo "<a href="index.php">»Назад</a>n";
include_once '../../sys/inc/tfoot.php';
?>