Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PHP-Chat
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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_SST
PHP-Chat
Commits
c129b947
Commit
c129b947
authored
Jul 12, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Anpassungen für neue Startseite
parent
aa72400e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
index2.php
index2.php
+25
-8
No files found.
index2.php
View file @
c129b947
...
...
@@ -6,7 +6,19 @@ if(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off"){
exit
();
}
include
(
"config.php"
);
?>
include
(
"config.php"
);
$result
=
mysql_query
(
"SELECT * FROM user WHERE name = '
{
$_SESSION
[
'chatuserid'
]
}
'"
);
$users
=
mysql_fetch_array
(
$result
);
if
(
isset
(
$_POST
[
'ok'
]))
{
var_dump
(
$_POST
);
//if($_POST[''])
}
?>
<!DOCTYPE html>
<html>
<head
lang=
"de"
>
...
...
@@ -39,7 +51,7 @@ include("config.php"); ?>
</div>
<div
class=
"collapse navbar-collapse"
id=
"mainnavbar"
>
<ul
class=
"nav navbar-nav"
>
<li
class=
"active"
><a
href=
"
index2.php
"
><span
class=
"glyphicon glyphicon-home"
/></a></li>
<li
class=
"active"
><a
href=
"
<?php
echo
$_SERVER
[
'REQUEST_URI'
];
?>
"
><span
class=
"glyphicon glyphicon-home"
/></a></li>
<li><a
href=
"#"
>
Link1
</a></li>
<li><a
href=
"#"
>
Link2
</a></li>
<li><a
href=
"#"
>
Link3
</a></li>
...
...
@@ -63,7 +75,7 @@ include("config.php"); ?>
<h3
class=
"panel-title"
>
Anmeldung
</h3>
</div>
<div
class=
"panel-body"
>
<form
method=
"post"
action=
"
index.php
"
>
<form
method=
"post"
action=
"
<?php
echo
$_SERVER
[
'REQUEST_URI'
];
?>
"
>
<div
class=
"form-group"
>
<label
for=
"LoginUserId"
>
Benutzername
</label>
<input
type=
"text"
class=
"form-control"
id=
"LoginUserId"
name=
"username"
placeholder=
"Benutzername"
>
...
...
@@ -75,9 +87,9 @@ include("config.php"); ?>
<button
type=
"submit"
class=
"btn btn-default"
name=
"ok"
value=
"Anmelden"
>
Anmelden
</button>
</form>
</div>
<div
class=
"panel-footer"
>
<
!-- <
div class="panel-footer">
<a href="#" id="showRegBtn" role="button" class="btn btn-info btn-xs">Zur Registrierung wechseln...</a>
</div>
</div>
-->
</div>
</div>
<div
class=
"col-xs-12"
id=
"registerCol"
style=
"display:none;"
>
...
...
@@ -86,7 +98,7 @@ include("config.php"); ?>
<h3
class=
"panel-title"
>
Registrierung
</h3>
</div>
<div
class=
"panel-body"
>
<form
method=
"post"
action=
"
index.php?action=register
"
>
<form
method=
"post"
action=
"
<?php
echo
$_SERVER
[
'REQUEST_URI'
];
?>
"
>
<div
class=
"form-group"
>
<label
for=
"RegUserId"
>
Benutzername
</label>
<input
type=
"text"
class=
"form-control"
id=
"RegUserId"
name=
"username"
placeholder=
"Benutzername"
>
...
...
@@ -98,9 +110,9 @@ include("config.php"); ?>
<button
type=
"submit"
class=
"btn btn-default"
name=
"ok"
value=
"Registrieren"
>
Registrieren
</button>
</form>
</div>
<div
class=
"panel-footer"
>
<
!-- <
div class="panel-footer">
<a href="#" id="showLoginBtn" role="button" class="btn btn-info btn-xs">Zur Anmeldung wechseln...</a>
</div>
</div>
-->
</div>
</div>
</div>
...
...
@@ -124,5 +136,10 @@ include("config.php"); ?>
<!-- Latest compiled and minified JavaScript -->
<script
src=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
integrity=
"sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS"
crossorigin=
"anonymous"
></script>
<script
src=
"customJS.js"
></script>
<script>
$
(
document
).
ready
(
function
()
{
});
</script>
</body>
</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