call the file that way
edit-cash game.php? Name = ring game
I get an error always the same
Error: Ring Game not found
here is my code for the edition
Code: Select all
<?php
include "API.php";
if (isset($_REQUEST["Name"]))
{
$NewName = $_REQUEST["NewName"];
$Game = $_REQUEST["Game"];
$PW = $_REQUEST["PW"];
$Private = $_REQUEST["Private"];
$ObserverChat = $_REQUEST["ObserverChat"];
$Seats = $_REQUEST["Seats"];
$BuyInMin = $_REQUEST["BuyInMin"];
$BuyInMax = $_REQUEST["BuyInMax"];
$BuyInDef = $_REQUEST["BuyInDef"];
$Rake = $_REQUEST["Rake"];
$RakeEvery = $_REQUEST["RakeEvery"];
$RakeMax = $_REQUEST["RakeMax"];
$TurnClock = $_REQUEST["TurnClock"];
$TimeBank = $_REQUEST["TimeBank"];
$SmallBlind = $_REQUEST["SmallBlind"];
$BigBlind = $_REQUEST["BigBlind"];
$Description = $_REQUEST["Description"];
$Auto = $_REQUEST["Auto"];
$Name = $_GET["Name"];
$params = "Password=$pw&Command=RingGamesEdit" .
"&NewName=" . urlencode($NewName) .
"&Game=" . urlencode(stripslashes($Game)) .
"&PW=" . urlencode($PW) .
"&Private=" . urlencode($Private) .
"&ObserverChat=" . urlencode($ObserverChat) .
"&Seats=" . urlencode(stripslashes($Seats)) .
"&BuyInMin=" . urlencode($BuyInMin) .
"&BuyInMax=" . urlencode($BuyInMax) .
"&BuyInDef=" . urlencode($BuyInDef) .
"&Rake=" . urlencode($Rake) .
"&RakeEvery=" . urlencode($RakeEvery) .
"&RakeMax=" . urlencode($RakeMax) .
"&TurnClock=" . urlencode($TurnClock) .
"&TimeBank=" . urlencode($TimeBank) .
"&SmallBlind=" . urlencode($SmallBlind) .
"&BigBlind=" . urlencode($BigBlind) .
"&Description=" . urlencode($Description) .
"&Auto=" . urlencode($Auto) .
"&Name=" . urlencode($Name) .
$api = Poker_API($url,$params,true);
if ($api["Result"] == "Ok") echo "ok";
else echo "Erreur: " . $api["Error"] . "<br>erreure <a href=\"cash-game.php\">RETOUR</a>.";
exit;
}
?>
Thank you in advance for any help