예제 #1
0
파일: update.php 프로젝트: vazahat/dudex
<?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');
예제 #2
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');
예제 #3
0
파일: update.php 프로젝트: vazahat/dudex
<?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');