Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • PHP
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cUpgradeJob_0001
  • cUpgradeJob_0002
  • cUpgradeJob_0003
  • cUpgradeJob_0004
  • cUpgradeJob_0005
  • cUpgradeJob_0006
  • cUpgradeJob_0007
  • cUpgradeJob_0008
  • cUpgradeJob_0009
  • cUpgradeJob_0010
  • cUpgradeJob_0011
  • cUpgradeJob_0012
  • cUpgradeJob_0013
  • cUpgradeJob_0014
  • cUpgradeJob_0015
  • cUpgradeJob_0016
  • cUpgradeJob_0017
  • cUpgradeJob_0018
  • cUpgradeJobAbstract
  • cUpgradeJobMain
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: /**
 3:  * This file contains the upgrade job 18.
 4:  *
 5:  * @package Setup
 6:  * @subpackage UpgradeJob
 7:  * @author Frederic Schneider
 8:  * @copyright four for business AG <www.4fb.de>
 9:  * @license http://www.contenido.org/license/LIZENZ.txt
10:  * @link http://www.4fb.de
11:  * @link http://www.contenido.org
12:  */
13: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
14: 
15: /**
16:  * Upgrade job 18
17:  * Add system settings for stats_tracking
18:  * CON-2718
19:  *
20:  * @package Setup
21:  * @subpackage UpgradeJob
22:  */
23: class cUpgradeJob_0018 extends cUpgradeJobAbstract {
24: 
25:     public $maxVersion = "4.9.12";
26: 
27:     public function _execute() {
28:         global $db;
29: 
30:         $cfg = cRegistry::getConfig();
31: 
32:         if ($_SESSION['setuptype'] == 'upgrade') {
33: 
34:             // Delete old statistic client configurations
35:             $sql = "DELETE FROM " . $cfg['tab']['properties'] . " WHERE type = 'stats' AND name = 'tracking'";
36:             $db->query($sql);
37:         }
38: 
39:         // Create a system configuration and turn the statistic off (default)
40:         $systemProp = new cApiSystemPropertyCollection();
41:         $systemProp->create('stats', 'tracking', 'disabled');
42:     }
43: 
44: }
45: 
CMS CONTENIDO 4.10.0 API documentation generated by ApiGen 2.8.0