public function __construct() { // Construct any possible parent; parent::__construct(); // Do the tie ... $this->tieInCommonConfiguration(); // Set some configuration defaults, taking them from the config file; self::$objContactTable = $this->getConfigKey(new S('contact_table_message')); self::$objContactTableFId = $this->getConfigKey(new S('contact_table_message_field_id')); self::$objContactTableFMessage = $this->getConfigKey(new S('contact_table_message_content')); self::$objContactTableFSubjectId = $this->getConfigKey(new S('contact_table_message_subject_id')); self::$objContactTableFEMAIL = $this->getConfigKey(new S('contact_table_message_email')); self::$objContactTableFResolved = $this->getConfigKey(new S('contact_table_message_resolved')); self::$objContactTableFComment = $this->getConfigKey(new S('contact_table_message_comment')); self::$objContactTableFReceived = $this->getConfigKey(new S('contact_table_message_received')); self::$objContactTableFLastEdited = $this->getConfigKey(new S('contact_table_message_last_edited')); // Subjects .. self::$objContactSubjectTable = $this->getConfigKey(new S('contact_table_subject')); self::$objContactSubjectFId = $this->getConfigKey(new S('contact_table_subject_field_id')); self::$objContactSubjectFTitle = $this->getConfigKey(new S('contact_table_subject_title')); // DB: Auto-CREATE: $objQueryDB = new FileContent($this->getPathToModule()->toRelativePath() . _S . CFG_DIR . _S . __CLASS__ . SCH_EXTENSION); // Make a FOREACH on each ... foreach (_S($objQueryDB->toString())->fromStringToArray(RA_SCHEMA_HASH_TAG) as $k => $v) { // Make'em ... $this->_Q(_S($v)); } // Load'em defaults ... ATH, STG and others ... $this->ATH = MOD::activateModule(new FilePath('mod/authentication'), new B(TRUE)); $this->STG = MOD::activateModule(new FilePath('mod/settings'), new B(TRUE)); }
public function __construct() { // Construct any possible parent; parent::__construct(); // Do the tie ... $this->tieInCommonConfiguration(); // Set the proper configuration options, from the config file; self::$objLyricsTable = $this->getConfigKey(new S('lyrics_table')); self::$objLyricsTableFId = $this->getConfigKey(new S('lyrics_table_field_id')); self::$objLyricsTableFSEO = $this->getConfigKey(new S('lyrics_table_field_seo')); self::$objLyricsTableFTitle = $this->getConfigKey(new S('lyrics_table_field_title')); self::$objLyricsTableFArtist = $this->getConfigKey(new S('lyrics_table_field_artist')); self::$objLyricsTableFAlbum = $this->getConfigKey(new S('lyrics_table_field_album')); self::$objLyricsTableFLyrics = $this->getConfigKey(new S('lyrics_table_field_lyrics')); self::$objLyricsTableFDateAdded = $this->getConfigKey(new S('lyrics_table_field_date_added')); self::$objItemsPerPage = new S('10'); // Load'em defaults ... ATH, STG and others ... $this->ATH = MOD::activateModule(new FilePath('mod/authentication'), new B(TRUE)); $this->STG = MOD::activateModule(new FilePath('mod/settings'), new B(TRUE)); // DB: Auto-CREATE: $objQueryDB = new FileContent($this->getPathToModule()->toRelativePath() . _S . CFG_DIR . _S . __CLASS__ . SCH_EXTENSION); // Make a FOREACH on each ... foreach (_S($objQueryDB->toString())->fromStringToArray(RA_SCHEMA_HASH_TAG) as $k => $v) { // Make'em ... $this->_Q(_S($v)); } }
public function __construct() { // Construct any possible parent; parent::__construct(); // Do the tie ... $this->tieInCommonConfiguration(); // Set the proper configuration options, from the config file; self::$objLetterTable = $this->getConfigKey(new S('newsletter_table')); self::$objLetterTableFId = $this->getConfigKey(new S('newsletter_table_field_id')); self::$objLetterTableFEML = $this->getConfigKey(new S('newsletter_table_field_email')); self::$objLetterTableFFirstName = $this->getConfigKey(new S('newsletter_table_field_first_name')); self::$objLetterTableFLastName = $this->getConfigKey(new S('newsletter_table_field_last_name')); self::$objLetterTableFType = $this->getConfigKey(new S('newsletter_table_field_email_type')); self::$objLetterTableFConfirmed = $this->getConfigKey(new S('newsletter_table_field_is_confirmed')); self::$objLetterTableFKey = $this->getConfigKey(new S('newsletter_table_field_confirmation_key')); self::$objLetterTableFSubscribed = $this->getConfigKey(new S('newsletter_table_field_date')); self::$objLetterTableFCategoryId = $this->getConfigKey(new S('newsletter_table_field_category_id')); // Categories ... self::$objCategoryTable = $this->getConfigKey(new S('newsletter_category_table')); self::$objCategoryTableFId = $this->getConfigKey(new S('newsletter_category_table_id')); self::$objCategoryTableFName = $this->getConfigKey(new S('newsletter_category_table_name')); self::$objCategoryTableFSEO = $this->getConfigKey(new S('newsletter_category_table_seo')); self::$objCategoryTableFDescription = $this->getConfigKey(new S('newsletter_category_table_description')); self::$objCategoryTableFDate = $this->getConfigKey(new S('newsletter_category_table_date')); // Load'em defaults ... ATH, STG and others ... $this->ATH = MOD::activateModule(new FilePath('mod/authentication'), new B(TRUE)); $this->STG = MOD::activateModule(new FilePath('mod/settings'), new B(TRUE)); // DB: Auto-CREATE: $objQueryDB = new FileContent($this->getPathToModule()->toRelativePath() . _S . CFG_DIR . _S . __CLASS__ . SCH_EXTENSION); // Make a FOREACH on each ... foreach (_S($objQueryDB->toString())->fromStringToArray(RA_SCHEMA_HASH_TAG) as $k => $v) { // Make'em ... $this->_Q(_S($v)); } // Get an MPTT Object, build the ROOT, make sure the table is OK; self::$objMPTT = new MPTT(self::$objCategoryTable, MPTT::mpttAddUnique(new S(__CLASS__), new S((string) $_SERVER['REQUEST_TIME']))); }
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ ############# MOD: Administration motto: "With great power comes great responsability!" ; ############# MOD::activateModule(new FilePath('mod/administration')); $ADM = new Administration(MOD::activateModule(new FilePath('mod/authentication'), new B(TRUE)));
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ // Load needed modules ... $ATH = MOD::activateModule(new FilePath('mod/authentication'), new B(TRUE))->renderBackendPage(new S('welcomePage'));
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ // Load needed modules ... if (isset($_GET[ADMIN_SUBPAGE])) { MOD::activateModule(new FilePath('mod/audio'), new B(TRUE))->renderBackendPage(new S('manageDashboard')); } else { MOD::activateModule(new FilePath('mod/audio'), new B(TRUE))->setHeaderKey(URL::rewriteURL(new A(array(ADMIN_SUBPAGE)), new A(array(AUDIO_MANAGE_AUDIO))), new S('Location')); }
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ # Load needed modules ... MOD::activateModule(new FilePath('mod/products'), new B(TRUE))->renderBackendPage(new S('manageProducts'));
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ # Load needed modules ... MOD::activateModule(new FilePath('mod/contact'), new B(TRUE))->renderBackendPage(new S('manageMessages'));
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ # Load the authentication; $PRD = MOD::activateModule(new FilePath('mod/products'), new B(TRUE)); $PRD->setHeaderKey(URL::rewriteURL(new A(array(ADMIN_SUBPAGE)), new A(array(MANAGE_PRODUCTS))), new S('Location'));
public function __construct() { // Construct any possible parent, parse the configuration meanwhile; parent::__construct(); // Tie in common configuration; $this->tieInCommonConfiguration(); // Articles ... self::$objArticleTable = $this->getConfigKey(new S('articles_table')); self::$objArticleTableFId = $this->getConfigKey(new S('articles_table_field_id')); self::$objArticleTableFTitle = $this->getConfigKey(new S('articles_table_field_title')); self::$objArticleTableFSEO = $this->getConfigKey(new S('articles_table_field_seo')); self::$objArticleTableFExcerpt = $this->getConfigKey(new S('articles_table_field_excerpt')); self::$objArticleTableFTags = $this->getConfigKey(new S('articles_table_field_tags')); self::$objArticleTableFContent = $this->getConfigKey(new S('articles_table_field_content')); self::$objArticleTableFDatePublished = $this->getConfigKey(new S('articles_table_field_date_published')); self::$objArticleTableFDateUpdated = $this->getConfigKey(new S('articles_table_field_date_updated')); self::$objArticleTableFState = $this->getConfigKey(new S('articles_table_field_state')); self::$objArticleTableFAuthorId = $this->getConfigKey(new S('articles_table_field_author_id')); self::$objArticleTableFCategoryId = $this->getConfigKey(new S('articles_table_field_category_id')); self::$objArticleTableFCanComment = $this->getConfigKey(new S('articles_table_field_can_comment')); self::$objArticleTableFViews = $this->getConfigKey(new S('articles_table_field_views')); // Comments ... self::$objCommentsTable = $this->getConfigKey(new S('articles_comments_table')); self::$objCommentsTableFId = $this->getConfigKey(new S('articles_comments_table_id')); self::$objCommentsTableFName = $this->getConfigKey(new S('articles_comments_table_name')); self::$objCommentsTableFEML = $this->getConfigKey(new S('articles_comments_table_email')); self::$objCommentsTableFURL = $this->getConfigKey(new S('articles_comments_table_website')); self::$objCommentsTableFRUId = $this->getConfigKey(new S('articles_comments_table_registered_user_id')); self::$objCommentsTableFComment = $this->getConfigKey(new S('articles_comments_table_comment')); self::$objCommentsTableFApproved = $this->getConfigKey(new S('articles_comments_table_approved')); self::$objCommentsTableFDate = $this->getConfigKey(new S('articles_comments_table_date')); self::$objCommentsTableFArticleId = $this->getConfigKey(new S('articles_comments_table_article_id')); // Categories ... self::$objCategoryTable = $this->getConfigKey(new S('articles_category_table')); self::$objCategoryTableFId = $this->getConfigKey(new S('articles_category_table_id')); self::$objCategoryTableFName = $this->getConfigKey(new S('articles_category_table_name')); self::$objCategoryTableFSEO = $this->getConfigKey(new S('articles_category_table_seo')); self::$objCategoryTableFDescription = $this->getConfigKey(new S('articles_category_table_description')); self::$objCategoryTableFDate = $this->getConfigKey(new S('articles_category_table_date')); // Configuration ... self::$objItemsPerPage = $this->getConfigKey(new S('articles_per_page')); // Load'em defaults ... ATH, STG and others ... $this->ATH = MOD::activateModule(new FilePath('mod/authentication'), new B(TRUE)); $this->STG = MOD::activateModule(new FilePath('mod/settings'), new B(TRUE)); // DB: Auto-CREATE: $objQueryDB = new FileContent($this->getPathToModule()->toRelativePath() . _S . CFG_DIR . _S . __CLASS__ . SCH_EXTENSION); // Make a FOREACH on each ... foreach (_S($objQueryDB->toString())->fromStringToArray(RA_SCHEMA_HASH_TAG) as $k => $v) { // Make'em ... $this->_Q(_S($v)); } // Get an MPTT Object, build the ROOT ... self::$objMPTT = new MPTT(self::$objCategoryTable, MPTT::mpttAddUnique(new S(__CLASS__), new S((string) $_SERVER['REQUEST_TIME']))); }
public function __construct() { // Construct any possible parent; parent::__construct(); // Do the tie ... $this->tieInCommonConfiguration(); // Set the proper configuration options, from the config file; self::$objProductsTable = $this->getConfigKey(new S('products_table')); self::$objProductsTableFId = $this->getConfigKey(new S('products_table_field_id')); self::$objProductsTableFCode = $this->getConfigKey(new S('products_table_field_code')); self::$objProductsTableFName = $this->getConfigKey(new S('products_table_field_name')); self::$objProductsTableFSEO = $this->getConfigKey(new S('products_table_field_seo')); self::$objProductsTableFPDF = $this->getConfigKey(new S('products_table_field_pdf')); self::$objProductsTableFURL = $this->getConfigKey(new S('products_table_field_url')); self::$objProductsTableFDescription = $this->getConfigKey(new S('products_table_field_description')); self::$objProductsTableFPrice = $this->getConfigKey(new S('products_table_field_price')); self::$objProductsTableFStoc = $this->getConfigKey(new S('products_table_field_stoc')); self::$objProductsTableFCategoryId = $this->getConfigKey(new S('products_table_field_category_id')); // Categories ... self::$objCategoryTable = $this->getConfigKey(new S('products_table_categories')); self::$objCategoryTableFId = $this->getConfigKey(new S('products_table_categories_field_id')); self::$objCategoryTableFName = $this->getConfigKey(new S('products_table_categories_field_name')); self::$objCategoryTableFSEO = $this->getConfigKey(new S('products_table_categories_field_seo')); self::$objCategoryTableFDescription = $this->getConfigKey(new S('products_table_categories_field_description')); self::$objCategoryTableFDate = $this->getConfigKey(new S('products_table_categories_field_date')); // Images for products ... self::$objProductsIMGTable = $this->getConfigKey(new S('products_table_images')); self::$objProductsIMGTableFId = $this->getConfigKey(new S('products_table_images_field_id')); self::$objProductsIMGTableFProdId = $this->getConfigKey(new S('products_table_images_field_product_id')); self::$objProductsIMGTableFTitle = $this->getConfigKey(new S('products_table_images_field_title')); self::$objProductsIMGTableFURL = $this->getConfigKey(new S('products_table_images_field_url')); self::$objProductsIMGTableFCaption = $this->getConfigKey(new S('products_table_images_field_caption')); // Properties for product ... self::$objProductsPropertyTable = $this->getConfigKey(new S('products_table_properties')); self::$objProductsPropertyTableFId = $this->getConfigKey(new S('products_table_properties_field_id')); self::$objProductsPropertyTableFPId = $this->getConfigKey(new S('products_table_properties_field_product_id')); self::$objProductsPropertyTableFKey = $this->getConfigKey(new S('products_table_properties_field_key')); self::$objProductsPropertyTableFVar = $this->getConfigKey(new S('products_table_properties_field_var')); // Configuration ... self::$objItemsPerPage = new S('10'); // Load'em defaults ... ATH, STG and others ... $this->ATH = MOD::activateModule(new FilePath('mod/authentication'), new B(TRUE)); $this->STG = MOD::activateModule(new FilePath('mod/settings'), new B(TRUE)); // DB: Auto-CREATE: $objQueryDB = new FileContent($this->getPathToModule()->toRelativePath() . _S . CFG_DIR . _S . __CLASS__ . SCH_EXTENSION); // Make a FOREACH on each ... foreach (_S($objQueryDB->toString())->fromStringToArray(RA_SCHEMA_HASH_TAG) as $k => $v) { // Make'em ... $this->_Q(_S($v)); } // Get an MPTT Object, build the ROOT, make sure the table is OK; self::$objMPTT = new MPTT(self::$objCategoryTable, MPTT::mpttAddUnique(new S(__CLASS__), new S((string) $_SERVER['REQUEST_TIME']))); }
public function __construct() { // Construct any possible parent, parse the configuration while doing that; parent::__construct(); // Tie in common configuration data; $this->tieInCommonConfiguration(); // Set the proper configuration options for this object; self::$objAuthUsersTable = $this->getConfigKey(new S('authentication_users_table')); self::$objAuthUsersTableFId = $this->getConfigKey(new S('authentication_users_table_field_id')); self::$objAuthUsersTableFUName = $this->getConfigKey(new S('authentication_users_table_field_username')); self::$objAuthUsersTableFUPass = $this->getConfigKey(new S('authentication_users_table_field_password')); self::$objAuthUsersTableFEML = $this->getConfigKey(new S('authentication_users_table_field_email')); self::$objAuthUsersTableFPhone = $this->getConfigKey(new S('authentication_users_table_field_phone')); self::$objAuthUsersTableFFName = $this->getConfigKey(new S('authentication_users_table_field_first_name')); self::$objAuthUsersTableFLName = $this->getConfigKey(new S('authentication_users_table_field_last_name')); self::$objAuthUsersTableFUGId = $this->getConfigKey(new S('authentication_users_table_field_group_id')); self::$objAuthUsersTableFRegOn = $this->getConfigKey(new S('authentication_users_table_field_registered_on')); self::$objAuthUsersTableFLastLog = $this->getConfigKey(new S('authentication_users_table_field_visited_on')); self::$objAuthUsersTableFHash = $this->getConfigKey(new S('authentication_users_table_field_hash')); self::$objAuthUsersTableFActivated = $this->getConfigKey(new S('authentication_users_table_field_activated')); self::$objAuthUsersTableFCountry = $this->getConfigKey(new S('authentication_users_table_field_country')); self::$objAuthUsersTableFSignature = $this->getConfigKey(new S('authentication_users_table_field_signature')); self::$objAuthUsersTableFDesc = $this->getConfigKey(new S('authentication_users_table_field_description')); self::$objAuthUsersTableFYM = $this->getConfigKey(new S('authentication_users_table_field_ym')); self::$objAuthUsersTableFMSN = $this->getConfigKey(new S('authentication_users_table_field_msn')); self::$objAuthUsersTableFICQ = $this->getConfigKey(new S('authentication_users_table_field_icq')); self::$objAuthUsersTableFAOL = $this->getConfigKey(new S('authentication_users_table_field_aol')); self::$objAuthUsersTableFCity = $this->getConfigKey(new S('authentication_users_table_field_city')); self::$objAuthUsersTableFAvatar = $this->getConfigKey(new S('authentication_users_table_field_avatar')); self::$objAuthUsersTableFIp = $this->getConfigKey(new S('authentication_users_table_field_ip')); // Groups ... self::$objAuthGroupTable = $this->getConfigKey(new S('authentication_group_table')); self::$objAuthGroupTableFId = $this->getConfigKey(new S('authentication_group_table_field_id')); self::$objAuthGroupTableFName = $this->getConfigKey(new S('authentication_group_table_field_name')); self::$objAuthGroupTableFSEO = $this->getConfigKey(new S('authentication_group_table_field_seo')); // Zones ... self::$objAuthZonesTable = $this->getConfigKey(new S('authentication_zones_table')); self::$objAuthZonesTableFId = $this->getConfigKey(new S('authentication_zones_table_field_id')); self::$objAuthZonesTableFName = $this->getConfigKey(new S('authentication_zones_table_field_name')); self::$objAuthZonesTableFDesc = $this->getConfigKey(new S('authentication_zones_table_field_description')); self::$objAuthZonesTableFPrice = $this->getConfigKey(new S('authentication_zones_table_field_price')); // Zone mappings ... self::$objAuthZoneMTable = $this->getConfigKey(new S('authentication_gtozm_table')); self::$objAuthZoneMTableFId = $this->getConfigKey(new S('authentication_gtozm_table_field_id')); self::$objAuthZoneMTableFZId = $this->getConfigKey(new S('authentication_gtozm_table_field_zone_id')); self::$objAuthZoneMTableFUGId = $this->getConfigKey(new S('authentication_gtozm_table_field_ug_id')); self::$objAuthZoneMTableFIUG = $this->getConfigKey(new S('authentication_gtozm_table_field_is_group')); self::$objAuthZoneMTableFAorD = $this->getConfigKey(new S('authentication_gtozm_table_field_deny_or_allow')); self::$objAuthZoneMTableFErase = $this->getConfigKey(new S('authentication_gtozm_table_field_eraseable')); // Configuration ... self::$objAuthDefaultGroup = $this->getConfigKey(new S('authentication_default_group')); self::$objAuthDefaultUsername = $this->getConfigKey(new S('authentication_default_admin_username')); self::$objAuthDefaultPassword = $this->getConfigKey(new S('authentication_default_admin_password')); // DB: Auto-CREATE: $objQueryDB = new FileContent($this->getPathToModule()->toRelativePath() . _S . CFG_DIR . _S . __CLASS__ . SCH_EXTENSION); // Make a FOREACH on each ... foreach (_S($objQueryDB->toString())->fromStringToArray(RA_SCHEMA_HASH_TAG) as $k => $v) { // Make'em ... $this->_Q(_S($v)); } // Check non-modified user data, to prevent hackers; if ($this->checkIfUserIsLoggedIn()->toBoolean() == TRUE) { $this->checkIfUserDataIsOK(); } // Get an MPTT Object, build the ROOT, make sure the table is OK; self::$objMPTT = new MPTT(self::$objAuthGroupTable, self::$objAuthDefaultGroup); self::$objMPTTForZones = new MPTT(self::$objAuthZonesTable, $this->getObjectCLASS()); // Load'em defaults ... ATH, STG and others ... $this->STG = MOD::activateModule(new FilePath('mod/settings'), new B(TRUE)); // Check that the default administrator user exists, or create it; $this->setDefaultAdministratorSettings(); // Check to see if this zone exists, and if not, add it; if ($this->checkZoneByName(new S(__CLASS__))->toBoolean() == FALSE) { $this->doMakeZone(new S(__CLASS__), self::$objAuthZonesTableFName); } if ($this->checkAdministratorIsMappedToZone($this->getObjectCLASS())->toBoolean() == FALSE) { $this->doMapAdministratorToZone($this->getObjectCLASS()); } // Do the tie, with myself, just for sub-zones; $this->tieInWithAuthentication($this); }
public function __construct() { // Construct any possible parent, parse the configuration meanwhile; parent::__construct(); // Tie in common configuration data; $this->tieInCommonConfiguration(); // Get the confiuration data ... self::$objAudioTable = $this->getConfigKey(new S('audio_table')); self::$objAudioTableFId = $this->getConfigKey(new S('audio_table_field_id')); self::$objAudioTableFFile = $this->getConfigKey(new S('audio_table_field_file')); self::$objAudioTableFArtwork = $this->getConfigKey(new S('audio_table_field_artwork')); self::$objAudioTableFTitle = $this->getConfigKey(new S('audio_table_field_title')); self::$objAudioTableFSEO = $this->getConfigKey(new S('audio_table_field_seo')); self::$objAudioTableFArtist = $this->getConfigKey(new S('audio_table_field_artist')); self::$objAudioTableFAlbum = $this->getConfigKey(new S('audio_table_field_album')); self::$objAudioTableFLyrics = $this->getConfigKey(new S('audio_table_field_lyrics')); self::$objAudioTableFDescription = $this->getConfigKey(new S('audio_table_field_description')); self::$objAudioTableFUploadedDate = $this->getConfigKey(new S('audio_table_field_date_uploaded')); self::$objAudioTableFUploaderId = $this->getConfigKey(new S('audio_table_field_uploader_id')); self::$objAudioTableFCategoryId = $this->getConfigKey(new S('audio_table_field_category_id')); self::$objAudioTableFApproved = $this->getConfigKey(new S('audio_table_field_approved')); self::$objAudioTableFCanComment = $this->getConfigKey(new S('audio_table_field_can_comment')); self::$objAudioTableFViews = $this->getConfigKey(new S('audio_table_field_views')); // Comments ... self::$objCommentsTable = $this->getConfigKey(new S('audio_comments_table')); self::$objCommentsTableFId = $this->getConfigKey(new S('audio_comments_table_id')); self::$objCommentsTableFName = $this->getConfigKey(new S('audio_comments_table_name')); self::$objCommentsTableFEML = $this->getConfigKey(new S('audio_comments_table_email')); self::$objCommentsTableFURL = $this->getConfigKey(new S('audio_comments_table_website')); self::$objCommentsTableFRUId = $this->getConfigKey(new S('audio_comments_table_registered_user_id')); self::$objCommentsTableFComment = $this->getConfigKey(new S('audio_comments_table_comment')); self::$objCommentsTableFApproved = $this->getConfigKey(new S('audio_comments_table_approved')); self::$objCommentsTableFDate = $this->getConfigKey(new S('audio_comments_table_date')); self::$objCommentsTableFAudioFileId = $this->getConfigKey(new S('audio_comments_table_audio_file_id')); // Categories ... self::$objCategoryTable = $this->getConfigKey(new S('audio_category_table')); self::$objCategoryTableFId = $this->getConfigKey(new S('audio_category_table_id')); self::$objCategoryTableFName = $this->getConfigKey(new S('audio_category_table_name')); self::$objCategoryTableFSEO = $this->getConfigKey(new S('audio_category_table_seo')); self::$objCategoryTableFDescription = $this->getConfigKey(new S('audio_category_table_description')); self::$objCategoryTableFDate = $this->getConfigKey(new S('audio_category_table_date')); // Configuration ... self::$objItemsPerPage = $this->getConfigKey(new S('audio_settings_audio_items_per_page')); // Load'em defaults ... ATH, STG and others ... $this->ATH = MOD::activateModule(new FilePath('mod/authentication'), new B(TRUE)); $this->STG = MOD::activateModule(new FilePath('mod/settings'), new B(TRUE)); // DB: Auto-CREATE: $objQueryDB = new FileContent($this->getPathToModule()->toRelativePath() . _S . CFG_DIR . _S . __CLASS__ . SCH_EXTENSION); // Make a FOREACH on each ... foreach (_S($objQueryDB->toString())->fromStringToArray(RA_SCHEMA_HASH_TAG) as $k => $v) { // Make'em ... $this->_Q(_S($v)); } // Get an MPTT Object, build the ROOT, make sure the table is OK; self::$objMPTT = new MPTT(self::$objCategoryTable, MPTT::mpttAddUnique(new S(__CLASS__), new S((string) $_SERVER['REQUEST_TIME']))); // Get some JSS data ... $this->objPathToSkinJSS = $this->getPathToSkinJSS()->toRelativePath(); $this->objPathToSkinCSS = $this->getPathToSkinCSS()->toRelativePath(); // CALL them specific TPL methods, add JSS & CSS to page <head'er ... TPL::manageJSS(new FilePath($this->objPathToSkinJSS . self::AUDIO_PLAYER_JS_PATH), new S(self::AUDIO_PLAYER_JS_STRING)); }
public function __construct() { // Construct any possible parent, parse the configuration meanwhile; parent::__construct(); // Tie in common configuration data; $this->tieInCommonConfiguration(); // Get object configuration data, and set current object properties; self::$objTextTable = $this->getConfigKey(new S('texts_table')); self::$objTextTableFId = $this->getConfigKey(new S('texts_table_field_id')); self::$objTextTableFTitle = $this->getConfigKey(new S('texts_table_field_title')); self::$objTextTableFSEO = $this->getConfigKey(new S('texts_table_field_seo')); self::$objTextTableFContent = $this->getConfigKey(new S('texts_table_field_content')); self::$objTextTableFTags = $this->getConfigKey(new S('texts_table_field_tags')); self::$objTextTableFCanComment = $this->getConfigKey(new S('texts_table_field_can_comment')); self::$objTextTableFDatePublished = $this->getConfigKey(new S('texts_table_field_date_published')); self::$objTextTableFDateUpdated = $this->getConfigKey(new S('texts_table_field_date_updated')); self::$objTextTableFAuthorId = $this->getConfigKey(new S('texts_table_field_author_id')); self::$objTextTableFCategoryId = $this->getConfigKey(new S('texts_table_field_category_id')); // Categories ... self::$objCategoryTable = $this->getConfigKey(new S('texts_category_table')); self::$objCategoryTableFId = $this->getConfigKey(new S('texts_category_table_id')); self::$objCategoryTableFName = $this->getConfigKey(new S('texts_category_table_name')); self::$objCategoryTableFSEO = $this->getConfigKey(new S('texts_category_table_seo')); // Comments ... self::$objCommentsTable = $this->getConfigKey(new S('texts_comments_table')); self::$objCommentsTableFId = $this->getConfigKey(new S('texts_comments_table_id')); self::$objCommentsTableFName = $this->getConfigKey(new S('texts_comments_table_name')); self::$objCommentsTableFEML = $this->getConfigKey(new S('texts_comments_table_email')); self::$objCommentsTableFURL = $this->getConfigKey(new S('texts_comments_table_website')); self::$objCommentsTableFRUId = $this->getConfigKey(new S('texts_comments_table_registered_user_id')); self::$objCommentsTableFComment = $this->getConfigKey(new S('texts_comments_table_comment')); self::$objCommentsTableFApproved = $this->getConfigKey(new S('texts_comments_table_approved')); self::$objCommentsTableFDate = $this->getConfigKey(new S('texts_comments_table_date')); self::$objCommentsTableFTextId = $this->getConfigKey(new S('texts_comments_table_text_id')); // DB: Auto-CREATE: $objQueryDB = new FileContent($this->getPathToModule()->toRelativePath() . _S . CFG_DIR . _S . __CLASS__ . SCH_EXTENSION); // Make a FOREACH on each ... foreach (_S($objQueryDB->toString())->fromStringToArray(RA_SCHEMA_HASH_TAG) as $k => $v) { // Make'em ... $this->_Q(_S($v)); } // Get an MPTT Object, build the ROOT, make sure the table is OK; self::$objMPTT = new MPTT(self::$objCategoryTable, new S(__CLASS__)); // Load'em defaults ... ATH, STG and others ... $this->ATH = MOD::activateModule(new FilePath('mod/authentication'), new B(TRUE)); $this->STG = MOD::activateModule(new FilePath('mod/settings'), new B(TRUE)); }
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ # Load the authentication; $AUTH = MOD::activateModule(new FilePath('mod/authentication'), new B(TRUE)); $AUTH->setHeaderKey(URL::rewriteURL(new A(array(ADMIN_SUBPAGE)), new A(array(AUTHENTICATION_MANAGE_USERS))), new S('Location'));
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ # Load needed modules ... MOD::activateModule(new FilePath('mod/texts'), new B(TRUE))->renderBackendPage(new S('manageCategories'));
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ // Load needed modules ... MOD::activateModule(new FilePath('mod/newsletter'), new B(TRUE))->renderBackendPage(new S('manageNewsletter'));
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ # Load the authentication; $FAQ = MOD::activateModule(new FilePath('mod/lyrics'), new B(TRUE)); $FAQ->setHeaderKey(URL::rewriteURL(new A(array(ADMIN_SUBPAGE)), new A(array(MANAGE_LYRICS))), new S('Location'));
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ # Load needed modules ... MOD::activateModule(new FilePath('mod/settings'), new B(TRUE))->renderBackendPage(new S('manageErrorPages'));
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ // Load needed modules ... MOD::activateModule(new FilePath('mod/articles'), new B(TRUE))->renderBackendPage(new S('manageArticles'));
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ // Load needed modules ... MOD::activateModule(new FilePath('mod/audio'), new B(TRUE))->renderBackendPage(new S('manageComments'));
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ # Load needed modules ... MOD::activateModule(new FilePath('mod/faq'), new B(TRUE))->renderBackendPage(new S('manageFaq'));
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ # Load needed modules ... MOD::activateModule(new FilePath('mod/lyrics'), new B(TRUE))->renderBackendPage(new S('manageLyrics'));
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ # Load the authentication; $CNT = MOD::activateModule(new FilePath('mod/contact'), new B(TRUE)); $CNT->setHeaderKey(URL::rewriteURL(new A(array(ADMIN_SUBPAGE)), new A(array(CONTACT_MANAGE_MESSAGES))), new S('Location'));
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ # Load needed modules ... MOD::activateModule(new FilePath('mod/authentication'), new B(TRUE))->renderBackendPage(new S('manageMappingsForUsers'));
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ // Load needed modules ... MOD::activateModule(new FilePath('mod/audio'), new B(TRUE))->renderBackendPage(new S('manageConfiguration'));
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ # Load needed modules ... MOD::activateModule(new FilePath('mod/authentication'), new B(TRUE))->renderBackendPage(new S('manageGroups'));
<?php // That's it. Easy, ain't it?! require_once 'inc/00_CFG.php'; /* $objQ = SQL::getQuery (new S ('SELECT * FROM ra_lyrics_items')); foreach ($objQ as $k => $v) { $objSQL = 'UPDATE ra_lyrics_items SET seo ="' . URL::getURLFromString (new S ($v['title'] . _U . $v['artist'] . _U . $v['album'] . _U . $v['date_added'])) . '" WHERE id ="' . $v['id'] . '"'; mysql_query ($objSQL); } err (TRUE);*/ // Ok, one more thing, activate the Frontend; $FRT = MOD::activateModule(new FilePath('mod/frontend'), new B(TRUE)); $FRT->tieInWithAuthentication(MOD::activateModule(new FilePath('mod/authentication'), new B(TRUE))); $FRT->doTieALLNecessaryRequirementsAndRenderFrontend();
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ // Load needed modules ... if (isset($_GET[ADMIN_SUBPAGE])) { MOD::activateModule(new FilePath('mod/articles'), new B(TRUE))->renderBackendPage(new S('manageDashboard')); } else { MOD::activateModule(new FilePath('mod/articles'), new B(TRUE))->setHeaderKey(URL::rewriteURL(new A(array(ADMIN_SUBPAGE)), new A(array(ARTICLES_MANAGE_ARTICLES))), new S('Location')); }
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ # Load the authentication; $STG = MOD::activateModule(new FilePath('mod/settings'), new B(TRUE)); $STG->setHeaderKey(URL::rewriteURL(new A(array(ADMIN_SUBPAGE)), new A(array(SETTINGS_MANAGE_SETTINGS))), new S('Location'));