echo " "; echo ""; echo "
"; if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; } if (file_exists(INFUSIONS."ti_blog_system/locale/".LOCALESET."blog_panel.php")) { include INFUSIONS."ti_blog_system/locale/".LOCALESET."blog_panel.php"; } else { include INFUSIONS."ti_blog_system/locale/English/blog_panel.php"; } // In pixels $height = 25; $width = 25; // Until the subject should trim - Bigger sidepanels might want a higher value $trim = 50; // Limit $limit = 5; openside($locale['TIBLBP001']); $result = dbquery("SELECT * FROM ".$db_prefix."ti_blog_system bs LEFT JOIN ".DB_PREFIX."users bu ON bs.blog_writer=bu.user_id ORDER BY blog_id DESC LIMIT 0,$limit"); while ($data = dbarray($result)) { $cmts = dbcount("(comment_id)", DB_COMMENTS, "comment_type='BS' AND comment_item_id='".$data['blog_id']."'"); echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
".$data[» ".trimlink($data['blog_subject'], $trim)."[".$cmts."]
\n"; echo "
"; } closeside(); echo "
"; openside($locale['global_020']); echo "
".$locale['global_021']."
\n"; $result = dbquery(" SELECT tt.forum_id, tt.thread_id, tt.thread_subject, tt.thread_lastpost, tt.thread_postcount FROM ".DB_THREADS." tt INNER JOIN ".DB_FORUMS." tf ON tt.forum_id=tf.forum_id WHERE ".groupaccess('forum_access')." ORDER BY thread_lastpost DESC LIMIT 4 "); if (dbrows($result)) { echo "\n"; while($data = dbarray($result)) { $itemsubject = trimlink($data['thread_subject'], 60); echo "\n\n"; echo "\n\n"; } echo "
".THEME_BULLET." $itemsubject[".($data['thread_postcount'] - 1)."]
\n"; } else { echo "
".$locale['global_023']."
\n"; } echo "
".$locale['global_022']."
\n"; list($min_posts) = dbarraynum(dbquery("SELECT thread_postcount FROM ".DB_THREADS." ORDER BY thread_postcount DESC LIMIT 4,5")); $result = dbquery(" SELECT tf.forum_id, tt.thread_id, tt.thread_subject, tt.thread_postcount FROM ".DB_FORUMS." tf INNER JOIN ".DB_THREADS." tt USING(forum_id) WHERE ".groupaccess('forum_access')." AND tt.thread_postcount >= '$min_posts' ORDER BY thread_postcount DESC, thread_lastpost DESC LIMIT 5 "); if (dbrows($result) != 0) { echo "\n"; while($data = dbarray($result)) { $itemsubject = trimlink($data['thread_subject'], 60); echo "\n\n"; echo "\n\n"; } echo "
".THEME_BULLET." $itemsubject[".($data['thread_postcount'] - 1)."]
\n"; } else { echo "
".$locale['global_023']."
\n"; } closeside();echo "
"; @openside("Fra fotoalbummet..."); $result = dbquery( "SELECT photo_id, album_id, photo_thumb1 FROM ".$db_prefix."photos ORDER BY RAND() LIMIT 1 "); if (dbrows($result) != 0) { $data = dbarray($result); echo ""; } @closeside();echo "
";