This repository was archived by the owner on Mar 16, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.php
More file actions
107 lines (88 loc) · 4.09 KB
/
main.php
File metadata and controls
107 lines (88 loc) · 4.09 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
/*
Ortholog Project
Main viewer file
(c) 2014 Dul Zoltan
*/
// THIS FILE
$this_file = "main.php";
// INCLUDING files
include_once("_includes/mysql.php"); // MySQL kapcsolat
include_once("_includes/mylog.php"); // MyLOG fájl
// PAGE DETECT
if((!isset($_POST) AND !isset($_GET["mit"])) OR (isset($_GET["mit"]) AND $_GET["mit"] == "query") ) $this_page = 1;
elseif (isset($_POST["kuld"])) $this_page = 2;
else {
if(!isset($_GET["mit"])) $this_page = 1;
elseif ($_GET["mit"] == "stat") $this_page = 3;
elseif ($_GET["mit"] == "data") $this_page = 4;
elseif ($_GET["mit"] == "source") $this_page = 5;
elseif ($_GET["mit"] == "about") $this_page = 6;
else include $this_page = 1;
}
// INCLUDING PAGES
$inc_mappa = "_includes";
$this_page_array = array();
$this_page_array[1] = array("QUERY","include_1_form.php");
$this_page_array[2] = array("QUERY for Ortholog Project","include_2_analysis.php");
$this_page_array[3] = array("Statistics","include_3_stat.php");
$this_page_array[4] = array("Data Methods","include_4_data.php");
$this_page_array[5] = array("References","include_5_source.php");
$this_page_array[6] = array("About us","include_6_about.php");
$this_page_array[7] = array("Interactions","include_7_ints.php");
$this_page_include = $inc_mappa . "/" . $this_page_array[$this_page][1];
$this_page_title = $this_page_array[$this_page][0];
// LOGGING
$log->logging('PAGE VISIT', "new visit on page ". $this_page_array[$this_page][0] . " (".$this_page.")");
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Ortholog Project</title>
<meta name="description" content="Dr. Dúl Zoltán - Fogorvos, kutató">
<meta name="keywords" content="Dúl Zoltán, fogorvos, kutatás, phd, hálózatbiológia, rendszerbiológia" />
<script type="text/javascript" src="_media/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="_media/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="_media/js/jquery.hovercard.min.js"></script>
<script type="text/javascript" src="_media/js/dataTables.tableTools.min.js"></script>
<script type="text/javascript" src="_media/js/ZeroClipboard.js"></script>
<script type="text/javascript" src="_media/js/cytoscape.min.js"></script>
<script type="text/javascript" src="_media/js/cytoscape.js-panzoom.js"></script>
<script type="text/javascript" src="_media/js/arbor.js"></script>
<script type="text/javascript" src="_media/js/arbor-tween.js"></script>
<link rel="stylesheet" href="_media/css/ortholog.css" type="text/css" />
<link rel="stylesheet" href="_media/css/table.css" type="text/css" />
<link rel="stylesheet" href="_media/css/table_jui.css" type="text/css" />
<link rel="stylesheet" href="_media/css/TableTools_JUI.css" type="text/css" />
<link rel="stylesheet" href="_media/css/jquery-ui-1.10.4.custom.min.css" type="text/css" />
<link rel="stylesheet" href="_media/css/cytoscape.js-panzoom.css" type="text/css" />
<link rel="stylesheet" href="_media/css/font-awesome.css" type="text/css" />
</head>
<body class="background">
<div id="main">
<div id="header-w">
<div id="header"></div>
</div>
<div id="wrapper">
<div id="nav">
<div id="nav-inside">
<ul class="menu">
<li><a href='<?php print $this_file; ?>?mit=query'>QUERY</a></li>
<li><a href='<?php print $this_file; ?>?mit=stat'>STATISTICS</a></li>
<li><a href='<?php print $this_file; ?>?mit=data'>DATA METHODS</a></li>
<li><a href='<?php print $this_file; ?>?mit=source'>REFERENCES</a></li>
<li><a href='<?php print $this_file; ?>?mit=about'>ABOUT US</a></li>
</ul>
</div>
</div>
</div>
<div id="main-content">
<h2><a href name='zero'></a><?php print $this_page_title; ?></h2>
<div id="center"><?php include_once($this_page_include); ?></div>
<div id="gototop"><a href='#zero'>Go to the top</a></div>
<div id="netbiol">© <?php echo date("Y"); ?> <a href="http://www.kcl.ac.uk/index.aspx" target="_blank" class="pagebottomlink">King's College London</a> & <a href="http://www.fmach.it/" target="_blank" class="pagebottomlink">Fondazione Edmund Mach</a></div>
<div class="bottompage"></div>
</div>
</div>
</body>
</html>