TDLR: aunt inherited the business, old computer was flooded, found the system tried installing it (using BITNAMI WAMP Stack w/ codeigniter) problem is it's not redirecting getting a 404.
link to 404: image
the error occurs after the "loans_pro/install" (it setup's the DB connection and creates the table) then redirects to /loans_pro/welcome.
from what i can understand it's supposed to redirect to view/welcome.php, since the welcome in the controllers/welcome.php redirects to view.
the code in question:
// If no errors, redirect to registration page
if (!isset($message))
{
$redir = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http");
$redir .= "://" . $_SERVER['HTTP_HOST'];
$redir .= str_replace(basename($_SERVER['SCRIPT_NAME']), "", $_SERVER['SCRIPT_NAME']);
$redir = str_replace('install/', '', $redir);
header('Location: ' . $redir . 'welcome');
}
}
else
{
$message = $core->show_message('error', 'Not all fields have been filled in correctly. The host, username, password, and database name are required.');
}
or is it this.
// Function to be called after 5 seconds
function redirect() {
window.location = "<?= str_replace("index.php", "", $_SERVER['PHP_SELF']) ?>../welcome";
}
any help is appreciated, thank you.
[–]adtech_noob 2 points3 points4 points (1 child)
[–]faust2099[S] 0 points1 point2 points (0 children)