It looks like 1.1.5 broke the most recent xp_publish.php.. it used:
$albumlist = array();
genAlbumList($albumlist);
which looks like it's been deprecated by:
$albumlist = getManagedAlbumList();
Unfortunately, that function doesn't just work, because you don't have a $_zp_current_admin['id'] from the way xp_publish.php currently handles authentication (old-school style):
function process_login() {
if (isset($_POST['user']) && isset($_POST['pass'])) {
$user = $_POST['user'];
$pass = $_POST['pass'];
$check_auth = md5($user . $pass);
if ($user == getOption('adminuser') && $check_auth == getOption("adminpass")) {
setcookie("zenphoto_wizard", md5($user . $check_auth), time()+5184000, $cookiepath);
$_zp_loggedin = true;
} else {
setcookie("zenphoto_wizard", "", time()-368000, $cookiepath);
}
}
if ($_zp_loggedin) {
$this->form_album();
} else {
$this->form_login('The username or password you entered are not correct');
}
}
Now it looks like it has to do something more along the lines of?
foreach (getAdministrators() as $user) {
if ($user['user'] == $user && $user['pass'] == $pass) {
$_zp_current_admin = $user;
setcookie("zenphoto_wizard", md5($user . $check_auth), time()+5184000, $cookiepath);
$_zp_loggedin = true;
$this->form_album();
break;
}
}
if (!$_zp_loggedin) {
setcookie("zenphoto_wizard", "", time()-368000, $cookiepath);
$this->form_login('The username or password you entered are not correct');
}
But that's not working for me either, I think because getAdministrators() isn't returning anything? At this point it's getting a little too involved for me!
Do you think somebody could check it out and make the necessary fixes to the xp_publish.php authentication?
Also, what to people think about just including xp_publish.php as part of the standard distribution, and then there could be a link to it on the upload tab even as an alternate method?
P.S. there's also another bug at the end of xp_publish.php as far as I can tell; believe it or not:
\CurrentVersion\Explorer\PublishingWizard\Providers
should actually be:
\CurrentVersion\Explorer\PublishingWizard\PublishingWizard\Providers
!