[thelist] Apache PHP CSV progress

Andrew Maynes andrew at humanbehaviour.co.uk
Thu Aug 22 03:01:00 CDT 2002


Hi guys

The problem I still have is below the code

ok just to bring you up to date on this latest saga, the original problem was
not a .htaccess issue there was some dodgy php code in the file I was attempting
to load, in fact the code it all dodgy, but hey I didn't write it (because I
cant!)
which basically meant changing this:

session_register ("admin");



/* If the password is in use, lets check it. */

if ($password) {

	if ($logout) {
		$admin = "NO";
		Header ("Location:../index.php");
		exit;
	}

	if ($formpassword) {
		if ($formpassword == $password) {
			$admin = md5 ($password);
			} else {
			$admin = "NO";
		}
	}

to this-


session_register ("admin");
$admin =& $_SESSION['admin'];

/* If the password is in use, lets check it. */

if ($password) {

	if ($logout) {
$admin = "NO";

Header ("Location:../index.php");

exit;
}

if ($_REQUEST['formpassword']) {

$admin = md5 ($password);
} else {
$admin = "NO";
}
}

The csv files need to be set to 666 and I can do this on unix but I am on a
windoze OS so does anyone know how I change the permissions for the csv files?

Andrew


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/02




More information about the thelist mailing list