/** * @author Sardar Madumarov <*****@*****.**> * @package oaseo * @since 1.0 */ $dbo = Updater::getDbo(); $dbo->query("CREATE TABLE IF NOT EXISTS `" . OW_DB_PREFIX . "oaseo_url` (\n `id` int(11) NOT NULL AUTO_INCREMENT,\n `routeName` varchar(50) NOT NULL,\n `url` varchar(255) NOT NULL,\n PRIMARY KEY (`id`),\n KEY `routeName` (`routeName`,`url`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1"); if (!Updater::getConfigService()->configExists('oaseo', 'robots_contents')) { $robotsConfigContents = <<<EOT User-agent: * Disallow: ow_version.xml Disallow: INSTALL.txt Disallow: LICENSE.txt Disallow: README.txt Disallow: UPDATE.txt Disallow: CHANGES.txt Disallow: /admin/ Disallow: /forgot-password Disallow: /sign-in Disallow: /ajax-form Disallow: /users/waiting-for-approval Disallow: /join Disallow: /profile/edit Disallow: /email-verify Disallow: /ow_updates/ EOT; Updater::getConfigService()->addConfig('oaseo', 'robots_contents', $robotsConfigContents); } Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'oaseo');
} try { $sql = "CREATE TABLE IF NOT EXISTS `" . OW_DB_PREFIX . "skadate_current_location` (\n `id` int(11) NOT NULL AUTO_INCREMENT,\n `userId` int(11) NOT NULL,\n `latitude` decimal(12,8) NOT NULL,\n `longitude` decimal(12,8) NOT NULL,\n `updateTimestamp` int(11) NOT NULL,\n PRIMARY KEY (`id`),\n KEY `userId` (`userId`)\n ) ENGINE=MyISAM DEFAULT CHARSET=utf8;"; Updater::getDbo()->query($sql); } catch (Exception $e) { print_r($e); } try { $sql = "CREATE TABLE IF NOT EXISTS `" . OW_DB_PREFIX . "skadate_avatar` (\n `id` int(11) NOT NULL AUTO_INCREMENT,\n `avatarId` int(11) NOT NULL,\n `userId` int(11) NOT NULL,\n `hash` int(11) NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`),\n UNIQUE KEY `avatarId` (`avatarId`,`userId`)\n ) ENGINE=MyISAM DEFAULT CHARSET=utf8;"; Updater::getDbo()->query($sql); } catch (Exception $e) { print_r($e); } try { $sql = "UPDATE `" . OW_DB_PREFIX . "base_plugin` SET developerKey=:dk WHERE `key`=:k"; Updater::getDbo()->query($sql, array("dk" => "99d6bdd5bb6468beaf118c4664dd92ff", "k" => "pcgallery")); } catch (Exception $e) { print_r($e); } if (!OW::getConfig()->configExists('skadate', 'update_gender_values')) { OW::getConfig()->addConfig('skadate', 'update_gender_values', true); } else { OW::getConfig()->saveConfig('skadate', 'update_gender_values', true); } if (!Updater::getConfigService()->configExists('skadate', 'photo_filter_setting_matching')) { Updater::getConfigService()->addConfig('skadate', 'photo_filter_setting_matching', false); } @mkdir(OW_DIR_USERFILES . 'plugins' . DS . 'skadate' . DS . 'avatars' . DS); @chmod(OW_DIR_USERFILES . 'plugins' . DS . 'skadate' . DS . 'avatars' . DS, 0777); @mkdir(OW_DIR_PLUGINFILES . 'skadate' . DS . 'avatars' . DS); @chmod(OW_DIR_PLUGINFILES . 'skadate' . DS . 'avatars' . DS, 0777);
* - Neither the name of the Oxwall Foundation nor the names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ $exArr = array(); Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'ajaxim'); $moduleName = OW::getPluginManager()->getPlugin('ajaxim')->getModuleName(); try { if (!Updater::getConfigService()->configExists('ajaxim', 'friends_only')) { Updater::getConfigService()->addConfig('ajaxim', 'friends_only', 0); } } catch (Exception $e) { $exArr[] = $e; } try { Updater::getDbo()->update("REPLACE INTO `" . OW_DB_PREFIX . "base_preference_section` ( `name`, `sortOrder`) VALUES ('ajaxim', 0)"); } catch (Exception $e) { $exArr[] = $e; } try { Updater::getDbo()->update("REPLACE INTO `" . OW_DB_PREFIX . "base_preference` ( `key`, `defaultValue`, `sectionName`, `sortOrder`) VALUES ( 'ajaxim_user_settings_enable_sound', '1', 'ajaxim', 0 )"); } catch (Exception $e) { $exArr[] = $e; } try {
<?php /** * @author Zarif Safiullin <*****@*****.**> * @package ow.ow_plugins.mailbox * @since 1.7.2 */ Updater::getLanguageService()->importPrefixFromZip(dirname(dirname(dirname(__FILE__))) . DS . 'langs.zip', 'mailbox'); Updater::getConfigService()->addConfig('mailbox', 'send_message_interval', 60); $sql = "ALTER TABLE `" . OW_DB_PREFIX . "mailbox_user_last_data` ADD INDEX `userId` ( `userId` )"; Updater::getDbo()->query($sql);
} if (!Updater::getConfigService()->configExists('base', 'disable_mobile_context')) { Updater::getConfigService()->addConfig('base', 'disable_mobile_context', 0); } if (!Updater::getConfigService()->configExists('base', 'log_file_max_size_mb')) { Updater::getConfigService()->addConfig('base', 'log_file_max_size_mb', 20); } if (!Updater::getConfigService()->configExists('base', 'attch_file_max_size_mb')) { Updater::getConfigService()->addConfig('base', 'attch_file_max_size_mb', 2); } if (!UPDATE_ConfigService::getInstance()->configExists('base', 'users_on_page')) { UPDATE_ConfigService::getInstance()->addConfig('base', 'users_on_page', 12); } if (!Updater::getConfigService()->configExists('base', 'attch_ext_list')) { $ext = array('txt', 'doc', 'docx', 'sql', 'csv', 'xls', 'ppt', 'pdf', 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'psd', 'ai', 'avi', 'wmv', 'mp3', '3gp', 'flv', 'mkv', 'mpeg', 'mpg', 'swf', 'zip', 'gz', 'tgz', 'gzip', '7z', 'bzip2', 'rar'); Updater::getConfigService()->addConfig('base', 'attch_ext_list', json_encode($ext)); } $preference = BOL_PreferenceService::getInstance()->findPreference('profile_details_update_stamp'); if (empty($preference)) { $preference = new BOL_Preference(); } $preference->key = 'profile_details_update_stamp'; $preference->sectionName = 'general'; $preference->defaultValue = 0; $preference->sortOrder = 1; BOL_PreferenceService::getInstance()->savePreference($preference); try { Updater::getNavigationService()->addMenuItem(OW_Navigation::ADMIN_MOBILE, 'mobile.admin_settings', 'mobile', 'mobile_admin_settings', OW_Navigation::VISIBLE_FOR_MEMBER); } catch (Exception $e) { $logger->addEntry(json_encode($e)); }
<?php if (!Updater::getConfigService()->configExists('equestions', 'allow_popups')) { Updater::getConfigService()->addConfig('equestions', 'allow_popups', 1); } Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'equestions');
<?php /** * Copyright (c) 2013, Podyachev Evgeny <*****@*****.**> * All rights reserved. * ATTENTION: This commercial software is intended for use with Oxwall Free Community Software http://www.oxwall.org/ * and is licensed under Oxwall Store Commercial License. * Full text of this license can be found at http://www.oxwall.org/store/oscl */ /** * @author Podyachev Evgeny <*****@*****.**> * @package ow_plugins.google_maps_location * @since 1.6 */ try { if (!Updater::getConfigService()->configExists('googlelocation', 'country_restriction')) { Updater::getConfigService()->addConfig('googlelocation', 'country_restriction', ''); } } catch (Exception $e) { } try { $widgetService = Updater::getWidgetService(); $widget = $widgetService->addWidget('GOOGLELOCATION_CMP_GroupsWidget', false); $placeWidget = $widgetService->addWidgetToPlace($widget, 'group'); } catch (Exception $e) { } Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'googlelocation');
<?php Updater::getConfigService()->deleteConfig("fbconnect", "allow_synchronize");
<?php /** * This software is intended for use with Oxwall Free Community Software http://www.oxwall.org/ and is * licensed under The BSD license. * --- * Copyright (c) 2011, Oxwall Foundation * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this list of conditions and * the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and * the following disclaimer in the documentation and/or other materials provided with the distribution. * * - Neither the name of the Oxwall Foundation nor the names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Updater::getConfigService()->saveConfig('mailbox', 'show_all_members', 0);
* which combines Covered Code or portions thereof with code not governed by the terms of the CPAL. */ UPDATE_LanguageService::getInstance()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'admin'); $db = Updater::getDbo(); $logger = Updater::getLogger(); $tblPrefix = OW_DB_PREFIX; $queryList = array(); $queryList[] = "CREATE TABLE IF NOT EXISTS `{$tblPrefix}base_site_statistic` (\n `id` int(10) unsigned NOT NULL AUTO_INCREMENT,\n `entityType` varchar(50) NOT NULL,\n `entityId` int(10) unsigned NOT NULL,\n `entityCount` int(10) unsigned NOT NULL DEFAULT '1',\n `timeStamp` int(10) unsigned NOT NULL,\n PRIMARY KEY (`id`),\n KEY `entity` (`entityType`, `timeStamp`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8;"; foreach ($queryList as $query) { try { $db->query($query); } catch (Exception $e) { $logger->addEntry(json_encode($e)); } } Updater::getConfigService()->addConfig('base', 'site_statistics_disallowed_entity_types', 'user-status,avatar-change'); $widgetService = Updater::getWidgetService(); $widget = $widgetService->addWidget('BASE_CMP_CustomHtmlWidget', true); $widgetPlace = $widgetService->addWidgetToPlace($widget, BOL_ComponentAdminService::PLASE_ADMIN_DASHBOARD); $widgetService = Updater::getWidgetService(); $widget = $widgetService->addWidget('BASE_CMP_RssWidget', true); $widgetPlace = $widgetService->addWidgetToPlace($widget, BOL_ComponentAdminService::PLASE_ADMIN_DASHBOARD); $widgetService = Updater::getWidgetService(); $widget = $widgetService->addWidget('ADMIN_CMP_FinanceStatisticWidget', false); $widgetPlace = $widgetService->addWidgetToPlace($widget, BOL_ComponentAdminService::PLASE_ADMIN_DASHBOARD); $widgetService->addWidgetToPosition($widgetPlace, BOL_ComponentService::SECTION_TOP); $widgetService = Updater::getWidgetService(); $widget = $widgetService->addWidget('ADMIN_CMP_UserStatisticWidget', false); $widgetPlace = $widgetService->addWidgetToPlace($widget, BOL_ComponentAdminService::PLASE_ADMIN_DASHBOARD); $widgetService->addWidgetToPosition($widgetPlace, BOL_ComponentService::SECTION_TOP); $widgetService = Updater::getWidgetService();
<?php /** * Copyright (c) 2012, Skalfa LLC * All rights reserved. * ATTENTION: This commercial software is intended for use with Oxwall Free Community Software http://www.oxwall.org/ * and is licensed under Oxwall Store Commercial License. * Full text of this license can be found at http://www.oxwall.org/store/oscl */ if (!Updater::getConfigService()->configExists('usercredits', 'allow_grant_credits')) { Updater::getConfigService()->addConfig('usercredits', 'allow_grant_credits', "1"); } Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'usercredits');
$source = new NEWSFEED_TableList('source', $dbo); $source->addTable('action'); $source->addTable('action_feed'); $source->changePrefix('newsfeed_tmp_'); $dist = new NEWSFEED_TableList('dist', $dbo); $dist->createTable('action', "CREATE TABLE `%action%` (\n `id` int(11) NOT NULL auto_increment,\n `entityId` int(11) NOT NULL,\n `entityType` varchar(100) NOT NULL,\n `pluginKey` varchar(100) NOT NULL,\n `data` longtext NOT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `entity` (`entityType`,`entityId`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8;"); $dist->createTable('action_feed', "CREATE TABLE `%action_feed%` (\n `id` int(11) NOT NULL auto_increment,\n `feedType` varchar(100) NOT NULL,\n `feedId` int(11) NOT NULL,\n `activityId` int(11) NOT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `feedId` (`feedType`,`feedId`,`activityId`),\n KEY `actionId` (`activityId`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8;"); $dist->createTable('activity', "CREATE TABLE `%activity%` (\n `id` int(11) NOT NULL auto_increment,\n `activityType` varchar(100) NOT NULL,\n `activityId` int(11) NOT NULL,\n `userId` int(11) NOT NULL,\n `data` text NOT NULL,\n `actionId` int(11) NOT NULL,\n `timeStamp` int(11) NOT NULL,\n `privacy` varchar(100) NOT NULL,\n `visibility` int(11) NOT NULL,\n `status` varchar(100) NOT NULL default 'active',\n UNIQUE KEY `id` (`id`),\n UNIQUE KEY `activityId` (`activityId`,`activityType`,`actionId`),\n KEY `actionId` (`actionId`),\n KEY `userId` (`userId`),\n KEY `activityType` ( `activityType`),\n KEY `timeStamp` (`timeStamp`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8;"); $dist->createTable('cron_command', "CREATE TABLE IF NOT EXISTS `%cron_command%` (\n `id` int(11) NOT NULL auto_increment,\n `command` varchar(100) NOT NULL,\n `data` text NOT NULL,\n `processData` text NOT NULL,\n `timeStamp` int(11) NOT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8;"); $dist->addTable('follow'); $dist->query("ALTER TABLE `%follow%` ADD `permission` VARCHAR( 255 ) NOT NULL DEFAULT 'everybody'"); $r = $source->mysqlQuery("SELECT * FROM `%action%`"); while ($sAction = mysql_fetch_assoc($r)) { $dActionId = $dist->insertRow('action', array('entityType' => $sAction['entityType'], 'entityId' => $sAction['entityId'], 'pluginKey' => $sAction['pluginKey'], 'data' => $sAction['data'])); $dActivityCreateId = $dist->insertRow('activity', array('actionId' => $dActionId, 'activityType' => 'create', 'activityId' => $sAction['userId'], 'userId' => $sAction['userId'], 'data' => json_encode(array()), 'userId' => $sAction['userId'], 'timeStamp' => $sAction['createTime'], 'privacy' => 'everybody', 'visibility' => $sAction['privacy'], 'status' => $sAction['status'])); $dActivitySubscribeId = $dist->insertRow('activity', array('actionId' => $dActionId, 'activityType' => 'subscribe', 'activityId' => $sAction['userId'], 'userId' => $sAction['userId'], 'data' => json_encode(array()), 'userId' => $sAction['userId'], 'timeStamp' => $sAction['updateTime'], 'privacy' => 'everybody', 'visibility' => $sAction['privacy'], 'status' => $sAction['status'])); $actionFeeds = $source->queryForList('SELECT * FROM `%action_feed%` WHERE actionId=:a', array('a' => $sAction['id'])); foreach ($actionFeeds as $feed) { $dist->insertRow('action_feed', array('feedType' => $feed['feedType'], 'feedId' => $feed['feedId'], 'activityId' => $dActivityCreateId)); $dist->insertRow('action_feed', array('feedType' => $feed['feedType'], 'feedId' => $feed['feedId'], 'activityId' => $dActivitySubscribeId)); } } $dist->insertRow('cron_command', array('command' => 'update3500CronJob', 'data' => json_encode(array()), 'processData' => json_encode(array()), 'timeStamp' => time())); $source->dropTables(); Updater::getConfigService()->addConfig('newsfeed', 'disabled_action_types', ''); $updateDir = dirname(__FILE__) . DS; Updater::getLanguageService()->importPrefixFromZip($updateDir . 'langs.zip', 'newsfeed'); $newsfeed = OW::getPluginManager()->getPlugin('newsfeed'); $staticDir = OW_DIR_STATIC_PLUGIN . $newsfeed->getModuleName() . DS; $staticJsDir = $staticDir . 'js' . DS; @copy($newsfeed->getStaticJsDir() . 'newsfeed.js', $staticJsDir . 'newsfeed.js');
<?php Updater::getConfigService()->deleteConfig('equestions', 'live_notifications'); Updater::getConfigService()->deleteConfig('equestions', 'live_notifications_period'); Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'equestions');
* This software is intended for use with Oxwall Free Community Software http://www.oxwall.org/ and is * licensed under The BSD license. * --- * Copyright (c) 2011, Oxwall Foundation * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this list of conditions and * the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and * the following disclaimer in the documentation and/or other materials provided with the distribution. * * - Neither the name of the Oxwall Foundation nor the names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ try { if (!Updater::getConfigService()->configExists('groups', 'is_forum_connected')) { Updater::getConfigService()->addConfig('groups', 'is_forum_connected', '0', 'Add Forum to Groups plugin'); } } catch (Exception $e) { } Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'groups');
<?php Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'uheader'); $sql = array(); $sql[] = "ALTER TABLE `" . OW_DB_PREFIX . "uheader_cover` ADD `templateId` int(11) DEFAULT NULL"; $sql[] = "CREATE TABLE IF NOT EXISTS `" . OW_DB_PREFIX . "uheader_template` (\n `id` int(11) NOT NULL AUTO_INCREMENT,\n `file` varchar(255) NOT NULL,\n `settings` text NOT NULL,\n `default` int(11) NOT NULL DEFAULT '0',\n `timeStamp` int(11) NOT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8;"; $sql[] = "CREATE TABLE IF NOT EXISTS `" . OW_DB_PREFIX . "uheader_template_role` (\n `id` int(11) NOT NULL AUTO_INCREMENT,\n `templateId` int(11) NOT NULL,\n `roleId` int(11) NOT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `templateId` (`templateId`,`roleid`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8;"; foreach ($sql as $query) { Updater::getDbo()->query($query); } Updater::getConfigService()->addConfig('uheader', 'tpl_view_mode', 'list', 'Cover gallery view mode'); try { $plugin = OW::getPluginManager()->getPlugin("uheader"); $basePlugin = OW::getPluginManager()->getPlugin("base"); spl_autoload_register(array('OW_Autoload', 'autoload')); OW::getAutoloader()->addPackagePointer("UHEADER_BOL", $plugin->getBolDir()); OW::getAutoloader()->addPackagePointer("UHEADER_CLASS", $plugin->getClassesDir()); OW::getAutoloader()->addPackagePointer("BASE_CLASS", $basePlugin->getClassesDir()); } catch (Exception $e) { } try { //Add default templates $templatesBridge = UHEADER_CLASS_TemplatesBridge::getInstance(); $templatesBridge->addBuiltInCovers(); } catch (Exception $e) { } try { UHEADER_BOL_Service::getInstance()->saveInfoConfig(UHEADER_BOL_Service::INFO_LINE1, "base-gender-age"); UHEADER_BOL_Service::getInstance()->saveInfoConfig(UHEADER_BOL_Service::INFO_LINE2, "base-about"); } catch (Exception $e) { }
<?php /** * This software is intended for use with Oxwall Free Community Software http://www.oxwall.org/ and is * licensed under The BSD license. * --- * Copyright (c) 2011, Oxwall Foundation * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this list of conditions and * the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and * the following disclaimer in the documentation and/or other materials provided with the distribution. * * - Neither the name of the Oxwall Foundation nor the names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Updater::getConfigService()->addConfig('mailbox', 'plugin_update_timestamp', time(), ''); Updater::getLanguageService()->importPrefixFromZip(dirname(dirname(dirname(__FILE__))) . DS . 'langs.zip', 'mailbox');
<?php if (!Updater::getConfigService()->configExists('questions', 'allow_popups')) { Updater::getConfigService()->addConfig('questions', 'allow_popups', 1); } if (Updater::getConfigService()->configExists('questions', 'ev_page_visited')) { Updater::getConfigService()->saveConfig('questions', 'ev_page_visited', 0); } Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'questions');
<?php $updateDir = dirname(__FILE__) . DS; Updater::getLanguageService()->importPrefixFromZip($updateDir . 'langs.zip', 'hint'); if (Updater::getConfigService()->configExists("hint", "admin_notified")) { Updater::getConfigService()->saveConfig("hint", "admin_notified", 0); } else { Updater::getConfigService()->addConfig("hint", "admin_notified", 0); }
* All rights reserved. * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this list of conditions and * the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and * the following disclaimer in the documentation and/or other materials provided with the distribution. * * - Neither the name of the Oxwall Foundation nor the names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ try { Updater::getConfigService()->addConfig('questions', 'list_order', 'latest'); Updater::getConfigService()->addConfig('questions', 'ev_page_visited', 0); Updater::getConfigService()->addConfig('questions', 'plugin_installed', 1); OW::getAuthorization()->addAction('questions', 'add_answer'); $widgetService = Updater::getWidgetService(); $widget = $widgetService->addWidget('QUESTIONS_CMP_IndexWidget', false); $widgetService->addWidgetToPlace($widget, 'index'); Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'questions'); } catch (Exception $e) { }
<?php // update languges Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'ynsocialconnect'); //Update config Updater::getConfigService()->addConfig('ynsocialconnect', 'signup_mode', '0'); //Update database $dbPrefix = OW_DB_PREFIX; $sql = <<<EOT DELETE FROM `{$dbPrefix}ynsocialconnect_services` WHERE `{$dbPrefix}ynsocialconnect_services`.`name` = 'myspace'; EOT; Updater::getDbo()->query($sql); $sql = <<<EOT CREATE TABLE IF NOT EXISTS `{$dbPrefix}ynsocialconnect_options` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `service` varchar(128) NOT NULL, `name` varchar(128) NOT NULL, `label` varchar(128) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `service_name` (`service`,`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT IGNORE INTO `{$dbPrefix}ynsocialconnect_options` (`id`, `service`, `name`, `label`) VALUES (1, 'yahoo', 'email', 'Email'), (2, 'yahoo', 'full_name', 'Full Name'), (3, 'yahoo', 'FirstName', 'First Name'), (4, 'yahoo', 'LastName', 'Last Name'), (5, 'yahoo', 'gender', 'Gender'), (6, 'google', 'full_name', 'Full Name'), (7, 'google', 'email', 'Email'),
<?php if (!Updater::getConfigService()->configExists('search', 'horizontal_position')) { Updater::getConfigService()->addConfig('search', 'horizontal_position', 0); } Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'search');
$db = Updater::getDbo(); $logger = Updater::getLogger(); $queryList = array("CREATE TABLE IF NOT EXISTS `{$tblPrefix}base_cache` (\n `id` int(11) NOT NULL auto_increment,\n `key` varchar(255) NOT NULL,\n `content` longtext NOT NULL,\n `expireTimestamp` int(11) NOT NULL,\n `instantLoad` tinyint(1) NOT NULL default '0',\n PRIMARY KEY (`id`),\n KEY `key_index` (`key`),\n KEY `expire_index` (`expireTimestamp`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1", "CREATE TABLE IF NOT EXISTS `{$tblPrefix}base_cache_tag` (\n `id` int(11) NOT NULL auto_increment,\n `tag` varchar(255) NOT NULL,\n `cacheId` int(11) NOT NULL,\n PRIMARY KEY (`id`),\n KEY `tag_index` (`tag`),\n KEY `cacheId_index` (`cacheId`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1", "ALTER IGNORE TABLE `{$tblPrefix}base_authorization_user_role` ADD UNIQUE `user2role` ( `userId` , `roleId` ) ", "ALTER TABLE `{$tblPrefix}base_user` CHANGE `joinIp` `joinIp` INT( 11 ) UNSIGNED NOT NULL", "INSERT IGNORE INTO `{$tblPrefix}base_config` (`key` ,`name` ,`value` ,`description`) VALUES ('base', 'master_page_theme_info', '[]', NULL)"); $queryList[] = "CREATE TABLE IF NOT EXISTS `{$tblPrefix}base_invitation` (\n `id` int(11) NOT NULL auto_increment,\n `entityType` varchar(255) NOT NULL,\n `entityId` int(11) NOT NULL,\n `action` varchar(255) NOT NULL,\n `userId` int(11) NOT NULL,\n `pluginKey` varchar(255) NOT NULL,\n `timeStamp` int(11) NOT NULL,\n `viewed` int(11) NOT NULL,\n `sent` tinyint(4) NOT NULL default '0',\n `active` tinyint(4) NOT NULL default '1',\n `data` text,\n PRIMARY KEY (`id`),\n UNIQUE KEY `entityType` (`entityType`,`entityId`,`userId`),\n KEY `timeStamp` (`timeStamp`),\n KEY `userId` (`userId`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8;"; $queryList[] = " DELETE FROM `{$tblPrefix}base_question` WHERE name = 'ab9fc810a1938e599b7d084efea97d91' LIMIT 1 "; foreach ($queryList as $query) { try { $db->query($query); } catch (Exception $e) { $logger->addEntry(json_encode($e)); } } Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'base'); /* code to move custom default avatars to clouds */ if (defined('OW_USE_AMAZON_S3_CLOUDFILES') && OW_USE_AMAZON_S3_CLOUDFILES || defined('OW_USE_CLOUDFILES') && OW_USE_CLOUDFILES) { $storage = Updater::getStorage(); $conf = json_decode(Updater::getConfigService()->getValue('base', 'default_avatar'), true); $dir = OW_DIR_USERFILES . 'plugins' . DS . 'base' . DS . 'avatars' . DS; if (!empty($conf[1])) { $path = $dir . $conf[1]; if (file_exists($path)) { $storage->copyFile($path, $path); } } if (!empty($conf[2])) { $path = $dir . $conf[2]; if (file_exists($path)) { $storage->copyFile($path, $path); } } }
<?php Updater::getConfigService()->addConfig("mcompose", "friends_enabled", 1); Updater::getConfigService()->addConfig("mcompose", "groups_enabled", 1); Updater::getConfigService()->addConfig("mcompose", "events_enabled", 1); Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'mcompose');
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this list of conditions and * the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and * the following disclaimer in the documentation and/or other materials provided with the distribution. * * - Neither the name of the Oxwall Foundation nor the names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ $tblPrefix = OW_DB_PREFIX; $db = Updater::getDbo(); $logger = Updater::getLogger(); $sql = "SELECT * FROM `{$tblPrefix}mailbox_attachment` ORDER BY `id` DESC LIMIT 1"; $last_attachment = $db->queryForRow($sql); if ($last_attachment) { $last_attachment_id = (int) $last_attachment['id']; } else { $last_attachment_id = 0; } Updater::getConfigService()->addConfig('mailbox', 'last_attachment_id', $last_attachment_id, '');
<?php $queryList = array(); $queryList[] = "CREATE TABLE IF NOT EXISTS `" . OW_DB_PREFIX . "notifications_notification` (\n `id` int(11) NOT NULL auto_increment,\n `entityType` varchar(255) NOT NULL,\n `entityId` int(11) NOT NULL,\n `action` varchar(255) NOT NULL,\n `userId` int(11) NOT NULL,\n `pluginKey` varchar(255) NOT NULL,\n `timeStamp` int(11) NOT NULL,\n `viewed` int(11) NOT NULL default '0',\n `sent` tinyint(4) NOT NULL default '0',\n `active` tinyint(4) NOT NULL default '1',\n `data` text,\n PRIMARY KEY (`id`),\n UNIQUE KEY `entityType` (`entityType`,`entityId`,`userId`),\n KEY `timeStamp` (`timeStamp`),\n KEY `userId` (`userId`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8;"; $queryList[] = "DROP TABLE `" . OW_DB_PREFIX . "notifications_cron_job`, `" . OW_DB_PREFIX . "notifications_queue`, `" . OW_DB_PREFIX . "notifications_schedule`;"; foreach ($queryList as $query) { try { Updater::getDbo()->query($query); } catch (Exception $e) { } } Updater::getConfigService()->deleteConfig('notifications', 'schedule_dhour'); Updater::getConfigService()->deleteConfig('notifications', 'schedule_wday'); //Remove setting route $plugin = BOL_PluginService::getInstance()->findPluginByKey('notifications'); if ($plugin !== null) { $plugin->setAdminSettingsRoute(null); BOL_PluginService::getInstance()->savePlugin($plugin); } $updateDir = dirname(__FILE__) . DS; Updater::getLanguageService()->importPrefixFromZip($updateDir . 'langs.zip', 'notifications');
$logger->addEntry(json_encode($e)); } try { $preference = new BOL_Preference(); $preference->key = 'mailbox_user_settings_enable_sound'; $preference->defaultValue = true; $preference->sectionName = 'general'; $preference->sortOrder = 1; BOL_PreferenceService::getInstance()->savePreference($preference); } catch (Exception $e) { $logger->addEntry(json_encode($e)); } try { $preference = new BOL_Preference(); $preference->key = 'mailbox_user_settings_show_online_only'; $preference->defaultValue = false; $preference->sectionName = 'general'; $preference->sortOrder = 1; BOL_PreferenceService::getInstance()->savePreference($preference); } catch (Exception $e) { $logger->addEntry(json_encode($e)); } $modes = array('mail', 'chat'); Updater::getConfigService()->addConfig('mailbox', 'active_modes', json_encode($modes)); Updater::getConfigService()->addConfig('mailbox', 'show_all_members', true); Updater::getConfigService()->addConfig('mailbox', 'update_to_revision_7200', 1, ''); Updater::getConfigService()->addConfig('mailbox', 'last_updated_id', 0, ''); Updater::getConfigService()->addConfig('mailbox', 'updated_to_messages', 0, ''); Updater::getConfigService()->addConfig('mailbox', 'install_complete', 1, ''); Updater::getConfigService()->deleteConfig('mailbox', 'upload_max_file_size'); Updater::getLanguageService()->importPrefixFromZip(dirname(dirname(dirname(__FILE__))) . DS . 'langs.zip', 'mailbox');
<?php /** * EXHIBIT A. Common Public Attribution License Version 1.0 * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); * you may not use this file except in compliance with the License. You may obtain a copy of the License at * http://www.oxwall.org/license. The License is based on the Mozilla Public License Version 1.1 * but Sections 14 and 15 have been added to cover use of software over a computer network and provide for * limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent * with Exhibit B. Software distributed under the License is distributed on an “AS IS” basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language * governing rights and limitations under the License. The Original Code is Oxwall software. * The Initial Developer of the Original Code is Oxwall Foundation (http://www.oxwall.org/foundation). * All portions of the code written by Oxwall Foundation are Copyright (c) 2011. All Rights Reserved. * EXHIBIT B. Attribution Information * Attribution Copyright Notice: Copyright 2011 Oxwall Foundation. All rights reserved. * Attribution Phrase (not exceeding 10 words): Powered by Oxwall community software * Attribution URL: http://www.oxwall.org/ * Graphic Image as provided in the Covered Code. * Display of Attribution Information is required in Larger Works which are defined in the CPAL as a work * which combines Covered Code or portions thereof with code not governed by the terms of the CPAL. */ if (!Updater::getConfigService()->configExists('base', 'enable_captcha')) { Updater::getConfigService()->addConfig('base', 'enable_captcha', 'true', 'is captcha enabled on join form?'); } UPDATE_LanguageService::getInstance()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'admin');
* * - Redistributions of source code must retain the above copyright notice, this list of conditions and * the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and * the following disclaimer in the documentation and/or other materials provided with the distribution. * * - Neither the name of the Oxwall Foundation nor the names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ $updateDir = dirname(__FILE__) . DS; Updater::getLanguageService()->importPrefixFromZip($updateDir . 'langs.zip', 'newsfeed'); if (!Updater::getConfigService()->configExists('newsfeed', 'comments_count')) { Updater::getConfigService()->addConfig('newsfeed', 'comments_count', 3, 'Count of comments'); } if (!Updater::getConfigService()->configExists('newsfeed', 'index_status_enabled')) { Updater::getConfigService()->addConfig('newsfeed', 'index_status_enabled', 1, 'Index status is enabled'); } if (!Updater::getConfigService()->configExists('newsfeed', 'features_expanded')) { Updater::getConfigService()->addConfig('newsfeed', 'features_expanded', 1, 'Comments and likes box is expanded'); } if (!Updater::getConfigService()->configExists('newsfeed', 'allow_comments')) { Updater::getConfigService()->addConfig('newsfeed', 'allow_comments', 1, 'Allow Comments'); }
/** * @author Sardar Madumarov <*****@*****.**> * @package oaseo * @since 1.0 */ $dbo = Updater::getDbo(); $sqlErrors = array(); $queries = array("ALTER TABLE `" . OW_DB_PREFIX . "oaseo_meta` ADD `dispatchAttrs` TEXT NULL DEFAULT NULL", "CREATE TABLE IF NOT EXISTS `" . OW_DB_PREFIX . "oaseo_data` (\n `id` int(11) NOT NULL AUTO_INCREMENT,\n `key` varchar(100) NOT NULL,\n `data` mediumtext NOT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1", "CREATE TABLE IF NOT EXISTS `" . OW_DB_PREFIX . "oaseo_sitemap_item` (\n `id` int(11) NOT NULL AUTO_INCREMENT,\n `type` int(11) NOT NULL,\n `value` text NOT NULL,\n `addTs` int(11) NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1", "CREATE TABLE IF NOT EXISTS `" . OW_DB_PREFIX . "oaseo_sitemap_page` (\n `id` int(11) NOT NULL AUTO_INCREMENT,\n `url` varchar(255) NOT NULL,\n `title` text,\n `meta` text,\n `status` tinyint(1) NOT NULL DEFAULT '0',\n `processTs` int(11) NOT NULL DEFAULT '0',\n `broken` tinyint(1) NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`),\n UNIQUE KEY `url_index` (`url`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1", "CREATE TABLE IF NOT EXISTS `" . OW_DB_PREFIX . "oaseo_sitemap_page_item` (\n `id` int(11) NOT NULL AUTO_INCREMENT,\n `pageId` int(11) NOT NULL,\n `itemId` int(11) NOT NULL,\n `type` int(11) NOT NULL,\n PRIMARY KEY (`id`),\n KEY `pageId` (`pageId`),\n KEY `itemId` (`itemId`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1"); foreach ($queries as $query) { try { $dbo->query($query); } catch (Exception $e) { $sqlErrors[] = $e; } } $config = Updater::getConfigService(); if (!$config->configExists('oaseo', 'crawler_lock')) { $config->addConfig('oaseo', 'crawler_lock', 0); } if (!$config->configExists('oaseo', 'update_info')) { $config->addConfig('oaseo', 'update_info', 0); } if (!$config->configExists('oaseo', 'update_maps')) { $config->addConfig('oaseo', 'update_maps', 0); } if (!$config->configExists('oaseo', 'sitemap_url')) { $config->addConfig('oaseo', 'sitemap_url', 'sitemap.xml'); } if (!$config->configExists('oaseo', 'imagemap_url')) { $config->addConfig('oaseo', 'imagemap_url', 'sitemap_images.xml'); }
<?php /** * EXHIBIT A. Common Public Attribution License Version 1.0 * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); * you may not use this file except in compliance with the License. You may obtain a copy of the License at * http://www.oxwall.org/license. The License is based on the Mozilla Public License Version 1.1 * but Sections 14 and 15 have been added to cover use of software over a computer network and provide for * limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent * with Exhibit B. Software distributed under the License is distributed on an “AS IS” basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language * governing rights and limitations under the License. The Original Code is Oxwall software. * The Initial Developer of the Original Code is Oxwall Foundation (http://www.oxwall.org/foundation). * All portions of the code written by Oxwall Foundation are Copyright (c) 2011. All Rights Reserved. * EXHIBIT B. Attribution Information * Attribution Copyright Notice: Copyright 2011 Oxwall Foundation. All rights reserved. * Attribution Phrase (not exceeding 10 words): Powered by Oxwall community software * Attribution URL: http://www.oxwall.org/ * Graphic Image as provided in the Covered Code. * Display of Attribution Information is required in Larger Works which are defined in the CPAL as a work * which combines Covered Code or portions thereof with code not governed by the terms of the CPAL. */ $configService = Updater::getConfigService()->getInstance(); if ($configService->configExists('base', 'user_invites_limit') && $configService->getValue('base', 'user_invites_limit') == 3) { $configService->saveConfig('base', 'user_invites_limit', 50); }