Warning: fopen(Z:/home/localhost/www/ins/connect.dat) [function.fopen]: failed to open stream: No such file or directory in Z:\home\localhost\www\shop\log.php on line 8
Warning: flock() expects parameter 1 to be resource, boolean given in Z:\home\localhost\www\shop\log.php on line 9
Warning: fopen(Z:/home/localhost/www/ins/connect.dat) [function.fopen]: failed to open stream: No such file or directory in Z:\home\localhost\www\shop\log.php on line 10
Warning: file(Z:/home/localhost/www/ins/connect.dat) [function.file]: failed to open stream: No such file or directory in Z:\home\localhost\www\shop\log.php on line 24
Warning: file(Z:/home/localhost/www/ins/connect.dat) [function.file]: failed to open stream: No such file or directory in Z:\home\localhost\www\shop\log.php on line 37
Warning: fputs(): supplied argument is not a valid stream resource in Z:\home\localhost\www\shop\log.php on line 92
Warning: fclose(): supplied argument is not a valid stream resource in Z:\home\localhost\www\shop\log.php on line 93
Warning: flock() expects parameter 1 to be resource, boolean given in Z:\home\localhost\www\shop\log.php on line 13
Warning: fclose(): supplied argument is not a valid stream resource in Z:\home\localhost\www\shop\log.php on line 14
не разберусь как исправить
вот файл лог
PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?
- #путь к скрипту на сервере (следуя из корня сайта)
- $SPath = "ins/";
- function redactdb ($DataBase, $C_ID)
- {
- function fnl ($FPath){
- }
- function cnu ($handle_lock) {
- }
- function get_ip () {
- else{$user_ip='[empty]';}
- return $user_ip;
- }
- $hl = fnl ($DataBase);
- {
- {
- $_SERVER['HTTP_REFERER'] = "[direct]";
- }
- $user_ip = get_ip();
- }
- for($i=0;$i<count($file);$i++)
- {
- $user_ip = get_ip();
- if($id_user==$C_ID or $ip_user == $user_ip)
- {
- //$ip_user=substr($ip_user,0,47)."...";
- if ($ip_user != $user_ip)
- {
- //$ip_user.="|$user_ip";
- }
- {
- }
- {
- }
- {
- $refer_user.="|".$_SERVER['HTTP_REFERER'];
- }
- else
- {
- {$_SERVER['HTTP_REFERER'] = "[direct]";}
- {
- $refer_user.="|[direct]";
- }
- }
- {
- $request_user.="|".$_SERVER['REQUEST_URI'];
- }
- $file[$i]= str_replace($file[$i], "$id_user::$ip_user::$browser_user::$winver_user::".($shows_user+1)."::$refer_user::$request_user\r\n", $file[$i]);
- break;
- }
- {
- {
- $_SERVER['HTTP_REFERER'] = "[direct]";
- }
- }
- }
- cnu ($hl);
- }
- {
- if ($QUERY_STRING == "")
- {
- }
- else
- {
- }
- exit;
- }
- {
- $session_failed = false;
- }
- else
- {
- $session_failed = true;
- }
- if ($session_failed == false)
- {
- redactdb ($_SERVER['DOCUMENT_ROOT']."/$SPath/connect.dat", $_COOKIE['user_id']);
- }
- else
- {
- print "Ваш браузер не поддерживает COOKIE !\r\n";
- }
- ?>