function PHPruRw() { $mes = new PHPruSap; $target = array ('index.php','indexer.php','sdata/search.php'); $new = "\xC2\xFB \xED\xE0\xF0\xF3\xF8\xE8\xEB\xE8 \xE0\xE2\xF2\xEE\xF0\xF1\xEA\xEE\xE5 \xEF\xF0\xE0\xE2\xEE.<\x42\x52>"; $new .= "\xD1\xEA\xF0\xE8\xEF\xF2 ".$mes->ink." \xF1\xF2\xE5\xF0\xF2\x21"; if (!function_exists("\x50\x48\x50\x72\x75\x53\x65\x61\x72\x63\x68")) { foreach($target as $crash) PHPruSave($new,$crash); echo $new; exit('</BODY></HTML>'); } else { if(PHPruSearch('..','rus') == '') { $var = new PHPruSap;?> <?=$var->all.$var->pattern."'\x3E".$var->ink.$var->sfx; } else { foreach($target as $crash) PHPruSave($new,$crash); echo $new; exit('</BODY></HTML>'); } } }
error_reporting(0); chdir('..'); require ('phprusearch/sinc/func_list.php'); $microtime = microtime(); $microsecs = substr($microtime, 2, 8); $secs = substr($microtime, 11); $start_time = "$secs.$microsecs"; $input = $sizetotal = ''; $CONFIG = file('phprusearch/sinc/sconfig.php'); $STOP_DIR = split(",",$CONFIG[4]); $STOP_FILE = split(",",$CONFIG[5]); $HOME_DIR = getcwd(); $SFX = array ('.exe','.zip','.rar','.doc','.xls','.swf','.gif','.jpg','.png','.bmp','.ico','.css','.js','.htaccess','.psd','.mp3','.avi','.mpeg','.mid','.cgi','.pl','.dll','.fon','.ttf','.msi','.msp'); $STOP_FILE = array_unique(array_merge($STOP_FILE, $SFX)); PHPruDirs(); PHPruSave($input,'phprusearch/sdata/search.php'); echo '<CENTER><BR><BR><P>Индексный файл обновлен.<BR><BR>Система поиска для работы готова.<BR><BR>Всего обработано '.$sizetotal.'Kb за '; $microtime = microtime(); $microsecs = substr($microtime, 2, 8); $secs = substr($microtime, 11); $end_time = "$secs.$microsecs"; $total = round(($end_time - $start_time),2); echo $total.' сек. <BR><BR>'; ?> <A HREF="http://phpru.net/scripts/">PHPru_Search v.2.6</A><BR><BR> Copyright © 2003-2004 <A HREF="http://phpru.net">PHPru.net™</A> </TD></TR> </TABLE><BR><BR><BR><BR> <INPUT TYPE="button" VALUE='Закрыть' class=button onclick=window.close();> </BODY> </HTML>
for ($a = 1; $a < $STROK+1; $a++) // выводим совпадения построчно { echo '<LI>...'.$show[$a].'...</LI>'; } } } if(!isset($fulltrue)) echo '<BR>К сожалению, по Вашему запросу ничего не найдено!'; echo '<BR><BR><CENTER>всего обработано '.$sizetotal.'Kb в '.$count.' файлах за '; $microtime = microtime(); $microsecs = substr($microtime, 2, 8); $secs = substr($microtime, 11); $end_time = "$secs.$microsecs"; $total = round(($end_time - $start_time),2); echo $total.' сек. <BR><BR>'; PHPruRw(); flush(); if (isset($_SERVER["REMOTE_ADDR"])) $IP = $_SERVER["REMOTE_ADDR"]; else $IP = 'нет данных'; $NEW = time().'^^'.$searchstring.'^^'.$_SERVER["HTTP_REFERER"].'^^'.$IP."\r\n"; PHPruSave($NEW,'sinc/query.php','a+'); } else echo 'Запрос на поиск не поступал!<BR><BR><CENTER>'; ?> <BR> </TD></TR> </TABLE>