


if (stristr($_SERVER['SCRIPT_NAME'], basename(__FILE__)) OR !defined('UN_KERNELFILES_LOADED')) {

Header("Location: ../index.php");

}










global $admin, $user, $cookie, $prefix, $user_prefix, $db, $anonymous, $sitekey, $gfx_chk;

setlocale(LC_TIME, '');

mt_srand ((double)microtime()*1000000);

$maxran = 1000000;

$random_num = mt_rand(0, $maxran);

$datekey = date("F j");

$rcode = hexdec(md5($_SERVER['HTTP_USER_AGENT'] . $sitekey . $random_num . $datekey));

$code = substr($rcode, 2, 6);

cookiedecode($user);

$usernameBlassenWeb = $cookie[1];

$lasturow = $db->sql_fetchrow($db->sql_query("SELECT username FROM ".$user_prefix."_users ORDER BY user_id DESC LIMIT 0,1"));

$lastuser = $lasturow['username'];

$numrows = $db->sql_numrows($db->sql_query("SELECT user_id FROM ".$user_prefix."_users"));




$result = $db->sql_query("SELECT uname, guest FROM ".$prefix."_session WHERE guest='0'");

$member_online_num = $db->sql_numrows($result);

$who_online_now = "";

$i = 1;




while ($session = $db->sql_fetchrow($result)) {

if (isset($session["guest"]) and $session["guest"] == 0) {

if ($i < 10) {

$who_online_now .= " 0$i: <A HREF=\"modules.php?name=Your_Account&op=userinfo&username=$session[uname]\">$session[uname]</a><br>\n";

} else {

$who_online_now .= " $i: <A HREF=\"modules.php?name=Your_Account&op=userinfo&username=$session[uname]\">$session[uname]</a><br>\n";

}

$who_online_now .= ($i != $member_online_num ? " " : "");

$i++;

}

}

$Today = getdate();

//Formatting Current Date

$month = $Today['month'];

$mday = $Today['mday'];

$year = $Today['year'];

//Formatting Previous Date

$pmonth = $Today['month'];

$pmday = $Today['mday'];

$pmday = $mday-1;

$pyear = $Today['year'];

//Month conversion into numeric mode

if ($pmonth=="January") { $pmonth=1; } else

if ($pmonth=="February") { $pmonth=2; } else

if ($pmonth=="March") { $pmonth=3; } else

if ($pmonth=="April") { $pmonth=4; } else

if ($pmonth=="May") { $pmonth=5; } else

if ($pmonth=="June") { $pmonth=6; } else

if ($pmonth=="July") { $pmonth=7; } else

if ($pmonth=="August") { $pmonth=8; } else

if ($pmonth=="September") { $pmonth=9; } else

if ($pmonth=="October") { $pmonth=10; } else

if ($pmonth=="November") { $pmonth=11; } else

if ($pmonth=="December") { $pmonth=12; };

$test = mktime (0,0,0,$pmonth,$pmday,$pyear,1);

$curDate2 = "%".$month[0].$month[1].$month[2]."%".$mday."%".$year."%";

$preday = strftime ("%d",$test);

$premonth = strftime ("%B",$test);

$preyear = strftime ("%Y",$test);

$curDateP = "%".$premonth[0].$premonth[1].$premonth[2]."%".$preday."%".$preyear."%";

$row = $db->sql_fetchrow($db->sql_query("SELECT COUNT(user_id) AS userCount FROM ".$user_prefix."_users WHERE user_regdate LIKE '$curDate2'"));

$userCount = $row['userCount'];

//end




//Executing SQL Today

$result2 = $db->sql_query("SELECT COUNT(user_id) AS userCount FROM ".UN_TABLENAME_USERS." WHERE user_regdate LIKE '".$curDateP."'");

$row2 = $db->sql_fetchrow($result2);

$db->sql_freeresult($result2);

$userCount2 = $row2['userCount'];

//end




$guest_online_num_result = $db->sql_query("SELECT COUNT(*) AS numrows FROM ".UN_TABLENAME_SESSION." WHERE guest='1'");

$guest_online_num_row = $db->sql_fetchrow($guest_online_num_result);

$guest_online_num = $guest_online_num_row['numrows'];

$db->sql_freeresult($guest_online_num_result);




$who_online_num = $guest_online_num + $member_online_num;

$content .= "<form action=\"modules.php?name=Your_Account\" method=\"post\">";

$grpcnt = "";

$i = 1;

$gresult = $db->sql_query("SELECT name, points FROM " . $prefix . "_groups ORDER BY points");

while ($grow = $db->sql_fetchrow($gresult)) {

$grname = $grow['name'];

$grpoints = intval($grow['points']);

$users_num = $db->sql_numrows($db->sql_query("SELECT count(user_id) FROM " . $user_prefix . "_users WHERE points>='$grpoints'"));

if ($i < 10) {

$grpcnt .= " <b>0$i: <u>$grname</u></b><br> "._BMEM.": <b>$users_num</b><br>\n";

} else {

$grpcnt .= " <b>$i: <u>$grname</u></b><br> "._BMEM.": <b>$users_num</b><br>\n";

}

$i++;

}

$numpoints = $db->sql_fetchrow($db->sql_query("SELECT points FROM ".$user_prefix."_users WHERE username='$usernameBlassenWeb'"));

$npoints = intval($numpoints['points']);

$content .= "<form action=\"modules.php?name=Your_Account\" method=\"post\">";







if (is_user($user)) {

$content .= "<center>"._BWEL." <b>".$usernameBlassenWeb."</b></center>\n<hr>\n";

$result3 = $db->sql_query("SELECT user_id FROM ".UN_TABLENAME_USERS." WHERE username='".$usernameBlassenWeb."'");

$row3 = $db->sql_fetchrow($result3);

$db->sql_freeresult($result3);

$uid = $row3['user_id'];

if (is_active("Private_Messages")) {

$newpms_result = $db->sql_query("SELECT COUNT(*) AS numrows FROM ".UN_TABLENAME_PHPBB_PRIVMSGS_TABLE." WHERE privmsgs_to_userid='".$uid."' AND (privmsgs_type='5' OR privmsgs_type='1')");

$newpms_row = $db->sql_fetchrow($$newpms_result);

$db->sql_freeresult($newpms_result);

$newpms = $newpms_row['numrows'];

$oldpms_result = $db->sql_query("SELECT COUNT(*) AS numrows FROM ".UN_TABLENAME_PHPBB_PRIVMSGS_TABLE." WHERE privmsgs_to_userid='".$uid."' AND privmsgs_type='0'");

$oldpms_row = $db->sql_fetchrow($oldpms_result);

$db->sql_freeresult($oldpms_result);

$oldpms = $oldpms_row['numrows'];




$content .= "<center> <b><u>"._BVISIT.":</u></b></center>\n\n";

$content .= "<img src=\"images/blocks/ur-anony.gif\" height=\"14\" width=\"17\" alt=\"\"> "._BVIS.": <b>".$guest_online_num."</b><br>\n";

$content .= "<img src=\"images/blocks/ur-member.gif\" height=\"14\" width=\"17\" alt=\"\"> "._BMEM.": <b>".$member_online_num."</b><br>\n";

$content .= "<img src=\"images/blocks/ur-registered.gif\" height=\"14\" width=\"17\" alt=\"\"> "._BTT.": <b>".$who_online_num."</b><br><br>\n";

$content .= "".$who_online_now."<hr>\n";

}

} else {



$content = "<form action=\"modules.php?name=Your_Account\" method=\"post\">";

$content .= "<center><font class=\"content\">"._NICKNAME."<br>";

$content .= "<input type=\"text\" name=\"username\" size=\"10\" maxlength=\"25\"><br>";

$content .= _PASSWORD."<br>";

$content .= "<input type=\"password\" name=\"user_password\" size=\"10\" maxlength=\"20\"><br>";




if (extension_loaded("gd") AND ($gfx_chk == 2 OR $gfx_chk == 4 OR $gfx_chk == 5 OR $gfx_chk == 7)) {

$content .= _SECURITYCODE.":<br><img src=\"?gfx=gfx&random_num=".$random_num."\" border=\"1\" style=\"width: 77px; height: 20px\" alt=\""._SECURITYCODE."\" title=\""._SECURITYCODE."\"><br>\n";

$content .= _TYPESECCODE."<br><input type=\"text\" name=\"gfx_check\" size=\"7\" maxlength=\"6\">\n";

$content .= "<input type=\"hidden\" name=\"random_num\" value=\"".$random_num."\"><br>\n";

} else {

$content .= "<input type=\"hidden\" name=\"random_num\" value=\"".$random_num."\">";

$content .= "<input type=\"hidden\" name=\"gfx_check\" value=\"".$code."\">";

} 

$content .= "<input type=\"hidden\" name=\"op\" value=\"login\">";

$content .= "<input type=\"submit\" value=\""._LOGIN."\">\n <br>

<a href=\"modules.php?name=Your_Account&op=new_user\"><b>"._BREG."</b></a></center><hr>";

}

$content .= "<center><u>"._BLATEST.":</u><br><a href=\"modules.php?name=Your_Account&op=userinfo&username=".$lastuser."\">".$lastuser."</a></center>\n";

$content .= "<img src=\"images/blocks/ur-author.gif\" height=\"14\" width=\"17\" alt=\"\"> "._BTD.": <b>".$userCount."</b><br>\n";

$content .= "<img src=\"images/blocks/ur-admin.gif\" height=\"14\" width=\"17\" alt=\"\"> "._BYD.": <b>".$userCount2."</b><br>\n";

$content .= "<img src=\"images/blocks/ur-guest.gif\" height=\"14\" width=\"17\" alt=\"\"> "._BOVER.": <b>".$numrows."</b>\n";




$content .= "</form>";

?>




<?php

if (stristr($_SERVER['SCRIPT_NAME'], basename(__FILE__)) OR !defined('UN_KERNELFILES_LOADED')) {

Header("Location: ../index.php");

}










global $admin, $user, $cookie, $prefix, $user_prefix, $db, $anonymous, $sitekey, $gfx_chk;

$farba_paid = "red";//farba

setlocale(LC_TIME, '');

mt_srand ((double)microtime()*1000000);

$maxran = 1000000;

$random_num = mt_rand(0, $maxran);

$datekey = date("F j");

$rcode = hexdec(md5($_SERVER['HTTP_USER_AGENT'] . $sitekey . $random_num . $datekey));

$code = substr($rcode, 2, 6);

cookiedecode($user);

$usernameBlassenWeb = $cookie[1];

$lasturow = $db->sql_fetchrow($db->sql_query("SELECT username FROM ".$user_prefix."_users ORDER BY user_id DESC LIMIT 0,1"));

$lastuser = $lasturow['username'];

$numrows = $db->sql_numrows($db->sql_query("SELECT user_id FROM ".$user_prefix."_users"));




$result = $db->sql_query("SELECT uname, guest FROM ".$prefix."_session WHERE guest='0'");

$member_online_num = $db->sql_numrows($result);

$who_online_now = "";

$i = 1;




while ($session = $db->sql_fetchrow($result)) {

if (isset($session["guest"]) and $session["guest"] == 0) { 

$resultk43 = $db->sql_query("SELECT p.userid, u.user_id FROM ".$user_prefix."_subscriptions p LEFT JOIN ".$user_prefix."_users u ON u.user_id = p.userid WHERE u.username='".$session[uname]."'");

$numrowsk43 = $db->sql_numrows($resultk43);

if ($numrowsk43 > 0) {

$farb = "style=\"color:$farba_paid;\"";

} else {

$farb = "";

}

if ($i < 10) {

$who_online_now .= " 0$i: <A HREF=\"modules.php?name=Your_Account&op=userinfo&username=$session[uname]\" $farb>$session[uname]</a><br>\n";

} else {

$who_online_now .= " $i: <A HREF=\"modules.php?name=Your_Account&op=userinfo&username=$session[uname]\" $farb>$session[uname]</a><br>\n";

}

$who_online_now .= ($i != $member_online_num ? " " : "");

$i++;

}

}

$Today = getdate();

//Formatting Current Date

$month = $Today['month'];

$mday = $Today['mday'];

$year = $Today['year'];

//Formatting Previous Date

$pmonth = $Today['month'];

$pmday = $Today['mday'];

$pmday = $mday-1;

$pyear = $Today['year'];

//Month conversion into numeric mode

if ($pmonth=="January") { $pmonth=1; } else

if ($pmonth=="February") { $pmonth=2; } else

if ($pmonth=="March") { $pmonth=3; } else

if ($pmonth=="April") { $pmonth=4; } else

if ($pmonth=="May") { $pmonth=5; } else

if ($pmonth=="June") { $pmonth=6; } else

if ($pmonth=="July") { $pmonth=7; } else

if ($pmonth=="August") { $pmonth=8; } else

if ($pmonth=="September") { $pmonth=9; } else

if ($pmonth=="October") { $pmonth=10; } else

if ($pmonth=="November") { $pmonth=11; } else

if ($pmonth=="December") { $pmonth=12; };

$test = mktime (0,0,0,$pmonth,$pmday,$pyear,1);

$curDate2 = "%".$month[0].$month[1].$month[2]."%".$mday."%".$year."%";

$preday = strftime ("%d",$test);

$premonth = strftime ("%B",$test);

$preyear = strftime ("%Y",$test);

$curDateP = "%".$premonth[0].$premonth[1].$premonth[2]."%".$preday."%".$preyear."%";

$row = $db->sql_fetchrow($db->sql_query("SELECT COUNT(user_id) AS userCount FROM ".$user_prefix."_users WHERE user_regdate LIKE '$curDate2'"));

$userCount = $row['userCount'];

//end




//Executing SQL Today

$result2 = $db->sql_query("SELECT COUNT(user_id) AS userCount FROM ".UN_TABLENAME_USERS." WHERE user_regdate LIKE '".$curDateP."'");

$row2 = $db->sql_fetchrow($result2);

$db->sql_freeresult($result2);

$userCount2 = $row2['userCount'];

//end




$guest_online_num_result = $db->sql_query("SELECT COUNT(*) AS numrows FROM ".UN_TABLENAME_SESSION." WHERE guest='1'");

$guest_online_num_row = $db->sql_fetchrow($guest_online_num_result);

$guest_online_num = $guest_online_num_row['numrows'];

$db->sql_freeresult($guest_online_num_result);




$who_online_num = $guest_online_num + $member_online_num;

$content .= "<form action=\"modules.php?name=Your_Account\" method=\"post\">";

$grpcnt = "";

$i = 1;

$gresult = $db->sql_query("SELECT name, points FROM " . $prefix . "_groups ORDER BY points");

while ($grow = $db->sql_fetchrow($gresult)) {

$grname = $grow['name'];

$grpoints = intval($grow['points']);

$users_num = $db->sql_numrows($db->sql_query("SELECT count(user_id) FROM " . $user_prefix . "_users WHERE points>='$grpoints'"));

if ($i < 10) {

$grpcnt .= " <b>0$i: <u>$grname</u></b><br> "._BMEM.": <b>$users_num</b><br>\n";

} else {

$grpcnt .= " <b>$i: <u>$grname</u></b><br> "._BMEM.": <b>$users_num</b><br>\n";

}

$i++;

}

$numpoints = $db->sql_fetchrow($db->sql_query("SELECT points FROM ".$user_prefix."_users WHERE username='$usernameBlassenWeb'"));

$npoints = intval($numpoints['points']);

$content .= "<form action=\"modules.php?name=Your_Account\" method=\"post\">";







if (is_user($user)) {

$content .= "<center>"._BWEL." <b>".$usernameBlassenWeb."</b></center>\n<hr>\n";

$result3 = $db->sql_query("SELECT user_id FROM ".UN_TABLENAME_USERS." WHERE username='".$usernameBlassenWeb."'");

$row3 = $db->sql_fetchrow($result3);

$db->sql_freeresult($result3);

$uid = $row3['user_id'];

if (is_active("Private_Messages")) {

$newpms_result = $db->sql_query("SELECT COUNT(*) AS numrows FROM ".UN_TABLENAME_PHPBB_PRIVMSGS_TABLE." WHERE privmsgs_to_userid='".$uid."' AND (privmsgs_type='5' OR privmsgs_type='1')");

$newpms_row = $db->sql_fetchrow($$newpms_result);

$db->sql_freeresult($newpms_result);

$newpms = $newpms_row['numrows'];

$oldpms_result = $db->sql_query("SELECT COUNT(*) AS numrows FROM ".UN_TABLENAME_PHPBB_PRIVMSGS_TABLE." WHERE privmsgs_to_userid='".$uid."' AND privmsgs_type='0'");

$oldpms_row = $db->sql_fetchrow($oldpms_result);

$db->sql_freeresult($oldpms_result);

$oldpms = $oldpms_row['numrows'];




$content .= "<center> <b><u>"._BVISIT.":</u></b></center>\n\n";

$content .= "<img src=\"images/blocks/ur-anony.gif\" height=\"14\" width=\"17\" alt=\"\"> "._BVIS.": <b>".$guest_online_num."</b><br>\n";

$content .= "<img src=\"images/blocks/ur-member.gif\" height=\"14\" width=\"17\" alt=\"\"> "._BMEM.": <b>".$member_online_num."</b><br>\n";

$content .= "<img src=\"images/blocks/ur-registered.gif\" height=\"14\" width=\"17\" alt=\"\"> "._BTT.": <b>".$who_online_num."</b><br><br>\n";

$content .= "".$who_online_now."<hr>\n";

}

} else {



$content = "<form action=\"modules.php?name=Your_Account\" method=\"post\">";

$content .= "<center><font class=\"content\">"._NICKNAME."<br>";

$content .= "<input type=\"text\" name=\"username\" size=\"10\" maxlength=\"25\"><br>";

$content .= _PASSWORD."<br>";

$content .= "<input type=\"password\" name=\"user_password\" size=\"10\" maxlength=\"20\"><br>";




if (extension_loaded("gd") AND ($gfx_chk == 2 OR $gfx_chk == 4 OR $gfx_chk == 5 OR $gfx_chk == 7)) {

$content .= _SECURITYCODE.":<br><img src=\"?gfx=gfx&random_num=".$random_num."\" border=\"1\" style=\"width: 77px; height: 20px\" alt=\""._SECURITYCODE."\" title=\""._SECURITYCODE."\"><br>\n";

$content .= _TYPESECCODE."<br><input type=\"text\" name=\"gfx_check\" size=\"7\" maxlength=\"6\">\n";

$content .= "<input type=\"hidden\" name=\"random_num\" value=\"".$random_num."\"><br>\n";

} else {

$content .= "<input type=\"hidden\" name=\"random_num\" value=\"".$random_num."\">";

$content .= "<input type=\"hidden\" name=\"gfx_check\" value=\"".$code."\">";

} 

$content .= "<input type=\"hidden\" name=\"op\" value=\"login\">";

$content .= "<input type=\"submit\" value=\""._LOGIN."\">\n <br>

<a href=\"modules.php?name=Your_Account&op=new_user\"><b>"._BREG."</b></a></center><hr>";

}

$content .= "<center><u>"._BLATEST.":</u><br><a href=\"modules.php?name=Your_Account&op=userinfo&username=".$lastuser."\">".$lastuser."</a></center>\n";

$content .= "<img src=\"images/blocks/ur-author.gif\" height=\"14\" width=\"17\" alt=\"\"> "._BTD.": <b>".$userCount."</b><br>\n";

$content .= "<img src=\"images/blocks/ur-admin.gif\" height=\"14\" width=\"17\" alt=\"\"> "._BYD.": <b>".$userCount2."</b><br>\n";

$content .= "<img src=\"images/blocks/ur-guest.gif\" height=\"14\" width=\"17\" alt=\"\"> "._BOVER.": <b>".$numrows."</b>\n";

$content .= "</form>";

?>

super !!! Díky moc


$farb = "style=\"color:$farba_paid;\"";

$img_ob = "<img border=\"0\" src=\"cesta k obnrázku\"> ";

$farb = "";

$img_ob = "";

</a> <br>

$img_ob







Obsah fóra BLASSENweb » Moduly
![]() |
|