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
6e1d3686
Commit
6e1d3686
authored
7 years ago
by
Mei Romauli Sagala
Browse files
Options
Browse Files
Download
Plain Diff
iin progress
parents
fcb3a68b
8c354753
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
header.php
common/header.php
+5
-2
form_login.php
form_login.php
+0
-6
No files found.
common/header.php
View file @
6e1d3686
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<nav
class=
"navbar navbar-inverse"
>
<nav
class=
"navbar navbar-inverse"
>
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
>
<div
class=
"navbar-header"
>
<div
class=
"navbar-header"
>
<img
src=
"picture/logo1.png"
>
</a>
<img
src=
"picture/logo1.png"
>
</div>
</div>
<ul
class=
"nav navbar-nav"
>
<ul
class=
"nav navbar-nav"
>
<li><a
href=
"index.php"
><span
class=
"glyphicon glyphicon-home"
></span>
Home
</a></li>
<li><a
href=
"index.php"
><span
class=
"glyphicon glyphicon-home"
></span>
Home
</a></li>
...
@@ -39,7 +39,10 @@
...
@@ -39,7 +39,10 @@
<li><a href="daftar_komen.php"><span class="glyphicon glyphicon-comment"></span>List feedback</a></li>'
;
<li><a href="daftar_komen.php"><span class="glyphicon glyphicon-comment"></span>List feedback</a></li>'
;
}
}
elseif
(
isset
(
$_SESSION
[
'user'
])){
elseif
(
isset
(
$_SESSION
[
'user'
])){
echo
'<li><a href="pesanan.php"><span class="glyphicon glyphicon-shopping-cart "></span> Cart</a></li>'
;
if
(
isset
(
$_SESSION
[
'username'
])){
$id_member
=
$_SESSION
[
'id_member'
];
}
echo
'<li><a href="cart.php?id_member='
.
$id_member
.
'"><span class="glyphicon glyphicon-shopping-cart "></span> Cart</a></li>'
;
}
}
?>
?>
<li><a
href=
"form_comment.php"
><span
class=
"glyphicon glyphicon-comment"
></span>
feedback
</a></li>
<li><a
href=
"form_comment.php"
><span
class=
"glyphicon glyphicon-comment"
></span>
feedback
</a></li>
...
...
This diff is collapsed.
Click to expand it.
form_login.php
View file @
6e1d3686
...
@@ -3,12 +3,6 @@
...
@@ -3,12 +3,6 @@
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'
);
global
$con
;
$con
=
mysqli_connect
(
"localhost"
,
"p1d3ti04_pondokedo"
,
"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'
]);
...
...
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