예제 #1
0
파일: sys.php 프로젝트: philum/cms
//refresh_cache
if (!$_SESSION['qb'] or !$_SESSION['qda'] or $_GET['qd'] or $_GET['id'] or $_GET['nbj']) {
    $cache_refresh = "ok";
}
// or $_SESSION['prmb'][0]!=$_SESSION['qb']
//master_params
if (!$_SESSION['qd'] or $cache_refresh == "ok") {
    master_params('../params/_' . $db, $qd, $aqb, $subd);
}
//hubs
if (!$_SESSION['mn'] or $cache_refresh == "ok") {
    define_hubs();
}
//qb :: need $mn
if (!$_GET['nbj'] && $cache_refresh == "ok") {
    define_qb($defo);
}
$qb = $_SESSION['qb'];
if ($_GET['nbj']) {
    $_SESSION['dayb'] = calc_date($_GET['nbj']);
} else {
    $_SESSION['dayb'] = calc_date(30);
}
//$_SESSION['nbj']=dayslength($_SESSION['qb'],50);
//deductions
$read = $_GET['read'];
$cache_refresh = deductions_from_read($read, $cache_refresh);
//qb_in
if (!$_SESSION['qbin'] or $cache_refresh) {
    define_config();
}
예제 #2
0
파일: ajax.php 프로젝트: philum/cms
<?php

//philum_ajax_hangar
session_start();
error_report();
$_SESSION['onload'] = '';
if (!$_SESSION['stime']) {
    req('boot,art,spe');
    master_params('params/_' . $db, $qd, $aqb, $subd);
    define_hubs();
    define_qb();
    define_config();
    time_system($cache);
    cache_arts();
    define_cats_rqt();
    define_condition();
    define_clr();
}
if (!$_SESSION['picto']) {
    $_SESSION['picto'] = msql_read('system', 'edition_pictos', '', 1);
}
$res = $_GET['res'];
if (substr($res, -1) == '_') {
    $res = substr($res, 0, -1);
}
list($n, $id, $va, $opt, $optb) = ajxr($_GET['callj']);
$sz = $_GET['sz'];
$pp = $_GET['popup'];
$ar = array('plug' => 1, 'plup' => 1, 'plugin' => 1, 'plupin' => 1, 'titsav' => 1, 'popbub' => 1, 'call' => 1, 'callp' => 1);
if (!$ar[$n]) {
    require_once 'prog' . $b . '/ajxf.php';
예제 #3
0
파일: boot.php 프로젝트: philum/cms
function reboot()
{
    require 'params/_connectx.php';
    req('art,spe,pop');
    master_params('params/_' . $db, $qd, $aqb, $subd);
    $_SESSION['dayx'] = time();
    define_hubs();
    define_qb();
    define_config();
    eye_iq();
    log_mods();
    define_auth();
    //if($_SESSION['rstr'][22])block_crawls();
    time_system('ok');
    cache_arts();
    define_cats_rqt();
    define_condition();
    define_clr();
}