http://www.fsf.org/ or write * to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * MA 02111-1307, USA. * */ /* This is the cmsdam main core, the kernel of the CMS. Here are all the classes people can use to make DB queries, querying users, using log, debug, and so on. For developers: you must add here core class instances and set some class variables if needed */ class cmsdam { // CMSDAM MAIN SUPERCLASS // cmsdam core classes instances var $admin; // Administration class var $general; // General purpose class var $users; // User handling class var $groups; // Groups handling class var $http; // HTTP headers class var $logs; // Logging mechanism class var $paginator; // Array paginator class var $search; // Search engine class var $sections; // Site sections class var $templates; // Templates class var $mails; // Email related class var $conf; // Site configuration class var $dbms; // DBMS functions superclass var $ldap; // LDAP functions class var $debug; // Debug functions class var $plugins; // Plugins functions class var $i18n; // Internationalization class var $memcache; // Memcached variables cache interface class var $errors; // Error handling class var $filecontainer; // File Container class var $dbcontainer; // DB Container class var $publish; // Publishing Framework class var $presentation; // Presentation Structure class var $forms; // Forms class } // Include cmsdam classes, someone dislikes using one class for more purposes!! require_once ("cmsdam_admin.php"); require_once ("cmsdam_general.php"); require_once ("cmsdam_groups.php"); require_once ("cmsdam_http.php"); require_once ("cmsdam_logs.php"); require_once ("cmsdam_mails.php"); require_once ("cmsdam_mysqldbms.php"); require_once ("cmsdam_paginator.php"); require_once ("cmsdam_postgresqldbms.php"); require_once ("cmsdam_search.php"); require_once ("cmsdam_sections.php"); require_once ("cmsdam_templates.php"); require_once ("cmsdam_users.php"); require_once ("cmsdam_conf.php"); require_once ("cmsdam_ldap.php"); require_once ("cmsdam_debug.php"); require_once ("cmsdam_plugins.php"); require_once ("cmsdam_i18n.php"); require_once ("cmsdam_memcache.php"); require_once ("cmsdam_errors.php"); require_once ("cmsdam_filecontainer.php"); require_once ("cmsdam_dbcontainer.php"); require_once ("cmsdam_publish.php"); require_once ("cmsdam_presentation.php"); require_once ("cmsdam_forms.php"); // Main cmsdam class instance $cms = new cmsdam; $cms->admin = new cmsdam_admin; $cms->general = new cmsdam_general; $cms->groups = new cmsdam_groups; $cms->users = new cmsdam_users; $cms->http = new cmsdam_http; $cms->logs = new cmsdam_logs; $cms->paginator = new cmsdam_paginator; $cms->search = new cmsdam_search; $cms->mails = new cmsdam_mails; $cms->sections = new cmsdam_sections; $cms->templates = new cmsdam_templates; $cms->conf = new cmsdam_conf; $cms->ldap = new cmsdam_ldap; $cms->debug = new cmsdam_debug; $cms->plugins = new cmsdam_plugins; $cms->i18n = new cmsdam_i18n; $cms->memcache = new cmsdam_memcache; $cms->errors = new cmsdam_errors; $cms->filecontainer = new cmsdam_filecontainer; $cms->dbcontainer = new cmsdam_dbcontainer; $cms->publish = new cmsdam_publish; $cms->presentation = new cmsdam_presentation; $cms->forms = new cmsdam_forms; // $DB_type is defined in the configuration file etc/config.php switch ($cms->conf->DB_type) { case "mysql": $cms->dbms = &new cmsdam_mysqldbms; break; case "postgres": $cms->dbms = &new cmsdam_postgresqldbms; break; default: $cms->dbms = &new cmsdam_mysqldbms; break; } // This prepares the dbms instances $cms->dbms->DB_servername = &$cms->conf->DB_servername; $cms->dbms->DB_name = &$cms->conf->DB_name; $cms->dbms->DB_username = &$cms->conf->DB_username; $cms->dbms->DB_password = &$cms->conf->DB_password; $cms->dbms->DB_tbl_prefix = &$cms->conf->DB_tbl_prefix; // This is to instanciate subclasses $cms->dbms->i18n = &$cms->i18n; $cms->dbms->logs = &$cms->logs; $cms->dbms->conf = &$cms->conf; $cms->dbms->debug = &$cms->debug; $cms->search->i18n = &$cms->i18n; $cms->search->conf = &$cms->conf; $cms->search->sections = &$cms->sections; $cms->search->users = &$cms->users; $cms->search->groups = &$cms->groups; $cms->users->i18n = &$cms->i18n; $cms->users->logs = &$cms->logs; $cms->users->sections = &$cms->sections; $cms->users->ldap = &$cms->ldap; $cms->users->dbms = &$cms->dbms; $cms->users->debug = &$cms->debug; $cms->users->plugins = &$cms->plugins; $cms->users->memcache = &$cms->memcache; $cms->groups->i18n = &$cms->i18n; $cms->groups->dbms = &$cms->dbms; $cms->groups->users = &$cms->users; $cms->groups->ldap = &$cms->ldap; $cms->groups->logs = &$cms->logs; $cms->groups->debug = &$cms->debug; $cms->sections->i18n = &$cms->i18n; $cms->sections->users = &$cms->users; $cms->sections->dbms = &$cms->dbms; $cms->sections->http = &$cms->http; $cms->sections->conf = &$cms->conf; //$cms->sections->templates = &$cms->templates; $cms->sections->logs = &$cms->logs; $cms->sections->debug = &$cms->debug; $cms->sections->groups = &$cms->groups; $cms->sections->memcache = &$cms->memcache; $cms->sections->general = &$cms->general; $cms->templates->sections = &$cms->sections; $cms->templates->i18n = &$cms->i18n; $cms->templates->users = &$cms->users; $cms->templates->dbms = &$cms->dbms; $cms->templates->http = &$cms->http; $cms->templates->conf = &$cms->conf; $cms->templates->logs = &$cms->logs; $cms->templates->debug = &$cms->debug; $cms->templates->groups = &$cms->groups; $cms->templates->general = &$cms->general; $cms->logs->i18n = &$cms->i18n; $cms->logs->conf = &$cms->conf; $cms->logs->http = &$cms->http; $cms->logs->debug = &$cms->debug; $cms->mails->i18n = &$cms->i18n; $cms->mails->conf = &$cms->conf; $cms->mails->http = &$cms->http; $cms->mails->users = &$cms->users; $cms->mails->debug = &$cms->debug; $cms->mails->logs = &$cms->logs; $cms->http->i18n = &$cms->i18n; $cms->http->conf = &$cms->conf; $cms->ldap->i18n = &$cms->i18n; $cms->ldap->conf = &$cms->conf; $cms->ldap->logs = &$cms->logs; $cms->ldap->debug = &$cms->debug; $cms->ldap->errors = &$cms->errors; $cms->debug->i18n = &$cms->i18n; $cms->debug->conf = &$cms->conf; $cms->admin->i18n = &$cms->i18n; $cms->admin->conf = &$cms->conf; $cms->admin->dbms = &$cms->dbms; $cms->admin->logs = &$cms->logs; $cms->admin->debug = &$cms->debug; $cms->admin->users = &$cms->users; $cms->plugins->i18n = &$cms->i18n; $cms->plugins->conf = &$cms->conf; $cms->plugins->logs = &$cms->logs; $cms->i18n->logs = &$cms->logs; $cms->i18n->http = &$cms->http; $cms->i18n->conf = &$cms->conf; $cms->i18n->sections = &$cms->sections; $cms->i18n->plugins = &$cms->plugins; $cms->general->i18n = &$cms->i18n; $cms->general->conf = &$cms->conf; $cms->general->logs = &$cms->logs; $cms->general->sections = &$cms->sections; $cms->memcache->conf = &$cms->conf; $cms->memcache->logs = &$cms->logs; $cms->memcache->debug = &$cms->debug; $cms->errors->conf = &$cms->conf; $cms->errors->logs = &$cms->logs; $cms->filecontainer->conf = &$cms->conf; $cms->filecontainer->logs = &$cms->logs; $cms->filecontainer->i18n = &$cms->i18n; $cms->filecontainer->users = &$cms->users; $cms->dbcontainer->dbms = &$cms->dbms; $cms->dbcontainer->conf = &$cms->conf; $cms->dbcontainer->logs = &$cms->logs; $cms->dbcontainer->debug = &$cms->debug; $cms->dbcontainer->i18n = &$cms->i18n; $cms->dbcontainer->users = &$cms->users; $cms->publish->conf = &$cms->conf; $cms->publish->logs = &$cms->logs; $cms->publish->debug = &$cms->debug; $cms->publish->users = &$cms->users; $cms->publish->groups = &$cms->groups; $cms->publish->sections = &$cms->sections; $cms->publish->dbms = &$cms->dbms; // This is to prepare the other instances (aliases) $cms->http->http_maxage = &$cms->conf->HTTP_maxage; $cms->http->http_charset = &$cms->conf->HTTP_charset; $cms->http->http_contenttype = &$cms->conf->HTTP_contenttype; ?>