-
Notifications
You must be signed in to change notification settings - Fork 2
/
rss.php
88 lines (87 loc) · 2.99 KB
/
rss.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
if (file_exists('root.php'))
include_once('root.php');
?><?php
require_once('inc/variable.inc.php');
require_once('class/baseClass.class.php');
require_once('class/db.class.php');
require_once('fonction/time.inc.php');
require_once('fonction/base.inc.php');
require_once('fonction/equipement.inc.php');
include_once(root.'fonction/security.inc.php');
include_once(root.'connect.php');
//R�cup�ration du code
if(array_key_exists('code', $_GET))
{
$requete = "SELECT id_perso FROM perso_code WHERE code = '".sSQL($_GET['code'])."'";
$req = $db->query($requete);
if($db->num_rows == 1)
{
$row = $db->read_assoc($req);
$joueur = recupperso($row['id_perso']);
$prochain_level = prochain_level($joueur['level']);
$pourcent_level = progression_level(level_courant($joueur['exp']));
?>
<rss version="2.0">
<channel>
<title>Starshine-Online Player Viewer</title>
<link>http://www.starshine-online.com/</link>
<description>Suivi d'un personnage de SSO.</description>
<lastBuildDate>Thu, 18 Sep 2008 08:35:25 +0000</lastBuildDate>
<generator>SSO Viewer</generator>
<item>
<title><?php echo $joueur->get_nom(); ?></title>
<link>http://www.starshine-online.com/interface.php</link>
<description></description>
<pubDate>Thu, 18 Sep 2008 08:35:25 +0000</pubDate>
</item>
<item>
<title>HP : <?php echo $joueur['hp']; ?> / <?php echo $joueur['hp_max']; ?> - PA : <?php echo $joueur['pa']; ?> / 180</title>
<link>http://www.starshine-online.com/interface.php</link>
<description></description>
<pubDate>Thu, 18 Sep 2008 08:35:25 +0000</pubDate>
</item>
<item>
<title>MP : <?php echo $joueur['mp']; ?> / <?php echo $joueur['mp_max']; ?> - X : <?php echo $joueur['x']; ?> - Y : <?php echo $joueur['y']; ?></title>
<link>http://www.starshine-online.com/interface.php</link>
<description></description>
<pubDate>Thu, 18 Sep 2008 08:35:25 +0000</pubDate>
</item>
<item>
<title>Honneur : <?php echo $joueur['honneur']; ?> - Star : <?php echo $joueur['star']; ?> - Niveau : <?php echo $joueur['level']; ?> - XP : <?php echo $pourcent_level; ?>%</title>
<link>http://www.starshine-online.com/interface.php</link>
<description></description>
<pubDate>Thu, 18 Sep 2008 08:35:25 +0000</pubDate>
</item>
<?php
foreach($joueur['buff'] as $key => $buff)
{
?>
<item>
<title><?php echo $buff['nom']; ?></title>
<link>http://www.starshine-online.com/interface.php</link>
<description><?php echo $buff['description']; ?></description>
<pubDate>Thu, 18 Sep 2008 08:35:25 +0000</pubDate>
</item>
<?php
}
?>
<?php
foreach($joueur['debuff'] as $key => $buff)
{
?>
<item>
<title><?php echo $buff['nom']; ?></title>
<link>http://www.starshine-online.com/interface.php</link>
<description><?php echo $buff['description']; ?></description>
<pubDate>Thu, 18 Sep 2008 08:35:25 +0000</pubDate>
</item>
<?php
}
?>
</channel>
</rss>
<?php
}
}
?>