1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14:
15:
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17:
18: 19: 20: 21: 22: 23:
24: class cUpgradeJob_0001 extends cUpgradeJobAbstract {
25:
26: public $maxVersion = "0";
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: if (false === cFileHandler::exists($cfg['path']['contenido_config'] . 'config.clients.php')) {
41: updateClientPath($this->_oDb, $cfg['tab']['clients'], 0, self::$_rootPath . '/cms/', self::$_rootHttpPath . '/cms/');
42: }
43: }
44:
45: }
46: