You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
656 lines
26 KiB
656 lines
26 KiB
<?php
|
|
function UI_INSTALL_PageHeader(){
|
|
|
|
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<meta name="netinsert" content="0.0.1.1.2.5.2">
|
|
<meta name="revisit-after" content="1 day">
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
|
|
<title>ARGUS System Setup</title>
|
|
<meta name="description" CONTENT="">
|
|
<meta name="robots" content="index, follow"/>
|
|
<meta name="keywords" content=""/>
|
|
<link rel="stylesheet" type="text/css" href="style/style.css"/>
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
|
<link rel="manifest" href="/site.webmanifest">
|
|
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
|
|
<meta name="msapplication-TileColor" content="#da532c">
|
|
<meta name="theme-color" content="#ffffff">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<style type="text/css">
|
|
.flowplayer {
|
|
width: 640px;
|
|
}
|
|
.fullscreen:-webkit-full-screen {
|
|
width: auto !important;
|
|
height: auto !important;
|
|
margin:auto !important;
|
|
}
|
|
.fullscreen:-moz-full-screen {
|
|
width: auto !important;
|
|
height: auto !important;
|
|
margin:auto !important;
|
|
}
|
|
.fullscreen:-ms-fullscreen {
|
|
width: auto !important;
|
|
height: auto !important;
|
|
margin:auto !important;
|
|
}
|
|
.header_ttl{
|
|
font: bold 24px;
|
|
}
|
|
html, body {
|
|
font: normal 12px verdana;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0 none;
|
|
/*overflow: hidden;
|
|
height: 100%;*/
|
|
background: #202020;
|
|
}
|
|
#output {
|
|
margin-left: 350px;
|
|
}
|
|
#log {
|
|
width: 80%;
|
|
height: 100px;
|
|
}
|
|
#player {
|
|
float: left;
|
|
}
|
|
#controls {
|
|
clear: left;
|
|
}
|
|
p {
|
|
margin: 0;
|
|
}
|
|
.timeInput, .volumeInput {
|
|
width: 3em;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bgbody"><center><?php
|
|
};
|
|
|
|
function UI_PageHeader(){
|
|
global $WEBPath, $Labels, $UserLang;
|
|
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<meta name="netinsert" content="0.0.1.1.2.5.2">
|
|
<meta name="revisit-after" content="1 day">
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
|
|
<title><?=$Labels->GetLabel('_SITE_TITLE_');?></title>
|
|
<meta name="description" CONTENT="<?=$Labels->GetLabel('_SITE_DESCRIPT_');?>">
|
|
<!--base href="<?=$WEBPath;?>"-->
|
|
<meta name="robots" content="index, follow"/>
|
|
<meta name="keywords" content=""/>
|
|
<link rel="stylesheet" type="text/css" href="style/style.css"/>
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
|
<link rel="manifest" href="/site.webmanifest">
|
|
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
|
|
<meta name="msapplication-TileColor" content="#da532c">
|
|
<meta name="theme-color" content="#ffffff">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<style type="text/css">
|
|
.flowplayer {
|
|
width: 640px;
|
|
}
|
|
.fullscreen:-webkit-full-screen {
|
|
width: auto !important;
|
|
height: auto !important;
|
|
margin:auto !important;
|
|
}
|
|
.fullscreen:-moz-full-screen {
|
|
width: auto !important;
|
|
height: auto !important;
|
|
margin:auto !important;
|
|
}
|
|
.fullscreen:-ms-fullscreen {
|
|
width: auto !important;
|
|
height: auto !important;
|
|
margin:auto !important;
|
|
}
|
|
.header_ttl{
|
|
font: bold 24px;
|
|
}
|
|
html, body {
|
|
font: normal 12px verdana;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0 none;
|
|
/*overflow: hidden;
|
|
height: 100%;*/
|
|
background: #202020;
|
|
}
|
|
#output {
|
|
margin-left: 350px;
|
|
}
|
|
#log {
|
|
width: 80%;
|
|
height: 100px;
|
|
}
|
|
#player {
|
|
float: left;
|
|
}
|
|
#controls {
|
|
clear: left;
|
|
}
|
|
p {
|
|
margin: 0;
|
|
}
|
|
.timeInput, .volumeInput {
|
|
width: 3em;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bgbody"><center><?php
|
|
|
|
};
|
|
|
|
|
|
function UI_PageHeaderExt($Static_Scoop = '', $Dynamic_Scoop = ''){
|
|
global $WEBPath, $Labels, $UserLang, $CUser;
|
|
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<meta name="netinsert" content="0.0.1.1.2.5.2">
|
|
<meta name="revisit-after" content="1 day">
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
|
|
<title><?=$Labels->GetLabel('_SITE_TITLE_');?></title>
|
|
<meta name="description" CONTENT="<?=$Labels->GetLabel('_SITE_DESCRIPT_');?>">
|
|
<!--meta http-equiv="refresh" content="600"-->
|
|
<!--base href="<?=$WEBPath;?>"-->
|
|
<meta name="robots" content="index, follow"/>
|
|
<meta name="keywords" content=""/>
|
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
|
<link rel="manifest" href="/site.webmanifest">
|
|
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
|
|
<meta name="msapplication-TileColor" content="#da532c">
|
|
<meta name="theme-color" content="#ffffff">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<?php
|
|
switch( $CUser->Data['ui_theme'] ){
|
|
case 0:
|
|
?>
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/ext-all-notheme.css"/>
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/xtheme-access.css"/>
|
|
<?php
|
|
break;
|
|
case 1:
|
|
?>
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/ext-all-notheme.css"/>
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/xtheme-gray.css"/>
|
|
<?php
|
|
break;
|
|
case 2:
|
|
?>
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/ext-all-notheme.css"/>
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/xtheme-blue.css"/>
|
|
<?php
|
|
break;
|
|
case 3:
|
|
?>
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/ext-all-notheme.css"/>
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/yourtheme.css"/>
|
|
<?php
|
|
break;
|
|
default:
|
|
?>
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/ext-all.css"/>
|
|
<?php
|
|
break;
|
|
|
|
};
|
|
?>
|
|
<link rel="stylesheet" type="text/css" href="/style/icons/silk.css"/>
|
|
<!-- GC -->
|
|
<!-- LIBS -->
|
|
<script type="text/javascript" src="lib/javascript/jquery/jquery-1.12.4.min.js"></script>
|
|
<script type="text/javascript" src="lib/javascript/extjs/adapter/jquery/ext-jquery-adapter.js"></script>
|
|
<!--script type="text/javascript" src="lib/javascript/extjs/adapter/ext/ext-base.js"></script-->
|
|
<script type="text/javascript" src="lib/javascript/extjs/ext-all.js"></script>
|
|
<script type="text/javascript" src="lib/javascript/extjs/ux/ux-all.js"></script>
|
|
<!--link rel="stylesheet" type="text/css" href="lib/javascript/extjs/ux/css/ux-all.css"/-->
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/extjs/ux/fileuploadfield/css/fileuploadfield.css"/>
|
|
<!--link rel="stylesheet" type="text/css" href="/style/leaflet.css"/-->
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/leaflet/leaflet.css"/>
|
|
<script type="text/javascript" src="lib/javascript/leaflet/leaflet.js"></script>
|
|
<script type="text/javascript" src="lib/javascript/leaflet/Leaflet.ImageOverlay.Rotated.js"></script>
|
|
<script type="text/javascript" src="lib/javascript/howler/howler.min.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotify.css" />
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/BrightTheme.css" />
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/Material.css" />
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/Angeler.css" />
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyBootstrap4.css" />
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyMobile.css" />
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyDesktop.css" />
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyConfirm.css" />
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyCountdown.css" />
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyPaginate.css" />
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyReference.css" />
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/coloris/coloris.min.css" />
|
|
|
|
<script type="text/javascript" src="lib/javascript/d3/d3.min.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/activitymap/activitymap.css" />
|
|
<script type="text/javascript" src="lib/javascript/activitymap/activitymap.js"></script>
|
|
|
|
<script type="text/javascript" src="lib/javascript/videojs/video.min.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="lib/javascript/videojs/video-js.min.css" />
|
|
|
|
<script type="text/javascript" src="lib/javascript/pnotyfy/PNotify.js"></script>
|
|
<script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyBootstrap4.js"></script>
|
|
<script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyFontAwesome5Fix.js"></script>
|
|
<script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyFontAwesome5.js"></script>
|
|
<script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyAnimate.js"></script>
|
|
<script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyMobile.js"></script>
|
|
<script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyDesktop.js"></script>
|
|
<script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyConfirm.js"></script>
|
|
<script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyCountdown.js"></script>
|
|
<script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyPaginate.js"></script>
|
|
<script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyReference.js"></script>
|
|
|
|
<script type="text/javascript" src="lib/javascript/coloris/coloris.min.js"></script>
|
|
<script type="text/javascript" src="lib/javascript/suMA/suMA.min.js"></script>
|
|
<!-- ENDLIBS -->
|
|
<style type="text/css">
|
|
.flowplayer {
|
|
width: 640px;
|
|
}
|
|
.fullscreen:-webkit-full-screen {
|
|
width: auto !important;
|
|
height: auto !important;
|
|
margin:auto !important;
|
|
}
|
|
.fullscreen:-moz-full-screen {
|
|
width: auto !important;
|
|
height: auto !important;
|
|
margin:auto !important;
|
|
}
|
|
.fullscreen:-ms-fullscreen {
|
|
width: auto !important;
|
|
height: auto !important;
|
|
margin:auto !important;
|
|
}
|
|
.header_ttl{
|
|
font: bold 24px;
|
|
}
|
|
html, body {
|
|
font: normal 12px verdana;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0 none;
|
|
/*overflow: hidden;
|
|
height: 100%;*/
|
|
background: #202020;
|
|
}
|
|
#output {
|
|
margin-left: 350px;
|
|
}
|
|
#log {
|
|
width: 80%;
|
|
height: 100px;
|
|
}
|
|
#player {
|
|
float: left;
|
|
}
|
|
#controls {
|
|
clear: left;
|
|
}
|
|
p {
|
|
margin: 0;
|
|
}
|
|
.timeInput, .volumeInput {
|
|
width: 3em;
|
|
}
|
|
</style>
|
|
<?php
|
|
if(is_array( $Static_Scoop )){
|
|
foreach( $Static_Scoop as $S ) {
|
|
echo '<script type="text/javascript" src="lib/javascript/jsapi_static/'. $S . '"></script>';
|
|
};
|
|
} else {
|
|
if($Static_Scoop!=''){
|
|
echo '<script type="text/javascript" src="lib/javascript/jsapi_static/'. $Static_Scoop . '"></script>';
|
|
};
|
|
};
|
|
if(is_array( $Dynamic_Scoop )){
|
|
foreach( $Dynamic_Scoop as $S ) {
|
|
echo '<script type="text/javascript" src="lib/javascript/jsapi_dynamic/'. $S . '"></script>';
|
|
};
|
|
} else {
|
|
if($Dynamic_Scoop!=''){
|
|
echo '<script type="text/javascript" src="lib/javascript/jsapi_dynamic/'. $Dynamic_Scoop . '"></script>';
|
|
};
|
|
};
|
|
?>
|
|
<link rel="stylesheet" type="text/css" href="style/style.css"/>
|
|
</head>
|
|
<body><?php
|
|
};
|
|
|
|
function UI_PageBottomExt(){
|
|
global $Script_Start_Time, $Labels;
|
|
?></center>
|
|
<div id="ss_bg" class="ss_hidden"></div>
|
|
<div id="ss_content" class="ss_hidden">SS TEXT</div>
|
|
</body>
|
|
</html>
|
|
<?php
|
|
};
|
|
|
|
function UI_PageBottom(){
|
|
global $Script_Start_Time, $Labels;
|
|
?>
|
|
<table width="90%" class="fieldround20" style="position: fixed; bottom: 0;">
|
|
<tr>
|
|
<td class="r_cell" align="center">
|
|
<p style="align: center; font-size: 8px" ><?php
|
|
$GG_Time = microtime_float() - $Script_Start_Time;
|
|
echo $Labels->GetLabel('__PAGEWASGENIN__');
|
|
echo ' ' . $GG_Time . ' ';
|
|
if( $GG_Time > 2 ) echo $Labels->GetLabel('__SECONDS__');
|
|
else echo $Labels->GetLabel('__SECOND__');
|
|
?></p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</center>
|
|
</body>
|
|
</html>
|
|
<?php
|
|
};
|
|
|
|
function UI_LoginForm($target = 'login.php'){
|
|
global $Labels;
|
|
?>
|
|
<table width="100%" border="0" style="background: #202020;">
|
|
<tr><td align="center">
|
|
<table width="100%"><tr>
|
|
<!--td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td-->
|
|
<td align="center" height="200px"><img height="64px" src="/style/assets/argus_logo_text.png"></td>
|
|
</tr></table>
|
|
</td></tr>
|
|
<tr><td align="center">
|
|
<form method="Post" action="<?=$target;?>" enctype="multipart/form-data">
|
|
<table width="500px" border="0" style="background-color: white;">
|
|
<tr><td colspan=4 height="70px"> </td></tr>
|
|
<tr><td colspan=4 align="center">
|
|
<table width="100%">
|
|
<tr><td align="right" width="40%"><b><?=$Labels->GetLabel('__LOGIN_ID__');?>:</b></td><td><input type="text" name="login"></td></tr>
|
|
<tr><td align="right"><b><?=$Labels->GetLabel('__PASSWORD__');?>:</b></td><td><input type="password" name="password"></td></tr>
|
|
<tr><td colspan=2 align="center"><input type="submit" value="<?=$Labels->GetLabel('__LOGIN__');?>"></td></tr>
|
|
</table></td></tr>
|
|
<tr><td colspan=4 height="70px"> </td></tr>
|
|
<tr><td colspan=4 align="center"><p style=""><?=$Labels->GetLabel('__SSl_DOWNLOAD__');?></p></td></tr>
|
|
<tr><td colspan=4 align="center"><a href="/style/assets/rootCA.crt"><img width="64px" src="/style/assets/ssl.png"></a></td></tr>
|
|
<tr>
|
|
<td align="center" ><a href="/style/assets/Install%20Root%20Certificate%20on%20iOS.pdf" target="_blank"><img width="64px" src="/style/assets/ios-1.png"></a></td>
|
|
<td align="center" ><a href="/style/assets/Install%20Root%20Certificate%20on%20Mac.pdf" target="_blank"><img width="64px" src="/style/assets/ios.png"></a></td>
|
|
<td align="center" ><a href="/style/assets/Install%20Root%20Certificate%20on%20Windows.pdf" target="_blank"><img width="64px" src="/style/assets/win.png"></a></td>
|
|
<td align="center" ><a href="/style/assets/Install%20Root%20Certificate%20on%20Android.pdf" target="_blank"><img width="64px" src="/style/assets/and.png"></a></td></tr></tr>
|
|
<tr><td colspan=4 height="70px"> </td></tr>
|
|
</table>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
};
|
|
|
|
function UI_INSTALL_DBCRED_Form( $A='', $B='', $C='', $D='', $E='' ){
|
|
?>
|
|
<table width="100%" border="0" style="background: #202020;">
|
|
<tr><td align="center">
|
|
<table width="100%"><tr>
|
|
<td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td>
|
|
<td align="center"><img style="position: relative; left: -50px;" height="64px" src="/style/assets/argus_logo_text.png"></td>
|
|
</tr></table>
|
|
</td></tr>
|
|
<tr><td align="center">
|
|
<form method="Post" action="/setup/index.php?stp=1" enctype="multipart/form-data">
|
|
<table width="500px" border="0" style="background-color: white;">
|
|
<tr><td colspan=2 height="50px"> </td></tr>
|
|
<?php
|
|
if( $E!='' ){
|
|
?>
|
|
<tr><td align="center" colspan=2 style="background-color: red; color: yelow;" ><b><?=$E;?></b></td></tr>
|
|
<?php
|
|
};
|
|
?>
|
|
<tr><td align="right" width="40%"><b>Database Host:</b></td><td><input type="text" name="dbh" value="<?=$A;?>"></td></tr>
|
|
<tr><td align="right"><b>Database Name:</b></td><td><input type="text" name="dbn" value="<?=$B;?>"></td></tr>
|
|
<tr><td align="right"><b>Database User:</b></td><td><input type="text" name="dbu" value="<?=$C;?>"></td></tr>
|
|
<tr><td align="right"><b>Database Password:</b></td><td><input type="password" name="dbp" value="<?=$D;?>"></td></tr>
|
|
<tr><td colspan=2 align="center"><input type="submit" value="SETUP"></td></tr>
|
|
<tr><td colspan=2 height="50px"> </td></tr>
|
|
</table>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
};
|
|
|
|
function UI_INSTALL_ADMIN_SITE_Form( $A='', $B='', $C='', $D='', $E='', $F='', $G='', $H='', $I='' ){
|
|
?>
|
|
<table width="100%" border="0" style="background: #202020;">
|
|
<tr><td align="center">
|
|
<table width="100%"><tr>
|
|
<td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td>
|
|
<td align="center"><img style="position: relative; left: -50px;" height="64px" src="/style/assets/argus_logo_text.png"></td>
|
|
</tr></table>
|
|
</td></tr>
|
|
<tr><td align="center">
|
|
<form method="Post" action="/setup/index.php?stp=2" enctype="multipart/form-data">
|
|
<table width="500px" border="0" style="background-color: white;">
|
|
<tr><td colspan=2 height="50px"> </td></tr>
|
|
<?php
|
|
if( $I!='' ){
|
|
?>
|
|
<tr><td align="center" colspan=2 style="background-color: red; color: yelow;" ><b><?=$I;?></b></td></tr>
|
|
<?php
|
|
};
|
|
?>
|
|
<tr><td align="right"><b>Admin User Login:</b></td><td><input type="text" name="adu" value="<?=$E;?>"></td></tr>
|
|
<tr><td align="right"><b>Admin Password:</b></td><td><input type="password" name="adp" value="<?=$F;?>"></td></tr>
|
|
<tr><td align="right"><b>Repeat Password:</b></td><td><input type="password" name="adp2" value="<?=$G;?>"></td></tr>
|
|
<tr><td align="right"><b>Site Name:</b></td><td><input type="text" name="sina" value="<?=$H;?>"></td></tr>
|
|
<tr><td align="right"><b>Database Host:</b></td><td><input readonly type="text" name="dbh" value="<?=$A;?>"></td></tr>
|
|
<tr><td align="right"><b>Database Name:</b></td><td><input readonly type="text" name="dbn" value="<?=$B;?>"></td></tr>
|
|
<tr><td align="right"><b>Database User:</b></td><td><input readonly type="text" name="dbu" value="<?=$C;?>"></td></tr>
|
|
<tr><td align="right"><b>Database Password:</b></td><td><input readonly type="password" name="dbp" value="<?=$D;?>"></td></tr>
|
|
<tr><td colspan=2 align="center"><input type="submit" value="SET"></td></tr>
|
|
<tr><td colspan=2 height="50px"> </td></tr>
|
|
</table>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
};
|
|
|
|
function UI_INSTALL_WELCOME_Form(){
|
|
?>
|
|
<table width="100%" border="0" style="background: #202020;">
|
|
<tr><td align="center">
|
|
<table width="100%"><tr>
|
|
<td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td>
|
|
<td align="center"><img style="position: relative; left: -50px;" height="64px" src="/style/assets/argus_logo_text.png"></td>
|
|
</tr></table>
|
|
</td></tr>
|
|
<tr><td align="center">
|
|
<form method="Post" action="/index.php" enctype="multipart/form-data">
|
|
<table width="500px" border="0" style="background-color: white;">
|
|
<tr><td colspan=2 height="50px"> </td></tr>
|
|
<tr><td align="center" colspan=2 style="background-color: blue; color: yelow;" ><b>All Done</b></td></tr>
|
|
<tr><td colspan=2 align="center"><input type="submit" value="ENTER"></td></tr>
|
|
<tr><td colspan=2 height="50px"> </td></tr>
|
|
</table>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
};
|
|
|
|
function UI_SideMenu( $ActiveItem = 0 ){
|
|
global $Labels, $CUser;
|
|
if( $CUser->Data['id'] > 1 ){
|
|
switch( $CUser->Data['access'] ){
|
|
case 10:
|
|
$mnu = array(
|
|
'__PROFILE__'=>'/login.php?login=guest',
|
|
'__DASHBOARD__'=>'/',
|
|
'__SENSORS__'=>'/devices.php',
|
|
'__VIDEOS__'=>'/login.php?login=guest',
|
|
'__REPORTS__'=>'/login.php?login=guest',
|
|
'__SYSCTRL__'=>'/login.php?login=guest',
|
|
'__LOGOUT__'=>'/login.php?login=guest'
|
|
);
|
|
break;
|
|
case 0:
|
|
default:
|
|
$mnu = array(
|
|
'__PROFILE__'=>'/login.php?login=guest',
|
|
'__DASHBOARD__'=>'/',
|
|
'__LOGOUT__'=>'/login.php?login=guest'
|
|
);
|
|
break;
|
|
};
|
|
echo '<table width="100%" class="sideMenuBarTable">';
|
|
echo '<tr class="sideMenuBarRow"><td class="sideMenuBarCell">' . $CUser->Data['login'] . '(' . $CUser->Data['access'] .')' . '</a></td></tr>';
|
|
$index = 1;
|
|
foreach( $mnu as $Key=>$Value ){
|
|
if( $index == $ActiveItem ){
|
|
echo '<tr class="sideMenuBarRow"><td class="sideMenuBarCell"><a href="' . $Value . '">' . $Labels->GetLabel($Key) . '</a></td></tr>';
|
|
} else {
|
|
echo '<tr class="sideMenuBarRow"><td class="sideMenuBarCell"><a href="' . $Value . '">' . $Labels->GetLabel($Key) . '</a></td></tr>';
|
|
};
|
|
$index++;
|
|
};
|
|
echo "</table>";
|
|
} else {
|
|
?><table width="100%" class="sideMenuBarTable">
|
|
<tr class="sideMenuBarRow"><td class="sideMenuBarCell"></td></tr>
|
|
</table><?php
|
|
};
|
|
};
|
|
|
|
function UI_MainDashBoard(){
|
|
global $Labels, $CUser;
|
|
//echo '<img name="main" id="main" border="1" width="640" height="480" src="http://gagua:4GetMyID@192.168.200.116/ISAPI/Streaming/channels/101/picture?videoResolutionWidth=1920&videoResolutionHeight=1080">';
|
|
?>
|
|
<div id="mainDashBoard">
|
|
</div>
|
|
<!--object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
|
|
codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab"
|
|
id="vlc"
|
|
width = "640px"
|
|
height = "480px"
|
|
target = "/test_mp4.php"
|
|
>
|
|
<embed
|
|
type="application/x-vlc-plugin"
|
|
pluginspage="http://www.videolan.org"
|
|
name="vlc"
|
|
width = "640px"
|
|
height = "480px"
|
|
target = "/test_mp4.php"
|
|
/>
|
|
</object-->
|
|
<video width="640px" height="480px" controls>
|
|
<source src="/test_mp4.php" type='video/webm;codecs="vp8, vorbis"'/>
|
|
</video>
|
|
<?php
|
|
};
|
|
|
|
function UI_Begin2Section( $Width = '' ){
|
|
if( $Width != '' ){
|
|
?><table width="100%" border=0 class="contentTable">
|
|
<tr><td width="<?=$Width;?>"><?php
|
|
} else {
|
|
?><table width="100%" border=0 class="contentTable">
|
|
<tr><td ><?php
|
|
};
|
|
};
|
|
|
|
function UI_SectionDelimiter( $Width='' ){
|
|
if( $Width != '' ){
|
|
?></td><td width="<?=$Width;?>"><?php
|
|
} else {
|
|
?></td><td><?php
|
|
};
|
|
};
|
|
function UI_End2Section(){
|
|
?></td></tr>
|
|
</table><?php
|
|
};
|
|
|
|
function UI_SSLDialog(){
|
|
global $Labels, $_SERVER, $UPLOAD, $VALID, $ERR;
|
|
?>
|
|
<table width="100%" border="0" style="background: #202020;">
|
|
<tr><td align="center">
|
|
<table width="100%"><tr>
|
|
<!--td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td-->
|
|
<td align="center" height="200px"><img height="64px" src="/style/assets/argus_logo_text.png"></td>
|
|
</tr></table>
|
|
</td></tr>
|
|
<tr><td align="center">
|
|
<form method="Post" action="<?=$target;?>" enctype="multipart/form-data">
|
|
<table width="500px" border="0" style="background-color: white;">
|
|
<tr><td colspan=3 height="70px"> </td></tr>
|
|
<?php
|
|
if( $UPLOAD ){
|
|
if( $VALID ){
|
|
?><tr><td align="center" colspan=4 style="color: red;"><b><?=$Labels->GetLabel('_SSL_CERT_VALID_INSTA');?></b></td></tr><?php
|
|
} else {
|
|
?><tr><td align="center" colspan=4 style="color: red;"><b><?=$ERR;?></b></td></tr><tr><td align="center" colspan=3 style="color: red;"><b><?=str_ireplace('%%IP%%', $_SERVER['HTTP_HOST'], $Labels->GetLabel('__SSl_NO_CERT__'));?></b></td></tr>
|
|
<tr><td align="right"><?=str_ireplace('%%IP%%', $_SERVER['HTTP_HOST'], $Labels->GetLabel('_SSL_PROVIDE_CERT_'));?></td>
|
|
<td><input type="file" name="fcert" accept=".crt,.pem"></td>
|
|
<td><input type="submit" value="<?=$Labels->GetLabel('__UPLOAD__');?>"></td></tr><?php
|
|
};
|
|
} else {
|
|
?><tr><td align="center" colspan=4 style="color: red;"><b><?=$ERR;?></b></td></tr>
|
|
<tr><td align="right"><?=str_ireplace('%%IP%%', $_SERVER['HTTP_HOST'], $Labels->GetLabel('_SSL_PROVIDE_CERT_'));?></td>
|
|
<td><input type="file" name="fcert" accept=".crt,.pem"></td>
|
|
<td><input type="submit" value="<?=$Labels->GetLabel('__UPLOAD__');?>"></td></tr><?php
|
|
};
|
|
?>
|
|
<tr><td align="center" colspan=4><b><?=$Labels->GetLabel('__SSl_WELCOME__');?></b></td></tr>
|
|
<tr><td colspan=4 align="center"><p style=""><?=$Labels->GetLabel('__SSl_DOWNLOAD__');?></p></td></tr>
|
|
<tr><td colspan=4 align="center"><a href="/style/assets/rootCA.crt"><img width="64px" src="/style/assets/ssl.png"></a></td></tr>
|
|
<tr>
|
|
<td align="center" ><a href="/style/assets/Install%20Root%20Certificate%20on%20iOS.pdf" target="_blank"><img width="64px" src="/style/assets/ios-1.png"></a></td>
|
|
<td align="center" ><a href="/style/assets/Install%20Root%20Certificate%20on%20Mac.pdf" target="_blank"><img width="64px" src="/style/assets/ios.png"></a></td>
|
|
<td align="center" ><a href="/style/assets/Install%20Root%20Certificate%20on%20Windows.pdf" target="_blank"><img width="64px" src="/style/assets/win.png"></a></td>
|
|
<td align="center" ><a href="/style/assets/Install%20Root%20Certificate%20on%20Android.pdf" target="_blank"><img width="64px" src="/style/assets/and.png"></a></td></tr>
|
|
<tr><td colspan=4 height="70px"> </td></tr>
|
|
</table>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
|
|
};
|
|
|
|
?>
|