Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add condition in htaccess * Update css default skin
- Loading branch information
Showing
89 changed files
with
5,781 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<tr> | ||
<td colspan="{$col}"> | ||
<div class="alert alert-info text-center"> | ||
<p><span class="fa fa-info"></span> Aucune page trouvée pour cette recherche.</p> | ||
<p><span class="fa fa-info"></span> {#no_result#|ucfirst} <a href="{$smarty.server.SCRIPT_NAME}?controller={$smarty.get.controller}" class="btn btn-info"><span class="fa fa-eraser"></span> {#reset#}</a></p> | ||
</div> | ||
</td> | ||
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
<?php | ||
/* | ||
# -- BEGIN LICENSE BLOCK ---------------------------------- | ||
# | ||
# This file is part of MAGIX CMS. | ||
# MAGIX CMS, The content management system optimized for users | ||
# Copyright (C) 2008 - 2013 magix-cms.com <support@magix-cms.com> | ||
# | ||
# OFFICIAL TEAM : | ||
# | ||
# * Gerits Aurelien (Author - Developer) <aurelien@magix-cms.com> <contact@aurelien-gerits.be> | ||
# | ||
# Redistributions of files must retain the above copyright notice. | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
# -- END LICENSE BLOCK ----------------------------------- | ||
# | ||
# DISCLAIMER | ||
# | ||
# Do not edit or add to this file if you wish to upgrade MAGIX CMS to newer | ||
# versions in the future. If you wish to customize MAGIX CMS for your | ||
# needs please refer to http://www.magix-cms.com for more information. | ||
*/ | ||
/** | ||
* MAGIX CMS | ||
* @category MODEL | ||
* @package frontend | ||
* @copyright MAGIX CMS Copyright (c) 2011 - 2012 Gerits Aurelien, | ||
* http://www.magix-cms.com, http://www.magix-cjquery.com | ||
* @license Dual licensed under the MIT or GPL Version 3 licenses. | ||
* @version 1.0 | ||
* @author Gérits Aurélien <aurelien@magix-cms.com> <aurelien@magix-dev.be> | <gerits.aurelien@gmail.com> | ||
* @name frontend_model_session | ||
* | ||
*/ | ||
class frontend_model_session | ||
{ | ||
/** | ||
* Nom de la session | ||
* @var $session_name | ||
*/ | ||
private $session_name; | ||
|
||
/** | ||
* Constructor | ||
*/ | ||
public function __construct(){} | ||
|
||
/** | ||
* @access private | ||
* Démarre une nouvelle session | ||
*/ | ||
public function _start_session($session_name='magix_default_s'){ | ||
if(isset($session_name)){ | ||
if($session_name != 'adminlang'){ | ||
$name = $session_name; | ||
}else{ | ||
$name = 'magix_default_s'; | ||
} | ||
} | ||
$string = $_SERVER['HTTP_USER_AGENT']; | ||
$string .= 'SHIFLETT'; | ||
/* Add any other data that is consistent */ | ||
$fingerprint = md5($string); | ||
//Fermeture de la première session, ses données sont sauvegardées. | ||
session_write_close(); | ||
session_name($name); | ||
ini_set('session.hash_function',1); | ||
session_start(); | ||
} | ||
|
||
/** | ||
* initialise les variables de session | ||
* @param array() $session | ||
* @throws Exception | ||
*/ | ||
private function ini_session_var($session){ | ||
if(is_array($session)) { | ||
foreach($session as $row => $val) { | ||
//if(!magixcjquery_filter_request::isSession($row)){ | ||
$_SESSION[$row] = $val; | ||
/*}else{ | ||
$_SESSION[$row]; | ||
}*/ | ||
} | ||
} else { | ||
throw new Exception('session init is not array'); | ||
} | ||
} | ||
|
||
/** | ||
* @access public | ||
* Initialise la session ou renouvelle la session | ||
* @param array $session_tabs | ||
*/ | ||
public function session_run($session_tabs){ | ||
try { | ||
//$lang = new frontend_model_IniLang(); | ||
//$lang->autoLangSession(); | ||
$this->ini_session_var($session_tabs); | ||
} catch (Exception $e) { | ||
$logger = new debug_logger(MP_LOG_DIR); | ||
$logger->log('php', 'error', 'An error has occured : '.$e->getMessage(), debug_logger::LOG_MONTH); | ||
} | ||
} | ||
|
||
/** | ||
* | ||
$session = new frontend_model_session(); | ||
if(!magixcjquery_filter_request::isSession('panier')){ | ||
$array_sess = array( | ||
'panier'=>magixglobal_model_cryptrsa::uniq_id(), | ||
'outils'=>'Le marteau du peuple' | ||
); | ||
$session->_start_session('masession'); | ||
$session->session_run($array_sess); | ||
}else{ | ||
$session->debug(); | ||
frontend_model_template::assign('session_super', $_SESSION['panier']); | ||
} | ||
*/ | ||
/** | ||
* @access public | ||
* Affiche le debug pour les sessions | ||
*/ | ||
public function debug(){ | ||
if (M_FIREPHP) { | ||
$firebug = new magixcjquery_debug_magixfire(); | ||
$firebug->magixFireGroup('Magix Session'); | ||
//$firebug->magixFireLog($_SESSION); | ||
$firebug->magixFireDump('session run',$_SESSION); | ||
$firebug->magixFireGroupEnd(); | ||
}else{ | ||
var_dump($_SESSION); | ||
} | ||
} | ||
} |
Oops, something went wrong.