示例#1
0
/**
 * Implements the {stacktrace} plugin for use in templates.
 *
 * The {stacktrace} tag does not output anything. Instead, it loads
 * a stacktrace into the template variables {$stacktrace}, which is
 * an array of elements, each with a 'title' and 'url' field.
 *
 * <b>Example:</b>
 * <code>
 *   {stacktrace}
 *
 *   {foreach from=$stacktrace item=item}
 *     <a href="{$item.url}">{$item.title}</a>
 *   {/foreach}
 * </code>
 *
 * @author Ivo Jansch <*****@*****.**>
 *
 */
function smarty_function_stacktrace($params, &$smarty)
{
    if (atkConfig::getGlobal('stacktrace')) {
        global $g_sessionManager;
        if (is_object($g_sessionManager)) {
            $smarty->assign("stacktrace", $g_sessionManager->stackTrace());
            return "";
        }
    }
    return "";
}
示例#2
0
 * @author Ivo Jansch <*****@*****.**>
 *
 * @copyright (c)2000-2004 Ibuildings.nl BV
 * @license http://www.achievo.org/atk/licensing ATK Open Source License
 *
 * @version $Revision: 4845 $
 * $Id$
 */
/**
 * @internal includes
 */
$config_atkroot = "./";
include_once "atk.inc";
atksession();
// check autorefresh call
if (atkConfig::getGlobal('session_autorefresh') && array_key_exists(atkConfig::getGlobal('session_autorefresh_key'), $_GET)) {
    die(session_id());
}
atksecure();
$theme =& atkinstance('atk.ui.atktheme');
if (atkconfig("fullscreen")) {
    // Fullscreen mode. Use index.php as launcher, and launch app.php fullscreen.
    atksession();
    atksecure();
    $page =& atknew("atk.ui.atkpage");
    $ui =& atkinstance("atk.ui.atkui");
    $theme =& atkTheme::getInstance();
    $output =& atkOutput::getInstance();
    $page->register_style($theme->stylePath("style.css"));
    $page->register_script(atkconfig("atkroot") . "atk/javascript/launcher.js");
    $content = '<script language="javascript">atkLaunchApp(); </script>';