1: <?php
2: /**
3: * This file contains the upgrade job 1.
4: *
5: * @package Setup
6: * @subpackage UpgradeJob
7: * @version SVN Revision $Rev:$
8: *
9: * @author Murat Purc <murat@purc>
10: * @copyright four for business AG <www.4fb.de>
11: * @license http://www.contenido.org/license/LIZENZ.txt
12: * @link http://www.4fb.de
13: * @link http://www.contenido.org
14: */
15:
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17:
18: /**
19: * Upgrade job 1.
20: *
21: * @package Setup
22: * @subpackage UpgradeJob
23: */
24: class cUpgradeJob_0001 extends cUpgradeJobAbstract {
25:
26: public $maxVersion = "0"; //this will be executed every time
27:
28: public function _execute() {
29: global $cfg, $cfgClient;
30: if ($this->_setupType == 'setup') {
31: switch ($_SESSION['clientmode']) {
32: case 'CLIENTMODULES':
33: case 'CLIENTEXAMPLES':
34: updateClientPath($this->_oDb, $cfg['tab']['clients'], 1, self::$_rootPath . '/cms/', self::$_rootHttpPath . '/cms/');
35: break;
36: default:
37: break;
38: }
39: }
40: }
41:
42: }
43: