Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating heartbeat dashboard page, configuration items and database s…
…ettings
- Loading branch information
Showing
7 changed files
with
338 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,171 @@ | ||
<?php | ||
/* | ||
********************************************************************************************************* | ||
* daloRADIUS - RADIUS Web Platform | ||
* Copyright (C) 2007 - Liran Tal <liran@enginx.com> All Rights Reserved. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 2 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
* | ||
********************************************************************************************************* | ||
* | ||
* Authors: Liran Tal <liran@enginx.com> | ||
* | ||
********************************************************************************************************* | ||
*/ | ||
|
||
include ("library/checklogin.php"); | ||
$operator = $_SESSION['operator_user']; | ||
|
||
include('library/check_operator_perm.php'); | ||
|
||
include_once('library/config_read.php'); | ||
$log = "visited page: "; | ||
include('include/config/logging.php'); | ||
|
||
|
||
include ("library/config_read.php"); | ||
|
||
if (isset($_REQUEST['submit'])) { | ||
|
||
if (isset($_REQUEST['config_dashboard_dalo_secretkey'])) | ||
$configValues['CONFIG_DASHBOARD_DALO_SECRETKEY'] = $_REQUEST['config_dashboard_dalo_secretkey']; | ||
|
||
if (isset($_REQUEST['config_dashboard_dalo_debug'])) | ||
$configValues['CONFIG_DASHBOARD_DALO_DEBUG'] = $_REQUEST['config_dashboard_dalo_debug']; | ||
|
||
include ("library/config_write.php"); | ||
} | ||
|
||
|
||
?> | ||
|
||
<?php | ||
include ("menu-config-reports.php"); | ||
?> | ||
|
||
<?php | ||
include_once ("library/tabber/tab-layout.php"); | ||
?> | ||
|
||
|
||
<div id="contentnorightbar"> | ||
|
||
<h2 id="Intro"><a href="#" onclick="javascript:toggleShowDiv('helpPage')"><?php echo $l['Intro']['configdashboard.php']; ?> | ||
<h144>+</h144></a></h2> | ||
|
||
<div id="helpPage" style="display:none;visibility:visible" > | ||
<?php echo $l['helpPage']['configdashboard'] ?> | ||
<br/> | ||
</div> | ||
<?php | ||
include_once('include/management/actionMessages.php'); | ||
?> | ||
|
||
<form name="dashboardsettings" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> | ||
|
||
<div class="tabber"> | ||
|
||
<div class="tabbertab" title="<?php echo $l['title']['Dashboard']; ?>"> | ||
|
||
<fieldset> | ||
|
||
<h302><?php echo $l['title']['Settings']; ?></h302> | ||
<br/> | ||
|
||
<ul> | ||
|
||
<li class='fieldset'> | ||
<label for='config_dashboard_dalo_secretkey' class='form'><?php echo $l['all']['DashboardSecretKey'] ?></label> | ||
<input type='text' value="<?php echo $configValues['CONFIG_DASHBOARD_DALO_SECRETKEY'] ?>" name="config_dashboard_dalo_secretkey" /> | ||
</li> | ||
|
||
<li class='fieldset'> | ||
<label for='config_dashboard_dalo_debug' class='form'><?php echo $l['all']['DashboardDebug']?></label> | ||
<select class='form' name="config_dashboard_dalo_debug"> | ||
<option value="<?php echo $configValues['CONFIG_DASHBOARD_DALO_DEBUG'] ?>"> <?php echo $configValues['CONFIG_DASHBOARD_DALO_DEBUG'] ?> </option> | ||
<option value=""></option> | ||
<option value="0">0</option> | ||
<option value="1">1</option> | ||
</select> | ||
</li> | ||
|
||
<li class='fieldset'> | ||
<br/> | ||
<hr><br/> | ||
<input type='submit' name='submit' value='<?php echo $l['buttons']['apply'] ?>' class='button' /> | ||
</li> | ||
|
||
</ul> | ||
|
||
</fieldset> | ||
|
||
</div> | ||
|
||
|
||
<div class="tabbertab" title="<?php echo $l['title']['Dashboard']; ?>"> | ||
|
||
<fieldset> | ||
|
||
<h302><?php echo $l['title']['Settings']; ?></h302> | ||
<br/> | ||
|
||
<ul> | ||
|
||
<li class='fieldset'> | ||
<label for='config_dashboard_dalo_delay_soft' class='form'><?php echo $l['all']['DashboardDelaySoft'] ?></label> | ||
<input type='text' value="<?php echo $configValues['CONFIG_DASHBOARD_DALO_DELAYSOFT'] ?>" name="config_dashboard_dalo_delay_soft" /> | ||
</li> | ||
|
||
<li class='fieldset'> | ||
<label for='config_dashboard_dalo_delay_hard' class='form'><?php echo $l['all']['DashboardDelayHard'] ?></label> | ||
<input type='text' value="<?php echo $configValues['CONFIG_DASHBOARD_DALO_DELAYHARD'] ?>" name="config_dashboard_dalo_delay_hard" /> | ||
</li> | ||
|
||
<li class='fieldset'> | ||
<br/> | ||
<hr><br/> | ||
<input type='submit' name='submit' value='<?php echo $l['buttons']['apply'] ?>' class='button' /> | ||
</li> | ||
|
||
</ul> | ||
|
||
</fieldset> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
|
||
</form> | ||
|
||
|
||
<br/><br/> | ||
|
||
|
||
|
||
|
||
|
||
|
||
</div> | ||
|
||
<div id="footer"> | ||
|
||
<?php | ||
include 'page-footer.php'; | ||
?> | ||
|
||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php | ||
/* | ||
********************************************************************************************************* | ||
* daloRADIUS - RADIUS Web Platform | ||
* Copyright (C) 2007 - Liran Tal <liran@enginx.com> All Rights Reserved. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 2 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
* | ||
********************************************************************************************************* | ||
* | ||
* Authors: Liran Tal <liran@enginx.com> | ||
* | ||
********************************************************************************************************* | ||
*/ | ||
|
||
include ("library/checklogin.php"); | ||
$operator = $_SESSION['operator_user']; | ||
|
||
|
||
include_once('library/config_read.php'); | ||
$log = "visited page: "; | ||
include('include/config/logging.php'); | ||
|
||
?> | ||
|
||
<?php | ||
|
||
include ("menu-config-reports.php"); | ||
|
||
?> | ||
|
||
|
||
<div id="contentnorightbar"> | ||
|
||
<h2 id="Intro"><a href="#" onclick="javascript:toggleShowDiv('helpPage')"><?php echo $l['Intro']['configmain.php'] ?> | ||
<h144>+</h144></a></h2> | ||
|
||
<div id="helpPage" style="display:none;visibility:visible" > | ||
<?php echo $l['helpPage']['configmain'] ?> | ||
<br/> | ||
</div> | ||
<br/> | ||
|
||
</div> | ||
|
||
<div id="footer"> | ||
|
||
<?php | ||
include 'page-footer.php'; | ||
?> | ||
|
||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!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"> | ||
<head> | ||
<title>daloRADIUS</title> | ||
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | ||
<link rel="stylesheet" href="css/1.css" type="text/css" media="screen,projection" /> | ||
</head> | ||
<script src="library/javascript/pages_common.js" type="text/javascript"></script> | ||
<body> | ||
<?php | ||
include_once ("lang/main.php"); | ||
?> | ||
|
||
<div id="wrapper"> | ||
<div id="innerwrapper"> | ||
|
||
<?php | ||
$m_active = "Config"; | ||
include_once ("include/menu/menu-items.php"); | ||
include_once ("include/menu/config-subnav.php"); | ||
?> | ||
|
||
<div id="sidebar"> | ||
|
||
<h2>Configuration</h2> | ||
|
||
<h3>Reporting Settings</h3> | ||
|
||
|
||
<ul class="subnav"> | ||
|
||
<li><a href="config-reports-dashboard.php"><b>»</b> | ||
<?php echo $l['button']['DashboardSettings'] ?></a> | ||
</li> | ||
|
||
|
||
</ul> | ||
|
||
</div> |
Oops, something went wrong.