source: pmb4.2/trunk/fuentes/pmb/cms/cms.inc.php @ 819

Last change on this file since 819 was 815, checked in by jrpelegrina, 4 years ago

Initial release of pmb 4.2

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1<?php
2// +-------------------------------------------------+
3// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
4// +-------------------------------------------------+
5// $Id: cms.inc.php,v 1.7 2015-01-09 10:20:52 dgoron Exp $
6
7if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) die("no access");
8
9if (substr(phpversion(), 0, 1) == "5") @ini_set("zend.ze1_compatibility_mode", "0");
10
11require_once ("$include_path/cms/cms.inc.php");
12require_once($class_path."/cms/cms_editorial.class.php");
13
14if (!$pmb_editorial_dojo_editor && $pmb_javascript_office_editor){
15        print $pmb_javascript_office_editor;
16}
17
18switch($categ) {                       
19        case 'build':
20                require_once("./cms/cms_build/cms_build.inc.php");             
21        break;
22        case 'pages':
23                $cms_layout = str_replace("!!menu_contextuel!!","",$cms_layout);
24                require_once("./cms/cms_pages/cms_pages.inc.php");             
25        break;
26        case 'section':
27                require_once("./cms/cms_sections/cms_section.inc.php");         
28        break;
29        case 'editorial':
30                $cms_layout = str_replace("!!menu_contextuel!!","",$cms_layout);
31                require_once("./cms/cms_editorial/cms_editorial.inc.php");             
32        break;
33        case 'article':
34                $cms_layout = str_replace("!!menu_contextuel!!","",$cms_layout);
35                require_once("./cms/cms_articles/cms_articles.inc.php");               
36        break;
37        case "collection" :
38                $cms_layout = str_replace("!!menu_contextuel!!","",$cms_layout);
39                require_once("./cms/cms_collection/cms_collection.inc.php");
40                break;
41        case 'manage':
42                require_once("./cms/cms_manage_module.inc.php");               
43                break;
44        break;
45        default:
46                $cms_layout = str_replace("!!menu_contextuel!!","",$cms_layout);
47                print $cms_layout;
48        break;
49}               
50
51print $cms_layout_end;
Note: See TracBrowser for help on using the repository browser.