include_once("rss.php"); exit; # get files for bakecca // http://www.adboom.it/rss/_bakeca/bakeca_feed_20100713.xml include_once("AdboomMail.inc"); $mailer = new AdboomMail(); $maildata = array("from" => EMAIL_FROM,"to" => CONTROL_MAIL, "subject" => "Get ADS Bakekka server: " . $_SERVER['SERVER_NAME'], "body" => " From IP: " . $_SERVER['REMOTE_ADDR'] ); if(! defined("NO_MAIL_DEVELOPMENT")) { $mailer->send( $maildata); }else { // print_r($maildata); } if (!isset($_SERVER['PHP_AUTH_USER'])) { header('WWW-Authenticate: Basic realm="My Realm"'); header('HTTP/1.0 401 Unauthorized'); echo 'Text to send if user hits Cancel button'; exit; } else { # echo "
Hello {$_SERVER['PHP_AUTH_USER']}.
"; # echo "You entered {$_SERVER['PHP_AUTH_PW']} as your password.
"; if ( $_SERVER['PHP_AUTH_USER'] =="bakekka" && $_SERVER['PHP_AUTH_PW'] =="bakekka" ) { $auth=1; } else { header('WWW-Authenticate: Basic realm="My Realm"'); header('HTTP/1.0 401 Unauthorized'); echo ' password o utente sbaglaiti'; exit; } } if ($auth ) { $tempo=$_GET['time']; $datefile=date("Ymd"); $datefile=date("Ymd",time()-86400); if ( $tempo ) $datefile=date("Ymd",$tempo); else $datefile=date("Ymd",time()-86400); $fnamecsv="bakeca_feed_" . $datefile . ".xml"; $file = $sitebase."/frontend20/www/rss/_bakeca/". $fnamecsv; # $file="http://www.adboom.it/rss/_bakeca/".$fnamecsv; # $fp= fopen( $file,'rb' ); if ( file_exists($file ) ) { $content=file_get_contents( $file ) ."";; # @fclose($fp); } else { $content='