-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.php
More file actions
151 lines (116 loc) · 7.66 KB
/
app.php
File metadata and controls
151 lines (116 loc) · 7.66 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?php
if(isset($_COOKIE["userid"])){
$mainurl="https://www.nexis365.com/saas";
$dirurl="/saas";
include 'authenticator.php';
if(isset($_COOKIE["sortset"])) $sortset=$_COOKIE["sortset"];
else $sortset=10;
echo"<!DOCTYPE html>
<html lang='en' data-footer='true'>";
include 'head.php';
echo"<body>
<div id='root'>";
include 'nav_bars.php';
echo"<main>
<div class='container'>
<div style='width:100%' id='datashiftX'>";
if(isset($_GET["url"])){
$url="modules/".$_GET["url"]."";
include $url;
}else{
include 'modules/ndis_dashboard.php';
}
echo"</div>
</div>";
// Top Side Bar
echo"<div class='offcanvas offcanvas-top' tabindex='-1' id='offcanvasTop' aria-labelledby='offcanvasTopLabel'>
<div class='offcanvas-header'>
<h5 id='offcanvasTopLabel'>Loading...</h5>
<button type='button' class='btn-close text-reset' data-bs-dismiss='offcanvas' aria-label='Close'></button>
</div>
<div class='offcanvas-body'>...</div>
</div>";
echo"<div class='offcanvas offcanvas-top' tabindex='-1' id='offcanvasTop2' aria-labelledby='offcanvasTopLabel' style='height:100%'>
<div class='offcanvas-header'>
<h5 id='offcanvasTopLabel'>Loading...</h5>
<button type='button' class='btn-close text-reset' data-bs-dismiss='offcanvas' aria-label='Close'></button>
</div>
<div class='offcanvas-body'>...</div>
</div>";
// Right Side Bar
echo"<div class='offcanvas offcanvas-end' tabindex='-1' id='offcanvasRight' aria-labelledby='offcanvasRightLabel'>
<div class='offcanvas-header'>
<h5 id='offcanvasRightLabel'>Loading...</h5>
<button type='button' class='btn-close text-reset' data-bs-dismiss='offcanvas' aria-label='Close'></button>
</div>
<div class='offcanvas-body'>...</div>
</div>
<div class='offcanvas offcanvas-end' tabindex='-1' id='offcanvasRightLarge' aria-labelledby='offcanvasRightLabel' style='width:50%'>
<div class='offcanvas-header'>
<h5 id='offcanvasRightLabel'>Loading...</h5>
<button type='button' class='btn-close text-reset' data-bs-dismiss='offcanvas' aria-label='Close'></button>
</div>
<div class='offcanvas-body'>...</div>
</div>";
// Left Side Bar. FILTER
echo"<div class='offcanvas offcanvas-start' tabindex='-1' id='offcanvasLeftFilter' aria-labelledby='offcanvasExampleLabel'>
<div class='offcanvas-header'>
<h5 class='offcanvas-title' id='offcanvasExampleLabel'>Loading...</h5>
<button type='button' class='btn-close text-reset' data-bs-dismiss='offcanvas' aria-label='Close'></button>
</div>
<div class='offcanvas-body'><div></div></div>
</div>";
// confirm delete modal bar
echo"<div class='modal fade' id='DeleteDataModal' tabindex='-1' role='dialog' aria-labelledby='exampleModalLabelDefault' aria-hidden='true'>
<div class='modal-dialog'>
<div class='modal-content'>
<div class='modal-header'>
<h5 class='modal-title' id='exampleModalLabelDefault'>Confirm Delete ?</h5>
<button type='button' class='btn-close' data-bs-dismiss='modal' aria-label='Close'></button>
</div>
<div class='modal-body' id='deletedataX'>...</div>
</div>
</div>
</div>";
echo"<div class='open-button' onclick='openForm()'>
<img src='assets/lets-talk.png' style='position:absolute;margin-left:10px;margin-top:-40px;width:30px'>
<img src='assets/talk.png' style='position:absolute;width:50px;margin-top:-20px;margin-left:-20px'>
</div>
<div class='chat-popup' id='myForm' style='width:400px;background-color:#eeeeee'>
<form action='/action_page.php' class='form-container'>
<table style='width:100%'>
<tr><td style='color:black;font-size:12pt'> Nexis Chat Bot (Under Training).</td><td style='width:20px'><a href='#' onclick='closeForm()'><i class='fa fa-times'></i></a></td></tr>
<tr><td colspan=2><iframe name='chatbot' src='bot.php' height='470px' width='100%' scrolling='yes' border='0' frameborder='0'> </iframe></td></tr>
</table>
</form>
</div>";
echo"</main>";
include 'footer.php';
echo"</div>";
include 'theme_bar.php';
include 'scripts.php';
echo"</body>
</html>";
}else{
echo"<form method='POST' action='login.php' name='main' target='_top'><input type=hidden name='uid' value=''><input type=hidden name='nexis' value='0'><input type=hidden name='smsbd' value='0'></form>";
?> <script language=JavaScript> document.main.submit(); </script> <?php
}
?>
</html>
<?php
/*
NOTES:
*** USE USERS Physiology
// session_start();
// echo '<pre>';var_dump($_SESSION);echo '</pre>';
// foreach ($_SESSION as $key=>$val)
// echo $key." ".$val."<br/>";
// echo '<pre>' . print_r($_SESSION, TRUE) . '</pre>';
// echo json_encode($_SESSION);
<form method='POST' action='index.php' name='main' target='_top'><input type=hidden name='uid' value='$uid'><input type=hidden name='nexis' value='0'><input type=hidden name='smsbd' value='0'></form>";
?> <script language=JavaScript> document.main.submit(); </script> <?php
echo"<script>alert('..')</script>";
echo"<a style='cursor: pointer' onclick=\"ChangeUrl('index.php?cPath=462'); shiftdata3('462', 'datashiftX')\" target='_self'> </a>";
<a href='index.php'><img src='img/nexis365_light.png' alt='Nexis365.com' style='margin-top:20px;width:100px;background-color:white;border-radius:10px;padding:10px;' /></a>
*/
?>