1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
13:
14: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
15:
16: 17: 18: 19: 20: 21:
22: class cUpgradeJob_0001 extends cUpgradeJobAbstract {
23:
24: public $maxVersion = "0";
25:
26: public function _execute() {
27: global $cfg, $cfgClient;
28: if ($this->_setupType == 'setup') {
29: switch ($_SESSION['clientmode']) {
30: case 'CLIENTMODULES':
31: case 'CLIENTEXAMPLES':
32: updateClientPath($this->_oDb, $cfg['tab']['clients'], 1, self::$_rootPath . '/cms/', self::$_rootHttpPath . '/cms/');
33: break;
34: default:
35: break;
36: }
37: }
38: if (false === cFileHandler::exists($cfg['path']['contenido_config'] . 'config.clients.php')) {
39: updateClientPath($this->_oDb, $cfg['tab']['clients'], 0, self::$_rootPath . '/cms/', self::$_rootHttpPath . '/cms/');
40: }
41: }
42:
43: }
44: