salam dostan man be komaketon etiaj daram man ye login page daram ke makhos ye porgram bazie ke khodesh login kham dade ke codesh ine
<?php
$server = "http://199.91.173.52:8087"; // set your url here
include "API.php"; // $pw and $url set in this file
if (isset($_POST["Login"]))
{
$player = $_POST["Player"];
$password = $_POST["Password"];
$params = "Password=$pw&Command=AccountsPassword" . "&Player=" . urlencode($player) . "&PW=" . urlencode($password);
$api = Poker_API($url,$params,true);
if ($api["Result"] != "Ok") die($api["Error"] . "<br/>" . "Click Back Button to retry.");
if ($api["Verified"] != "Yes") die("Password is incorrect. Click Back Button to retry.");
$params = "Password=$pw&Command=AccountsSessionKey&Playe r=" . urlencode($player);
$api = Poker_API($url,$params,true);
if ($api["Result"] != "Ok") die($api["Error"] . "<br/>" . "Click Back Button to retry.");
$key = $api["SessionKey"];
echo("<html><body><script>");
echo("window.location='$server/?LoginName=$player&SessionKey=$key'");
echo("</script></body></html>");
exit;
}
?>
<html>
<body>
<h3>Poker Login</h3>
<form method="post">
<table>
<tr>
<td>Player Name:</td>
<td><input type="text" name="Player"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="Password"></td>
</tr>
<tr>
<th colspan="2"><input type="submit" name="Login" value="Login"></th>
</tr>
</table>
</form>
</body>
</html>
va ye login css amade graphic pida kardam ke ine
<script src="js/modernizr.custom.63321.js"></script>
<!--[if lte IE 7]><style>.main{display:none;} .support-note .note-ie{display:block;}</style><![endif]-->
<style>
@import url(http://fonts.googleapis.com/css?family=Ubuntu:400,700);
body {
background: #563c55 no-repeat center top;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
background-color: #000000;
background-image: url(images/Proz%20Poker.jpg);
}
.container > header h1,
.container > header h2 {
color: #fff;
text-shadow: 0 1px 1px rgba(0,0,0,0.7);
}
body,td,th {
font-family: Lato, Calibri, Arial, sans-serif;
}
</style>
</head>
<body>
<div class="container">
<section class="main">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<form class="form-3">
<p class="clearfix">
<input type="text" name="login" id="login" placeholder="Username">
</p>
<p class="clearfix">
<input type="password" name="password" id="password" placeholder="Password">
</p>
<p class="clearfix">
<input type="submit" name="submit" value="Sign in">
</p>
</form>
</section>
</div>
</body>
</html>
mishe begid chetori mitonam male cod aval ke login vaghati vared mishi be server bazi fasl mishe ro in cod login amade konam man hata method post dar ghesmat from class from3 zadam ama baz kar nakard
<?php
$server = "http://199.91.173.52:8087"; // set your url here
include "API.php"; // $pw and $url set in this file
if (isset($_POST["Login"]))
{
$player = $_POST["Player"];
$password = $_POST["Password"];
$params = "Password=$pw&Command=AccountsPassword" . "&Player=" . urlencode($player) . "&PW=" . urlencode($password);
$api = Poker_API($url,$params,true);
if ($api["Result"] != "Ok") die($api["Error"] . "<br/>" . "Click Back Button to retry.");
if ($api["Verified"] != "Yes") die("Password is incorrect. Click Back Button to retry.");
$params = "Password=$pw&Command=AccountsSessionKey&Playe r=" . urlencode($player);
$api = Poker_API($url,$params,true);
if ($api["Result"] != "Ok") die($api["Error"] . "<br/>" . "Click Back Button to retry.");
$key = $api["SessionKey"];
echo("<html><body><script>");
echo("window.location='$server/?LoginName=$player&SessionKey=$key'");
echo("</script></body></html>");
exit;
}
?>
<html>
<body>
<h3>Poker Login</h3>
<form method="post">
<table>
<tr>
<td>Player Name:</td>
<td><input type="text" name="Player"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="Password"></td>
</tr>
<tr>
<th colspan="2"><input type="submit" name="Login" value="Login"></th>
</tr>
</table>
</form>
</body>
</html>
va ye login css amade graphic pida kardam ke ine
<script src="js/modernizr.custom.63321.js"></script>
<!--[if lte IE 7]><style>.main{display:none;} .support-note .note-ie{display:block;}</style><![endif]-->
<style>
@import url(http://fonts.googleapis.com/css?family=Ubuntu:400,700);
body {
background: #563c55 no-repeat center top;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
background-color: #000000;
background-image: url(images/Proz%20Poker.jpg);
}
.container > header h1,
.container > header h2 {
color: #fff;
text-shadow: 0 1px 1px rgba(0,0,0,0.7);
}
body,td,th {
font-family: Lato, Calibri, Arial, sans-serif;
}
</style>
</head>
<body>
<div class="container">
<section class="main">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<form class="form-3">
<p class="clearfix">
<input type="text" name="login" id="login" placeholder="Username">
</p>
<p class="clearfix">
<input type="password" name="password" id="password" placeholder="Password">
</p>
<p class="clearfix">
<input type="submit" name="submit" value="Sign in">
</p>
</form>
</section>
</div>
</body>
</html>
mishe begid chetori mitonam male cod aval ke login vaghati vared mishi be server bazi fasl mishe ro in cod login amade konam man hata method post dar ghesmat from class from3 zadam ama baz kar nakard