Topic: trying to integrate my gallery with punbb?
where is a good start for looking at integrating my gallery?
here is the login.php from the gallery.
<?php
require_once '../library/config.php';
require_once '../library/functions.php';
$errMsg = '';
if (isset($_POST['txtUserid'])) {
// Check the user login. For now we only check it
// against a hardcoded value
if ($_POST['txtUserid'] == 'admin' && $_POST['txtUserpw'] == 'jetfire') {
$_SESSION['isLogin'] = true;
header('Location: index.php?page=list-album');
exit;
} else {
$errMsg = "Wrong Id/Password";
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p> </p>
<?php
if ($errMsg != '') {
echo '<p align="center"><font color="#990000">' . $errMsg . '</font></p>';
}
?>
<form action="" method="post" name="frmCampaign" id="frmCampaign">
<table align="center" width="500" border="0" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td width="200" bgcolor="#336699"><font color="#FFFFFF"><strong>User Id</strong></font></td>
<td bgcolor="#FFFFFF"><input name="txtUserid" type="text" id="txtUserid" value="username"></td>
</tr>
<tr>
<td width="200" bgcolor="#336699"><font color="#FFFFFF"><strong>Password</strong></font></td>
<td bgcolor="#FFFFFF"><input name="txtUserpw" type="password" id="txtUserpw" value="password"></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#FFFFFF"> <input type="submit" name="Submit" value="Submit">
</td>
</tr>
</table>
</form>
</body>
</html>
My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!
Don't be stupid and help ! We are the stupid one's !!!