Файл: tttt/sys/functions.php
Строк: 36
<?php
include 'config.php';
function Scrin($Scrin) {
$Scrin = htmlspecialchars($Scrin);
return $Scrin;
}
$HEIGHT = Scrin($_POST['HEIGHT']);
$WIDTH = Scrin($_POST['WIDTH']);
$URL = Scrin($_POST['URL']);
$screen = Scrin($_GET['screen']);
$random = Scrin($_GET['random']);
$DIR = 'screen/'.$screen.''.$random.'.png';
$API = 'http://mini.s-shot.ru/'.$HEIGHT.'/'.$WIDTH.'/png/?'.$URL.'';
copy($API, $DIR);
$d_f1 = mysql_result(mysql_query("SELECT COUNT(*) FROM `screen` WHERE `id`='".$screen."' AND `screen`='".$screen.$random."'"), 0);
if ($d_f1==0){
mysql_query("INSERT INTO `screen` SET `id`='".$screen."' , `screen` = '".$screen.$random."'");
}
?>