Ejemplo n.º 1
0
function cs_content_append($content)
{
    global $account, $cs_main;
    if (!empty($cs_main['sec_remote']) and $account['access_clansphere'] > 4 and ($cs_main['sec_news'] > $cs_main['sec_last'] or cs_time() - $cs_main['sec_time'] > 9000)) {
        require_once 'mods/clansphere/sec_func.php';
        $content = cs_cspnews() . $content;
    }
    if (($cs_main['action'] == 'manage' or $cs_main['action'] == 'create' or $cs_main['action'] == 'options') and isset($account['access_' . $cs_main['mod']]) and $account['access_' . $cs_main['mod']] >= 3) {
        require_once 'mods/clansphere/admin_menu.php';
        $content = cs_admin_menu() . $content;
    }
    if ($account['access_clansphere'] > 3 and file_exists('install.php') and !file_exists('.git')) {
        $content = cs_subtemplate(__FILE__, array(), 'clansphere', 'del_install') . $content;
    }
    return $content;
}
Ejemplo n.º 2
0
<?php

// ClanSphere 2010 - www.clansphere.net
// $Id$
require_once 'mods/clansphere/sec_func.php';
echo cs_cspnews(1);