[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r15123 - gauger/web
From: |
gnunet |
Subject: |
[GNUnet-SVN] r15123 - gauger/web |
Date: |
Fri, 29 Apr 2011 15:22:45 +0200 |
Author: bartpolot
Date: 2011-04-29 15:22:45 +0200 (Fri, 29 Apr 2011)
New Revision: 15123
Modified:
gauger/web/io.php
Log:
Added sanity checks for missing config files
Modified: gauger/web/io.php
===================================================================
--- gauger/web/io.php 2011-04-29 13:13:54 UTC (rev 15122)
+++ gauger/web/io.php 2011-04-29 13:22:45 UTC (rev 15123)
@@ -22,7 +22,11 @@
/**
* CONF: main configuration array
*/
-$CONF = parse_ini_file('gauger.conf');
+$CONF = @parse_ini_file('gauger.conf');
+if($CONF === false) {
+ header('HTTP/1.1 500 Internal Server Error');
+ die("Cannot read the configuration file. Please create one according to
the README");
+}
/**
* DATADIR: root data directory
@@ -320,7 +324,6 @@
die("cannot add data to $datadir");
}
$data = recalculate_data($datadir, $rev, $pos);
- print_r($data);
$res = write_data_to_summary($datadir, $rev, $data);
if ($res === false) {
header('HTTP/1.1 500 Internal Server Error');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r15123 - gauger/web,
gnunet <=