-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsemantic.php
53 lines (50 loc) · 1.49 KB
/
semantic.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net [email protected] et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: semantic.php,v 1.3 2017-06-16 09:33:40 mbertin Exp $
// définition du minimum nécéssaire
$base_path=".";
$base_auth = "";
$base_title = "\$msg[semantic]";
$base_use_dojo=1;
require_once ("$base_path/includes/init.inc.php");
// ini_set('errors_display',1);
// error_reporting(E_ALL);
require_once($class_path."/autoloader.class.php");
$autoloader = new autoloader();
$autoloader->add_register("onto_class",true);
require_once($class_path."/ontologies.class.php");
require_once($include_path."/templates/semantic.tpl.php");
print "<div id='att' style='z-Index:1000'></div>";
print $menu_bar;
print $extra;
print $extra2;
print $extra_info;
if($use_shortcuts) {
include("$include_path/shortcuts/circ.sht");
}
$ontologies = new ontologies();
$layout = str_replace("!!ontologies_menu!!",$ontologies->get_semantic_menu(),$semantic_layout);
print $layout;
if($ontology_id){
$ontology = new ontology($ontology_id);
$ontology->exec_data_framework();
}else{
//TODO
switch($categ){
case 'plugin' :
$plugins = plugins::get_instance();
$file = $plugins->proceed("semantic",$plugin,$sub);
if($file){
include $file;
}
break;
default :
print "<div class='row'>PAGE D'AIDE</div>";
break;
}
}
print $semantic_layout_end;
print $footer;
pmb_mysql_close($dbh);