This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
/
sc_lastregistered.php
37 lines (37 loc) · 2.24 KB
/
sc_lastregistered.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
<?php
/*
##########################################################################
# #
# Version 4 / / / #
# -----------__---/__---__------__----__---/---/- #
# | /| / /___) / ) (_ ` / ) /___) / / #
# _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___ #
# Free Content / Management System #
# / #
# #
# #
# Copyright 2005-2011 by webspell.org #
# #
# visit webSPELL.org, webspell.info to get webSPELL for free #
# - Script runs under the GNU GENERAL PUBLIC LICENSE #
# - It's NOT allowed to remove this copyright-tag #
# -- http://www.fsf.org/licensing/licenses/gpl.html #
# #
# Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at), #
# Far Development by Development Team - webspell.org #
# #
# visit webspell.org #
# #
##########################################################################
*/
$result=safe_query("SELECT * FROM ".PREFIX."user ORDER BY registerdate DESC LIMIT 0,5");
echo '<table width="100%" cellspacing="4" cellpadding="0">';
while($row=mysql_fetch_array($result)) {
$username='<a href="index.php?site=profile&id='.$row['userID'].'">'.$row['nickname'].'</a>';
$country=flags('[flag]'.$row['country'].'[/flag]');
$registerdate=date('d.m.y', $row['registerdate']);
eval ("\$sc_lastregistered = \"".gettemplate("sc_lastregistered")."\";");
echo $sc_lastregistered;
}
echo '</table>';
?>