
Originally Posted by
Woodymon
Hi Andrew, I went to test a ZC 127 shop, ... but just discovered it does not have the mod installed. So I will install mod and test.
Master Password (crypted) v1.0
master_password_encrypt.zip (Jan 29, 2006)
Just installed on a 1.27 shop. Master Password feature works and is encrypted in admin. But the IP filter does not work. I entered my OLD IP in admin but still able to use master password within the catalog to log into anyones account.
Possible issue with /includes/functions/password_funcs.php
Code:
// BOF master_password
$ip_allow = true;
if(MASTER_PASSWORD_IP != "") {
$master_password_ip = explode(",", str_replace(array(";", " ", ",,"), ",", MASTER_PASSWORD_IP));
$ip_allow = false;
for($i=0,$n=sizeof($master_password_ip);$i<$n;$i++){
if(strpos($_SERVER["REMOTE_ADDR"], $master_password_ip[$i]) == 0) {
$ip_allow = true;
break;
}
}
}
I'm not pretending the IP filtering is providing a huge dose of extra security. But nevertheless the IP filtering would be a nice feature to have working. Especially when managing and/or troubleshooting the shop from different remote locations all the time.
Woody