示例#1
0
//------------------------------------------------------------------------------
if (defined('E_STRICT')) {
    // Suppress Strict Standards Warnings
    error_reporting(E_ALL);
}
//------------------------------------------------------------------------------
umask(02);
// Added to make created files/dirs group writable
//------------------------------------------------------------------------------
require_once dirname(__FILE__) . "/include/init.php";
// Init
if (!@is_object($my) && is_callable(array('jfactory', 'getuser'))) {
    $my = JFactory::getUser();
}
if (@is_object($my)) {
    if (ext_isJoomla('1.6', '>=')) {
        $access = $my->authorise('core.admin');
    } else {
        $access = $my->usertype == 'Super Administrator';
    }
    if (!$access) {
        $url = htmlspecialchars($_SERVER['PHP_SELF']);
        if (headers_sent()) {
            echo "<script>document.location.href='{$url}';</script>\n";
        } else {
            @ob_end_clean();
            // clear output buffer
            header('HTTP/1.1 403 Forbidden');
            header("Location: " . $url);
        }
    }
示例#2
0
		';
}
?>
    
}
if( typeof Ext == 'undefined' ) {
	document.location = '<?php 
echo basename($GLOBALS['script_name']);
?>
?option=com_extplorer&nofetchscript=1';
}

function startExtplorer() {
	if(Ext.isIE){
		// As this file is included inline (because otherwise it would throw Element not found JS errors in IE)
		// we need to run the init function onLoad, not onDocumentReady in IE
		Ext.EventManager.addListener(window, "load", ext_init );
	} else {
		// Other Browsers eat onReady
		Ext.onReady( ext_init );
	}
}
<?php 
if (ext_isJoomla('1.0.13', '=')) {
    echo "\tExt.Msg.confirm('Joomla! = 1.0.13 detected', 'eXtplorer is not compatible with Joomla! 1.0.13. But if you have applied the <br /><a href=\"http://forum.joomla.org/index.php/topic,193707.msg943504.html#msg943504\">Hotfix for Joomla! 1.0.13</a>, you can continue.<br />'\r\n\t\t\t\t\t\t\t\t\t\t+\t'<b>Do you have a &quot;hotfixed&quot; version of Joomla! 1.0.13?</b>', function(btn) {  if( btn == 'no' ) document.location='index2.php'; else startExtplorer(); } );\n";
} else {
    echo 'startExtplorer();';
}
?>
</script>