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
73782dae
Commit
73782dae
authored
Jul 13, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debug
parent
a3880a05
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
index2.php
index2.php
+1
-1
No files found.
index2.php
View file @
73782dae
...
@@ -13,7 +13,6 @@ $users = mysql_fetch_array($result);
...
@@ -13,7 +13,6 @@ $users = mysql_fetch_array($result);
if
(
isset
(
$_POST
[
'ok'
]))
if
(
isset
(
$_POST
[
'ok'
]))
{
{
var_dump
(
$_POST
);
if
(
$_POST
[
'ok'
]
==
"Anmelden"
){
if
(
$_POST
[
'ok'
]
==
"Anmelden"
){
$username
=
htmlentities
(
$_POST
[
'username'
]);
$username
=
htmlentities
(
$_POST
[
'username'
]);
$passwort
=
htmlentities
(
$_POST
[
'pass'
]);
$passwort
=
htmlentities
(
$_POST
[
'pass'
]);
...
@@ -43,6 +42,7 @@ if(isset($_POST['ok']))
...
@@ -43,6 +42,7 @@ if(isset($_POST['ok']))
}
}
else
if
(
$_POST
[
'ok'
]
==
"Registrieren"
)
else
if
(
$_POST
[
'ok'
]
==
"Registrieren"
)
{
{
var_dump
(
$_POST
);
$result
=
mysql_query
(
"SELECT COUNT(*) AS anz FROM user WHERE name = '
{
$_POST
[
'username'
]
}
'"
);
$result
=
mysql_query
(
"SELECT COUNT(*) AS anz FROM user WHERE name = '
{
$_POST
[
'username'
]
}
'"
);
$user
=
mysql_fetch_array
(
$result
);
$user
=
mysql_fetch_array
(
$result
);
if
(
$user
[
'anz'
]
==
0
AND
$_POST
[
'username'
]
!=
""
AND
$_POST
[
'pass'
]
!=
""
){
if
(
$user
[
'anz'
]
==
0
AND
$_POST
[
'username'
]
!=
""
AND
$_POST
[
'pass'
]
!=
""
){
...
...
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