$body_text = "#cccccc";
$body_bg = "#373737";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "
";
echo "";
echo "";
echo "";
echo "";
echo "
[color=red][b]
";
if($userdata['user_avatar']){
echo " ";
}else{
echo " ";
}
echo" |
".(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') === false ? " " : " ")."Witaj: ".$userdata['user_prefix'].$userdata['user_name']."".(iADMIN ? " [PA]": "")." ";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0' AND message_folder='0'");
if($msg_count > "0") $msg_view = "[".$msg_count."]";
echo (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') === false ? "" : " ")." Edytuj Profil ".(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') === false ? "" : " ")." Wiadomości ".$msg_view." ".(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') === false ? "" : " ")." Użytkownicy |
";
$caution_r = dbquery("SELECT * from ".$db_prefix."cautions WHERE user_id=".$userdata['user_id']);
$caution = dbarray($caution_r);
$c_count = dbrows($caution_r);
echo" Ranga: ".check_rang($userdata['user_id'])."
Punkty: ".show_points($userdata['user_id'])."
Ostrzeżeń: ".$c_count."[Wyjdź]
|
[/b][/color]
| ";
echo " ";
echo "";
echo "";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " "; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "".$data['link_name']."";
} else {
echo "".$data['link_name']."";
}
}
$i++; | |
| |