/**
  * 
  * @return \ActionsAdminAdministrateur
  */
 public static function getInstance()
 {
     if (self::$instance === false) {
         self::$instance = new ActionsAdminAdministrateur();
     }
     return self::$instance;
 }
Пример #2
0
require_once "auth.php";
require_once "../fonctions/divers.php";
if (!est_autorise("acces_configuration")) {
    exit;
}
$request = \Symfony\Component\HttpFoundation\Request::createFromGlobals();
$errorCode = 0;
$errorMessage = "";
$errorMultiple = false;
$errorMultipleArray = array();
if (false == ($langue = $request->get("lang", false))) {
    $langue = ActionsLang::instance()->get_id_langue_courante();
}
try {
    ActionsAdminAdministrateur::getInstance()->action($request);
} catch (TheliaAdminException $e) {
    Tlog::error($e->getMessage());
    $errorCode = $e->getCode();
    $errorMessage = $e->getMessage();
    if ($e->getCode() == TheliaAdminException::ADMIN_MULTIPLE_ERRORS) {
        $errorMultiple = true;
        $errorMultipleArray = $e->getData();
    }
}
$administrateur = new Administrateur();
$langs = LangAdmin::getInstance()->getList();
?>
<!DOCTYPE html>
<html lang="fr">
    <head>