forked from 4ducky/4ducky
The PHP sources, templates and old jQuery-based scripts move unchanged into legacy/ for reference. Shared assets (media/, images/, favicon.ico, the default avatar) stay at the repository root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
61 lines
1.9 KiB
PHP
61 lines
1.9 KiB
PHP
<?php include( $templates.'header.tpl.php' ); ?>
|
|
|
|
<?php
|
|
require_once( 'lib/config.php' );
|
|
require_once( 'lib/users.php' );
|
|
require_once( 'lib/db.php' );
|
|
|
|
$fame = DB::query("SELECT *, UNIX_TIMESTAMP(logged) AS loggedTS from pl_images WHERE fame=1 ORDER BY logged DESC");
|
|
|
|
foreach( array_keys($fame) as $k){
|
|
$uploader = DB::getRow("SELECT * from pl_users WHERE id=:1",$fame[$k]["user"]);
|
|
?>
|
|
<div align="center">
|
|
|
|
<div class="userInfo" style="border:1px solid #777777;width:60%;min-height:192px;padding:5px;">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td width="7%">
|
|
<div><img src="<?php echo(Config::$absolutePath."data/thumbs/".date("Y/m",$fame[$k]["loggedTS"])."/192x192/".$fame[$k]["thumb"]); ?>" align="top" style="float:left;margin-right:5px;"></div>
|
|
|
|
</td>
|
|
<td valign="top" width="93%">
|
|
|
|
<div class="userInfo" style="float:left;width:100%;border:1px solid #777777;">
|
|
<img class="avatar" width="40" height="40" src="<?php echo Config::$absolutePath.$uploader['avatar']; ?>"/>
|
|
<div class="name">
|
|
<strong>
|
|
<a href="<?php echo Config::$absolutePath.'user/'.$uploader['name']; ?>"><?php echo $uploader['name']; ?></a>
|
|
</strong>
|
|
</div>
|
|
<div class="info">
|
|
ID: <strong><?php echo $uploader['id']; ?></strong> |
|
|
Images: <strong><?php echo $uploader['images']; ?></strong>
|
|
<?php if( !empty($uploader['website'])) { ?>|
|
|
<strong><a href="<?php echo htmlspecialchars($uploader['website']); ?>" target="_blank">
|
|
Website
|
|
</a></strong>
|
|
<?php } ?>
|
|
</div>
|
|
<div style="clear:both;"></div>
|
|
</div>
|
|
|
|
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td valign="bottom">
|
|
<strong><a href="<?php echo Config::$absolutePath."all/view/".$fame[$k]['keyword']; ?>" target="_blank">» watch thread.</a></strong>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<?php }?>
|
|
<?php include( $templates.'footer.tpl.php' ); ?>
|