Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define("KEY","8f2[...]47d");
- define("NAME","foire-aux-questions");
- if(!empty($_GET['uid']) AND !empty($_GET['name']) AND !empty($_GET['pubkey']))
- {
- $uid=intval($_GET['uid']);
- $name=$_GET['name'];
- $pubkey=$_GET['pubkey'];
- $xmluser = simplexml_load_file('http://muxxu.com/app/xml?app='.NAME.'&xml=user&id='.$uid.'&key='.md5(KEY.$pubkey)); // on ouvre le xml
- if(!$xmluser->xpath("/error")) // Pas d'erreur
- {
- echo "Votre pseudo est : ".$xmluser['name'];
- }
- else // Erreur (pubkey ne correspondant pas à l'uid)
- {
- echo 'Merci de passer par <a href="http://muxxu.com/a/'.NAME.'" target="_parent">là</a> pour accéder à l\'application.';
- }
- }
- else
- {
- echo 'Merci de passer par <a href="http://muxxu.com/a/'.NAME.'" target="_parent">là</a> pour accéder à l\'application.';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment