forked from 4ducky/4ducky
mirror
This commit is contained in:
@@ -0,0 +1,174 @@
|
||||
<?php
|
||||
$pname = ereg_replace("(\.).*","",$iv->image['image']);
|
||||
|
||||
function shorter($input, $length)
|
||||
{
|
||||
//no need to trim, already shorter than trim length
|
||||
if (strlen($input) <= $length) {
|
||||
return $input;
|
||||
}
|
||||
|
||||
//find last space within length
|
||||
$last_space = strrpos(substr($input, 0, $length), ' ');
|
||||
if(!$last_space) $last_space = $length;
|
||||
$trimmed_text = substr($input, 0, $last_space);
|
||||
|
||||
//add ellipses (...)
|
||||
$trimmed_text .= '...';
|
||||
|
||||
return $trimmed_text;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title><?php if( !empty($ib->user) ) { echo $ib->user['name']." | ";} ?><?php if( !empty($pname) ) { echo $pname." | ".Config::$siteTitle; } else { echo Config::$siteTitle;} ?></title>
|
||||
<meta name="description" content="ENTE ✔ ENTE ✔ ENTE ✔ ENTE ✔ ENTE ✔ ENTE ✔ ENTE ✔ ENTE ✔ ENTE ✔ ENTE ✔ ENTE ✔ ENTE ✔ ENTE ✔ ENTE ✔ ENTE ✔ ENTE ✔ ENTE ✔ ENTE ✔ ENTE ✔"/>
|
||||
<link rel="icon" href="http://www.4ducky.com/favicon.ico"/>
|
||||
<?php if ($user->stylecolor == "white") { ?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo Config::$absolutePath; ?>media/styles_fb.css" />
|
||||
<?php }else{ ?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo Config::$absolutePath; ?>media/styles_b.css" />
|
||||
<?php } ?>
|
||||
|
||||
<script type="text/javascript" src="<?php echo Config::$absolutePath; ?>media/picturelicious.js"></script><?php if( !empty($r[0]) ){ if ($r[0] == 'profile'){ ?><script type="text/javascript" src="/media/jscolor.js"></script><?php }} ?><script type="text/javascript" src="/js/functions.js"></script><script type="text/javascript" src="/media/jquery.js"></script><script type="text/javascript" src="/js/jquery-ui-1.8.2.custom.min.js"></script><script type="text/javascript" src="/js/jquery.cookie.js"></script><script type="text/javascript" src="/js/slimScroll.min.js"></script><script type="text/javascript" src="/js/jquery.simplemodal.min.js"></script><link rel="stylesheet" href="/media/lightbox/lightbox.css" type="text/css" /><script type="text/javascript" src="/js/jqpr.js"></script><script type="text/javascript">jQuery.noConflict();</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="site">
|
||||
<div id="menu"> <a href="<?php echo Config::$absolutePath; ?>" id="logo"></a>
|
||||
<?php if($user->id){ ?>
|
||||
<div id="MenuLoad">
|
||||
<div id="UploadD"><div style="float:right;margin:5px;"><img onclick="CloseU()" src="/media/close.png" /></div><div id="UploadD_d">
|
||||
|
||||
<?php if( !empty( $uploadErrors ) ) { ?>
|
||||
<ul>
|
||||
<?php foreach( $uploadErrors as $msg ) { ?>
|
||||
<li><?php echo $msg?></li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
<script type="text/javascript">Menu("","error");</script>
|
||||
<?php }else{ ?>
|
||||
<div style="margin-top:12px;text-align:center;" id="UbLoad">
|
||||
<div align="center">
|
||||
<img src="/media/load_b.gif" />
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="MenuRightBlock"></div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( $user->id ) { ?>
|
||||
<div class="menuItems">
|
||||
<a href="javascript:;" onclick="Menu('upload');">Upload</a> <a href="javascript:;" onclick="Menu('addon');">Addon</a> <a href="<?php echo Config::$absolutePath; ?>truhe">Truhe</a> <a href="<?php echo Config::$absolutePath; ?>fame">HoD</a>
|
||||
</div>
|
||||
<?php }else{ ?>
|
||||
|
||||
<div class="menuItems2">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" valign="middle" ><a href="/impressum"><img title="contact" width="28" height="28" src="/media/mailme.png" alt="login"/></a></td>
|
||||
<td align="center" valign="middle"><a href="/impressum">Contact</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="menuItems2">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" valign="middle" ><a href="/register"><img title="Register" width="28" height="28" src="/media/register_fb.png" alt="register"/></a></td>
|
||||
<td align="center" valign="middle"><a href="/register">Register</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="menuItems2">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" valign="middle" ><a href="/login"><img title="Login" width="28" height="28" src="/media/login_fb.png" alt="login"/></a></td>
|
||||
<td align="center" valign="middle"><a href="/login">Login</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
$b = "";
|
||||
if($user->stylecolor == "white"){
|
||||
$b = ""; } else { $b="_b";
|
||||
}
|
||||
if ($user->id){ ?>
|
||||
|
||||
<div class="menuItems2"><a id="nigger" href="/logout" original-title="Hello World"><img width="28" height="28" src="/media/logout<?php echo $b; ?>.png" /></a></div>
|
||||
<div class="menuItems2"><a href="/profile"><img width="28" height="28" src="/media/profile<?php echo $b; ?>.png" /></a></div>
|
||||
<div class="menuItems2"><a href="/favorites"><img width="28" height="28" src="/media/p<?php echo $b; ?>.png" /></a></div>
|
||||
<div class="menuItems2">
|
||||
<?php $unreadcount = DB::getRow("SELECT COUNT(*) as c FROM pl_messages WHERE to_m=:1 AND read_m=0",$user->id);
|
||||
if( $unreadcount["c"] > 0 ) {
|
||||
?>
|
||||
<div class="inboxalert"><?php echo $unreadcount["c"]; ?></div>
|
||||
<?php } ?>
|
||||
<div><a href="/inbox"><img width="28" height="28" src="/media/n<?php echo $b; ?>.png" /></a></div>
|
||||
</div>
|
||||
<div class="menuItems2">
|
||||
<?php $newcomments = DB::query("SELECT i.keyword,i.thumb,DATE_FORMAT(i.logged,'%Y/%m') as tm FROM pl_unread as u,pl_images as i WHERE u.userid=:1 AND u.imageid = i.id",$user->id);
|
||||
if( count($newcomments) > 0 ) {
|
||||
?>
|
||||
<div class="inboxalert"> <?php echo count($newcomments); ?></div>
|
||||
<a onMouseOver="toggleDiv('Last5Div',1)" href="/unread" ><img width="28" height="28" src="/media/w<?php echo $b; ?>.png" /></a>
|
||||
|
||||
|
||||
<?php }else{
|
||||
DB::query("DELETE FROM pl_unread WHERE userid=:1",$user->id);
|
||||
?>
|
||||
<a href="/comments" ><img width="28" height="28" src="/media/w<?php echo $b; ?>.png" /></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="Last5Div" class="Last5Div" onMouseOver="toggleDiv('Last5Div',1)" onMouseOut="toggleDiv('Last5Div',0)">
|
||||
|
||||
<?php
|
||||
|
||||
if(count($newcomments) > 0) {
|
||||
$newcomments = DB::query("SELECT i.keyword,i.thumb,DATE_FORMAT(i.logged,'%Y/%m') as tm FROM pl_unread as u,pl_images as i WHERE u.userid=:1 AND u.imageid = i.id ORDER BY i.logged DESC LIMIT 5",$user->id);
|
||||
foreach (array_keys($newcomments) as $c) { ?>
|
||||
|
||||
<a href="<?php echo (Config::$absolutePath.'all/view/'.$newcomments[$c]["keyword"]); ?>">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr height="45px">
|
||||
<td valign="middle" align="left" width="45px"><img width="40" height="40" src="<?php echo(Config::$absolutePath."data/thumbs/".$newcomments[$c]["tm"]."/64x64/".$newcomments[$c]["thumb"]); ?>" /></td>
|
||||
<td align="left"><strong>Image:</strong><br /><?php echo(shorter($newcomments[$c]["keyword"],20)); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</a>
|
||||
|
||||
<?php }} ?>
|
||||
<div style="text-align:right;padding:2px;">
|
||||
<a href="/comments/reset">» reset unread</a>
|
||||
<a href="<?php echo Config::$absolutePath.'unread'; ?>">» watch all</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="menuItems2">
|
||||
<?php $infos = DB::getRow("SELECT * FROM pl_users WHERE id=:1",$user->id); ?>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" valign="middle" ><a href="#" id="del_cookie"><img title="Reload page, activate sidebar" width="28" height="28" src="<?php echo Config::$absolutePath.$infos["avatar"]; ?>" /></a></td>
|
||||
<td align="center" valign="middle"><a href="<?php echo Config::$absolutePath; ?>user/<?php echo $user->name; ?>"><?php echo $user->name; ?></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<div class="alert" id="dolan"><?php if ($user->id){ $settings = DB::getRow("SELECT * FROM pl_settings"); echo $settings["message"]; ?> <img style="float: right;" id="stfu" height="16" width="16" src="<?php if ($user->stylecolor == "white") {?>/media/xfb.png<?php }else{ ?>/media/xd.png<?php } ?>" alt="close"/><?php } else { ?>Dolan: "Hate annoying advertisements? <a href="http://www.4ducky.com/register">Register now for free</a> to have them removed!" Like us on <a href="http://www.facebook.com/fuehls">Facebook.com</a><?php } ?></div>
|
||||
Reference in New Issue
Block a user