Hi, me again. Just had a quick update/bump and was hoping someone could help me out, as i don't know any php.
In the single_login.php file (http://fotka.com.au/zenphoto/single_login.php) the code is redirecting the user to the /setup.php page instead of displaying the login form.
Does anyone know if there is anything I can change in the php in the single_login file so that it doesn't re-direct but displays the login form instead?
<?php
if (!defined('ZENFOLDER')) { define('ZENFOLDER', 'zp-core'); }
if (!file_exists(dirname(__FILE__) . '/' . ZENFOLDER . "/zp-config.php")) {
$location = "http://". $_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']) .
"/" . ZENFOLDER . "/setup.php";
header("Location: $location" );
}
define('OFFSET_PATH', 0);
require_once(ZENFOLDER . "/template-functions.php");
require_once(SERVERPATH . "/" . ZENFOLDER . PLUGIN_FOLDER . 'user_logout.php');
if (!is_null($_zp_current_admin)) {
if ($_zp_loggedin & ADMIN_RIGHTS) {
header("Location: " . WEBPATH . "/");
} else {
$albums = getManagedAlbumList();
$album = array_shift($albums);
header("Location: " . WEBPATH . "/".$album.'/');
}
}
header ('Content-Type: text/html; charset=' . getOption('charset'));
?>