Merhaba ,
Localhostta çalışan admin paneli girişim isim tescilden aldığım hostingte çalışmıyor
Acaba Neden Olabilir Yardım Edebilirmisiniz?
login.php
Localhostta çalışan admin paneli girişim isim tescilden aldığım hostingte çalışmıyor
login.php
PHP:
<?php session_start(); ?>
<?php ob_start(); ?>
<?php include ("db.php") ?>
<?php
if($phpver >= '4.1.0') {
$HTTP_GET_VARS = $_GET;
$HTTP_POST_VARS = $_POST;
$HTTP_SERVER_VARS = $_SERVER;
$HTTP_POST_FILES = $_FILES;
$PHP_SELF = $_SERVER['PHP_SELF'];
if(isset($_SESSION)) {
$HTTP_SESSION_VARS = $_SESSION;
}
if(isset($_COOKIE)) {
$HTTP_COOKIE_VARS= $_COOKIE;
}
}
?>
<?php
$validpwd = True;
if (@$HTTP_POST_VARS["submit"] <> "")
{
// setup variables
$userid = @$HTTP_POST_VARS["userid"];
$passwd = @$HTTP_POST_VARS["passwd"];
if (strtoupper("admin") == strtoupper($userid) && strtoupper("admin") == strtoupper($passwd)) {
$HTTP_SESSION_VARS["xxx_status"] = "login";
// write cookies
if (@$HTTP_POST_VARS["rememberme"] <> "") {
setCookie("xxx_userid", $userid, time()+365*24*60*60); // change cookie expiry time here
}
header("Location: admin.php");
} else {
$validpwd = False;
}
}
?>
<html>
<head>
<title>XxX</title>
<style type="text/css">
<!--
INPUT, TEXTAREA, SELECT {font-size: ;}
.phpmaker {font-size: ;}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254"/>
<link href="admin.css" rel="stylesheet" type="text/css"/>
<meta name="generator" content="PHPMaker v2.0.0.6"/>
</head>
<script language="JavaScript" src="ew.js"></script>
<script language="JavaScript">
<!-- start JavaScript
function EW_checkMyForm(EW_this) {
if (!EW_hasValue(EW_this.userid, "TEXT")) {
if (!EW_onError(EW_this, EW_this.userid, "TEXT", "Kullanıcı adı"))
return false;
}
if (!EW_hasValue(EW_this.passwd, "PASSWORD")) {
if (!EW_onError(EW_this, EW_this.passwd, "PASSWORD", "Şifrenizi Giriniz"))
return false;
}
return true;
}
// end JavaScript -->
</script>
<body background="bg.jpg" leftmargin=0 topmargin=0>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<table border="0" cellspacing="0" cellpadding="0" align="center" style="border:2px solid #cccccc;" bgcolor="#666666" width="300">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%" bgcolor="#cccccc">
<tr>
<td align="center" height="25" valign="middle"><font color="black" size="2" face="verdana,arial"><b>
XxX</b></font></td>
</tr>
</table>
<?php if (!$validpwd) {?>
<p align="center"><font color="#FF0000"><font class="phpmaker">Yanlış Kullanıcı veya şifre</font></font></p>
<?php }?>
<form action="login.php" method="post" onSubmit="return EW_checkMyForm(this);">
<table border="0" cellspacing="0" cellpadding="4" align="center">
<tr>
<td align="left"><font color="white" size="2" face="verdana,arial">Kullanıcı Adı</font></td>
<td><input type="text" name="userid" size="20" value="<?php echo @$HTTP_COOKIE_VARS["egerlidere_userid"]; ?>"></td>
</tr>
<tr>
<td align="left"><font color="white" size="2" face="verdana,arial">Şifre</font></td>
<td><input type="password" name="passwd" size="20"></td>
</tr>
<tr>
<td align="left"><input type="checkbox" name="rememberme" value="true" id="rememberme"><font color="white" size="2" face="verdana,arial"><label for="rememberme">Beni hatırla</label></font></td>
<td align="right"><input type="submit" name="submit" value="Giriş"></td>
</tr>
</table>
</form>
</td></tr></table>
<br>
</body>
</html>