Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
RestoranPondokEdo
Project
Overview
Details
Activity
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
Mei Romauli Sagala
RestoranPondokEdo
Commits
9b7e8873
Commit
9b7e8873
authored
7 years ago
by
Mei Romauli Sagala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in progress
parent
01c95b55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
cek_login.php
cek_login.php
+2
-2
form_login.php
form_login.php
+8
-2
No files found.
cek_login.php
View file @
9b7e8873
<?php
<?php
global
$con
;
global
$con
;
$con
=
mysqli_connect
(
"localhost"
,
"p1d3ti04"
,
"MeiHong05"
);
$con
=
mysqli_connect
(
"localhost"
,
"p1d3ti04
_pondokedo
"
,
"MeiHong05"
);
if
(
!
$con
)
{
if
(
!
$con
)
{
die
(
"database connect problem"
);
die
(
"database connect problem"
);
}
}
$db_use
=
mysqli_select_db
(
$con
,
"p1d3ti04_pondok
_
edo"
)
or
die
(
"selet db problem !!"
);
$db_use
=
mysqli_select_db
(
$con
,
"p1d3ti04_pondokedo"
)
or
die
(
"selet db problem !!"
);
function
execQ
(
$strQ
){
function
execQ
(
$strQ
){
global
$con
;
global
$con
;
...
...
This diff is collapsed.
Click to expand it.
form_login.php
View file @
9b7e8873
...
@@ -3,11 +3,17 @@
...
@@ -3,11 +3,17 @@
require_once
(
dirname
(
__FILE__
)
.
'/common/header.php'
);
require_once
(
dirname
(
__FILE__
)
.
'/common/header.php'
);
require_once
(
dirname
(
__FILE__
)
.
'/cek_login.php'
);
require_once
(
dirname
(
__FILE__
)
.
'/cek_login.php'
);
require_once
(
dirname
(
__FILE__
)
.
'/fungsi/session.php'
);
require_once
(
dirname
(
__FILE__
)
.
'/fungsi/session.php'
);
require_once
(
dirname
(
__FILE__
)
.
'koneksi.php'
);
global
$con
;
$con
=
mysqli_connect
(
"localhost"
,
"p1d3ti04_pondokedo"
,
"p1d3ti04"
,
"MeiHong05"
);
if
(
!
$con
)
{
die
(
"database connect problem"
);
}
$db_use
=
mysqli_select_db
(
$con
,
"p1d3ti04_pondokedo"
)
or
die
(
"selet db problem !!"
);
if
(
isset
(
$_GET
[
'do_login'
])){
if
(
isset
(
$_GET
[
'do_login'
])){
$login
=
getUser
(
$_POST
[
'username'
],
$_POST
[
'password'
]);
$login
=
getUser
(
$_POST
[
'username'
],
$_POST
[
'password'
]);
if
(
$login
==
false
){
if
(
$login
==
false
){
$_SESSION
[
'login_error'
]
=
TRUE
;
$_SESSION
[
'login_error'
]
=
TRUE
;
}
else
{
}
else
{
$_SESSION
[
'user'
]
=
TRUE
;
$_SESSION
[
'user'
]
=
TRUE
;
...
...
This diff is collapsed.
Click to expand it.
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