Esempio n. 1
0
function save_process_main($prg = '')
{
    global $process;
    if (defined('PROGRAM_TYPE')) {
        $prg = empty($prg) ? $GLOBALS['prg'] : $prg;
        $process[PROGRAM_TYPE][$prg] = 1;
    }
    save_process('main', $process);
}
Esempio n. 2
0
 *
 * $Id: paymentlog.php 9643 2010-04-30 08:59:14Z zhaoxiongfei $
 * English by Valery Votintsev at sources.ru
 */
$curprg = basename(__FILE__);
$table_source = $db_source->tablepre . 'paymentlog';
$table_target = $db_target->tablepre . 'common_credit_log';
$limit = $setting['limit']['paymentlog'] ? $setting['limit']['paymentlog'] : 2500;
$step = getgpc('step');
$step = intval($step);
$total = getgpc('total');
$total = intval($total);
$continue = false;
if (!$step && !$process['truncate_credit_log']) {
    $process['truncate_credit_log'] = 1;
    save_process('main', $process);
    $db_target->query("TRUNCATE {$table_target}");
}
$query = $db_source->query("SELECT * FROM " . $db_source->tablepre . "settings WHERE variable IN ('creditstax', 'creditstrans')");
while ($setting = $db_source->fetch_array($query)) {
    if ($setting['variable'] == 'creditstrans') {
        $creditstrans = explode(',', $setting['value']);
        $ext = $creditstrans[1] ? $creditstrans[1] : $creditstrans[0];
        if (!$ext) {
            $ext = 1;
        }
    }
    if ($setting['variable'] == 'creditstax') {
        $creditstax = $setting['value'];
    }
}
Esempio n. 3
0
<?php

/**
 * DiscuzX Convert
 *
 * $Id: config.php 10469 2010-05-11 09:12:14Z monkey $
 * English by Valery Votintsev at sources.ru
 */
if (submitcheck()) {
    $home = array('usergroup' => getgpc('targetgroup'), 'extcredits' => getgpc('extcredits'), 'forum' => getgpc('forum'));
    save_process('home', $home);
} else {
    $sourcegroup = array();
    $targetoption = '';
    $query = $db_source->query("SELECT gid, grouptitle FROM " . $db_source->table('usergroup') . " WHERE system!='0'");
    while ($group = $db_source->fetch_array($query)) {
        $sourcegroup[$group['gid']] = $group['grouptitle'];
    }
    $query = $db_target->query("SELECT groupid, grouptitle FROM " . $db_target->table('common_usergroup') . " WHERE type!='member'");
    while ($group = $db_target->fetch_array($query)) {
        $targetoption .= "<option value=\"{$group['groupid']}\">{$group['grouptitle']}</option>\n";
    }
    $extcredits = '';
    $sourcecredits = array('credit', 'experience');
    $tsetting = $db_target->fetch_first("SELECT * FROM " . $db_target->table('common_setting') . " WHERE skey='extcredits'");
    $tsetting = @unserialize($tsetting['svalue']);
    if (!is_array($tsetting)) {
        showmessage("message_not_enabled_extcredit");
    } else {
        if (count($tsetting) < 8) {
            for ($i = count($tsetting) + 1; $i < 9; $i++) {
Esempio n. 4
0
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_POST["ProcessNice"])) {
    save_process();
    exit;
}
if (isset($_POST["SyslogNgPref"])) {
    save_process();
    exit;
}
if (isset($_POST["MysqlNice"])) {
    save_process();
    exit;
}
if (isset($_GET["js"])) {
    echo js_slider();
    exit;
}
if (isset($_GET["main"])) {
    main_switch();
    exit;
}
if (isset($_GET["status"])) {
    main_status();
    exit;
}
if (isset($_GET["MX_REQUESTS"])) {
Esempio n. 5
0
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.mysql.inc');	
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.backup.inc');
	include_once('ressources/class.os.system.inc');
	
	$users=new usersMenus();
	if(!$users->AsArticaAdministrator){die();}
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["ProcessNice"])){save_process();exit;}
	if(isset($_GET["SyslogNgPref"])){save_process();exit;}
	if(isset($_GET["MysqlNice"])){save_process();exit;}
	if(isset($_GET["js"])){echo js_slider();exit;}
	if(isset($_GET["main"])){main_switch();exit;}
	if(isset($_GET["status"])){main_status();exit;}
	if(isset($_GET["MX_REQUESTS"])){save_mimedefang();exit;}
	if(isset($_GET["main_config_mysql"])){echo main_config_mysql();exit;}
	
	if(isset($_GET["DisableWarnNotif"])){save_index_page();exit;}
	if(isset($_GET["cron-js"])){echo cron_js();exit;}
	if(isset($_GET["cron-popup"])){echo cron_popup();exit;}
	if(isset($_GET["cron-start"])){echo cron_start();exit;}
	if(isset($_GET["cron-apc"])){echo cron_apc();exit;}
	if(isset($_GET["cron-logon"])){cron_logon();exit;}
	if(isset($_GET["LANGUAGE_SELECTOR_REMOVE"])){cron_logon_save();exit;}
	
	if(isset($_GET["apc-cached-file-list"])){echo cron_apc_list();exit;}