mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-21 07:53:50 +01:00
28 lines
544 B
PHP
28 lines
544 B
PHP
<?php
|
|
|
|
require_once 'core.php';
|
|
|
|
if (!isset($_REQUEST['noLSsession'])) {
|
|
if ( !LSsession :: startLSsession() ) {
|
|
LSerror :: addErrorCode('LSsession_22');
|
|
$_ERRORS = true;
|
|
}
|
|
}
|
|
else {
|
|
LSsession :: initialize() or die('Error during initialization.');
|
|
}
|
|
|
|
$data=NULL;
|
|
if (!isset($_ERRORS)) {
|
|
$class = $_REQUEST['template'];
|
|
if (LSsession :: loadLSclass($class)) {
|
|
$meth = 'ajax_'.$_REQUEST['action'];
|
|
if (method_exists($class,$meth)) {
|
|
$class :: $meth($data);
|
|
}
|
|
}
|
|
}
|
|
|
|
LSsession :: displayAjaxReturn($data);
|
|
|
|
?>
|