Файл: page/copy.php
Строк: 15
<?php
require_once "../sys/func.php";
if (isset($_GET['id'])) {
$status = filter(intval($_GET['id']));
if (empty($status) || ($status == "")) {
header('Location: ../index.php');
exit;
}
$issetStatus = mysql_num_rows(mysql_query("SELECT `id` FROM `data_status` WHERE `id`='$status'"));
if ($issetStatus == 0) {
header('Location: ../index.php');
exit;
}
$st = mysql_fetch_array(mysql_query("SELECT `text` FROM `data_status` WHERE `id`='$status'"));
}else{
header('Location: ../index.php');
exit;
}
$title = 'Копировать статус';
require_once "../sys/head.php";
echo '<div class="c"><center><textarea>'.$st['text'].'</textarea></center></div>';
require_once "../sys/foot.php";
?>