"; // if ( $isvalid != 1 ) { // return 0; // }; $KeywordDate = date("j.n.Y"); $KeyWordStoreDir = date("n.Y"); # setze den storepath -> jeden tag neu //$StorePath = LOGLINKSSTORE."\\".$KeyWordStoreDir; // win version $StorePath = "/home/www/logs/COM/".$KeyWordStoreDir; // linux version # erstelle verzeichnis, wenn es nicht existiert if (!is_dir ( $StorePath ) ) { mkdir ($StorePath, 0777); }; # erstelle absoluten pfad zur keyword store datei $StorePathFile = $StorePath . "/$KeywordDate.requests.txt"; $ip = $_SERVER['REMOTE_ADDR']; $referrer = $_SERVER['HTTP_REFERER']; $useragent = $_SERVER ['HTTP_USER_AGENT']; $neu = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; //time stuff $today = getdate(); $month = $today['mon']; $day = $today['mday']; $year = $today['year']; $hours = $today['hours']; $minutes = $today['minutes']; $stingToLog = $year . "-" . $month . "-" . $day . " " . $hours . ":" . $minutes . "#####" . $ip; $fh = fopen("$StorePathFile","a+"); flock($fh, LOCK_EX); fputs($fh,"$stingToLog#####$neu#####$useragent#####$referrer\n"); fclose($fh); // pornrage.com keyword to twitter.com poster: social.inc.php //$shorturl = makeShortUrl($SearchQuery); //postTwitter($shorturl,$SearchQuery); return 1; } # function logQuerys( $SearchQuery, $catg ) { } ?>