Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • smradius/smradius
  • centiva-shail/smradius
  • nkukard/smradius
3 results
Show changes
Showing
with 230 additions and 154 deletions
<?php <?php
# Web Admin UI Config # Web Admin UI Config
# Copyright (C) 2007-2009, AllWorldIT # Copyright (C) 2007-2015, AllWorldIT
# #
# This program is free software; you can redistribute it and/or modify # 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 # it under the terms of the GNU General Public License as published by
......
<?php <?php
# Database Interface # Database Interface
# Copyright (C) 2007-2009, AllWorldIT # Copyright (C) 2007-2015, AllWorldIT
# #
# This program is free software; you can redistribute it and/or modify # 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 # it under the terms of the GNU General Public License as published by
......
<?php <?php
# Radius term code mappings # Radius term code mappings
# Copyright (C) 2007-2009, AllWorldIT # Copyright (C) 2007-2015, AllWorldIT
# #
# This program is free software; you can redistribute it and/or modify # 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 # it under the terms of the GNU General Public License as published by
......
<?php
# Utility functions
# Copyright (C) 2010-2015, AllWorldIT
#
# 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.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# 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.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
## @fn isBoolean($param)
# Check if a variable is boolean
#
# @param var Variable to check
#
# @return 1, 0 or -1 on unknown
function isBoolean($param) {
# Check if we're set
if (!isset($param)) {
return -1;
}
# If it's already bool, just return it
if (is_bool($param)) {
return $param;
}
# If it's a string..
if (is_string($param)) {
# Nuke whitespaces
trim($param);
# Allow true, on, set, enabled, 1, false, off, unset, disabled, 0
if (preg_match('/^(?:true|on|set|enabled|1)$/i', $param)) {
return 1;
}
if (preg_match('/^(?:false|off|unset|disabled|0)$/i', $param)) {
return 0;
}
}
# Invalid or unknown
return -1;
}
# vim: ts=4
?>
<!DOCTYPE html <!-- Index.html - load all our code
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" Copyright (C) 2007-2015, AllWorldIT
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> This program is free software; you can redistribute it and/or modify
<head> it under the terms of the GNU General Public License as published by
<style type="text/css"> the Free Software Foundation; either version 2 of the License, or
#loading-mask{ (at your option) any later version.
position:absolute;
left:0; This program is distributed in the hope that it will be useful,
top:0; but WITHOUT ANY WARRANTY; without even the implied warranty of
width:100%; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
height:100%; GNU General Public License for more details.
z-index:20000;
background-color:white; 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.,
#loading{ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -->
position:absolute; <!DOCTYPE html
left:45%; PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
top:40%; "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
padding:2px; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
z-index:20001; <head>
height:auto; <style type="text/css">
} #loading-mask{
#loading a { position:absolute;
color:#225588; left:0;
} top:0;
#loading .loading-indicator{ width:100%;
background:white; height:100%;
color:#444; z-index:20000;
font:bold 13px tahoma,arial,helvetica; background-color:white;
padding:10px; }
margin:0; #loading{
height:auto; position:absolute;
} left:45%;
#loading-msg { top:40%;
font: normal 10px arial,tahoma,sans-serif; padding:2px;
} z-index:20001;
</style> height:auto;
</head> }
<body> #loading a {
<div id="loading-mask" style=""></div> color:#225588;
<div id="loading"> }
<div class="loading-indicator"> #loading .loading-indicator{
<img src="resources/extjs/images/extanim32.gif" width="32" height="32" style="margin-right:8px;float:left;vertical-align:top;"/> background:white;
SMRadius WebGUI - <a href="http://smradius.org">smradius.org</a><br /><span id="loading-msg">Loading styles and images...</span> color:#444;
</div> font:bold 13px tahoma,arial,helvetica;
</div> padding:10px;
margin:0;
height:auto;
<script type="text/javascript">document.getElementById('loading-msg').innerHTML = 'Loading stylesheets...';</script> }
#loading-msg {
<link rel="stylesheet" type="text/css" href="resources/extjs/css/ext-all.css" /> font: normal 10px arial,tahoma,sans-serif;
<link rel="stylesheet" type="text/css" href="styles.css" /> }
<link rel="stylesheet" type="text/css" href="resources/custom/css/silk-icons.css" /> </style>
<link rel="stylesheet" type="text/css" href="icons.css" /> </head>
<link rel="stylesheet" type="text/css" href="resources/extjs/css/examples.css" /> <body>
<link rel="stylesheet" type="text/css" href="js/custom/GridFilters/icons/style.css" /> <div id="loading-mask" style=""></div>
<div id="loading">
<script type="text/javascript">document.getElementById('loading-msg').innerHTML = 'Loading core API...';</script> <div class="loading-indicator">
<script type="text/javascript" src="js/extjs/ext-base.js"></script> <img src="awitef/resources/extjs/images/extanim32.gif" width="32" height="32" style="margin-right:8px;float:left;vertical-align:top;"/>
<script type="text/javascript" src="js/extjs/ext-all.js"></script> SMRadius WebGUI - <a href="http://smradius.org">smradius.org</a><br /><span id="loading-msg">Loading styles and images...</span>
</div>
</div>
<!--
Our own libraries
--> <script type="text/javascript">document.getElementById('loading-msg').innerHTML = 'Loading stylesheets...';</script>
<script type="text/javascript">document.getElementById('loading-msg').innerHTML = 'Loading libraries...';</script>
<script type="text/javascript" src="js/custom/util.js"></script> <link rel="stylesheet" type="text/css" href="awitef/resources/extjs/css/ext-all.css" />
<script type="text/javascript" src="js/custom/sprintf.js"></script> <link rel="stylesheet" type="text/css" href="styles.css" />
<script type="text/javascript" src="js/custom/regexes.js"></script> <link rel="stylesheet" type="text/css" href="awitef/resources/custom/css/silk-icons.css" />
<script type="text/javascript" src="js/custom/vtypes.js"></script> <link rel="stylesheet" type="text/css" href="icons.css" />
<script type="text/javascript" src="js/custom/GridFilters/GridFilters.js"></script> <link rel="stylesheet" type="text/css" href="awitef/resources/extjs/css/examples.css" />
<script type="text/javascript" src="js/custom/GridFilters/menu/EditableItem.js"></script> <link rel="stylesheet" type="text/css" href="awitef/js/custom/GridFilters/icons/style.css" />
<script type="text/javascript" src="js/custom/GridFilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="js/custom/GridFilters/filter/Filter.js"></script> <script type="text/javascript">document.getElementById('loading-msg').innerHTML = 'Loading core API...';</script>
<script type="text/javascript" src="js/custom/GridFilters/filter/StringFilter.js"></script> <script type="text/javascript" src="awitef/js/extjs/ext-base.js"></script>
<script type="text/javascript" src="js/custom/GridFilters/filter/DateFilter.js"></script> <script type="text/javascript" src="awitef/js/extjs/ext-all.js"></script>
<script type="text/javascript" src="js/custom/GridFilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="js/custom/GridFilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="js/custom/GridFilters/filter/BooleanFilter.js"></script> <!--
<script type="text/javascript" src="js/custom/ProgressFormPanel.js"></script> Our own libraries
<script type="text/javascript" src="js/custom/StatusBar.js"></script> -->
<script type="text/javascript" src="js/custom/common.js"></script> <script type="text/javascript">document.getElementById('loading-msg').innerHTML = 'Loading libraries...';</script>
<script type="text/javascript" src="js/custom/generic.js"></script> <script type="text/javascript" src="awitef/js/custom/util.js"></script>
<script type="text/javascript" src="awitef/js/custom/sprintf.js"></script>
<!-- <script type="text/javascript" src="awitef/js/custom/regexes.js"></script>
Main application <script type="text/javascript" src="awitef/js/custom/vtypes.js"></script>
--> <script type="text/javascript" src="awitef/js/custom/GridFilters/GridFilters.js"></script>
<script type="text/javascript">document.getElementById('loading-msg').innerHTML = 'Loading configuration...';</script> <script type="text/javascript" src="awitef/js/custom/GridFilters/menu/EditableItem.js"></script>
<script type="text/javascript" src="js/app/config.js"></script> <script type="text/javascript" src="awitef/js/custom/GridFilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="awitef/js/custom/GridFilters/filter/Filter.js"></script>
<script type="text/javascript">document.getElementById('loading-msg').innerHTML = 'Loading menus...';</script> <script type="text/javascript" src="awitef/js/custom/GridFilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="js/app/menus.js"></script> <script type="text/javascript" src="awitef/js/custom/GridFilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="awitef/js/custom/GridFilters/filter/ListFilter.js"></script>
<script type="text/javascript">document.getElementById('loading-msg').innerHTML = 'Loading windows...';</script> <script type="text/javascript" src="awitef/js/custom/GridFilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="js/app/windows/WiSPUsers.js"></script> <script type="text/javascript" src="awitef/js/custom/GridFilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="js/app/windows/WiSPUserLogs.js"></script> <script type="text/javascript" src="awitef/js/custom/ProgressFormPanel.js"></script>
<script type="text/javascript" src="js/app/windows/WiSPUserTopups.js"></script> <script type="text/javascript" src="awitef/js/custom/StatusBar.js"></script>
<script type="text/javascript" src="js/app/windows/WiSPLocations.js"></script> <script type="text/javascript" src="awitef/js/custom/common.js"></script>
<script type="text/javascript" src="js/app/windows/WiSPLocationMembers.js"></script> <script type="text/javascript" src="awitef/js/custom/generic.js"></script>
<script type="text/javascript" src="js/app/windows/WiSPResellers.js"></script>
<!--
<script type="text/javascript" src="js/app/windows/AdminUsers.js"></script> Main application
<script type="text/javascript" src="js/app/windows/AdminUserLogs.js"></script> -->
<script type="text/javascript" src="js/app/windows/AdminUserAttributes.js"></script> <script type="text/javascript">document.getElementById('loading-msg').innerHTML = 'Loading configuration...';</script>
<script type="text/javascript" src="js/app/windows/AdminUserGroups.js"></script> <script type="text/javascript" src="js/app/config.js"></script>
<script type="text/javascript" src="js/app/windows/AdminUserTopups.js"></script>
<script type="text/javascript">document.getElementById('loading-msg').innerHTML = 'Loading menus...';</script>
<script type="text/javascript" src="js/app/windows/AdminRealms.js"></script> <script type="text/javascript" src="js/app/menus.js"></script>
<script type="text/javascript" src="js/app/windows/AdminRealmAttributes.js"></script>
<script type="text/javascript" src="js/app/windows/AdminRealmMembers.js"></script> <script type="text/javascript">document.getElementById('loading-msg').innerHTML = 'Loading windows...';</script>
<script type="text/javascript" src="js/app/windows/WiSPUsers.js"></script>
<script type="text/javascript" src="js/app/windows/AdminClients.js"></script> <script type="text/javascript" src="js/app/windows/WiSPUserLogs.js"></script>
<script type="text/javascript" src="js/app/windows/AdminClientAttributes.js"></script> <script type="text/javascript" src="js/app/windows/WiSPUserTopups.js"></script>
<script type="text/javascript" src="js/app/windows/AdminClientRealms.js"></script> <script type="text/javascript" src="js/app/windows/WiSPLocations.js"></script>
<script type="text/javascript" src="js/app/windows/WiSPLocationMembers.js"></script>
<script type="text/javascript" src="js/app/windows/AdminGroups.js"></script> <script type="text/javascript" src="js/app/windows/WiSPResellers.js"></script>
<script type="text/javascript" src="js/app/windows/AdminGroupAttributes.js"></script>
<script type="text/javascript" src="js/app/windows/AdminGroupMembers.js"></script> <script type="text/javascript" src="js/app/windows/AdminUsers.js"></script>
<script type="text/javascript" src="js/app/windows/AdminUserLogs.js"></script>
<script type="text/javascript">document.getElementById('loading-msg').innerHTML = 'Loading layout...';</script> <script type="text/javascript" src="js/app/windows/AdminUserAttributes.js"></script>
<script type="text/javascript" src="js/app/main-layout.js"></script> <script type="text/javascript" src="js/app/windows/AdminUserGroups.js"></script>
<script type="text/javascript" src="js/app/windows/AdminUserTopups.js"></script>
<script type="text/javascript">document.getElementById('loading-msg').innerHTML = 'Starting...';</script>
<script type="text/javascript" src="js/app/main.js"></script> <script type="text/javascript" src="js/app/windows/AdminRealms.js"></script>
<script type="text/javascript" src="js/app/windows/AdminRealmAttributes.js"></script>
</body> <script type="text/javascript" src="js/app/windows/AdminRealmMembers.js"></script>
</html>
<script type="text/javascript" src="js/app/windows/AdminClients.js"></script>
<script type="text/javascript" src="js/app/windows/AdminClientAttributes.js"></script>
<script type="text/javascript" src="js/app/windows/AdminClientRealms.js"></script>
<script type="text/javascript" src="js/app/windows/AdminGroups.js"></script>
<script type="text/javascript" src="js/app/windows/AdminGroupAttributes.js"></script>
<script type="text/javascript" src="js/app/windows/AdminGroupMembers.js"></script>
<script type="text/javascript">document.getElementById('loading-msg').innerHTML = 'Loading layout...';</script>
<script type="text/javascript" src="js/app/main-layout.js"></script>
<script type="text/javascript">document.getElementById('loading-msg').innerHTML = 'Starting...';</script>
<script type="text/javascript" src="js/app/main.js"></script>
</body>
</html>
/* /*
Webgui Global Config Webgui Global Config
Copyright (C) 2007-2009, AllWorldIT Copyright (C) 2007-2011, AllWorldIT
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
......
/* /*
Webgui Main Layout Webgui Main Layout
Copyright (C) 2007-2009, AllWorldIT Copyright (C) 2007-2011, AllWorldIT
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
......
/* /*
Webgui Menus Webgui Menus
Copyright (C) 2007-2009, AllWorldIT Copyright (C) 2007-2011, AllWorldIT
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
......
/* /*
Admin Client Attributes Admin Client Attributes
Copyright (C) 2007-2009, AllWorldIT Copyright (C) 2007-2011, AllWorldIT
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
...@@ -269,9 +269,9 @@ function showAdminClientAttributeAddEditWindow(AdminClientAttributesWindow,clien ...@@ -269,9 +269,9 @@ function showAdminClientAttributeAddEditWindow(AdminClientAttributesWindow,clien
displayField: 'Operator', displayField: 'Operator',
valueField: 'Operator', valueField: 'Operator',
hiddenName: 'Operator', hiddenName: 'Operator',
forceSelection: true, forceSelection: false,
triggerAction: 'all', triggerAction: 'all',
editable: false editable: true
}, },
{ {
fieldLabel: "Value", fieldLabel: "Value",
......
/* /*
Admin Client Realms Admin Client Realms
Copyright (C) 2007-2009, AllWorldIT Copyright (C) 2007-2011, AllWorldIT
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
......
/* /*
Admin Clients Admin Clients
Copyright (C) 2007-2009, AllWorldIT Copyright (C) 2007-2011, AllWorldIT
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
......
/* /*
Admin Group Attributes Admin Group Attributes
Copyright (C) 2007-2009, AllWorldIT Copyright (C) 2007-2011, AllWorldIT
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
...@@ -268,9 +268,9 @@ function showAdminGroupAttributeAddEditWindow(AdminGroupAttributesWindow,groupID ...@@ -268,9 +268,9 @@ function showAdminGroupAttributeAddEditWindow(AdminGroupAttributesWindow,groupID
displayField: 'Operator', displayField: 'Operator',
valueField: 'Operator', valueField: 'Operator',
hiddenName: 'Operator', hiddenName: 'Operator',
forceSelection: true, forceSelection: false,
triggerAction: 'all', triggerAction: 'all',
editable: false editable: true
}, },
{ {
fieldLabel: "Value", fieldLabel: "Value",
......
/* /*
Admin Group Members Admin Group Members
Copyright (C) 2007-2009, AllWorldIT Copyright (C) 2007-2011, AllWorldIT
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
......
/* /*
Admin Groups Admin Groups
Copyright (C) 2007-2009, AllWorldIT Copyright (C) 2007-2011, AllWorldIT
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
......
/* /*
Admin Realm Attributes Admin Realm Attributes
Copyright (C) 2007-2009, AllWorldIT Copyright (C) 2007-2011, AllWorldIT
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
...@@ -269,9 +269,9 @@ function showAdminRealmAttributeAddEditWindow(AdminRealmAttributesWindow,realmID ...@@ -269,9 +269,9 @@ function showAdminRealmAttributeAddEditWindow(AdminRealmAttributesWindow,realmID
displayField: 'Operator', displayField: 'Operator',
valueField: 'Operator', valueField: 'Operator',
hiddenName: 'Operator', hiddenName: 'Operator',
forceSelection: true, forceSelection: false,
triggerAction: 'all', triggerAction: 'all',
editable: false editable: true
}, },
{ {
fieldLabel: "Value", fieldLabel: "Value",
......
/* /*
Admin Realm Members Admin Realm Members
Copyright (C) 2007-2009, AllWorldIT Copyright (C) 2007-2011, AllWorldIT
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
......
/* /*
Admin Realms Admin Realms
Copyright (C) 2007-2009, AllWorldIT Copyright (C) 2007-2011, AllWorldIT
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
......
/* /*
Admin User Attributes Admin User Attributes
Copyright (C) 2007-2009, AllWorldIT Copyright (C) 2007-2011, AllWorldIT
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
...@@ -271,9 +271,9 @@ function showAdminUserAttributeAddEditWindow(AdminUserAttributesWindow,userID,at ...@@ -271,9 +271,9 @@ function showAdminUserAttributeAddEditWindow(AdminUserAttributesWindow,userID,at
displayField: 'Operator', displayField: 'Operator',
valueField: 'Operator', valueField: 'Operator',
hiddenName: 'Operator', hiddenName: 'Operator',
forceSelection: true, forceSelection: false,
triggerAction: 'all', triggerAction: 'all',
editable: false editable: true
}, },
{ {
fieldLabel: "Value", fieldLabel: "Value",
......
/* /*
Admin User Groups Admin User Groups
Copyright (C) 2007-2009, AllWorldIT Copyright (C) 2007-2011, AllWorldIT
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
......
/* /*
Admin User Logs Admin User Logs
Copyright (C) 2007-2009, AllWorldIT Copyright (C) 2007-2011, AllWorldIT
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
......