- Joined
- Jan 25, 2012
- Messages
- 114
- Reaction score
- 4
Hello Ragezone
I`m working to a new script but i have a issues
Let me tell about it.
What is the my issues.
the name of script is like gameimport.php
when I imput
gameimport?licensekey=KEY
It`s imput both xml/invalidkey.xml' xml/gamelist.xml' together in 1 request like open 2 file in same time but in 1 file.
Where i mistake.
What i want do to?
When i request gameimport.php just echo xml/invalidkey.xml'
When i request gameimport.php?licensekey=NotVALID echo xml/invalidkey.xml'
Whe i request gameimport.php?licensekey=developer is valid key echo xml/gamelist.xml'
If i request the last request gameimport.php?licensekey=developer&templateid=ID echo xml/templateid/counterstrike.xml
Thank you and i hope you understand my bad lang.
Kind Regards,
Cristian
I`m working to a new script but i have a issues
Let me tell about it.
PHP:
<?php
header('Content-type: text/xml');
$key = isset($_GET['licensekey']) ? $_GET['licensekey'] : null;
$templateid = isset($_GET['templateid']) ? $_GET['templateid'] : null;
if (!($key && $template)) {
echo file_get_contents('xml/invalidkey.xml');
}
if ($key === 'developer') {
echo file_get_contents('xml/gamelist.xml');
return;
}
if (3 === (int) $templateid) {
echo file_get_contents('xml/templateid/counterstrike.xml');
return;
}
?>
What is the my issues.
the name of script is like gameimport.php
when I imput
gameimport?licensekey=KEY
It`s imput both xml/invalidkey.xml' xml/gamelist.xml' together in 1 request like open 2 file in same time but in 1 file.
Where i mistake.
What i want do to?
When i request gameimport.php just echo xml/invalidkey.xml'
When i request gameimport.php?licensekey=NotVALID echo xml/invalidkey.xml'
Whe i request gameimport.php?licensekey=developer is valid key echo xml/gamelist.xml'
If i request the last request gameimport.php?licensekey=developer&templateid=ID echo xml/templateid/counterstrike.xml
Thank you and i hope you understand my bad lang.
Kind Regards,
Cristian

