Alluidh
06.10.2006, 11:48
Hallo zusammen
Mal eine blöde Frage ... Man kann ja recht einfach eigene PHP Dateien machen und diese in das vB einbinden, wenn der allgemeine Part der Dateien übernommen wird
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'bla1');
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array(
'bla1'
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
Wie kann man es nun machen, dass, wenn ein Benutzer in Gruppe 8 verschoben wird (Gesperrte Benutzer), er dennoch Zugriff auf diese Seite hat, obwohl die global.php hier ja das Verbot ausspricht ...
Gibt es da eine Lösung?
Mal eine blöde Frage ... Man kann ja recht einfach eigene PHP Dateien machen und diese in das vB einbinden, wenn der allgemeine Part der Dateien übernommen wird
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'bla1');
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array(
'bla1'
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
Wie kann man es nun machen, dass, wenn ein Benutzer in Gruppe 8 verschoben wird (Gesperrte Benutzer), er dennoch Zugriff auf diese Seite hat, obwohl die global.php hier ja das Verbot ausspricht ...
Gibt es da eine Lösung?