forked from 4ducky/4ducky
Move the original PHP site into legacy/
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>
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' ); ?>
|
||||
|
||||
|
||||
<div class="warn"><img style="float: left; margin: 100px;" alt="404" src="http://www.4ducky.com/media/404.jpg"/>Broken link - no image found!<br/>
|
||||
<a href="http://www.4ducky.com">Go back to the main...</a></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php include( $templates.'footer.tpl.php' ); ?>
|
||||
@@ -1,25 +0,0 @@
|
||||
<?php include("templates/header.tpl.php");
|
||||
|
||||
|
||||
if (isset($abuseerrors["abusefailed"])){
|
||||
?>
|
||||
<div class="warn" style="text-align:center">
|
||||
Abused failed.<br><br>
|
||||
<strong><?php if ($abuseerrors["referer"]) { echo ('<a href="'.$abuseerrors["referer"].'">» back</a>'); } ?></strong>
|
||||
</div>
|
||||
<?php
|
||||
}elseif (isset($abuseerrors["abuse"])){?>
|
||||
<div class="success" style="text-align:center">
|
||||
Abused. Wait for response.<br><br>
|
||||
<strong><?php if ($abuseerrors["referer"]) { echo ('<a href="'.$abuseerrors["referer"].'">» back</a>'); } ?></strong>
|
||||
</div>
|
||||
<?php }elseif (isset($abuseerrors["captchafailed"])){?>
|
||||
<div class="warn" style="text-align:center">
|
||||
Wrong captcha.<br><br>
|
||||
<strong><?php if ($abuseerrors["referer"]) { echo ('<a href="'.$abuseerrors["referer"].'">» back</a>'); } ?></strong>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
|
||||
include("templates/footer.tpl.php");
|
||||
?>
|
||||
@@ -1,34 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' ); ?>
|
||||
<div align="center">
|
||||
|
||||
<form action="/abuse" method="post">
|
||||
|
||||
<fieldset>
|
||||
<legend>Abuse // Contact: abuse@4ducky.com</legend>
|
||||
<p style="text-align:left;">Report Abuse or Request Deletion (Copyrighted Material, Pornography, Harassment) If requesting the removal of copyrighted materials, you must be the owner or legally represent the owner of said materials. Report it here:</p>
|
||||
<dl class="form">
|
||||
|
||||
<dt>Imagelink:</dt>
|
||||
<dd>
|
||||
<input type="text" name="imglink" value=""/>
|
||||
</dd>
|
||||
<dt>Reason:</dt>
|
||||
<dd>
|
||||
<input type="text" name="rsn" value=""/>
|
||||
</dd>
|
||||
|
||||
<dt>Email:</dt>
|
||||
<dd>
|
||||
<input type="text" name="mail" value="" />
|
||||
</dd>
|
||||
|
||||
<dd>
|
||||
<input type="submit" class="button login" name="abuse" value="Send" />
|
||||
<input type="hidden" name="image" value="<?php echo $iv->image["id"]; ?>">
|
||||
</dd>
|
||||
</dl>
|
||||
</form>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<?php include( $templates.'footer.tpl.php' ); ?>
|
||||
@@ -1,154 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' );
|
||||
|
||||
/*if (!$user->id){
|
||||
?>
|
||||
<div class="warn" style="text-align:center">
|
||||
Only registered users can see images! Register now.
|
||||
</div>
|
||||
<?php
|
||||
include( $templates.'footer.tpl.php' );
|
||||
exit();
|
||||
}*/
|
||||
|
||||
if( $ib->user['id'] ) {
|
||||
/* Abfrage nach Kommentaren / Likes des Users */
|
||||
$idAbfrage = $ib->user['id'];
|
||||
$comm = DB::getRow("SELECT COUNT(*) as count FROM pl_comments WHERE userid=:1 AND c_like = 0",$idAbfrage);
|
||||
$favs = DB::getRow("SELECT COUNT(*) as count FROM pl_fav WHERE user=:1",$idAbfrage);
|
||||
$users = DB::getRow("SELECT color as color,registered as reg FROM pl_users WHERE id=:1",$idAbfrage);
|
||||
$days = floor((time() - strtotime(substr($users['reg'],0,10)))/86400);
|
||||
?>
|
||||
|
||||
<div style="margin-left: 5px; width: 95%;">
|
||||
|
||||
<div style="font-size: 20px; margin-bottom: 5px; font-weight: bold;">
|
||||
<a style="color:#<?php echo $users['color'] ?>" href="<?php echo Config::$absolutePath.'user/'.$ib->user['name']; ?>"><?php echo $ib->user['name']; ?></a> <?php
|
||||
if ($idAbfrage > 1100) {echo "☪";}
|
||||
elseif ($idAbfrage < 500) {echo "ϟϟ";}
|
||||
elseif ($idAbfrage > 939) {echo "✡";}
|
||||
else {echo "☭";} ?> <?php if( !empty($ib->user['website'])) { ?>- <a href="<?php echo htmlspecialchars($ib->user['website']); ?>" target="_blank">www</a> -<?php } ?>
|
||||
</div>
|
||||
|
||||
<div style="max-width: 35em; float: left;"><img alt="<?php echo $ib->user['name']; ?>" src="<?php echo Config::$absolutePath.$ib->user['avatar']; ?>"/></div>
|
||||
<div id="userstats"><a href="<?php echo Config::$absolutePath.'inbox/'.$ib->user['name']; ?>"><img alt="mailme" src="/media/<?php if ($user->stylecolor == "white") {?>mailme_fb.png<?php } else{ ?>mailme.png<?php }?>" width="64px" height="64px"/></a></div>
|
||||
<div id="userstats"><div><?php echo $ib->user['id']; ?></div>ID</div>
|
||||
<div id="userstats"><div><?php echo $days; ?></div>Days past</div>
|
||||
<div id="userstats"><div><?php echo $ib->user['images']; ?></div>Uploads</div>
|
||||
<div id="userstats"><div><?php echo $comm["count"]; ?></div>Comments</div>
|
||||
<div id="userstats"><div><?php echo $favs["count"]; ?></div>Favs</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div style="clear:both;"></div>
|
||||
|
||||
<h1>
|
||||
» Browsing
|
||||
<?php if( !empty($ib->user) ) { ?>
|
||||
User: <a href="<?php echo Config::$absolutePath.'user/'.$ib->user['name']; ?>"><?php echo $ib->user['name']; ?></a>
|
||||
<?php } else if( !empty($ib->channel) ) { ?>
|
||||
Channel: <a href="<?php echo Config::$absolutePath.'channel/'.$ib->channel['keyword']; ?>"><?php echo $ib->channel['name']; ?></a>,
|
||||
<?php } else if( !empty($ib->searchColor) || !empty($ib->searchTerm) ) { ?>
|
||||
Results for <?php echo htmlspecialchars($term); ?>,
|
||||
<?php } else if(($ib->commentState)) { ?>
|
||||
Comments ,
|
||||
<?php } else if(($ib->FavState)) { ?>
|
||||
favorites ,
|
||||
<?php } else { ?>
|
||||
All,
|
||||
<?php } ?>
|
||||
|
||||
Page: <?php echo $ib->pages['current']; ?> of <?php echo $ib->pages['total']; ?>
|
||||
<?php if(($ib->commentState)) { ?>
|
||||
| <strong><a href="/comments/reset">» reset unread</a></strong>
|
||||
<?php $newcomments = DB::getRow("SELECT COUNT(*) as c FROM pl_unread as u,pl_images as i WHERE u.userid=:1 AND u.imageid = i.id",$user->id);
|
||||
if( $newcomments["c"] > 0 ) { ?>
|
||||
|
||||
| <a href="/unread">» newest comments (<?php echo $newcomments["c"]; ?>)</a> | <a href="/comments">» Comments</a></strong>
|
||||
<?php }} ?>
|
||||
</h1>
|
||||
|
||||
<div id="images" style="height:<?php echo $gv->height * Config::$gridView['gridSize']; ?>px">
|
||||
<?php if( isset($ib->pages['prev']) ) { ?>
|
||||
<a href="<?php echo Config::$absolutePath.$ib->basePath.'page/'.$ib->pages['prev']; ?>" class="prev" title="Previous" id="prevBar">Previous</a>
|
||||
<?php } else { ?>
|
||||
<div class="noPrev" id="prevBar">Previous</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($ib->pages['next']) ) { ?>
|
||||
<a href="<?php echo Config::$absolutePath.$ib->basePath.'page/'.$ib->pages['next']; ?>" class="next" title="Next" id="nextBar">Next</a>
|
||||
<?php } else { ?>
|
||||
<div class="noNext" id="nextBar">Next</div>
|
||||
<?php } ?>
|
||||
|
||||
<noscript>
|
||||
<div class="noscr">Please enable Javascript.</div>
|
||||
</noscript>
|
||||
|
||||
<div id="imageGrid" style="height:<?php echo $gv->height * Config::$gridView['gridSize'];?>px">
|
||||
<?php
|
||||
if( !empty($ib->searchColor) || !empty($ib->searchTerm) || ($ib->commentState) || ($ib->FavState) ) {
|
||||
$imgBasePath = 'all/';
|
||||
} else {
|
||||
$imgBasePath = $ib->basePath;
|
||||
}
|
||||
foreach( $ib->thumbs as $thumb ) {
|
||||
if( isset( $thumb['left'] ) ) {
|
||||
|
||||
$blockedrow = DB::getRow("SELECT id,users FROM pl_blocked WHERE id=:1",$user->id);
|
||||
$commentalert = DB::getRow("SELECT COUNT(*) as count FROM pl_unread WHERE keyword=:1 AND userid=:2",$thumb['keyword'],$user->id);
|
||||
$commentdiv = "";
|
||||
$commentcolor ="";
|
||||
$commentalertdiv ="";
|
||||
|
||||
if($commentalert["count"] > 0){
|
||||
$commentdiv ='<div class="overlay"></div>';
|
||||
$commentcolor = 'style="background-color:#96b2e4;"' ;
|
||||
$commentalertdiv = '<div class="inboxalert" style="padding:3px;" >!</div>';
|
||||
}else{
|
||||
$commentdiv = "";
|
||||
$commentalertdiv ="";
|
||||
$commentcolor = '' ;
|
||||
}
|
||||
|
||||
if (!empty($blockedrow)) {
|
||||
|
||||
$blockeduser = array_map('strtolower', unserialize($blockedrow['users']));
|
||||
$lower = strtolower($thumb['userName']);
|
||||
if (!in_array($lower,$blockeduser)){
|
||||
|
||||
echo '<div class="'.$thumb['class'].'" style="left:'.$thumb['left'].'px;top:'.$thumb['top'].'px;">'.$commentalertdiv.'<a '.$commentcolor.' class="thumb" href="'
|
||||
.Config::$absolutePath.$imgBasePath.'view/'.$thumb['keyword'].'">'.$commentdiv.'<img src="'.$thumb['thumb'].'" title="'.$thumb['userName'].' - '.
|
||||
date('d. M Y H:i',$thumb['loggedTS']).'" alt="'.$thumb['keyword'].'"/></a></div>'."\n";
|
||||
|
||||
}
|
||||
|
||||
|
||||
}else{
|
||||
if (!$user->id){
|
||||
$bilder = scandir('images/rs', 1);
|
||||
$random = rand(3,114);
|
||||
$thumb['thumb'] = "http://www.4ducky.com/images/rs/" . $bilder[$random];
|
||||
|
||||
echo "<h5>" . $bilder[0] . "</h5>";
|
||||
}
|
||||
echo '<div class="'.$thumb['class'].'" style="left:'.$thumb['left'].'px;top:'.$thumb['top'].'px;">'.$commentalertdiv.'<a '.$commentcolor.' class="thumb" href="'
|
||||
.Config::$absolutePath.$imgBasePath.'view/'.$thumb['keyword'].'">'.$commentdiv.'<img src="'.$thumb['thumb'].'" title="'.$thumb['userName'].' - '.
|
||||
date('d. M Y H:i',$thumb['loggedTS']).'" alt="'.$thumb['keyword'].'"/></a></div>'."\n";
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
gridView('imageGrid');
|
||||
//jQuery(function(){jQuery("#imageGrid").preloader();});
|
||||
ieAdjustHeight(0);
|
||||
</script>
|
||||
|
||||
|
||||
<?php include( $templates.'footer.tpl.php' ); ?>
|
||||
@@ -1,4 +0,0 @@
|
||||
<div align="center">
|
||||
<iframe src="http://irc.chillzonenet.org:9090/?nick=fuehls&channels=fuehls&prompt=1&uio=d4" width="800" height="500"></iframe></div>
|
||||
|
||||
</div>
|
||||
@@ -1,9 +0,0 @@
|
||||
<div style=" font-family:Verdana, Geneva, sans-serif;text-align:center; height:100%; margin-top:100px;">
|
||||
Monglol wurde gebannt da er sich anscheinend nicht an Regeln halten will.<br>
|
||||
Ich gebe euch viele Freiheiten, aber das hier ist nicht edelchan, da könnt ihr eure Gorebildchen posten.<br>
|
||||
Oder geht auf entsprechende Seiten, dafür sind diese da wenn euch das erregt oderso.<br>
|
||||
<br>
|
||||
Ich habe keine Lust zu entsprechend harten Regeln zu greifen wie 4fuckr, aber wenn ihr nicht anders könnt, dann werde ich das tun. Zudem: Ich mach das hier zu Spaß und bin nicht wie Feivel auf die Einnahmen angewiesen. Ich werde die Seite also bei Bedarf einfach wieder vom Netz nehmen. Juckt mich wenig.<br>
|
||||
<br>
|
||||
Für heute ist hier erstmal zu. Solltet ihr euch einfach nicht an die 2 Regeln halten können, werden ich schärfere einführen oder die Seite anders nutzen.
|
||||
</div>
|
||||
@@ -1,61 +0,0 @@
|
||||
<?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' ); ?>
|
||||
@@ -1,24 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' ); ?>
|
||||
|
||||
<br/>
|
||||
|
||||
<?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">
|
||||
|
||||
<a href="<?php echo Config::$absolutePath."all/view/".$fame[$k]['keyword']; ?>"><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;"></a>
|
||||
|
||||
</div>
|
||||
|
||||
<?php }?>
|
||||
<div style="clear:both;"></div>
|
||||
|
||||
<?php include( $templates.'footer.tpl.php' ); ?>
|
||||
@@ -1,64 +0,0 @@
|
||||
</div></div>
|
||||
<!--
|
||||
<div id="footer">© <?php echo date('Y'); ?> 4ducky.com - a Dolan Duck Production | <a href="/impressum">Contact us</a> | <a href="/abuseform">Abuse / Request Deletion</a></div> -->
|
||||
|
||||
<?php if ($user->id){ ?>
|
||||
<div id="sidebar">
|
||||
<div id="top"><?php if($user->admin) { ?><a href="/manage"><img height="28" width="28" src="<?php if ($user->stylecolor == "white") {?>/media/manage-fb.png<?php }else{ ?>/media/manage.png<?php } ?>" alt="manage"/></a><?php } ?> <a href="javascript:;" id="loadcom"><img height="28" width="28" src="<?php if ($user->stylecolor == "white") {?>/media/refresh_fb.png<?php }else{ ?>/media/refresh.png<?php } ?>" alt="refresh"/></a> <a href="#" id="x"><img height="28" width="28" src="<?php if ($user->stylecolor == "white") {?>/media/xfb.png<?php }else{ ?>/media/xd.png<?php } ?>" alt="close"/></a></div>
|
||||
|
||||
<div id="rightpanel">
|
||||
<noscript><div class="noscr">Please enable Javascript.</div></noscript>
|
||||
<div align="center"><img alt="load" src="<?php if ($user->stylecolor == "white") {?>/media/load.gif<?php } else{ ?>/media/load_b.gif<?php }?>" /></div>
|
||||
</div>
|
||||
|
||||
<div id="bottom">
|
||||
<div id="commentbar"><a href="/truhe"><div id="commentimg"><img width="28" height="28" src="/media/truhe.png" alt="Spenden"></div><div id="commenttext"><strong>4ducky.com </strong>Statistiken</div></a></div>
|
||||
|
||||
<script type="text/javascript" src="http://www.4ducky.com/random/1/128x128/"></script>
|
||||
|
||||
<div id="commentbar"><a target="_blank" href="http://goodius.com"><div id="commentimg"><img width="28" height="28" src="/media/forum.png" alt="Forum"></div><div id="commenttext"><strong>Goodius.com</strong> <br />für alle Hipster</div></a></div>
|
||||
|
||||
<div id="commentbar"><a href="http://www.facebook.com/goodius" target="_blank"><div id="commentimg"><img width="28" height="28" src="/media/fbicon.png" alt="Facebook"></div><div id="commenttext"><strong>Duckies: </strong><br /> auf Judenbuch</div></a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}else{ ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var addthis_config = {
|
||||
services_overlay:'facebook,twitter,tumblr,reddit,more'
|
||||
}
|
||||
jQuery(document).ready(function(){
|
||||
jQuery("#sidebar").hide(); jQuery("#site").css("margin-right","0px");
|
||||
jQuery("#footer-back-to-top").css("right","30px"); jQuery("#footer").css("margin-right","0px");
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
<div><a href="#" id="footer-back-to-top"></a></div>
|
||||
<?php if(isset($iv->image["id"])){?><script type="text/javascript"><?php echo 'LoadData("comments","cmts",'.$iv->image["id"].');'; ?></script><?php } ?>
|
||||
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-46457338-2', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
|
||||
<?php
|
||||
/*
|
||||
$musel = rand(0, 125);
|
||||
|
||||
if($musel == 1 && $user->id) {
|
||||
echo '<iframe style="display:none;" width="1" height="1" src="https://www.youtube.com/embed/naCD-q4kKek?rel=0&&autoplay=1&start=109;controls=0&showinfo=0" frameborder="0" allowfullscreen></iframe>';
|
||||
|
||||
echo '<script type="text/javascript">setTimeout(function() {alert("Kein Bock auf Musel-Musik? Einmalig für 4ducky spenden und nie wieder dieses Geheule hören. Versprochen! Schicke einen Amazon-Gutschein an Pandora (#1) und du wirst arischer Ducky!");},5000);</script>';
|
||||
}
|
||||
*/
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,5 +0,0 @@
|
||||
<div align="center" style="margin-top: 2px; margin-bottom: 25px;">
|
||||
|
||||
<script type="text/javascript" src="http://gelbegefahr.bplaced.net/plugins/embedvanilla/remote.js"></script>
|
||||
|
||||
</div>
|
||||
@@ -1,174 +0,0 @@
|
||||
<?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>
|
||||
@@ -1,47 +0,0 @@
|
||||
<div align="center">
|
||||
<fieldset>
|
||||
<legend>About</legend>
|
||||
<img id="ownerboy" height="20%" width="20%" style="float: right;" src="/media/andrew.jpeg" alt="Admin"/>
|
||||
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="112" valign="top">Owner:</td>
|
||||
<td width="388"><strong>
|
||||
<p> </p>
|
||||
</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Email:</td>
|
||||
<td><a href="mailto:support@4ducky.com">support@4ducky.com</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Rules </td>
|
||||
<td>1.) No underaged people / no cp / no illustration with naked kids</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>2.) No gore / dead people / dead animals</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Saw something like this?</td>
|
||||
<td><a href="http://www.4ducky.com/abuseform">Please request deletion</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
</div>
|
||||
@@ -1,128 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' ); ?>
|
||||
|
||||
<?php if( !empty( $msgErrors ) ) { ?>
|
||||
<?php if( $msgErrors["usernotfound"] == true ) { ?>
|
||||
<div class="warn">
|
||||
<ul>
|
||||
<li class="error">User not found.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php }?>
|
||||
<?php if( $msgErrors["userblocked"] == true ) { ?>
|
||||
<div class="warn">
|
||||
<ul>
|
||||
<li class="error">User blocked you.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
|
||||
<br/><br/>
|
||||
<table class="duckytable" align="center" width="800px" border="0" cellspacing="0" cellpadding="0">
|
||||
<caption>Messages:</caption>
|
||||
|
||||
<?php
|
||||
|
||||
$messages = DB::query("SELECT from_m as sender, title_m as title, created FROM pl_messages WHERE to_m=:1 GROUP BY from_m",$user->id);
|
||||
|
||||
if ( count($messages) == 0 ){ ?>
|
||||
<tr>
|
||||
<td width="400px">
|
||||
<div class="userInfo" style="border:1px solid #d2d9e7;padding:8px;">
|
||||
Your inbox is empty.
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php }
|
||||
|
||||
foreach (array_keys($messages) as $k){
|
||||
$temp = DB::query("SELECT created FROM pl_messages WHERE from_m=:1 ORDER BY created DESC",$messages[$k]["sender"]);
|
||||
|
||||
$messages[$k]["created"] = $temp[0]["created"];
|
||||
}
|
||||
|
||||
function sortByOption($a, $b) {
|
||||
return strcmp($b['created'], $a['created']);
|
||||
}
|
||||
|
||||
usort($messages, 'sortByOption');
|
||||
|
||||
foreach($messages as $s){
|
||||
|
||||
$userinformation = DB::getRow("SELECT * FROM pl_users WHERE id=:1",$s["sender"]);
|
||||
$blockedrow = DB::getRow("SELECT id,users FROM pl_blocked WHERE id=:1",$user->id);
|
||||
$blockeduser = array_map('strtolower', unserialize($blockedrow['users']));
|
||||
$lower = strtolower($userinformation["name"]);
|
||||
if (!in_array($userinformation["name"],$blockeduser)){
|
||||
$unread = DB::getRow("SELECT COUNT(*) as c, read_m FROM pl_messages WHERE from_m=:1 AND read_m=0 AND to_m=:2",$s["sender"],$user->id);
|
||||
|
||||
if ($unread["c"] > 0) {
|
||||
|
||||
$unreadborder = ' border:1px solid #FFD600; ';
|
||||
|
||||
}elseif ($unread["c"] == 0){
|
||||
|
||||
if ($user->stylecolor == "black") {
|
||||
$unreadborder="border:1px solid #333;";
|
||||
}else{
|
||||
$unreadborder = ' border:1px solid #d2d9e7; ';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td width="400px">
|
||||
|
||||
<div class="userInfo" style="margin:5px;min-height:40px;<?php echo $unreadborder; ?>" >
|
||||
<img class="avatar" width="40" height="40" src="<?php echo Config::$absolutePath.$userinformation['avatar']; ?>"/>
|
||||
<div class="name">
|
||||
<strong>
|
||||
<a href="<?php echo Config::$absolutePath.'inbox/'.$userinformation['name']; ?>"><?php echo $userinformation['name']; ?></a>
|
||||
</strong>
|
||||
</div>
|
||||
<div class="info">
|
||||
ID: <strong><?php echo $userinformation['id']; ?></strong> /
|
||||
Images: <strong><?php echo $userinformation['images']; ?></strong>
|
||||
|
||||
<?php if( !empty($userinformation['website'])) { ?>/
|
||||
Website: <strong><a href="<?php echo htmlspecialchars($userinformation['website']); ?>" target="_blank">
|
||||
<?php echo htmlspecialchars($userinformation['website']); ?>
|
||||
</a></strong>
|
||||
<?php } ?>
|
||||
<?php if (strlen ($s["title"]) > 1 ){ ?>
|
||||
|
||||
/ Subject: <strong> <?php
|
||||
|
||||
$s["title"] = strip_tags($s["title"]);
|
||||
$s["title"] = preg_replace(
|
||||
'#(?<!\w)((http://)|(www\.))([^\s<>]+)#i',
|
||||
"<a href=\"http://$3$4\">$3$4</a>",
|
||||
nl2br( htmlspecialchars($s["title"])));
|
||||
|
||||
|
||||
|
||||
echo $s["title"]; ?>
|
||||
|
||||
|
||||
</strong><br />
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
<?php }} ?>
|
||||
|
||||
|
||||
</table> <br/>
|
||||
|
||||
<?php include("templates/footer.tpl.php"); ?>
|
||||
@@ -1,110 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' ); ?>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<table class="duckytable" align="center" width="800px" border="0" cellspacing="0" cellpadding="0">
|
||||
|
||||
<caption>Conversation with:</caption>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
if ($user->stylecolor == "black") {
|
||||
$border="border:1px dotted #333;";
|
||||
}else{
|
||||
$border = ' border:1px solid #d2d9e7; ';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$userinformation = DB::getRow('SELECT * FROM pl_users WHERE name="'.$r[1].'"');
|
||||
|
||||
|
||||
if (count($userinformation) == 0 ){ header( 'location: '.Config::$absolutePath); }
|
||||
|
||||
$messages = DB::query("SELECT * FROM pl_messages WHERE (to_m=:1 AND from_m=:2) OR (to_m=:2 AND from_m=:1) ORDER BY created DESC",$userinformation["id"],$user->id);
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td width="400px" style="border-bottom: 0;">
|
||||
|
||||
<div class="userInfo" style=" <?php echo $border; ?>">
|
||||
<img class="avatar" width="60" height="60" src="<?php echo Config::$absolutePath.$userinformation['avatar']; ?>"/>
|
||||
<div class="name">
|
||||
<strong>
|
||||
<a href="<?php echo Config::$absolutePath.'user/'.$userinformation['name']; ?>"><?php echo $userinformation['name']; ?></a>
|
||||
</strong>
|
||||
</div>
|
||||
<div class="info">
|
||||
ID: <strong><?php echo $userinformation['id']; ?></strong> /
|
||||
Images: <strong><?php echo $userinformation['images']; ?></strong>
|
||||
|
||||
<?php if( !empty($userinformation['website'])) { ?>/
|
||||
<strong><a href="<?php echo htmlspecialchars($userinformation['website']); ?>" target="_blank">
|
||||
Website
|
||||
</a></strong>
|
||||
<?php } ?>
|
||||
<br /><br />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<div align="center">
|
||||
<div class="comment" style=" <?php echo $border; ?>margin:5px; text-align:left;width:700px;color:#333">
|
||||
<strong>Message to <?php echo $userinformation['name']; ?>:</strong>
|
||||
<form method="post" class="addComment" action="<?php echo Config::$absolutePath.'inbox/'.$r[1]; ?>">
|
||||
<div>
|
||||
<textarea name="content" rows="6" cols="93"></textarea><br />
|
||||
<input class="submit" type="submit" name="addComment" value="Submit Message"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
if (count($messages) != 0){
|
||||
|
||||
foreach( $messages as $s ) {
|
||||
$postedfrom = DB::getRow('SELECT * FROM pl_users WHERE id='.$s["from_m"]);
|
||||
DB::updateRow("pl_messages",array("to_m" => $user->id, "created" => $s["created"]),array("read_m" => 1));
|
||||
$bordercolor = $border;
|
||||
if ($s["read_m"] == 0 && $s["to_m"] == $user->id){
|
||||
$bordercolor = 'border:1px solid #FFD600';
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="comment" style=" margin:5px; text-align:left;width:700px;<?php echo $bordercolor; ?>">
|
||||
<div class="commentHead">
|
||||
|
||||
<a href="<?php echo Config::$absolutePath.'user/'.$postedfrom['name']; ?>"><?php echo $postedfrom['name']; ?></a>
|
||||
at <?php echo date('d. M Y H:i',$s['created']); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
//$s['message_m'] = strip_tags($s['message_m']);
|
||||
$s['message_m'] = preg_replace(
|
||||
'#(?<!\w)((http://)|(www\.))([^\s<>]+)#i',
|
||||
"<a href=\"http://$3$4\">$3$4</a>",
|
||||
nl2br( htmlspecialchars($s['message_m'])));
|
||||
|
||||
?>
|
||||
<hr style=" <?php echo $bordercolor; ?> width: 99%;">
|
||||
<?php echo $s['message_m']; ?>
|
||||
</div>
|
||||
|
||||
<?php }}else{ echo('No messages found. <hr style="background-color:#d2d9e7;">');} ?>
|
||||
|
||||
|
||||
|
||||
|
||||
</div> <br/>
|
||||
<?php include ("templates/footer.tpl.php"); ?>
|
||||
@@ -1,67 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' ); ?>
|
||||
<div align="center">
|
||||
<form action="<?php echo Config::$absolutePath; ?>login" method="post">
|
||||
<fieldset>
|
||||
<legend>Invites</legend>
|
||||
|
||||
<dl class="form">
|
||||
<dt>Info:</dt>
|
||||
<dd>
|
||||
-Invitemissbrauch führt zum Ban. (Keine Reaktivierung) / Darunter fällt auch einem gebannten User einen Invite zu geben.
|
||||
</dd>
|
||||
<dt></dt>
|
||||
<dd>-Nutzt die Invites weise. Baut euer Gast groben Unfug, seid ihr auch weg.</dd>
|
||||
<dt>Howto:</dt>
|
||||
<dd>Einfach den Link weiterschicken.</dd>
|
||||
</dl>
|
||||
<table class="table" width="100%" border="0" cellspacing="0">
|
||||
<tr class="tabletop">
|
||||
<td align="center" class="tabletoptd"><strong>InviteCode</strong></td>
|
||||
<td align="center" class="tabletoptd" width="100px"><strong>Used</strong></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
$invites = DB::query("SELECT * FROM pl_invites WHERE owner=:1",$user->id);
|
||||
|
||||
if($invites){
|
||||
foreach(array_keys($invites) as $i){?>
|
||||
<tr class="tablelist">
|
||||
<td align="center" class="tabletd">
|
||||
<?php
|
||||
if($invites[$i]["used"] == "0"){
|
||||
echo '<strong><a href="http://www.4ducky.com/invites/'.$invites[$i]["code"].'">'.$invites[$i]["code"].'</a></strong>';
|
||||
}else{
|
||||
echo $invites[$i]["code"];
|
||||
}?>
|
||||
</td>
|
||||
<td align="center" class="tabletd" width="50px"><?php
|
||||
|
||||
if($invites[$i]["used"] == "0"){
|
||||
echo "no";
|
||||
|
||||
}else{
|
||||
$usedby = DB::getRow("SELECT * FROM pl_users WHERE id=:1",$invites[$i]["usedby"]);
|
||||
echo $usedby["name"];
|
||||
|
||||
}?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php }
|
||||
} else{
|
||||
?>
|
||||
<td align="center" class="tabletd">Zurzeit keine Invites für dich</td>
|
||||
<td class="tabletd"></td>
|
||||
|
||||
<?php }
|
||||
?>
|
||||
|
||||
</table>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php include( $templates.'footer.tpl.php' ); ?>
|
||||
@@ -1,46 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' ); ?>
|
||||
<div align="center">
|
||||
<form action="<?php echo Config::$absolutePath; ?>login" method="post">
|
||||
<fieldset>
|
||||
<legend>Login</legend>
|
||||
|
||||
<?php if( isset($messages['wrongLogin']) ) { ?>
|
||||
<div class="warn">
|
||||
Wrong user or password!
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['bannedLogin']) ) { ?>
|
||||
<div class="warn">
|
||||
Account banned!<br /> <?php if(strlen($messages['bannedLogin']) >2){ echo "Grund: ".$messages['bannedLogin'];} ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<dl class="form">
|
||||
<dt>Name:</dt>
|
||||
<dd>
|
||||
<input type="text" name="name" value="<?php echo htmlspecialchars($_POST['name']); ?>"/>
|
||||
</dd>
|
||||
|
||||
<dt>Passwort:</dt>
|
||||
<dd>
|
||||
<input type="password" name="pass" />
|
||||
</dd>
|
||||
|
||||
<dt> </dt>
|
||||
<dd>
|
||||
<input class="check" type="checkbox" name="remember" id="inputRemember" value="1"/>
|
||||
<label for="inputRemember">Remember me!</label>
|
||||
</dd>
|
||||
|
||||
<dt> </dt>
|
||||
<dd>
|
||||
<input type="submit" class="button login" name="login" value="Login" />
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
Don't have an account yet? <a href="<?php echo Config::$absolutePath; ?>register">Register!</a>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<?php include( $templates.'footer.tpl.php' ); ?>
|
||||
@@ -1,124 +0,0 @@
|
||||
<?php
|
||||
require_once( 'lib/config.php' );
|
||||
require_once( 'lib/users.php' );
|
||||
require_once( 'lib/db.php' );
|
||||
|
||||
header("Content-type: text/html; charset=UTF-8");
|
||||
$user = new User();
|
||||
$user->login();
|
||||
$user->loadEmail();
|
||||
if( !$user->admin ) {
|
||||
echo "You need to be logged in as an admin user!";
|
||||
exit();
|
||||
}
|
||||
|
||||
$Spammer = DB::query("SELECT * from pl_users WHERE spamblocked=1");
|
||||
$Abuses = DB::query("SELECT * FROM `pl_abuse`WHERE `read` =:1",0);
|
||||
|
||||
$newComments = DB::query(
|
||||
'SELECT
|
||||
c.id, c.content, u.name, u.avatar,
|
||||
UNIX_TIMESTAMP(c.created) AS created,
|
||||
i.keyword FROM '.TABLE_COMMENTS.' c
|
||||
LEFT JOIN '.TABLE_USERS.' u
|
||||
ON u.id = c.userId
|
||||
LEFT JOIN '.TABLE_IMAGES.' i
|
||||
ON i.id = c.imageId
|
||||
ORDER BY c.created DESC LIMIT 100'
|
||||
);
|
||||
include( 'templates/header.tpl.php' );
|
||||
?>
|
||||
<br />
|
||||
|
||||
<table align="center" class="duckytable" width="800px" cellspacing="0" cellpadding="0">
|
||||
<caption>Spammer / Abuse:</caption>
|
||||
<tr>
|
||||
<td style="width:50%;">
|
||||
<?php
|
||||
if((count($Spammer)) > 0){
|
||||
echo '<h2 style="margin:5px;" >Newest Spammer:</h2>';
|
||||
foreach( $Spammer as $u ) {?>
|
||||
|
||||
<div class="userInfo" style="margin:5px;">
|
||||
<img class="avatar" width="40" height="40" src="<?php echo Config::$absolutePath.$u['avatar']; ?>"/>
|
||||
<div class="name">
|
||||
<strong>
|
||||
<a href="<?php echo Config::$absolutePath.'user/'.$u['name']; ?>"><?php echo $u['name']; ?></a>
|
||||
</strong>
|
||||
</div>
|
||||
<div class="info">
|
||||
ID: <strong><?php echo $u['id']; ?></strong> /
|
||||
Images: <strong><?php echo $u['images']; ?></strong>
|
||||
<?php if( !empty($u['website'])) { ?>/
|
||||
Website: <strong><a href="<?php echo htmlspecialchars($u['website']); ?>" target="_blank">
|
||||
<?php echo htmlspecialchars($u['website']); ?>
|
||||
</a></strong>
|
||||
<?php } ?>
|
||||
<?php if ((int)$u["time"] > 0 ){ echo "/ Bis:".date('Y-m-d H:i:s', $u["time"]); echo("<br>Grund: ".$u["spam_reason"]);} if ($user->id == 11 || $user->id == 1 ){ ?> / <a href="/manage/free/<?php echo $u["id"] ?>">Unblock</a><?php } ?>
|
||||
|
||||
</div>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php } }else{echo '<h2 style="margin:5px;" >No Spammer atm</h2>'; }?></td>
|
||||
|
||||
<td style="width:50%;">
|
||||
|
||||
|
||||
<?php
|
||||
if((count($Abuses)) > 0){
|
||||
echo '<h2 style="margin:5px;" >Newest Abuses:</h2>';
|
||||
foreach( $Abuses as $a ) {
|
||||
$Image = DB::getRow("SELECT *,UNIX_TIMESTAMP(logged) AS loggedTS FROM pl_images WHERE id=:1",$a["imageid"]);
|
||||
|
||||
if ($Image != NULL && $a["imageid"] != 0){
|
||||
?>
|
||||
|
||||
<div class="userInfo" style="margin:5px;">
|
||||
<img style="float:left; margin:2px;" width="64" height="64" src="<?php echo Config::$absolutePath."data/thumbs/".date("Y/m",$Image["loggedTS"])."/128x128/".$Image["thumb"]; ?>"/>
|
||||
|
||||
<div class="info">
|
||||
Reason: <strong><?php echo htmlspecialchars($a['reason']); ?></strong> /
|
||||
Email: <strong><?php echo htmlspecialchars($a['email']); ?></strong>
|
||||
|
||||
<?php if ($a["user"] != 0){
|
||||
$username = DB::getRow("SELECT * FROM pl_users WHERE id=:1",$a["user"]);
|
||||
echo('<br>User:<strong>'.$username["name"].'</strong>');
|
||||
}
|
||||
|
||||
echo('<br><a href="/manage/del/'.$a["id"].'">Delete Abuse</a>'); ?>
|
||||
|
||||
</div>
|
||||
<div class="info">
|
||||
<strong><a href="<?php echo Config::$absolutePath."all/view/".$Image['keyword']; ?>"> >> Zum Thread</a> </strong>
|
||||
</div>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
}elseif ($a["imageid"] == "0") {
|
||||
echo('<div class="userInfo" style="padding:5px;">');
|
||||
echo('<a href="'.$a["imagelink"].'">'.$a["imagelink"].'</a><br>');
|
||||
echo('Reason: <strong>'.$a['reason'].'</strong> /
|
||||
Email: <strong>'.$a['email'].'</strong>');
|
||||
echo('</div>');
|
||||
echo('<div class="userInfo" style="padding:5px;">');
|
||||
echo('<a href="/manage/del/'.$a["id"].'">Löschen</a>');
|
||||
echo('</div>');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}else{echo '<h2 style="margin:5px;">No Abuses</h2>';}?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
include( 'templates/footer.tpl.php' );
|
||||
?>
|
||||
@@ -1,195 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' );
|
||||
|
||||
function color_inverse($color){
|
||||
$color = str_replace('#', '', $color);
|
||||
if (strlen($color) != 6){ return '000000'; }
|
||||
$rgb = '';
|
||||
for ($x=0;$x<3;$x++){
|
||||
$c = 255 - hexdec(substr($color,(2*$x),2));
|
||||
$c = ($c < 0) ? 0 : dechex($c);
|
||||
$rgb .= (strlen($c) < 2) ? '0'.$c : $c;
|
||||
}
|
||||
return '#'.$rgb;
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<div align="center">
|
||||
|
||||
<form action="<?php echo Config::$absolutePath; ?>profile" enctype="multipart/form-data" method="post">
|
||||
<fieldset>
|
||||
<legend>Change Profile</legend>
|
||||
|
||||
<?php if( isset($messages['passToShort']) ) { ?>
|
||||
<div class="warn">Your password must be at least 6 characters long!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['passNotEqual']) ) { ?>
|
||||
<div class="warn">Your both passwords are not equal!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['avatarFailed']) ) { ?>
|
||||
<div class="warn">Your avatar Image could not be processed!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['colorFailed']) ) { ?>
|
||||
<div class="warn">Not a valid colorcode!</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
|
||||
<dl class="form">
|
||||
<dt>Passwort:</dt>
|
||||
<dd>
|
||||
<input type="password" name="cpass" /> (leave empty, if you don't want to change it)
|
||||
</dd>
|
||||
|
||||
<dt>(Repeat)</dt>
|
||||
<dd>
|
||||
<input type="password" name="cpass2" />
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<?php if( empty($user->email) ) { ?>
|
||||
<dt>E-Mail:</dt>
|
||||
<dd>
|
||||
<input type="text" name="email" />
|
||||
</dd>
|
||||
<?php } ?>
|
||||
|
||||
<dt>Website:</dt>
|
||||
<dd>
|
||||
<input type="text" name="website" value="<?php echo htmlspecialchars( $user->website ); ?>"/>
|
||||
</dd>
|
||||
|
||||
<dt>Avatar:</dt>
|
||||
<dd>
|
||||
<input type="file" name="avatar" style="color: #000; background-color: #fff;"/><br/>
|
||||
</dd>
|
||||
<dt>Color:</dt>
|
||||
<dd>
|
||||
<input class="color" maxlength="6" type="text" name="color" value="<?php echo htmlspecialchars( $user->color ); ?>" style="width:100px;"/> (default:: 000000)
|
||||
<br/>
|
||||
</dd>
|
||||
|
||||
<dt>Style:</dt>
|
||||
<dd>
|
||||
<select name="stylecolor">
|
||||
<?php if ($user->stylecolor == "black"){echo('<option value="black">Black</option><option value="white">White</option>');}elseif ($user->stylecolor == "white"){echo('<option value="white">White</option><option value="black">Black</option>');} ?>
|
||||
</select>
|
||||
</dd>
|
||||
|
||||
<dt> </dt>
|
||||
<dd>
|
||||
<input type="submit" name="save" class="button" value="Save" />
|
||||
</dd>
|
||||
|
||||
|
||||
</dl>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<form action="<?php echo Config::$absolutePath; ?>profile" enctype="multipart/form-data" method="post">
|
||||
<fieldset>
|
||||
<legend>Block user</legend>
|
||||
|
||||
<?php if( isset($messages['blocked']) ) { ?>
|
||||
<div class="success">User blocked!</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['blockFailed']) ) { ?>
|
||||
<div class="warn">Could not block user!</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['blockAlready']) ) { ?>
|
||||
<div class="warn">User already blocked!</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['userFailed']) ) { ?>
|
||||
<div class="warn">User not found!</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['unblocked']) ) { ?>
|
||||
<div class="success">User unblocked!</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['unblockFailed']) ) { ?>
|
||||
<div class="warn">Could not unblock user!</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['TEMP']) ) { ?>
|
||||
<div class="warn">WHAT?</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['notBlocked']) ) { ?>
|
||||
<div class="warn">User not blocked!</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<dl class="form">
|
||||
<?php
|
||||
|
||||
$blockedrow = DB::getRow("SELECT id,users FROM pl_blocked WHERE id=:1",$user->id);
|
||||
|
||||
if (!empty($blockedrow['users'])){
|
||||
$des = unserialize($blockedrow['users']);
|
||||
|
||||
foreach ( $des as $username){
|
||||
$userinfo = DB::query('SELECT id,name,images,avatar FROM pl_users WHERE name="'.$username.'"');
|
||||
?>
|
||||
<div style="text-align:left" class="userInfo">
|
||||
<img class="avatar" width="40" height="40" src="<?php echo Config::$absolutePath.$userinfo[0]['avatar']; ?>"/>
|
||||
<div class="name">
|
||||
<strong>
|
||||
<a href="<?php echo Config::$absolutePath.'user/'.$userinfo[0]['name']; ?>"><?php echo $userinfo[0]['name']; ?></a>
|
||||
</strong>
|
||||
</div>
|
||||
<div class="info">
|
||||
|
||||
Images: <strong><?php echo $userinfo[0]['images']; ?></strong>
|
||||
|
||||
</div>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
}else{ ?>
|
||||
|
||||
<div class="success">No users blocked!</div>
|
||||
|
||||
|
||||
<?php }?>
|
||||
|
||||
<dt>User:</dt>
|
||||
<dd>
|
||||
<input type="text" name="blockuser" />
|
||||
</dd>
|
||||
<dt> </dt>
|
||||
<dd>
|
||||
<input type="submit" name="block" class="button" value="Block" />
|
||||
</dd>
|
||||
|
||||
<dt>User:</dt>
|
||||
<dd>
|
||||
<?php
|
||||
|
||||
if (!empty($blockedrow['users'])){
|
||||
$des = unserialize($blockedrow['users']);
|
||||
echo('<select name="unblockuser">');
|
||||
echo('<option value="select">Select user</option>');
|
||||
foreach ( $des as $username){
|
||||
echo('<option value="'.$username.'">'.$username.'</option>');
|
||||
}
|
||||
echo('</select>');
|
||||
}else{ echo("No user blocked!");}
|
||||
|
||||
?>
|
||||
</dd>
|
||||
<dt> </dt>
|
||||
<dd>
|
||||
<input type="submit" name="unblock" class="button" value="Unblock" />
|
||||
</dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<?php include( $templates.'footer.tpl.php' ); ?>
|
||||
@@ -1,77 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' ); ?>
|
||||
|
||||
<script type="text/javascript" src="<?php echo Config::$absolutePath; ?>media/quicktags.js"></script>
|
||||
<h1>
|
||||
» Quicktagger
|
||||
</h1>
|
||||
|
||||
<div class="article" id="quickTagIntro">
|
||||
<h2>Quick tagging?</h2>
|
||||
<p>
|
||||
This special site automatically searches for images which are in desperate need of getting tagged.
|
||||
That is: new images without any or very few tags.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
This site is carefully designed to allow efficient tagging of images. You don't have to move your hands
|
||||
away from the keyboard - just write and press enter for the next image. Make sure javascript is
|
||||
enabled in your browser, or you wont see anything.
|
||||
</p>
|
||||
|
||||
|
||||
<h2>A few words about tagging</h2>
|
||||
|
||||
<p>
|
||||
If you are unsure what tags to write, just imagine you are searching for this image - what word(s) would you
|
||||
search for?
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Also, is there any written text on the image itself? Try to write only the most essential words down. For instance
|
||||
if you see a motivational with the text:
|
||||
</p>
|
||||
<blockquote>
|
||||
<strong>Huddle House</strong><br/>
|
||||
For those times when Waffle House isn't quite white trashy enough
|
||||
</blockquote>
|
||||
<p>
|
||||
good tags for this image would be "<em>motivational huddle house white trash</em>"
|
||||
</p>
|
||||
<p>
|
||||
If you don't know what to write, just press enter to skip the image.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Don't abuse the system in any way, or the wrath of the administrator will come done on you!</strong>
|
||||
</p>
|
||||
|
||||
|
||||
<h2><a href="#" onclick="return quickTagInit();"> » I get it, let's start already!</a></h2>
|
||||
</div>
|
||||
|
||||
<div id="viewer" class="hidden">
|
||||
<div id="imageInfo">
|
||||
<div>
|
||||
location: <a id="imageLocation" href="#"></a>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
Tags: <span id="tags"></span>
|
||||
</div>
|
||||
<form class="visible" id="addTag" action="" onsubmit="return quickTag($('logId').value, $('imageId').value, $('tagText'));">
|
||||
<input type="text" name="tags" id="tagText"/>
|
||||
<input type="hidden" id="imageId" name="imageId" value="0"/>
|
||||
<input type="hidden" id="logId" name="logId" value="0"/>
|
||||
<input type="button" name="save" value="Add Tags" class="button" onclick="quickTag($('logId').value, $('imageId').value, $('tagText'));"/>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="imageContainer">
|
||||
<img id="image" onclick="swap(this, 'scaled', 'full')" class="scaled" src=""/>
|
||||
</div>
|
||||
<br/>
|
||||
</div>
|
||||
|
||||
<?php include( $templates.'footer.tpl.php' ); ?>
|
||||
@@ -1,6 +0,0 @@
|
||||
<?php
|
||||
header( 'Content-type: text/javascript; charset=utf-8' );
|
||||
?>
|
||||
<?php foreach($ib->thumbs as $t ) { ?>
|
||||
document.write('<div id="commentbar"><a href="<?php echo Config::$frontendPath; ?>all/view/<?php echo $t['keyword']; ?>"><div id="commentimg"><img width="28" height="28" src="/media/random.png" alt="Random"></div><div id="commenttext"><strong>Random: </strong><br />Quark bitte!</div></a></div>');
|
||||
<?php } ?>
|
||||
@@ -1,82 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' ); ?>
|
||||
<div align="center">
|
||||
<form action="<?php echo Config::$absolutePath; ?>register" method="post">
|
||||
<fieldset>
|
||||
<legend>Create Account</legend>
|
||||
|
||||
<?php if(isset($messages['validInvite'])) { ?>
|
||||
<div class="warn">Not a valid invitecode!<br />Code: <?php echo $messages['validInvite'] ?></div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['nameInUse']) ) { ?>
|
||||
<div class="warn">This Username is already registered!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['nameInvalid']) ) { ?>
|
||||
<div class="warn">Your name must be at least 2 characters long an may not have any special characters!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['passToShort']) ) { ?>
|
||||
<div class="warn">Your password must be at least 6 characters long!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['passNotEqual']) ) { ?>
|
||||
<div class="warn">Your both passwords are not equal!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['emailInUse']) ) { ?>
|
||||
<div class="warn">There is already a registered user with this E-Mail address!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['wrongEmail']) ) { ?>
|
||||
<div class="warn">Your E-Mail address seems to be invalid!</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['registerClose']) ) { ?>
|
||||
<div class="warn">Register Closed!</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['captchaInc']) ) { ?>
|
||||
<div class="warn">Incorrect Captcha!</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<dl class="form">
|
||||
<dt>Username:</dt>
|
||||
<dd>
|
||||
<input type="text" name="name" value="<?php echo htmlspecialchars($_POST['name']); ?>"/>
|
||||
Only letters and numbers; at least 2 characters long; no spaces
|
||||
</dd>
|
||||
|
||||
<dt>E-Mail:</dt>
|
||||
<dd>
|
||||
<input type="text" name="email" value="<?php echo htmlspecialchars($_POST['email']); ?>"/>
|
||||
Must be valid!
|
||||
</dd>
|
||||
|
||||
<dt>Password:</dt>
|
||||
<dd>
|
||||
<input type="password" name="pass" class="pass"/>
|
||||
</dd>
|
||||
|
||||
<dt>(Repeat)</dt>
|
||||
<dd>
|
||||
<input type="password" name="pass2" class="pass"/>
|
||||
</dd>
|
||||
|
||||
<dt>Captcha:</dt>
|
||||
<dd>
|
||||
<?php
|
||||
require_once('recaptchalib.php');
|
||||
$publickey = "6LfIwOYSAAAAALllrivDb1JTAfKDIIzcjv_hwZ60"; // you got this from the signup page
|
||||
echo recaptcha_get_html($publickey);
|
||||
?>
|
||||
|
||||
</dd>
|
||||
|
||||
<dt> </dt>
|
||||
<dd>
|
||||
<input type="submit" name="register" class="button register" value="Register" />
|
||||
</dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<?php include( $templates.'footer.tpl.php' ); ?>
|
||||
@@ -1,48 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' ); ?>
|
||||
<div align="center">
|
||||
<?php if(isset($messages['validInvite'])) { ?>
|
||||
<div class="warn">Not a valid invitecode!<br />Code: <?php echo $messages['validInvite'] ?></div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['nameInUse']) ) { ?>
|
||||
<div class="warn">This Username is allready registered!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['nameInvalid']) ) { ?>
|
||||
<div class="warn">Your name must be at least 2 characters long an may not have any special characters!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['passToShort']) ) { ?>
|
||||
<div class="warn">Your password must be at least 6 characters long!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['passNotEqual']) ) { ?>
|
||||
<div class="warn">Your both passwords are not equal!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['emailInUse']) ) { ?>
|
||||
<div class="warn">There is already a registered user with this E-Mail address!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['wrongEmail']) ) { ?>
|
||||
<div class="warn">Your E-Mail address seems to be invalid!</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['registerClose']) ) { ?>
|
||||
<div class="warn">Register Closed!</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['captchaInc']) ) { ?>
|
||||
<div class="warn">Incorrect Captcha!</div>
|
||||
<?php } ?>
|
||||
|
||||
<fieldset>
|
||||
<legend>Register</legend>
|
||||
|
||||
<dl class="form">
|
||||
<dd>Registration is closed at the moment. Like us on Facebook to stay up2date:</dd>
|
||||
<dd><br /></dd>
|
||||
<dd><iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2F4duckie&width=600&height=590&colorscheme=dark&show_faces=true&border_color&stream=true&header=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:640px; height:590px;" allowTransparency="true"></iframe></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
</fieldset>
|
||||
</div>
|
||||
<?php include( $templates.'footer.tpl.php' ); ?>
|
||||
@@ -1,90 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' ); ?>
|
||||
<div align="center">
|
||||
<form action="<?php echo Config::$absolutePath; ?>register" method="post">
|
||||
<fieldset>
|
||||
<legend>Create Account</legend>
|
||||
|
||||
<?php if(isset($messages['validInvite'])) { ?>
|
||||
<div class="warn">Not a valid invitecode!<br />Code: <?php echo $messages['validInvite'] ?></div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['nameInUse']) ) { ?>
|
||||
<div class="warn">This Username is allready registered!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['nameInvalid']) ) { ?>
|
||||
<div class="warn">Your name must be at least 2 characters long an may not have any special characters!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['passToShort']) ) { ?>
|
||||
<div class="warn">Your password must be at least 6 characters long!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['passNotEqual']) ) { ?>
|
||||
<div class="warn">Your both passwords are not equal!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['emailInUse']) ) { ?>
|
||||
<div class="warn">There is already a registered user with this E-Mail address!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['wrongEmail']) ) { ?>
|
||||
<div class="warn">Your E-Mail address seems to be invalid!</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['registerClose']) ) { ?>
|
||||
<div class="warn">Register Closed!</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['captchaInc']) ) { ?>
|
||||
<div class="warn">Incorrect Captcha!</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<dl class="form">
|
||||
<dt>Name:</dt>
|
||||
<dd>
|
||||
<input type="text" name="name" value="<?php echo htmlspecialchars($_POST['name']); ?>"/>
|
||||
Only letters and numbers; at least 2 characters long
|
||||
</dd>
|
||||
|
||||
<dt>E-Mail:</dt>
|
||||
<dd>
|
||||
<input type="text" name="email" value="<?php echo htmlspecialchars($_POST['email']); ?>"/>
|
||||
Must be valid!
|
||||
</dd>
|
||||
|
||||
<dt>Password:</dt>
|
||||
<dd>
|
||||
<input type="password" name="pass" class="pass"/>
|
||||
</dd>
|
||||
|
||||
<dt>(Repeat)</dt>
|
||||
<dd>
|
||||
<input type="password" name="pass2" class="pass"/>
|
||||
</dd>
|
||||
|
||||
<dt>Invitecode: </dt>
|
||||
<dd>
|
||||
<div style="padding:5px;">
|
||||
<?php echo $r[1]; ?>
|
||||
<input type="hidden" name="invite" value="<?php echo $r[1]; ?>"/>
|
||||
</div>
|
||||
</dd>
|
||||
|
||||
<dt>Captcha</dt>
|
||||
<dd>
|
||||
<?php
|
||||
require_once('recaptchalib.php');
|
||||
$publickey = "6LfXrc8SAAAAAHtc2BaJZ_3OfRx4gLPREaVCLhS8"; // you got this from the signup page
|
||||
echo recaptcha_get_html($publickey);
|
||||
?>
|
||||
|
||||
</dd>
|
||||
|
||||
<dt> </dt>
|
||||
<dd>
|
||||
<input type="submit" name="register" class="button register" value="Register" />
|
||||
</dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<?php include( $templates.'footer.tpl.php' ); ?>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' ); ?>
|
||||
<div class="article">
|
||||
<h2>Account successfully created</h2>
|
||||
<p>You can now login.</p>
|
||||
|
||||
</div>
|
||||
<?php include( $templates.'footer.tpl.php' ); ?>
|
||||
@@ -1,11 +0,0 @@
|
||||
From: support@4ducky.com
|
||||
Subject: Welcome to %siteName%!
|
||||
|
||||
Hello %userName%,
|
||||
thank you for your registration at %siteName%.
|
||||
|
||||
To activate your account, please click the following link
|
||||
%frontendPath%login/%validationString%
|
||||
|
||||
|
||||
Your %siteName% Team
|
||||
@@ -1,42 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo Config::$siteTitle ?></title>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo Config::$absolutePath; ?>media/styles_b.css" />
|
||||
<link rel="Shortcut Icon" href="<?php echo Config::$absolutePath; ?>media/favicon.ico"/>
|
||||
<script type="text/javascript" src="<?php echo Config::$absolutePath; ?>media/general.js"></script>
|
||||
</head>
|
||||
<body style="margin: 0.2em 1em 0 1em; padding: 0;">
|
||||
|
||||
<h1 class="remotePost">4ducky.com - One click Uploader</h1>
|
||||
|
||||
<?php if( !$user->id ) { ?>
|
||||
<form action="remotepost.php" method="post">
|
||||
<em>Name:</em>
|
||||
<input type="text" name="name" style="width: 80px; margin-right: 10px" value="<?php echo htmlspecialchars($_POST['name']); ?>"/>
|
||||
|
||||
<em>Passwort:</em>
|
||||
<input type="password" style="width: 80px; margin-right: 10px" name="pass" />
|
||||
|
||||
<input type="submit" class="button login" name="login" value="Login" />
|
||||
<input type="hidden" name="remember" value="1"/>
|
||||
</form>
|
||||
<?php } else if( $user->isSpamLocked() ) { ?>
|
||||
<p>Sorry, you are not allowed to post more than 10 Images in 2 Hours.</p>
|
||||
<?php } else if( $status == 'ready' ) { ?>
|
||||
<p>Please click on the image you want to publish on 4ducky.com!</p>
|
||||
<p><strong>Rules:</strong> Gore, CP, Spam (no Thread) = Ban</p>
|
||||
<?php } else if( $status == 'failed' ) { ?>
|
||||
<p>Sorry, the Image could not be posted for the following reason:</p>
|
||||
<p><strong><?php echo implode(' ', $uploadErrors); ?></strong></p>
|
||||
<?php } else if( $status == 'posted' ) { ?>
|
||||
<p>Image posted! Thank you!</p>
|
||||
<script type="text/javascript">
|
||||
if( parent ) {
|
||||
parent.location = "<?php echo addslashes($_GET['xhrLocation']) ?>#RP_Success";
|
||||
}
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,5 +0,0 @@
|
||||
<div align="center" style="margin-top: 10px; margin-bottom: 25px;">
|
||||
|
||||
<iframe height="1800" width="848" src="http://fuehls.spreadshirt.de/" name="Spreadshop" id="Spreadshop" frameborder="0" onload="window.scrollTo(0, 0);"></iframe>
|
||||
|
||||
</div>
|
||||
@@ -1,311 +0,0 @@
|
||||
<?php
|
||||
$duckys = mysql_fetch_object(mysql_query('SELECT COUNT(id) AS zaehler FROM pl_users'))->zaehler;
|
||||
|
||||
$banned = mysql_fetch_object(mysql_query('SELECT COUNT(id) AS zaehler FROM pl_banned'))->zaehler;
|
||||
|
||||
$comm = mysql_fetch_object(mysql_query('SELECT COUNT(id) AS zaehler FROM pl_comments'))->zaehler;
|
||||
|
||||
$img = mysql_fetch_object(mysql_query('SELECT COUNT(id) AS zaehler FROM pl_images'))->zaehler;
|
||||
|
||||
$fav = mysql_fetch_object(mysql_query('SELECT COUNT(imageId) AS zaehler FROM pl_fav'))->zaehler;
|
||||
?>
|
||||
|
||||
<div align="center" style="margin-top: 25px; margin-bottom: 25px;">
|
||||
|
||||
<table class="duckytable" width="600px" cellspacing="0" cellpadding="0">
|
||||
<caption>4ducky.com Finances:</caption>
|
||||
<tr>
|
||||
<td>Current 4ducky balance:</td>
|
||||
<td><strong>20,00 Euro</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><div class="meter"><span style="width: 50%">50 % achieved</span></div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="text-align:left;">
|
||||
<div style="margin: 5px; float: right; vertical-align: bottom;">
|
||||
<script src="http://coinwidget.com/widget/coin.js"></script>
|
||||
<script>
|
||||
CoinWidgetCom.go({
|
||||
wallet_address: "13wcgskYqQ2L4cPtV6TJHyfzrQ8NT5Zt9e"
|
||||
, currency: "bitcoin"
|
||||
, counter: "amount"
|
||||
, alignment: "bl"
|
||||
, qrcode: false
|
||||
, auto_show: false
|
||||
, lbl_button: "Donate"
|
||||
, lbl_address: "My Bitcoin Address:"
|
||||
, lbl_count: "donations"
|
||||
, lbl_amount: "BTC"
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
Jeder User hat die Möglichkeit 4ducky.com mit Spenden zu unterstützen. Der 4ducky.com Server kostet derzeit 30 Euro im Monat.
|
||||
Wer etwas beisteuern möchte, der schickt einfach einen <a href="https://www.amazon.de/gp/product/BT00DHI7XI">Amazon-Gutschein</a> (bitte auf eure E-Mail Adresse und nur den Code per PN) an den User "<a href="http://www.4ducky.com/inbox/Pandora">Pandora</a>" oder spendet via Bitcoin an 13wcgskYqQ2L4cPtV6TJHyfzrQ8NT5Zt9e. Spender werden hier geehrt:
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><strong>Last activities & donations:</strong></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="duckytable" width="600px" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td style="width: 40%;"><strong>Date</strong></td>
|
||||
<td style="width: 40%;"><strong>Activity / Feeler</strong></td>
|
||||
<td style="width: 40%;"><strong>Amount</strong></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
jQuery("#spendenducks").slimScroll({
|
||||
height: "190px",
|
||||
width: "599px"
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div id="spendenducks">
|
||||
<table class="duckytable" width="600px" cellspacing="0" cellpadding="0">
|
||||
<tr class="spender">
|
||||
<td>Oktober 2015</td>
|
||||
<td><a href="/user/Pulvertoastmann">Pulvertoastmann</a></td>
|
||||
<td>+ 10,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Oktober 2015</td>
|
||||
<td><a href="/user/nadjer">nadjer</a></td>
|
||||
<td>+ 20,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="kosten">
|
||||
<td>Oktober 2015</td>
|
||||
<td>Server-Miete</td>
|
||||
<td>- 30,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>September 2015</td>
|
||||
<td><a href="/user/Moses">Moses</a></td>
|
||||
<td>+ 10,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="kosten">
|
||||
<td>September 2015</td>
|
||||
<td>Server-Miete</td>
|
||||
<td>- 30,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="kosten">
|
||||
<td>August 2015</td>
|
||||
<td>Server-Miete</td>
|
||||
<td>- 30,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>August 2015</td>
|
||||
<td>Anonym</td>
|
||||
<td>+ 30,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="kosten">
|
||||
<td>Juli 2015</td>
|
||||
<td>Server-Miete</td>
|
||||
<td>- 30,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Juni 2015</td>
|
||||
<td><a href="/user/DerFickNigger">DerFickNigger</a></td>
|
||||
<td>+ 10,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Juni 2015</td>
|
||||
<td><a href="/user/waluri">waluri</a></td>
|
||||
<td>+ 10,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Juni 2015</td>
|
||||
<td><a href="/user/Kastritis">Kastritis</a></td>
|
||||
<td>+ 17,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Juni 2015</td>
|
||||
<td><a href="/user/BASEDGOD">BASEDGOD</a></td>
|
||||
<td>+ 10,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="kosten">
|
||||
<td>Juni 2015</td>
|
||||
<td>Server-Miete</td>
|
||||
<td>- 30,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="kosten">
|
||||
<td>Mai 2015</td>
|
||||
<td>Server-Miete</td>
|
||||
<td>- 30,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>April 2015</td>
|
||||
<td><a href="/user/DerFickNigger">DerFickNigger</a></td>
|
||||
<td>+ 25,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="kosten">
|
||||
<td>April 2015</td>
|
||||
<td>Server-Miete</td>
|
||||
<td>- 30,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>März 2015</td>
|
||||
<td><a href="/user/AntraX">AntraX</a></td>
|
||||
<td>+ 88,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="kosten">
|
||||
<td>März 2015</td>
|
||||
<td>Server-Miete</td>
|
||||
<td>- 30,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Februar 2015</td>
|
||||
<td><a href="/user/Ahmed">Ahmed</a></td>
|
||||
<td>+ 50,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="kosten">
|
||||
<td>März 2015</td>
|
||||
<td>Server-Miete</td>
|
||||
<td>- 30,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Januar 2015</td>
|
||||
<td><a href="/user/FG">FG</a></td>
|
||||
<td>+ 30,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Januar 2015</td>
|
||||
<td><a href="/user/Nadjer">Nadjer</a></td>
|
||||
<td>+ 10,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="kosten">
|
||||
<td>Januar 2015</td>
|
||||
<td>Server-Miete</td>
|
||||
<td>- 30,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Dezember 2014</td>
|
||||
<td><a href="/user/Kastritis">Kastritis</a></td>
|
||||
<td>+ 11,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Dezember 2014</td>
|
||||
<td>vergessen wer</td>
|
||||
<td>+ 10,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Juli 2014</td>
|
||||
<td><a href="/user/RoterIndianer">RoterIndianer</a></td>
|
||||
<td>+ 40,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Juli 2014</td>
|
||||
<td><a href="/user/Seine_Durchlaucht">Seine_Durchlaucht</a></td>
|
||||
<td>+ 10,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Juli 2014</td>
|
||||
<td><a href="/user/Napalm">Napalm</a></td>
|
||||
<td>+ 10,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Juni 2014</td>
|
||||
<td><a href="/user/Sozialfall">Sozialfall</a></td>
|
||||
<td>+ 20,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Dezember 2013</td>
|
||||
<td><a href="/user/IchHab4Euro">IchHab4Euro</a></td>
|
||||
<td>+ 4,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Dezember 2013</td>
|
||||
<td><a href="/user/FG">FG</a></td>
|
||||
<td>+ 25,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Dezember 2013</td>
|
||||
<td><a href="/user/Kastritis">Kastritis</a></td>
|
||||
<td>+ 10,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>Oktober 2013</td>
|
||||
<td><a href="/user/Hitler">Hitler</a></td>
|
||||
<td>+ 20,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="spender">
|
||||
<td>September 2013</td>
|
||||
<td><a href="/user/Pandora">Pandora</a></td>
|
||||
<td>+ 20,00 Euro</td>
|
||||
</tr>
|
||||
<tr class="kosten">
|
||||
<td>September 2013</td>
|
||||
<td>Server-Miete</td>
|
||||
<td>- 20 Euro</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<table class="duckytable" width="600px" cellspacing="0" cellpadding="0">
|
||||
<caption>4ducky.com Statistics:</caption>
|
||||
|
||||
<tr>
|
||||
<td>Images:</td>
|
||||
<td><?php echo $img;?> Images</td>
|
||||
<td>~ <?php echo round($img/$duckys,2);?> Images/User</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td>Size:</td>
|
||||
<td>
|
||||
<?php
|
||||
$fp = fopen("data/size.txt","r");
|
||||
if ($fp) {
|
||||
while(!feof($fp)) {
|
||||
$text = fgets($fp);
|
||||
$size = substr($text,0,3);
|
||||
echo $size;
|
||||
}
|
||||
fclose($fp);
|
||||
}
|
||||
?> GB
|
||||
</td>
|
||||
<td>~ 100 GB Max Size</td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<td>User:</td>
|
||||
<td><?php echo $duckys;?> Duckies</td>
|
||||
<td><?php echo $banned;?> Banned Duckies</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Comments:</td>
|
||||
<td><?php echo $comm;?> Comments</td>
|
||||
<td>~ <?php echo round($comm/$duckys,2);?> Comments/User</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Likes:</td>
|
||||
<td><?php echo $fav;?> Likes</td>
|
||||
<td>~ <?php echo round($fav/$duckys,2);?> Likes/User</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td>Visits:</td>
|
||||
<td colspan="2" style="width: 50%;"><iframe src="http://www.seethestats.com/stats/7569/Visits_56ea3b613_ifr.html" style="width:400px;height:210px;border:none;" scrolling="no" frameborder="0"></iframe></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Pageviews:</td>
|
||||
<td colspan="2" style="width: 50%;"><iframe src="http://www.seethestats.com/stats/7569/Pageviews_0d72476f4_ifr.html" style="width:400px;height:210px;border:none;" scrolling="no" frameborder="0"></iframe></td>
|
||||
</tr>
|
||||
-->
|
||||
</table>
|
||||
|
||||
</div>
|
||||
@@ -1,69 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' );
|
||||
|
||||
$upl = DB::getRow("SELECT * FROM pl_settings");
|
||||
if ($upl["upload"] != 1){ ?>
|
||||
<div align="center">
|
||||
<fieldset>
|
||||
<legend>Upload / Post</legend>
|
||||
<div class="warn">
|
||||
There was an issue uploading your image:
|
||||
<ul>Upload Disabled.</ul>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<?php }else{
|
||||
?>
|
||||
<div align="center">
|
||||
<form action="<?php echo Config::$absolutePath; ?>upload" enctype="multipart/form-data" method="POST">
|
||||
<fieldset>
|
||||
<legend>Upload / Post</legend>
|
||||
|
||||
|
||||
<?php if( !empty( $uploadErrors ) ) { ?>
|
||||
<div class="warn">
|
||||
There was an issue uploading your image:
|
||||
<ul>
|
||||
<?php foreach( $uploadErrors as $msg ) { ?>
|
||||
<li class="error"><?php echo $msg?></li>
|
||||
<?php }/*foreach*/?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php }/*if*/?>
|
||||
|
||||
<dl class="form">
|
||||
<dt>Info:</dt>
|
||||
<dd>
|
||||
- Sinnloser Goreupload = Ban
|
||||
</dd>
|
||||
<dt> </dt>
|
||||
<dd>
|
||||
- Nur lustige Sachen erlaubt.
|
||||
</dd>
|
||||
<dt> </dt>
|
||||
<dd>
|
||||
- Wenn ihr Fragen habt schreibt eine PN - oh wait hier ist nicht Schwuchtel-4fuckr, nervt jemand Anderen mit euren Problemen.
|
||||
</dd>
|
||||
<dt> </dt> <dd> </dd>
|
||||
<dt>File:</dt>
|
||||
<dd>
|
||||
<input type="file" name="image" style="color: #000; background-color: #fff;"/>
|
||||
</dd>
|
||||
|
||||
<dt>or URL:</dt>
|
||||
<dd>
|
||||
<input type="text" name="url" value="<?php echo htmlspecialchars( $_POST['url'] ); ?>"/>
|
||||
</dd>
|
||||
<dt>Comment</dt>
|
||||
<dd>
|
||||
<textarea name="ucomment" rows="3" cols="60"></textarea>
|
||||
</dd>
|
||||
|
||||
<dt> </dt>
|
||||
<dd>
|
||||
<input type="submit" name="upload" value="Upload" class="button"/>
|
||||
</dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<?php } include( $templates.'footer.tpl.php' ); ?>
|
||||
@@ -1,54 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' ); ?>
|
||||
<h1>
|
||||
» Browsing Users,
|
||||
Page: <?php echo $ul->pages['current']; ?> of <?php echo $ul->pages['total']; ?>
|
||||
</h1>
|
||||
|
||||
|
||||
<?php
|
||||
if ($user->stylecolor == "black") {
|
||||
$border="border:1px solid #333;";
|
||||
}else{
|
||||
$border = ' border:1px solid #d2d9e7; ';
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php foreach( $ul->users as $i => $u ) { ?>
|
||||
<div class="userInfo" style=" <?php echo $border; ?> ">
|
||||
<img class="avatar" width="40" height="40" src="<?php echo Config::$absolutePath.$u['avatar']; ?>"/>
|
||||
<div class="name">
|
||||
<strong>
|
||||
<a href="<?php echo Config::$absolutePath.'user/'.$u['name']; ?>"><?php echo $u['name']; ?></a>
|
||||
</strong>
|
||||
</div>
|
||||
<div class="info">
|
||||
|
||||
Images: <strong><?php echo $u['images']; ?></strong>
|
||||
<?php if( !empty($u['website'])) { ?>|
|
||||
<strong><a href="<?php echo htmlspecialchars($u['website']); ?>" target="_blank">
|
||||
Website
|
||||
</a></strong>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="userInfo">
|
||||
<?php if( isset($ul->pages['prev']) ) { ?>
|
||||
<a href="<?php echo Config::$absolutePath.'users/page/'.$ul->pages['prev']; ?>" class="textPrev" title="Previous">« Previous</a>
|
||||
<?php } else { ?>
|
||||
<div class="textNoPrev">« Previous</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($ul->pages['next']) ) { ?>
|
||||
<a href="<?php echo Config::$absolutePath.'users/page/'.$ul->pages['next']; ?>" class="textNext" title="Next">Next »</a>
|
||||
<?php } else { ?>
|
||||
<div class="textNoNext">Next »</div>
|
||||
<?php } ?>
|
||||
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
|
||||
<?php include( $templates.'footer.tpl.php' ); ?>
|
||||
@@ -1,511 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
An object of this class represents a user on the site. All user
|
||||
related tasks (registration, login, profile etc.) are handled here.
|
||||
|
||||
A user object is created and attempted to login on each page load.
|
||||
*/
|
||||
|
||||
require_once( 'lib/config.php' );
|
||||
require_once( 'lib/db.php' );
|
||||
|
||||
class User {
|
||||
public $name = '';
|
||||
public $id = 0;
|
||||
public $validationString = '';
|
||||
public $admin = 0;
|
||||
public $website = 0;
|
||||
public $color = "0";
|
||||
public $stylecolor = "black";
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
public function validate( $id ) {
|
||||
$u = DB::getRow(
|
||||
'SELECT id, name, admin, website, color, style FROM '.TABLE_USERS.' WHERE valid = 0 AND remember = :1',
|
||||
$id
|
||||
);
|
||||
|
||||
if( empty($u) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
DB::updateRow( TABLE_USERS, array('id' => $u['id']), array( 'valid' => 1) );
|
||||
|
||||
session_name( Config::$sessionCookie );
|
||||
session_start();
|
||||
$_SESSION['id'] = $this->id = $u['id'];
|
||||
$_SESSION['name'] = $this->name = $u['name'];
|
||||
$_SESSION['admin'] = $this->admin = $u['admin'];
|
||||
$_SESSION['website'] = $this->website = $u['website'];
|
||||
$_SESSION['color'] = $this->color = $u['color'];
|
||||
$_SESSION['stylecolor'] = $this->stylecolor = $u['style'];
|
||||
|
||||
setcookie( Config::$rememberCookie, $id, time() + 3600 * 24 * 365, Config::$absolutePath );
|
||||
|
||||
if( Config::$vbbIntegration['enabled'] ) {
|
||||
global $vbulletin;
|
||||
$forum = new ForumOps($vbulletin);
|
||||
$forum->login(array('username' => $u['name']));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function isSpamLocked() {
|
||||
// delete all ips older than IP_LOCK_TIME
|
||||
DB::query( 'DELETE FROM '.TABLE_UPLOADLOCK.' WHERE ts < :1', time() - Config::$uploadLockTime );
|
||||
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
$r = DB::getRow( 'SELECT COUNT(*) AS c FROM '.TABLE_UPLOADLOCK.'
|
||||
WHERE ip = :1',
|
||||
$ip
|
||||
);
|
||||
|
||||
if( $r['c'] > Config::$maxNumUploads ) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
public function isSpamer() {
|
||||
|
||||
|
||||
$r = DB::getRow( 'SELECT logged FROM pl_images
|
||||
WHERE user = :1 order by logged desc',
|
||||
$this->id
|
||||
);
|
||||
$time = strtotime($r["logged"]);
|
||||
|
||||
if( (time() - (integer)$time) < 10 ) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function isSpamming() {
|
||||
|
||||
|
||||
$count = DB::getRow( 'SELECT COUNT(*) as c FROM pl_images
|
||||
WHERE user = :1',
|
||||
$this->id
|
||||
);
|
||||
|
||||
if ( $count["c"] >= 3){
|
||||
|
||||
$r = DB::query( 'SELECT image,keyword,logged FROM pl_images
|
||||
WHERE user = :1 LIMIT '.((integer)$count["c"]-3).',2',
|
||||
$this->id
|
||||
);
|
||||
|
||||
|
||||
$r0 = DB::getRow( 'SELECT image,keyword,logged FROM pl_images
|
||||
WHERE user = :1 LIMIT '.((integer)$count["c"]-1).',1',
|
||||
$this->id
|
||||
);
|
||||
|
||||
require_once("img_class.php");
|
||||
$ban =0;
|
||||
foreach ($r as $checkable) {
|
||||
|
||||
echo(strtotime($r0["logged"])." - ");
|
||||
echo(strtotime($checkable["logged"]));
|
||||
|
||||
if ((strtotime($r0["logged"]) - strtotime($checkable["logged"])) < 15){
|
||||
|
||||
|
||||
|
||||
$splitter = split("/",$checkable["keyword"]);
|
||||
$file2 = $splitter[0]."/".$splitter[1]."/".$checkable["image"];
|
||||
$splitter = split("/",$r0["keyword"]);
|
||||
$file1 = $splitter[0]."/".$splitter[1]."/".$r0["image"];
|
||||
|
||||
$diff = new imagediff("data/images/".$file2, "data/images/".$file1);
|
||||
$dif = $diff->diff();
|
||||
|
||||
if ($dif > 0.92){
|
||||
$ban += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($ban >= 2){
|
||||
return true;
|
||||
}else{
|
||||
return false;}
|
||||
}else{ return false;}
|
||||
}
|
||||
|
||||
public function logUpload() {
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
DB::insertRow( TABLE_UPLOADLOCK, array('ip' => $ip, 'ts' => time(),'user' => $this->id) );
|
||||
}
|
||||
|
||||
public function login() {
|
||||
|
||||
// attempt to login via post, session or remeber cookie
|
||||
|
||||
|
||||
|
||||
session_name( Config::$sessionCookie );
|
||||
|
||||
if( isset($_POST['login']) ) { // post login
|
||||
$u = DB::getRow(
|
||||
'SELECT id, name, admin, website, color, style FROM '.TABLE_USERS.' WHERE name = :1 AND pass = :2 and valid = 1',
|
||||
$_POST['name'], md5($_POST['pass'])
|
||||
);
|
||||
|
||||
if (DB::getRow("SELECT id FROM pl_banned WHERE id=:1",$u['id'])){
|
||||
return "banned";
|
||||
}
|
||||
|
||||
if( !empty($u) ) {
|
||||
|
||||
|
||||
session_start();
|
||||
$_SESSION['id'] = $this->id = $u['id'];
|
||||
$_SESSION['name'] = $this->name = $u['name'];
|
||||
$_SESSION['admin'] = $this->admin = $u['admin'];
|
||||
$_SESSION['website'] = $this->website = $u['website'];
|
||||
$_SESSION['color'] = $this->color = $u['color'];
|
||||
$_SESSION['stylecolor'] = $this->stylecolor = $u['style'];
|
||||
|
||||
if( !empty($_POST['remember']) ) {
|
||||
$r = md5(uniqid(rand()));
|
||||
DB::updateRow( TABLE_USERS, array('id' => $this->id), array('remember' => $r ) );
|
||||
setcookie( Config::$rememberCookie, $r, time() + 3600 * 24 * 365, Config::$absolutePath );
|
||||
}
|
||||
|
||||
if( Config::$vbbIntegration['enabled'] ) {
|
||||
global $vbulletin;
|
||||
$forum = new ForumOps($vbulletin);
|
||||
$forum->login(array('username' => $u['name']));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else if( !empty($_COOKIE[Config::$sessionCookie]) ) { // session running
|
||||
session_start();
|
||||
if( empty($_SESSION['id']) ) {
|
||||
setcookie(Config::$sessionCookie, false, time() - 3600, Config::$absolutePath );
|
||||
} else {
|
||||
$this->id = $_SESSION['id'];
|
||||
$this->name = $_SESSION['name'];
|
||||
$this->admin = $_SESSION['admin'];
|
||||
$this->website = $_SESSION['website'];
|
||||
$this->color = $u['color'];
|
||||
$this->stylecolor = $u['stylecolor'];
|
||||
if (DB::getRow("SELECT id FROM pl_banned WHERE id=:1",$this->id)){
|
||||
$this->logout();
|
||||
return "banned";
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else if( !empty($_COOKIE[Config::$rememberCookie]) ) { // remember cookie found
|
||||
$u = DB::getRow(
|
||||
'SELECT id, name, admin, website, style, color FROM '.TABLE_USERS.' WHERE remember = :1',
|
||||
$_COOKIE[Config::$rememberCookie]
|
||||
);
|
||||
if( !empty($u) ) {
|
||||
|
||||
session_start();
|
||||
$_SESSION['id'] = $this->id = $u['id'];
|
||||
$_SESSION['name'] = $this->name = $u['name'];
|
||||
$_SESSION['admin'] = $this->admin = $u['admin'];
|
||||
$_SESSION['website'] = $this->website = $u['website'];
|
||||
$_SESSION['color'] = $this->color = $u['color'];
|
||||
$_SESSION['stylecolor'] = $this->stylecolor = $u['style'];
|
||||
|
||||
// refresh for another year
|
||||
setcookie( Config::$rememberCookie, $_COOKIE[Config::$rememberCookie], time() + 3600 * 24 * 365, Config::$absolutePath );
|
||||
|
||||
if (DB::getRow("SELECT id FROM pl_banned WHERE id=:1",$u['id'])){
|
||||
$this->logout();
|
||||
return "banned";
|
||||
}
|
||||
if( Config::$vbbIntegration['enabled'] ) {
|
||||
global $vbulletin;
|
||||
$forum = new ForumOps($vbulletin);
|
||||
$forum->login(array('username' => $u['name']));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function profile( $localFile, &$messages ) {
|
||||
$upd = array( 'website' => $_POST['website'] );
|
||||
|
||||
$_SESSION['website'] = $_POST['website'];
|
||||
|
||||
if( Config::$vbbIntegration['enabled'] ) {
|
||||
global $vbulletin;
|
||||
$forum = new ForumOps($vbulletin);
|
||||
}
|
||||
|
||||
$p = trim($_POST['cpass']);
|
||||
if( !empty( $p ) ) {
|
||||
if( strlen($_POST['cpass']) < 6 ) {
|
||||
$messages['passToShort'] = true;
|
||||
}
|
||||
else if( $_POST['cpass'] != $_POST['cpass2'] ) {
|
||||
$messages['passNotEqual'] = true;
|
||||
}
|
||||
else {
|
||||
$upd['pass'] = md5($_POST['cpass2']);
|
||||
if( Config::$vbbIntegration['enabled'] ) {
|
||||
$forum->set_pass( $_SESSION['name'], $_POST['cpass2']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( !empty( $localFile ) ) {
|
||||
require_once( 'lib/images.php' );
|
||||
|
||||
list( $imgWidth, $imgHeight, $imgtype ) = getimagesize($localFile);
|
||||
|
||||
if ( $imgWidth == 64 && $imgHeight == 64 && $imgtype == IMAGETYPE_GIF){
|
||||
$name = Config::$images['avatarsPath'].uniqid().'.gif';
|
||||
if (!move_uploaded_file($localFile,$name)){
|
||||
$messages['avatarFailed'] = true;
|
||||
$upd['avatar'] = Config::$images['avatarsPath']."default.png";
|
||||
}else{
|
||||
$upd['avatar'] = $name;
|
||||
}
|
||||
}else{
|
||||
$name = Config::$images['avatarsPath'].uniqid().'.jpg';
|
||||
|
||||
if( Image::createThumb( $localFile, $name, 64,64 ) ) {
|
||||
$upd['avatar'] = $name;
|
||||
} else {
|
||||
$messages['avatarFailed'] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($_POST['color'])){
|
||||
if(preg_match('/^[a-f0-9]{6}$/i', $_POST['color'])){
|
||||
$upd['color'] = $_POST['color'];
|
||||
}else{
|
||||
$messages['colorFailed'] = true;
|
||||
}
|
||||
}
|
||||
//--------------------------------------------------------------------blockuser
|
||||
if(!empty($_POST['blockuser'])){
|
||||
if(preg_match('/^\w{2,20}$/', $_POST['blockuser'])){
|
||||
$blockedusers = array();
|
||||
$blockedusers = DB::getRow("SELECT id, users FROM pl_blocked WHERE id=:1",$this->id);
|
||||
|
||||
if(!empty($blockedusers)){
|
||||
$blockedusers = unserialize($blockedusers['users']);
|
||||
if (in_array($_POST['blockuser'],$blockedusers)){
|
||||
$messages['blockAlready'] = true;
|
||||
}else{
|
||||
if(DB::query('SELECT * FROM pl_users WHERE name=:1', $_POST['blockuser'])){
|
||||
|
||||
array_push($blockedusers,$_POST['blockuser']);
|
||||
if(DB::query('UPDATE pl_blocked SET users=:1 WHERE id=:2', serialize($blockedusers),$this->id)){
|
||||
$messages['blocked'] = true;
|
||||
}else{
|
||||
$messages['blockFailed'] = true;
|
||||
}
|
||||
}else{
|
||||
$messages['userFailed'] = true;
|
||||
}
|
||||
|
||||
}
|
||||
}else{
|
||||
if(DB::query('SELECT * FROM pl_users WHERE name=:1', $_POST['blockuser'])){
|
||||
$newarray = array();
|
||||
array_push($newarray,$_POST['blockuser']);
|
||||
|
||||
if(DB::query("INSERT INTO pl_blocked (id,users) VALUES (:1,:2)",$this->id,serialize($newarray))){
|
||||
$messages['blocked'] = true;
|
||||
}else{
|
||||
$messages['blockFailed'] = true;
|
||||
}
|
||||
|
||||
}else{
|
||||
$messages['userFailed'] = true;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
$messages['blockFailed'] = true;
|
||||
}
|
||||
|
||||
}
|
||||
//--------------------------------------------------------------------UNblockuser
|
||||
function remove_item_by_value($array, $val = '', $preserve_keys = true) {
|
||||
if (count($array) == 1) return false;
|
||||
if (empty($array) || !is_array($array)) return false;
|
||||
if (!in_array($val, $array)) return $array;
|
||||
|
||||
foreach($array as $key => $value) {
|
||||
if ($value == $val) unset($array[$key]);
|
||||
}
|
||||
|
||||
return ($preserve_keys === true) ? $array : array_values($array);
|
||||
}
|
||||
//--------------------------------------------------------------------UNblockuser
|
||||
if(!empty($_POST['unblockuser'])){
|
||||
if(preg_match('/^\w{2,20}$/', $_POST['unblockuser'])){
|
||||
if(DB::query('SELECT * FROM pl_users WHERE name=:1', $_POST['unblockuser'])){
|
||||
$blockedusers = array();
|
||||
$blockedusers = DB::getRow("SELECT id, users FROM pl_blocked WHERE id=:1",$this->id);
|
||||
if(!empty($blockedusers)){
|
||||
$blockedusers = unserialize($blockedusers['users']);
|
||||
if (in_array($_POST['unblockuser'],$blockedusers)){
|
||||
$blockedusers = remove_item_by_value($blockedusers,$_POST['unblockuser']);
|
||||
if ($blockedusers){
|
||||
DB::query('UPDATE pl_blocked SET users=:1 WHERE id=:2', serialize($blockedusers),$this->id);
|
||||
$messages['unblocked'] = true;
|
||||
}else{
|
||||
DB::query('DELETE FROM pl_blocked WHERE id=:1',$this->id);
|
||||
$messages['unblocked'] = true;
|
||||
}
|
||||
}else{$messages['notBlocked'] = true;}
|
||||
}else{$messages['unblockFailed'] = true;}
|
||||
}else{$messages['userFailed'] = true;}
|
||||
}else{$messages['unblockFailed'] = true;}
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------STYLE
|
||||
|
||||
if(isset($_POST['stylecolor'])) {
|
||||
if($_POST['stylecolor'] == 'white') {
|
||||
|
||||
$upd['style'] = $_POST['stylecolor'];
|
||||
|
||||
} elseif($_POST['stylecolor'] == 'black') {
|
||||
$upd['style'] = $_POST['stylecolor'];
|
||||
} else{
|
||||
$upd['style'] = $_POST['black'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if( empty($this->email) &&
|
||||
preg_match('/^[\.\w\-]{1,}@[\.\w\-]{2,}\.[\w]{2,}$/', $_POST['email'])
|
||||
) {
|
||||
if( Config::$vbbIntegration['enabled'] ) {
|
||||
$forum->set_email( $_SESSION['name'], $_POST['email']);
|
||||
}
|
||||
$upd['email'] = $_POST['email'];
|
||||
}
|
||||
|
||||
DB::updateRow( TABLE_USERS, array( 'id' => $this->id ), $upd );
|
||||
}
|
||||
|
||||
public function loadEmail() {
|
||||
$tmp = DB::getRow(
|
||||
'SELECT email,color,style FROM '.TABLE_USERS.' WHERE id = :1',
|
||||
$this->id
|
||||
);
|
||||
$this->email = $tmp['email'];
|
||||
$this->color = $tmp['color'];
|
||||
$this->stylecolor = $tmp['style'];
|
||||
}
|
||||
|
||||
public function logout() {
|
||||
session_unset();
|
||||
session_destroy();
|
||||
$_SESSION = array();
|
||||
setcookie( Config::$rememberCookie, false, time() - 3600, Config::$absolutePath );
|
||||
setcookie( Config::$sessionCookie, false, time() - 3600, Config::$absolutePath );
|
||||
|
||||
if( Config::$vbbIntegration['enabled'] ) {
|
||||
global $vbulletin;
|
||||
$forum = new ForumOps($vbulletin);
|
||||
$forum->logout();
|
||||
}
|
||||
}
|
||||
|
||||
public function increaseScore( $amount ) {
|
||||
DB::query(
|
||||
'UPDATE '.TABLE_USERS.' SET score = score + :1 WHERE id = :2',
|
||||
intval( $amount ),
|
||||
$this->id
|
||||
);
|
||||
}
|
||||
|
||||
public function register( &$messages ) {
|
||||
|
||||
DB::query( 'DELETE FROM '.TABLE_USERS.' WHERE valid = 0 AND registered < NOW() - INTERVAL 30 MINUTE' );
|
||||
|
||||
if( !preg_match('/^\w{2,20}$/', $_POST['name']) ) {
|
||||
$messages['nameInvalid'] = true;
|
||||
} else {
|
||||
$u = DB::getRow( 'SELECT * FROM '.TABLE_USERS.' WHERE name = :1', $_POST['name'] );
|
||||
if( !empty($u) ) {
|
||||
$messages['nameInUse'] = true;
|
||||
}
|
||||
}
|
||||
|
||||
if( strlen($_POST['pass']) < 6 ) {
|
||||
$messages['passToShort'] = true;
|
||||
}
|
||||
else if( $_POST['pass'] != $_POST['pass2'] ) {
|
||||
$messages['passNotEqual'] = true;
|
||||
}
|
||||
|
||||
if( !preg_match( '/^[\.\w\-]{1,}@[\.\w\-]{2,}\.[\w]{2,}$/', $_POST['email'] ) ) {
|
||||
$messages['wrongEmail'] = true;
|
||||
} else {
|
||||
$u = DB::getRow( 'SELECT * FROM '.TABLE_USERS.' WHERE email = :1', $_POST['email'] );
|
||||
if( !empty($u) ) {
|
||||
$messages['emailInUse'] = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if( !empty($messages) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
$this->validationString = md5(uniqid(rand()));
|
||||
|
||||
DB::insertRow( TABLE_USERS, array(
|
||||
'registered' => date('Y-m-d H:i:s'),
|
||||
'name' => $_POST['name'],
|
||||
'pass' => md5($_POST['pass']),
|
||||
'valid' => 0,
|
||||
'score' => 0,
|
||||
'images' => 0,
|
||||
'website' => '',
|
||||
'avatar' => Config::$images['avatarsPath'].'default.png',
|
||||
'remember' => $this->validationString,
|
||||
'admin' => 0,
|
||||
'email' => $_POST['email'],
|
||||
'color' => '0',
|
||||
'style' => '"black"'
|
||||
));
|
||||
|
||||
if( Config::$vbbIntegration['enabled'] ) {
|
||||
global $vbulletin;
|
||||
$forum = new ForumOps($vbulletin);
|
||||
$user['name'] = $_POST['name'];
|
||||
$user['pass'] = $_POST['pass'];
|
||||
$user['email'] = $_POST['email'];
|
||||
echo $forum->register_newuser($user, false);
|
||||
}
|
||||
|
||||
$mail = file_get_contents( Config::$templates.'registrationmail.txt' );
|
||||
preg_match( '/From: (?<from>.*?)\r?\nSubject: (?<subject>.*?)\r?\n\r?\n(?<text>.*)/sim', $mail, $mail );
|
||||
$mail['text'] = str_replace( '%validationString%', $this->validationString, $mail['text'] );
|
||||
$mail['text'] = str_replace( '%siteName%', Config::$siteName, $mail['text'] );
|
||||
$mail['text'] = str_replace( '%frontendPath%', Config::$frontendPath, $mail['text'] );
|
||||
$mail['text'] = str_replace( '%userName%', $_POST['name'], $mail['text'] );
|
||||
|
||||
$mail['subject'] = str_replace( '%siteName%', Config::$siteName, $mail['subject'] );
|
||||
$mail['subject'] = str_replace( '%userName%', $_POST['name'], $mail['subject'] );
|
||||
|
||||
mail( $_POST['email'], $mail['subject'], $mail['text'], 'FROM: '.$mail['from'] );
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,256 +0,0 @@
|
||||
<?php include( $templates.'header.tpl.php' );
|
||||
|
||||
$csi = "";
|
||||
if ($iv->image["color"] != "000000"){
|
||||
$csi = 'style="color:#'.$iv->image["color"].'"';
|
||||
}
|
||||
|
||||
//if (!$user->id){
|
||||
// echo('<div class="warn" style="text-align:center"> Only registered users can see images! Register now. </div>');
|
||||
// include( $templates.'footer.tpl.php' );
|
||||
// exit();
|
||||
// }
|
||||
|
||||
//DB::query("UPDATE `pl_images` SET `views` = views + '1' WHERE id=:1",$iv->image['id']);
|
||||
// $bild = DB::getRow("SELECT views as views,source as source FROM pl_images WHERE id=:1",$iv->image['id']);
|
||||
|
||||
// $comment = DB::getRow("SELECT COUNT(*) as count FROM pl_comments WHERE imageId=:1",$iv->image['id']);
|
||||
|
||||
$comment_open = DB::getRow("SELECT comment as open FROM pl_images WHERE id=:1",$iv->image['id']);
|
||||
?>
|
||||
|
||||
<script type="text/javascript" src="/js/lightbox.js"></script>
|
||||
|
||||
<h1> » Viewing
|
||||
<?php if( !empty($iv->user) ) { ?>
|
||||
User: <a href="<?php echo Config::$absolutePath.'user/'.$iv->user['name']; ?>"><?php echo $iv->user['name']; ?></a>
|
||||
<?php } else if( !empty($iv->channel) ) { ?>
|
||||
Channel: <a href="<?php echo Config::$absolutePath.'channel/'.$iv->channel['keyword']; ?>"><?php echo $iv->channel['name']; ?></a>
|
||||
<?php } else { ?>
|
||||
: <?php echo $pname ?>, uploaded <?php echo $iv->howlong($iv->image['loggedTS'],time());} ?> (<?php echo date('d. M Y H:i',$iv->image['loggedTS']); ?>)
|
||||
</h1>
|
||||
|
||||
<div id="viewer">
|
||||
<?php if( isset($iv->stream['prev']) ) { ?>
|
||||
<a href="<?php echo Config::$absolutePath.$iv->basePath.'view/'.$iv->stream['prev']; ?>" class="prev" id="prevBar" title="Previous">Previous</a>
|
||||
<?php } else { ?>
|
||||
<div class="noPrev" id="prevBar">Previous</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($iv->stream['next']) ) { ?>
|
||||
<a href="<?php echo Config::$absolutePath.$iv->basePath.'view/'.$iv->stream['next']; ?>" class="next" id="nextBar" title="Next">Next</a>
|
||||
<?php } else { ?>
|
||||
<div class="noNext" id="nextBar">Next</div>
|
||||
<?php } ?>
|
||||
|
||||
<div id="imageContainer">
|
||||
<?php if ($user->id){?>
|
||||
<img class="scaled" id="image" onclick="swap(this, 'scaled', 'full')" src="<?php echo Config::$absolutePath.Config::$images['imagePath'].$iv->image['path']; ?>" alt="<?php echo $pname ?>"/>
|
||||
<?php }else{?>
|
||||
<a href="/register"><img id="image" src="/images/gate.png" alt="register"/></a><br />
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id="imageInfo">
|
||||
|
||||
<div class="userInfo">
|
||||
<img class="avatar" width="50" height="50" alt="Avatar" src="<?php echo Config::$absolutePath.$iv->userInfo['avatar']; ?>"/>
|
||||
|
||||
<?php if ($user->id){?>
|
||||
<a onmouseover="img1.src='/media/duck.png';" onmouseout="img1.src='/media/ducksw.png';" style="font-size: 45px; float:right;margin-top:-9px;" href="javascript:;" onclick="LoadData('fav','FavDiv',<?php echo $iv->image['id']; ?>)"><img name=img1 src="/media/ducksw.png" alt="fav" height="64px" width="64px"/></a>
|
||||
<?php } ?>
|
||||
|
||||
<div class="name"><strong><a title="<?php echo('ID: '.$iv->userInfo['id'].' | Images: '.$iv->userInfo['images']); ?>" <?php echo($csi);?> href="<?php echo Config::$absolutePath.'user/'.$iv->userInfo['name']; ?>"><?php echo $iv->userInfo['name']; ?></a> </strong>
|
||||
|
||||
<?php
|
||||
if ($iv->userInfo['id'] == 180) {echo "ϟϟ xxx Stellvertreter";}
|
||||
elseif ($iv->userInfo['id'] == 191) {echo "aka. katzenschnupfen :3";}
|
||||
elseif ($iv->userInfo['id'] == 807) {echo "Beliebteste Neuente";}
|
||||
elseif ($iv->userInfo['id'] == 29) {echo "RGR";}
|
||||
elseif ($iv->userInfo['id'] == 74) {echo "ϟϟ Arschfodse";}
|
||||
elseif ($iv->userInfo['id'] == 238) {echo "Musikente";}
|
||||
elseif ($iv->userInfo['id'] == 297) {echo "DarkPsyPolizei";}
|
||||
elseif ($iv->userInfo['id'] == 75) {echo "DJ";}
|
||||
elseif ($iv->userInfo['id'] == 12) {echo "König der ✡ und ewiger Mod";}
|
||||
elseif ($iv->userInfo['id'] > 250) {echo "☪";}
|
||||
elseif ($iv->userInfo['id'] < 89) {echo "ϟϟ";}
|
||||
elseif ($iv->userInfo['id'] > 89) {echo "✡";}
|
||||
|
||||
else {echo "☭";} ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if ($user->id){ ?>
|
||||
<div class="info"><a class="smalllink" href="javascript:;" onclick="javascript:toggle('MessageForm');">message</a> | <a href="#CommentForm">comment</a> | <?php }else{ ?> <div class="info"><?php }?><a class="smalllink" href="javascript:;" onclick="javascript:toggle('ShareForm');">share</a> | <a target="_blank" href="https://www.google.com/searchbyimage?hl=en&safe=off&site=search&image_url=http://www.4ducky.com<?php echo Config::$absolutePath.Config::$images['imagePath'].$iv->image['path']; ?>">search</a> | <a target="_blank" href="http://imgops.com/http://www.4ducky.com<?php echo Config::$absolutePath.Config::$images['imagePath'].$iv->image['path']; ?>">edit</a> | <a href="javascript:;" onclick="javascript:toggle('AbuseForm');">abuse</a></div>
|
||||
|
||||
<?php if($user->admin) { ?>
|
||||
<div class="info" style="font-size: 14px; border:dotted 1px #666;float:left;padding:1px; margin-top:8px;">Score: <?php echo $iv->image["score"]; ?> |
|
||||
<?php if ($user->id == "1"){ ?> <a href="javascript:;" onclick="movehof(<?php echo $iv->image['id']; ?>)">HoF</a> | <a href="javascript:;" onclick="banUser(<?php echo $iv->userInfo['id']; ?>)">Ban</a> | <?php } ?><a href="javascript:;" onclick="TimeUser(<?php echo $iv->userInfo['id']; ?>)">TimeBlock User</a> | <a href="javascript:;" onclick="CloseThread(<?php echo $iv->image['id']; ?>)">Close Thread</a> | <a href="javascript:;" onclick="del(<?php echo $iv->image['id']; ?>)">Delete Pic</a></div></div>
|
||||
<br/>
|
||||
<!-- <div id="imgscore" class="score"><div><?php echo $iv->image["score"]; ?>%</div>
|
||||
<span style="width: <?php echo $iv->image["score"]; ?>%"></span></div> -->
|
||||
<?php } ?>
|
||||
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<div id="AbuseForm" style="display: none">
|
||||
<div class="comment">
|
||||
|
||||
<form action="<?php echo Config::$absolutePath; ?>abuse" method="post">
|
||||
<dl class="form">
|
||||
<dt>Reason:</dt>
|
||||
<dd>
|
||||
<input type="text" name="rsn" value=""/>
|
||||
</dd>
|
||||
<dt>Email:</dt>
|
||||
<dd>
|
||||
<input type="text" name="mail" value="" />
|
||||
</dd>
|
||||
<dt> </dt>
|
||||
<dd>
|
||||
<input type="submit" class="submit" name="abuse" value="Send" />
|
||||
<input type="hidden" name="image" value="<?php echo $iv->image["id"]; ?>"/>
|
||||
</dd>
|
||||
</dl>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="FavDiv" class="comment" style="display:none"> </div>
|
||||
|
||||
|
||||
<div id="MessageForm" style="display:none">
|
||||
<div class="comment">
|
||||
|
||||
Send:
|
||||
<form method="post" class="addComment" action="<?php echo Config::$absolutePath.'inbox/'.$iv->userInfo['name']; ?>">
|
||||
<div>
|
||||
<input name="title" rows="1" cols="10"></input><br />
|
||||
<textarea name="content" rows="3" cols="40"></textarea><br />
|
||||
<input class="submit" type="submit" name="addComment" value="Submit"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ShareForm" style="display:none">
|
||||
<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4ffb39056048380d"></script>
|
||||
<div class="comment">
|
||||
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" style="filter:alpha(opacity=50); -moz-opacity: 0.50; opacity: 0.50; float: right;">
|
||||
<a class="addthis_button_preferred_1"></a>
|
||||
<a class="addthis_button_preferred_2"></a>
|
||||
<a class="addthis_button_preferred_3"></a>
|
||||
<a class="addthis_button_preferred_4"></a>
|
||||
<a class="addthis_button_compact"></a>
|
||||
</div><br/>
|
||||
Link:<br/> <input type="text" readonly="1" value="<?php echo Config::$frontendPath.'all/view/'.$iv->image['keyword']; ?>" style="width: 400px; font-size:10px" onclick="this.focus();this.select();"/>
|
||||
<br />
|
||||
Forum-Code: <input type="text" readonly="1" value="[URL=<?php echo Config::$frontendPath ?>][IMG]<?php echo Config::$frontendPath.Config::$images['imagePath'].$iv->image['path']; ?>[/IMG][/URL]" style="width: 400px; font-size:10px" onclick="this.focus();this.select();"/>
|
||||
<br />
|
||||
HTML-Code: <input type="text" readonly="1" value="<a target='_blank' href='<?php echo Config::$frontendPath ?>'><img alt='4ducky.com' src='<?php echo Config::$frontendPath.Config::$images['imagePath'].$iv->image['path']; ?>'/></a>" style="width: 400px; font-size:10px" onclick="this.focus();this.select();"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="comments">
|
||||
|
||||
<div id="cmts">
|
||||
<noscript>
|
||||
<div class="noscr">Please enable Javascript.</div>
|
||||
</noscript>
|
||||
<?php
|
||||
if ($user->stylecolor == "white") {?>
|
||||
<div align="center">
|
||||
<img src="/media/load.gif" />
|
||||
</div>
|
||||
<?php }else{ ?>
|
||||
<div align="center">
|
||||
<img src="/media/load_b.gif" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if( $user->id && $comment_open[open] == 0 ) { ?>
|
||||
<div class="comment">
|
||||
<noscript>
|
||||
<div class="noscr">Please enable Javascript.</div>
|
||||
</noscript>
|
||||
<div class="noscr" id="CommentError" style="display:none"></div>
|
||||
|
||||
<form method="post" class="addComment" id="CommentForm" enctype="multipart/form-data" action="<?php echo Config::$absolutePath.$iv->basePath.'view/'.$iv->image['keyword']; ?>">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
|
||||
<?php
|
||||
$spaming = $user->isSpamming();
|
||||
if (is_numeric($spaming)){
|
||||
echo '<div class="comment">';
|
||||
$blockreason = DB::getRow("SELECT * FROM pl_users WHERE id=:1",$user->id);
|
||||
echo 'Upload gesperrt bis: '.date('Y-m-d H:i:s',(int)$blockreason["time"]);
|
||||
echo '<br>Grund: '.$blockreason["spam_reason"];
|
||||
$left = ((int)$blockreason["time"] - (int)time())/60;
|
||||
echo '<br>Noch: '.round($left,2).' Minuten ';
|
||||
echo "</div>";
|
||||
}elseif( $user->isSpamming() ){
|
||||
echo '<div class="comment">';
|
||||
echo "Spamblocked";
|
||||
echo "</div>";
|
||||
}else{
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<td width="40" valign="top"><img class="avatarSmall" width="32" height="32" src="<?php echo Config::$absolutePath.$infos['avatar']; ?>"/></td>
|
||||
|
||||
<td valign="top" >
|
||||
» BB-Codes: <a class="quote" href="javascript:;" onclick="BBcode('img');">[img]</a> <a class="quote" href="javascript:;" onclick="BBcode('link');">[link]</a> <a class="quote" href="javascript:;" onclick="BBcode('spoiler');">[spoiler]</a> <a class="quote" href="javascript:;" onclick="BBcode('youtube');">[youtube]</a>
|
||||
|
||||
<div id="ImgFile" style="display:none">
|
||||
<input type="file" id="image_comment" name="image_comment" value="" style="color: #000; background-color: #fff; border:1px solid #bdc7d8;"/>
|
||||
<input type="text" id="url_comment" name="url_comment" value="http//URL Upload" />
|
||||
</div>
|
||||
<textarea name="content" id="content_comment" rows="6" cols="53"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><input id="SubBut" class="submit" type="button" name="addComment" value="Submit Comment" onclick="SubmitComment(<?php echo $iv->image["id"]; ?>);"/>
|
||||
<div style="text-align:center;display:none" id="SubLoad">
|
||||
<?php if ($user->stylecolor == "white") {?>
|
||||
<div align="center">
|
||||
<img src="/media/load.gif" />
|
||||
</div>
|
||||
<?php }else{ ?>
|
||||
<div align="center">
|
||||
<img src="/media/load_b.gif" />
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
</table>
|
||||
<div> </div>
|
||||
</form>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="comment">
|
||||
<?php
|
||||
if($comment_open[open] == 0){
|
||||
echo "Register to comment...";
|
||||
}
|
||||
else{
|
||||
echo "Comments are closed!";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
ieAdjustHeight(0);
|
||||
</script>
|
||||
</div></div></div>
|
||||
<?php include( $templates.'footer.tpl.php' ); ?>
|
||||
Reference in New Issue
Block a user