. */ if( get_remote_address()!=NULL && in_array(get_remote_address(), split(";", RUNDAILY_ALLOWED_HOSTS)) ) { include("./../include/mysql.php"); include("./../include/setup.php"); include("./../include/globals.php"); include("./../include/functions.php"); include("./../include/deadline.php"); include("./../include/Chart.php"); include("./statistics.php"); include("./../include/Mail.php"); include("./../include/numparticipants_func.php"); #include("./upd-body.php"); #include("./contactpwd.php"); #include("./chk-parttype.php"); #include("./mails.php"); #include("./upd-nummem.php"); #include("./autoselect.php"); #$out.="No test enabled at the moment.\n"; ########### ### End ### ########### $out.="\n\nFinished\n"; #$mail = new Mail($setup['MailReturnpath'], $setup['WebmasterEmail']); #$mail->setSubject("Rundaily ".$setup['SetupEventType']." application"); #$mail->addHeader("To", "\"".$setup['WebmasterName']."\" <".$setup['WebmasterEmail'].">"); #$mail->addHeader("From", "\"".$setup['WebmasterName']."\" <".$setup['WebmasterEmail'].">"); #$mail->addHeader("X-Content", "rundaily to webmaster"); #$mail->addHeader("X-ApplicationID", "0"); #$mail->addHeader("X-Signature", get_signature("rundaily to webmaster", 0)); #$mail->setMessage($out); #switch( $mail->send(true) ) { # case Mail::MAIL_OK: dolog("rundaily", "Rundaily runned - mailed details to webmaster", "info"); break; # case Mail::MAIL_QUEUE: dolog("rundaily", "Rundaily runned - mail with details to webmaster has been queued", "warning"); break; # default: dolog("rundaily", "Rundaily runned - failed mailing results to webmaster", "error"); break; #} echo nl2br($out); }else { echo "You cannot run this page manually. [".get_remote_address()."]"; } function debug($msg) { global $out; echo "!!! $msg !!!\n"; $out .= "!!! $msg !!!\n"; } ?>