Location: PHPKode > projects > Exero CMS > upload/install/upgrade2.php
<?
/*========================================*\
| Exero CMS                                |
|==========================================|
|          http://ecms.getox.net           |
|https://sourceforge.net/projects/exerocms/|
|==========================================|
|     Exero CMS is released under the      |
|     GNU General Public License (GPL)     |
| opensource.org/licenses/gpl-license.php  |
\*========================================*/
// Include required files
require("core.php");
require("resource/upgradecore.php");

$upgradeinfo['appver'] = "1.0.1.1";
$upgradeinfo['steps'] = "1";

if(empty($_POST['step'])) {
	print_header('',$upgradeinfo['appver']);
	print_form_header($_SERVER['PHP_SELF'],"POST");
	print_form_hiddenfield("step","1");

	print_table_header("Welcome","2");
	print_table_row("This script will upgrade your Exero CMS installation to version ".$upgradeinfo['appver'].", Please backup your database then click Next.");
	print_table_footer();

	print_stepinfo("0","Next","",1);

	print_form_footer();
	print_footer();
} else if($_POST['step'] == "1") {
	print_header('',$upgradeinfo['appver']);
	print_form_header('upgrade.php',"POST");
	
	$query[] = "UPDATE items SET itemfile='link_module', info='rooturl' WHERE id='5' LIMIT 1";
	$query[] = "UPDATE items SET itemfile='link_module', info='admin' WHERE id='6' LIMIT 1";
	$query[] = "UPDATE settings SET value='1.0.1.1' WHERE setting='appver' LIMIT 1";
	
	foreach($query as $query) {
		$db->query($query);
	}
		
	print_table_header("Changes Complete","2");
	print_table_row("Database changes made.");
	print_table_footer();
	
	print_stepinfo("0","Next","",1);
	
	print_form_footer();
	print_footer();
}
?>
Return current item: Exero CMS