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
6724e07b
Commit
6724e07b
authored
Feb 12, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
8009d2b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
76 deletions
+72
-76
index.php
index.php
+72
-76
No files found.
index.php
View file @
6724e07b
<?php
include
(
"./api.class.php"
);
<?php
if
(
isset
(
$_POST
[
"anmelden"
])){
include
(
"./api.class.php"
);
if
(
isset
(
$_POST
[
"anmelden"
]
))
{
$API
=
new
MediaDBAPI
();
$API
=
new
MediaDBAPI
();
if
(
$API
->
APIinit
(
$_POST
[
"api-key"
])){
if
(
$API
->
APIinit
(
$_POST
[
"api-key"
]
))
{
$ErrorBox
=
'<div class="alert alert-success">'
.
PHP_EOL
.
$ErrorBox
=
'<div class="alert alert-success">'
.
PHP_EOL
.
'<strong>Fehler!</strong> Alles Gut!'
.
PHP_EOL
.
'</div>'
.
PHP_EOL
;
'<strong>Fehler!</strong> Alles Gut!'
.
PHP_EOL
.
'</div>'
.
PHP_EOL
;
// Session Start bzw. Cookie setzen!!
// Session Start bzw. Cookie setzen!!
}
}
else
{
else
{
$FehlerArray
=
$API
->
error
(
1002
);
$FehlerArray
=
$API
->
error
(
1002
);
$ErrorBox
=
'<div class="alert alert-danger">'
.
PHP_EOL
.
'<strong>Fehler '
.
$FehlerArray
[
"FehlerID"
]
.
'!</strong> '
.
$FehlerArray
[
"FehlerText"
]
.
PHP_EOL
.
'</div>'
.
PHP_EOL
;
$ErrorBox
=
'<div class="alert alert-danger">'
.
PHP_EOL
.
'<strong>Fehler '
.
$FehlerArray
[
"FehlerID"
]
.
'!</strong> '
.
$FehlerArray
[
"FehlerText"
]
.
PHP_EOL
.
'</div>'
.
PHP_EOL
;
}
}
}
}
?>
?>
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"de"
><head>
<html
lang=
"de"
>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=UTF-8"
>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"description"
content=
"MediaDB Webfrontend"
>
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta
name=
"author"
content=
""
>
<meta
name=
"description"
content=
"MediaDB Webfrontend"
>
<meta
name=
"author"
content=
""
>
<title>
MediaDB-Anmeldung
</title>
<title>
MediaDB-Anmeldung
</title>
<link
href=
"files/bootstrap.css"
rel=
"stylesheet"
>
<!-- Bootstrap core CSS -->
<link
href=
"files/bootstrap.css"
rel=
"stylesheet"
>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link
href=
"files/ie10-viewport-bug-workaround.css"
rel=
"stylesheet"
>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<!-- Custom styles for this template -->
<link
href=
"files/ie10-viewport-bug-workaround.css"
rel=
"stylesheet"
>
<link
href=
"files/starter-template.css"
rel=
"stylesheet"
>
<!-- Custom styles for this template -->
<link
href=
"files/starter-template.css"
rel=
"stylesheet"
>
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script
src=
"files/ie-emulation-modes-warning.js"
></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<![endif]-->
</head>
</head>
<body>
<nav
class=
"navbar navbar-inverse navbar-fixed-top"
>
<body>
<div
class=
"container"
>
<nav
class=
"navbar navbar-inverse navbar-fixed-top"
>
<div
class=
"navbar-header"
>
<div
class=
"container"
>
<button
type=
"button"
class=
"navbar-toggle collapsed"
data-toggle=
"collapse"
data-target=
"#navbar"
aria-expanded=
"false"
aria-controls=
"navbar"
>
<div
class=
"navbar-header"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<button
type=
"button"
class=
"navbar-toggle collapsed"
<span
class=
"icon-bar"
></span>
data-toggle=
"collapse"
data-target=
"#navbar"
aria-expanded=
"false"
<span
class=
"icon-bar"
></span>
aria-controls=
"navbar"
>
<span
class=
"icon-bar"
></span>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
</button>
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
<a
class=
"navbar-brand"
href=
"#"
>
MediaDB
</a>
class=
"icon-bar"
></span>
</div>
</button>
<div
id=
"navbar"
class=
"collapse navbar-collapse"
>
<a
class=
"navbar-brand"
href=
"#"
>
MediaDB
</a>
<ul
class=
"nav navbar-nav"
>
</div>
<li
class=
"active"
><a
href=
"#"
>
Anmeldung
</a></li>
<div
id=
"navbar"
class=
"collapse navbar-collapse"
>
<!--<li><a href="#about">About</a></li>
<ul
class=
"nav navbar-nav"
>
<li><a href="#contact">Contact</a></li>-->
<li
class=
"active"
><a
href=
"#"
>
Anmeldung
</a></li>
</ul>
<!--<li><a href="#about">About</a></li>
</div>
<!--/.nav-collapse -->
<li><a href="#contact">Contact</a></li>-->
</div>
</ul>
</nav>
</div>
<!--/.nav-collapse -->
</div>
</nav>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"starter-template"
>
<div
class=
"starter-template"
>
<h1>
Anmeldung
</h1>
<h1>
Anmeldung
</h1>
<?php
echo
$ErrorBox
;
?>
<?php
echo
$ErrorBox
;
?>
<form
role=
"form"
method=
"post"
>
<form
role=
"form"
method=
"post"
action=
""
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"email"
>
API-Schlüssel:
</label>
<label
for=
"email"
>
API-Schlüssel:
</label>
<input
type=
"text"
<input
type=
"text"
maxlength=
"10"
class=
"form-control"
id=
"api-key"
name=
"api-key"
value=
"
<?php
echo
$_POST
[
'api-key'
];
?>
"
>
maxlength=
"10"
class=
"form-control"
id=
"api-key"
name=
"api-key"
<?php
echo
'value="'
.
$_POST
[
'api-key'
]
.
'"'
;
?>
>
</div>
</div>
<div
class=
"checkbox"
>
<div
class=
"checkbox"
>
<label><input
type=
"checkbox"
name=
"angemeldetbleiben"
<?php
echo
(
isset
(
$_POST
[
'angemeldetbleiben'
])
?
"checked"
:
""
);
?>
>
Länger angemeldet bleiben (via Cookies)
</label>
<label><input
type=
"checkbox"
name=
"angemeldetbleiben"
<?php
echo
(
isset
(
$_POST
[
'angemeldetbleiben'
])
?
"checked"
:
""
);
?>
>
Länger angemeldet bleiben (via Cookies)
</label>
</div>
</div>
<button
type=
"submit"
class=
"btn btn-default"
name=
"anmelden"
>
Anmelden
</button>
<button
type=
"submit"
class=
"btn btn-default"
name=
"anmelden"
>
Anmelden
</button>
</form>
</form>
</div>
</div>
</div>
<!-- /.container -->
</div>
<!-- /.container -->
<!-- Bootstrap core JavaScript
<!-- Bootstrap core JavaScript
================================================== -->
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!-- Placed at the end of the document so the pages load faster -->
<script
src=
"files/jquery.js"
></script>
<script
src=
"files/jquery.js"
type=
"text/javascript"
></script>
<!--<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>-->
<!--<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>-->
<script
src=
"files/bootstrap.js"
></script>
<script
src=
"files/bootstrap.js"
type=
"text/javascript"
></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"files/ie10-viewport-bug-workaround.js"
></script>
<script
src=
"files/ie10-viewport-bug-workaround.js"
type=
"text/javascript"
></script>
</body></html>
</body>
\ No newline at end of file
</html>
\ No newline at end of file
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