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
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Swift_FailoverTransport
  • Swift_LoadBalancedTransport
  • Swift_MailTransport
  • Swift_Plugins_Loggers_ArrayLogger
  • Swift_Plugins_Loggers_EchoLogger
  • Swift_SendmailTransport
  • Swift_SmtpTransport
  • Swift_Transport_AbstractSmtpTransport
  • Swift_Transport_Esmtp_Auth_CramMd5Authenticator
  • Swift_Transport_Esmtp_Auth_LoginAuthenticator
  • Swift_Transport_Esmtp_Auth_PlainAuthenticator
  • Swift_Transport_Esmtp_AuthHandler
  • Swift_Transport_EsmtpTransport
  • Swift_Transport_FailoverTransport
  • Swift_Transport_LoadBalancedTransport
  • Swift_Transport_MailTransport
  • Swift_Transport_SendmailTransport
  • Swift_Transport_SimpleMailInvoker
  • Swift_Transport_StreamBuffer

Interfaces

  • Swift_Plugins_Logger
  • Swift_Plugins_Pop_Pop3Exception
  • Swift_Transport
  • Swift_Transport_Esmtp_Authenticator
  • Swift_Transport_EsmtpHandler
  • Swift_Transport_IoBuffer
  • Swift_Transport_MailInvoker
  • Swift_Transport_SmtpAgent
  • Swift_TransportException
  • Overview
  • Package
  • Function
  • Todo
  • Download
 1: <?php
 2: /**
 3:  * This file contains the upgrade job 9.
 4:  *
 5:  * @package Setup
 6:  * @subpackage UpgradeJob
 7:  * @version SVN Revision $Rev:$
 8:  *
 9:  * @author Mischa Holz
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: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
16: 
17: /**
18:  * Upgrade job 9.
19:  * Copy the example client to cms folder if needed
20:  *
21:  * @package Setup
22:  * @subpackage UpgradeJob
23:  */
24: class cUpgradeJob_0009 extends cUpgradeJobAbstract {
25: 
26:     public $maxVersion = "4.9.0";
27: 
28:     public function _execute() {
29:         if ($this->_setupType !== 'setup') {
30:             return;
31:         }
32: 
33:         switch ($_SESSION["clientmode"]) {
34:             case "NOCLIENT":
35:                 break;
36:             case "CLIENTEXAMPLES":
37:                 // copy the styles folder to the cms folder for the example client
38:                 if (cFileHandler::exists($this->_aCfgClient[1]["path"]["frontend"] . "css")) {
39:                     cDirHandler::recursiveRmdir($this->_aCfgClient[1]["path"]["frontend"] . "css");
40:                     cDirHandler::create($this->_aCfgClient[1]["path"]["frontend"] . "css");
41:                 }
42:                 cDirHandler::recursiveCopy("data/examples/css", $this->_aCfgClient[1]["path"]["frontend"] . "css");
43: 
44:                 // copy the images folder to the cms folder for the example client
45:                 if (cFileHandler::exists($this->_aCfgClient[1]["path"]["frontend"] . "images")) {
46:                     cDirHandler::recursiveRmdir($this->_aCfgClient[1]["path"]["frontend"] . "images");
47:                     cDirHandler::create($this->_aCfgClient[1]["path"]["frontend"] . "images");
48:                 }
49:                 cDirHandler::recursiveCopy("data/examples/images", $this->_aCfgClient[1]["path"]["frontend"] . "images");
50: 
51:                 // copy the includes folder to the cms folder for the example client
52:                 if (cFileHandler::exists($this->_aCfgClient[1]["path"]["frontend"] . "includes")) {
53:                     cDirHandler::recursiveRmdir($this->_aCfgClient[1]["path"]["frontend"] . "includes");
54:                     cDirHandler::create($this->_aCfgClient[1]["path"]["frontend"] . "includes");
55:                 }
56:                 cDirHandler::recursiveCopy("data/examples/includes", $this->_aCfgClient[1]["path"]["frontend"] . "includes");
57: 
58:                 // copy the scripts folder to the cms folder for the example client
59:                 if (cFileHandler::exists($this->_aCfgClient[1]["path"]["frontend"] . "js")) {
60:                     cDirHandler::recursiveRmdir($this->_aCfgClient[1]["path"]["frontend"] . "js");
61:                     cDirHandler::create($this->_aCfgClient[1]["path"]["frontend"] . "js");
62:                 }
63:                 cDirHandler::recursiveCopy("data/examples/js", $this->_aCfgClient[1]["path"]["frontend"] . "js");
64: 
65:                 // copy the template folder to the cms folder for the example client
66:                 if (cFileHandler::exists($this->_aCfgClient[1]["path"]["frontend"] . "templates")) {
67:                     cDirHandler::recursiveRmdir($this->_aCfgClient[1]["path"]["frontend"] . "templates");
68:                     cDirHandler::create($this->_aCfgClient[1]["path"]["frontend"] . "templates");
69:                 }
70:                 cDirHandler::recursiveCopy("data/examples/templates", $this->_aCfgClient[1]["path"]["frontend"] . "templates");
71: 
72:                 // copy the upload folder to the cms folder for the example client
73:                 if (cFileHandler::exists($this->_aCfgClient[1]["path"]["frontend"] . "upload")) {
74:                     cDirHandler::recursiveRmdir($this->_aCfgClient[1]["path"]["frontend"] . "upload");
75:                     cDirHandler::create($this->_aCfgClient[1]["path"]["frontend"] . "upload");
76:                 }
77:                 cDirHandler::recursiveCopy("data/examples/upload", $this->_aCfgClient[1]["path"]["frontend"] . "upload");
78: 
79:                 // copy the layout folder to the cms folder for the example client
80:                 if (cFileHandler::exists($this->_aCfgClient[1]["path"]["frontend"] . "data/layouts")) {
81:                     cDirHandler::recursiveRmdir($this->_aCfgClient[1]["path"]["frontend"] . "data/layouts");
82:                     cDirHandler::create($this->_aCfgClient[1]["path"]["frontend"] . "data/layouts");
83:                 }
84:                 cDirHandler::recursiveCopy("data/examples/data/layouts", $this->_aCfgClient[1]["path"]["frontend"] . "data/layouts");
85:             case "CLIENTMODULES":
86:                 // copy the module folder to the cms folder for the example client
87:                 if (cFileHandler::exists($this->_aCfgClient[1]["path"]["frontend"] . "data/modules")) {
88:                     cDirHandler::recursiveRmdir($this->_aCfgClient[1]["path"]["frontend"] . "data/modules");
89:                     cDirHandler::create($this->_aCfgClient[1]["path"]["frontend"] . "data/modules", 0777);
90:                 }
91:                 cDirHandler::recursiveCopy("data/examples/data/modules", $this->_aCfgClient[1]["path"]["frontend"] . "data/modules");
92:         }
93:     }
94: 
95: }
96: 
97: ?>
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen