This repository was archived by the owner on Dec 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
84 lines (70 loc) · 2.69 KB
/
index.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
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
<?php
require 'bootstrap.php';
include_once('php/project.php');
$u = new user('1');
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="viewport" content="width=device-width, minimal-ui">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<title>nemex.io</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/style-res.css">
<link rel="apple-touch-icon" sizes="60x60" href="touch-icon-iphone.png">
<link rel="apple-touch-icon" sizes="76x76" href="img/touch-icon-ipad.png">
<link rel="apple-touch-icon" sizes="120x120" href="img/touch-icon-iphone-retina.png">
<link rel="apple-touch-icon" sizes="152x152" href="img/touch-icon-ipad-retina.png">
<script> var noElements = 0; </script>
<link rel="icon" type="image/png" href="favicon.png" />
</head>
<body>
<div id="mdhelp">
<h1>markdown help</h1>
headlines: # headline1 ## headline2 ...<br/>
code: `nemex` (backticks)<br />
link: [nemex io](http://www.nemex.io)<br/>
bold text: *nemex* or _nemex_<br />
italic text: **nemex** or __nemex__<br />
</div>
<?php
if(isset($_GET['view']) ) {
$p = new project($_GET['view'], '1');
$p->getNodes();
$p->showProject();
}
else if(isset($_GET['deleteProject']) ) {
$p = new project($_GET['deleteProject'], '1');
$p->deleteProject();
}
else {
echo '<div class="header">NEMEX</div>';
echo '<div class="project-list">';
echo '<div id="addProject"></div>
<div class="addProjectForm">
<input type="text" id="newProject" placeholder="Project name:"/><br/><button type="submit" id="np" ></button>
</div>';
$u->showProjects();
echo '</div>';
echo '<div class="navigation">
<a class="index" href="logout.php"><img src="img/logout.svg" /></a>
</div>';
}
?>
<div class="preloader">
<img src="img/[email protected]" />
<img src="img/[email protected]" />
<img src="img/[email protected]" />
</div>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="js/contenteditable.js" type="text/javascript" ></script>
<script src="js/showdown.js" type="text/javascript" ></script>
<script src="js/to-markdown.js" type="text/javascript" ></script>
<script src="js/script.js" type="text/javascript"></script>
<script src="js/jquery.autosize.min.js" type="text/javascript"></script>
<script src="js/snap.min.js" type="text/javascript"></script>
<script src="js/webapp.js" type="text/javascript"></script>
</body>
</html>