www/database.php
[monitor.git] / www / database.php
index bef3e03..ce12c8e 100644 (file)
@@ -1,8 +1,10 @@
 
 <?php 
 
-// PICKLE_PATH="/home/soltesz/research/planetlab/monitor3/pdb";
-define("PICKLE_PATH", "pdb");
+# TODO: clean up this aweful hack.
+system("/usr/share/monitor-server/phpconfig.py > /var/www/cgi-bin/monitor/monitorconfig.php");
+include 'monitorconfig.php';
+define("PICKLE_PATH", MONITOR_DATA_ROOT);
 
 class Pickle
 {