Permalink
Browse files

ALPHA V.13.2

  • Loading branch information...
wakdev committed Feb 12, 2013
1 parent 7f13bef commit 2b74cfc082379b9dbc749548255e40d6507876d0
Showing 1,633 changed files with 138,701 additions and 0 deletions.
@@ -0,0 +1,25 @@
SetEnv PHP_VER 5

Options +FollowSymlinks
Options -Indexes
RewriteEngine on

ErrorDocument 403 /index.php?mod=sl_error&id=403
ErrorDocument 404 /index.php?mod=sl_error&id=404

SetEnv SESSION_USE_TRANS_SID 0

# Pages Module
RewriteRule page-([0-9]+).* index.php?mod=sl_pages&id=$1 [L]

# Articles Module
RewriteRule article-([0-9]+).* index.php?mod=sl_articles&id=$1 [L]

# DEBUG
#php_flag display_startup_errors on
#php_flag display_errors on
#php_flag html_errors on
#php_flag ignore_repeated_errors off
#php_flag ignore_repeated_source off
#php_flag magic_quotes_gpc on
#php_value error_reporting 30719
@@ -0,0 +1,28 @@
<?php
/**
* @package SLASH-CMS
* @version index.php - Version 9.6.2
* @author Julien Veuillet [http://www.wakdev.com]
* @copyright Copyright(C) 2009 - Today. All rights reserved.
* @license GNU/GPL
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/>.
*/
//include core
include ("../core/slash.php");
$slash = new Slash ();
$slash->show_admin(); //show back office
?>
@@ -0,0 +1,10 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<script LANGUAGE = 'JavaScript'>
document.location.href="./index.php?mod=sl_error&id=403";
</script>
</body>
</html>
@@ -0,0 +1,95 @@
<?php
/**
* @package SLASH-CMS
* @subpackage sla_admmenu
* @internal Admin menu module
* @version sla_admmenu.php - Version 9.12.16
* @author Julien Veuillet [http://www.wakdev.com]
* @copyright Copyright(C) 2009 - Today. All rights reserved.
* @license GNU/GPL
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/>.
*/
/**
* @file
* @name sla_admmenu
* @defgroup sla_admmenu sla_admmenu
* Display module admin menu
* @{
*/
include ("models/admmenu.php");
include ("views/wd-admin/view.php");
class sla_admmenu_controller extends slaController implements iController{
public $view;
public $admmenu;
/**
* Contructor
*/
function sla_construct() {
$this->admmenu = new admmenu($this);
$this->view = new sla_admmenu_view($this);
}
/**
* Initialize function # require by slash-cms #
*/
public function initialize() {
$this->view->header();
}
/**
* Load function # require by slash-cms #
*/
public function load() {
$this->view->start_main_menu();
$this->admmenu->load_menu(0);
$this->view->end_main_menu();
}
/**
* User admin name
*/
public function get_admin_username (){
$row_user = $this->slash->get_admin_infos();
return $row_user["name"];
}
/**
* Execute function # require by slash-cms #
*/
public function execute() {
$this->view->execute_menu();
}
}
/**
* @}
*/
?>
@@ -0,0 +1,30 @@
<?php
/**
* @package SLASH-CMS
* @subpackage EN ADMMENU MODULE LANGUAGES
* @internal English admmenu module translate
* @version en.php - Version 10.1.19
* @author Julien Veuillet [http://www.wakdev.com]
* @copyright Copyright(C) 2009 - Today. All rights reserved.
* @license GNU/GPL
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/>.
*/
//Module SLA_ADMMENU
define("ADMMENU_DECONNEXION_TEXT", "Disconnect");
define("ADMMENU_CONNEXION_USERNAME", "Connected on");
?>
@@ -0,0 +1,30 @@
<?php
/**
* @package SLASH-CMS
* @subpackage FR ADMMENU MODULE LANGUAGES
* @internal French secure module translate
* @version fr.php - Version 10.1.19
* @author Julien Veuillet [http://www.wakdev.com]
* @copyright Copyright(C) 2009 - Today. All rights reserved.
* @license GNU/GPL
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/>.
*/
//Module SLA_ADMMENU
define("ADMMENU_DECONNEXION_TEXT", "D&eacute;connexion");
define("ADMMENU_CONNEXION_USERNAME", "Connect&eacute; en tant que");
?>
@@ -0,0 +1,83 @@
<?php
/**
* @package SLASH-CMS
* @subpackage sl_menu
* @internal FRONT Menu module
* @version menus.php - Version 12.2.14
* @author Julien Veuillet [http://www.wakdev.com]
* @copyright Copyright(C) 2009 - Today. All rights reserved.
* @license GNU/GPL
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/>.
* @addtogroup sl_menu
* @{
*/
class admmenu extends slaModel implements iModel {
public function have_dropdown($id){
$this->slash->database->setQuery("SELECT * FROM ".$this->slash->database_prefix."admmenu WHERE parent=".$id." AND enabled=1");
if (!$this->slash->database->execute()) {
$this->slash->show_fatal_error("QUERY_ERROR",$this->slash->database->getError());
}
if( $this->slash->database->rowCount() > 0 ) {
return true;
}else{
return false;
}
}
/**
* Loading menu function
* @param $parent parent id
*/
public function load_menu($parent) {
$this->slash->database->setQuery("SELECT * FROM ".$this->slash->database_prefix."admmenu WHERE parent=".$parent." AND enabled=1 ORDER by position");
if (!$this->slash->database->execute()) {
$this->slash->show_fatal_error("QUERY_ERROR",$this->slash->database->getError());
}
if( $this->slash->database->rowCount() > 0 ) {
if ($parent != 0 ) { $this->controller->view->start_under_menu();}
foreach ($this->slash->database->fetchAll("ASSOC") as $row) {
$this->controller->view->start_menu($row);
$this->load_menu($row["id"]);
}
if ($parent != 0 ) { $this->controller->view->end_under_menu();}
} else {
$this->controller->view->end_menu();
}
}
}
/**
* @}
*/
?>
@@ -0,0 +1 @@
@TODO : MVC MODEL
Oops, something went wrong.

0 comments on commit 2b74cfc

Please sign in to comment.