-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy path_bannerRightContent.inc.php
56 lines (55 loc) · 1.99 KB
/
_bannerRightContent.inc.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
<?php
// checked whether user is logged in
if($Auth->loggedIn())
{
// load recent from account
$files = file::loadAllRecentByAccount($Auth->id, true);
}
else
{
// load recent from IP
$files = file::loadAllRecentByIp(getUsersIPAddress(), true);
}
?>
<div class="rightContentWrapper ui-corner-all">
<div class="rightContent">
<div id="pageHeader">
<h2><?php echo t("your_recent_files", "Your Files"); ?> <?php echo COUNT($files)?'('.COUNT($files).')':''; ?></h2>
</div>
<p>
<?php
// load all urls for current user
if(COUNT($files))
{
$tracker = 0;
foreach($files AS $url)
{
$class = 'divOdd';
if($tracker%2==1)
{
$class = 'divEven';
}
echo "<div class='".$class."'>";
echo "<div style='padding: 3px;'>";
echo " <div style='float: right; text-decoration: underline;'>";
echo " <a href='".WEB_ROOT."/".$url['shortUrl']."~i?".$url['deleteHash']."'>".t("info", "info")."</a>";
echo " </div>";
echo " <div style='float: left; overflow: hidden; width: 170px;'>";
echo " <a href='".WEB_ROOT."/".$url['shortUrl']."'>".$url['originalFilename']."</a>";
echo " </div>";
echo " <div class='clear'></div>";
echo "</div>";
echo "<div class='clear'></div>";
echo "</div>";
echo "<div class='clear'></div>";
$tracker++;
}
}
else
{
echo '- You have not uploaded any files recently. <a href="'.WEB_ROOT.'/index.'.SITE_CONFIG_PAGE_EXTENSION.'">Click here</a> to upload some now.';
}
?>
</p>
</div>
</div>