Exemple #1
0
<?php

/**
 * Copyright (c) 2014, Skalfa LLC
 * All rights reserved.
 *
 * ATTENTION: This commercial software is intended for exclusive use with SkaDate Dating Software (http://www.skadate.com) and is licensed under SkaDate Exclusive License by Skalfa LLC.
 *
 * Full text of this license can be found at http://www.skadate.com/sel.pdf
 */
if (OW::getPluginManager()->isPluginActive('skadateios') || OW::getPluginManager()->isPluginActive('skandroid')) {
    $widgetService = Updater::getWidgetService();
    $widget = $widgetService->addWidget('SKADATE_CMP_MobileExperience', false);
    try {
        $placeWidget = $widgetService->addWidgetToPlace($widget, BOL_ComponentAdminService::PLACE_INDEX);
        $widgetService->addWidgetToPosition($placeWidget, BOL_ComponentService::SECTION_RIGHT);
    } catch (Exception $e) {
        Updater::getLogger()->addEntry(json_encode($e));
    }
    try {
        $placeWidget = $widgetService->addWidgetToPlace($widget, BOL_ComponentAdminService::PLACE_DASHBOARD);
        $widgetService->addWidgetToPosition($placeWidget, BOL_ComponentService::SECTION_RIGHT);
    } catch (Exception $e) {
        Updater::getLogger()->addEntry(json_encode($e));
    }
}
Updater::getLanguageService()->importPrefixFromZip(__DIR__ . DS . 'langs.zip', 'skadate');
Exemple #2
0
    $sql = "ALTER TABLE `" . OW_DB_PREFIX . "googlelocation_data` ADD `entityType` ENUM( 'user', 'event' ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `entityId` ";
    Updater::getDbo()->query($sql);
} catch (Exception $e) {
}
try {
    $sql = "UPDATE `" . OW_DB_PREFIX . "googlelocation_data` SET `entityType` = 'user' ";
    Updater::getDbo()->query($sql);
} catch (Exception $e) {
}
try {
    $sql = "ALTER TABLE `" . OW_DB_PREFIX . "googlelocation_data` DROP INDEX `entityId` ";
    Updater::getDbo()->query($sql);
} catch (Exception $e) {
}
try {
    $sql = "ALTER IGNORE TABLE `" . OW_DB_PREFIX . "googlelocation_data` ADD INDEX `entityId` ( `entityId` , `entityType` ) ";
    Updater::getDbo()->query($sql);
} catch (Exception $e) {
}
try {
    $sql = " DELETE FROM g `" . OW_DB_PREFIX . "googlelocation_data` g\n        LEFT JOIN `" . OW_DB_PREFIX . "base_user` u ON u.id = g.entityId\n        WHERE g.entityType = 'user' AND u.id IS NULL ";
    Updater::getDbo()->query($sql);
} catch (Exception $e) {
}
try {
    $sql = " ALTER TABLE `" . OW_DB_PREFIX . "googlelocation_data` CHANGE `json` `json` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL  ";
    Updater::getDbo()->query($sql);
} catch (Exception $e) {
}
Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'googlelocation');
Exemple #3
0
<?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.
 */
$updateDir = dirname(__FILE__) . DS;
Updater::getLanguageService()->importPrefixFromZip($updateDir . 'langs.zip', 'groups');
OW::getAuthorization()->addAction('groups', 'view', true);
Exemple #4
0
/**
 * 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.
 */
$queryList = array("ALTER TABLE `" . OW_DB_PREFIX . "base_plugin` ADD `licenseCheckTimestamp` INT UNSIGNED NULL DEFAULT NULL AFTER `licenseKey`, ADD INDEX `licenseCheckTimestamp` (`licenseCheckTimestamp`)", "ALTER TABLE `" . OW_DB_PREFIX . "base_theme` ADD `licenseCheckTimestamp` INT UNSIGNED NULL DEFAULT NULL AFTER `sidebarPosition`, ADD INDEX `licenseCheckTimestamp` (`licenseCheckTimestamp`)", "ALTER TABLE `" . OW_DB_PREFIX . "base_theme` CHANGE  `name`  `key` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL", "ALTER TABLE `" . OW_DB_PREFIX . "base_theme` DROP `isActive`");
foreach ($queryList as $query) {
    try {
        Updater::getDbo()->query($query);
    } catch (Exception $e) {
        Updater::getLogger()->addEntry(json_encode($e));
    }
}
Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . "langs.zip", "admin");
Exemple #5
0
<?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.
 */
$updateDir = dirname(__FILE__) . DS;
Updater::getLanguageService()->importPrefixFromZip($updateDir . 'langs.zip', 'virtualgifts');
Exemple #6
0
<?php

Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'billingpayeer');
Exemple #7
0
<?php

// update languges
Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'yncontactimporter');
//Update database
$dbPrefix = OW_DB_PREFIX;
$sql = <<<EOT
CREATE TABLE IF NOT EXISTS `{$dbPrefix}yncontactimporter_invitation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userId` int(11) NOT NULL,
  `type` enum('email','social') NOT NULL,
  `provider` varchar(64) NOT NULL,
  `friendId` varchar(64) NOT NULL,
  `email` varchar(64) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT 'email or name',
  `message` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `isUsed` tinyint(1) NOT NULL DEFAULT '0',
  `sentTime` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1;

CREATE TABLE IF NOT EXISTS `{$dbPrefix}yncontactimporter_joined` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userId` int(11) NOT NULL,
  `inviterId` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1;

CREATE TABLE IF NOT EXISTS `{$dbPrefix}yncontactimporter_statistic` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userId` int(11) NOT NULL,
  `totalSent` int(11) NOT NULL DEFAULT '0',
Exemple #8
0
<?php

$db = Updater::getDbo();
$logger = Updater::getLogger();
$tblPrefix = OW_DB_PREFIX;
$queryList = array("ALTER TABLE `{$tblPrefix}base_billing_gateway` ADD `hidden` TINYINT(1) NOT NULL DEFAULT '0' AFTER `dynamic`;", "ALTER TABLE `{$tblPrefix}base_attachment` CHANGE `bundle` `bundle` VARCHAR( 128 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ", "ALTER TABLE `{$tblPrefix}base_attachment` CHANGE `bundle` `bundle` VARCHAR( 128 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ", "ALTER TABLE `{$tblPrefix}base_attachment` CHANGE `origFileName` `origFileName` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ", "ALTER TABLE `{$tblPrefix}base_attachment` CHANGE `pluginKey` `pluginKey` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ", "ALTER TABLE `{$tblPrefix}base_question_to_account_type` CHANGE `accountType` `accountType` VARCHAR( 32 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ", "ALTER TABLE `{$tblPrefix}base_question_to_account_type` CHANGE `questionName` `questionName` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ", "ALTER TABLE `{$tblPrefix}base_billing_sale` ADD INDEX (`entityKey`) ", "ALTER TABLE `{$tblPrefix}base_billing_sale` ADD INDEX (`entityId`) ", "ALTER TABLE `{$tblPrefix}base_billing_sale` ADD INDEX (`userId`) ", "ALTER TABLE `{$tblPrefix}base_billing_sale` ADD INDEX (`status`) ");
foreach ($queryList as $query) {
    try {
        $db->query($query);
    } catch (Exception $e) {
        $logger->addEntry(json_encode($e));
    }
}
try {
    Updater::getLanguageService()->deleteLangKey('admin', 'pages_page_field_content_desc');
} catch (Exception $e) {
    $logger->addEntry(json_encode($e));
}
UPDATE_LanguageService::getInstance()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'base');
Exemple #9
0
<?php

/**
 * Copyright (c) 2009, 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
 */
$updateDir = dirname(__FILE__) . DS;
Updater::getLanguageService()->importPrefixFromZip($updateDir . 'langs.zip', 'usercredits');
Exemple #10
0
Updater::getLanguageService()->deleteLangKey('admin', 'heading_main_settings');
Updater::getLanguageService()->deleteLangKey('admin', 'heading_user_input_settings');
Updater::getLanguageService()->deleteLangKey('admin', 'heading_page_settings');
Updater::getLanguageService()->deleteLangKey('admin', 'heading_mail_settings');
Updater::getLanguageService()->deleteLangKey('admin', 'themes_choose_page_title');
Updater::getLanguageService()->deleteLangKey('admin', 'themes_settings_page_title');
Updater::getLanguageService()->deleteLangKey('admin', 'pages_page_heading');
Updater::getLanguageService()->deleteLangKey('admin', 'maintenance_page_heading');
Updater::getLanguageService()->deleteLangKey('admin', 'maintenance_section_label');
Updater::getLanguageService()->deleteLangKey('admin', 'splash_screen_section_label');
Updater::getLanguageService()->deleteLangKey('admin', 'widgets_admin_profile_heading');
Updater::getLanguageService()->deleteLangKey('admin', 'page_title_manage_plugins');
Updater::getLanguageService()->deleteLangKey('admin', 'manage_plugins_available_box_cap_label');
Updater::getLanguageService()->deleteLangKey('admin', 'manage_plugins_add_box_cap_label');
Updater::getLanguageService()->deleteLangKey('admin', 'heading_mobile_settings');
Updater::getLanguageService()->deleteLangKey('admin', 'mobile_settings_tabe_heading');
UPDATE_LanguageService::getInstance()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'admin');
$db = Updater::getDbo();
$logger = Updater::getLogger();
$tblPrefix = OW_DB_PREFIX;
$queryList = array();
$queryList[] = 'UPDATE `' . $tblPrefix . 'base_menu_item` SET `order` = `order` + 1 WHERE `type` = "admin_users" AND `order` > 1';
$queryList[] = 'UPDATE `' . $tblPrefix . 'base_menu_item` SET `type`  = "admin_users", `order` = 2 WHERE `key` = "sidebar_menu_item_permission_moders"';
$queryList[] = 'UPDATE `' . $tblPrefix . 'base_menu_item` SET `order` = `order` + 1 WHERE `key` = "sidebar_menu_item_plugin_mass_mailing"';
$queryList[] = 'UPDATE `' . $tblPrefix . 'base_menu_item` SET `order` = `order` - 1 WHERE `key` = "sidebar_menu_item_restricted_usernames"';
$queryList[] = 'UPDATE `' . $tblPrefix . 'base_menu_item` SET `key`   = "sidebar_menu_item_general" WHERE `key` = "sidebar_menu_item_main_settings"';
$queryList[] = 'INSERT INTO `' . $tblPrefix . 'base_menu_item` SET `prefix` = "admin", `key` = "sidebar_menu_item_content_settings", `type` = "admin_settings", `order` = 3, `visibleFor` = 3, `newWindow` = NULL, `routePath` = "admin_settings_user_input"';
$queryList[] = 'INSERT INTO `' . $tblPrefix . 'base_menu_item` SET `prefix` = "admin", `key` = "sidebar_menu_item_page_settings", `type` = "admin_settings", `order` = 4, `visibleFor` = 3, `newWindow` = NULL, `routePath` = "admin_settings_page"';
$queryList[] = 'UPDATE `' . $tblPrefix . 'base_menu_item` SET `order` = 5 WHERE `key` = "sidebar_menu_item_settings_language"';
$queryList[] = 'DELETE FROM `' . $tblPrefix . 'base_menu_item` WHERE `key` = "sidebar_menu_themes_add"';
$queryList[] = 'UPDATE `' . $tblPrefix . 'base_menu_item` SET `order` = 1, `key` = "sidebar_menu_item_themes" WHERE `key` = "sidebar_menu_item_theme_choose"';
Exemple #11
0
<?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'),
Exemple #12
0
<?php

/**
 * Copyright (c) 2011, Oxwall CandyStore
 * All rights reserved.
 * This software is intended for use with Oxwall Free Community Software http://www.oxwall.org/ and is
 * licensed under The BSD license.
 */
/**
 * /init.php
 * 
 * @author Oxwall CandyStore <*****@*****.**>
 * @package ow.ow_plugins.ocs_topusers
 * @since 1.2.6
 */
$updateDir = dirname(__FILE__) . DS;
Updater::getLanguageService()->importPrefixFromZip($updateDir . 'langs.zip', 'ocstopusers');
Exemple #13
0
<?php

Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', "pcgallery");
Exemple #14
0
<?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::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'virtualgifts');
Exemple #15
0
<?php

/**
 * Copyright (c) 2014, Skalfa LLC
 * All rights reserved.
 *
 * ATTENTION: This commercial software is intended for exclusive use with SkaDate Dating Software (http://www.skadate.com) and is licensed under SkaDate Exclusive License by Skalfa LLC.
 *
 * Full text of this license can be found at http://www.skadate.com/sel.pdf
 */
Updater::getLanguageService()->importPrefixFromZip(dirname(dirname(dirname(__FILE__))) . DS . 'langs.zip', 'hotlist');
Exemple #16
0
<?php

/**
 * This software is intended for use with Oxwall Free Community Software http://www.oxwall.org/ and is a proprietary licensed product. 
 * For more information see License.txt in the plugin folder.
 * ---
 * Copyright (c) 2012, Purusothaman Ramanujam
 * All rights reserved.
 * Redistribution and use in source and binary forms, with or without modification, are not permitted provided.
 * This plugin should be bought from the developer by paying money to PayPal account (purushoth.r@gmail.com).
 * 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::getLanguageService()->importPrefixFromZip(OW::getPluginManager()->getPlugin('ivideo')->getRootDir() . 'langs.zip', 'ivideo');
$ivideo = OW::getPluginManager()->getPlugin('ivideo');
$staticDir = OW_DIR_STATIC_PLUGIN . $ivideo->getModuleName() . DS;
UTIL_File::removeDir($staticDir);
UTIL_File::copyDir($ivideo->getStaticDir(), $staticDir);
if (!OW::getConfig()->configExists('ivideo', 'ffmpegPath')) {
    OW::getConfig()->addConfig('ivideo', 'ffmpegPath', '', '');
}
//Updater::getConfigService()->saveConfig('ivideo', 'allowedExtensions', 'mp4,flv,avi,wmv,swf,mov,mpg,3g2,ram');
OW::getDbo()->query("alter table " . OW_DB_PREFIX . "ivideo_videos add column privacy varchar(50) NOT NULL default 'everybody'");
Exemple #17
0
 * use this file except in compliance with the License. You may obtain a copy
 * of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
try {
    $sql = "SHOW COLUMNS FROM `" . OW_DB_PREFIX . "video_clip` LIKE 'plugin';";
    $cols = Updater::getDbo()->queryForList($sql);
    if (!count($cols)) {
        $sql = "ALTER TABLE `" . OW_DB_PREFIX . "video_clip` ADD `plugin` VARCHAR(255) NULL DEFAULT 'video' ; ";
        Updater::getDbo()->queryForList($sql);
    }
} catch (Exception $e) {
}
@Updater::getLanguageService()->importPrefixFromZip(dirname(dirname(dirname(__FILE__))) . DS . 'langs.zip', 'spvideolite');
// refresh static cache
$plugin = OW::getPluginManager()->getPlugin('spvideolite');
$staticDir = OW_DIR_STATIC_PLUGIN . $plugin->getModuleName() . DS;
$pluginStaticDir = OW_DIR_PLUGIN . $plugin->getModuleName() . DS . 'static' . DS;
if (file_exists($staticDir)) {
    UTIL_File::removeDir($staticDir);
}
mkdir($staticDir);
chmod($staticDir, 0777);
UTIL_File::copyDir($pluginStaticDir, $staticDir);
Exemple #18
0
<?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.
 */
$languages = Updater::getLanguageService()->getLanguages();
foreach ($languages as $lang) {
    if ($lang->tag == 'en') {
        break;
    }
}
Updater::getLanguageService()->addOrUpdateValue($lang->id, 'admin', 'invite_members_textarea_invitation_text', 'Enter list of emails (max {$limit}, one email per line)');
Exemple #19
0
<?php

$updateDir = dirname(__FILE__) . DS;
Updater::getLanguageService()->importPrefixFromZip($updateDir . 'langs.zip', 'newsfeed');
OW::getNavigation()->addMenuItem(OW_Navigation::MOBILE_TOP, 'newsfeed_view_feed', 'newsfeed', 'newsfeed_feed', OW_Navigation::VISIBLE_FOR_ALL);
Exemple #20
0
 * ---
 * 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.
 */
$languages = BOL_LanguageService::getInstance()->getLanguages();
foreach ($languages as $lang) {
    if ($lang->tag == 'en') {
        break;
    }
}
Updater::getLanguageService()->addOrUpdateValue($lang->id, 'friends', 'friend_request_was_sent', 'Friend request was sent');
Updater::getLanguageService()->addOrUpdateValue($lang->id, 'friends', 'cancel_request', 'Cancel');
Exemple #21
0
<?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.
 */
$adminKeysToDelete = array("ads_add_banner", "ads_add_banner_code_desc", "ads_add_banner_code_label", "ads_add_banner_country_desc", "ads_add_banner_country_label", "ads_add_banner_submit_label", "ads_add_banner_title_label", "ads_banners_add_floatbox_label", "ads_banners_count_label", "ads_banner_add_success_message", "ads_banner_all_region", "ads_banner_delete_success_message", "ads_banner_edit_success_message", "ads_delete_banner_confirm_message", "ads_delete_button_label", "ads_edit_banner_button_label", "ads_edit_banner_submit_label", "ads_index_list_box_cap_label", "ads_manage_add_banners_message", "ads_manage_global_label", "ads_manage_select_plugin_text", "advertisement_menu_banner_list", "advertisement_menu_manage_banners", "input_settings_allow_photo_upload_label", "page_heading_ads", "page_title_ads", "questions_config_range_label", "sidebar_menu_item_ads");
foreach ($adminKeysToDelete as $key) {
    Updater::getLanguageService()->deleteLangKey("admin", $key);
}
Exemple #22
0
    Updater::getLanguageService()->deleteLangKey('admin', 'question_possible_values_label');
    Updater::getLanguageService()->deleteLangKey('admin', 'questions_matched_question_values');
    Updater::getLanguageService()->deleteLangKey('base', 'local_page_meta_tags_page-119658');
    Updater::getLanguageService()->deleteLangKey('base', 'form_validate_common_error_message');
    Updater::getLanguageService()->addValue('base', 'local_page_meta_tags_page-119658', ' ');
    Updater::getLanguageService()->addValue('base', 'local_page_meta_tags_page_81959573', ' ');
} catch (Exception $e) {
    $logger->addEntry(json_encode($e));
}
if (defined('SOFT_PACK')) {
    try {
        Updater::getLanguageService()->deleteLangKey('base', 'welcome_letter_template_html');
        Updater::getLanguageService()->addValue('base', 'welcome_letter_template_html', 'Welcome to <a href="{$site_url}">{$site_name}</a>! Thanks for joining us. Here are some quick links that you need to find your way around:<br/><br />

- <a href="{$site_url}">Main page</a> - welcome!<br/>
- <a href="{$site_url}profile/edit">Change profile details</a> - again, people will only engage if they get some impression of you. Invest time in your profile;<br/>
- <a href="{$site_url}users/search">Look who\'s in</a><br/><br />

We are eager to send many dates your way!<br/><br />

<a href="{$site_url}">{$site_name}</a> administration<br/>');
    } catch (Exception $e) {
        $logger->addEntry(json_encode($e));
    }
}
try {
    Updater::getLanguageService()->addValue('base', 'no_items', 'No items');
} catch (Exception $e) {
    $logger->addEntry(json_encode($e));
}
UPDATE_LanguageService::getInstance()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'base');
Exemple #23
0
/**
 * 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.
 */
$langService = Updater::getLanguageService();
$keys = array('reply_to_chat_message_promoted', 'reply_to_message_promoted', 'send_chat_message_promoted', 'send_message_promoted');
foreach ($keys as $key) {
    $langService->deleteLangKey('mailbox', $key);
}
$langService->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'mailbox');
Exemple #24
0
 * ---
 * 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.
 */
if (!defined('OW_PLUGIN_XP')) {
    $fbconnect = OW::getPluginManager()->getPlugin('fbconnect');
    $staticDir = OW_DIR_STATIC_PLUGIN . $fbconnect->getModuleName() . DS;
    UTIL_File::removeDir($staticDir);
    UTIL_File::copyDir($fbconnect->getStaticDir(), $staticDir);
}
$updateDir = dirname(__FILE__) . DS;
Updater::getLanguageService()->importPrefixFromZip($updateDir . 'langs.zip', 'fbconnect');
Exemple #25
0
}
$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');
}
if (!$config->configExists('oaseo', 'update_freq')) {
    $config->addConfig('oaseo', 'update_freq', 604800);
}
if (!$config->configExists('oaseo', 'update_ts')) {
    $config->addConfig('oaseo', 'update_ts', 0);
}
if (!$config->configExists('oaseo', 'inform')) {
    $config->addConfig('oaseo', 'inform', '["google"]');
}
if (!$config->configExists('oaseo', 'sitemap_init')) {
    $config->addConfig('oaseo', 'sitemap_init', 0);
}
Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'oaseo');
Exemple #26
0
<?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');
Exemple #27
0
<?php

/**
 * Copyright (c) 2014, Skalfa LLC
 * All rights reserved.
 *
 * ATTENTION: This commercial software is intended for exclusive use with SkaDate Dating Software (http://www.skadate.com) and is licensed under SkaDate Exclusive License by Skalfa LLC.
 *
 * Full text of this license can be found at http://www.skadate.com/sel.pdf
 */
Updater::getLanguageService()->importPrefixFromZip(dirname(dirname(dirname(__FILE__))) . DS . 'langs.zip', 'matchmaking');
$example = new OW_Example();
$example->andFieldEqual('name', 'about_my_match');
$matchSection = BOL_QuestionSectionDao::getInstance()->findObjectByExample($example);
if (empty($matchSection)) {
    $matchSection = new BOL_QuestionSection();
    $matchSection->name = 'about_my_match';
    $matchSection->sortOrder = 1;
    $matchSection->isHidden = 0;
    BOL_QuestionSectionDao::getInstance()->save($matchSection);
}
$dbPrefix = OW_DB_PREFIX;
try {
    $sql = "UPDATE `{$dbPrefix}base_question` SET `onJoin` = '1', `required` = '1' WHERE `name` = 'match_age' OR `name`='birthdate'";
    Updater::getDbo()->query($sql);
} catch (Exception $e) {
}
try {
    $sql = "UPDATE `{$dbPrefix}base_question` SET `sectionName` = 'about_my_match', `onEdit` = 0, `onJoin` = 0 WHERE `name` <> 'match_age' AND `name`<>'match_sex' AND `parent` <> '' AND `parent` IS NOT NULL";
    Updater::getDbo()->query($sql);
} catch (Exception $e) {
Exemple #28
0
        $sql = " UPDATE `" . OW_DB_PREFIX . "base_user` u INNER JOIN `" . OW_DB_PREFIX . "base_question_data` d ON ( u.id = d.userId  )\n\n            SET u.accountType =  '" . Updater::getDbo()->escapeString($accountType->name) . "'\n\n           WHERE d.questionName = 'sex' AND d.`intValue` = '" . Updater::getDbo()->escapeString($value->value) . "' ";
        Updater::getDbo()->query($sql);
    } catch (Exception $e) {
        print_r($e);
    }
    try {
        $sql = " REPLACE INTO `" . OW_DB_PREFIX . "base_question_to_account_type` ( `questionName`, `accountType` ) SELECT q.name, a.name\n        FROM  `" . OW_DB_PREFIX . "base_question` q, `" . OW_DB_PREFIX . "base_question_account_type` a\n        WHERE 1 ";
        Updater::getDbo()->query($sql);
    } catch (Exception $e) {
        print_r($e);
    }
}
Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'skadate');
try {
    Updater::getLanguageService()->deleteLangKey('base', 'questions_question_9f427b5a957edde93cc955fa13971799_label');
    Updater::getLanguageService()->addValue('base', 'questions_question_9f427b5a957edde93cc955fa13971799_label', 'About the person I want to meet');
} catch (Exception $ex) {
    print_r($ex);
}
try {
    $sql = "CREATE TABLE IF NOT EXISTS `" . OW_DB_PREFIX . "skadate_speedmatch_relation` (\n    `id` int(11) NOT NULL AUTO_INCREMENT,\n      `userId` int(11) NOT NULL,\n      `oppUserId` int(11) NOT NULL,\n      `status` tinyint(1) NOT NULL DEFAULT '0',\n      `addTimestamp` int(11) NOT NULL,\n      PRIMARY KEY (`id`),\n      UNIQUE KEY `relation` (`userId`,`oppUserId`),\n      KEY `oppUserId` (`oppUserId`),\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_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);
}
Exemple #29
0
 * 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.
 */
$exArr = array();
$moduleName = 'ajaxim';
try {
    @unlink(OW_DIR_STATIC_PLUGIN . $moduleName . DS . 'js' . DS . 'ajaxim.js');
    @copy(OW_DIR_PLUGIN . $moduleName . DS . 'static' . DS . 'js' . DS . 'ajaxim.js', OW_DIR_STATIC_PLUGIN . $moduleName . DS . 'js' . DS . 'ajaxim.js');
} catch (Exception $e) {
    $exArr[] = $e;
}
Updater::getLanguageService()->importPrefixFromZip(dirname(dirname(dirname(__FILE__))) . DS . 'langs.zip', $moduleName);
Exemple #30
0
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 {
    OW::getNavigation()->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));
}
try {
    Updater::getLanguageService()->deleteLangKey('base', 'avatar_back_profile_edit');
    Updater::getLanguageService()->deleteLangKey('admin', 'questions_delete_account_type_confirmation');
    Updater::getLanguageService()->deleteLangKey('admin', 'questions_admin_add_new_values');
    Updater::getLanguageService()->deleteLangKey('base', 'questions_admin_add_new_values');
    Updater::getLanguageService()->deleteLangKey('base', 'questions_possible_values_label');
    Updater::getLanguageService()->deleteLangKey('base', 'question_possible_values_label');
    Updater::getLanguageService()->deleteLangKey('admin', 'questions_possible_values_label');
    Updater::getLanguageService()->deleteLangKey('admin', 'question_possible_values_label');
    Updater::getLanguageService()->deleteLangKey('admin', 'questions_matched_question_values');
    Updater::getLanguageService()->deleteLangKey('base', 'local_page_meta_tags_page-119658');
    Updater::getLanguageService()->deleteLangKey('base', 'form_validate_common_error_message');
    Updater::getLanguageService()->addValue('base', 'local_page_meta_tags_page-119658', ' ');
    Updater::getLanguageService()->addValue('base', 'local_page_meta_tags_page_81959573', ' ');
} catch (Exception $e) {
    $logger->addEntry(json_encode($e));
}
UPDATE_LanguageService::getInstance()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'base');