示例#1
0
function load_themes()
{
    if (isset($_POST['fiyo_logout'])) {
        $db = new FQuery();
        $qr = $db->delete(FDBPrefix . "session_login", "user_id=" . $_SESSION['USER_ID']);
        $_SESSION['USER'] = null;
        $_SESSION['USER_ID'] = null;
        $_SESSION['USER_LOG'] = null;
        $_SESSION['USER_NAME'] = null;
        $_SESSION['USER_EMAIL'] = null;
        $_SESSION['USER_LEVEL'] = null;
        redirect(getUrl());
    } else {
        redirect_www();
        select_themes('index');
    }
}
示例#2
0
文件: plg_sef.php 项目: mul14/FiyoCMS
<?php

/**
* @name			Plugin SEF
* @version		1.5.0
* @package		Fiyo CMS
* @copyright	Copyright (C) 2012 Fiyo CMS.
* @license		GNU/GPL, see LICENSE.txt
*/
defined('_FINDEX_') or die('Access Denied');
/************* SEF PAGINATION FUNCTION ***********

/*
* load FiSef system
*/
require 'plg_system.php';
redirect_www();
redirect_link();