">Übersicht</a></li>
<?php 
if (MyUser::id() == $params["id"]) {
    ?>
	<li><a href="<?php 
    echo UserProfile::ProfilePermaLink($params["id"], $params["name"], "inbox");
    ?>
">Postfach</a></li>
<?php 
}
?>
	<li><a href="<?php 
echo UserProfile::ProfilePermaLink($params["id"], $params["name"], "karma");
?>
">Karma</a></li>
	<li><a href="<?php 
echo UserProfile::ProfilePermaLink($params["id"], $params["name"], "badges");
?>
">Abzeichen</a></li>
<?php 
if (MyUser::hasAdminRight()) {
    echo '<li><a href="' . UserProfile::ProfilePermaLink($params["id"], $params["name"], "rights") . '">Rechte</a></li>';
}
?>
</ul>
<div class="clearfix"></div>
<style>
ul.navibar { display: block; margin-bottom: 15px; background-color: #EFF5F6; height: 30px; line-height: 30px; font-family: Georgia,serif; font-size: 16px; padding: 0px 0px 0px 10px; border-radius: 5px; }
ul.navibar li { list-style: none; float: left; padding: 0px 10px; border-left: 1px solid #D0E1E4; }
ul.navibar li:first-child { border-left: none; }
ul.navibar li a { color: #7EA9B3; }
Exemplo n.º 2
0
    ?>
</span></a>
				)
			</span>
			<a class="logout" href="<?php 
    echo get_path("/account/signout");
    ?>
"><?php 
    echo _e("logout");
    ?>
</a>	
<?php 
} else {
    ?>
	<a class="gotologin" href="<?php 
    echo get_path("/account/signin");
    ?>
"><?php 
    echo _e("Hello, please register");
    ?>
</a>
<?php 
}
?>
			<a class="help" href="<?php 
echo get_path("/help");
?>
" title="<?php 
echo _e("help");
?>
"><?php 
Exemplo n.º 3
0
$info = $db->cmdrow(0, 'SELECT * FROM tag_details WHERE tag = "{0}" LIMIT 0,1', array($params["id"]));
PageEngine::html("html_head", array("title" => $params["id"], "index" => isset($info["long_desc"])));
PageEngine::html("header");
?>
	<div id="Content" class="content-wrapper PageUserprofile">
		<article class="ContentLeft">
<?php 
PageEngine::html("box_tags_navi", array("tag" => $params["id"]));
?>
		
			<h1 class="search-result-summary"><?php 
echo _e("Infos for Tag '{0}'", array(0 => $params["id"]));
?>
</h1>
<?php 
BBCode::render(isset($info["long_desc"]) ? $info["long_desc"] : "", true);
if (!isset($info["long_desc"]) or trim($info["long_desc"]) == "") {
    echo '<p class="noTagDescription">' . _e("Dieser Tag hat aktuell noch keine Erklärung. Ab 2500 Karma Punkten kannst Du diesen Artikel erstellen und so anderen Usern helfen oder einen kurzen Einblick in das Thema bieten.") . '</p>';
}
if (MyUser::isloggedin() and MyUser::getKarmaPoints() >= 2500 or MyUser::hasAdminRight()) {
    echo '<a href="' . get_path("/tags/" . urlencode($params["id"]) . "/info/edit") . '"><button class="blue" type="button">' . _e("edit") . '</button></a>';
}
?>
		
		</article>
		
		<aside class="ContentRight">
		<div style="text-align: center;">
<?php 
$count = $db->cmdvalue(0, 'SELECT count(*) FROM question_tags WHERE tag="{0}" LIMIT 0,1', array($params["id"]));
echo '<span style="color: #808185; font-size: 30px; font-weight:bold;">' . number_format($count, 0, ",", ".") . '</span>';
Exemplo n.º 4
0
            PageEngine::runController("answer_edit", array("id" => $treffer[1] + 0));
            PageEngine::html("page_answer_edit", array("id" => $treffer[1] + 0));
            exit(1);
    }
}
if (preg_match("@^/badges/([0-9]+)/[^\\/]+(/[a-z]+)?\$@", $_SERVER["REQUEST_URIpure"], $treffer)) {
    PageEngine::html("page_badgeprofile", array("badge_id" => $treffer["1"] + 0));
    exit(1);
}
if (preg_match("@^/tags/(.*?)(/[a-z\\/]+)?\$@", $_SERVER["REQUEST_URIpure"], $treffer)) {
    switch (isset($treffer[2]) ? $treffer[2] : "/info") {
        case "/info":
            PageEngine::runController("tags_info", array("id" => $treffer[1]));
            PageEngine::html("page_tags_info", array("id" => $treffer[1]));
            exit(1);
        case "/info/edit":
            if ((!MyUser::isloggedin() or MyUser::getKarmaPoints() < 2500) and !MyUser::hasAdminRight()) {
                PageEngine::html("page_error_karma", array("karma" => 2500));
            }
            PageEngine::runController("tags_infoedit", array("id" => $treffer[1]));
            PageEngine::html("page_tags_infoedit", array("id" => $treffer[1]));
            exit(1);
        case "/synonyms":
            PageEngine::runController("tags_synonyms", array("id" => $treffer[1]));
            PageEngine::html("page_tags_synonyms", array("id" => $treffer[1]));
            exit(1);
    }
}
Observer::Raise("Error_404", array("path" => $_SERVER["REQUEST_URIpure"]));
PageEngine::html("page_404");
exit(1);
Exemplo n.º 5
0
 public static function nospam($data)
 {
     if (!MyUser::isloggedin()) {
         throw new APIException("User ist nicht angemeldet.", 100);
     }
     if (!MyUser::hasAdminRight()) {
         throw new APIException("Sie benötigen Admin-Rechte für diese Funktion", 101);
     }
     if (!isset($data["answer"])) {
         throw new APIException("Benötigter Parameter fehlt (answer).", 50);
     }
     $db = new SQL(0);
     $db->cmd(0, 'UPDATE answers SET isSPAM=-1 WHERE id={0} LIMIT 1', true, array($data["answer"] + 0));
     return true;
 }
Exemplo n.º 6
0
if (MyUser::getKarmaPoints() >= 50) {
    PageEngine::html("box_commenteditor", array("question" => $info["id"], "answer" => -1));
}
?>
			</div>
			
<style>
h2.comment-title { font-weight: bold;font-size: 23px; color: #7EA9B3; width: 200px; font-family: 'Yanone Kaffeesatz',Arial,sans-serif; }
.tabBar a { color: #7EA9B3; line-height: 20px; }
.tabBar a.active { color: #4A757F; }
.tabBar a:hover { color: #4A757F; }
.ThankYou { color: #606060; font-style: italic; text-align: left; font-size:10px; }
.vote-buttons { text-align: center; }
.box_bounties { display: block; border: 1px solid #ff8000; background: #ffa030 url(<?php 
echo get_path("/skins/default/images/icons/bounty.png");
?>
) no-repeat left center; background-size:32px; line-height:32px; padding: 2px 2px 2px 34px; margin-bottom:2px; border-radius: 4px;  }
.box_bounties .bounty.BTC { background: url(<?php 
echo get_path("/skins/default/images/icons/bitcoin.png");
?>
) no-repeat right center; font-weight:bold; font-size:16px; color:#404040; background-size:16px; padding-right: 17px; margin-right:10px; }
.box_bounties .bounty.karma { background: url(<?php 
echo get_path("/skins/default/images/icons/karma.png");
?>
) no-repeat right center; font-weight:bold; font-size:16px; color:#404040; background-size:16px; padding-right: 17px; margin-right:10px; }
.box_bounties .bounty.EUR { font-weight:bold; font-size:16px; color:#404040; background-size:16px; margin-right:10px;}
</style>
			
<script>
$(document).ready(function() {
	$(".post-vote.question.img-upvote").css("cursor","pointer").click(function() {