diff options
author | Jonas Smedegaard <dr@jones.dk> | 2002-11-19 16:30:50 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2002-11-19 16:30:50 +0000 |
commit | f58b22a17efaceeb79bd3142071bfbba6937a700 (patch) | |
tree | b125cec24f7b62695dee89099f8461a9d0501cf2 /auth/get_uid_and_mysql_pw.php | |
parent | 172bb64edd6909285d8a1c79a3a07ac2d2744ac7 (diff) |
Add new auth folder and a PHP snippet to grab mysql passwd within an authenticated webspace.
Diffstat (limited to 'auth/get_uid_and_mysql_pw.php')
-rw-r--r-- | auth/get_uid_and_mysql_pw.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/auth/get_uid_and_mysql_pw.php b/auth/get_uid_and_mysql_pw.php new file mode 100644 index 0000000..fc46f23 --- /dev/null +++ b/auth/get_uid_and_mysql_pw.php @@ -0,0 +1,7 @@ +<?php +$PHP_AUTH_USER = isset($PHP_AUTH_USER) ? $PHP_AUTH_USER : ''; +$PHP_AUTH_FILE = "/home/$PHP_AUTH_USER/webdata/php_passwd"; +$fh = fopen($PHP_AUTH_FILE, 'r'); +$PHP_AUTH_PASS = fread($fh, filesize($PHP_AUTH_FILE)); +fclose($PHP_AUTH_FILE); +?> |