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
00781887
Commit
00781887
authored
16 years ago
by
Robert Anderson
Browse files
Options
Downloads
Patches
Plain Diff
session_start() for using some data in attributes_add.php
parent
8effd697
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/user-attributes.php
+6
-3
6 additions, 3 deletions
webui/user-attributes.php
with
6 additions
and
3 deletions
webui/user-attributes.php
+
6
−
3
View file @
00781887
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
session_start
();
include_once
(
"includes/header.php"
);
include_once
(
"includes/header.php"
);
include_once
(
"includes/footer.php"
);
include_once
(
"includes/footer.php"
);
...
@@ -35,7 +36,7 @@ printHeader(array(
...
@@ -35,7 +36,7 @@ printHeader(array(
));
));
?>
?>
<p
class=
"pageheader"
>
User
List
</p>
<p
class=
"pageheader"
>
Attribute
List
</p>
<form
id=
"main_form"
action=
"user-main.php"
method=
"post"
>
<form
id=
"main_form"
action=
"user-main.php"
method=
"post"
>
...
@@ -77,8 +78,10 @@ printHeader(array(
...
@@ -77,8 +78,10 @@ printHeader(array(
<td
class=
"textcenter"
>
Disabled
</td>
<td
class=
"textcenter"
>
Disabled
</td>
</tr>
</tr>
<?php
<?php
if
(
isset
(
$_POST
[
'user_id'
]))
{
$_SESSION
[
'attr_user_id'
]
=
$_POST
[
'user_id'
];
$temp
=
$_POST
[
'user_id'
];
if
(
isset
(
$_SESSION
[
'attr_user_id'
]))
{
$temp
=
$_SESSION
[
'attr_user_id'
];
$sql
=
"SELECT ID, Name, Operator, Value, Disabled FROM ${DB_TABLE_PREFIX}user_attributes WHERE UserID =
$temp
ORDER BY ID"
;
$sql
=
"SELECT ID, Name, Operator, Value, Disabled FROM ${DB_TABLE_PREFIX}user_attributes WHERE UserID =
$temp
ORDER BY ID"
;
$res
=
$db
->
query
(
$sql
);
$res
=
$db
->
query
(
$sql
);
...
...
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