Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MediaDBViewerAPI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BA_SI-Projekt
MediaDBViewerAPI
Commits
dd9a6e0a
Commit
dd9a6e0a
authored
Feb 29, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
774ee7af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
index.php
webapp/index.php
+6
-2
No files found.
webapp/index.php
View file @
dd9a6e0a
...
...
@@ -46,7 +46,7 @@ function TableRowRights($Api, $Key = null, $Data = null){
$ret
.=
'<td><input type="checkbox" name="Update" '
.
(
$Data
[
"Update"
]
==
true
?
"checked"
:
""
)
.
'></td>'
;
$ret
.=
'<td><input type="checkbox" name="DebugO" '
.
(
$Data
[
"DebugO"
]
==
true
?
"checked"
:
""
)
.
'></td>'
;
$ret
.=
'<td><input type="submit" name="POST" value="'
.
((
$Data
==
null
)
?
"Anlegen"
:
"Speichern"
)
.
'">
<input type=hidden" name="ID" value="'
.
$Key
.
'"></td>'
;
<input type=
"
hidden" name="ID" value="'
.
$Key
.
'"></td>'
;
$ret
.=
'</tr></form>'
;
return
$ret
;
}
...
...
@@ -209,12 +209,16 @@ if($_GET["action"] == "filme"){
}
file_put_contents
(
API_Rights
,
json_encode
(
$Data
,
JSON_PRETTY_PRINT
));
$Data
[
$_POST
[
"ID"
]][
"webapp"
]
=
(
isset
(
$_POST
[
"webapp"
])
?
true
:
false
);
$Data
[
$_POST
[
"ID"
]][
"Update"
]
=
(
isset
(
$_POST
[
"Update"
])
?
true
:
false
);
$Data
[
$_POST
[
"ID"
]][
"DebugO"
]
=
(
isset
(
$_POST
[
"DebugO"
])
?
true
:
false
);
}
ob_start
();
//var_dump($Data);
//var_dump($Data);
TableRowRights
$content
.=
ob_get_clean
();
$content
.=
'<div style="width: 100%; overflow: auto;"><table>'
.
PHP_EOL
;
$content
.=
' <tr><th >Von</th> <th> Bis</th> '
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment