[gst-cvs] CVS: www admin.php,1.3,1.4
Andy Wingo
wingo at users.sourceforge.net
Wed Oct 24 12:23:11 PDT 2001
Update of /cvsroot/gstreamer/www
In directory usw-pr-cvs1:/tmp/cvs-serv31391
Modified Files:
admin.php
Log Message:
fixed some stuff :)
Index: admin.php
===================================================================
RCS file: /cvsroot/gstreamer/www/admin.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- admin.php 2001/10/24 19:17:27 1.3
+++ admin.php 2001/10/24 19:22:13 1.4
@@ -4,24 +4,16 @@
$top = get_header('GStreamer: Admin', '.');
- if(!isset($PHP_AUTH_USER)) {
- Header("WWW-Authenticate: Basic realm=\"gstreamer-admin\"");
- Header("HTTP/1.0 401 Unauthorized");
- echo $top;
- echo <<<EOF
-<p>You must be an authorized user to access the GStreamer administration pages. Sorry.</p>
-EOF;
- echo get_footer();
- exit;
- } else if (strcmp($PHP_AUTH_USER, $admin_user)!=0 ||
- strcmp($PHP_AUTH_PW, $admin_pass)!=0) {
+ if(!isset($PHP_AUTH_USER) ||
+ strcmp($PHP_AUTH_USER, $admin_user)!=0 ||
+ strcmp($PHP_AUTH_PW, $admin_pass)!=0) {
Header("WWW-Authenticate: Basic realm=\"gstreamer-admin\"");
Header("HTTP/1.0 401 Unauthorized");
echo $top;
echo <<<EOF
<p>
Bad password or user name. Check the values of <code>$admin_user</code> and
- <code>$admin_pass<code> in <code>/home/groups/g/gs/gstreamer/htdocs/lib/db_setup.php</code>
+ <code>$admin_pass</code> in <code>/home/groups/g/gs/gstreamer/htdocs/lib/db_setup.php</code>
to get the current user and password. This is pretty light security, you wouldn't exactly
have to be a l33t h4x0r to break it, so don't bother. Also, we have backups.
</p>
More information about the Gstreamer-commits
mailing list