Exemplo n.º 1
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.
 */
$updateDir = dirname(__FILE__) . DS;
try {
    UPDATER::getWidgetService()->deleteWidgetPlace('dashboard-GROUPS_CMP_UserGroupsWidget');
} catch (Exception $e) {
}
Updater::getLanguageService()->importPrefixFromZip($updateDir . 'langs.zip', 'groups');
Exemplo n.º 2
0
 private function writeLog($key)
 {
     $entries = UPDATER::getLogger()->getEntries();
     if (!empty($entries)) {
         $query = "INSERT INTO `{$this->dbPrefix}base_log` (`message`, `type`, `key`, `timeStamp`) VALUES (:message, 'ow_update', :key, :time)";
         try {
             $this->db->query($query, array("message" => json_encode($entries), "key" => $key, "time" => time()));
         } catch (Exception $e) {
         }
     }
 }
Exemplo n.º 3
0
<?php

if (!UPDATER::getConfigService()->configExists('contactimporter', 'google_client_id')) {
    UPDATER::getConfigService()->addConfig('contactimporter', 'google_client_id', '');
}
if (!UPDATER::getConfigService()->configExists('contactimporter', 'google_client_secret')) {
    UPDATER::getConfigService()->addConfig('contactimporter', 'google_client_secret', '');
}
Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'contactimporter');
Exemplo n.º 4
0
/**
 * 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
 */
try {
    $sql = "UPDATE  `" . OW_DB_PREFIX . "base_plugin` SET  `adminSettingsRoute` =  'skadate.settigns' WHERE  `key` = 'skadate'";
    Updater::getDbo()->query($sql);
} catch (Exception $e) {
}
if (!UPDATER::getConfigService()->configExists('skadate', 'license_info')) {
    UPDATER::getConfigService()->addConfig('skadate', 'license_info', json_encode(array()));
}
if (!UPDATER::getConfigService()->configExists('skadate', 'brand_removal')) {
    UPDATER::getConfigService()->addConfig('skadate', 'brand_removal', 0);
}
if (!UPDATER::getConfigService()->configExists('skadate', 'license_key')) {
    UPDATER::getConfigService()->addConfig('skadate', 'license_key', '');
}
if (!UPDATER::getConfigService()->configExists('skadate', 'license_key_valid')) {
    UPDATER::getConfigService()->addConfig('skadate', 'license_key_valid', 0);
}
try {
    UPDATER::getNavigationService()->deleteMenuItem('base', 'mobile_version_menu_item');
} catch (Exception $e) {
}
Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'skadate');
Exemplo n.º 5
0
    }
}
/* ------------------ PLUGIN UPDATE END -------------------- */
/* ----------------- THEME UPDATE ------------------------ */
if (!empty($_GET['theme'])) {
    $query = "SELECT * FROM `" . OW_DB_PREFIX . "base_theme` WHERE `name` = :name";
    $result = $db->queryForRow($query, array('name' => trim($_GET['theme'])));
    // theme not found
    if (empty($result)) {
        $mode = 'theme_empty';
        $hcMessage = "Error! Theme '<b>" . htmlspecialchars($_GET['theme']) . "</b>' not found.";
    } else {
        $xmlInfoArray = (array) simplexml_load_file(OW_DIR_ROOT . 'ow_themes' . DS . $result['name'] . DS . 'theme.xml');
        if ((int) $xmlInfoArray['build'] > (int) $result['build']) {
            $db->query("UPDATE `" . OW_DB_PREFIX . "base_config` SET `value` = 1 WHERE `key` = 'base' AND `name` = 'maintenance'");
            $entries = UPDATER::getLogger()->getEntries();
            if (!empty($entries)) {
                $query = "INSERT INTO `" . OW_DB_PREFIX . "base_log` (`message`, `type`, `key`, `timeStamp`) VALUES (:message, 'ow_update', :key, :time)";
                try {
                    $db->query($query, array('message' => json_encode($entries), 'key' => $result['name'], 'time' => time()));
                } catch (Exception $e) {
                }
            }
            $query = "UPDATE `" . OW_DB_PREFIX . "base_theme` SET `update` = 0 WHERE `name` = :name";
            $db->query($query, array('name' => $result['name']));
            BOL_ThemeService::getInstance()->updateThemeInfo($result['name'], true);
            $mode = 'theme_update_success';
            $hcMessage = "Update Complete! Theme '<b>" . $result['title'] . "</b>' successfully updated.";
            $db->query("UPDATE `" . OW_DB_PREFIX . "base_config` SET `value` = 0 WHERE `key` = 'base' AND `name` = 'maintenance'");
            $db->query("UPDATE `" . OW_DB_PREFIX . "base_config` SET `value` = 1 WHERE `key` = 'base' AND `name` = 'dev_mode'");
        } else {
Exemplo n.º 6
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;
try {
    UPDATER::getWidgetService()->deleteWidget('USERCREDITS_CMP_MyCreditsWidget');
} catch (Exception $e) {
}
Updater::getLanguageService()->importPrefixFromZip($updateDir . 'langs.zip', 'usercredits');
Exemplo n.º 7
0
<?php

/**
 * Copyright (c) 2011 Sardar Madumarov
 * 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 Sardar Madumarov <*****@*****.**>
 * @package oaseo
 * @since 1.0
 */
$dbo = Updater::getDbo();
$sqlErrors = array();
$queries = array("DROP TABLE  `" . OW_DB_PREFIX . "oaseo_data`");
foreach ($queries as $query) {
    try {
        $dbo->query($query);
    } catch (Exception $e) {
        $sqlErrors[] = $e;
    }
}
UPDATER::getConfigService()->saveConfig('oaseo', 'update_ts', 0);
Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'oaseo');
Exemplo n.º 8
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("UPDATE `" . OW_DB_PREFIX . "base_document` SET `uri`='privacy' WHERE `key` = 'page_99448870'");
foreach ($queryList as $query) {
    try {
        Updater::getDbo()->query($query);
    } catch (Exception $e) {
        Updater::getLogger()->addEntry(json_encode($e));
    }
}
UPDATER::getLanguageService()->addOrUpdateValue(1, "base", "page_6820666", "SkaDate Dating Software");
Exemplo n.º 9
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.
 */
$updateDir = dirname(__FILE__) . DS;
try {
    UPDATER::getWidgetService()->deleteWidget('VIRTUALGIFTS_CMP_MyGiftsWidget');
} catch (Exception $e) {
}
Updater::getLanguageService()->importPrefixFromZip($updateDir . 'langs.zip', 'virtualgifts');