Skip to content
Snippets Groups Projects
Commit 1f4663e5 authored by Peter Rotich's avatar Peter Rotich
Browse files

global variables conflict fix

parent 76ec7ece
No related branches found
No related tags found
No related merge requests found
<?php
if(!defined('SETUPINC')) die('Kwaheri!');
$msg = $_SESSION['_upgrader']['msg'];
$msg = $_SESSION['ost_upgrader']['msg'];
?>
<div id="main">
<h1>Attachments Migration</h1>
......
......@@ -29,11 +29,11 @@ $wizard['menu']=array('Installation Guide'=>'http://osticket.com/wiki/Installati
if($_POST && $_POST['s']) {
$errors = array();
$_SESSION['_installer']['s']=$_POST['s'];
$_SESSION['ost_installer']['s']=$_POST['s'];
switch(strtolower($_POST['s'])) {
case 'prereq':
if($installer->check_prereq())
$_SESSION['_installer']['s']='config';
$_SESSION['ost_installer']['s']='config';
else
$errors['prereq']='Minimum requirements not met!';
break;
......@@ -43,7 +43,7 @@ if($_POST && $_POST['s']) {
elseif(!$installer->config_writable())
$errors['err']='Write access required to continue';
else
$_SESSION['_installer']['s']='install';
$_SESSION['ost_installer']['s']='install';
break;
case 'install':
if($installer->install($_POST)) {
......@@ -51,7 +51,7 @@ if($_POST && $_POST['s']) {
'email' =>$_POST['admin_email'],
'URL'=>URL);
//TODO: Go to subscribe step.
$_SESSION['_installer']['s']='done';
$_SESSION['ost_installer']['s']='done';
} elseif(!($errors=$installer->getErrors()) || !$errors['err']) {
$errors['err']='Error installing osTicket - correct the errors below and try again.';
}
......@@ -69,16 +69,16 @@ if($_POST && $_POST['s']) {
$errors['notify'] = 'Check one or more';
if(!$errors)
$_SESSION['_installer']['s'] = 'done';
$_SESSION['ost_installer']['s'] = 'done';
break;
}
}elseif($_GET['s'] && $_GET['s']=='ns' && $_SESSION['_installer']['s']=='subscribe') {
$_SESSION['_installer']['s']='done';
}elseif($_GET['s'] && $_GET['s']=='ns' && $_SESSION['ost_installer']['s']=='subscribe') {
$_SESSION['ost_installer']['s']='done';
}
switch(strtolower($_SESSION['_installer']['s'])) {
switch(strtolower($_SESSION['ost_installer']['s'])) {
case 'config':
case 'install':
if(!$installer->config_exists()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment