// All rights reserved. This script is part of PHPWCMS. The PHPWCMS web content management system is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html A copy is found in the textfile GPL.txt and important notices to the license from the author is found in LICENSE.txt distributed with these scripts. This script is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. This copyright notice MUST APPEAR in all copies of the script! *************************************************************************************/ $phpwcms = array(); $_this_path = realpath(dirname(__FILE__).'/../'); if(is_file($_this_path.'/config/phpwcms/conf.inc.php')) { require_once ($_this_path.'/config/phpwcms/conf.inc.php'); } else { die('Please proof location of "conf.inc.php".'); } if (!defined('PHPWCMS_INCLUDE_CHECK')) { define('PHPWCMS_INCLUDE_CHECK', true); } require_once ($_this_path.'/include/inc_lib/default.inc.php'); require_once (PHPWCMS_ROOT.'/include/inc_lib/dbcon.inc.php'); require_once (PHPWCMS_ROOT.'/include/inc_lib/general.inc.php'); require_once (PHPWCMS_ROOT.'/include/inc_lib/backend.functions.inc.php'); require_once (PHPWCMS_ROOT.'/setup/inc/upgrade.func.inc.php'); ?> Upgrade phpwcms
[beliebiger Wert]
phpwcms
 system: 
server: 
php:  v
mysql:  (is just client information, server might be different)
path: 
php.ini:  security risks'; } else { echo 'register_globals = Off -> that\'s good :)'; } ?>
  security risks'; } ?>
  GD =

ATTENTION! Before you start updating — backup all phpwcms files AND all databases. Sometimes it might be better you merge SQL files manually. Don't forget to make copies of CSS files, templates, images, settings and custom scripts.

When upgrading from releases older than 1.1.9:

There are some deeper changes. After upgrading db frame the following
files needs to be processed.
1) UPGRADE FILESTORAGE (all files will be moved and renamed)
2) UPGRADE ARTICLE CONTENT IMAGE
3) UPGRADE ARTICLE CONTENT IMAGELIST
4) UPGRADE ARTICLE SUMMARY IMAGE

When upgrading from releases older than 1.2.9:

5) UPGRADE PAGELAYOUT

When upgrading from releases older than 1.3.1:

6) UPGRADE CONTENT PART MULTIMEDIA

7) UPDATE ARTICLE ALIAS

Update old default article end date 2010-12-31, 23:59:59:

8) SET ARTICLE END 2010-12-31, 23:59:59 plus 20 YEARS

'; echo '

Chosse another SQL file...

'; echo '
';

	foreach($sql as $key => $value) {
		$value = trim($value);
		if(!$value) {
			unset($sql[$key]);
		} else {
		
			if($phpwcms['db_version'] > 40100 && $phpwcms['db_charset']=='utf8') {
				$value = utf8_encode($value);
			}
		
			if(!mysql_query($value)) echo 'ERROR: '.html_entities(@mysql_error())." -> ";
			echo html_specialchars($value).";\n";
		}
	}
	
	echo '
'; } else { ?>

Please proof! Upgrade script will use following data:

MySQL basics: Before you continue proof the following config settings:
$phpwcms['db_charset']
$phpwcms['db_collation']
$phpwcms['db_version']
If you are not sure how to handle this
try to start setup process!
But STOP SETUP BEFORE SQL IMPORT!!!
MySQL host:
Database:
DB user:
DB table prefix:  
 select SQL file:

SQL queries to be processed: