<?php
if($this->bdd_ready() !== true) return;
- if(($config = $data->config()) !== false){
- $this->set_config($config);
- $start_action_params_config =
- $this->config("start_action_params") ?
- @unserialize($this->config("start_action_params"))
- : array();
- $this->set_config(array("start_action_params" => $start_action_params_config));
+
+ if(($config = $data->config()) === false){
+ $this->erreur("Impossible de lire la configuration en base", true);
}
- else $this->erreur("Impossible de lire la configuration en base", true);
+
+ $this->set_config($config);
+
+ $this->set_config(
+ array(
+ "start_action_params" => (
+ $this->config("start_action_params") ?
+ @unserialize($this->config("start_action_params"))
+ : array()
+ )
+ )
+ );
<?php
if($this->bdd_ready() !== true) return;
- if($data->load_session() !== false){
- if($data->init_roles() !== false){
- if($data->init_actions_roles() === false){
- $this->erreur("Impossible de charger les statuts des actions", true);
- }
- }
- else $this->erreur("Impossible de charger les statuts des utilisateurs", true);
+
+ if($data->load_session() === false){
+ $this->erreur("Impossible de charger la session", true);
+ }
+
+ if($data->init_roles() === false){
+ $this->erreur("Impossible de charger les statuts des utilisateurs", true);
+ }
+
+ if($data->init_actions_roles() === false){
+ $this->erreur("Impossible de charger les statuts des actions", true);
}
- else $this->erreur("Impossible de charger la session", true);
<?php
if($this->bdd_ready() !== true) return;
- if($this->init_links()){
- $this->set_link("users/infos", $this->url("users/infos"), "Compte", 10);
- $this->set_link("admin/users", $this->url("admin/users"), "Utilisateurs", 20);
- $this->set_link("config/config", $this->url("config"), "Configuration générale", 10);
- $this->set_link("config/template", $this->url("config/templates"), "Template", 20);
- $this->set_link("config/roles", $this->url("config/roles"), "Rôles", 30);
- $this->set_link("config/plugins", $this->url("config/plugins"), "Plugins", 40);
+
+ if(!$this->init_links()){
+ $this->erreur("impossible de charger les liens", true);
}
- else $this->erreur("impossible de charger les liens", true);
+
+ $this->set_link("users/infos", $this->url("users/infos"), "Compte", 10);
+ $this->set_link("admin/users", $this->url("admin/users"), "Utilisateurs", 20);
+ $this->set_link("config/config", $this->url("config"), "Configuration générale", 10);
+ $this->set_link("config/template", $this->url("config/templates"), "Template", 20);
+ $this->set_link("config/roles", $this->url("config/roles"), "Rôles", 30);
+ $this->set_link("config/plugins", $this->url("config/plugins"), "Plugins", 40);