Cytat
Parse error: parse error in c:\usr\krasnal\www\kcms\login.php on line 44
taki blad wywala w tym pliku:
$_SESSION['logged'] = 0;
if (isset($_POST['submit'])) {
if ($_POST['username'] == "a" &&
$_POST['password'] == "a")
{
$_SESSION['logged'] = 1;
header ("Refresh: 2; URL=\"test.php\""); }
else
{
include('config.php');
//include('module/news.inc.php');
#=====================================================#
function site_main() {
main_title_open();
echo 'Panel Administratora'; main_title_close();
main_text_open();
echo '<form action="login.php" method="post">'; echo '<input type="hidden" name="redirect" value="' . $_POST[ 'redirect' ] . '">'; echo 'nick:<input type="text" name="username"><br>'; echo 'haslo <input type="password" name="password"><br><br>'; echo '<input type="submit" name="submit" value="Zaloguj" >';
}
} else {
if (isset($_GET['redirect'])) {
$redirect = $_GET['redirect'];
}
else
{
$redirect = "index.php";
}
echo '<form action="login.php" method="post">'; echo '<input type="hidden" name="redirect" value="' . $_GET['redirect'] . '">'; echo 'nick:<input type="text" name="username"><br>'; echo 'haslo <input type="password" name="password"><br><br>'; echo '<input type="submit" name="submit" value="Zaloguj" >';
}
//include 'login2.php';
main_text_close();
}
#=====================================================#
include("theme/mg/index.php");
?>
dlaczego??
Ten post edytował trucksweb 16.02.2006, 19:54:25