Exemplo n.º 1
0
        }
    } else {
        if ($option == 'cookiecheck') {
            // No cookie was set upon login. If it is set now, redirect to the given page. Otherwise, show error message.
            if (isset($_COOKIE[mosMainFrame::sessionCookieName()])) {
                mosRedirect($return);
            } else {
                mosErrorAlert(_ALERT_ENABLED);
            }
        }
    }
}
// detect first visit
$mainframe->detect();
// set for overlib check
$mainframe->set('loadOverlib', false);
$gid = intval($my->gid);
// gets template for page
$cur_template = $mainframe->getTemplate();
/** temp fix - this feature is currently disabled */
/** @global A places to store information from processing of the component */
$_MOS_OPTION = array();
// precapture the output of the component
require_once $mosConfig_absolute_path . '/editor/editor.php';
ob_start();
if ($path = $mainframe->getPath('front')) {
    $task = strval(mosGetParam($_REQUEST, 'task', ''));
    $ret = mosMenuCheck($Itemid, $option, $task, $gid);
    if ($ret) {
        require_once $path;
    } else {
Exemplo n.º 2
0
echo $mainframe->getTemplate();
?>
/css/template_css.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php 
echo $mainframe->getTemplate();
?>
/css/theme.css" type="text/css" />
<script language="JavaScript" src="../includes/js/JSCookMenu_mini.js" type="text/javascript"></script>
<script language="JavaScript" src="includes/js/ThemeOffice/theme.js" type="text/javascript"></script>
<script language="JavaScript" src="../includes/js/joomla.javascript.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; <?php 
echo _ISO;
?>
" />
<?php 
$mainframe->set('loadEditor', true);
include_once $mosConfig_absolute_path . '/editor/editor.php';
initEditor();
?>
</head>
<body>
<?php 
if ($mosmsg) {
    if (!get_magic_quotes_gpc()) {
        $mosmsg = addslashes($mosmsg);
    }
    echo "\n<script language=\"javascript\" type=\"text/javascript\">alert('{$mosmsg}');</script>";
}
// Show list of items to edit or delete or create new
if ($path = $mainframe->getPath('admin')) {
    require $path;