# HG changeset patch # User Alex McMahon # Date 1245426915 -3600 # Node ID e7e70577ce6cd1cc8fc9c1d556316b26ebc14a8d # Parent 022ee48c74095aa53700e718b41c3af24b1335f5 check for dir named req_ID, change status and redirect to intial request diff -r 022ee48c7409 -r e7e70577ce6c details.php --- a/details.php Fri May 22 15:42:33 2009 +0100 +++ b/details.php Fri Jun 19 16:55:15 2009 +0100 @@ -1,4 +1,24 @@ Result pending"; print ""; } else { - print "View website"; +//header ('Location: http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . dirname($db_fieldcache["req_ID"])); +//strip_tags($text, '

') + print "View website"; +// print "View website"; print ""; } print "

"; diff -r 022ee48c7409 -r e7e70577ce6c mysql_apache/apache-default-site --- a/mysql_apache/apache-default-site Fri May 22 15:42:33 2009 +0100 +++ b/mysql_apache/apache-default-site Fri Jun 19 16:55:15 2009 +0100 @@ -1,6 +1,6 @@ - ServerAdmin webmaster@localhost - ServerName sphere.dsg.cs.tcd.ie + ServerAdmin librarian@village.n4c.eu + ServerName dtnrouter.village.n4c.eu DocumentRoot /var/www/private/HTMLrequester @@ -50,6 +50,20 @@ #Require valid-user Require group 0 1 + + AuthType Basic + AuthName "Administration" + AuthUserFile /var/www/private/HTMLrequester/passwords + + # Turn off 'mod_auth_form' in this directory, + # giving control to 'mod_auth'. + AuthFormAuthoritative Off + + Allow from 127.0.0.1 # localhost + Deny from all + Order Deny,Allow + Require valid-user + AuthFormPageNotAllowed /paying_members_only.html @@ -99,12 +113,4 @@ Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 -# -# Options Indexes MultiViews FollowSymLinks -# AllowOverride None -# Order deny,allow -# Deny from all -# Allow from 127.0.0.0/255.0.0.0 ::1/128 -# -