Update of /cvsroot/fink/web/pdb
In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv16409/web/pdb

Modified Files:
      Tag: pdb_solr
        header.inc 
Log Message:
allow setting the pdb as disabled

Index: header.inc
===================================================================
RCS file: /cvsroot/fink/web/pdb/header.inc,v
retrieving revision 1.17.2.4
retrieving revision 1.17.2.5
diff -u -d -r1.17.2.4 -r1.17.2.5
--- header.inc  4 Dec 2007 20:10:22 -0000       1.17.2.4
+++ header.inc  5 Dec 2007 18:53:32 -0000       1.17.2.5
@@ -2,8 +2,10 @@
 /* $Id$ */
 
 $linkroot = "http://www.finkproject.org/";;
-#$localroot = "http://pdb.finkproject.org/";;
-$localroot = "http://ranger.users.finkproject.org/fink/";;
+$localroot = "http://pdb.finkproject.org/";;
+#$localroot = "http://ranger.users.finkproject.org/fink/";;
+
+$disabled = true;
 
 $server = $_SERVER['SERVER_NAME'];
 $uri = $_SERVER['REQUEST_URI'];
@@ -64,10 +66,10 @@
 
 $solrurl = 'http://localhost:8983/solr';
 
-/* connect to solr */
-#require_once("Apache/Solr/Service.php");
-#$solr = new Apache_Solr_Service("localhost", 8983, "/solr");
-#if (!$solr)
-#      print '<p class="attention"><b>Couldn\'t connect to the query 
backend!</b></p>';
+if ($disabled) {
+       print "<p>The package database is down temporarily. Sorry for the 
inconvenience.</p>\n";
+       include "footer.inc";
+       exit(0);
+}
 
 ?>


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to