.
*/
if( in_array($_SERVER['REMOTE_ADDR'], split(";", RUNDAILY_ALLOWED_HOSTS)) ) {
$rundaily="yes";
include("./../include/include.php");
include("./rundaily-include.php");
if( isset($_GET['run']) ) {
echo "
You can invoke this page with:\n";
echo "
- run=ab: synchronize Address Book with Karl\n";
echo "
- run=coe: synchronize Calendar of Events with Karl\n";
echo "
- run=eventdummy: create dummy events\n";
echo "
\n"; } $out=""; #if( !isset($_GET['run']) OR $_GET['run']=="ab" ) # include("./rundaily-ab.php"); #if( !isset($_GET['run']) OR $_GET['run']=="coe" ) # include("./rundaily-coe.php"); if( !isset($_GET['run']) OR $_GET['run']=="eventdummy" ) include("./rundaily-eventdummy.php"); echo nl2br($out); $To = WEBMASTER_MAIL; $Subject="[AEGEE Photo Page] Rundaily"; $Message=$out."\n\n\n============================================"; $Message.="\nThis mail was sent from the AEGEE photo page"; $Headers="From: " . RUNDAILY_MAIL; if( mail($To, $Subject, $Message, $Headers) ) { echo "
Mail send to webmaster"; }else { echo "
Failed mailing to webmaster"; } }else { // No access echo $_SERVER['REMOTE_ADDR']; } ?>