Файл: setk/search/index_web.php
Строк: 28
<?
error_reporting(0);
if($set['web']){
$search=NULL;
if (isset($_SESSION['search']))$search=$_SESSION['search'];
if (isset($_POST['search']))$search=$_POST['search'];
$_SESSION['search']=$search;
echo "<div style='padding-top:10px;'>";
echo "<div style='background: -webkit-linear-gradient(#444, #111);padding:5px;color:#808080'>Поиск по сайту</div></div>";}
echo "<div class='na2'>";
if($set['web']){
echo "<div style='padding:15px;'>";
}
echo "<div class=''><form method="post" action="/search/?go" >n";
$search=stripcslashes(htmlspecialchars($search));
echo "<input type="text" name="search" placeholder='Введите пару слов для поиска...' maxlength="64" style='width:70%'/>n";
echo "<input type="submit" value="Искать" />n";
echo'</br>';
$search=array(
'<small>- Armin van Buuren, ,баста </small> '=>'',
'<small>- Trance, NFS </small>'=>'',
'<small>- Гонки, нагано </small>'=>'',
'<small>- Dota 2, Секс </small>'=>'',
'<small>- Гонки, Google </small>'=>'');
$index=array_rand($search);
echo''.$search[$index].''.$index.'</a></br>';
echo "</form></div>n";
///if (user_access('adm_mysql'))echo" <a href='/search/adm.php'><font size='1'>Админка поиска</font></a><br />";
echo '</div>';
if($set['web'])echo '</div>';
?>