sm0ke |
Subject: "re: Login menu"
Posted: @ 7:09 pm on Jun 30 2007
|
|
|
 Member #: 168 Rank: user - (83) Since: 06/05/06 Posts: 34 From: Manchester - UK
|
yep
change this:
Code:
<?
//Check if
logged in
if($_SESSION['
logged_in'] ==
1) {
echo("Wel
come, would you
like to go to
the member
Area.s" //
Make sure you
include link to
member area.
} else {
//html here
?>
<form
name="log
in"
method="p
ost"
action="&
lt;?php echo
$_SERVER['PHP_
SELF']?>&q
uot;>
<table
align="le
ft">
<tr>
<td
align="ce
nter">
Username:<in
put
type="tex
t"
id="usern
ame"
name="use
rname">
;</td><
;/tr>
<tr>
<td
align="ce
nter">
Password:<in
put
type="pas
sword"
id="passw
ord"
name="pas
sword">
;</td><
;/tr>
<tr>
<td
align="ce
nter">
<input
type="sub
mit"
value="Su
bmit"
name="sub
mit"
id="submi
t"><
;/td></tr
>
<tr>
<td>Remem
ber? <input
type="che
ckbox"
name="sta
y_in[]"
checked="
yes">&
lt;/td></
tr>
</table><
br />
</form>
to this:
Code:
<?
//Check if
logged in
if($_SESSION['
logged_in'] ==
1) {
echo("Wel
come, would you
like to go to
the member
Area.s" //
Make sure you
include link to
member area.
} else {
//html here
?>
<form
name="log
in"
method="p
ost"
action="&
lt;?php echo
$_SERVER['PHP_
SELF']?>&q
uot;>
<table
align="le
ft">
<tr>
<td
align="ce
nter">
Username:<in
put
type="tex
t"
id="usern
ame"
name="use
rname">
;</td><
;/tr>
<tr>
<td
align="ce
nter">
Password:<in
put
type="pas
sword"
id="passw
ord"
name="pas
sword">
;</td><
;/tr>
<tr>
<td
align="ce
nter">
<input
type="sub
mit"
value="Su
bmit"
name="sub
mit"
id="submi
t"><
;/td></tr
>
<tr>
<td>Remem
ber? <input
type="che
ckbox"
name="sta
y_in[]"
checked="
yes">&
lt;/td></
tr>
</table><
br />
</form>
<?
}
?>
to remove the
error and get
the thing
showing how you
want.
to add the info
you want is a
bit
different.
change this:
Code:
echo("Wel
come, would you
like to go to
the member
Area.s" //
Make sure you
include link to
member area.
to include all
the information
you want. You
can style it
with html.
If you want the
last time they
logged in, the
best way is to
query a
database on
login to update
with the
current
timestamp using
something like
"NOW()&q
uot; to insert
to a datetime
field and also
to retrieve the
last time they
logged in,
which is
determined by a
DB query
updating the
Last_logged_in
field with the
details of the
current session
when the user
logs out. If
you do it
before they log
out the last
logged in time
will show as
the current
time when the
page
refreshes.
Ask bs0d about
a banner.
complete
changed
code:
Code:
<?
ob_start();
require_once($_
SERVER['DOCUME
NT_ROOT'].'/d
b_connect.php'
); ?>
<!DOCTYPE
HTML PUBLIC
"-//W3C//
DTD HTML 4.01
Transitional//E
N">
<html>
<head>
<title>Ga
merElites.com&l
t;/title>
<meta
http-equiv=&qu
ot;content-type
"
content="
text/html;
charset=UTF-8&
quot;>
<link
href="sty
le.css"
rel="styl
esheet"
type="tex
t/css">
;
<style
type="tex
t/css">
;
<!--
#apDiv1 {
position:absolu
te;
left:305px;
top:29px;
width:33px;
height:36px;
z-index:1;
}
#apDiv2 {
position:absolu
te;
left:267px;
top:41px;
width:33px;
height:9px;
z-index:1;
}
.style4
{font-size:
16px;
font-weight:
bold; color:
#E52F00;}
-->
</style><
br />
</head>
<body>
<table
cellpadding=&q
uot;0"
cellspacing=&q
uot;0"
border="0
"
align="le
ft">
<tr>
<td
valign="t
op"
width="76
6"
height="8
10"
class="co
ntent">
;
<table
cellpadding=&q
uot;0"
cellspacing=&q
uot;0"
border="0
">
<tr>
<td
valign="t
op"
width="76
6"
height="1
07">
<table
cellpadding=&q
uot;0"
cellspacing=&q
uot;0"
border="0
">
<tr>
<td
valign="t
op"
width="26
2"
height="1
07">&l
t;img
src="imag
es/logo.gif&qu
ot;
alt="&qu
ot;
border="0
"><
/td>
<td
valign="t
op"
width="50
4"
height="1
07">&l
t;div
style="ma
rgin:6 0 0 1px
"><
img
src="imag
es/w1.gif"
;
style="ma
rgin-left:13px;
margin-bottom:5
px "
alt="&qu
ot;
border="0
"><
br><a
href="#&
quot;><im
g
src="imag
es/k1.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k2.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k3.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k4.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k5.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k6.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k7.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k8.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k9.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k10.gif&quo
t;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k11.gif&quo
t;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k12.gif&quo
t;
alt="&qu
ot;
border="0
"><
/a><br>
;<a
href="ind
ex.html"&
gt;<img
src="imag
es/m1-1.gif&qu
ot;
alt="&qu
ot;
border="0
"><
/a><a
href="ind
ex-1.html"
;><img
src="imag
es/m2.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/m3.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/m4.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/m5.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/m6.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/m7.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/m8.gif"
;
alt="&qu
ot;
border="0
"><
/a></div&
gt;</td><
br />
</tr>
</table>
</td>
</tr>
<tr>
<td
valign="t
op"
width="76
6"
height="6
33">
<table
cellpadding=&q
uot;0"
cellspacing=&q
uot;0"
border="0
">
<tr>
<td
valign="t
op"
width="26
2"
height="6
83">
<table
height="6
89"
border="0
"
cellpadding=&q
uot;0"
cellspacing=&q
uot;0">
;
<tr>
<td
valign="t
op"
width="26
2"
height="2
1"
style="ba
ckground-image:
url(images/1_bg
1.gif)
"><
div
style="ma
rgin:7 0 0 11px
"><
img
src="imag
es/1_w1.gif&qu
ot;
alt="&qu
ot;
border="0
"><
/div></td
>
</tr>
<tr>
<td
width="26
2"
height="3
3"
valign="t
op"
bordercolor=&q
uot;#EFEBEF&qu
ot;
bgcolor="
#595959"&
gt;
<?
//Check if
logged in
if($_SESSION['
logged_in'] ==
1) {
echo("Wel
come, would you
like to go to
the member
Area.s" //
Make sure you
include link to
member area.
} else {
//html here
?>
<form
name="log
in"
method="p
ost"
action="&
lt;?php echo
$_SERVER['PHP_
SELF']?>&q
uot;>
<table
align="le
ft">
<tr>
<td
align="ce
nter">
Username:<in
put
type="tex
t"
id="usern
ame"
name="use
rname">
;</td><
;/tr>
<tr>
<td
align="ce
nter">
Password:<in
put
type="pas
sword"
id="passw
ord"
name="pas
sword">
;</td><
;/tr>
<tr>
<td
align="ce
nter">
<input
type="sub
mit"
value="Su
bmit"
name="sub
mit"
id="submi
t"><
;/td></tr
>
<tr>
<td>Remem
ber? <input
type="che
ckbox"
name="sta
y_in[]"
checked="
yes">&
lt;/td></
tr>
</table><
br />
</form>
<!--Changes-
->
<?
}
?>
<!--End
Changes-->
</td>
</tr>
<tr>
<td
height="1
2"
valign="t
op"
bordercolor=&q
uot;#EFEBEF&qu
ot;
bgcolor="
#595959"&
gt;<p>&am
p;nbsp;</p&g
t;
<p>&n
bsp;</p><
br />
<p>&n
bsp;</p>&
lt;/td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="2
1"
style="ba
ckground-image:
url(images/1_bg
1.gif)
"><
div
style="ma
rgin:7 0 0 11px
"><
img
src="imag
es/1_w4.gif&qu
ot;
alt="&qu
ot;
border="0
"><
/div></td
>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="1
34"
bgcolor="
#2B2B2B"&
gt;
<table
cellpadding=&q
uot;0"
cellspacing=&q
uot;0"
border="0
">
<tr>
<td
valign="t
op"
width="14
0"
height="1
34">
<div
style="ma
rgin:17 0 0
11px
"><
ul>
<li><a
href="#&
quot;>Action
</a></
li>
<li><a
href="#&
quot;>1st-Pe
rson
Shooters</a&
gt;</li><
br />
<li><a
href="#&
quot;>Advent
ure</a>&l
t;/li>
<li><a
href="#&
quot;>Mass
Multiplayer<
/a></li&g
t;
<li><a
href="#&
quot;>Role-P
laying</a>
;</li>
<li><a
href="#&
quot;>Real-T
ime
Strategy</a&
gt;</li><
br />
</ul><
/div>
</td>
<td
valign="t
op"
width="12
2"
height="1
34">&l
t;div
style="ma
rgin:17 0 0 0px
"><
ul>
<li><a
href="#&
quot;>Racing
</a></
li>
<li><a
href="#&
quot;>Role-P
laying</a>
;</li>
<li><a
href="#&
quot;>Tycoon
</a></
li>
<li><a
href="#&
quot;>For
Kids</a>&
lt;/li>
<li><a
href="#&
quot;>Top
Rated
Games</a>
</li>
<li><a
href="#&
quot;>Most
Popular</a&g
t;</li>
</ul><
/div></td
>
</tr>
</table>
</td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="2
1"
style="ba
ckground-image:
url(images/1_bg
1.gif)
"><
div
style="ma
rgin:6 0 0 11px
"><
img
src="imag
es/1_w5.gif&qu
ot;
alt="&qu
ot;
border="0
"><
img
src="imag
es/1_w6.gif&qu
ot;
alt="&qu
ot;
border="0
"
style="ma
rgin-left:52px
"><
/div></td
>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="8
3"
bgcolor="
#2B2B2B"
class="bl
ock1">
<div
style="ma
rgin:8 10 0
14px
"><
img
src="imag
es/1_p1.jpg&qu
ot;
align="le
ft"
style="ma
rgin-right:13px
;"
alt="&qu
ot;
border="0
"><
br
style="li
ne-height:5px
">
<a
href="#&
quot;>World
in
Conflict</a&
gt;<br>
<br
style="li
ne-height:5px
">
</div><
;/td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="1
"><
/td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="8
4"
bgcolor="
#2B2B2B"
class="bl
ock1">
<div
style="ma
rgin:8 10 0
14px
"><
img
src="imag
es/1_p2.jpg&qu
ot;
align="le
ft"
style="ma
rgin-right:13px
;"
alt="&qu
ot;
border="0
"><
br
style="li
ne-height:5px
">
<a
href="#&
quot;>Wolfpa
ck
Studios</a&g
t;<br>
<br
style="li
ne-height:5px
">
</div><
;/td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="1
"><
/td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="8
5"
bgcolor="
#2B2B2B"
class="bl
ock1">
<div
style="ma
rgin:8 10 0
14px
"><
img
src="imag
es/1_p3.jpg&qu
ot;
align="le
ft"
style="ma
rgin-right:13px
;"
alt="&qu
ot;
border="0
"><
br
style="li
ne-height:5px
">
<a
href="#&
quot;>Crysis
</a><b
r>
<br
style="li
ne-height:5px
">
</div><
;/td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="1
"><
/td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="2
8"
bgcolor="
#2B2B2B"
class="bl
ock2">
<div
style="ma
rgin:8 0 0 14px
"><
a
href="#&
quot;>read
more
news</a>&
lt;/div><
/td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="2
1"
style="ba
ckground-image:
url(images/1_bg
4.gif)
"><
div
style="ma
rgin:7 0 0 11px
"><
img
src="imag
es/1_w7.gif&qu
ot;
alt="&qu
ot;
border="0
"><
/div></td
>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="7
0"
bgcolor="
#4A4A4A"&
gt;<form
action="
"
style="ma
rgin:0;
padding:0
"><
div
style="ma
rgin:16 0 0
10px
"><
/div>
</form>
<div
style="ma
rgin:5 0 0 14px
"><
a
href="#&
quot;><im
g
src="imag
es/1_w8.gif&qu
ot;
alt="&qu
ot;
border="0
"><
/a></div&
gt;</td><
br />
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="2
"><
/td>
</tr>
</table>
</td>
<td
valign="t
op"
width="1
"
height="6
83">&l
t;/td>
<td
valign="t
op"
width="50
3"
height="6
83">
<table
height="7
51"
border="0
"
cellpadding=&q
uot;0"
cellspacing=&q
uot;0">
;
<tr>
<td
valign="t
op"
width="50
3"
height="1
"><
/td>
</tr>
<tr>
<td
valign="t
op"
width="50
3"
height="5
2">
<table
cellpadding=&q
uot;0"
cellspacing=&q
uot;0"
border="0
">
<tr>
<td
valign="t
op"
width="19
5"
height="5
2"
bgcolor="
#414141"&
gt; &l
t;/td>
<td
valign="t
op"
width="1
"
height="5
2"><
;/td>
<td
valign="t
op"
width="30
7"
height="5
2"
bgcolor="
#474747"&
gt; &l
t;/td>
</tr>
</table>
</td>
</tr>
<tr>
<td
valign="t
op"
width="50
3"
height="2
2"
style="ba
ckground-image:
url(images/1_bg
1.gif)
"><
div
style="ma
rgin:7 0 0 11px
"><
img
src="imag
es/1_w10.gif&q
uot;
alt="&qu
ot;
border="0
"><
/div></td
>
</tr>
<tr>
<td
valign="t
op"
width="50
3"
height="1
69">&l
t;img
src="imag
es/1_p4.jpg&qu
ot;
alt="&qu
ot;
border="0
"><
/td>
</tr>
<tr>
<td
valign="t
op"
width="50
3"
height="1
9"
style="ba
ckground-image:
url(images/1_bg
2.gif)
"><
div
style="ma
rgin:5 0 0 13px
"><
img
src="imag
es/1_w11.gif&q
uot;
alt="&qu
ot;
border="0
"><
/div></td
>
</tr>
<tr>
<td
valign="t
op"
width="50
3"
height="1
55">
<table
cellpadding=&q
uot;0"
cellspacing=&q
uot;0"
border="0
">
<tr>
<td
valign="t
op"
width="16
6"
height="1
55"
bgcolor="
#131313"
class="bl
ock2">
<img
src="imag
es/1_p5.jpg&qu
ot;
alt="&qu
ot;
border="0
"><
div
style="ma
rgin:12 0 0
12px
"><
a
href="#&
quot;>Tomb
Raider:
Legend</a>
;<br>
<br
style="li
ne-height:5px
">
</div><
;/td>
<td
valign="t
op"
width="1
"
height="1
55">&l
t;/td>
<td
valign="t
op"
width="16
8"
height="1
55"
bgcolor="
#131313"
class="bl
ock2">
<img
src="imag
es/1_p6.jpg&qu
ot;
alt="&qu
ot;
border="0
"><
div
style="ma
rgin:12 0 0
12px
"><
a
href="#&
quot;>The
Elder Scrolls
IV:
Oblivion</a&
gt;<br>
<br
style="li
ne-height:5px
">
</div><
;/td>
<td
valign="t
op"
width="1
"
height="1
55">&l
t;/td>
<td
valign="t
op"
width="16
7"
height="1
55"
bgcolor="
#131313"
class="bl
ock2">
<img
src="imag
es/1_p7.jpg&qu
ot;
alt="&qu
ot;
border="0
"><
div
style="ma
rgin:12 0 0
12px
"><
a
href="#&
quot;>Rise
Of
Legends</a&g
t;<br>
<br
style="li
ne-height:5px
">
</div><
;/td>
</tr>
</table>
</td>
</tr>
<tr>
<td
valign="t
op"
width="50
3"
height="2
1"
style="ba
ckground-image:
url(images/1_bg
3.gif) "
class="bl
ock1">
<div
style="ma
rgin:3 0 0 11px
"><
img
src="imag
es/1_w12.gif&q
uot;
style="ma
rgin-right:280p
x;
vertical-align:
middle"
alt="&qu
ot;
border="0
"><
a
href="#&
quot;>read
more
stories</a&g
t;</div>&
lt;/td>
</tr>
<tr>
<td
width="50
3"
height="9
5"
valign="t
op"
bgcolor="
#1E1E1E"
class="bl
ock">&
lt;div
align="ce
nter">
<div
class="st
yle4"
style="ma
rgin:12 0 0
12px
">News
</div>
</div>
<p>Friday
, June 29, 2007
(08:09:34)</
p>
<p>The
website is
going great,
thanks to the
help of
AllSyntax.com
The best help
you can get as
far as PHP and
Mysql coding
goes. Great
Guys!!</p>
;</td>
</tr>
<tr>
<td
valign="t
op"
width="50
3"
height="1
91"
class="bl
ock"
bgcolor="
#1E1E1E"&
gt; &l
t;/td>
</tr>
<tr>
<td
valign="t
op"
width="50
3"
height="2
1"><
;/td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td
valign="t
op"
width="76
6"
height="3
6"><
;div
style="ma
rgin:21 0 0
17px
">
<div
align="ce
nter">
<br
style="li
ne-height:9px
">
</div>
</div><
;/td>
</tr>
<tr>
<td
valign="t
op"
height="7
0"><
;div
align="ce
nter">
<p>Copyri
ght©
2007,
GamersElite
</p>
</div><
;/td>
</tr>
</table><
br />
</td>
</tr>
</table><
br />
</body>
</html>
Hope it helps
out
Just because I
dont care,
doesnt mean I
dont
understand. |
| Viewed: 33,226 Times | |  |
retarded |
Subject: "re: Login menu"
Posted: @ 3:43 pm on Jul 01 2007
|
|
|
Member #: 357 Rank: user - (18) Since: 06/26/07 Posts: 22
|
hmm didnt
work.. the new
error i get is
Parse error:
parse error,
unexpected
';' in
/home/gamereli/
public_html/ind
ex.php on line
63
which
coresponds with
this statement
:
echo("Wel
come, would you
like to go to
the member
Area.s";
// Make sure
you include
link to
member
Thanks for
replying
|
Viewed: 33,203 Times | |  |
sm0ke |
Subject: "re: Login menu"
Posted: @ 4:02 pm on Jul 01 2007
|
|
|
 Member #: 168 Rank: user - (83) Since: 06/05/06 Posts: 34 From: Manchester - UK
|
change:
echo("Wel
come, would you
like to go to
the member
Area.s";
to
echo("Wel
come, would you
like to go to
the member
Area.s"
(the smilies in
the code
prevented it
from showing
properly.)
Edited at 04:04:08 pm on 07/01/07
Just because I
dont care,
doesnt mean I
dont
understand. |
| Viewed: 33,200 Times | |  |
sm0ke |
Subject: "re: Login menu"
Posted: @ 4:04 pm on Jul 01 2007
|
|
|
 Member #: 168 Rank: user - (83) Since: 06/05/06 Posts: 34 From: Manchester - UK
|
sorry, smilies
keep messing it
up
complete:
Code:
<?
ob_start();
require_once($_
SERVER['DOCUME
NT_ROOT'].'/d
b_connect.php'
); ?>
<!DOCTYPE
HTML PUBLIC
"-//W3C//
DTD HTML 4.01
Transitional//E
N">
<html>
<head>
<title>Ga
merElites.com&l
t;/title>
<meta
http-equiv=&qu
ot;content-type
"
content="
text/html;
charset=UTF-8&
quot;>
<link
href="sty
le.css"
rel="styl
esheet"
type="tex
t/css">
;
<style
type="tex
t/css">
;
<!--
#apDiv1 {
position:absolu
te;
left:305px;
top:29px;
width:33px;
height:36px;
z-index:1;
}
#apDiv2 {
position:absolu
te;
left:267px;
top:41px;
width:33px;
height:9px;
z-index:1;
}
.style4
{font-size:
16px;
font-weight:
bold; color:
#E52F00;}
-->
</style><
br />
</head>
<body>
<table
cellpadding=&q
uot;0"
cellspacing=&q
uot;0"
border="0
"
align="le
ft">
<tr>
<td
valign="t
op"
width="76
6"
height="8
10"
class="co
ntent">
;
<table
cellpadding=&q
uot;0"
cellspacing=&q
uot;0"
border="0
">
<tr>
<td
valign="t
op"
width="76
6"
height="1
07">
<table
cellpadding=&q
uot;0"
cellspacing=&q
uot;0"
border="0
">
<tr>
<td
valign="t
op"
width="26
2"
height="1
07">&l
t;img
src="imag
es/logo.gif&qu
ot;
alt="&qu
ot;
border="0
"><
/td>
<td
valign="t
op"
width="50
4"
height="1
07">&l
t;div
style="ma
rgin:6 0 0 1px
"><
img
src="imag
es/w1.gif"
;
style="ma
rgin-left:13px;
margin-bottom:5
px "
alt="&qu
ot;
border="0
"><
br><a
href="#&
quot;><im
g
src="imag
es/k1.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k2.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k3.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k4.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k5.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k6.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k7.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k8.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k9.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k10.gif&quo
t;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k11.gif&quo
t;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/k12.gif&quo
t;
alt="&qu
ot;
border="0
"><
/a><br>
;<a
href="ind
ex.html"&
gt;<img
src="imag
es/m1-1.gif&qu
ot;
alt="&qu
ot;
border="0
"><
/a><a
href="ind
ex-1.html"
;><img
src="imag
es/m2.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/m3.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/m4.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/m5.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/m6.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/m7.gif"
;
alt="&qu
ot;
border="0
"><
/a><a
href="#&
quot;><im
g
src="imag
es/m8.gif"
;
alt="&qu
ot;
border="0
"><
/a></div&
gt;</td><
br />
</tr>
</table>
</td>
</tr>
<tr>
<td
valign="t
op"
width="76
6"
height="6
33">
<table
cellpadding=&q
uot;0"
cellspacing=&q
uot;0"
border="0
">
<tr>
<td
valign="t
op"
width="26
2"
height="6
83">
<table
height="6
89"
border="0
"
cellpadding=&q
uot;0"
cellspacing=&q
uot;0">
;
<tr>
<td
valign="t
op"
width="26
2"
height="2
1"
style="ba
ckground-image:
url(images/1_bg
1.gif)
"><
div
style="ma
rgin:7 0 0 11px
"><
img
src="imag
es/1_w1.gif&qu
ot;
alt="&qu
ot;
border="0
"><
/div></td
>
</tr>
<tr>
<td
width="26
2"
height="3
3"
valign="t
op"
bordercolor=&q
uot;#EFEBEF&qu
ot;
bgcolor="
#595959"&
gt;
<?
//Check if
logged in
if($_SESSION['
logged_in'] ==
1) {
echo("Wel
come, would you
like to go to
the member
Area.s");
// Make sure
you include
link to member
area.
} else {
//html here
?>
<form
name="log
in"
method="p
ost"
action="&
lt;?php echo
$_SERVER['PHP_
SELF']?>&q
uot;>
<table
align="le
ft">
<tr>
<td
align="ce
nter">
Username:<in
put
type="tex
t"
id="usern
ame"
name="use
rname">
;</td><
;/tr>
<tr>
<td
align="ce
nter">
Password:<in
put
type="pas
sword"
id="passw
ord"
name="pas
sword">
;</td><
;/tr>
<tr>
<td
align="ce
nter">
<input
type="sub
mit"
value="Su
bmit"
name="sub
mit"
id="submi
t"><
;/td></tr
>
<tr>
<td>Remem
ber? <input
type="che
ckbox"
name="sta
y_in[]"
checked="
yes">&
lt;/td></
tr>
</table><
br />
</form>
<?
}
?>
</td>
</tr>
<tr>
<td
height="1
2"
valign="t
op"
bordercolor=&q
uot;#EFEBEF&qu
ot;
bgcolor="
#595959"&
gt;<p>&am
p;nbsp;</p&g
t;
<p>&n
bsp;</p><
br />
<p>&n
bsp;</p>&
lt;/td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="2
1"
style="ba
ckground-image:
url(images/1_bg
1.gif)
"><
div
style="ma
rgin:7 0 0 11px
"><
img
src="imag
es/1_w4.gif&qu
ot;
alt="&qu
ot;
border="0
"><
/div></td
>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="1
34"
bgcolor="
#2B2B2B"&
gt;
<table
cellpadding=&q
uot;0"
cellspacing=&q
uot;0"
border="0
">
<tr>
<td
valign="t
op"
width="14
0"
height="1
34">
<div
style="ma
rgin:17 0 0
11px
"><
ul>
<li><a
href="#&
quot;>Action
</a></
li>
<li><a
href="#&
quot;>1st-Pe
rson
Shooters</a&
gt;</li><
br />
<li><a
href="#&
quot;>Advent
ure</a>&l
t;/li>
<li><a
href="#&
quot;>Mass
Multiplayer<
/a></li&g
t;
<li><a
href="#&
quot;>Role-P
laying</a>
;</li>
<li><a
href="#&
quot;>Real-T
ime
Strategy</a&
gt;</li><
br />
</ul><
/div>
</td>
<td
valign="t
op"
width="12
2"
height="1
34">&l
t;div
style="ma
rgin:17 0 0 0px
"><
ul>
<li><a
href="#&
quot;>Racing
</a></
li>
<li><a
href="#&
quot;>Role-P
laying</a>
;</li>
<li><a
href="#&
quot;>Tycoon
</a></
li>
<li><a
href="#&
quot;>For
Kids</a>&
lt;/li>
<li><a
href="#&
quot;>Top
Rated
Games</a>
</li>
<li><a
href="#&
quot;>Most
Popular</a&g
t;</li>
</ul><
/div></td
>
</tr>
</table>
</td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="2
1"
style="ba
ckground-image:
url(images/1_bg
1.gif)
"><
div
style="ma
rgin:6 0 0 11px
"><
img
src="imag
es/1_w5.gif&qu
ot;
alt="&qu
ot;
border="0
"><
img
src="imag
es/1_w6.gif&qu
ot;
alt="&qu
ot;
border="0
"
style="ma
rgin-left:52px
"><
/div></td
>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="8
3"
bgcolor="
#2B2B2B"
class="bl
ock1">
<div
style="ma
rgin:8 10 0
14px
"><
img
src="imag
es/1_p1.jpg&qu
ot;
align="le
ft"
style="ma
rgin-right:13px
;"
alt="&qu
ot;
border="0
"><
br
style="li
ne-height:5px
">
<a
href="#&
quot;>World
in
Conflict</a&
gt;<br>
<br
style="li
ne-height:5px
">
</div><
;/td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="1
"><
/td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="8
4"
bgcolor="
#2B2B2B"
class="bl
ock1">
<div
style="ma
rgin:8 10 0
14px
"><
img
src="imag
es/1_p2.jpg&qu
ot;
align="le
ft"
style="ma
rgin-right:13px
;"
alt="&qu
ot;
border="0
"><
br
style="li
ne-height:5px
">
<a
href="#&
quot;>Wolfpa
ck
Studios</a&g
t;<br>
<br
style="li
ne-height:5px
">
</div><
;/td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="1
"><
/td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="8
5"
bgcolor="
#2B2B2B"
class="bl
ock1">
<div
style="ma
rgin:8 10 0
14px
"><
img
src="imag
es/1_p3.jpg&qu
ot;
align="le
ft"
style="ma
rgin-right:13px
;"
alt="&qu
ot;
border="0
"><
br
style="li
ne-height:5px
">
<a
href="#&
quot;>Crysis
</a><b
r>
<br
style="li
ne-height:5px
">
</div><
;/td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="1
"><
/td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="2
8"
bgcolor="
#2B2B2B"
class="bl
ock2">
<div
style="ma
rgin:8 0 0 14px
"><
a
href="#&
quot;>read
more
news</a>&
lt;/div><
/td>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="2
1"
style="ba
ckground-image:
url(images/1_bg
4.gif)
"><
div
style="ma
rgin:7 0 0 11px
"><
img
src="imag
es/1_w7.gif&qu
ot;
alt="&qu
ot;
border="0
"><
/div></td
>
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="7
0"
bgcolor="
#4A4A4A"&
gt;<form
action="
"
style="ma
rgin:0;
padding:0
"><
div
style="ma
rgin:16 0 0
10px
"><
/div>
</form>
<div
style="ma
rgin:5 0 0 14px
"><
a
href="#&
quot;><im
g
src="imag
es/1_w8.gif&qu
ot;
alt="&qu
ot;
border="0
"><
/a></div&
gt;</td><
br />
</tr>
<tr>
<td
valign="t
op"
width="26
2"
height="2
"><
/td>
</tr>
</table>
</td>
<td
valign="t
op"
width="1
"
height="6
83">&l
t;/td>
<td
valign="t
op"
width="50
3"
height="6
83">
<table
height="7
51"
border="0
"
cellpadding=&q
uot;0"
cellspacing=&q
uot;0">
;
<tr>
<td
valign="t
op"
width="50
3"
height="1
"><
/td>
</tr>
<tr>
<td
valign="t
op"
width="50
3"
height="5
2">
<table
cellpadding=&q
uot;0"
cellspacing=&q
uot;0"
border="0
">
<tr>
<td
valign="t
op"
width="19
5"
height="5
2"
bgcolor="
#414141"&
gt; &l
t;/td>
<td
valign="t
op"
width="1
"
height="5
2"><
;/td>
<td
valign="t
op"
width="30
7"
height="5
2"
bgcolor="
#474747"&
gt; &l
t;/td>
</tr>
</table>
</td>
</tr>
<tr>
<td
valign="t
op"
width="50
3"
height="2
2"
style="ba
ckground-image:
url(images/1_bg
1.gif)
"><
div
style="ma
rgin:7 0 0 11px
"><
img
src="imag
es/1_w10.gif&q
uot;
alt="&qu
ot;
border="0
"><
/div></td
>
</tr>
<tr>
<td
valign="t
op"
width="50
3"
height="1
69">&l
t;img
src="imag
es/1_p4.jpg&qu
ot;
alt="&qu
ot;
border="0
"><
/td>
</tr>
<tr>
<td
valign="t
op"
width="50
3"
height="1
9"
style="ba
ckground-image:
url(images/1_bg
2.gif)
"><
div
style="ma
rgin:5 0 0 13px
"><
img
src="imag
es/1_w11.gif&q
uot;
alt="&qu
ot;
border="0
"><
/div></td
>
</tr>
<tr>
<td
valign="t
op"
width="50
3"
height="1
55">
<table
cellpadding=&q
uot;0"
cellspacing=&q
uot;0"
border="0
">
<tr>
<td
valign="t
op"
width="16
6"
height="1
55"
bgcolor="
#131313"
class="bl
ock2">
<img
src="imag
es/1_p5.jpg&qu
ot;
alt="&qu
ot;
border="0
"><
div
style="ma
rgin:12 0 0
12px
"><
a
href="#&
quot;>Tomb
Raider:
Legend</a>
;<br>
<br
style="li
ne-height:5px
">
</div><
;/td>
<td
valign="t
op"
width="1
"
height="1
55">&l
t;/td>
<td
valign="t
op"
width="16
8"
height="1
55"
bgcolor="
#131313"
class="bl
ock2">
<img
src="imag
es/1_p6.jpg&qu
ot;
alt="&qu
ot;
border="0
"><
div
style="ma
rgin:12 0 0
12px
"><
a
href="#&
quot;>The
Elder Scrolls
IV:
Oblivion</a&
gt;<br>
<br
style="li
ne-height:5px
">
</div><
;/td>
<td
valign="t
op"
width="1
"
height="1
55">&l
t;/td>
<td
valign="t
op"
width="16
7"
height="1
55"
bgcolor="
#131313"
class="bl
ock2">
<img
src="imag
es/1_p7.jpg&qu
ot;
alt="&qu
ot;
border="0
"><
div
style="ma
rgin:12 0 0
12px
"><
a
href="#&
quot;>Rise
Of
Legends</a&g
t;<br>
<br
style="li
ne-height:5px
">
</div><
;/td>
</tr>
</table>
</td>
</tr>
<tr>
<td
valign="t
op"
width="50
3"
height="2
1"
style="ba
ckground-image:
url(images/1_bg
3.gif) "
class="bl
ock1">
<div
style="ma
rgin:3 0 0 11px
"><
img
src="imag
es/1_w12.gif&q
uot;
style="ma
rgin-right:280p
x;
vertical-align:
middle"
alt="&qu
ot;
border="0
"><
a
href="#&
quot;>read
more
stories</a&g
t;</div>&
lt;/td>
</tr>
<tr>
<td
width="50
3"
height="9
5"
valign="t
op"
bgcolor="
#1E1E1E"
class="bl
ock">&
lt;div
align="ce
nter">
<div
class="st
yle4"
style="ma
rgin:12 0 0
12px
">News
</div>
</div>
<p>Friday
, June 29, 2007
(08:09:34)</
p>
<p>The
website is
going great,
thanks to the
help of
AllSyntax.com
The best help
you can get as
far as PHP and
Mysql coding
goes. Great
Guys!!</p>
;</td>
</tr>
<tr>
<td
valign="t
op"
width="50
3"
height="1
91"
class="bl
ock"
bgcolor="
#1E1E1E"&
gt; &l
t;/td>
</tr>
<tr>
<td
valign="t
op"
width="50
3"
height="2
1"><
;/td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td
valign="t
op"
width="76
6"
height="3
6"><
;div
style="ma
rgin:21 0 0
17px
">
<div
align="ce
nter">
<br
style="li
ne-height:9px
">
</div>
</div><
;/td>
</tr>
<tr>
<td
valign="t
op"
height="7
0"><
;div
align="ce
nter">
<p>Copyri
ght©
2007,
GamersElite
</p>
</div><
;/td>
</tr>
</table><
br />
</td>
</tr>
</table><
br />
</body>
</html>
Just because I
dont care,
doesnt mean I
dont
understand. |
| Viewed: 33,194 Times | |  |
bs0d |
Subject: "re: Login menu"
Posted: @ 4:46 pm on Jul 01 2007
|
|
|
 Member #: 1 Rank: Admin. - (1,510) Since: 02/06/05 Posts: 604 From: USA
|
Yes, click the
disable smilies
option at the
bottom of the
reply box and
this should
prevent smilies
in code.
Looks like you
figured it out
though!
|
Viewed: 33,190 Times | |  |
sm0ke |
Subject: "re: Login menu"
Posted: @ 5:01 pm on Jul 01 2007
|
|
|
 Member #: 168 Rank: user - (83) Since: 06/05/06 Posts: 34 From: Manchester - UK
|
heh, yeah. I
was reading it
as though it
was to enable
smilies for
some strange
reason.
Not to worry
tho.
Just because I
dont care,
doesnt mean I
dont
understand. |
| Viewed: 33,186 Times | |  |
retarded |
Subject: "re: Login menu"
Posted: @ 9:04 pm on Jul 01 2007
|
|
|
Member #: 357 Rank: user - (18) Since: 06/26/07 Posts: 22
|
doesnt work
Right.. if i
type in wrong
username and
pass it just
redirects to
index.php
and if i type
in correct it
does the
same...
lol i kind of
need the
website up
fast..
just asking cuz
im curious but
how much would
one of you guys
charge me to do
the
following..: i
would provide
all the
graphics
ofcourse..
But for my
Index page i
want the
following..
When someone
comes to my
website, if
they are not
logged in, it
says welcome
Guest, you can
login below or
register a free
account, once
they log in i
want it to
redirect to the
index page, but
then i want it
to display like
this
Welcome
"username
"
last login:
posts:
points:
Profile |
Invite |
Contact Admin |
and i want all
those
functional..
lol
and i need a
functional
search bar that
can be used to
search for
games. or
users.
I Would love to
do this site my
self.. but i
think it will
take me months.
lol
how much do u
guys think that
would run me..
i already have
a lot of
scripts done.
|
Viewed: 33,175 Times | |  |
BoricuaLayz |
Subject: "re: Login menu"
Posted: @ 11:36 pm on Jul 01 2007
|
|
|
Member #: 356 Rank: user - (30) Since: 06/25/07 Posts: 44 From: Florida
|
yea i get that
same problem if
the user signs
in correctly it
doesnt put that
information in
the session
and when i
include
session_start()
;
anyone can get
into the member
area just be
clicking submit
|
Viewed: 33,164 Times | |  |
sm0ke |
Subject: "re: Login menu"
Posted: @ 12:34 am on Jul 02 2007
|
|
|
 Member #: 168 Rank: user - (83) Since: 06/05/06 Posts: 34 From: Manchester - UK
|
Are you
including any
info for the
session? I can
see the
db_connect.php
(dont know
whats in there)
but your
telling the
form to process
itself on the
same page and
not including
any queries,
functions etc
to log the user
in and not
starting a
session
anywhere.
I've not
actually read
the members
system tutorial
but am sure you
will find the
information in
there to
accomplish what
you want.
As for costs
involved - you
would need to
be more
specific IE:
what happens in
the members
area, what
special
priveleges and
functions do
they have, do
you want
usergroups and
userlevels? the
list of
questions goes
on and on.
Plus asking
people to work
with a bunch of
scripts from
different
places and make
them work, is
not as easy as
you might
think, probably
8 out of 10 of
the scripts
will have
different ways
of connecting
to and querying
the database,
storing script
essential
variables etc
which to trawl
through and
make nice clean
code, would
cost a lot -
just for the
ballache of
having to do
it.
Guestimate
would be
Just because I
dont care,
doesnt mean I
dont
understand. |
| Viewed: 33,155 Times | |  |
BoricuaLayz |
Subject: "re: Login menu"
Posted: @ 12:53 am on Jul 02 2007
|
|
|
Member #: 356 Rank: user - (30) Since: 06/25/07 Posts: 44 From: Florida
|
My script looks
like this
Code:
<?
require_once($_
SERVER['DOCUME
NT_ROOT'].'/d
b_connect.php'
);
//IF SUBMIT
BUTTON
PRESSED
if(isset($_POST
['submit']))
{
if(!$_POST['us
ername'])
header("L
ocation:
http://www.bori
cualayz.com/pag
e11.php")
;
if(!$_POST['pa
ssword'])
header("L
ocation:
http://www.bori
cualayz.com/pag
e11.php")
;
//set cookie
if checked
if(!empty($_POS
T['stay_in'])
) {
$joined
=''.$_POST['
username'].'[
]'.md5($_POST[
'password']).
'';
setcookie(&quo
t;login_cookie
",
$joined,
time()+3600,
"/secure/
",
"boricual
ayz.com"
);
} //end
if
//verify
user...
$get_user =
mysql_query(&q
uot;SELECT *
FROM `members`
WHERE username
=
'".$_POS
T['username']
."' AND
user_password =
'".md5($
_POST['passwor
d'])."'
");
$q =
mysql_fetch_obj
ect($get_user);
if(!$q)
header("L
ocation:
http://www.bori
cualayz.com/pag
e11.php")
;
//set session
variables
$_SESSION['log
ged_in'] =
1;
$_SESSION['use
rname'] =
$_POST['userna
me'];
$_SESSION['pas
sword'] =
$_POST['passwo
rd'];
session_write_c
lose();
header("L
ocation:
http://www.bori
cualayz.com/Mem
ber
Area/index.php
");
}
if($_SESSION['
logged_in'] ==
1) {
echo
("<htm
l><a
href='http://w
ww.boricualayz.
com/Member
Area/index.php
'>Back to
Member Area
»<
/a></html
>");
}
if($_SESSION['
logged_in'] ==
0) {
echo
("<for
m
name='login'
method='post'
action=".
$_SERVER['PHP_
SELF']."
>
<table>
<tr>
<td>Usern
ame:<center&
gt;<input
type='text'
id='username'
name='username
'></td&g
t;</center&g
t;
</tr>
<tr>
<td>Passw
ord:<center&
gt;<input
type='password
'
id='password'
name='password
'></td&g
t;</center&g
t;
</tr>
<tr>
<td><c
enter><in
put
type='submit'
value='Submit
'
name='submit'
id='submit'&g
t;</td>&l
t;/center>
</tr>
<tr>
<td>Remem
ber? <input
type='checkbox
'
name='stay_in[
]'
checked='yes'
></td>
</tr>
</table><
br />
</form>
<p></p
>
<p></p
>
<a
href='page7.ph
p'>Sign
Up</a>&q
uot;
);
}
?>
The problem is
when the user
logs in
correctly it
still redirects
them to
page11.php so
am guessing
that nothing is
getting sent
into the
session.
this is what is
supposed to be
put in the
session
$_SESSION['log
ged_in'] =
1;
$_SESSION['use
rname'] =
$_POST['userna
me'];
$_SESSION['pas
sword'] =
$_POST['passwo
rd'];
am i supposed
to include
session_start()
; on the page
becasue if i do
then anyone can
log in just be
pressing submit
|
Viewed: 33,147 Times | |  |
bs0d |
Subject: "re: Login menu"
Posted: @ 12:34 am on Jul 02 2007
|
|
|
 Member #: 1 Rank: Admin. - (1,510) Since: 02/06/05 Posts: 604 From: USA
|
In regards to
the banner, all
I have is the
image you see
at the tops of
the pages.
It's almost
the size you
want, you can
use it?
Smoke is right
about last
login's. Just
setup a column
in the members
table for
last_login and
store time();
in it when they
login.
BoricuaLayz,
start a new
thread and
provide you're
code. We want
to try to not
get multiple
topics started
under one
topic. It makes
it confusing as
to who's
resonse is to
who's.
Finally,
retarded.
Make sure the
default for
$_SESSION['log
ged_in'] is
set to zero
(0). Also,
review your
structure.
Follow the
Complete
Members System
in its most
basic terms.
Use the die
function to
kill the script
if it doesn't
meet the
conditions you
set for it.
Your code looks
mostly like
HTML, I think I
saw one
condition. To
better help
others
understand your
script just put
a comment that
contains a
brief note of
what should be
there.
|
Viewed: 33,145 Times | |  |
BoricuaLayz |
Subject: "re: Login menu"
Posted: @ 2:21 am on Jul 02 2007
|
|
|
Member #: 356 Rank: user - (30) Since: 06/25/07 Posts: 44 From: Florida
|
|
Viewed: 33,142 Times | |  |
retarded |
Subject: "re: Login menu"
Posted: @ 4:45 am on Jul 02 2007
|
|
|
Member #: 357 Rank: user - (18) Since: 06/26/07 Posts: 22
|
i cant use it
as a TOp
banner.. i need
it in this
shape
===========
"
"
"
"
"
"
"
"
"
"
===========
i want to put
it on the right
side of my
website.. i
want it to be
visible.. like
on my index
page
|
Viewed: 33,118 Times | |  |
retarded |
Subject: "OK lol"
Posted: @ 9:01 pm on Jul 02 2007
|
|
|
Member #: 357 Rank: user - (18) Since: 06/26/07 Posts: 22
|
OK im looking
at this wrong..
maybe i should
just intergrate
my Existing
login script
into my Index
page..
im not sure how
to go about
that..
and how to
control the
position of it
|
Viewed: 33,098 Times | |  |
BoricuaLayz |
Subject: "re: Login menu"
Posted: @ 12:50 am on Jul 03 2007
|
|
|
Member #: 356 Rank: user - (30) Since: 06/25/07 Posts: 44 From: Florida
|
here this is
the code i use
and mine works
great
all you have to
do is replace
the links with
your own
links
i maked them
LINK and the
name of the
page you have
to link it
to
Code:
<?
require_once($_
SERVER['DOCUME
NT_ROOT'].'/d
b_connect.php'
);
//IF SUBMIT
BUTTON
PRESSED
if(isset($_POST
['submit']))
{
if(!$_POST['us
ername'])
header("L
ocation: LINK
log in
page");
if(!$_POST['pa
ssword'])
header("L
ocation: LINK
log in
page");
//set cookie
if checked
if(!empty($_POS
T['stay_in'])
) {
$joined
=''.$_POST['
username'].'[
]'.md5($_POST[
'password']).
'';
setcookie(&quo
t;login_cookie
",
$joined,
time()+3600,
"/secure/
",
"boricual
ayz.com"
);
} //end
if
//verify
user...
$get_user =
mysql_query(&q
uot;SELECT *
FROM `members`
WHERE username
=
'".$_POS
T['username']
."' AND
user_password =
'".md5($
_POST['passwor
d'])."'
");
$q =
mysql_fetch_obj
ect($get_user);
if(!$q)
header("L
ocation: LINK
log in
page");
//set session
variables
$_SESSION['log
ged_in'] =
1;
$_SESSION['use
rname'] =
$_POST['userna
me'];
$_SESSION['pas
sword'] =
$_POST['passwo
rd'];
session_write_c
lose();
header("L
ocation: LINK
Member
Page");
}
if($_SESSION['
logged_in'] ==
1) {
echo
("<htm
l><a
href='LINK
Members
page'>Back
to Member Area
»<
/a></html
>");
} else {
?>
<form
name='login'
method='post'
action="L
ogin
page">
<table>
<tr>
<td>Usern
ame:<center&
gt;<input
type='text'
id='username'
name='username
'></td&g
t;</center&g
t;
</tr>
<tr>
<td>Passw
ord:<center&
gt;<input
type='password
'
id='password'
name='password
'></td&g
t;</center&g
t;
</tr>
<tr>
<td><c
enter><in
put
type='submit'
value='Submit
'
name='submit'
id='submit'&g
t;</td>&l
t;/center>
</tr>
<tr>
<td>Remem
ber? <input
type='checkbox
'
name='stay_in[
]'
checked='yes'
></td>
</tr>
</table><
br />
</form>
<p></p
>
<p></p
>
<a
href='LINK
Registration
page'>Sign
Up</a>
<?
}
?>
|
Viewed: 33,092 Times | |  |
Viewing Page: 1 of 1 |