Skip to content
Newer
Older
100644 470 lines (430 sloc) 18.8 KB
8948a32 @lra Source code import
authored
1 <? echo '<?xml version="1.0" encoding="iso-8859-1"?>'."\n"; ?>
2 <!DOCTYPE html
3 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
7 <head>
8 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" />
9 <title>Xbox Live Gamercard Generator</title>
10 <meta name="Description" content="Generate your Xbox Live Gamercard and display it anywhere" />
11 <meta name="Keywords" content="xbox live 360 gamercard generator gif jpg jpeg png" />
12 <link href="css/1.css" rel="stylesheet" type="text/css" />
13 <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
14 </script>
15 <script type="text/javascript">
16 _uacct = "UA-107561-2";
17 urchinTracker();
18 </script>
19 </head>
20
21 <body>
22 <a name="top" id="top"></a>
23 <center>
24 <div id="menu">
25 <a href="#introduction">Introduction</a>
26 <a href="#generate">Generate your Gamercard</a>
27 <a href="#desktop">Put it on your desktop</a>
28 <a href="#google">Use it on Google</a>
29 <a href="http://www.glop.org/forum/viewforum.php?id=12">Official Forum</a>
30 </div>
31
32 <?
33 /*
34 $nb_generated_cards = -2; // fast method to count out '.' and '..'
35 if ($handle = opendir('cache')) {
36 while (false !== ($file = readdir($handle))) {
37 $nb_generated_cards++;
38 }
39 closedir($handle);
40 }
41 */
42 ?>
43
44 <div id="header">
45 <h1>Xbox Live Gamercard Generator</h1>
46 <h2>Already 100,000+ unique Gamercards generated !</h2>
47 </div>
48
49 <div id="content">
50
51 <img src="images/xbox-controller.png" alt="Logo" class="logo" />
52
53 <p class="introduction">
54 The gamer card is, as the name implies, an at-a-glance look at your player history on and off Xbox Live.
55 In short, it's the public face you show on Xbox Live. Other gamers can see all of this information at the
56 touch of a button, including your gamertag, your gamerscore, your reputation, the Gamer Zone you prefer,
57 and your achievements.
58 </p>
59
60 <div id="sidebar">
61 <h1>Menu</h1>
62 <div class="submenu">
63 <a href="#introduction">Introduction</a>
64 <a href="#generate">Generate your Gamercard</a>
65 <a href="#desktop">Put it on your desktop</a>
66 <a href="#google">Use it on Google</a>
67 <a href="http://www.glop.org/forum/viewforum.php?id=12">Official Forum</a>
68 </div>
69
70 <p>
71 Feel free to use one of those similar tools, but keep in mind that I made mine because they all lacked
72 something in the end (stability, price, choice, finition).
73 </p>
74
75 <h1>Similar tools</h1>
76
77 <div class="submenu">
78 <a href="http://www.3deurope.com/Wiki/default.aspx/ZoneWiki.GamerCards">3DEurope's Gamercards</a>
79 <a href="http://www.liveinsanantonio.net/xbox/">Gamertag Generator</a>
80 <a href="http://www.icp4ever.com/FinalSite/GamerCard/">Icp4ever Gamer Card</a>
81 <a href="http://www.livecard.net/">LiveCard</a>
82 <a href="http://www.mygamercard.net/">MyGamerCard</a>
83 <a href="http://www.consti.de/external/gamercard/">PHP Gamercard Extractor</a>
84 <a href="http://www.x360central.com/?section=gamercard">x360Central Gamercard</a>
85 <a href="http://www.xbox-corner.com/gamercard.php">Xbox Corner</a>
86 </div>
87
88 <p>
89 Choose the one you want, competition is what brings improvments !
90 </p>
91
92 <div class="support">
93 <br />
94 <script type="text/javascript"><!--
95 google_ad_client = "pub-9935615233494380";
96 google_ad_width = 160;
97 google_ad_height = 600;
98 google_ad_format = "160x600_as";
99 google_ad_type = "text_image";
100 google_ad_channel ="";
101 google_color_border = "A8DDA0";
102 google_color_bg = "EBFFED";
103 google_color_link = "0000CC";
104 google_color_url = "008000";
105 google_color_text = "6F6F6F";
106 //--></script>
107 <script type="text/javascript"
108 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
109 </script>
110 <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
111 <input type="hidden" name="cmd" value="_xclick">
112 <input type="hidden" name="business" value="analogue@glop.org">
113 <input type="hidden" name="item_name" value="Gamercard Generator">
114 <input type="hidden" name="no_note" value="1">
115 <input type="hidden" name="currency_code" value="EUR">
116 <input type="hidden" name="tax" value="0">
117 <input type="hidden" name="bn" value="PP-DonationsBF">
118 <input type="image" src="https://www.paypal.com/fr_FR/i/btn/x-click-but04.gif" border="0" name="submit" alt="Effectuez vos paiements via PayPal : une solution rapide, gratuite et sécurisée !">
119 </form>
120 <script type="text/javascript">
121 var flattr_url = 'http://www.glop.org/gamercard/';
122 </script>
123 <script src="http://api.flattr.com/button/load.js" type="text/javascript"></script>
124 </div>
125
126 </div>
127
128 <div id="mainbar">
129 <h1><a name="introduction" id="introduction"></a>Introduction</h1>
130
131 <img src="images/xbox-theme.jpg" alt="Xbox Theme" class="articleimg" />
132
133 <p>
134 By creating the concept of Gamercard, the Xbox Live team has given the gamer the opportunity to materialize its
135 gaming experience. But, as with some features of the Xbox 360 (Very limited file format support, inexistant video
136 support), the concept of Gamercard isn't as polished as we expected. Hence the arrival of some independant projects
137 trying to fill the hole left by Microsoft. But neither of them plainly satisfied me, so I decided to build mine.
138 </p>
139
140 <?
141 // Recup du mode
142 $valid_modes = array(
143 'original',
144 'small',
145 'games',
146 'forum',
147 'forumwide',
148 'forumlarge',
149 'forumgames',
150 'userbar',
151 'userbargreen',
152 'cod2',
153 'doa4',
154 'doacard',
155 'graw',
156 'pgr3',
157 'newo');
158 if(!in_array($_GET['mode'], $valid_modes))
159 {
160 $mode = 'original';
161 }
162 else
163 {
164 $mode = $_GET['mode'];
165 }
166 // Recup du format
167 $valid_formats = array(
168 'gif',
169 'jpg',
170 'png');
171 if(!in_array($_GET['format'], $valid_formats))
172 {
173 $format = 'png';
174 }
175 else
176 {
177 $format = $_GET['format'];
178 }
179 ?>
180
181 <? if($_GET['submit']): ?>
182
183 <h1>Your Gamercard</h1>
184
185 <?
186 // Recup du gamertag
187 $gamertag = $_GET['gamertag'];
188 $gamertag = strtolower(trim($gamertag));
189 $gamertag = preg_replace('/[^a-z0-9 ]/','',$gamertag);
190 $gamertag = urlencode($gamertag);
191 if(strlen($gamertag) == 0)
192 $gamertag = 'analogue';
193 // Recup du clantag
194 $clantag = trim($_GET['clantag']);
195 $clantag = preg_replace('/[^A-Za-z0-9]/','',$clantag);
196 $clantag = urlencode($clantag);
197 if(strlen($clantag) > 4)
198 {
199 $clantag = substr($clantag, 0, 4);
200 }
201
202 // Création URL gamercard
203 $url = 'http://www.glop.org/gamercard/card/'.$gamertag;
204 if($mode != 'original')
205 {
206 $url .= '-'.$mode;
207 }
208 if($clantag)
209 {
210 $url .= '-clantag-'.$clantag;
211 }
212 $url .= '.'.$format;
213
214 ?>
215
216 <p>
217 <img class="gamercard" src="<?=$url?>" alt="<?=urldecode($gamertag)?>'s Gamercard" /><br />
218 <br />
219 Here's your own Gamercard. From now on, it will be dynamically generated and wherever you may put it, it will always
220 display up to date information relative to your account.
221 </p>
222
223 <h2>Raw URL of your new Gamercard</h2>
224
225 <p>
226 <input class="wide" type="text" value="<?=$url?>" />
227 </p>
228
229 <h2>HTML code (for blogs and websites)</h2>
230
231 <p>
232 <textarea class="wide" class="green" wrap="off" rows="2" readonly="readonly" scrollbars="off">
233 <a href="http://live.xbox.com/member/<?=$gamertag?>"><img src="<?=$url?>" alt="<?=urldecode($gamertag)?>'s Gamercard" border="0" /></a>
234 <br />Get your own <a href="http://www.glop.org/gamercard/">Gamercard Sig</a>.
235 </textarea>
236 </p>
237
238 <h2>BB code (for forum signatures)</h2>
239
240 <p>
241 <textarea class="wide" class="green" wrap="off" rows="2" readonly="readonly" scrollbars="off">
242 [url=http://live.xbox.com/member/<?=$gamertag?>][img]<?=$url?>[/img][/url]
243 Get your own [url=http://www.glop.org/gamercard/]Gamercard Sig[/url].
244 </textarea>
245 </p>
246 <? endif; ?>
247
248 <h1><a name="generate" id="generate"></a>Generate your Gamercard</h1>
249
250 <form class="generate" method="get" action="<?=basename($PHP_SELF)?>">
251 <table>
252 <tr>
253 <td class="label" colspan="2"><label for="gamertag">Gamertag:</label></td>
254 </tr>
255 <tr>
256 <td colspan="2"><input type="text" name="gamertag" value="<?=urldecode($gamertag)?>" size="32" /></td>
257 </tr>
258 <tr><td colspan="2"><hr /></td></tr>
259 <tr>
260 <td class="label" colspan="2"><label for="clantag">Clan Tag <i>(optional, 4 chars max, eg. <b>BkF</b>)</i>:</label></td>
261 </tr>
262 <tr>
263 <td colspan="2"><input type="text" name="clantag" value="<?=urldecode($clantag)?>" size="4" maxlength="4" /></td>
264 </tr>
265 <tr><td colspan="2"><hr /></td></tr>
266 <tr>
267 <td class="label" colspan="2"><label for="mode">Gamercard:</label></td>
268 </tr>
269 <tr>
270 <? if($mode == 'original'): ?>
271 <td><input class="radio" type="radio" name="mode" id="mode_original" value="original" checked="checked" /></td>
272 <? else: ?>
273 <td><input class="radio" type="radio" name="mode" id="mode_original" value="original"/></td>
274 <? endif; ?>
275 <td><label for="mode_original"><img class="gamercard" src="http://www.glop.org/gamercard/card/analogue.png" alt="Original Gamercard" /></label></td>
276 </tr>
277 <tr>
278 <? if($mode == 'small'): ?>
279 <td><input class="radio" type="radio" name="mode" id="mode_small" value="small" checked="checked" /></td>
280 <? else: ?>
281 <td><input class="radio" type="radio" name="mode" id="mode_small" value="small" /></td>
282 <? endif; ?>
283 <td><label for="mode_small"><img class="gamercard" src="http://www.glop.org/gamercard/card/analogue-small.png" alt="Small Gamercard" /></label></td>
284 </tr>
285 <tr>
286 <? if($mode == 'games'): ?>
287 <td><input class="radio" type="radio" name="mode" id="mode_games" value="games" checked="checked" /></td>
288 <? else: ?>
289 <td><input class="radio" type="radio" name="mode" id="mode_games" value="games" /></td>
290 <? endif; ?>
291 <td><label for="mode_games"><img class="gamercard" src="http://www.glop.org/gamercard/card/analogue-games.png" alt="Games Gamercard" /></label></td>
292 </tr>
293 <tr>
294 <? if($mode == 'forum'): ?>
295 <td><input class="radio" type="radio" name="mode" id="mode_forum" value="forum" checked="checked" /></td>
296 <? else: ?>
297 <td><input class="radio" type="radio" name="mode" id="mode_forum" value="forum" /></td>
298 <? endif; ?>
299 <td><label for="mode_forum"><img class="gamercard" src="http://www.glop.org/gamercard/card/analogue-forum.png" alt="Forum Gamercard" /></label></td>
300 </tr>
301 <tr>
302 <? if($mode == 'forumwide'): ?>
303 <td><input class="radio" type="radio" name="mode" id="mode_forumwide" value="forumwide" checked="checked" /></td>
304 <? else: ?>
305 <td><input class="radio" type="radio" name="mode" id="mode_forumwide" value="forumwide" /></td>
306 <? endif; ?>
307 <td><label for="mode_forumwide"><img class="gamercard" src="http://www.glop.org/gamercard/card/analogue-forumwide.png" alt="Wide Forum Gamercard" /></label></td>
308 </tr>
309 <tr>
310 <? if($mode == 'forumlarge'): ?>
311 <td><input class="radio" type="radio" name="mode" id="mode_forumlarge" value="forumlarge" checked="checked" /></td>
312 <? else: ?>
313 <td><input class="radio" type="radio" name="mode" id="mode_forumlarge" value="forumlarge" /></td>
314 <? endif; ?>
315 <td><label for="mode_forumlarge"><img class="gamercard" src="http://www.glop.org/gamercard/card/analogue-forumlarge.png>" alt="Large Forum Gamercard" /></label></td>
316 </tr>
317 <tr>
318 <? if($mode == 'forumgames'): ?>
319 <td><input class="radio" type="radio" name="mode" id="mode_forumgames" value="forumgames" checked="checked" /></td>
320 <? else: ?>
321 <td><input class="radio" type="radio" name="mode" id="mode_forumgames" value="forumgames" /></td>
322 <? endif; ?>
323 <td><label for="mode_forumgames"><img class="gamercard" src="http://www.glop.org/gamercard/card/analogue-forumgames.png" alt="Large Forum Gamercard with Games" /></label></td>
324 </tr>
325 <tr>
326 <? if($mode == 'userbar'): ?>
327 <td><input class="radio" type="radio" name="mode" id="mode_userbar" value="userbar" checked="checked" /></td>
328 <? else: ?>
329 <td><input class="radio" type="radio" name="mode" id="mode_userbar" value="userbar" /></td>
330 <? endif; ?>
331 <td><label for="mode_userbar"><img class="gamercard" src="http://www.glop.org/gamercard/card/analogue-userbar.png" alt="Userbar Gamercard" /></label></td>
332 </tr>
333 <tr><td colspan="2"><hr /></td></tr>
334 <tr>
335 <td class="label" colspan="2"><label for="mode">Designs provided by <a href="http://www.shiftgame.com/">Shiftgame</a>:</label></td>
336 </tr>
337 <tr>
338 <? if($mode == 'userbargreen'): ?>
339 <td><input class="radio" type="radio" name="mode" id="mode_userbargreen" value="userbargreen" checked="checked" /></td>
340 <? else: ?>
341 <td><input class="radio" type="radio" name="mode" id="mode_userbargreen" value="userbargreen" /></td>
342 <? endif; ?>
343 <td><label for="mode_userbargreen"><img class="gamercard" src="http://www.glop.org/gamercard/card/analogue-userbargreen.png" alt="Green Userbar Gamercard" /></label></td>
344 </tr>
345 <tr>
346 <? if($mode == 'cod2'): ?>
347 <td><input class="radio" type="radio" name="mode" id="mode_cod2" value="cod2" checked="checked" /></td>
348 <? else: ?>
349 <td><input class="radio" type="radio" name="mode" id="mode_cod2" value="cod2" /></td>
350 <? endif; ?>
351 <td><label for="mode_cod2"><img class="gamercard" src="http://www.glop.org/gamercard/card/analogue-cod2.png" alt="CoD2 Gamercard" /></label></td>
352 </tr>
353 <tr>
354 <? if($mode == 'doa4'): ?>
355 <td><input class="radio" type="radio" name="mode" id="mode_doa4" value="doa4" checked="checked" /></td>
356 <? else: ?>
357 <td><input class="radio" type="radio" name="mode" id="mode_doa4" value="doa4" /></td>
358 <? endif; ?>
359 <td><label for="mode_doa4"><img class="gamercard" src="http://www.glop.org/gamercard/card/analogue-doa4.png" alt="DOA4 Gamercard" /></label></td>
360 </tr>
361 <tr>
362 <? if($mode == 'doacard'): ?>
363 <td><input class="radio" type="radio" name="mode" id="mode_doacard" value="doacard" checked="checked" /></td>
364 <? else: ?>
365 <td><input class="radio" type="radio" name="mode" id="mode_doacard" value="doacard" /></td>
366 <? endif; ?>
367 <td><label for="mode_doacard"><img class="gamercard" src="http://www.glop.org/gamercard/card/analogue-doacard.png" alt="DOA Gamercard" /></label></td>
368 </tr>
369 <tr>
370 <? if($mode == 'graw'): ?>
371 <td><input class="radio" type="radio" name="mode" id="mode_graw" value="graw" checked="checked" /></td>
372 <? else: ?>
373 <td><input class="radio" type="radio" name="mode" id="mode_graw" value="graw" /></td>
374 <? endif; ?>
375 <td><label for="mode_graw"><img class="gamercard" src="http://www.glop.org/gamercard/card/analogue-graw.png" alt="GRAW Gamercard" /></label></td>
376 </tr>
377 <tr>
378 <? if($mode == 'pgr3'): ?>
379 <td><input class="radio" type="radio" name="mode" id="mode_pgr3" value="pgr3" checked="checked" /></td>
380 <? else: ?>
381 <td><input class="radio" type="radio" name="mode" id="mode_pgr3" value="pgr3" /></td>
382 <? endif; ?>
383 <td><label for="mode_pgr3"><img class="gamercard" src="http://www.glop.org/gamercard/card/analogue-pgr3.png" alt="PGR3 Gamercard" /></label></td>
384 </tr>
385 <tr><td colspan="2"><hr /></td></tr>
386 <tr>
387 <td class="label" colspan="2"><label for="mode">Design provided by <a href="http://www.xenon-360.fr/">neWo</a>:</label></td>
388 </tr>
389 <tr>
390 <? if($mode == 'newo'): ?>
391 <td><input class="radio" type="radio" name="mode" id="mode_newo" value="newo" checked="checked" /></td>
392 <? else: ?>
393 <td><input class="radio" type="radio" name="mode" id="mode_newo" value="newo" /></td>
394 <? endif; ?>
395 <td><label for="mode_newo"><img class="gamercard" src="http://www.glop.org/gamercard/card/analogue-newo.png" alt="neWo's Gamercard" /></label></td>
396 </tr>
397 <tr><td colspan="2"><hr /></td></tr>
398 <tr>
399 <td class="label" colspan="2"><label for="mode">Format:</label></td>
400 </tr>
401 <tr>
402 <? if($format == 'gif'): ?>
403 <td><input class="radio" type="radio" name="format" id="format_gif" value="gif" checked="checked" /></td>
404 <? else: ?>
405 <td><input class="radio" type="radio" name="format" id="format_gif" value="gif" /></td>
406 <? endif; ?>
407 <td><label for="format_gif">GIF <i>(256 colors)</i></label></td>
408 </tr>
409 <tr>
410 <? if($format == 'jpg'): ?>
411 <td><input class="radio" type="radio" name="format" id="format_jpg" value="jpg" checked="checked" /></td>
412 <? else: ?>
413 <td><input class="radio" type="radio" name="format" id="format_jpg" value="jpg" /></td>
414 <? endif; ?>
415 <td><label for="format_jpg">Jpeg <i>(Lossy compression)</i></label></td>
416 </tr>
417 <tr>
418 <? if($format == 'png'): ?>
419 <td><input class="radio" type="radio" name="format" id="format_png" value="png" checked="checked" /></td>
420 <? else: ?>
421 <td><input class="radio" type="radio" name="format" id="format_png" value="png" /></td>
422 <? endif; ?>
423 <td><label for="format_png">PNG <i>(Recommended !)</i></label></td>
424 </tr>
425 <tr><td colspan="2"><hr /></td></tr>
426 <tr>
427 <td colspan="2">
428 <input type="submit" name="submit" value="Generate" />
429 </td>
430 </tr>
431 </table>
432 </form>
433
434 <h1><a name="desktop" id="desktop"></a>Put it on your desktop</h1>
435
436 <p>
437 Some people don't like the way Microsoft choose to allow them to put their Gamercard on their desktop, added to the
438 fact that they can't choose anything else than the default Gamercard style. Here's an easy and clean way to do it:
439 </p>
440
441 <ul>
442 <li>Rightclick on your desktop and select <b>Properties</b>.</li>
443 <li>Go to the <b>Desktop</b> tab, then click on <b>Customize Desktop</b>.</li>
444 <li>Go to the <b>Web</b> tab, then click on <b>New...</b> and enter the URL of your the Gamercard picture you generated
445 here when asked for a location. For example: <i>http://www.glop.org/gamercard/card/analogue-small.png</i></li>
446 <li>Done !</li>
447 </ul>
448
449 <h1><a name="google" id="google"></a>Use it on Google</h1>
450
451 <img src="images/google-logo.gif" alt="Google Logo" class="articleimg" />
452
453 <p>
454 Recently, Google has released a customizable homepage to the public. The personalized homepage brings together Google
455 functionality and content from across the web on a single page, and saves you a few clicks in the process. If you are
456 using the <a href="http://www.google.com/ig">Google Personalized Homepage</a>, you can now include a Gamercard on it.
457 To do so, simply add this <a href="google-gamercard.xml">XML File</a> by using the <i>Add Content &gt; Create a Section</i>
458 menu, and in the preference pane of the added module, choose the Gamertag you want to be displayed.
459 </p>
460 </div>
461
462 </div>
463 <div id="footer">
464 Page design by <a href="http://www.sixshootermedia.com">Six Shooter Media</a>.<br />
465 &copy; 2005 <a href="http://www.glop.org/">Laurent Raufaste</a>.
466 </div>
467 </center>
468 </body>
469 </html>
Something went wrong with that request. Please try again.