Exemplo n.º 1
0
function nel_clean_exit($dataforce, $die)
{
    $dataforce['post_links'] = nel_cache_links($dataforce['post_links']);
    nel_write_multi_cache($dataforce);
    if ($die) {
        die;
    }
    if (STUFF_DONE) {
        echo '<meta http-equiv="refresh" content="10;URL=' . PHP_SELF2 . PHP_EXT . '">';
    } else {
        echo '<meta http-equiv="refresh" content="1;URL=' . PHP_SELF2 . PHP_EXT . '">';
    }
    die;
}
Exemplo n.º 2
0
<?php

if (!defined('NELLIEL_VERSION')) {
    die("NOPE.AVI");
}
// Cached settings
if (!file_exists(CACHE_PATH . 'parameters.nelcache')) {
    nel_cache_settings($dbh);
}
require_once CACHE_PATH . 'parameters.nelcache';
// Cached rules, post links and template info cache
if (!file_exists(CACHE_PATH . 'multi-cache.nelcache')) {
    nel_write_multi_cache($dataforce, $template_info);
}
require_once CACHE_PATH . 'multi-cache.nelcache';
//
// Cache the posting rules
//
function nel_cache_rules($dbh)
{
    $gmode = '';
    $amode = '';
    $vmode = '';
    $dmode = '';
    $rmode = '';
    $omode = '';
    $result = $dbh->query('SELECT * FROM ' . CONFIGTABLE . ' WHERE config_type IN ("filetype_allow_g","filetype_allow_a","filetype_allow_o","filetype_allow_p","filetype_allow_d","filetype_allow_r")');
    $config_list = $result->fetchALL(PDO::FETCH_ASSOC);
    $result_count = count($config_list);
    $config_list2 = array();
    foreach ($config_list as $array) {