function render_article($subject, $article, $info) { global $locale; $category = "<a href='" . INFUSIONS . "articles/articles.php?cat_id=" . $info['cat_id'] . "'>" . $info['cat_name'] . "</a>\n"; $comment = "<a href='" . INFUSIONS . "articles/articles.php?article_id=" . $info['article_id'] . "#comments'> " . format_word($info['article_comments'], $locale['fmt_comment']) . " </a>\n"; echo render_breadcrumbs(); echo "<!--pre_article-->"; echo "<article>\n"; echo "<div class='news-action text-right'>"; echo "<a title='" . $locale['global_075'] . "' href='" . BASEDIR . "print.php?type=A&item_id=" . $info['article_id'] . "'><i class='entypo print'></i></a>"; echo !empty($info['edit_link']) ? "<a href='" . $info['edit_link'] . "' title='" . $locale['global_076'] . "' /><i class='entypo pencil'></i></a>\n" : ''; echo "</div>\n"; echo "<div class='news-info'>" . ucfirst($locale['posted']) . " <span class='news-date'>" . showdate("%d %b %Y", $info['article_date']) . "</span> " . $locale['in'] . " {$category} " . $locale['and'] . " {$comment}</div>\n"; echo "<h2 class='news-title'>{$subject}</h2>"; echo "<div class='article'>\n"; echo ($info['article_breaks'] == "y" ? nl2br($article) : $article) . "<br />\n"; echo "</div>\n"; echo "<hr />\n"; echo "<div class='news-user-info clearfix m-b-10'>\n"; echo "<h4>" . $locale['about'] . " <a href='" . BASEDIR . "profile.php?lookup=" . $info['user_id'] . "'>" . $info['user_name'] . "</a>\n</h4>"; echo "<div class='pull-left m-r-10'>" . display_avatar($info, '80px') . "</div>\n"; echo "<strong>" . getuserlevel($info['user_level']) . "</strong><br/>\n"; echo "<strong>" . $locale['joined'] . showdate('newsdate', $info['user_joined']) . "</strong><br/>\n"; echo "</div>\n"; echo "</article>"; echo "<!--sub_article-->"; echo $info['page_nav']; echo "<hr />\n"; if ($info['article_allow_comments']) { showcomments("A", DB_ARTICLES, "article_id", $_GET['article_id'], INFUSIONS . "articles/articles.php?article_id=" . $_GET['article_id']); } if ($info['article_allow_ratings']) { showratings("A", $_GET['article_id'], INFUSIONS . "articles/articles.php?article_id=" . $_GET['article_id']); } }
function render_post($post) { global $locale, $settings; opentable($post['alb_post_title']); echo "<div class='post-item'>"; echo "<div class='post-body'>" . $post['alb_post_text'] . "</div>"; echo "<div class='post-footer'>"; echo "<img src='" . AL_BLOG_DIR . "asset/images/user.png' class='icon' /><a href='" . BASEDIR . "profile.php?lookup=" . $post['alb_post_user'] . "'>" . $post['user_name'] . "</a>"; echo "<img src='" . AL_BLOG_DIR . "asset/images/category.png' class='icon' />" . ($post['alb_cat_title'] != '' ? "<a href='" . FUSION_SELF . "?p=view_category&id=" . $post['alb_post_cat'] . "'>" . $post['alb_cat_title'] . "</a>" : $locale['alb21']); echo "<img src='" . AL_BLOG_DIR . "asset/images/calendar.png' class='icon' />" . showdate("forumdate", $post['alb_post_datestamp']); echo "<img src='" . AL_BLOG_DIR . "asset/images/comments.png' class='icon' />" . $post['comments']; //echo " <a href='".FUSION_SELF."?p=view_post&id=".$post['alb_post_id']."'>".$locale['alb22']."</a>"; echo "</div>"; echo "</div>"; closetable(); require_once INCLUDES . "comments_include.php"; showcomments("BL", DB_AL_BLOG_POSTS, "alb_post_id", $_GET['id'], FUSION_SELF . "?p=view_post&id=" . $_GET['id']); require_once INCLUDES . "ratings_include.php"; showratings("B", $_GET['id'], FUSION_SELF . "?p=view_post&id=" . $_GET['id']); }
echo "© " . $data['download_copyright'] . "<br />\n"; } if ($data['download_version'] != "" || $data['download_license'] != "" || $data['download_os'] != "" || $data['download_copyright'] != "") { echo "</td>\n</tr>\n"; } echo "</table>\n"; echo "</td></tr>\n"; echo "<tr>\n"; echo "<td class='tbl1' colspan='2' style='text-align:center;'><hr />\n"; echo "<strong>" . $locale['416'] . ":</strong><br />\n"; echo "<a href='" . FUSION_SELF . "?cat_id=" . $data['download_cat'] . "&file_id=" . $data['download_id'] . "' target='_blank'>" . get_image("download", $locale['416'], "border:none;", $locale['416']) . "</a>\n"; if ($data['download_filesize'] != "") { echo "<br />(" . $data['download_filesize'] . ")\n"; } echo "</td>\n</tr>\n"; echo "</table>\n"; echo "<!--sub_download_details-->\n"; closetable(); echo "<!--pre_download_comments-->\n"; include INCLUDES . "comments_include.php"; include INCLUDES . "ratings_include.php"; if ($data['download_allow_comments']) { showcomments("D", DB_DOWNLOADS, "download_id", $_GET['download_id'], FUSION_SELF . "?cat_id=" . $data['download_cat'] . "&download_id=" . $_GET['download_id']); } if ($data['download_allow_ratings']) { showratings("D", $_GET['download_id'], FUSION_SELF . "?cat_id=" . $data['download_cat'] . "&download_id=" . $_GET['download_id']); } } } echo $dl_stats; require_once THEMES . "templates/footer.php";
set_meta('description', trimlink($article_subject, 255), false); echo "<!--pre_article-->"; render_article($article_subject, $article[$_GET['page'] - 1], $article_info); echo "<!--sub_article-->"; if ($settings['enable_tags']) { require_once INCLUDES . "tag_include.php"; echo show_tags((int) $_GET['article_id'], "A"); } if ($pagecount > 1) { echo "<div align='center' style='margin-top:5px;'>\n"; echo pagination(true, (int) $_GET['page'] - 1, 1, $pagecount, 3, FUSION_SELF . "?article_id=" . (int) $_GET['article_id'] . "&", "article", "-", (int) $_GET['article_id'], "-page-", "-", $article_subject); echo "\n</div>\n"; } if ($data['article_allow_comments']) { require_once INCLUDES . "comments_include.php"; showcomments("A", DB_ARTICLES, "article_id", (int) $_GET['article_id'], FUSION_SELF . "?article_id=" . (int) $_GET['article_id'], "article", "-", (int) $_GET['article_id'], "-page-", (int) $_GET['page'], "-", $article_subject); } if ($data['article_allow_ratings'] && $settings['ratings_enabled'] == "1") { require INCLUDES . "ratings_include.php"; showratings("A", (int) $_GET['article_id'], FUSION_SELF . "?article_id=" . (int) $_GET['article_id'], "article-" . (int) $_GET['article_id'] . "-", $article_subject); } if ($settings['sharethis_article']) { $share_this = "article"; require_once INCLUDES . "share_this_include.php"; } } else { redirect(FUSION_SELF); } } elseif (!isset($_GET['cat_id']) || !isnum($_GET['cat_id'])) { opentable($locale['400']); echo "<!--pre_article_idx-->\n";
$article = explode("<--PAGEBREAK-->", $article); } else { $article = explode("<!-- pagebreak -->", $article); } $pagecount = count($article); $article_subject = stripslashes($data['article_subject']); $article_info = array("article_id" => $data['article_id'], "user_id" => $data['user_id'], "user_name" => $data['user_name'], "article_date" => $data['article_datestamp'], "article_breaks" => $data['article_breaks'], "article_comments" => dbcount("(comment_id)", DB_COMMENTS, "comment_type='A' AND comment_item_id='" . $data['article_id'] . "'"), "article_reads" => $data['article_reads'], "article_allow_comments" => $data['article_allow_comments']); add_to_title($locale['global_201'] . $article_subject); echo "<!--pre_article-->"; render_article($article_subject, $article[$_GET['rowstart']], $article_info); echo "<!--sub_article-->"; if ($pagecount > 1) { echo "<div align='center' style='margin-top:5px;'>\n" . makepagenav($_GET['rowstart'], 1, $pagecount, 3, FUSION_SELF . "?article_id=" . $_GET['article_id'] . "&") . "\n</div>\n"; } if ($data['article_allow_comments']) { showcomments("A", DB_ARTICLES, "article_id", $_GET['article_id'], FUSION_SELF . "?article_id=" . $_GET['article_id']); } if ($data['article_allow_ratings']) { showratings("A", $_GET['article_id'], FUSION_SELF . "?article_id=" . $_GET['article_id']); } } else { redirect(FUSION_SELF); } } elseif (!isset($_GET['cat_id']) || !isnum($_GET['cat_id'])) { opentable($locale['400']); echo "<!--pre_article_idx-->\n"; $result = dbquery("SELECT * FROM " . DB_ARTICLE_CATS . " WHERE " . groupaccess('article_cat_access') . " ORDER BY article_cat_name"); $rows = dbrows($result); if ($rows) { $counter = 0; $columns = 2;
} else { echo "<p>" . parse_textarea($cp_data['page_content']) . "</p>\n"; } $eval = ob_get_contents(); ob_end_clean(); $info['body'] = preg_split("/<!?--\\s*pagebreak\\s*-->/i", fusion_get_settings("tinymce_enabled") ? $eval : nl2br($eval)); $info['count'] = count($info['body']); if ($info['count'] > 0) { if (isset($_GET['rowstart']) && $_GET['rowstart'] > $info['count']) { redirect(BASEDIR . "viewpage.php?page_id=" . $_GET['page_id']); } $info['pagenav'] = makepagenav($_GET['rowstart'], 1, $info['count'], 1, BASEDIR . "viewpage.php?page_id=" . $_GET['page_id'] . "&") . "\n"; } if ($cp_data['page_allow_comments']) { ob_start(); showcomments("C", DB_CUSTOM_PAGES, "page_id", $_GET['page_id'], BASEDIR . "viewpage.php?page_id=" . $_GET['page_id']); $info['show_comments'] = ob_get_contents(); ob_end_clean(); } if ($cp_data['page_allow_ratings']) { ob_start(); showratings("C", $_GET['page_id'], BASEDIR . "viewpage.php?page_id=" . $_GET['page_id']); $info['show_ratings'] = ob_get_contents(); ob_end_clean(); } unset($cp_data); } else { add_to_title($locale['global_200'] . $locale['401']); $info['title'] = $locale['401']; $info['error'] = $locale['402']; }
/** * News Item Page Template * @param $info */ function render_news_item($info) { global $aidlink; $locale = fusion_get_locale(); $news_settings = get_settings('news'); $data = $info['news_item']; add_to_head("<link rel='stylesheet' href='" . INFUSIONS . "news/templates/css/news.css' type='text/css'>"); add_to_head("<link rel='stylesheet' href='" . INCLUDES . "jquery/colorbox/colorbox.css' type='text/css' media='screen' />"); add_to_head("<script type='text/javascript' src='" . INCLUDES . "jquery/colorbox/jquery.colorbox.js'></script>"); add_to_footer('<script type="text/javascript"> $(document).ready(function() { $(".news-image-overlay").colorbox({ transition: "elasic", height:"100%", width:"100%", maxWidth:"98%", maxHeight:"98%", scrolling:false, overlayClose:true, close:false, photo:true, onComplete: function(result) { $("#colorbox").live("click", function(){ $(this).unbind("click"); $.fn.colorbox.close(); }); }, onLoad: function () { } }); }); </script>'); opentable($locale['news_0004']); echo render_breadcrumbs(); echo "<!--news_pre_readmore-->"; echo "<article class='news-item' style='display:block; width:100%; overflow:hidden;'>\n"; echo "<h2 class='text-center'>" . $data['news_subject'] . "</h2>\n"; echo "<div class='news_news text-dark m-t-20 m-b-20'>\n"; if ($data['news_image_src']) { echo "<a class='" . $data['news_ialign'] . " news-image-overlay' href='" . $data['news_image_src'] . "'>\n <img class='img-responsive' src='" . $data['news_image_src'] . "' alt='" . $data['news_subject'] . "' style='padding:5px; max-height:" . $news_settings['news_photo_h'] . "px; overflow:hidden;' /></a>"; } elseif (!empty($data['news_image']) && !empty($data['news_cat_image_src'])) { echo "<a class='" . $data['news_ialign'] . "' href='" . INFUSIONS . "news/news.php?cat_id=" . $data['news_cat_id'] . "'>\n <img class='img-responsive' src='" . IMAGES_NC . $data['news_cat_image_src'] . "' style='padding:5px; max-height:" . $news_settings['news_photo_h'] . "px; alt='" . $data['news_cat_name'] . "' />\n </a>"; } echo $data['news_news']; echo "</div>\n"; echo "<div class='news_extended text-dark m-t-20 m-b-20'>" . $data['news_extended'] . "</div>\n"; echo "<div style='clear:both;'></div>\n"; echo "<div class='well m-t-5 text-center'>\n"; echo "<span class='news-action m-r-10'><i class='fa fa-user'></i>" . profile_link($data['user_id'], $data['user_name'], $data['user_status']) . "</span>\n"; echo "<span class='news-action m-r-10'><i class='fa fa-calendar'></i>" . showdate("newsdate", $data['news_datestamp']) . "</span>\n"; echo "<span class='news-action'><i class='fa fa-eye'></i><span class='text-dark m-r-10'>" . number_format($data['news_reads']) . "</span>\n</span>"; echo $data['news_allow_comments'] ? display_comments($data['news_comments'], INFUSIONS . "news/news.php?readmore=" . $data['news_id'] . "#comments") : ''; echo $data['news_allow_ratings'] ? "<span class='m-r-10'>" . display_ratings($data['news_sum_rating'], $data['news_count_votes'], INFUSIONS . "news/news.php?readmore=" . $data['news_id'] . "#ratings") . " </span>" : ''; echo "<a class='m-r-10' title='" . $locale['news_0002'] . "' href='" . BASEDIR . "print.php?type=N&item_id=" . $data['news_id'] . "'><i class='fa fa-print'></i></a>"; echo iADMIN && checkrights("N") ? "<a title='" . $locale['news_0003'] . "' href='" . INFUSIONS . "news/news_admin.php" . $aidlink . "&action=edit&section=news_form&news_id=" . $data['news_id'] . "' title='" . $locale['news_0003'] . "' />" . $locale['news_0003'] . "</a>\n" : ""; echo "</div>"; echo "<!--news_sub_readmore-->"; echo !isset($_GET['readmore']) && $data['news_ext'] == "y" ? "<div class='m-t-20'>\n<a href='" . INFUSIONS . "news/news.php?readmore=" . $data['news_id'] . "' class='button'>" . $locale['news_0001'] . "</a>\n</div>\n" : ""; if ($data['page_count'] > 0) { echo "<div class='text-center m-t-10'>\n" . makepagenav($_GET['rowstart'], 1, $data['page_count'], 3, INFUSIONS . "news/news.php?readmore=" . $_GET['readmore'] . "&") . "\n</div>\n"; } if ($data['news_allow_comments']) { echo "<hr />" . showcomments("N", DB_NEWS, "news_id", $_GET['readmore'], INFUSIONS . "news/news.php?readmore=" . $_GET['readmore']) . "\n"; } if ($data['news_allow_ratings']) { echo "<hr />" . showratings("N", $_GET['readmore'], INFUSIONS . "news/news.php?readmore=" . $_GET['readmore']) . "\n"; } echo "</article>\n"; closetable(); }
echo "<a href='" . FUSION_SELF . "'>" . $locale['gem19'] . "</a> / <a href='" . BASEDIR . "generator.php?action=create&id=" . $data['mem_gen_id'] . "'>" . $locale['gem27'] . "</a>"; echo "</div>"; echo "<div style='float:right;'>"; $voters = explode("|", $data['mem_voters']); echo !in_array(FUSION_IP, $voters) ? "<a class='quote-rating-plus-" . $data['mem_id'] . "' href='#vm' onclick='javascript: quote_vote(1," . $data['mem_id'] . ");'>+</a> " : ""; echo "<span class='quote-rating-" . $data['mem_id'] . "' style='color:" . ($data['mem_rating'] >= 0 ? "green" : "red") . ";'>" . $data['mem_rating'] . "</span>"; echo !in_array(FUSION_IP, $voters) ? " <a class='quote-rating-minus-" . $data['mem_id'] . "' href='#vm' onclick='javascript: quote_vote(2," . $data['mem_id'] . ");'>-</a>" : ""; echo "</div>"; echo "<div style='clear:both;'></div>"; echo "<div style='width:100%;text-align:center;'>"; echo "<img src='" . INFUSIONS . "al_genmem/asset/images/" . $data['mem_image'] . "' />"; echo "<br /><br />"; echo $data['mem_text1'] . "<br />" . $data['mem_text2']; echo "</div>"; closetable(); echo showcomments("G", DB_GEM_MEMS, "mem_id", $_GET['view'], FUSION_SELF . "?view=" . $_GET['view']); } else { redirect(FUSION_SELF); } } else { $total = dbcount("(mem_id)", DB_GEM_MEMS); if ($total > 0) { echo "<a href='" . FUSION_SELF . "'>" . $locale['gem23'] . "</a> / <a href='" . FUSION_SELF . "?sort=popular'>" . $locale['gem24'] . "</a> / <a href='" . FUSION_SELF . "?sort=best'>" . $locale['gem25'] . "</a> / <a href='" . FUSION_SELF . "?sort=random'>" . $locale['gem26'] . "</a> / <a href='" . BASEDIR . "generator.php?action=create'>" . $locale['gem27'] . "</a>"; if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; } if (isset($_GET['sort'])) { if ($_GET['sort'] == "popular") { $title = $locale['gem22']; $result = dbquery("SELECT * FROM " . DB_GEM_MEMS . " ORDER BY mem_views DESC LIMIT " . $_GET['rowstart'] . ",16"); } else {
function render_item($item_id) { global $aidlink, $locale, $settings, $golddata, $_REQUEST, $_POST, $_GET; include INCLUDES . "comments_include.php"; include INCLUDES . "ratings_include.php"; echo "<table width='100%' cellpadding='0' cellspacing='0' class='tbl-border'>\n<tr>\n"; echo "<td valign='top' align='left'>\n"; $result = dbquery("SELECT * FROM " . DB_UG3_USAGE . " LEFT JOIN (" . DB_UG3_CATEGORIES . ")\n\t\t\t\t ON (" . DB_UG3_CATEGORIES . ".cat_id = " . DB_UG3_USAGE . ".category)\n\t\t\t\t WHERE " . DB_UG3_USAGE . ".id = '" . $item_id . "'\n\t\t\t\t LIMIT 1"); if (dbrows($result)) { $data = dbarray($result); if (checkgroup($data['cat_access'])) { echo "<table cellpadding='3' cellspacing='0' width='100%' class='tbl-border'>\n<tr>\n"; echo "<td align='left' valign='top'> </td>\n"; echo "<td algin='left' valign='top'><h3>" . $data['name'] . "</h3></td>\n"; echo "</tr><tr>\n"; echo "<td align='left' valign='top'><img src='" . GOLD_IMAGE_ITEM . $data['image'] . "' /></td>"; echo "<td algin='left' valign='top'>" . $data['description'] . "<br/><br />\n"; echo "<u>" . $locale['urg_shop_109'] . "</u> " . formatMoney($data['cost']) . "<br /><br />\n"; echo "<u>" . $locale['urg_shop_117'] . "</u> " . $data['stock'] . "<br /><br />\n"; if ($golddata['cash'] >= $data['cost']) { echo "<a href='index.php?op=shop_finalise&id=" . $data['id'] . "&return=" . urlencode(FUSION_SELF . "?op=shop_start&category=" . $data['category']) . "'>" . $locale['urg_shop_119'] . "</a>\n"; } elseif ($data['stock'] == 0) { echo "<strong>" . $locale['urg_shop_120'] . "</strong>\n"; } else { echo "<span style='color:red;'>" . sprintf($locale['urg_shop_121'] . " %s", formatMoney($data['cost'] - $golddata['cash'])) . "</span>\n"; } echo "</td>\n"; echo "</tr>\n</table>\n"; } else { echo $locale['urg_shop_150']; pagerefresh('meta', 3, FUSION_SELF . '?op=shop_start'); } } else { echo $locale['urg_shop_151']; pagerefresh('meta', 3, FUSION_SELF . '?op=shop_start'); } echo "</td>\n"; echo "<td valign='top' align='left' width='150px'>\n"; echo "<table width='100%' cellpadding='3' cellspacing='3' class='tbl-border'>\n<tr>\n"; echo "<td class='tbl2'><strong>" . $locale['urg_shop_152'] . "</strong></td>\n"; echo "</tr>\n"; $count = 0; $result = dbquery("SELECT ownerid FROM " . DB_UG3_INVENTORY . " WHERE itemid = '" . $item_id . "' AND ownerid != '" . $userdata['user_id'] . "' GROUP BY ownerid ORDER BY RAND()"); if (dbrows($result)) { while ($data = dbarray($result)) { if ($count < 5) { $result2 = dbquery("SELECT itemid FROM " . DB_UG3_INVENTORY . " WHERE ownerid = '" . $data['ownerid'] . "' AND itemid != '" . $item_id . "' GROUP BY itemid ORDER BY RAND() LIMIT 5"); while ($data2 = dbarray($result2)) { if ($count < 5) { $item = dbarray(dbquery("SELECT id, name, image FROM " . DB_UG3_USAGE . " WHERE id = '" . $data2['itemid'] . "' LIMIT 1")); echo "<tr>\n"; echo "<td><img src='" . GOLD_IMAGE_ITEM . $item['image'] . "' alt='" . $data['itemname'] . "' width='15px' height='15px' align='left' /> \n"; echo "<a href='" . FUSION_SELF . "?op=shop_item&id=" . $item['id'] . "'>" . trimlink($item['name'], 15) . "</a></td>\n"; echo "</tr>\n"; $count++; } else { break; } } } else { break; } } } else { echo "<tr><td>" . $locale['urg_shop_153'] . "</td></tr>\n"; } echo "</table>\n"; echo "</td>\n</tr>\n</table>\n"; echo "<div style='margin:5px'></div>\n"; showcomments("S", DB_UG3_USAGE, "id", $_REQUEST['id'], FUSION_SELF . "?op=shop_item&id=" . $_REQUEST['id']); showratings("S", $_REQUEST['id'], FUSION_SELF . "?op=shop_item&id=" . $_REQUEST['id']); }
if (checkgroup($cp_data['page_access'])) { ob_start(); eval("?>" . stripslashes($cp_data['page_content']) . "<?php "); $custompage = ob_get_contents(); ob_end_clean(); $custompage = preg_split("/<!?--\\s*pagebreak\\s*-->/i", $custompage); $pagecount = count($custompage); echo $custompage[$_GET['rowstart']]; } else { echo "<div class='admin-message' style='text-align:center'><br /><img style='border:0px; vertical-align:middle;' src ='" . BASEDIR . "images/warn.png' alt=''/><br /> " . $locale['400'] . "<br /><a href='index.php' onclick='javascript:history.back();return false;'>" . $locale['403'] . "</a>\n<br /><br /></div>\n"; } } else { add_to_title($locale['global_200'] . $locale['401']); echo "<!--custompages-pre-content-->\n"; opentable($locale['401']); echo "<div style='text-align:center'><br />\n" . $locale['402'] . "\n<br /><br /></div>\n"; } closetable(); if (isset($pagecount) && $pagecount > 1) { echo "<div align='center' style='margin-top:5px;'>\n" . makepagenav($_GET['rowstart'], 1, $pagecount, 3, FUSION_SELF . "?page_id=" . $_GET['page_id'] . "&") . "\n</div>\n"; } echo "<!--custompages-after-content-->\n"; if (dbrows($cp_result) && checkgroup($cp_data['page_access'])) { if ($cp_data['page_allow_comments']) { showcomments("C", DB_CUSTOM_PAGES, "page_id", $_GET['page_id'], FUSION_SELF . "?page_id=" . $_GET['page_id']); } if ($cp_data['page_allow_ratings']) { showratings("C", $_GET['page_id'], FUSION_SELF . "?page_id=" . $_GET['page_id']); } } require_once THEMES . "templates/footer.php";
} echo "<br />"; if (!$me_voted && $app['app_status'] == "0" && (check_group(2) || check_group(3))) { echo "<form method='post' name='tgcgh'><input type='hidden' name='app_id' value='" . $_GET['id'] . "' /><input type='submit' name='vote_yes' class='button' value='" . $locale['ar46'] . "' /><input type='submit' class='button' name='vote_no' value='" . $locale['ar47'] . "' />"; if ($app['app_status'] == "0" && check_group(3)) { echo "<br /><input type='submit' class='button' name='c_apply' value='" . $locale['ar461'] . "' /><input type='submit' class='button' name='c_decline' value='" . $locale['ar471'] . "' />"; } echo "</form>"; } echo "</td></tr>"; echo "</table>"; closetable(); // app $app_form = dbquery("SELECT * FROM " . DB_RM_FORM_FIELDS . " ORDER BY ff_order ASC"); $ff_info = dbarray(dbquery("SELECT * FROM " . DB_RM_FORM_APPS . " WHERE fa_id='" . $app['app_form'] . "'")); opentable($locale['ar35']); echo "<table width='100%'>"; while ($ff = dbarray($app_form)) { if ($ff['ff_type'] == "1") { echo "<tr><td class='tbl2' width='250'>" . $ff['ff_title'] . "</td><td class='tbl2'>" . $ff_info['fa_' . $ff['ff_name']] . "</td></tr>"; } elseif ($ff['ff_type'] == "2") { echo "<tr><td class='tbl2' width='250'>" . $ff['ff_title'] . "</td><td class='tbl2'>" . nl2br(trim(stripinput($ff_info['fa_' . $ff['ff_name']]))) . "</td></tr>"; } elseif ($ff['ff_type'] == "3") { echo "<tr><td class='tbl2' width='250'>" . $ff['ff_title'] . "</td><td class='tbl2'>" . $ff_info['fa_' . $ff['ff_name']] . "</td></tr>"; } } echo "</table>"; closetable(); require_once INCLUDES . "comments_include.php"; showcomments("RM", DB_RM_APPS, "app_id", $_GET['id'], INFUSIONS . "al_register_mod/admin/index.php?p=view_app&id=" . $_GET['id']);
function render_photo($info) { global $locale, $userdata; opentable($locale['450']); echo render_breadcrumbs(); echo "<!--pre_photo-->"; echo "<a target='_blank' href='" . $info['photo_filename'] . "' class='photogallery_photo_link' title='" . (!empty($info['photo_title']) ? $info['photo_title'] : $info['photo_filename']) . "'><!--photogallery_photo_" . $_GET['photo_id'] . "-->"; echo "<img class='img-responsive' style='margin:0 auto;' src='" . $info['photo_filename'] . "' alt='" . (!empty($info['photo_title']) ? $info['photo_title'] : $info['photo_filename']) . "' style='border:0px' class='photogallery_photo' />"; echo "</a>\n"; echo "<div class='clearfix'>\n"; echo "<div class='btn-group pull-right m-t-20'>\n"; echo isset($info['nav']['first']) ? "<a class='btn btn-default btn-sm' href='" . $info['nav']['first']['link'] . "' title='" . $info['nav']['first']['name'] . "'><i class='entypo to-start'></i></a>\n" : ''; echo isset($info['nav']['prev']) ? "<a class='btn btn-default btn-sm' href='" . $info['nav']['prev']['link'] . "' title='" . $info['nav']['prev']['name'] . "'><i class='entypo left-dir'></i></a>\n" : ''; echo isset($info['nav']['next']) ? "<a class='btn btn-default btn-sm' href='" . $info['nav']['next']['link'] . "' title='" . $info['nav']['next']['name'] . "'><i class='entypo right-dir'></i></a>\n" : ''; echo isset($info['nav']['last']) ? "<a class='btn btn-default btn-sm' href='" . $info['nav']['last']['link'] . "' title='" . $info['nav']['last']['name'] . "'><i class='entypo to-end'></i></a>\n" : ''; echo "</div>\n"; echo "<div class='overflow-hide m-b-20'>\n"; echo "<h2 class='photo_title m-b-0'>" . $info['photo_title'] . "</span>\n</h2>\n"; if ($info['photo_description']) { echo "<span class='photo_description list-group-item'>" . $info['photo_description'] . "</span>"; } echo "</div>\n"; echo "<div class='list-group-item m-b-20'>\n"; echo "<div class='row'>\n"; echo "<div class='col-xs-12 col-sm-6 col-md-6 col-lg-6'>\n"; echo "<strong>" . $locale['434'] . "</strong>" . profile_link($info['user_id'], $info['user_name'], $info['user_status']) . "<br/>\n"; echo "<strong>" . $locale['433'] . "</strong><abbr title='" . showdate("shortdate", $info['photo_datestamp']) . "'>" . timer(time()) . "</abbr><br/>"; echo "<strong>" . $locale['454'] . "</strong>" . $info['photo_size'][0] . " x " . $info['photo_size'][1] . " " . $locale['455'] . "<br/>\n"; echo "<strong>" . $locale['456'] . "</strong>" . $info['photo_byte']; echo "</div><div class='col-xs-12 col-sm-6 col-md-6 col-lg-6'>\n"; echo "<strong>" . $locale['457'] . "</strong>" . number_format($info['photo_views']) . "<br/>\n"; echo "<strong>" . $locale['437'] . "</strong>" . $info['photo_ratings'] . "<br/>\n"; echo "<strong>" . $locale['436'] . "</strong>" . $info['photo_comment'] . "<br/>\n"; echo "</div>\n</div>\n"; echo "</div>\n</div>\n"; echo "<!--sub_photo-->"; if ($info['photo_allow_comments']) { showcomments("P", DB_PHOTOS, "photo_id", $_GET['photo_id'], INFUSIONS . "gallery/gallery.php?photo_id=" . $_GET['photo_id']); } if ($info['photo_allow_ratings']) { showratings("P", $_GET['photo_id'], INFUSIONS . "gallery/gallery.php?photo_id=" . $_GET['photo_id']); } closetable(); }
<?php /*-------------------------------------------------------+ | PHP-Fusion Content Management System | Copyright © 2002 - 2008 Nick Jones | http://www.php-fusion.co.uk/ +--------------------------------------------------------+ | Author: Domi & fetloser +--------------------------------------------------------+ | This program is released as free software under the | Affero GPL license. You can redistribute it and/or | modify it under the terms of this license which you | can read by viewing the included agpl.txt or online | at www.gnu.org/licenses/agpl.html. Removal of this | copyright header is strictly prohibited without | written permission from the original author(s). +--------------------------------------------------------*/ require_once "../../maincore.php"; echo "<script type='text/javascript' src='" . INCLUDES . "jscript.js'></script>\n"; require_once THEME . "theme.php"; echo "<link rel='stylesheet' href='" . THEME . "styles.css' type='text/css'>"; include INCLUDES . "comments_include.php"; showcomments("K", "" . $db_prefix . "kroax", "" . $_GET['comment_id'] . "", $_GET['comment_id'], FUSION_SELF . "?comment_id=" . $_GET['comment_id'] . "");
} if ($data['tour_grid'] == "1") { echo "<tr><td class='tbl2' colspan='3' align='center'><a href='" . BASEDIR . "tourney.php?p=viewbracket&id=" . $data['tour_id'] . "'>Go to brackets</a></td></tr>"; } echo "<tr><td class='tbl2' colspan='3'>Description:</td></tr>"; echo "<tr><td class='tbl1'>" . nl2br(parseubb($data['tour_desc'])) . "</td></tr>"; echo "</table>"; closetable(); openside("Players", true, "off"); $result2 = dbquery("SELECT tpl.*, us.user_name FROM " . DB_T_PLAYERS . " tpl LEFT JOIN " . DB_USERS . " us ON tpl.player_user=us.user_id WHERE player_tour='" . $data['tour_id'] . "' AND player_user<>'" . $bye . "'"); if (dbrows($result2)) { echo "<table width='100%'>"; echo "<tr><td width='1%' class='tbl2'>#</td><td class='tbl2'>Name</td><td width='1%' class='tbl2'>Confirm</td><td class='tbl2' width='1%'></td></tr>"; $i = 1; while ($data2 = dbarray($result2)) { echo "<tr><td width='1%' class='" . ($i % 2 == 0 ? "tbl2" : "tbl1") . "'>" . $i . "</td><td class='" . ($i % 2 == 0 ? "tbl2" : "tbl1") . "'><a href='" . BASEDIR . "profile.php?lookup=" . $data2['player_user'] . "'>" . $data2['user_name'] . "</a></td><td width='1%' class='" . ($i % 2 == 0 ? "tbl2" : "tbl1") . "' align='center'>" . ($data2['player_checkin'] == 1 ? "<span style='color:green;'>confirmed</span>" : "<span style='color:red;'>not confirmed</span>") . "</td><td class='" . ($i % 2 == 0 ? "tbl2" : "tbl1") . "' width='1%'>"; if (checkrights("T")) { echo "<a href='" . FUSION_REQUEST . "&checkin=" . ($data2['player_checkin'] == "1" ? "0" : "1") . "&pid=" . $data2['player_id'] . "'><img src='" . IMAGES . "" . ($data2['player_checkin'] == "1" ? "no" : "yes") . ".png' alt='change confirmation' /></a> <a href='" . FUSION_REQUEST . "&delete=" . $data2['player_id'] . "'><img src='" . IMAGES . "no.png' alt='delete player' /></a>"; } echo "</td></tr>"; $i++; } echo "</table>"; } else { echo "No registered players."; } closeside(); } require_once INCLUDES . "comments_include.php"; showcomments("TT", DB_T_TOURS, "tour_id", $_GET['id'], BASEDIR . "tourney.php?p=viewtour&id=" . $_GET['id']);
<?php /*-------------------------------------------------------+ | PHP-Fusion Content Management System | Copyright © 2002 - 2008 Nick Jones | http://www.php-fusion.co.uk/ +--------------------------------------------------------+ | Author: Domi & fetloser | www.venue.nu +--------------------------------------------------------+ | This program is released as free software under the | Affero GPL license. You can redistribute it and/or | modify it under the terms of this license which you | can read by viewing the included agpl.txt or online | at www.gnu.org/licenses/agpl.html. Removal of this | copyright header is strictly prohibited without | written permission from the original author(s). +--------------------------------------------------------*/ require_once "../../maincore.php"; echo "<script type='text/javascript' src='" . INCLUDES . "jscript.js'></script>\n"; require_once THEME . "theme.php"; echo "<link rel='stylesheet' href='" . THEME . "styles.css' type='text/css'>"; include INCLUDES . "comments_include.php"; showcomments("G", "" . $db_prefix . "varcade_games", "" . $_GET['comment_id'] . "", $_GET['comment_id'], FUSION_SELF . "?comment_id=" . $_GET['comment_id'] . "");
} else { echo "<div class='viewpage'>" . $custompage . "</div>"; } echo itemoptions("CP", (int) $_GET['page_id']); // Pimped } else { echo "<div style='text-align:center'><br />\n" . $locale['400'] . "\n<br /><br /></div>\n"; } } else { add_to_title($locale['global_200'] . $locale['401']); opentable($locale['401']); echo "<div style='text-align:center'><br />\n" . $locale['402'] . "\n<br /><br /></div>\n"; } closetable(); if (dbrows($cp_result) && checkgroup($cp_data['page_access'])) { if ($settings['enable_tags']) { require_once INCLUDES . "tag_include.php"; // Pimped: tag echo show_tags((int) $_GET['page_id'], "C"); // Pimped: tag } if ($cp_data['page_allow_comments']) { require_once INCLUDES . "comments_include.php"; showcomments("C", DB_CUSTOM_PAGES, "page_id", (int) $_GET['page_id'], FUSION_SELF . "?page_id=" . (int) $_GET['page_id'], "page", "-", (int) $_GET['page_id'], "", "", "-", $cp_data['page_title']); } if ($cp_data['page_allow_ratings'] && $settings['ratings_enabled'] == "1") { require INCLUDES . "ratings_include.php"; showratings("C", (int) $_GET['page_id'], FUSION_SELF . "?page_id=" . (int) $_GET['page_id'], "page-" . (int) $_GET['page_id'] . "-", $cp_data['page_title']); } } require_once TEMPLATES . "footer.php";
/** * Download Page * @param $info */ function render_downloads($info) { global $dl_settings; $locale = fusion_get_locale(); echo render_breadcrumbs(); echo "<div class='row'>\n"; echo "<div class='col-xs-12 col-sm-9'>\n"; if (isset($_GET['download_id']) && !empty($info['download_item'])) { $data = $info['download_item']; echo "<h3 class='m-t-0 m-b-0'>" . $data['download_title'] . "</h3>\n"; echo "<div class='m-b-20'>\n"; echo $data['download_description_short']; echo "</div>\n"; echo "<div class='panel panel-default'>\n"; echo "<div class='panel-heading clearfix'>\n"; echo "<div class='row'>\n"; echo "<div class='col-xs-5 col-sm-5 col-md-5 col-lg-5' style='border-right: 1px solid #ddd;'>\n"; echo "<a href='" . $data['download_file_link'] . "' class='pull-left m-r-20 btn btn-success btn-xs m-t-5 text-white'>\n"; echo "<i class='fa fa-download p-5 fa-2x'></i>\n"; echo "</a>\n"; echo "<div class='overflow-hide'><h4 class='m-t-5 m-b-0 strong'>" . $locale['download_1007'] . "</h4>\n " . $locale['download_1020'] . ": " . $data['download_filesize'] . " </div>\n"; echo "</div><div class='col-xs-7 col-sm-7 col-md-7 col-lg-7'>\n"; echo "<div class='pull-left m-b-20'>\n"; if (!$data['download_allow_ratings']) { echo $data['download_post_author']; } else { echo "<span class='strong'>" . $locale['download_1008'] . ":</span><br/>\n"; echo "<a id='rateJump'>" . $locale['download_3003'] . "</a>\n"; add_to_jquery("\t\$('#rateJump').bind('click', function() { \$('html,body').animate({scrollTop: \$('#rate').offset().top}, 'slow');\t});\t"); } echo "</div>\n"; echo "</div>\n</div>\n"; echo "</div><div class='panel-body p-b-0'>\n"; if ($dl_settings['download_screenshot'] && $data['download_image']) { echo "<div class='pull-left m-l-0 m-10'>\n"; echo thumbnail(DOWNLOADS . "images/" . $data['download_image'], '120px'); echo "<p class='mid-opacity strong text-smaller m-t-0'>" . $locale['download_1009'] . "</h4>\n"; echo "</div>\n"; } echo "<div class='overflow-hide m-10'>\n"; echo "<p class='strong m-0'>" . $locale['download_1010'] . "</p>\n"; echo "<div class='row m-t-5 m-b-5'>\n"; echo "<div class='col-xs-4 col-sm-4 col-md-4 col-lg-4'>\n"; echo "<span class='strong text-smaller text-lighter'>" . $locale['download_1011'] . ":</span><br/>" . $data['download_version']; echo "</div>\n<div class='col-xs-4 col-sm-4 col-md-4 col-lg-4'>\n"; echo "<span class='strong text-smaller text-lighter'>" . $locale['download_1012'] . ": </span><br/>" . $data['download_count']; echo "</div>\n<div class='col-xs-4 col-sm-4 col-md-4 col-lg-4'>\n"; echo "<span class='strong text-smaller text-lighter'>" . $locale['download_1021'] . ":</span><br/>" . $data['download_post_time']; echo "</div></div>\n"; echo "<hr class='m-t-5 m-b-0'>\n"; echo "<div class='row m-t-5'>\n"; echo "<div class='col-xs-4 col-sm-4 col-md-4 col-lg-4'>\n"; echo "<span class='strong text-smaller text-lighter'>" . $locale['download_1013'] . ":</span><br/>" . $data['download_license']; echo "</div>\n<div class='col-xs-4 col-sm-4 col-md-4 col-lg-4'>\n"; echo "<span class='strong text-smaller text-lighter'>" . $locale['download_1014'] . ":</span><br/>" . $data['download_os']; echo "</div>\n<div class='col-xs-4 col-sm-4 col-md-4 col-lg-4'>\n"; echo "<span class='strong text-smaller text-lighter'>" . $locale['download_1015'] . ":</span><br/>" . $data['download_copyright']; echo "</div></div>\n"; echo "</div>\n"; echo "</div>\n"; echo "<div class='panel-footer'>\n"; echo "<span class='strong text-smaller text-lighter'>" . $locale['download_1017'] . ":</span><br/>" . $data['download_homepage']; echo "</div>\n"; echo "</div>\n"; if ($data['download_description']) { echo "<p class='strong'>" . $locale['download_1019'] . "</p>"; echo $data['download_description']; } if ($data['download_allow_comments']) { showcomments("D", DB_DOWNLOADS, "download_id", $_GET['download_id'], INFUSIONS . "downloads/downloads.php?cat_id=" . $data['download_cat'] . "&download_id=" . $_GET['download_id']); } if ($data['download_allow_ratings']) { echo "<a id='rate'>\n</a>\n"; // jumper target showratings("D", $_GET['download_id'], INFUSIONS . "downloads/downloads.php?cat_id=" . $data['download_cat'] . "&download_id=" . $_GET['download_id']); } } else { echo "<h3>" . $info['download_title'] . "</h3>\n"; if (!empty($info['download_cat_description'])) { echo "<div class='display-block'>\n"; echo $info['download_cat_description']; echo "</div>\n"; } echo "<!--pre_download_cat-->\n"; echo "<div class='list-group'>\n"; if (!empty($info['download_item'])) { foreach ($info['download_item'] as $download_id => $data) { $download_title = $data['download_title']; echo "<div class='list-group-item clearfix'>\n"; echo "<div class='pull-right'>\n"; echo "<div class='m-t-10 m-r-10'><i class='entypo down-circled'></i> " . $data['download_count'] . "</div>\n"; echo "<div class='m-r-10'><i class='fa fa-comments-o fa-fw'></i>" . $data['download_comments'] . "</div>\n"; echo "<div class='m-r-10'><i class='fa fa-star-o fa-fw'></i>" . $data['download_sum_rating'] . "</div>\n"; echo "<a class='btn btn-sm btn-primary m-t-10 " . (empty($data['download_file_link']) ? 'disabled' : '') . "' href='" . $data['download_file_link'] . "'><i class='fa fa-download fa-fw'></i> " . $locale['download_1007'] . "</a>\n"; echo "</div>\n"; echo "<div class='pull-left m-r-10'>\n"; echo $data['download_image']; echo "</div>\n"; echo "<div class='overflow-hide'>\n"; echo "<div class='overflow-hide'>\n"; echo "<h4 class='m-0 display-inline-block'><a class='text-dark' href='" . $data['download_link'] . "' title='" . $download_title . "'>" . trimlink($data['download_title'], 100) . "</a></h4>"; echo "<div class='m-b-10'>" . $data['download_category_link'] . "</div>\n"; echo "<div class='m-b-5'>" . $data['download_description_short'] . "</div>"; echo "</div>\n"; echo "</div>\n"; echo "</div>\n"; } if (!empty($info['download_nav'])) { echo "<br/>\n"; echo $info['download_nav']; } } else { echo "<div class='text-center well m-t-20'>\n"; echo $locale['download_3000']; echo "</div>\n"; } echo "</div>\n"; echo "<!--sub_download_cat-->"; } echo "</div><div class='col-xs-12 col-sm-3'>\n"; echo display_download_menu($info); echo "</div>\n</div>\n"; }
echo "<a href='" . FUSION_SELF . "?section=groups&view=" . $data['group_id'] . "&deny=" . $adata['user_id'] . "'>" . $locale['uc301'] . "</a></span></td>\n"; } echo "</tr>\n</table>\n"; echo "</td>\n</tr>\n"; } /* forums not implemented if($data['group_moderate']){ echo "<tr>\n<td class='tbl2 navsection'>".$locale['uc370']."</td>\n</tr>\n<tr>\n<td class='tbl1' style='padding:6px;'>\n"; echo "</td>\n</tr>\n"; } */ if ($data['group_wall']) { include INFUSIONS . "fusionboard4/includes/comments_enhanced.php"; echo "<tr>\n<td class='tbl2 navsection'>" . $locale['uc280'] . "</td>\n</tr>\n<tr>\n<td class='tbl2' style='padding:6px;'>\n"; showcomments("G", DB_USER_GROUPS, "group_id", $_GET['view'], FUSION_SELF . "?section=groups&view=" . $_GET['view'], $in_group); echo "</td>\n</tr>\n"; } } else { echo "<tr>\n<td class='tbl2 navtitle'>" . stripslash($data['group_name']) . "</td>\n</tr>\n"; echo "<tr>\n<td class='tbl1'><div style='float:right;'>" . $locale['uc278'] . "<b>" . ($data['group_access'] == "1" ? $locale['uc269'] : ($data['group_access'] == "2" ? $locale['uc270'] : $locale['uc291'])) . "</b></div>\n"; echo "<span style='font-size:18px;'>" . stripslash($data['group_name']) . "</span><br />\n"; echo $locale['uc276'] . "<a href='" . BASEDIR . "profile.php?lookup=" . $data['user_id'] . "'>" . $data['user_name'] . "</a><br /><br />\n"; echo $locale['uc290'] . "</td>\n</tr>\n"; } echo "<tr>\n<td class='tbl2 small' align='center'>"; $invited = dbcount("(invite_to)", DB_PREFIX . "fb_invites", "invite_to='" . $userdata['user_id'] . "' and invite_group='" . $data['group_id'] . "'"); if ($in_group) { if ($userdata['user_id'] !== $data['group_leader']) { echo "<a href='" . FUSION_SELF . "?section=groups&leave=" . $data['group_id'] . "'>" . $locale['uc287'] . "</a> :: \n"; }
function display_blog_item($info) { global $locale, $blog_settings; add_to_head("<link rel='stylesheet' href='" . INFUSIONS . "blog/templates/css/blog.css' type='text/css'>"); add_to_head("<link rel='stylesheet' href='" . INCLUDES . "jquery/colorbox/colorbox.css' type='text/css' media='screen' />"); add_to_head("<script type='text/javascript' src='" . INCLUDES . "jquery/colorbox/jquery.colorbox.js'></script>"); add_to_footer('<script type="text/javascript"> $(document).ready(function() { $(".blog-image-overlay").colorbox({ transition: "elasic", height:"100%", width:"100%", maxWidth:"98%", maxHeight:"98%", scrolling:false, overlayClose:true, close:false, photo:true, onComplete: function(result) { $("#colorbox").live("click", function(){ $(this).unbind("click"); $.fn.colorbox.close(); }); }, onLoad: function () { } }); }); </script>'); ob_start(); $data = $info['blog_item']; echo "<div class='clearfix'>\n\t\t\t\t<div class='btn-group pull-right'>\n\t\t\t\t<a class='btn btn-default btn-sm' href='" . $data['print_link'] . "'>" . $locale['print'] . "</a>"; if ($data['admin_link']) { $admin_actions = $data['admin_link']; echo "<a class='btn btn-default btn-sm' href='" . $admin_actions['edit'] . "'>" . $locale['edit'] . "</a>\n"; echo "<a class='btn btn-default btn-sm' href='" . $admin_actions['delete'] . "'>" . $locale['delete'] . "</a>\n"; } echo "</div>"; echo "<div class='overflow-hide'>\n\t\t\t\t<h2 class='strong m-t-0 m-b-0'>" . $data['blog_subject'] . "</h2>\n\t\t\t\t<div class='blog-category'>" . $data['blog_category_link'] . "</div>\n\t\t\t\t<div class='m-t-20 m-b-20'>" . $data['blog_post_author'] . " " . $data['blog_post_time'] . "</div>\n\t\t\t</div>\n\t\t</div>"; echo "<div class='clearfix m-b-20'>\n"; if ($data['blog_image']) { echo "<a class='m-10 " . $data['blog_ialign'] . " blog-image-overlay' href='" . $data['blog_image_link'] . "'>"; echo "<img class='img-responsive' src='" . $data['blog_image_link'] . "' alt='" . $data['blog_subject'] . "' style='padding:5px; max-height:" . $blog_settings['blog_photo_h'] . "px; overflow:hidden;' />\n </a>"; } echo parse_textarea($data['blog_extended'], FALSE, FALSE); echo "</div>\n"; if ($info['blog_nav']) { echo "<div class='clearfix m-b-20'>\n<div class='pull-right'>\n" . $info['blog_nav'] . "</div>\n</div>\n"; } echo "<div class='m-b-20 well'>" . $data['blog_author_info'] . "</div>"; if ($data['blog_allow_comments']) { echo "<hr /> " . showcomments("B", DB_BLOG, "blog_id", $_GET['readmore'], INFUSIONS . "blog/blog.php?readmore=" . $_GET['readmore']) . ""; } if ($data['blog_allow_ratings']) { echo "<hr /> " . showratings("B", $_GET['readmore'], INFUSIONS . "blog/blog.php?readmore=" . $_GET['readmore']) . ""; } $str = ob_get_contents(); ob_end_clean(); return $str; }
if (dbrows($news)) { $news = dbarray($news); if ($news['news_published'] == "1" || inGroup($news['news_group'])) { opentable($locale['gs48']); echo "<table width='100%'><tr><td>" . $news['news_title'] . "<br />" . $locale['gs49'] . "<a href='" . BASEDIR . "profile.php?lookup=" . $news['news_author'] . "'>" . $news['user_name'] . "</a> @ <a href='" . BASEDIR . "group.php?view=" . $news['news_group'] . "'>" . $news['group_name'] . "</a> " . $locale['gs50'] . " " . showdate("longdate", $news['news_date']) . "</td></tr><tr><td heigth='20'> </td></tr><tr><td>" . parseubb($news['news_pre']) . "</td></tr><tr><td heigth='20'> </td></tr><tr><td>" . parseubb($news['news_news']) . "</td></tr></table>"; closetable(); if ($news['news_published'] == "0" && inGroup($news['news_group'])) { opentable($locale['gs51']); $new_news = dbquery("SELECT * FROM " . DB_GS_VOTES_NEWS . " WHERE vnews_news='" . $_GET['view'] . "'"); if (dbrows($new_news)) { //$tuser = dbcount("(guser_id)",DB_GS_GROUP_USERS, "guser_group='".$news['news_group']."'"); $new_new=dbarray($new_news); echo $locale['gs52'] . " <strong style='color:green;'>" . $new_new['vnews_have'] . " (" . round($new_new['vnews_have'] / $new_new['vnews_need'] * 100) . "%)</strong> / <strong style='color:red;'>" . $new_new['vnews_unhave'] . " (" . round($new_new['vnews_unhave'] / $new_new['vnews_need'] * 100) . "%)</strong> "; if (inLine($userdata['user_id'], $new_new['vnews_canvote']) && !inLine($userdata['user_id'], $new_new['vnews_voted'])) { echo "<form name='request" . $new_new['vnews_id'] . "yes' method='post'><input type='hidden' name='vid' value='" . $new_new['vnews_id'] . "' /><input type='hidden' name='vote' value='yes' /><input type='submit' name='vote_news' class='button' value='" . $locale['gs39'] . "' /></form> <form name='request" . $new_new['vnews_id'] . "no' method='post'><input type='hidden' name='vid' value='" . $new_new['vnews_id'] . "' /><input type='hidden' name='vote' value='no' /><input type='submit' name='vote_news' class='button' value='" . $locale['gs40'] . "' /></form>"; } } closetable(); } require_once INCLUDES . "comments_include.php"; if ($news['news_published'] == "0") { showcomments("GU", DB_GS_NEWS, "news_id", $_GET['view'], BASEDIR . "group_news.php?view=" . $_GET['view']); } else { showcomments("GP", DB_GS_NEWS, "news_id", $_GET['view'], BASEDIR . "group_news.php?view=" . $_GET['view']); } } else { echo "no access!"; } } // dbrows } require_once THEMES . "templates/footer.php";
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/libraries/common/feedback_functions.php'; ?> <div id="header"> <h1>Harley Hotel</h1> <p class="description">Usually some sort of tagline or description is placed here.</p> </div> <table id="feedbacks"> <table> <?php showcomments(); ?> </table> </table>
echo "<div align='center' style='margin:5px 0px 5px 0px' class='photogallery_photo_desc'><!--photogallery_photo_desc-->\n"; if ($data['photo_description']) { echo nl2br(parseubb($data['photo_description'], "b|i|u|center|small|url|mail|img|quote")) . "<br /><br />\n"; } echo $locale['433'] . showdate("shortdate", $data['photo_datestamp']) . "<br />\n"; echo $locale['434'] . profile_link($data['user_id'], $data['user_name'], $data['user_status']) . "<br />\n"; echo $locale['454'] . "{$photo_size['0']} x {$photo_size['1']} " . $locale['455'] . "<br />\n"; echo $locale['456'] . parsebytesize($settings['photo_watermark'] ? filesize(PHOTODIR . $data['photo_filename']) : filesize($photo_file)) . "<br />\n"; $photo_comments = dbcount("(comment_id)", DB_COMMENTS, "comment_type='P' AND comment_item_id='" . (int) $_GET['photo_id'] . "'"); echo ($photo_comments == 1 ? $locale['436b'] : $locale['436']) . $photo_comments . "<br />\n"; echo $locale['437'] . ($data['count_votes'] > 0 ? str_repeat("<img src='" . get_image("star") . "' alt='*' style='vertical-align:middle' />", ceil($data['sum_rating'] / $data['count_votes'])) : $locale['438']) . "<br />\n"; echo $locale['457'] . $data['photo_views'] . "\n</div>\n"; closetable(); if ($data['photo_allow_comments']) { require_once INCLUDES . "comments_include.php"; showcomments("P", DB_PHOTOS, "photo_id", $_GET['photo_id'], FUSION_SELF . "?photo_id=" . $_GET['photo_id']); } if ($data['photo_allow_ratings'] && $settings['ratings_enabled'] == "1") { require INCLUDES . "ratings_include.php"; showratings("P", $_GET['photo_id'], FUSION_SELF . "?photo_id=" . $_GET['photo_id']); } } } elseif (isset($_GET['album_id']) && isnum($_GET['album_id'])) { define("PHOTODIR", PHOTOS . (!SAFEMODE ? "album_" . $_GET['album_id'] . "/" : "")); $result = dbquery("SELECT album_title, album_description, album_thumb, album_access\r\n\tFROM " . DB_PHOTO_ALBUMS . " WHERE album_id='" . (int) $_GET['album_id'] . "'"); if (!dbrows($result)) { redirect(make_url(BASEDIR . FUSION_SELF, BASEDIR . "photogallery", "", ".html")); } else { $data = dbarray($result); if (!checkgroup($data['album_access'])) { redirect(make_url(BASEDIR . FUSION_SELF, BASEDIR . "photogallery", "", ".html"));
echo "<td align='center' class='tbl2'>" . $data['addon_download_count'] . "</td>\n"; echo "<td align='center' class='tbl2'>" . $sf_rating . "</td>\n</tr>"; } echo "</table>\n"; closetable(); } // Addons Co-Authored by... $result = dbquery("SELECT * FROM " . DB_ADDONS . " WHERE addon_co_author_name = '" . $d_addons['addon_author_name'] . "' AND addon_id != '" . $d_addons['addon_id'] . "' AND addon_status = '0' ORDER BY addon_download_count DESC"); if (dbrows($result) != 0) { opentable($locale['addondb513'] . $d_addons['addon_author_name']); echo "<table width='100%' border='0' cellpadding='0' cellspacing='1' class='tbl-border'><tr>\n"; echo "<th class='forum-caption'><b>" . $locale['addondb403'] . "</b></th>\n\r\n\t<th class='forum-caption'><b>" . $locale['addondb401'] . "</b></th>\n\r\n\t<th class='forum-caption'><b>" . $locale['addondb405'] . "</b></th>\n\r\n\t<th class='forum-caption'><b>" . $locale['addondb422'] . "</b></td>\n\r\n\t<th class='forum-caption' width='120'><b>" . $locale['addondb412'] . "</b></td>\n</tr>\n"; while ($data = dbarray($result)) { $sf_rating = str_repeat("<img src='" . ADDON_IMG . "star.png' alt='" . $locale['addondb414'] . "' />", $data['addon_approved_rating']); $cat_data = dbarray(dbquery("SELECT addon_cat_name FROM " . DB_ADDON_CATS . " WHERE addon_cat_id = '" . $data['addon_cat_id'] . "'")); echo "<tr>\n<td class='tbl2'>" . $cat_data['addon_cat_name'] . "</td>\n\r\n\t<td class='tbl2'> <a href='" . ADDON . "view.php?addon_id=" . $data['addon_id'] . "'> " . $data['addon_name'] . "</a></td>\n\r\n\t<td class='tbl2'>" . $data['addon_author_name'] . "</td>\n\r\n\t<td align='center' class='tbl2'>" . $data['addon_download_count'] . "</td>\n\r\n\t<td align='center' class='tbl2'>" . $sf_rating . "</td>\n</tr>\n"; } echo "</table>\n"; closetable(); } showratings("M", $addon_id, FUSION_SELF . "?addon_id=" . $d_addons['addon_id']); if ($settings_global['set_addondb_comm'] == '0') { showcomments("M", DB_ADDONS, "addon_id", $d_addons['addon_id'], FUSION_SELF . "?addon_id=" . $d_addons['addon_id']); } } if (!iGUEST) { add_to_title($locale['addondb507'] . $locale['addondb508'] . $locale['addondb507'] . $d_addons['addon_name']); } else { add_to_title($locale['addondb507'] . $locale['addondb508'] . $locale['addondb507']); } require_once THEMES . "templates/footer.php";
$data['news_reads']++; } $news_cat_image = ""; $news_subject = $data['news_subject']; if ($data['news_image_t1'] && $settings['news_image_readmore'] == "0") { $img_size = @getimagesize(IMAGES_N . $data['news_image']); $news_cat_image = "<a href=\"javascript:;\" onclick=\"window.open('" . IMAGES_N . $data['news_image'] . "','','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=" . ($img_size[0] + 20) . ",height=" . ($img_size[1] + 20) . "')\"><img src='" . IMAGES_N_T . $data['news_image_t1'] . "' alt='" . $data['news_subject'] . "' class='news-category' /></a>"; } elseif ($data['news_cat_image']) { $news_cat_image = "<a href='news_cats.php?cat_id=" . $data['news_cat'] . "'><img src='" . get_image("nc_" . $data['news_cat_name']) . "' alt='" . $data['news_cat_name'] . "' class='news-category' /></a>"; } $news_news = preg_split("/<!?--\\s*pagebreak\\s*-->/i", $data['news_breaks'] == "y" ? nl2br(stripslashes($data['news_extended'] ? $data['news_extended'] : $data['news_news'])) : stripslashes($data['news_extended'] ? $data['news_extended'] : $data['news_news'])); $pagecount = count($news_news); $news_info = array("news_id" => $data['news_id'], "user_id" => $data['user_id'], "user_name" => $data['user_name'], "user_status" => $data['user_status'], "news_date" => $data['news_datestamp'], "cat_id" => $data['news_cat'], "cat_name" => $data['news_cat_name'], "cat_image" => $news_cat_image, "news_subject" => $data['news_subject'], "news_ext" => "n", "news_reads" => $data['news_reads'], "news_comments" => dbcount("(comment_id)", DB_COMMENTS, "comment_type='N' AND comment_item_id='" . $data['news_id'] . "' AND comment_hidden='0'"), "news_allow_comments" => $data['news_allow_comments'], "news_sticky" => $data['news_sticky']); add_to_title($locale['global_201'] . $news_subject); echo "<!--news_pre_readmore-->"; render_news($news_subject, $news_news[$_GET['rowstart']], $news_info); echo "<!--news_sub_readmore-->"; if ($pagecount > 1) { echo "<div align='center' style='margin-top:5px;'>\n" . makepagenav($_GET['rowstart'], 1, $pagecount, 3, FUSION_SELF . "?readmore=" . $_GET['readmore'] . "&") . "\n</div>\n"; } if ($data['news_allow_comments']) { showcomments("N", DB_NEWS, "news_id", $_GET['readmore'], FUSION_SELF . "?readmore=" . $_GET['readmore']); } if ($data['news_allow_ratings']) { showratings("N", $_GET['readmore'], FUSION_SELF . "?readmore=" . $_GET['readmore']); } } else { redirect(FUSION_SELF); } } require_once THEMES . "templates/footer.php";
} echo "</select> : <select name='mmin'>"; for ($i = 0; $i <= 9; $i++) { $x = "0" . $i; echo "<option value='" . $x . "'" . ($x == $mi ? " selected='selected'" : "") . ">" . $x . "</option>"; } for ($i = 10; $i <= 59; $i++) { echo "<option value='" . $i . "'" . ($i == $mi ? " selected='selected'" : "") . ">" . $i . "</option>"; } echo "</select> <select name='mday'>"; for ($i = 1; $i <= 31; $i++) { echo "<option value='" . $i . "'" . ($i == $d ? " selected='selected'" : "") . ">" . $i . "</option>"; } echo "</select> - <select name='mmon'>"; for ($i = 1; $i <= 12; $i++) { echo "<option value='" . $i . "'" . ($i == $m ? " selected='selected'" : "") . ">" . $i . "</option>"; } echo "</select> - <select name='myear'>"; for ($i = 2012; $i <= 2020; $i++) { echo "<option value='" . $i . "'" . ($i == $y ? " selected='selected'" : "") . ">" . $i . "</option>"; } echo "</select><input type='submit' class='button' name='admin_set' value='Change' /></form></td></tr>"; } } echo "</table>"; closetable(); require_once INCLUDES . "comments_include.php"; showcomments("TM", DB_T_MATCHES, "match_id", $_GET['id'], BASEDIR . "tourney.php?p=result&id=" . $_GET['id']); } else { echo "invalid id"; }