예제 #1
0
 public function insert_log_info($c, $username, $namelname)
 {
     $conn = $this->conn($c);
     try {
         $sql_insert_log = "INSERT INTO `studio404_logs` SET `date`=:datex, `namelname`=:namelname, `username`=:username, `browser`=:browser, `os`=:os, `ip`=:ip, `status`=:status";
         $datex = time();
         $userData = new userData();
         $browser = $userData->getBrowser();
         $os = $userData->getOS();
         $ip = $userData->getUserIP();
         $insert_prepare = $conn->prepare($sql_insert_log);
         $insert_prepare->execute(array(':datex' => $datex, ':namelname' => $namelname, ':username' => $username, ':browser' => $browser, ':os' => $os, ':ip' => $ip, ':status' => 0));
     } catch (Exeption $e) {
         die("Insert log error !");
     }
 }
 public function changeStatusTo($newStatusId, $details = "", $sendMail = true, $includeDetailsInMail = false)
 {
     $database = database::instance();
     //$clearStatusQueryString = $clearDetails ? demande::STATUS_DETAILS_DB_FIELD." = '".$newStatusId."', " : "";
     $database->requete("UPDATE st_demande SET " . demande::STATUS_DETAILS_DB_FIELD . " = '" . mysql_real_escape_string($details) . "'," . demande::STATUS_DB_FIELD . " = '" . $newStatusId . "' \n                            WHERE " . demande::MATRICULE_DB_FIELD . " = '" . $this->matricule . "'");
     $this->statusId = $newStatusId;
     if (!$sendMail) {
         return true;
     }
     if (!$includeDetailsInMail) {
         $details = "";
     }
     $this->loadStatusData($this->matricule);
     $user = new userData($this->matricule);
     if ($user->getUserData($this->matricule)) {
         $preg = array(array('key' => '/@@FIRSTNAME@@/', 'value' => $user->getFirstName()), array('key' => '/@@LASTNAME@@/', 'value' => $user->getLastName()), array('key' => '/@@STATUS@@/', 'value' => $this->getName()), array('key' => '/@@DETAILS@@/', 'value' => $details));
         return util::sendEmail($user->getEmail(), 'email_status.txt', $preg, "Changement de status de votre demande");
     }
 }
예제 #3
0
<?php

error_reporting(E_ALL);
require_once "header.php";
require_once "class.util.php";
require_once "class.userData.php";
require_once "class.validation.php";
require_once "class.database.php";
$message = "";
if (isset($_GET['sendmail']) && $_GET['sendmail'] == 1) {
    $matricule = $_POST['matricule'];
    if (isset($matricule) && validation::matricule($matricule)) {
        $user = new userData($_POST['matricule']);
        if ($user->getExist()) {
            $password = util::generatePassword();
            $pregArray = array(array('key' => "/@@FIRSTNAME@@/", 'value' => $user->getFirstName()), array('key' => "/@@LASTNAME@@/", 'value' => $user->getLastName()), array('key' => "/@@PASSWORD@@/", 'value' => $password));
            $database = database::instance();
            $database->requete("UPDATE st_authentication SET password='******' WHERE matricule='" . $matricule . "'");
            util::sendEmail($user->getEmail(), 'accessrecovery.txt', $pregArray, "Stationnement AEP - Demande de nouveau mot de passe");
            $message = util::UTF8toISO8859("Un courriel avec votre nouveau mot de passe vous a été envoyé");
        } else {
            $message = 'Utilisateur non existant';
        }
    } else {
        $message = 'Matricule invalide';
    }
}
?>
<div>
	<?php 
if ($message != "") {
 public function view($obj, $c)
 {
     // post and get request handler
     $model_admin_requests = new model_admin_requests();
     $data = $model_admin_requests->requestx($c);
     // select page managed menu
     $model_admin_selectManagedMenu = new model_admin_selectManagedMenu();
     $data["managed_pages"] = $model_admin_selectManagedMenu->select($c);
     $data["managed_pages2"] = $model_admin_selectManagedMenu->select($c, true);
     // breadcrups module
     $model_admin_breadcrups = new model_admin_breadcrups();
     $data["breadcrups"] = $model_admin_breadcrups->get($c);
     // get componemt menu
     $model_admin_components = new model_admin_components();
     $data["components"] = $model_admin_components->select_components_menu($c);
     $action = filter_input(INPUT_GET, "action");
     if (isset($_SESSION["user404"]) && !empty($_SESSION["user404"])) {
         if (isset($action) && $action == "mainMenu") {
             $data["website_title"] = "Welcome / Admin Panel - v: " . $c['cmsversion'];
             @(include "view/view_admin_mainmenu.php");
         } else {
             if (isset($action) && $action == "addAdmin") {
                 $data["website_title"] = "Add admin / Admin Panel - v: " . $c['cmsversion'];
                 $model_admin_select_admintypes = new model_admin_select_admintypes();
                 $data["admin_types"] = $model_admin_select_admintypes->select($c);
                 @(include "view/view_admin_addAdmin.php");
             } else {
                 if (isset($action) && $action == "userList") {
                     $data["website_title"] = "Admin users / Admin Panel - v: " . $c['cmsversion'];
                     $model_admin_select = new model_admin_select();
                     $admin_list = $model_admin_select->select_admins($c);
                     $data['table'] = $admin_list['table'];
                     $data['pager'] = $admin_list['pager'];
                     @(include "view/view_admin_userlist.php");
                 } else {
                     if (isset($action) && $action == "wuserList") {
                         $data["website_title"] = "Website users / Admin Panel - v: " . $c['cmsversion'];
                         $model_admin_select = new model_admin_select();
                         $admin_list = $model_admin_select->select_websiteusers($c);
                         $data['table'] = $admin_list['table'];
                         $data['pager'] = $admin_list['pager'];
                         @(include "view/view_admin_wuserlist.php");
                     } else {
                         if (isset($action) && $action == "waddUser") {
                             $data["website_title"] = "Add website user / Admin Panel - v: " . $c['cmsversion'];
                             @(include "view/view_admin_addwebsiteuser.php");
                         } else {
                             if (isset($action) && $action == "weditprofile") {
                                 $data["website_title"] = "Edit website user / Admin Panel - v: " . $c['cmsversion'];
                                 $model_admin_editprofile = new model_admin_editprofile();
                                 $_SESSION["token"] = $_GET['token'];
                                 $data["profile"] = $model_admin_editprofile->select_profile2($c);
                                 @(include "view/view_admin_editwebsiteuser.php");
                             } else {
                                 if (isset($action) && $action == "editprofile") {
                                     $data["website_title"] = "Edit profile / Admin Panel - v: " . $c['cmsversion'];
                                     $model_admin_editprofile = new model_admin_editprofile();
                                     $data["profile"] = $model_admin_editprofile->select_profile($c);
                                     $model_admin_select_admintypes = new model_admin_select_admintypes();
                                     $data["admin_types"] = $model_admin_select_admintypes->select($c);
                                     @(include "view/view_admin_editprofile.php");
                                 } else {
                                     if (isset($action) && $action == "changePassword") {
                                         $data["website_title"] = "Change Password / Admin Panel - v: " . $c['cmsversion'];
                                         @(include "view/view_admin_changePassword.php");
                                     } else {
                                         if (isset($action) && $action == "profileSettings") {
                                             $model_admin_profile = new model_admin_profile();
                                             $data["profile"] = $model_admin_profile->selectAdminProfile($c);
                                             $data["website_title"] = "Profile settings / Admin Panel - v: " . $c['cmsversion'];
                                             @(include "view/view_admin_profileSettings.php");
                                         } else {
                                             if (isset($action) && $action == "signout") {
                                                 unset($_SESSION["user404"]);
                                                 $redirect = new redirect();
                                                 $redirect->go("?action=login");
                                             } else {
                                                 if (isset($action) && $action == "userRights") {
                                                     $data["website_title"] = "User rights / Admin Panel - v: " . $c['cmsversion'];
                                                     $model_admin_userrights = new model_admin_userrights();
                                                     $admin_rightgroups = $model_admin_userrights->select_admins_rightgroups($c);
                                                     $data['table'] = $admin_rightgroups['table'];
                                                     $data['pager'] = $admin_rightgroups['pager'];
                                                     @(include "view/view_admin_userRights.php");
                                                 } else {
                                                     if (isset($action) && $action == "addAdminRights") {
                                                         $data["website_title"] = "Add admin user rights / Admin Panel - v: " . $c['cmsversion'];
                                                         @(include "view/view_admin_rights.php");
                                                     } else {
                                                         if (isset($action) && $action == "editAdminRights") {
                                                             $data["website_title"] = "Edit admin user rights / Admin Panel - v: " . $c['cmsversion'];
                                                             $model_admin_userrights = new model_admin_userrights();
                                                             $data["user_rights"] = $model_admin_userrights->select_userright($c);
                                                             @(include "view/view_admin_editAdminRights.php");
                                                         } else {
                                                             if ($_GET['action'] == "log") {
                                                                 $data["website_title"] = "Logs / Admin Panel - v: " . $c['cmsversion'];
                                                                 $model_admin_logs = new model_admin_logs();
                                                                 $admin_logs = $model_admin_logs->select_admin_logs($c);
                                                                 $data['table'] = $admin_logs['table'];
                                                                 $data['pager'] = $admin_logs['pager'];
                                                                 @(include "view/view_admin_log.php");
                                                             } else {
                                                                 if ($_GET['action'] == "textConverter") {
                                                                     $data["website_title"] = "Text converter / Admin Panel - v: " . $c['cmsversion'];
                                                                     @(include "view/view_admin_textconverter.php");
                                                                 } else {
                                                                     if ($_GET['action'] == "menuManagment") {
                                                                         $data["website_title"] = "Page managment/ Admin Panel - v: " . $c['cmsversion'];
                                                                         $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                         $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                         $model_admin_menumanagment = new model_admin_menumanagment();
                                                                         $admin_list = $model_admin_menumanagment->select_menus($c);
                                                                         $data['table'] = $admin_list['table'];
                                                                         $data['pager'] = $admin_list['pager'];
                                                                         @(include "view/view_admin_pagemanagment.php");
                                                                     } else {
                                                                         if (isset($action) && $action == "editMenuManagment") {
                                                                             $data["website_title"] = "Edit page managment / Admin Panel - v: " . $c['cmsversion'];
                                                                             $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                             $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                             $model_admin_editMenuManagment = new model_admin_editMenuManagment();
                                                                             $data["pagesManagment"] = $model_admin_editMenuManagment->select_editMenuManagment($c);
                                                                             @(include "view/view_admin_editMenuManagment.php");
                                                                         } else {
                                                                             if (isset($action) && $action == "addPageManagment") {
                                                                                 $data["website_title"] = "Add page managment / Admin Panel - v: " . $c['cmsversion'];
                                                                                 @(include "view/view_admin_addMenuManagment.php");
                                                                             } else {
                                                                                 if (isset($action) && $action == "sitemap") {
                                                                                     $data["website_title"] = "Sitemap / Admin Panel - v: " . $c['cmsversion'];
                                                                                     $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                     $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                     $model_admin_menumanagment = new model_admin_menumanagment();
                                                                                     $admin_list = $model_admin_menumanagment->select_sub($c);
                                                                                     $data['table'] = $admin_list['table'];
                                                                                     $data['pager'] = $admin_list['pager'];
                                                                                     @(include "view/view_admin_sitemap.php");
                                                                                 } else {
                                                                                     if (isset($action) && $action == "addSitemapItem") {
                                                                                         $data["website_title"] = "Add Sitemap Item / Admin Panel - v: " . $c['cmsversion'];
                                                                                         // $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                         // $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                         $check_super = new check_super();
                                                                                         $super_exists = $check_super->super($c);
                                                                                         if (!$super_exists) {
                                                                                             $data["outMessage"] = 2;
                                                                                         } else {
                                                                                             if (isset($_GET['super'], $_GET['sub'])) {
                                                                                                 $pre_slug = new pre_slug();
                                                                                                 $pre_slug_method = $pre_slug->slug($c, $_GET['super'], $_GET['sub']);
                                                                                                 if (is_array($pre_slug_method)) {
                                                                                                     $reverse = array_reverse($pre_slug_method);
                                                                                                     $data['pre_slug'] = implode("/", $reverse);
                                                                                                 }
                                                                                             }
                                                                                         }
                                                                                         @(include "view/view_admin_addSitemapItem.php");
                                                                                     } else {
                                                                                         if (isset($action) && $action == "editSitemap") {
                                                                                             $data["website_title"] = "Edit sitemap / Admin Panel - v: " . $c['cmsversion'];
                                                                                             $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                             $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                             $edit_page_interface = new edit_page_interface();
                                                                                             $data["interface"] = $edit_page_interface->out_interface($c);
                                                                                             @(include "view/view_admin_editSiteMap.php");
                                                                                         } else {
                                                                                             if (isset($action) && $action == "newsModule") {
                                                                                                 $data["website_title"] = "News module / Admin Panel - v: " . $c['cmsversion'];
                                                                                                 $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                 $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                 $model_admin_newsmodule = new model_admin_newsmodule();
                                                                                                 $news_list = $model_admin_newsmodule->select_list($c);
                                                                                                 $data['table'] = $news_list['table'];
                                                                                                 $data['pager'] = $news_list['pager'];
                                                                                                 @(include "view/view_admin_news_module.php");
                                                                                             } else {
                                                                                                 if (isset($action) && $action == "addNews" && isset($_GET['newsidx'])) {
                                                                                                     $data["website_title"] = "Add news / Admin Panel - v: " . $c['cmsversion'];
                                                                                                     $news_slug = new news_slug();
                                                                                                     $data["pre_slug"] = $news_slug->slug($c);
                                                                                                     @(include "view/view_admin_addnews.php");
                                                                                                 } else {
                                                                                                     if (isset($action) && $action == "addCatalog" && isset($_GET['catalogidx'])) {
                                                                                                         $data["website_title"] = "Add catalog / Admin Panel - v: " . $c['cmsversion'];
                                                                                                         $news_slug = new news_slug();
                                                                                                         $data["pre_slug"] = $news_slug->slug($c);
                                                                                                         @(include "view/view_admin_addcatalog.php");
                                                                                                     } else {
                                                                                                         if (isset($action) && $action == "catalogModule") {
                                                                                                             $data["website_title"] = "Catalog module / Admin Panel - v: " . $c['cmsversion'];
                                                                                                             $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                             $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                             $model_admin_catalogmodule = new model_admin_catalogmodule();
                                                                                                             $news_list = $model_admin_catalogmodule->select_list($c);
                                                                                                             $data['table'] = $news_list['table'];
                                                                                                             $data['pager'] = $news_list['pager'];
                                                                                                             @(include "view/view_admin_catalog_module.php");
                                                                                                         } else {
                                                                                                             if (isset($action) && $action == "editNewsItem") {
                                                                                                                 $data["website_title"] = "Edit news item / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                 $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                 $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                 $edit_page_interface = new edit_page_interface();
                                                                                                                 $data["interface"] = $edit_page_interface->out_interface($c);
                                                                                                                 @(include "view/view_admin_editNewsItem.php");
                                                                                                             } else {
                                                                                                                 if (isset($action) && $action == "editCatalogItem") {
                                                                                                                     $data["website_title"] = "Edit catalog item / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                     $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                     $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                     $edit_page_interface = new edit_page_interface();
                                                                                                                     $data["interface"] = $edit_page_interface->out_interface($c);
                                                                                                                     @(include "view/view_admin_editCatalogItem.php");
                                                                                                                 } else {
                                                                                                                     if (isset($action) && $action == "catalogMoreInfo") {
                                                                                                                         $data["website_title"] = "Catalog more info  / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                         $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                         $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                         $model_admin_catalogmoreinfo = new model_admin_catalogmoreinfo();
                                                                                                                         $news_list = $model_admin_catalogmoreinfo->select_list_all($c);
                                                                                                                         $data['table'] = $news_list['table'];
                                                                                                                         $data['pager'] = $news_list['pager'];
                                                                                                                         @(include "view/view_admin_catalogmoreinfo.php");
                                                                                                                     } else {
                                                                                                                         if (isset($action) && $action == "addCatalogMoreInfo") {
                                                                                                                             $data["website_title"] = "Add catalog more info / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                             $model_admin_catalogmodule = new model_admin_catalogmodule();
                                                                                                                             $data["catalogs"] = $model_admin_catalogmodule->getcatalogs($c);
                                                                                                                             @(include "view/view_admin_addcatalogmoreinfo.php");
                                                                                                                         } else {
                                                                                                                             if (isset($action, $_GET['id']) && is_numeric($_GET['id']) && $action == "editCatalogMoreInfo") {
                                                                                                                                 $data["website_title"] = "Edit catalog more info / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                 $model_admin_catalogmoreinfo = new model_admin_catalogmoreinfo();
                                                                                                                                 $data['info'] = $model_admin_catalogmoreinfo->select_one($c, $_GET['id']);
                                                                                                                                 $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                 $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                 $model_admin_catalogmodule = new model_admin_catalogmodule();
                                                                                                                                 $data["catalogs"] = $model_admin_catalogmodule->getcatalogs($c);
                                                                                                                                 @(include "view/view_admin_editcatalogmoreinfo.php");
                                                                                                                             } else {
                                                                                                                                 if (isset($action) && $action == "components") {
                                                                                                                                     $data["website_title"] = "Components / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                     $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                     $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                     $model_admin_components = new model_admin_components();
                                                                                                                                     $components = $model_admin_components->select($c);
                                                                                                                                     $data['table'] = $components['table'];
                                                                                                                                     $data['pager'] = $components['pager'];
                                                                                                                                     @(include "view/view_admin_components.php");
                                                                                                                                 } else {
                                                                                                                                     if (isset($action) && $action == "addComponents") {
                                                                                                                                         $data["website_title"] = "Add components / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                         @(include "view/view_admin_addcomponents.php");
                                                                                                                                     } else {
                                                                                                                                         if (isset($action) && $action == "editComponents") {
                                                                                                                                             $data["website_title"] = "Edit components / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                             $edit_page_interface = new edit_page_interface();
                                                                                                                                             $data["interface"] = $edit_page_interface->general_form_components($c);
                                                                                                                                             @(include "view/view_admin_editcomponents.php");
                                                                                                                                         } else {
                                                                                                                                             if (isset($action) && $action == "componentModule") {
                                                                                                                                                 $data["website_title"] = "Component module / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                 $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                 $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                 $model_admin_componentsmodele = new model_admin_componentsmodele();
                                                                                                                                                 $components = $model_admin_componentsmodele->select($c);
                                                                                                                                                 $data['table'] = $components['table'];
                                                                                                                                                 $data['pager'] = $components['pager'];
                                                                                                                                                 @(include "view/view_admin_componentsmodel.php");
                                                                                                                                             } else {
                                                                                                                                                 if (isset($action) && $action == "addComponentsModule") {
                                                                                                                                                     $data["website_title"] = "Add components module / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                     @(include "view/view_admin_addcomponentsmodule.php");
                                                                                                                                                 } else {
                                                                                                                                                     if (isset($action) && $action == "editComponentsModule") {
                                                                                                                                                         $data["website_title"] = "Edit components module / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                         $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                         $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                         $model_admin_componentsmodele = new model_admin_componentsmodele();
                                                                                                                                                         $data["select"] = $model_admin_componentsmodele->select_one($c);
                                                                                                                                                         @(include "view/view_admin_editcomponentsmodule.php");
                                                                                                                                                     } else {
                                                                                                                                                         if (isset($action) && $action == "languages") {
                                                                                                                                                             $data["website_title"] = "Languages / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                             $model_admin_languages = new model_admin_languages();
                                                                                                                                                             $languages = $model_admin_languages->select($c);
                                                                                                                                                             $data['table'] = $languages['table'];
                                                                                                                                                             $data['pager'] = $languages['pager'];
                                                                                                                                                             @(include "view/view_admin_languages.php");
                                                                                                                                                         } else {
                                                                                                                                                             if (isset($action) && $action == "addlanguage") {
                                                                                                                                                                 $data["website_title"] = "Add language / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                 @(include "view/view_admin_addlanguage.php");
                                                                                                                                                             } else {
                                                                                                                                                                 if (isset($action) && $action == "editLanguage") {
                                                                                                                                                                     $data["website_title"] = "Edit language / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                     $model_admin_languages = new model_admin_languages();
                                                                                                                                                                     $data["info"] = $model_admin_languages->select_one($c);
                                                                                                                                                                     @(include "view/view_admin_editlanguage.php");
                                                                                                                                                                 } else {
                                                                                                                                                                     if (isset($action) && $action == "languageData") {
                                                                                                                                                                         $data["website_title"] = "Language data / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                         $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                         $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                         $model_admin_languageData = new model_admin_languageData();
                                                                                                                                                                         $languages = $model_admin_languageData->select($c);
                                                                                                                                                                         $data['table'] = $languages['table'];
                                                                                                                                                                         $data['pager'] = $languages['pager'];
                                                                                                                                                                         @(include "view/view_admin_languageData.php");
                                                                                                                                                                     } else {
                                                                                                                                                                         if (isset($action) && $action == "addlanguageData") {
                                                                                                                                                                             $data["website_title"] = "Add language data / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                             @(include "view/view_admin_addlanguageData.php");
                                                                                                                                                                         } else {
                                                                                                                                                                             if (isset($action) && $action == "editLanguageData") {
                                                                                                                                                                                 $data["website_title"] = "Edit language data / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                 $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                 $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                 $model_admin_languageData = new model_admin_languageData();
                                                                                                                                                                                 $data["info"] = $model_admin_languageData->select_one($c);
                                                                                                                                                                                 @(include "view/view_admin_editlanguagedata.php");
                                                                                                                                                                             } else {
                                                                                                                                                                                 if (isset($action) && $action == "charts") {
                                                                                                                                                                                     $data["website_title"] = "Charts / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                     $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                     $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                     $model_admin_charts = new model_admin_charts();
                                                                                                                                                                                     $invoices = $model_admin_charts->select($c);
                                                                                                                                                                                     $data['table'] = $invoices['table'];
                                                                                                                                                                                     $data['pager'] = $invoices['pager'];
                                                                                                                                                                                     @(include "view/view_admin_charts.php");
                                                                                                                                                                                 } else {
                                                                                                                                                                                     if (isset($action) && $action == "addChart") {
                                                                                                                                                                                         $data["website_title"] = "Add Chart / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                         // $model_admin_charts = new model_admin_charts();
                                                                                                                                                                                         // $invoices = $model_admin_charts->select($c);
                                                                                                                                                                                         // $data['table'] = $invoices['table'];
                                                                                                                                                                                         // $data['pager'] = $invoices['pager'];
                                                                                                                                                                                         @(include "view/view_admin_charts_add.php");
                                                                                                                                                                                         //addChart
                                                                                                                                                                                     } else {
                                                                                                                                                                                         if (isset($action) && $action == "emailnewsletter") {
                                                                                                                                                                                             $data["website_title"] = "Email newsletter / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                             $model_admin_newslettermain = new model_admin_newslettermain();
                                                                                                                                                                                             $data["info"] = $model_admin_newslettermain->select_main($c);
                                                                                                                                                                                             $data["email_limit"] = $c["max.send.email.per.day"];
                                                                                                                                                                                             @(include "view/view_admin_emailnewsletter.php");
                                                                                                                                                                                         } else {
                                                                                                                                                                                             if (isset($action) && $action == "invoices") {
                                                                                                                                                                                                 $data["website_title"] = "Invoices / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                 $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                                 $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                                 $model_admin_invoices = new model_admin_invoices();
                                                                                                                                                                                                 $invoices = $model_admin_invoices->select($c);
                                                                                                                                                                                                 $data['table'] = $invoices['table'];
                                                                                                                                                                                                 $data['pager'] = $invoices['pager'];
                                                                                                                                                                                                 @(include "view/view_admin_invoices.php");
                                                                                                                                                                                             } else {
                                                                                                                                                                                                 if (isset($action) && $action == "addInvoice") {
                                                                                                                                                                                                     $data["website_title"] = "Add invoice / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                     $lang = new model_admin_languageData();
                                                                                                                                                                                                     $data["webhosting"] = $lang->l("webhosting");
                                                                                                                                                                                                     $data["creatingawebsite"] = $lang->l("creatingawebsite");
                                                                                                                                                                                                     $data["gadaxdilia"] = $lang->l("gadaxdilia");
                                                                                                                                                                                                     $data["gadasaxdeli"] = $lang->l("gadasaxdeli");
                                                                                                                                                                                                     $data["otherservice"] = $lang->l("otherservice");
                                                                                                                                                                                                     $model_admin_select = new model_admin_select();
                                                                                                                                                                                                     $data["fetch"] = $model_admin_select->select_admin_names_for_invoice($c);
                                                                                                                                                                                                     @(include "view/view_admin_addinvoice.php");
                                                                                                                                                                                                 } else {
                                                                                                                                                                                                     if (isset($action) && $action == "editInvoice") {
                                                                                                                                                                                                         $data["website_title"] = "Edit invoice / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                         $lang = new model_admin_languageData();
                                                                                                                                                                                                         $data["webhosting"] = $lang->l("webhosting");
                                                                                                                                                                                                         $data["creatingawebsite"] = $lang->l("creatingawebsite");
                                                                                                                                                                                                         $data["gadaxdilia"] = $lang->l("gadaxdilia");
                                                                                                                                                                                                         $data["gadasaxdeli"] = $lang->l("gadasaxdeli");
                                                                                                                                                                                                         $data["otherservice"] = $lang->l("otherservice");
                                                                                                                                                                                                         $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                                         $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                                         $model_admin_invoices = new model_admin_invoices();
                                                                                                                                                                                                         $data["info"] = $model_admin_invoices->select_one($c);
                                                                                                                                                                                                         @(include "view/view_admin_editinvoice.php");
                                                                                                                                                                                                     } else {
                                                                                                                                                                                                         if (isset($action) && $action == "gallery") {
                                                                                                                                                                                                             $data["website_title"] = "Gallery module / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                             $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                                             $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                                             $model_admin_gallery = new model_admin_gallery();
                                                                                                                                                                                                             $news_list = $model_admin_gallery->select($c);
                                                                                                                                                                                                             $data['table'] = $news_list['table'];
                                                                                                                                                                                                             $data['pager'] = $news_list['pager'];
                                                                                                                                                                                                             @(include "view/view_admin_gallery.php");
                                                                                                                                                                                                         } else {
                                                                                                                                                                                                             if (isset($action) && $action == "addGallery" && isset($_GET['mediaidx'])) {
                                                                                                                                                                                                                 $data["website_title"] = "Add gallery / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                 $news_slug = new news_slug();
                                                                                                                                                                                                                 $data["pre_slug"] = $news_slug->slug($c);
                                                                                                                                                                                                                 @(include "view/view_admin_addgallery.php");
                                                                                                                                                                                                             } else {
                                                                                                                                                                                                                 if (isset($action) && $action == "editMediaItem") {
                                                                                                                                                                                                                     $data["website_title"] = "Edit gallery item / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                     $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                                                     $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                                                     $edit_page_interface = new edit_page_interface();
                                                                                                                                                                                                                     $data["interface"] = $edit_page_interface->out_interface($c);
                                                                                                                                                                                                                     @(include "view/view_admin_editMediaItem.php");
                                                                                                                                                                                                                 } else {
                                                                                                                                                                                                                     if (isset($action) && $action == "vectormap") {
                                                                                                                                                                                                                         $data["website_title"] = "Vector map / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                         $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                                                         $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                                                         $model_admin_vectormap = new model_admin_vectormap();
                                                                                                                                                                                                                         $map = $model_admin_vectormap->select($c);
                                                                                                                                                                                                                         $data['table'] = $map['table'];
                                                                                                                                                                                                                         $data['pager'] = $map['pager'];
                                                                                                                                                                                                                         @(include "view/view_admin_map.php");
                                                                                                                                                                                                                     } else {
                                                                                                                                                                                                                         if (isset($action) && $action == "managedemails") {
                                                                                                                                                                                                                             $data["website_title"] = "Manage emails / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                             $model_admin_menageemails = new model_admin_menageemails();
                                                                                                                                                                                                                             $groups = $model_admin_menageemails->select($c);
                                                                                                                                                                                                                             $data['table'] = $groups['table'];
                                                                                                                                                                                                                             $data['pager'] = $groups['pager'];
                                                                                                                                                                                                                             @(include "view/view_admin_menageemails.php");
                                                                                                                                                                                                                         } else {
                                                                                                                                                                                                                             if (isset($action) && $action == "editVectorMap") {
                                                                                                                                                                                                                                 $data["website_title"] = "Edit trade map / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                 $lang = new model_admin_languageData();
                                                                                                                                                                                                                                 $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                                                                 $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                                                                 $model_admin_vectormap = new model_admin_vectormap();
                                                                                                                                                                                                                                 $data["select"] = $model_admin_vectormap->select_one($c);
                                                                                                                                                                                                                                 @(include "view/view_admin_editvectormap.php");
                                                                                                                                                                                                                             } else {
                                                                                                                                                                                                                                 if (isset($action) && $action == "addEmailGroup") {
                                                                                                                                                                                                                                     $data["website_title"] = "Add email groups / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                     @(include "view/view_admin_addemailgroups.php");
                                                                                                                                                                                                                                 } else {
                                                                                                                                                                                                                                     if (isset($action) && $action == "editEmailGroup") {
                                                                                                                                                                                                                                         $data["website_title"] = "Edit email groups / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                         $model_admin_menageemails = new model_admin_menageemails();
                                                                                                                                                                                                                                         $data['info'] = $model_admin_menageemails->select_one($c);
                                                                                                                                                                                                                                         @(include "view/view_admin_editemailgroups.php");
                                                                                                                                                                                                                                     } else {
                                                                                                                                                                                                                                         if (isset($action) && $action == "showemails") {
                                                                                                                                                                                                                                             $data["website_title"] = "Email list / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                             $model_admin_emaillist = new model_admin_emaillist();
                                                                                                                                                                                                                                             $groups = $model_admin_emaillist->select($c);
                                                                                                                                                                                                                                             $data['table'] = $groups['table'];
                                                                                                                                                                                                                                             $data['pager'] = $groups['pager'];
                                                                                                                                                                                                                                             @(include "view/view_admin_menageemailLiss.php");
                                                                                                                                                                                                                                         } else {
                                                                                                                                                                                                                                             if (isset($action) && $action == "addEmail") {
                                                                                                                                                                                                                                                 $data["website_title"] = "Add email / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                 @(include "view/view_admin_addemail.php");
                                                                                                                                                                                                                                             } else {
                                                                                                                                                                                                                                                 if (isset($action) && $action == "editEmail") {
                                                                                                                                                                                                                                                     $data["website_title"] = "Edit email / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                     $model_admin_emaillist = new model_admin_emaillist();
                                                                                                                                                                                                                                                     $data['info'] = $model_admin_emaillist->select_one($c);
                                                                                                                                                                                                                                                     @(include "view/view_admin_editemail.php");
                                                                                                                                                                                                                                                 } else {
                                                                                                                                                                                                                                                     if (isset($action) && $action == "outbox") {
                                                                                                                                                                                                                                                         $data["website_title"] = "Outbox / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                         $model_admin_emaillist = new model_admin_emaillist();
                                                                                                                                                                                                                                                         $outbox = $model_admin_emaillist->outbox($c);
                                                                                                                                                                                                                                                         $data['table'] = $outbox['table'];
                                                                                                                                                                                                                                                         $data['pager'] = $outbox['pager'];
                                                                                                                                                                                                                                                         @(include "view/view_admin_outbox.php");
                                                                                                                                                                                                                                                     } else {
                                                                                                                                                                                                                                                         if (isset($action) && $action == "comments") {
                                                                                                                                                                                                                                                             $data["website_title"] = "Comments / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                             $model_admin_comments = new model_admin_comments();
                                                                                                                                                                                                                                                             $outbox = $model_admin_comments->get_comments($c);
                                                                                                                                                                                                                                                             $data['table'] = $outbox['table'];
                                                                                                                                                                                                                                                             $data['pager'] = $outbox['pager'];
                                                                                                                                                                                                                                                             @(include "view/view_admin_comments.php");
                                                                                                                                                                                                                                                         } else {
                                                                                                                                                                                                                                                             if (isset($action) && $action == "editComments") {
                                                                                                                                                                                                                                                                 $data["website_title"] = "Edit comments / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                                 $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                                                                                                 $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                                                                                                 $model_admin_comments = new model_admin_comments();
                                                                                                                                                                                                                                                                 $data["data"] = $model_admin_comments->select_one($c);
                                                                                                                                                                                                                                                                 @(include "view/view_admin_editComments.php");
                                                                                                                                                                                                                                                             } else {
                                                                                                                                                                                                                                                                 if (isset($action) && $action == "addComments") {
                                                                                                                                                                                                                                                                     $data["website_title"] = "Add comments / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                                     @(include "view/view_admin_addComments.php");
                                                                                                                                                                                                                                                                 } else {
                                                                                                                                                                                                                                                                     if (isset($action) && $action == "fusersstat") {
                                                                                                                                                                                                                                                                         $data["website_title"] = "Front users & statements  / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                                         $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                                                                                                         $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                                                                                                         $model_admin_fusersstat = new model_admin_fusersstat();
                                                                                                                                                                                                                                                                         if (isset($_GET['remove'], $_GET['rmid'], $_GET['load']) && $_GET['remove'] == "true" && is_numeric($_GET['rmid'])) {
                                                                                                                                                                                                                                                                             $true = false;
                                                                                                                                                                                                                                                                             if ($_GET['load'] == "users") {
                                                                                                                                                                                                                                                                                 $true = $model_admin_fusersstat->removeMe($c, 'users');
                                                                                                                                                                                                                                                                                 $url = WEBSITE . LANG . '/' . ADMIN_SLUG . '?action=fusersstat&load=users';
                                                                                                                                                                                                                                                                             } else {
                                                                                                                                                                                                                                                                                 if ($_GET['load'] == "products") {
                                                                                                                                                                                                                                                                                     $true = $model_admin_fusersstat->removeMe($c, 'products');
                                                                                                                                                                                                                                                                                     $url = WEBSITE . LANG . '/' . ADMIN_SLUG . '?action=fusersstat&load=products';
                                                                                                                                                                                                                                                                                 } else {
                                                                                                                                                                                                                                                                                     if ($_GET['load'] == "services") {
                                                                                                                                                                                                                                                                                         $true = $model_admin_fusersstat->removeMe($c, 'services');
                                                                                                                                                                                                                                                                                         $url = WEBSITE . LANG . '/' . ADMIN_SLUG . '?action=fusersstat&load=services';
                                                                                                                                                                                                                                                                                     } else {
                                                                                                                                                                                                                                                                                         if ($_GET['load'] == "enquires") {
                                                                                                                                                                                                                                                                                             $true = $model_admin_fusersstat->removeMe($c, 'enquires');
                                                                                                                                                                                                                                                                                             $url = WEBSITE . LANG . '/' . ADMIN_SLUG . '?action=fusersstat&load=enquires';
                                                                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                                                             if ($true) {
                                                                                                                                                                                                                                                                                 redirect::url($url);
                                                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                                                         $db_counter = new db_counter();
                                                                                                                                                                                                                                                                         $data["user_count"] = $db_counter->sq($c, '`id`', '`studio404_users`', '`user_type`="website" AND `status`!=1');
                                                                                                                                                                                                                                                                         $data["product_count"] = $db_counter->sq($c, '`id`', '`studio404_module_item`', '`module_idx`=3 AND `status`!=1');
                                                                                                                                                                                                                                                                         $data["service_count"] = $db_counter->sq($c, '`id`', '`studio404_module_item`', '`module_idx`=4 AND `status`!=1');
                                                                                                                                                                                                                                                                         $data["enquire_count"] = $db_counter->sq($c, '`id`', '`studio404_module_item`', '`module_idx`=5 AND `status`!=1');
                                                                                                                                                                                                                                                                         if (isset($_GET["load"]) && $_GET["load"] == "products") {
                                                                                                                                                                                                                                                                             $data["active"] = "products";
                                                                                                                                                                                                                                                                             $outbox = $model_admin_fusersstat->get_products($c);
                                                                                                                                                                                                                                                                         } else {
                                                                                                                                                                                                                                                                             if (isset($_GET["load"]) && $_GET["load"] == "services") {
                                                                                                                                                                                                                                                                                 $data["active"] = "services";
                                                                                                                                                                                                                                                                                 $outbox = $model_admin_fusersstat->get_services($c);
                                                                                                                                                                                                                                                                             } else {
                                                                                                                                                                                                                                                                                 if (isset($_GET["load"]) && $_GET["load"] == "enquires") {
                                                                                                                                                                                                                                                                                     $data["active"] = "enquires";
                                                                                                                                                                                                                                                                                     $outbox = $model_admin_fusersstat->get_enquires($c);
                                                                                                                                                                                                                                                                                 } else {
                                                                                                                                                                                                                                                                                     $data["active"] = "users";
                                                                                                                                                                                                                                                                                     $outbox = $model_admin_fusersstat->get_users($c);
                                                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                                                         $data['table'] = $outbox['table'];
                                                                                                                                                                                                                                                                         $data['pager'] = $outbox['pager'];
                                                                                                                                                                                                                                                                         @(include "view/view_admin_fusersstat.php");
                                                                                                                                                                                                                                                                     } else {
                                                                                                                                                                                                                                                                         if (isset($action) && $action == "edituserstats") {
                                                                                                                                                                                                                                                                             $data["website_title"] = "Edit users statement / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                                             $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                                                                                                             $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                                                                                                             $model_admin_fusersstat = new model_admin_fusersstat();
                                                                                                                                                                                                                                                                             $data["data"] = $model_admin_fusersstat->select_one($c);
                                                                                                                                                                                                                                                                             if ($data["data"]) {
                                                                                                                                                                                                                                                                                 @(include "view/view_admin_edituserstats.php");
                                                                                                                                                                                                                                                                             } else {
                                                                                                                                                                                                                                                                                 redirect::url(WEBSITE . LANG . '/' . ADMIN_SLUG . '?action=welcome');
                                                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                                                         } else {
                                                                                                                                                                                                                                                                             if (isset($action) && $action == "exelator") {
                                                                                                                                                                                                                                                                                 $data["website_title"] = "Exelator / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                                                 $model_admin_showtables = new model_admin_showtables();
                                                                                                                                                                                                                                                                                 $data["table"] = $model_admin_showtables->showtables($c);
                                                                                                                                                                                                                                                                                 $model_admin_sqlcommand = new model_admin_sqlcommand();
                                                                                                                                                                                                                                                                                 if (isset($_GET['load']) && $_GET['load'] == "template_trademap") {
                                                                                                                                                                                                                                                                                     //echo "a";
                                                                                                                                                                                                                                                                                     $data["sqlcommand"] = $model_admin_sqlcommand->trademap($c);
                                                                                                                                                                                                                                                                                 } else {
                                                                                                                                                                                                                                                                                     if (isset($_GET['load'], $_GET['usertype']) && $_GET['load'] == "template_users" && !empty($_GET['usertype'])) {
                                                                                                                                                                                                                                                                                         $data["sqlcommand"] = $model_admin_sqlcommand->template($c, "users", $_GET['usertype']);
                                                                                                                                                                                                                                                                                     } else {
                                                                                                                                                                                                                                                                                         $data["sqlcommand"] = $model_admin_sqlcommand->load($c);
                                                                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                                                                 @(include "view/view_admin_exelator.php");
                                                                                                                                                                                                                                                                                 //redirect::url(WEBSITE.LANG.'/'.ADMIN_SLUG.'?action=welcome');
                                                                                                                                                                                                                                                                             } else {
                                                                                                                                                                                                                                                                                 if (isset($action) && $action == "filemanager") {
                                                                                                                                                                                                                                                                                     $data["website_title"] = "File manager / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                                                     @(include "view/view_admin_filemanager.php");
                                                                                                                                                                                                                                                                                 } else {
                                                                                                                                                                                                                                                                                     $data["website_title"] = "Welcome / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                                                     $data["c"] = $c;
                                                                                                                                                                                                                                                                                     $userData = new userData();
                                                                                                                                                                                                                                                                                     $data["userIp"] = $userData->getUserIP();
                                                                                                                                                                                                                                                                                     @(include "view/view_admin_home.php");
                                                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                             }
                                                                                                                                                                                                                         }
                                                                                                                                                                                                                     }
                                                                                                                                                                                                                 }
                                                                                                                                                                                                             }
                                                                                                                                                                                                         }
                                                                                                                                                                                                     }
                                                                                                                                                                                                 }
                                                                                                                                                                                             }
                                                                                                                                                                                         }
                                                                                                                                                                                     }
                                                                                                                                                                                 }
                                                                                                                                                                             }
                                                                                                                                                                         }
                                                                                                                                                                     }
                                                                                                                                                                 }
                                                                                                                                                             }
                                                                                                                                                         }
                                                                                                                                                     }
                                                                                                                                                 }
                                                                                                                                             }
                                                                                                                                         }
                                                                                                                                     }
                                                                                                                                 }
                                                                                                                             }
                                                                                                                         }
                                                                                                                     }
                                                                                                                 }
                                                                                                             }
                                                                                                         }
                                                                                                     }
                                                                                                 }
                                                                                             }
                                                                                         }
                                                                                     }
                                                                                 }
                                                                             }
                                                                         }
                                                                     }
                                                                 }
                                                             }
                                                         }
                                                     }
                                                 }
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     } else {
         $data["website_title"] = "Login / Admin Panel - v: " . $c['cmsversion'];
         @(include "view/view_admin_login.php");
     }
 }
예제 #5
0
                exit;
            } else {
                $database->requete("UPDATE st_user_metadata \n\t                \t\t\t\tSET \n\t                \t\t\t\tlastname='" . $lastName . "',\n\t                \t\t\t\tfirstname='" . $firstName . "',\n\t                \t\t\t\taddress='" . $address . "',\n\t                \t\t\t\tcity='" . $city . "',\n\t                \t\t\t\tzipcode='" . $postalCode . "',\n\t                \t\t\t\ttel_1='" . $phone . "',\n\t                \t\t\t\temail='" . $email . "' \n\t                \t\t\t\tWHERE matricule='" . $matricule . "'");
                updateTripInfo($address, $city, $postalCode, $matricule);
                $database->commitTransaction();
            }
        } catch (Exception $e) {
            $database->abortTransaction();
        }
    }
}
require_once 'header.php';
require_once 'class.authentification.php';
require_once 'class.userData.php';
$objAuth = authentification::instance();
$user = new userData($objAuth->getUsager());
if ($user->getCurrentUserData()) {
    $matricule = $user->getMatricule();
    $email = $user->getEmail();
    $firstName = $user->getFirstName();
    $lastName = $user->getLastName();
    $phone = $user->getPhone();
    $address = $user->getAddress();
    $city = $user->getCity();
    $postalCode = $user->getZipCode();
    $submissionValue = 'update';
    $readonly = 'readonly';
}
print '<fieldset  >
		<legend> <h3>Informations</h3> </legend>
		<div style="float:left" >
예제 #6
0
require_once "class.database.php";
require_once "class.userData.php";
$matricules = array();
if (isset($_POST['matricules'])) {
    $list_raw = explode("\r\n", $_POST['matricules']);
    $database = database::instance();
    $result = $database->requete("SELECT matricule FROM st_authentication");
    $matricules_db = array();
    while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
        array_push($matricules_db, $row);
    }
    echo "<h4>Liste des matricules invalides</h4>";
    echo "<ul>";
    foreach ($matricules_db as $matricule) {
        if (!in_array($matricule[0], $list_raw)) {
            $user = new userData($matricule[0]);
            echo '<li>' . $matricule[0] . ' | ' . util::UTF8toISO8859($user->getFirstName()) . ' ' . util::UTF8toISO8859($user->getLastName()) . ' | ' . $user->getEmail() . '</li>';
        }
    }
    echo "</ul>";
}
?>
<div>
	<h4>Entrez les matricules a verifier dans le champ suivant</h4>
	<span>note: 1 matricule par ligne</span>
	<form id ="form-list" name="form1" method="post" action="?list=1">
		<textarea name="matricules" form="form-list" id="textarea-list" rows="20" cols="30"></textarea>
		<input type="submit" name="button" id="button-list" value="send"/>
	</form>
</div>
예제 #7
0
파일: admin.php 프로젝트: studio-404/geda
 public function view($obj, $c)
 {
     // post and get request handler
     $model_admin_requests = new model_admin_requests();
     $data = $model_admin_requests->requestx($c);
     // select page managed menu
     $model_admin_selectManagedMenu = new model_admin_selectManagedMenu();
     $data["managed_pages"] = $model_admin_selectManagedMenu->select($c);
     $data["managed_pages2"] = $model_admin_selectManagedMenu->select($c, true);
     // breadcrups module
     $model_admin_breadcrups = new model_admin_breadcrups();
     $data["breadcrups"] = $model_admin_breadcrups->get($c);
     // get componemt menu
     $model_admin_components = new model_admin_components();
     $data["components"] = $model_admin_components->select_components_menu($c);
     $action = filter_input(INPUT_GET, "action");
     if (isset($_SESSION["user404"]) && !empty($_SESSION["user404"])) {
         if (isset($action) && $action == "mainMenu") {
             $data["website_title"] = "Welcome / Admin Panel - v: " . $c['cmsversion'];
             @(include "view/view_admin_mainmenu.php");
         } else {
             if (isset($action) && $action == "addAdmin") {
                 $data["website_title"] = "Add admin / Admin Panel - v: " . $c['cmsversion'];
                 $model_admin_select_admintypes = new model_admin_select_admintypes();
                 $data["admin_types"] = $model_admin_select_admintypes->select($c);
                 @(include "view/view_admin_addAdmin.php");
             } else {
                 if (isset($action) && $action == "userList") {
                     $data["website_title"] = "Admin users / Admin Panel - v: " . $c['cmsversion'];
                     $model_admin_select = new model_admin_select();
                     $admin_list = $model_admin_select->select_admins($c);
                     $data['table'] = $admin_list['table'];
                     $data['pager'] = $admin_list['pager'];
                     @(include "view/view_admin_userlist.php");
                 } else {
                     if (isset($action) && $action == "wuserList") {
                         $data["website_title"] = "Website users / Admin Panel - v: " . $c['cmsversion'];
                         $model_admin_select = new model_admin_select();
                         $admin_list = $model_admin_select->select_websiteusers($c);
                         $data['table'] = $admin_list['table'];
                         $data['pager'] = $admin_list['pager'];
                         @(include "view/view_admin_wuserlist.php");
                     } else {
                         if (isset($action) && $action == "waddUser") {
                             $data["website_title"] = "Add website user / Admin Panel - v: " . $c['cmsversion'];
                             @(include "view/view_admin_addwebsiteuser.php");
                         } else {
                             if (isset($action) && $action == "weditprofile") {
                                 $data["website_title"] = "Edit website user / Admin Panel - v: " . $c['cmsversion'];
                                 $model_admin_editprofile = new model_admin_editprofile();
                                 $_SESSION["token"] = $_GET['token'];
                                 $data["profile"] = $model_admin_editprofile->select_profile2($c);
                                 @(include "view/view_admin_editwebsiteuser.php");
                             } else {
                                 if (isset($action) && $action == "editprofile") {
                                     $data["website_title"] = "Edit profile / Admin Panel - v: " . $c['cmsversion'];
                                     $model_admin_editprofile = new model_admin_editprofile();
                                     $data["profile"] = $model_admin_editprofile->select_profile($c);
                                     $model_admin_select_admintypes = new model_admin_select_admintypes();
                                     $data["admin_types"] = $model_admin_select_admintypes->select($c);
                                     @(include "view/view_admin_editprofile.php");
                                 } else {
                                     if (isset($action) && $action == "changePassword") {
                                         $data["website_title"] = "Change Password / Admin Panel - v: " . $c['cmsversion'];
                                         @(include "view/view_admin_changePassword.php");
                                     } else {
                                         if (isset($action) && $action == "profileSettings") {
                                             $model_admin_profile = new model_admin_profile();
                                             $data["profile"] = $model_admin_profile->selectAdminProfile($c);
                                             $data["website_title"] = "Profile settings / Admin Panel - v: " . $c['cmsversion'];
                                             @(include "view/view_admin_profileSettings.php");
                                         } else {
                                             if (isset($action) && $action == "signout") {
                                                 unset($_SESSION["user404"]);
                                                 $redirect = new redirect();
                                                 $redirect->go("?action=login");
                                             } else {
                                                 if (isset($action) && $action == "userRights") {
                                                     $data["website_title"] = "User rights / Admin Panel - v: " . $c['cmsversion'];
                                                     $model_admin_userrights = new model_admin_userrights();
                                                     $admin_rightgroups = $model_admin_userrights->select_admins_rightgroups($c);
                                                     $data['table'] = $admin_rightgroups['table'];
                                                     $data['pager'] = $admin_rightgroups['pager'];
                                                     @(include "view/view_admin_userRights.php");
                                                 } else {
                                                     if (isset($action) && $action == "addAdminRights") {
                                                         $data["website_title"] = "Add admin user rights / Admin Panel - v: " . $c['cmsversion'];
                                                         @(include "view/view_admin_rights.php");
                                                     } else {
                                                         if (isset($action) && $action == "editAdminRights") {
                                                             $data["website_title"] = "Edit admin user rights / Admin Panel - v: " . $c['cmsversion'];
                                                             $model_admin_userrights = new model_admin_userrights();
                                                             $data["user_rights"] = $model_admin_userrights->select_userright($c);
                                                             @(include "view/view_admin_editAdminRights.php");
                                                         } else {
                                                             if ($_GET['action'] == "log") {
                                                                 $data["website_title"] = "Logs / Admin Panel - v: " . $c['cmsversion'];
                                                                 $model_admin_logs = new model_admin_logs();
                                                                 $admin_logs = $model_admin_logs->select_admin_logs($c);
                                                                 $data['table'] = $admin_logs['table'];
                                                                 $data['pager'] = $admin_logs['pager'];
                                                                 @(include "view/view_admin_log.php");
                                                             } else {
                                                                 if ($_GET['action'] == "textConverter") {
                                                                     $data["website_title"] = "Text converter / Admin Panel - v: " . $c['cmsversion'];
                                                                     @(include "view/view_admin_textconverter.php");
                                                                 } else {
                                                                     if ($_GET['action'] == "menuManagment") {
                                                                         $data["website_title"] = "Page managment/ Admin Panel - v: " . $c['cmsversion'];
                                                                         $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                         $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                         $model_admin_menumanagment = new model_admin_menumanagment();
                                                                         $admin_list = $model_admin_menumanagment->select_menus($c);
                                                                         $data['table'] = $admin_list['table'];
                                                                         $data['pager'] = $admin_list['pager'];
                                                                         @(include "view/view_admin_pagemanagment.php");
                                                                     } else {
                                                                         if (isset($action) && $action == "editMenuManagment") {
                                                                             $data["website_title"] = "Edit page managment / Admin Panel - v: " . $c['cmsversion'];
                                                                             $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                             $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                             $model_admin_editMenuManagment = new model_admin_editMenuManagment();
                                                                             $data["pagesManagment"] = $model_admin_editMenuManagment->select_editMenuManagment($c);
                                                                             @(include "view/view_admin_editMenuManagment.php");
                                                                         } else {
                                                                             if (isset($action) && $action == "addPageManagment") {
                                                                                 $data["website_title"] = "Add page managment / Admin Panel - v: " . $c['cmsversion'];
                                                                                 @(include "view/view_admin_addMenuManagment.php");
                                                                             } else {
                                                                                 if (isset($action) && $action == "sitemap") {
                                                                                     $data["website_title"] = "Sitemap / Admin Panel - v: " . $c['cmsversion'];
                                                                                     $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                     $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                     $model_admin_menumanagment = new model_admin_menumanagment();
                                                                                     $admin_list = $model_admin_menumanagment->select_sub($c);
                                                                                     $data['table'] = $admin_list['table'];
                                                                                     $data['pager'] = $admin_list['pager'];
                                                                                     @(include "view/view_admin_sitemap.php");
                                                                                 } else {
                                                                                     if (isset($action) && $action == "addSitemapItem") {
                                                                                         $data["website_title"] = "Add Sitemap Item / Admin Panel - v: " . $c['cmsversion'];
                                                                                         // $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                         // $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                         $check_super = new check_super();
                                                                                         $super_exists = $check_super->super($c);
                                                                                         if (!$super_exists) {
                                                                                             $data["outMessage"] = 2;
                                                                                         } else {
                                                                                             if (isset($_GET['super'], $_GET['sub'])) {
                                                                                                 $pre_slug = new pre_slug();
                                                                                                 $pre_slug_method = $pre_slug->slug($c, $_GET['super'], $_GET['sub']);
                                                                                                 if (is_array($pre_slug_method)) {
                                                                                                     $reverse = array_reverse($pre_slug_method);
                                                                                                     $data['pre_slug'] = implode("/", $reverse);
                                                                                                 }
                                                                                             }
                                                                                         }
                                                                                         @(include "view/view_admin_addSitemapItem.php");
                                                                                     } else {
                                                                                         if (isset($action) && $action == "editSitemap") {
                                                                                             $data["website_title"] = "Edit sitemap / Admin Panel - v: " . $c['cmsversion'];
                                                                                             $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                             $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                             $edit_page_interface = new edit_page_interface();
                                                                                             $data["interface"] = $edit_page_interface->out_interface($c);
                                                                                             @(include "view/view_admin_editSiteMap.php");
                                                                                         } else {
                                                                                             if (isset($action) && $action == "newsModule") {
                                                                                                 if (isset($_GET['type'], $_GET['newsidx'], $_GET['visibilitychnage'])) {
                                                                                                     $token = md5(sha1(time()));
                                                                                                     echo '<meta http-equiv="refresh" content="0; url=/en/eadmin?action=newsModule&type=' . $_GET['type'] . '&id=' . $_GET['id'] . '&super=' . $_GET['super'] . '&token=' . $token . '" />';
                                                                                                     exit;
                                                                                                 }
                                                                                                 $data["website_title"] = "News module / Admin Panel - v: " . $c['cmsversion'];
                                                                                                 $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                 $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                 $model_admin_newsmodule = new model_admin_newsmodule();
                                                                                                 $news_list = $model_admin_newsmodule->select_list($c);
                                                                                                 $data['table'] = $news_list['table'];
                                                                                                 $data['pager'] = $news_list['pager'];
                                                                                                 @(include "view/view_admin_news_module.php");
                                                                                             } else {
                                                                                                 if (isset($action) && $action == "addNews" && isset($_GET['newsidx'])) {
                                                                                                     $data["website_title"] = "Add news / Admin Panel - v: " . $c['cmsversion'];
                                                                                                     $news_slug = new news_slug();
                                                                                                     $data["pre_slug"] = $news_slug->slug($c);
                                                                                                     @(include "view/view_admin_addnews.php");
                                                                                                 } else {
                                                                                                     if (isset($action) && $action == "addCatalog" && isset($_GET['catalogidx'])) {
                                                                                                         $data["website_title"] = "Add catalog / Admin Panel - v: " . $c['cmsversion'];
                                                                                                         $news_slug = new news_slug();
                                                                                                         $data["pre_slug"] = $news_slug->slug($c);
                                                                                                         @(include "view/view_admin_addcatalog.php");
                                                                                                     } else {
                                                                                                         if (isset($action) && $action == "catalogModule") {
                                                                                                             $data["website_title"] = "Catalog module / Admin Panel - v: " . $c['cmsversion'];
                                                                                                             $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                             $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                             $model_admin_catalogmodule = new model_admin_catalogmodule();
                                                                                                             $news_list = $model_admin_catalogmodule->select_list($c);
                                                                                                             $data['table'] = $news_list['table'];
                                                                                                             $data['pager'] = $news_list['pager'];
                                                                                                             @(include "view/view_admin_catalog_module.php");
                                                                                                         } else {
                                                                                                             if (isset($action) && $action == "editNewsItem") {
                                                                                                                 $data["website_title"] = "Edit news item / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                 $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                 $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                 $edit_page_interface = new edit_page_interface();
                                                                                                                 $data["interface"] = $edit_page_interface->out_interface($c);
                                                                                                                 @(include "view/view_admin_editNewsItem.php");
                                                                                                             } else {
                                                                                                                 if (isset($action) && $action == "editCatalogItem") {
                                                                                                                     $data["website_title"] = "Edit catalog item / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                     $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                     $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                     $edit_page_interface = new edit_page_interface();
                                                                                                                     $data["interface"] = $edit_page_interface->out_interface($c);
                                                                                                                     @(include "view/view_admin_editCatalogItem.php");
                                                                                                                 } else {
                                                                                                                     if (isset($action) && $action == "catalogMoreInfo") {
                                                                                                                         $data["website_title"] = "Catalog more info  / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                         $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                         $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                         $model_admin_catalogmoreinfo = new model_admin_catalogmoreinfo();
                                                                                                                         $news_list = $model_admin_catalogmoreinfo->select_list_all($c);
                                                                                                                         $data['table'] = $news_list['table'];
                                                                                                                         $data['pager'] = $news_list['pager'];
                                                                                                                         @(include "view/view_admin_catalogmoreinfo.php");
                                                                                                                     } else {
                                                                                                                         if (isset($action) && $action == "addCatalogMoreInfo") {
                                                                                                                             $data["website_title"] = "Add catalog more info / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                             $model_admin_catalogmodule = new model_admin_catalogmodule();
                                                                                                                             $data["catalogs"] = $model_admin_catalogmodule->getcatalogs($c);
                                                                                                                             @(include "view/view_admin_addcatalogmoreinfo.php");
                                                                                                                         } else {
                                                                                                                             if (isset($action, $_GET['id']) && is_numeric($_GET['id']) && $action == "editCatalogMoreInfo") {
                                                                                                                                 $data["website_title"] = "Edit catalog more info / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                 $model_admin_catalogmoreinfo = new model_admin_catalogmoreinfo();
                                                                                                                                 $data['info'] = $model_admin_catalogmoreinfo->select_one($c, $_GET['id']);
                                                                                                                                 $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                 $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                 $model_admin_catalogmodule = new model_admin_catalogmodule();
                                                                                                                                 $data["catalogs"] = $model_admin_catalogmodule->getcatalogs($c);
                                                                                                                                 @(include "view/view_admin_editcatalogmoreinfo.php");
                                                                                                                             } else {
                                                                                                                                 if (isset($action) && $action == "components") {
                                                                                                                                     $data["website_title"] = "Components / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                     $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                     $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                     $model_admin_components = new model_admin_components();
                                                                                                                                     $components = $model_admin_components->select($c);
                                                                                                                                     $data['table'] = $components['table'];
                                                                                                                                     $data['pager'] = $components['pager'];
                                                                                                                                     @(include "view/view_admin_components.php");
                                                                                                                                 } else {
                                                                                                                                     if (isset($action) && $action == "addComponents") {
                                                                                                                                         $data["website_title"] = "Add components / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                         @(include "view/view_admin_addcomponents.php");
                                                                                                                                     } else {
                                                                                                                                         if (isset($action) && $action == "editComponents") {
                                                                                                                                             $data["website_title"] = "Edit components / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                             $edit_page_interface = new edit_page_interface();
                                                                                                                                             $data["interface"] = $edit_page_interface->general_form_components($c);
                                                                                                                                             @(include "view/view_admin_editcomponents.php");
                                                                                                                                         } else {
                                                                                                                                             if (isset($action) && $action == "componentModule") {
                                                                                                                                                 $data["website_title"] = "Component module / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                 $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                 $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                 $model_admin_componentsmodele = new model_admin_componentsmodele();
                                                                                                                                                 $components = $model_admin_componentsmodele->select($c);
                                                                                                                                                 $data['table'] = $components['table'];
                                                                                                                                                 $data['pager'] = $components['pager'];
                                                                                                                                                 @(include "view/view_admin_componentsmodel.php");
                                                                                                                                             } else {
                                                                                                                                                 if (isset($action) && $action == "addComponentsModule") {
                                                                                                                                                     $data["website_title"] = "Add components module / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                     @(include "view/view_admin_addcomponentsmodule.php");
                                                                                                                                                 } else {
                                                                                                                                                     if (isset($action) && $action == "editComponentsModule") {
                                                                                                                                                         $data["website_title"] = "Edit components module / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                         $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                         $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                         $model_admin_componentsmodele = new model_admin_componentsmodele();
                                                                                                                                                         $data["select"] = $model_admin_componentsmodele->select_one($c);
                                                                                                                                                         @(include "view/view_admin_editcomponentsmodule.php");
                                                                                                                                                     } else {
                                                                                                                                                         if (isset($action) && $action == "languages") {
                                                                                                                                                             $data["website_title"] = "Languages / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                             $model_admin_languages = new model_admin_languages();
                                                                                                                                                             $languages = $model_admin_languages->select($c);
                                                                                                                                                             $data['table'] = $languages['table'];
                                                                                                                                                             $data['pager'] = $languages['pager'];
                                                                                                                                                             @(include "view/view_admin_languages.php");
                                                                                                                                                         } else {
                                                                                                                                                             if (isset($action) && $action == "addlanguage") {
                                                                                                                                                                 $data["website_title"] = "Add language / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                 @(include "view/view_admin_addlanguage.php");
                                                                                                                                                             } else {
                                                                                                                                                                 if (isset($action) && $action == "editLanguage") {
                                                                                                                                                                     $data["website_title"] = "Edit language / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                     $model_admin_languages = new model_admin_languages();
                                                                                                                                                                     $data["info"] = $model_admin_languages->select_one($c);
                                                                                                                                                                     @(include "view/view_admin_editlanguage.php");
                                                                                                                                                                 } else {
                                                                                                                                                                     if (isset($action) && $action == "languageData") {
                                                                                                                                                                         $data["website_title"] = "Language data / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                         $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                         $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                         $model_admin_languageData = new model_admin_languageData();
                                                                                                                                                                         $languages = $model_admin_languageData->select($c);
                                                                                                                                                                         $data['table'] = $languages['table'];
                                                                                                                                                                         $data['pager'] = $languages['pager'];
                                                                                                                                                                         @(include "view/view_admin_languageData.php");
                                                                                                                                                                     } else {
                                                                                                                                                                         if (isset($action) && $action == "addlanguageData") {
                                                                                                                                                                             $data["website_title"] = "Add language data / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                             @(include "view/view_admin_addlanguageData.php");
                                                                                                                                                                         } else {
                                                                                                                                                                             if (isset($action) && $action == "editLanguageData") {
                                                                                                                                                                                 $data["website_title"] = "Edit language data / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                 $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                 $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                 $model_admin_languageData = new model_admin_languageData();
                                                                                                                                                                                 $data["info"] = $model_admin_languageData->select_one($c);
                                                                                                                                                                                 @(include "view/view_admin_editlanguagedata.php");
                                                                                                                                                                             } else {
                                                                                                                                                                                 if (isset($action) && $action == "charts") {
                                                                                                                                                                                     $data["website_title"] = "Charts / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                     $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                     $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                     $model_admin_charts = new model_admin_charts();
                                                                                                                                                                                     $invoices = $model_admin_charts->select($c);
                                                                                                                                                                                     $data['table'] = $invoices['table'];
                                                                                                                                                                                     $data['pager'] = $invoices['pager'];
                                                                                                                                                                                     @(include "view/view_admin_charts.php");
                                                                                                                                                                                 } else {
                                                                                                                                                                                     if (isset($action) && $action == "addChart") {
                                                                                                                                                                                         $data["website_title"] = "Add Chart / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                         // $model_admin_charts = new model_admin_charts();
                                                                                                                                                                                         // $invoices = $model_admin_charts->select($c);
                                                                                                                                                                                         // $data['table'] = $invoices['table'];
                                                                                                                                                                                         // $data['pager'] = $invoices['pager'];
                                                                                                                                                                                         @(include "view/view_admin_charts_add.php");
                                                                                                                                                                                         //addChart
                                                                                                                                                                                     } else {
                                                                                                                                                                                         if (isset($action) && $action == "emailnewsletter") {
                                                                                                                                                                                             $data["website_title"] = "Email newsletter / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                             $model_admin_newslettermain = new model_admin_newslettermain();
                                                                                                                                                                                             $data["info"] = $model_admin_newslettermain->select_main($c);
                                                                                                                                                                                             $data["email_limit"] = $c["max.send.email.per.day"];
                                                                                                                                                                                             @(include "view/view_admin_emailnewsletter.php");
                                                                                                                                                                                         } else {
                                                                                                                                                                                             if (isset($action) && $action == "invoices") {
                                                                                                                                                                                                 $data["website_title"] = "Invoices / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                 $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                                 $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                                 $model_admin_invoices = new model_admin_invoices();
                                                                                                                                                                                                 $invoices = $model_admin_invoices->select($c);
                                                                                                                                                                                                 $data['table'] = $invoices['table'];
                                                                                                                                                                                                 $data['pager'] = $invoices['pager'];
                                                                                                                                                                                                 @(include "view/view_admin_invoices.php");
                                                                                                                                                                                             } else {
                                                                                                                                                                                                 if (isset($action) && $action == "addInvoice") {
                                                                                                                                                                                                     $data["website_title"] = "Add invoice / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                     $lang = new model_admin_languageData();
                                                                                                                                                                                                     $data["webhosting"] = $lang->l("webhosting");
                                                                                                                                                                                                     $data["creatingawebsite"] = $lang->l("creatingawebsite");
                                                                                                                                                                                                     $data["gadaxdilia"] = $lang->l("gadaxdilia");
                                                                                                                                                                                                     $data["gadasaxdeli"] = $lang->l("gadasaxdeli");
                                                                                                                                                                                                     $data["otherservice"] = $lang->l("otherservice");
                                                                                                                                                                                                     $model_admin_select = new model_admin_select();
                                                                                                                                                                                                     $data["fetch"] = $model_admin_select->select_admin_names_for_invoice($c);
                                                                                                                                                                                                     @(include "view/view_admin_addinvoice.php");
                                                                                                                                                                                                 } else {
                                                                                                                                                                                                     if (isset($action) && $action == "editInvoice") {
                                                                                                                                                                                                         $data["website_title"] = "Edit invoice / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                         $lang = new model_admin_languageData();
                                                                                                                                                                                                         $data["webhosting"] = $lang->l("webhosting");
                                                                                                                                                                                                         $data["creatingawebsite"] = $lang->l("creatingawebsite");
                                                                                                                                                                                                         $data["gadaxdilia"] = $lang->l("gadaxdilia");
                                                                                                                                                                                                         $data["gadasaxdeli"] = $lang->l("gadasaxdeli");
                                                                                                                                                                                                         $data["otherservice"] = $lang->l("otherservice");
                                                                                                                                                                                                         $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                                         $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                                         $model_admin_invoices = new model_admin_invoices();
                                                                                                                                                                                                         $data["info"] = $model_admin_invoices->select_one($c);
                                                                                                                                                                                                         @(include "view/view_admin_editinvoice.php");
                                                                                                                                                                                                     } else {
                                                                                                                                                                                                         if (isset($action) && $action == "gallery") {
                                                                                                                                                                                                             $data["website_title"] = "Gallery module / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                             $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                                             $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                                             $model_admin_gallery = new model_admin_gallery();
                                                                                                                                                                                                             $news_list = $model_admin_gallery->select($c);
                                                                                                                                                                                                             $data['table'] = $news_list['table'];
                                                                                                                                                                                                             $data['pager'] = $news_list['pager'];
                                                                                                                                                                                                             @(include "view/view_admin_gallery.php");
                                                                                                                                                                                                         } else {
                                                                                                                                                                                                             if (isset($action) && $action == "addGallery" && isset($_GET['mediaidx'])) {
                                                                                                                                                                                                                 $data["website_title"] = "Add gallery / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                 $news_slug = new news_slug();
                                                                                                                                                                                                                 $data["pre_slug"] = $news_slug->slug($c);
                                                                                                                                                                                                                 @(include "view/view_admin_addgallery.php");
                                                                                                                                                                                                             } else {
                                                                                                                                                                                                                 if (isset($action) && $action == "editMediaItem") {
                                                                                                                                                                                                                     $data["website_title"] = "Edit gallery item / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                     $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                                                     $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                                                     $edit_page_interface = new edit_page_interface();
                                                                                                                                                                                                                     $data["interface"] = $edit_page_interface->out_interface($c);
                                                                                                                                                                                                                     @(include "view/view_admin_editMediaItem.php");
                                                                                                                                                                                                                 } else {
                                                                                                                                                                                                                     if (isset($action) && $action == "vectormap") {
                                                                                                                                                                                                                         $data["website_title"] = "Vector map / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                         $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                                                         $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                                                         $model_admin_vectormap = new model_admin_vectormap();
                                                                                                                                                                                                                         $map = $model_admin_vectormap->select($c);
                                                                                                                                                                                                                         $data['table'] = $map['table'];
                                                                                                                                                                                                                         $data['pager'] = $map['pager'];
                                                                                                                                                                                                                         @(include "view/view_admin_map.php");
                                                                                                                                                                                                                     } else {
                                                                                                                                                                                                                         if (isset($action) && $action == "managedemails") {
                                                                                                                                                                                                                             $data["website_title"] = "Manage emails / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                             $model_admin_menageemails = new model_admin_menageemails();
                                                                                                                                                                                                                             $groups = $model_admin_menageemails->select($c);
                                                                                                                                                                                                                             $data['table'] = $groups['table'];
                                                                                                                                                                                                                             $data['pager'] = $groups['pager'];
                                                                                                                                                                                                                             @(include "view/view_admin_menageemails.php");
                                                                                                                                                                                                                         } else {
                                                                                                                                                                                                                             if (isset($action) && $action == "editVectorMap") {
                                                                                                                                                                                                                                 $data["website_title"] = "Edit trade map / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                 $lang = new model_admin_languageData();
                                                                                                                                                                                                                                 $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                                                                 $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                                                                 $model_admin_vectormap = new model_admin_vectormap();
                                                                                                                                                                                                                                 $data["select"] = $model_admin_vectormap->select_one($c);
                                                                                                                                                                                                                                 @(include "view/view_admin_editvectormap.php");
                                                                                                                                                                                                                             } else {
                                                                                                                                                                                                                                 if (isset($action) && $action == "addEmailGroup") {
                                                                                                                                                                                                                                     $data["website_title"] = "Add email groups / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                     @(include "view/view_admin_addemailgroups.php");
                                                                                                                                                                                                                                 } else {
                                                                                                                                                                                                                                     if (isset($action) && $action == "editEmailGroup") {
                                                                                                                                                                                                                                         $data["website_title"] = "Edit email groups / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                         $model_admin_menageemails = new model_admin_menageemails();
                                                                                                                                                                                                                                         $data['info'] = $model_admin_menageemails->select_one($c);
                                                                                                                                                                                                                                         @(include "view/view_admin_editemailgroups.php");
                                                                                                                                                                                                                                     } else {
                                                                                                                                                                                                                                         if (isset($action) && $action == "showemails") {
                                                                                                                                                                                                                                             $data["website_title"] = "Email list / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                             $model_admin_emaillist = new model_admin_emaillist();
                                                                                                                                                                                                                                             $groups = $model_admin_emaillist->select($c);
                                                                                                                                                                                                                                             $data['table'] = $groups['table'];
                                                                                                                                                                                                                                             $data['pager'] = $groups['pager'];
                                                                                                                                                                                                                                             @(include "view/view_admin_menageemailLiss.php");
                                                                                                                                                                                                                                         } else {
                                                                                                                                                                                                                                             if (isset($action) && $action == "addEmail") {
                                                                                                                                                                                                                                                 $data["website_title"] = "Add email / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                 @(include "view/view_admin_addemail.php");
                                                                                                                                                                                                                                             } else {
                                                                                                                                                                                                                                                 if (isset($action) && $action == "editEmail") {
                                                                                                                                                                                                                                                     $data["website_title"] = "Edit email / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                     $model_admin_emaillist = new model_admin_emaillist();
                                                                                                                                                                                                                                                     $data['info'] = $model_admin_emaillist->select_one($c);
                                                                                                                                                                                                                                                     @(include "view/view_admin_editemail.php");
                                                                                                                                                                                                                                                 } else {
                                                                                                                                                                                                                                                     if (isset($action) && $action == "outbox") {
                                                                                                                                                                                                                                                         $data["website_title"] = "Outbox / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                         $model_admin_emaillist = new model_admin_emaillist();
                                                                                                                                                                                                                                                         $outbox = $model_admin_emaillist->outbox($c);
                                                                                                                                                                                                                                                         $data['table'] = $outbox['table'];
                                                                                                                                                                                                                                                         $data['pager'] = $outbox['pager'];
                                                                                                                                                                                                                                                         @(include "view/view_admin_outbox.php");
                                                                                                                                                                                                                                                     } else {
                                                                                                                                                                                                                                                         if (isset($action) && $action == "comments") {
                                                                                                                                                                                                                                                             $data["website_title"] = "Comments / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                             $model_admin_comments = new model_admin_comments();
                                                                                                                                                                                                                                                             $outbox = $model_admin_comments->get_comments($c);
                                                                                                                                                                                                                                                             $data['table'] = $outbox['table'];
                                                                                                                                                                                                                                                             $data['pager'] = $outbox['pager'];
                                                                                                                                                                                                                                                             @(include "view/view_admin_comments.php");
                                                                                                                                                                                                                                                         } else {
                                                                                                                                                                                                                                                             if (isset($action) && $action == "editComments") {
                                                                                                                                                                                                                                                                 $data["website_title"] = "Edit comments / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                                 $model_admin_selectLanguage = new model_admin_selectLanguage();
                                                                                                                                                                                                                                                                 $data["language_select"] = $model_admin_selectLanguage->select_option($c);
                                                                                                                                                                                                                                                                 $model_admin_comments = new model_admin_comments();
                                                                                                                                                                                                                                                                 $data["data"] = $model_admin_comments->select_one($c);
                                                                                                                                                                                                                                                                 @(include "view/view_admin_editComments.php");
                                                                                                                                                                                                                                                             } else {
                                                                                                                                                                                                                                                                 if (isset($action) && $action == "addComments") {
                                                                                                                                                                                                                                                                     $data["website_title"] = "Add comments / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                                     @(include "view/view_admin_addComments.php");
                                                                                                                                                                                                                                                                 } else {
                                                                                                                                                                                                                                                                     if (isset($action) && $action == "filemanager") {
                                                                                                                                                                                                                                                                         $data["website_title"] = "File manager / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                                         @(include "view/view_admin_filemanager.php");
                                                                                                                                                                                                                                                                     } else {
                                                                                                                                                                                                                                                                         $data["website_title"] = "Welcome / Admin Panel - v: " . $c['cmsversion'];
                                                                                                                                                                                                                                                                         $data["c"] = $c;
                                                                                                                                                                                                                                                                         $userData = new userData();
                                                                                                                                                                                                                                                                         $data["userIp"] = $userData->getUserIP();
                                                                                                                                                                                                                                                                         @(include "view/view_admin_home.php");
                                                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                             }
                                                                                                                                                                                                                         }
                                                                                                                                                                                                                     }
                                                                                                                                                                                                                 }
                                                                                                                                                                                                             }
                                                                                                                                                                                                         }
                                                                                                                                                                                                     }
                                                                                                                                                                                                 }
                                                                                                                                                                                             }
                                                                                                                                                                                         }
                                                                                                                                                                                     }
                                                                                                                                                                                 }
                                                                                                                                                                             }
                                                                                                                                                                         }
                                                                                                                                                                     }
                                                                                                                                                                 }
                                                                                                                                                             }
                                                                                                                                                         }
                                                                                                                                                     }
                                                                                                                                                 }
                                                                                                                                             }
                                                                                                                                         }
                                                                                                                                     }
                                                                                                                                 }
                                                                                                                             }
                                                                                                                         }
                                                                                                                     }
                                                                                                                 }
                                                                                                             }
                                                                                                         }
                                                                                                     }
                                                                                                 }
                                                                                             }
                                                                                         }
                                                                                     }
                                                                                 }
                                                                             }
                                                                         }
                                                                     }
                                                                 }
                                                             }
                                                         }
                                                     }
                                                 }
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     } else {
         $data["website_title"] = "Login / Admin Panel - v: " . $c['cmsversion'];
         @(include "view/view_admin_login.php");
     }
 }
예제 #8
0
<?php 
error_reporting(E_ALL);
require_once 'class.authentification.php';
require_once 'class.util.php';
require_once 'class.demande.php';
require_once 'class.database.php';
$auth = authentification::instance();
$matricule = util::getParam($_GET, 'matricule');
$changeStatus = util::getParam($_GET, 'changeStatus');
if (!$auth->isUserAdmin() || empty($matricule)) {
    require_once "header.php";
    print util::cleanUTF8("Problème d'identification ou de matricule");
    exit(0);
}
$demande = new demande($matricule);
$user = new userData($matricule);
$db = database::instance();
if ($changeStatus == "1") {
    $printedStatus = demandStatus::PRINTED_STATUS;
    $result = $db->requete("SELECT description FROM st_status WHERE st_status.statusId={$printedStatus}");
    $resultArray = mysql_fetch_array($result);
    $demande->getStatus()->setToPrinted(util::cleanUTF8($resultArray[demandStatus::STATUS_DESC_DB_FIELD]));
    print '<body>';
} else {
    print '<body onload="javascript:window.print()">';
}
?>
<img src="AEP.gif"/>
<h2>Demande de stationnement</h2>
<p>
<fieldset>