[llvm-commits] CVS: nightlytest-serverside/EmailReport.php
Jim Laskey
jlaskey at apple.com
Fri Sep 8 16:45:28 PDT 2006
Changes in directory nightlytest-serverside:
EmailReport.php updated: 1.1 -> 1.2
---
Log message:
reuse code for e-mail report #11
---
Diffs of the changes: (+12 -28)
EmailReport.php | 39 ++++++++++++---------------------------
1 files changed, 12 insertions(+), 27 deletions(-)
Index: nightlytest-serverside/EmailReport.php
diff -u nightlytest-serverside/EmailReport.php:1.1 nightlytest-serverside/EmailReport.php:1.2
--- nightlytest-serverside/EmailReport.php:1.1 Fri Sep 8 18:09:01 2006
+++ nightlytest-serverside/EmailReport.php Fri Sep 8 18:45:13 2006
@@ -1,26 +1,26 @@
<?php
-if(!isset($HTTP_GET_VARS['machine']) || !is_numeric($HTTP_GET_VARS['machine'])){
- print "Error: Incorrect URL!\n";
- die();
+$machine_id = $argv[0];
+if(!isset($machine_id) || !is_numeric($machine_id)){
+ print "Incorrect machine id\n";
+ die();
}
-$machine_id = $HTTP_GET_VARS['machine'];
-if(!isset($HTTP_GET_VARS['night']) || !is_numeric($HTTP_GET_VARS['night'])){
- print "Error: Incorrect URL!\n";
- die();
+$night_id = $argv[1];
+if(!isset($night_id) || !is_numeric($night_id)){
+ print "Incorrect night id\n";
+ die();
}
-$night_id = $HTTP_GET_VARS['night'];
if(!(include "NightlyTester.php")){
- print "Error: could not load necessary files!\n";
- die();
+ print "Error: could not load necessary files!\n";
+ die();
}
if(!(include"ProgramResults.php")){
- print "Error: could not load necessary files!\n";
- die();
+ print "Error: could not load necessary files!\n";
+ die();
}
$mysql_link=mysql_connect("127.0.0.1","llvm","ll2002vm") or die("Error: could not connect to database!\n");
@@ -38,23 +38,7 @@
$email = htmlifyTestResults(getEmailReport($night_id, $previous_succesful_id));
-?>
-<html>
-<head>
-<title>Testing Email Report</title>
-<STYLE TYPE="text/css">
-<!--
- @import url(style.css);
--->
-</STYLE>
-</head>
-<body>
-<?php
print $email;
-?>
-
-</body>
-<?php
mysql_close($mysql_link);
?>
More information about the llvm-commits
mailing list