Файл: public_html/adm_panel/jobs.php
Строк: 63
<?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/adm_check.php';
include_once '../sys/inc/user.php';
adm_check();
$set['title'] = 'Задания';
include_once '../sys/inc/thead.php';
title();
err();
aut();
$inJob = file_get_contents('../jobs.dat');
$exJob = explode('|', $inJob);
$jobEx1 = explode(',', $exJob[0]);
$jobEx2 = explode(',', $exJob[1]);
$jobEx3 = explode(',', $exJob[2]);
if (isset($_POST['save']))
{
$savex = $jobEx1[0].','.$_POST['time'][0].','.$_POST['pres'][0].'|'.$jobEx2[0].','.$_POST['time'][1].','.$_POST['pres'][1].'|'.$jobEx3[0].','.$_POST['time'][2].','.$_POST['pres'][2];
file_put_contents('../jobs.dat', htmlspecialchars($savex));
header('Location: ?');
}
echo 'Задание на:
<FORM method="POST" action="?">
<TABLE border="0">
<TR>
<TD>Добавления в друзья |</TD>
<TD>Коммент к фото |</TD>
<TD>Приглашение рефа</TD>
</TR>
<TR>
<TD><b>Время</b></TD>
<TD><b>Время</b></TD>
<TD><b>Время</b></TD>
</TR>
<TR>
<TD><input type="text" name="time[]" value="' . $jobEx1[1] . '" size="3"/></TD>
<TD><input type="text" name="time[]" value="' . $jobEx2[1] . '" size="3"/></TD>
<TD><input type="text" name="time[]" value="' . $jobEx3[1] . '" size="3"/></TD>
</TR>
<TR>
<TD><b>Награда</b></TD>
<TD><b>Награда</b></TD>
<TD><b>Награда</b></TD>
</TR>
<TR>
<TD><input type="text" name="pres[]" value="' . $jobEx1[2] . '" size="3"/></TD>
<TD><input type="text" name="pres[]" value="' . $jobEx2[2] . '" size="3"/></TD>
<TD><input type="text" name="pres[]" value="' . $jobEx3[2] . '" size="3"/></TD>
</TR>
</TABLE>
<input type="submit" name="save" value="Сохранить"/>
</FORM>';
include_once '../sys/inc/tfoot.php';
?>