Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
smradius
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shail
smradius
Commits
30dc4838
Commit
30dc4838
authored
16 years ago
by
Robert Anderson
Browse files
Options
Downloads
Patches
Plain Diff
Updated for use with SMRadiusd
parent
d52c056b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webui/policy-main.php
+14
-18
14 additions, 18 deletions
webui/policy-main.php
with
14 additions
and
18 deletions
webui/policy-main.php
+
14
−
18
View file @
30dc4838
<?php
<?php
#
Policy main screen
#
Radius User List
# Copyright (C) 2008
, LinuxRulz
# Copyright (C) 2008
-2009, 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
...
@@ -34,9 +34,9 @@ printHeader(array(
...
@@ -34,9 +34,9 @@ printHeader(array(
if
(
!
isset
(
$_POST
[
'frmaction'
]))
if
(
!
isset
(
$_POST
[
'frmaction'
]))
{
{
?>
?>
<p
class=
"pageheader"
>
Policy
List
</p>
<p
class=
"pageheader"
>
User
List
</p>
<form
id=
"main_form"
action=
"
policy
-main.php"
method=
"post"
>
<form
id=
"main_form"
action=
"
user
-main.php"
method=
"post"
>
<div
class=
"textcenter"
>
<div
class=
"textcenter"
>
Action
Action
...
@@ -46,13 +46,13 @@ if (!isset($_POST['frmaction']))
...
@@ -46,13 +46,13 @@ if (!isset($_POST['frmaction']))
var myobj = document.getElementById('main_form_action');
var myobj = document.getElementById('main_form_action');
if (myobj.selectedIndex == 2) {
if (myobj.selectedIndex == 2) {
myform.action = '
policy
-add.php';
myform.action = '
user
-add.php';
} else if (myobj.selectedIndex == 4) {
} else if (myobj.selectedIndex == 4) {
myform.action = '
policy
-change.php';
myform.action = '
user
-change.php';
} else if (myobj.selectedIndex == 5) {
} else if (myobj.selectedIndex == 5) {
myform.action = '
policy
-delete.php';
myform.action = '
user
-delete.php';
} else if (myobj.selectedIndex == 6) {
} else if (myobj.selectedIndex == 6) {
myform.action = '
policy
-member-main.php';
myform.action = '
user
-member-main.php';
}
}
myform.submit();
myform.submit();
...
@@ -64,7 +64,7 @@ if (!isset($_POST['frmaction']))
...
@@ -64,7 +64,7 @@ if (!isset($_POST['frmaction']))
<option
disabled=
"disabled"
>
- - - - - - - - - - -
</option>
<option
disabled=
"disabled"
>
- - - - - - - - - - -
</option>
<option
value=
"change"
>
Change
</option>
<option
value=
"change"
>
Change
</option>
<option
value=
"delete"
>
Delete
</option>
<option
value=
"delete"
>
Delete
</option>
<option
value=
"members"
>
Member
s
</option>
<option
value=
"members"
>
Attribute
s
</option>
</select>
</select>
</div>
</div>
...
@@ -72,23 +72,19 @@ if (!isset($_POST['frmaction']))
...
@@ -72,23 +72,19 @@ if (!isset($_POST['frmaction']))
<table
class=
"results"
style=
"width: 75%;"
>
<table
class=
"results"
style=
"width: 75%;"
>
<tr
class=
"resultstitle"
>
<tr
class=
"resultstitle"
>
<td
id=
"noborder"
></td>
<td
class=
"textcenter"
>
ID
</td>
<td
class=
"textcenter"
>
Name
</td>
<td
class=
"textcenter"
>
Username
</td>
<td
class=
"textcenter"
>
Priority
</td>
<td
class=
"textcenter"
>
Description
</td>
<td
class=
"textcenter"
>
Disabled
</td>
<td
class=
"textcenter"
>
Disabled
</td>
</tr>
</tr>
<?php
<?php
$sql
=
"SELECT ID,
Name, Priority, Description
, Disabled FROM ${DB_TABLE_PREFIX}
policie
s ORDER BY
Priority
ASC"
;
$sql
=
"SELECT ID,
Username
, Disabled FROM ${DB_TABLE_PREFIX}
user
s ORDER BY
Username
ASC"
;
$res
=
$db
->
query
(
$sql
);
$res
=
$db
->
query
(
$sql
);
while
(
$row
=
$res
->
fetchObject
())
{
while
(
$row
=
$res
->
fetchObject
())
{
?>
?>
<tr
class=
"resultsitem"
>
<tr
class=
"resultsitem"
>
<td><input
type=
"radio"
name=
"policy_id"
value=
"
<?php
echo
$row
->
id
?>
"
/></td>
<td><input
type=
"radio"
name=
"user_id"
value=
"
<?php
echo
$row
->
id
?>
"
/>
<?php
echo
$row
->
id
?>
</td>
<td>
<?php
echo
$row
->
name
?>
</td>
<td>
<?php
echo
$row
->
username
?>
</td>
<td
class=
"textcenter"
>
<?php
echo
$row
->
priority
?>
</td>
<td>
<?php
echo
$row
->
description
?>
</td>
<td
class=
"textcenter"
>
<?php
echo
$row
->
disabled
?
'yes'
:
'no'
?>
</td>
<td
class=
"textcenter"
>
<?php
echo
$row
->
disabled
?
'yes'
:
'no'
?>
</td>
</tr>
</tr>
<?php
<?php
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment