schau mal ich hab da was gefunden modules.php
da wird sehr vieldefiniert auch mit sessions und so.
da kann man doch bestimtm was einbauen oder?
da wird sehr vieldefiniert auch mit sessions und so.
da kann man doch bestimtm was einbauen oder?
PHP-Code:
<?php
// ----------------------------------------------------------------------
// eNvolution Content Management System
// Copyright (C) 2002 by the eNvolution Development Team.
// [url]http://www.envolution.com/[/url]
// ----------------------------------------------------------------------
// Based on:
// Postnuke Content Management System - [url]www.postnuke.com[/url]
if (phpversion() >= "4.2.0") {
if ( ini_get('register_globals') != 1 ) {
$supers = array('_REQUEST',
'_ENV',
'_SERVER',
'_POST',
'_GET',
'_COOKIE',
'_SESSION',
'_FILES',
'_GLOBALS' );
foreach( $supers as $__s) {
if ( (isset($$__s) == true) && (is_array( $$__s ) == true) ) extract( $$__s, EXTR_OVERWRITE );
}
unset($supers);
}
} else {
if ( ini_get('register_globals') != 1 ) {
$supers = array('HTTP_POST_VARS',
'HTTP_GET_VARS',
'HTTP_COOKIE_VARS',
'GLOBALS',
'HTTP_SESSION_VARS',
'HTTP_SERVER_VARS',
'HTTP_ENV_VARS'
);
foreach( $supers as $__s) {
if ( (isset($$__s) == true) && (is_array( $$__s ) == true) ) extract( $$__s, EXTR_OVERWRITE );
}
unset($supers);
}
}
switch ($op) {
case 'modload':
define("LOADED_AS_MODULE", "1");
include_once 'includes/pnAPI.php';
if(!function_exists('pnsessionsetup')){
pnInit();
}
include_once 'includes/legacy.php';
// Browser check
$client = $GLOBALS['client'];
if( ($client->browser_is("ie5.5+")) && ($client->property('platform') == "win") ) {
$ie_ok = 1;
} else {
$ie_ok = 0;
}
//Verifica esistenza modulo altrimenti rimanda ad error.php
//Verifica se il modulo è attivato o meno
if (!file_exists('modules/' . pnVarPrepForOS($name) . '/' .
pnVarPrepForOS($file) . '.php')) {
pnRedirect(pnModURL('Errore', 'admin', 'main', array('op' => 'noexist','modname' => $name)));
break;
}
if (!pnModAvailable($name)) {
pnRedirect(pnModURL('Errore', 'admin', 'main', array('op' => 'noactive','modname' => $name)));
break;
}
// include of RTE-class, start buffer
//
if ((pnModGetVar('RteMulti','RteEnable')==1)and(pnModAvailable('RteMulti'))and($ie_ok)) {
include_once( "modules/RteMulti/pnRTEHTML.php" );
ob_start();
}
// End include
//
include 'modules/'.pnVarPrepForOS($name).'/'.pnVarPrepForOS($file).'.php';
//
//
// Begin buffering and manipulating
if ((pnModGetVar('RteMulti','RteEnable')==1)and(pnModAvailable('RteMulti'))and($ie_ok)) {
$return=ob_get_contents();
ob_end_clean();
$output = new pnRTEHTML();
if (!pnModAPILoad('rtemulti', 'user')) {
$output->Text(_LOADFAILED);
return $output->GetOutput();
}
$output->SetInputMode(_PNH_VERBATIMINPUT);
$return = pnModAPIFunc('rtemulti',
'user',
'getinfo',
array('original' => $return,
'modname' => pnVarPrepForOS($name)));
$output->TextHTML($return);
$output->SetInputMode(_PNH_PARSEINPUT);
$output->PrintPage();
}
// End of buffering (that's all !!)
//
//
if (function_exists('session_write_close')) {
session_write_close();
} else {
// Hack for old versions of PHP with bad session save
$sessvars = '';
foreach ($GLOBALS as $k => $v) {
if ((preg_match('/^PNSV/', $k)) &&
(isset($v))) {
$sessvars .= "$k|" . serialize($v);
}
}
pnSessionWrite(session_id(), $sessvars);
}
break;
default:
die ("Sorry, you can't access this file directly...");
break;
}
?>
Kommentar