Project

General

Profile

1
<?php
2
/**
3
 *
4
 * @category        modules
5
 * @package         output_filter
6
 * @author          Christian Sommer, WB-Project, Werner v.d. Decken
7
 * @copyright       2009-2011, Website Baker Org. e.V.
8
 * @link			http://www.websitebaker2.org/
9
 * @license         http://www.gnu.org/licenses/gpl.html
10
 * @platform        WebsiteBaker 2.8.2
11
 * @requirements    PHP 5.2.2 and higher
12
 * @version         $Id: upgrade.php 1520 2011-11-09 00:12:37Z darkviper $
13
 * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/modules/output_filter/upgrade.php $
14
 * @lastmodified    $Date: 2011-11-09 01:12:37 +0100 (Wed, 09 Nov 2011) $
15
 *
16
 */
17
/* -------------------------------------------------------- */
18
// Must include code to stop this file being accessed directly
19
require_once( dirname(dirname(dirname(__FILE__))).'/framework/globalExceptionHandler.php');
20
if(!defined('WB_PATH')) { throw new IllegalFileException(); }
21
/* -------------------------------------------------------- */
22
global $i;
23
$table_name = TABLE_PREFIX .'mod_output_filter';
24
$field_name = 'sys_rel';
25
$i = (!isset($i) ? 1 : $i);
26
print "<div style=\"margin:1em auto;font-size:1.1em;\">";
27
print "<h4>Step $i: Updating Output Filter</h4>\n";
28
$i++;
29
$OK   = "<span class=\"ok\">OK</span>";
30
$FAIL = "<span class=\"error\">FAILED</span>";
31
if ( ($database->field_exists($table_name,$field_name) )) {
32
		print "<br /><strong>'Output Filter already updated'</strong> $OK<br />\n";
33
} else {
34
	$description = 'INT NOT NULL DEFAULT \'0\' FIRST';
35
	if( ($database->field_add($table_name,$field_name,$description )) ) {
36
		print "<br /><strong>Updating Output Filter</strong> $OK<br />\n";
37
	} else {
38
			print "<br /><strong>Updating Output Filter</strong> $FAIL<br />\n";
39
	}
40
}
41
print "</div>";
(8-8/8)