<h1>Unobtrusive AJAX Star Rating Bar</h1> <h2>v 1.2.2, March 18, 2007</h2> <p>Make sure to first check the <a href="readme.txt">Read Me</a> file and add your database info to the _config_rating.php file.</p> <br /> <?php echo rating_bar('id21', '5'); echo rating_bar('id22', ''); ?> <?php echo rating_bar('id1', ''); echo rating_bar('2id', 5); echo rating_bar('3xx', 6); echo rating_bar('4test', 8); echo rating_bar('5560'); echo rating_bar('66234', '', 'static'); echo rating_bar('66334', ''); echo rating_bar('63334', ''); ?> <br /><br /> <a href="http://www.masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/">(Unobtrusive) AJAX Star Rating Bar Homepage</a> </div> </body> </html>
$row["description"] = format_comment($row["comment"]); } if (isset($row["cat_name"])) { $row["cat_name"] = unesc($row["cat_name"]); } else { $row["cat_name"] = unesc($language["NONE"]); } # <!-- ################################################################## ########################################################################--> require 'ajaxstarrater/_drawrating.php'; # ajax rating if ($row["username"] != $CURUSER["username"] && $CURUSER["uid"] > 1) { $row["rating"] = rating_bar("" . $_GET["id"] . "", 5); } else { $row["rating"] = rating_bar("" . $_GET["id"] . "", 5, 'static'); } $row["rating"]; # <!-- ################################################################## ########################################################################--> $row["size"] = makesize($row["size"]); // files in torrent - by Lupin 20/10/05 require_once dirname(__FILE__) . "/include/BDecode.php"; if (file_exists($row["url"])) { $torrenttpl->set("DISPLAY_FILES", TRUE, TRUE); $ffile = fopen($row["url"], "rb"); $content = fread($ffile, filesize($row["url"])); fclose($ffile); $content = BDecode($content); $numfiles = 0;
$tags_array = explode(",", $rowProductName['tag']); $tags_total = count($tags_array); for ($t = 0; $t < $tags_total; $t++) { $tags_name = $tags_array[$t]; $tags_url = removeVietnamese(trim($tags_name), " ", "-"); //lay url tu dong $tags_html .= "<a href=\"" . $serverName . $code_tag . "/" . $tags_url . "/\" title=\"\">" . $tags_name . "</a>"; } $_tagsHtml = ''; if ($rowProductName['tag'] != '') { $_tagsHtml = " <div class=\"bar_tag\"> <span>TAGs</span> " . $tags_html . "\n </div>"; } if ($strjson != '[]' and $strjson != '') { $i = 1; $strjson = json_decode($strjson, true); foreach ($strjson as $items) { $item = explode('%%%', $items); if ($i < 4) { $addinfor .= "<tr><td style=\"width:40%;\">■ " . $item[0] . ": </td><td style=\"width:60%;\">" . $item[1] . "</td></tr>"; $i++; } else { $addinfor2 .= "<tr><td style=\"width:40%;\">■ " . $item[0] . ": </td><td style=\"width:60%;\">" . $item[1] . "</td></tr>"; } } } else { $addinfor = ""; $addinfor2 = ""; } require 'rating/_drawrating.php'; $rating = rating_bar($idProduct, 5); $showHtmlNewDetail = "\n<link href=\"" . $serverName . "css/zoom.css\" rel=\"stylesheet\" type=\"text/css\">\n<link href=\"" . $serverName . "css/thickbox.css\" rel=\"stylesheet\" type=\"text/css\">\n<script type=\"text/javascript\">\nvar featuredimagezoomer = { // the two options for Featured Image Zoomer:\n\tloadinggif: '" . $serverName . "images/spinningred.gif', // full path or URL to \"loading\" gif\n\tmagnifycursor: 'crosshair' // value for CSS's 'cursor' property when over the zoomable image\n};\nvar tb_pathToImage = \"" . $serverName . "images/loadingAnimation.gif\";\nvar __host\t= \"" . $serverName . "\";\n</script> \n<script type=\"text/javascript\" src=\"" . $serverName . "js/zoom.js\"></script>\n<style type=\"text/css\">.featuredimagezoomerhidden {visibility: hidden!important;}</style> \n<script type=\"text/javascript\" src=\"" . $serverName . "js/thickbox.js\"></script> \n<script type=\"text/javascript\" src=\"" . $serverName . "js/validate.js\"></script>\n\n<script type=\"text/javascript\">\n\$(document).ready(function() {\n\t//Tooltips\n\t\$(\".tip_trigger\").hover(function(){\n\t\ttip = \$(this).find('.tip');\n\t\ttip.show(); //Show tooltip\n\t}, function() {\n\t\ttip.hide(); //Hide tooltip\t\t \n\t}).mousemove(function(e) {\n\t\tvar mousex = e.pageX + 20; //Get X coodrinates\n\t\tvar mousey = e.pageY + 20; //Get Y coordinates\n\t\tvar tipWidth = tip.width(); //Find width of tooltip\n\t\tvar tipHeight = tip.height(); //Find height of tooltip\n\t\t\n\t\t//Distance of element from the right edge of viewport\n\t\tvar tipVisX = \$(window).width() - (mousex + tipWidth);\n\t\t//Distance of element from the bottom of viewport\n\t\tvar tipVisY = \$(window).height() - (mousey + tipHeight);\n\t\t \n\t\tif ( tipVisX < 20 ) { //If tooltip exceeds the X coordinate of viewport\n\t\t\tmousex = e.pageX - tipWidth - 20;\n\t\t} if ( tipVisY < 20 ) { //If tooltip exceeds the Y coordinate of viewport\n\t\t\tmousey = e.pageY - tipHeight - 20;\n\t\t} \n\t\ttip.css({ top: mousey, left: mousex });\n\t});\n\t\n\t\n\t\$('#multizoom1').addimagezoom({ // options same as for previous Featured Image Zoomer's addimagezoom unless noted as '- new'\n\t\tdescArea: '#description', // description selector (optional - but required if descriptions are used) - new\n\t\tspeed: 1500, // duration of fade in for new zoomable images (in milliseconds, optional) - new\n\t\tdescpos: true, // if set to true - description position follows image position at a set distance, defaults to false (optional) - new\n\t\timagevertcenter: true, // zoomable image centers vertically in its container (optional) - new\n\t\tmagvertcenter: true, // magnified area centers vertically in relation to the zoomable image (optional) - new\n\t\tzoomrange: [2, 10],\n\t\tmagnifiersize: [400,350],\n\t\tmagnifierpos: 'right',\n\t\tcursorshadecolor: '#fdffd5',\n\t\tcursorshade: true //<-- No comma after last option!\n\t});\n\n\t\$('.validate-form').validate();\n\t/*\$('#show-image-large2 a').click(function(){\n\t var path = \$(this).children().attr('src');\n \$('#show-image-large1 img#multizoom1').attr('src',path);\n return false;\n\t});*/\n});\n\n</script>\n\n <div class=\"block\">\n <div class=\"img pro_det_show1\" id=\"show-image-large1\">\n <img id=\"multizoom1\" src=\"" . $serverName . $image209NewAllDetail . "\" alt=\"{$nameDetail}\">\n </div>\n <div class=\"pro_det_show2 multizoom1 thumbs\" id=\"show-image-large2\">\n {$image_large_c1a}\n </div>\n </div><!--Emd block-->\n </div><!--End div left-->\n {$ProductDetail}\n <div class=\"chitietsp-1\">\n <div class=\"detail-title\">\n <a href=\"javascript:void(0)\" onclick=\"scrollToElm(\$('#product-full-description'));\"><h3 style=\"padding-left:0px !important;margin-left:0px !important;\" class=\"active-detail\">GIỚI THIỆU SÁCH</h3></a>\n <a href=\"javascript:void(0)\" onclick=\"scrollToElm(\$('#product-full-detail'));\"><h3>THÔNG TIN CHI TIẾT</h3></a>\n <a href=\"javascript:void(0)\" onclick=\"scrollToElm(\$('#product-full-comment'));\"><h3>ĐÁNH GIÁ BÌNH LUẬN</h3></a>\n <div class=\"clear\"></div>\n </div>\n <div id=\"product-full-description\">\n " . $detail_short_c . "\n </div>\n <div class=\"ttct\" id=\"product-full-detail\">\n <h2>Thông tin chi tiết</h2>\n <table class=\"floatLeft\" style=\"width:50%;\">\n <tr><td style=\"width:40%;\">■ Tác giả: </td><td style=\"width:60%;\"><a href=\"" . $serverName . $rowPhatHanhName['url'] . "/\" title=\"" . $rowHangName['name'] . "\" alt=\"" . $rowHangName['name'] . "\">" . $rowHangName['name'] . "</a></td></tr>\n <tr><td style=\"width:40%;\">■ Nhà phát hành: </td><td style=\"width:60%;\"><a href=\"" . $serverName . $rowPhatHanhName['url'] . "/\" title=\"" . $rowPhatHanhName['name'] . "\" alt=\"" . $rowPhatHanhName['name'] . "\">" . $rowPhatHanhName['name'] . "</a></td></tr>\n <tr><td style=\"width:40%;\">■ Mã sản phẩm: </td><td style=\"width:60%;\">" . $idCodeDetail . "</td></tr>\n {$addinfor}\n </table>\n <table class=\"floatRight\" style=\"width:50%;\">\n {$addinfor2}\n </table>\n <div class=\"clear\"></div>\n </div>\n {$_tagsHtml}\n </div>\n {$temp}\n <aside class=\"clear\"></aside>\n <div id=\"product-full-comment\">\n <h5>Nhận xét từ khách hàng</h5>\n {$rating}\n <h5>Bình luận từ facebook</h5>\n {$Comment}\n </div>\n <!--san pham khac-->\n <div class=\"product-other-detail\" >Sản phẩm khác</div>\n <div class=\"products-other\">\n {$showHtmlOtherNewli}\n </div>\n\n\n";
?> " title="<?php echo ucfirst($catname['name']); ?> "><?php echo ucfirst($catname['name']); ?> </a> <?php } ?> </div><div class="game_description"> <strong>Rating:</strong><br /> <div id="ratingbox"> <?php echo rating_bar($row['id'], ''); ?> </div> <br /> <div id="gamecode"> <strong>Game Code:</strong> <?php $query = yasDB_select("SELECT * FROM `games` WHERE id = {$id}"); $row = $query->fetch_array(MYSQLI_ASSOC); $query->close(); ?> <textarea style="width: 360px; height: 100px; border:solid 3px #999; font: normal 12px arial;" id="txtarea" onClick="SelectAll('txtarea');"> <?php if ($row['type'] == 'SWF') { echo '<div id="gameDiv" style="height: ' . $new_height . 'px; width: ' . $new_width . 'px; position:relative; top: 0; left: 0">'; include "media/swf.php";
function show_listing($listing, $url, $params, $searchbox, $searchboxbutton, $lists, $pagination, $options, $lang, $menuid, $categoriesbegenningby) { global $mainframe; $document =& JFactory::getDocument(); $user =& JFactory::getUser(); // show search bar if ($searchbox) { $jumpmenulist = "\t\t<!--\n\t\tfunction jumpmenu(target,obj,restore){\n\t\t eval(target+\".location='\"+obj.options[obj.selectedIndex].value+\"'\");\t\t\n\t\t if (restore) obj.selectedIndex=0;\t\t\n\t\t}\t\t\n\t\t//-->"; ?> <?php $document->addScriptDeclaration($jumpmenulist); ?> <div id="searchbar"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <form name="adminFormSearchAC" action="" method="post"> <?php echo $searchbox; ?> <?php echo $lists['list_searchfield']; ?> <?php echo $searchboxbutton; ?> </form> </td> <td><div class="orderinglist"> <?php if (count($listing) && @$listing[0]->id != '' && $options['letter'] == '') { echo $lists['list_defaultordering']; } ?> </div></td> </tr> </table> </div> <?php } // If result search letter -> show result categories beginning with this letter if ($categoriesbegenningby) { echo "<div id=\"alphapcategoriesbegenningby\"><span class=\"bigletter\">" . $options['letter'] . "</span><span class=\"allcategoriesbeginningby\">" . $categoriesbegenningby . "</span></div>"; } if (count($listing) > $pagination->limit) { $newlimit = count($listing); $pagination = new JPagination($options['total'], $newlimit, $pagination->limitstart); } // show Pages Counter if ($params->get('list_shownumberpagetotal') && (count($listing) && @$listing[0]->id != '')) { if (!($options['section'] == '' && ($options['letter'] != '' || $options['search'] != '') && ($params->get('weblinkssection') || $params->get('contactsection')))) { echo "<div id=\"alphapagecounter\"><p>"; echo $pagination->getResultsCounter(); echo "</p></div>"; } } $ac_alignimage = $params->get('list_imageposition'); $ac_numcolumnslisting = $params->get('list_numcols'); $ac_k = $ac_alignimage == '2' ? 0 : 'none'; // for alternate image left-right $line = 0; // just using for 2 columns for ($i = 0; $i < count($listing); $i++) { //for ( $i=0; $i < $new_pagination ; $i++ ){ // prepare each listing if (@$listing[$i]->id != '') { // define all vars for listing template $id_article = $listing[$i]->id; // id of item article $num = $params->get('list_numindex') ? $i + 1 + $options['limitstart'] : ''; //num listing $title = ""; // title of item $featured = ""; // show "Featured" article on homepage of AlphaContent if this option is selected $icon_new = ""; // icon new $icon_hot = ""; // icon hot $section_category = ""; // section / category $author = ""; // author or alias author if defined in item $content = ""; // content intro $date = ""; // date created $hits = ""; // num hits $comments = ""; // num of comments $rating = ""; // rating bar (native Joomla) $print = ""; // link to print $pdf = ""; // link to pdf $emailthis = ""; // link to email this $report = ""; // link to report this listing $readmore = ""; // readmore link if exist $ratingbar = ""; // ajax rating bar integrated in AlphaContent $googlemaps = ""; // link to Google Maps Location $tags = ""; // tags / keywords $link_to_article = $listing[$i]->reallink; // real link to article or contact or weblink /* * * Notes * --------- $rating is disabled if you use ajax rating bar integrated in AlphaContent ($ratingbar) * */ $url_article = $listing[$i]->slug; if ($listing[$i]->catslug && $url_article != '') { $url_article .= "&catid=" . $listing[$i]->catslug; } $url_article .= "&directory=" . $menuid; $start_url_article = "<a href=\"" . JRoute::_($listing[$i]->href . $url_article) . "\">"; $end_url_article = "</a>"; // get Title article/contact/weblink if ($params->get('list_titlelinkable')) { $title = $start_url_article . $listing[$i]->title . $end_url_article; if ($listing[$i]->is_article == 'weblink') { $title = "<a href=\"" . $listing[$i]->href . "\" target=\"_blank\">" . $listing[$i]->title . "</a>"; } } else { $title = $listing[$i]->title; } // Featured if ($listing[$i]->is_article) { $featuredID = @explode(',', $params->get('list_featuredID')); $featured = $listing[$i]->featured || @in_array($listing[$i]->id, $featuredID) ? JText::_('AC_FEATURED') : ''; } // get icon new and hot $typedatearticle = $params->get('list_showdate') ? $params->get('list_showdate') : 'created'; if ($params->get('list_iconnew')) { $icon_new = showIconNew($listing[$i]->{$typedatearticle}, $params->get('list_numdaynew'), $lang); } if ($params->get('list_iconhot')) { $icon_hot = showIconHot($listing[$i]->hits, $params->get('list_numhitshot'), $lang); } if ($params->get('list_showsectioncategory')) { $section_category = $listing[$i]->section; } // get Section/Category $section_category = $params->get('list_showsectioncategory') ? $listing[$i]->section : ''; // get Author $author = $params->get('list_showauthor') ? $listing[$i]->author : ''; // get Ajax rating bar for AlphaContent if ($params->get('showsystemrating') && $params->get('activeglobalsystemrating') && $params->get('systemrating')) { switch ($options['section']) { case 'weblinks': $component4rating = 'com_weblinks'; break; case 'contacts': $component4rating = 'com_contact'; break; default: $component4rating = 'com_content'; } $document =& JFactory::getDocument(); $document->addScript(JURI::base(true) . '/components/com_alphacontent/assets/js/behavior.js'); $document->addScript(JURI::base(true) . '/components/com_alphacontent/assets/js/rating.js'); $document->addStyleSheet(JURI::base(true) . '/components/com_alphacontent/assets/css/rating.css'); require_once JPATH_COMPONENT . DS . 'assets' . DS . 'includes' . DS . 'alphacontent.drawrating.php'; $ratingbar = rating_bar($listing[$i]->id, $params->get('numstars'), $component4rating, $params->get('widthstars', 16), '', '', 0, 0, $params->get('showinfosrating')); // usage rating_bar( id article, num stars, component, width stars, default=16 ), static, model (example for module), comment id, review id, show or hide sum*rating/num stars (num votes) ); } // get Joomla native rating bar if ($params->get('showsystemrating') && $params->get('systemrating') == '0' && $listing[$i]->rating_count != '') { // look for images in template if available $img = ""; $starImageOn = JHTML::_('image.site', 'rating_star.png', '/images/M_images/'); $starImageOff = JHTML::_('image.site', 'rating_star_blank.png', '/images/M_images/'); for ($rb = 0; $rb < $listing[$i]->rating; $rb++) { $img .= $starImageOn; } for ($rb = $listing[$i]->rating; $rb < 5; $rb++) { $img .= $starImageOff; } $rating = '<span class="content_rating">'; $rating .= JText::_('User Rating') . ':' . $img . ' / '; $rating .= intval($listing[$i]->rating_count); $rating .= "</span>"; } // Location Google Maps link //if ( $params->get('list_showlinkmap') && $params->get('apikeygooglemap') ) { if ($params->get('list_showlinkmap')) { $mapIsDefined = 0; if (preg_match('#{ALPHAGMAP=(.*)}#Uis', $listing[$i]->text, $m)) { $listing[$i]->text = preg_replace("#{ALPHAGMAP=(.*)}#Uis", "", $listing[$i]->text); $mapIsDefined = 1; } elseif (preg_match('#{ALPHAGMAP=(.*)}#Uis', $listing[$i]->fulltext, $m)) { $listing[$i]->fulltext = preg_replace("#{ALPHAGMAP=(.*)}#Uis", "", $listing[$i]->fulltext); $mapIsDefined = 1; } $a = array(); if ($mapIsDefined) { $a = explode("|", $m[1]); if (count($a) == 3) { $thewidthmap = $params->get('widthgooglemap') + 20; $theheightmap = $params->get('heightgooglemap') + 20; $status = "status=no,toolbar=no,scrollbars=no,titlebar=no,menubar=no,resizable=no,width=" . $thewidthmap . ",height=" . $theheightmap . ",directories=no,location=no"; $googlemaps = "<a href=\"javascript:void window.open('index2.php?option=com_alphacontent&task=viewmap&la=" . $a[0] . "&lo=" . $a[1] . "&txt=" . $a[2] . "', 'win2', '{$status}');\">" . JTEXT::_('AC_MAP') . "</a>"; } } } $listing[$i]->text = preg_replace('#{ALPHAGMAP=(.*)}#Uis', '', $listing[$i]->text); // prepare content $cuttext = 0; switch ($params->get('list_introstyle')) { case '1': // text only $numcharsintro = $params->get('list_numcharsintro') ? $params->get('list_numcharsintro') : '999999'; $cuttext = strlen($listing[$i]->text) > $numcharsintro ? 1 : 0; $content = acPrepareAlphaContent($listing[$i]->text, $numcharsintro, ''); break; case '2': // Original intro with plugins //if ( $listing[$i]->attribs!='' ) { // Process the prepare content plugins JPluginHelper::importPlugin('content'); $dispatcher =& JDispatcher::getInstance(); $tparams =& $mainframe->getParams('com_content'); // Merge article parameters into the page configuration $aparams = new JParameter($listing[$i]->attribs); $tparams->merge($aparams); //$results = @$dispatcher->trigger('onPrepareContent', array (& $listing[$i]->text, & $tparams, 0)); $results = @$dispatcher->trigger('onPrepareContent', array(&$listing[$i], &$tparams, 0)); $content = $listing[$i]->text; //} break; case '3': // Metadesc $numcharsintro = $params->get('list_numcharsintro') ? $params->get('list_numcharsintro') : '999999'; $content = $listing[$i]->metadesc ? $listing[$i]->metadesc : acPrepareAlphaContent($listing[$i]->text, $numcharsintro, ''); break; } if ($listing[$i]->created) { if ($params->get('list_showdate') == 'created') { $date = JHTML::_('date', $listing[$i]->created, JText::_($params->get('list_formatdate'))); } elseif ($params->get('list_showdate') == 'modified') { $date = JHTML::_('date', $listing[$i]->modified, JText::_($params->get('list_formatdate'))); } } $hits = $params->get('list_showhits') ? intval($listing[$i]->hits) : ''; // get number of comments if ($params->get('list_shownumcomments') && $params->get('list_commentsystem') && $listing[$i]->is_article == '1') { $comments = getNumberComments($params->get('list_commentsystem'), $listing[$i]->id); } // PDF link if ($listing[$i]->is_article == '1' && $params->get('list_showpdf')) { $url = 'index.php?view=article'; $url .= @$listing[$i]->catslug ? '&catid=' . $listing[$i]->catslug : ''; $url .= '&id=' . $listing[$i]->id . $listing[$i]->slug . '&format=pdf&option=com_content'; $status = 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no'; $text = JText::_('PDF'); $attribs['title'] = JText::_('PDF'); $attribs['onclick'] = "window.open(this.href,'win2','" . $status . "'); return false;"; $attribs['rel'] = 'nofollow'; $pdf = JHTML::_('link', JRoute::_($url), $text, $attribs); } // Print link if ($listing[$i]->is_article == '1' && $params->get('list_showprint')) { $url = 'index.php?view=article'; $url .= @$listing[$i]->catslug ? '&catid=' . $listing[$i]->catslug : ''; $url .= '&id=' . $listing[$i]->id . $listing[$i]->slug . '&tmpl=component&print=1&option=com_content'; $status = 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no'; $text = JText::_('Print'); $attribs['title'] = JText::_('Print'); $attribs['onclick'] = "window.open(this.href,'win2','" . $status . "'); return false;"; $print = JHTML::_('link', JRoute::_($url), $text, $attribs); } // Email link if ($listing[$i]->is_article == '1' && $params->get('list_showemail')) { $uri =& JURI::getInstance(); $base = $uri->toString(array('scheme', 'host', 'port')); $link = $base . JRoute::_("index.php?view=article&id=" . $listing[$i]->id . $listing[$i]->slug, false); $url = 'index.php?option=com_mailto&tmpl=component&link=' . base64_encode($link); $status = 'width=400,height=300,menubar=yes,resizable=yes'; $text = ' ' . JText::_('Email'); $attribs['title'] = JText::_('Email'); $attribs['onclick'] = "window.open(this.href,'win2','" . $status . "'); return false;"; $emailthis = JHTML::_('link', JRoute::_($url), $text, $attribs); } // report this listing link if ($params->get('list_showreportlisting')) { $url = 'index.php?option=com_alphacontent&task=report'; //switch ( $options['section'] ) { switch ($listing[$i]->is_article) { case 'weblink': $report_type = 'com_weblinks'; break; case 'contact': $report_type = 'com_contact'; break; default: $report_type = 'com_content'; } $url .= '&type=' . $report_type . '&id=' . $id_article . '&tmpl=component'; $status = 'width=400,height=300,menubar=yes,resizable=yes'; $text = JText::_('AC_REPORT'); $attribsr['title'] = JText::_('AC_REPORT_THIS_LISTING'); $attribsr['onclick'] = "window.open(this.href,'win2','" . $status . "'); return false;"; $report = JHTML::_('link', JRoute::_($url), $text, $attribsr); } // readmore link if (($listing[$i]->readmore || $cuttext) && $params->get('list_showreadmore')) { $sluggy = $listing[$i]->slug; if ($listing[$i]->catslug && $sluggy != '') { $sluggy .= "&catid=" . $listing[$i]->catslug; } $sluggy .= "&directory=" . $menuid; $readmore = "<a href=\"" . JRoute::_($listing[$i]->href . $sluggy) . "\">" . JText::_('Readmore') . "</a>"; if ($listing[$i]->access > $user->aid) { $readmore = "<a href=\"" . JRoute::_($listing[$i]->href . $sluggy) . "\">" . JText::_("REGISTER TO READ MORE...") . "</a>"; } } // prepare image $linkimgsrc = ""; if ($params->get('list_showimage')) { if ($listing[$i]->is_article == '1') { $linkIMG = findIMG($listing[$i]->text, $params->get('list_showimage')); if ($linkIMG == "") { $linkIMG = findIMG($listing[$i]->fulltext, $params->get('list_showimage')); } $linkimgsrc = $linkIMG ? $start_url_article . "<img src=\"" . $linkIMG . "\" width=\"" . $params->get('list_widthimage') . "px\" alt=\"\" />" . $end_url_article : ""; } elseif ($listing[$i]->is_article == 'contact' && $listing[$i]->images) { $linkimgsrc = $start_url_article . "<img src=\"images/stories/" . $listing[$i]->images . "\" width=\"" . $params->get('list_widthimage') . "px\" alt=\"\" />" . $end_url_article; } elseif ($listing[$i]->is_article == 'weblink' && $params->get('weblinksthumbnail') == '1') { $forcewidth = "width=\"" . $params->get('list_widthimage') . "px\""; if ($params->get('list_keywebsnapr') && $params->get('list_sizewebsnapr', 'AC') != 'AC') { $sizewebsnapr = "size=" . $params->get('list_sizewebsnapr'); $sizewebsnapr .= "&key=" . $params->get('list_keywebsnapr'); $forcewidth = ""; } else { $sizewebsnapr = "size=s"; } $linkimgsrc = "<a href=\"" . $listing[$i]->href . "\" target=\"_blank\">" . "<img src=\"http://images.websnapr.com/?" . $sizewebsnapr . "&url=" . $listing[$i]->reallink . "\" alt=\"" . $listing[$i]->reallink . "\" {$forcewidth} />" . "</a>"; } } if ($listing[$i]->is_article == 'weblink') { // prepare link for weblink $content = "<a href=\"" . $listing[$i]->href . "\" target=\"_blank\">" . $listing[$i]->reallink . "</a><br />" . $content; } if ($listing[$i]->is_article == 'contact' && $listing[$i]->author != '') { // prepare link for email contact $content .= "<br /><a href=\"mailto:" . $listing[$i]->author . "\">" . $listing[$i]->author . "</a>"; $author = ""; } if ($listing[$i]->is_article == 'contact' && $listing[$i]->reallink != '') { // prepare link for webpage url $content .= "<br /><a href=\"" . $listing[$i]->reallink . "\" target=\"_blank\">" . $listing[$i]->reallink . "</a><br />"; } if ($listing[$i]->metakey != '' && $params->get('showtags')) { $keywords = array(); $keywords = explode(",", trim($listing[$i]->metakey)); for ($a = 0, $b = count($keywords); $a < $b; $a++) { $metakey = trim($keywords[$a]); if ($a > 0) { $tags .= ", "; } $tags .= " <a href=\"" . JRoute::_("index.php?option=com_search&searchword={$metakey}&submit=Search&searchphrase=any&ordering=newest") . "\">" . $metakey . "</a>"; } } // START LAYOUT $ac_m = $line % 2 + 1; // using 2 columns if ($ac_numcolumnslisting && $ac_m == '1') { echo "\n<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\"><tr><td width=\"50%\" valign=\"top\">\n"; } if ($ac_numcolumnslisting && $ac_m == '2') { echo "\n<td width=\"50%\" valign=\"top\">\n"; } ?> <!-- STARTING DIV CONTAINER ARTICLE --> <div id="container<?php echo $num; ?> " class="alphalisting"> <table width="100%"><tr> <?php if ($params->get('list_showimage') && $linkimgsrc != '') { if ($ac_alignimage == 0 && $ac_k == 'none' || $ac_alignimage == '2' && $ac_k == 0) { ?> <td valign="top" width="<?php echo $params->get('list_widthimage'); ?> px"> <!-- STARTING DIV IMAGE LEFT --> <div class="_imageleft"><?php echo $linkimgsrc; ?> </div> <!-- END DIV IMAGE LEFT --> </td> <?php } } ?> <!-- STARTING DIV ARTICLE --> <td> <div id="article<?php echo $num; ?> "> <div id="title<?php echo $num; ?> "> <?php if ($num) { ?> <span class="_alphanum" style="display:inline;"><?php echo $num; ?> . </span><?php } ?> <?php if ($title) { ?> <span class="_alphatitle" style="display:inline;"><?php echo $title; ?> </span> <span class="_alphafeatured"><sup><?php echo $featured; ?> </sup></span> <?php } ?> <?php if ($icon_new || $icon_hot) { ?> <span style="display:inline;"><?php echo " " . $icon_new . " " . $icon_hot; ?> </span><?php } ?> </div> <?php if ($ratingbar || $rating) { ?> <div id="ratingbar<?php echo $num; ?> " class="small"> <?php echo $ratingbar; if ($rating) { echo $rating; } ?> </div> <?php } ?> <?php if ($section_category) { ?> <div class="small"><?php echo $section_category; ?> </div> <?php } ?> <?php if ($author) { ?> <div class="small"> <?php echo JTEXT::_('AC_AUTHOR') . $author; ?> </div> <?php } ?> <?php if ($tags) { ?> <div class="small"> <?php echo JTEXT::_('AC_TAGS') . $tags; ?> </div> <?php } ?> <?php if ($content) { ?> <div id="content<?php echo $num; ?> "><?php echo $content; ?> </div> <?php } ?> <div id="features<?php echo $num; ?> "> <?php if ($date) { ?> <span class="small"><?php echo $date; ?> </span><?php } ?> <?php if ($hits) { ?> | <span class="small"><?php $labelHit = $hits > 1 ? 'AC_HITS' : 'AC_HIT'; echo $hits . " " . JTEXT::_($labelHit); ?> </span><?php } ?> <?php if ($comments) { ?> | <span class="small"><?php $labelComment = $comments > 1 ? JTEXT::_('AC_COMMENTS') : JTEXT::_('AC_COMMENT'); echo $comments . " " . $start_url_article . $labelComment . $end_url_article; ?> </span><?php } ?> <?php if ($print) { ?> | <span class="small"><?php echo $print; ?> </span><?php } ?> <?php if ($pdf) { ?> | <span class="small"><?php echo $pdf; ?> </span><?php } ?> <?php if ($emailthis) { ?> | <span class="small"><?php echo $emailthis; ?> </span><?php } ?> <?php if ($report) { ?> | <span class="small"><?php echo $report; ?> </span><?php } ?> <?php if ($readmore) { ?> | <span class="small"><?php echo $readmore; ?> </span><?php } ?> <?php if ($googlemaps) { ?> | <span class="small"><?php echo $googlemaps; ?> </span><?php } ?> </div> </div><!-- END DIV ARTICLE --> </td> <?php if ($params->get('list_showimage') && $linkimgsrc != '') { if ($ac_alignimage == 1 && $ac_k == 'none' || $ac_alignimage == '2' && $ac_k == 1) { ?> <td valign="top" width="<?php echo $params->get('list_widthimage'); ?> px"> <!-- STARTING DIV IMAGE RIGHT --> <div class="_imageright"><?php echo $linkimgsrc; ?> </div> <!-- END DIV IMAGE RIGHT --> </td> <?php } } ?> </tr></table></div><!-- END DIV CONTAINER --> <div class="_separate"></div> <?php // END LAYOUT HTML // using 2 columns if ($ac_numcolumnslisting && $ac_m == '1') { echo "\n</td>\n"; } if ($ac_numcolumnslisting && $ac_m == '1' && $i == count($listing) - 1) { echo "\n<td width=\"50%\" valign=\"top\"> "; } if ($ac_numcolumnslisting && $ac_m == '2' || $ac_numcolumnslisting && $ac_m == '1' && $i == count($listing) - 1) { echo "\n</td></tr></table>\n"; } $line++; if ($ac_alignimage == '2') { $ac_k = 1 - $ac_k; } } else { if ($i > 0) { $i = $i - 1; } } } ?> <?php if (count($listing) && @$listing[0]->id != '') { if (!($options['section'] == '' && ($options['letter'] != '' || $options['search'] != '') && ($params->get('weblinkssection') || $params->get('contactsection')))) { echo "<div id=\"alphapagination\"><p>"; echo $pagination->getPagesLinks(); echo "<br />"; echo $pagination->getPagesCounter(); echo "</p></div>"; } } }
function makelist() { global $data, $userdata, $cdata, $kroaxsettings, $db_prefix, $locale, $browser, $pres; if (isset($_COOKIE['kroaxthumbs'])) { //thumb view enabled $cdata = dbarray(dbquery("SELECT * FROM " . $db_prefix . "kroax_kategori WHERE cid='" . $data['kroax_cat'] . "'")); $udata = dbarray(dbquery("SELECT user_id,user_name FROM " . $db_prefix . "users WHERE user_name='" . $data['kroax_uploader'] . "' ")); echo "<td align='left'>"; $checkurl = url_exists($data['kroax_tumb']); $type = substr($data['kroax_url'], -3, 3); if ($type == "mp3") { $showimg = "<img src='" . INFUSIONS . "the_kroax/img/musicstream.jpg' width='" . $kroaxsettings['kroax_set_wi'] . "' height='" . $kroaxsettings['kroax_set_hi'] . "'>"; } elseif ($checkurl == "1") { $showimg = "<IMG SRC='" . $data['kroax_tumb'] . "' width='" . $kroaxsettings['kroax_set_wi'] . "' height='" . $kroaxsettings['kroax_set_hi'] . "'>"; } else { $showimg = "<img src='" . INFUSIONS . "the_kroax/img/nopic.gif' width='" . $kroaxsettings['kroax_set_wi'] . "' height='" . $kroaxsettings['kroax_set_hi'] . "'>"; } if ($kroaxsettings['kroax_set_show'] == "1") { echo "\n<a href='" . INFUSIONS . "the_kroax/embed.php?url=" . $data['kroax_id'] . "'>" . $showimg . "</a>"; } else { echo "\n<a href='#' onclick=window.open('" . INFUSIONS . "the_kroax/embed.php?p=1&url=" . $data['kroax_id'] . "','Click','scrollbars=yes,resizable=yes,width=650,height=550')>" . $showimg . "</a>"; } echo "<br>\n<a href='#' onclick=window.open('" . INFUSIONS . "the_kroax/embed.php?p=1&url=" . $data['kroax_id'] . "','Click','scrollbars=yes,resizable=yes,width=800,height=700')><img src='" . INFUSIONS . "the_kroax/img/newwindow.gif' title='" . $locale['MKROAX106'] . "' border='0' valign='bottom'></a>"; if ($kroaxsettings['kroax_set_show'] == "1") { echo "\n<a href='" . INFUSIONS . "the_kroax/embed.php?url=" . $data['kroax_id'] . "'>" . trimlink($data['kroax_titel'], 20) . "</a><br>"; } else { echo "\n<a href='#' onclick=window.open('" . INFUSIONS . "the_kroax/embed.php?p=1&url=" . $data['kroax_id'] . "','Click','scrollbars=yes,resizable=yes,width=650,height=550')>" . trimlink($data['kroax_titel'], 20) . "</a><br>"; } echo "\n<b>" . $locale['KROAX114'] . "</b> <a href='" . BASEDIR . "profile.php?lookup=" . $udata['user_id'] . "'>" . $data['kroax_uploader'] . "</a><br>\n<b>" . $locale['KROAX115'] . "</b> " . showdate('forumdate', $data['kroax_date']) . "<br>\n<b>" . $locale['KROAX307'] . "</b> <a href='kroax.php?category=" . $cdata['cid'] . "'>" . $cdata['title'] . "</a><br>\n<b>" . $locale['KROAX113'] . "</b> " . $data['kroax_hits'] . " </td>"; } else { $cdata = dbarray(dbquery("SELECT * FROM " . $db_prefix . "kroax_kategori WHERE cid='" . $data['kroax_cat'] . "' ")); $udata = dbarray(dbquery("SELECT user_id,user_name FROM " . $db_prefix . "users WHERE user_name='" . $data['kroax_uploader'] . "' ")); $pres = nl2br($data['kroax_description']); $pres = preg_replace("/^(.{255}).*\$/", "\$1", $pres); $pres = preg_replace("/([^\\s]{25})/", "\$1\n", $pres); echo " <table cellpadding='0' cellspacing='1' border='0' width='200px' align='right' class='tbl-border' style='margin: 0.5em;'>\n<tr>\n<td width='26%' class='tbl2'>" . $locale['KROAX307'] . "</td>\n<td width='26%' class='tbl2'>" . $cdata['title'] . "</td></tr>\n<tr>\n<td width='26%' class='tbl2'>" . $locale['KROAX113'] . "</td>\n<td width='26%' class='tbl2'>" . $data['kroax_hits'] . "</td>\n</tr>\n<tr>\n<td width='26%' class='tbl2'>" . $locale['KROAX114'] . "</td>\n<td width='26%' class='tbl2'><a href='" . BASEDIR . "profile.php?lookup=" . $udata['user_id'] . "'>" . $data['kroax_uploader'] . "</a></td>\n</tr>\n<tr>\n<td width='26%' class='tbl2'>" . $locale['KROAX115'] . "</td>\n<td width='26%' class='tbl2'>" . showdate('forumdate', $data['kroax_date']) . "</td>\n</tr>\n<tr>\n<td width='26%' class='tbl2'>" . $locale['MKROAX101'] . "</td>\n<td width='26%' class='tbl2'>" . showdate('forumdate', $data['kroax_lastplayed']) . "</td>\n</tr>\n</table>"; echo "<table width='69%' align='middle' cellspacing='0' style='height: 125px' cellpadding='0' border='0'>"; $checkurl = url_exists($data['kroax_tumb']); $type = substr($data['kroax_url'], -3, 3); if ($type == "mp3") { $showimg = "<img src='" . INFUSIONS . "the_kroax/img/musicstream.jpg' valign='top' align='left' width='" . $kroaxsettings['kroax_set_wi'] . "' height='" . $kroaxsettings['kroax_set_hi'] . "'>"; } elseif ($checkurl == "1") { $showimg = "<IMG SRC='" . $data['kroax_tumb'] . "' valign='top' align='left' width='" . $kroaxsettings['kroax_set_wi'] . "' height='" . $kroaxsettings['kroax_set_hi'] . "'>"; } else { $showimg = "<img src='" . INFUSIONS . "the_kroax/img/nopic.gif' valign='top' align='left' width='" . $kroaxsettings['kroax_set_wi'] . "' height='" . $kroaxsettings['kroax_set_hi'] . "'>"; } if ($kroaxsettings['kroax_set_show'] == "1") { echo "\n<td align='left' width='8%'><a href='" . INFUSIONS . "the_kroax/embed.php?url=" . $data['kroax_id'] . "'>" . $showimg . "</A>\n<td valign='top' width='74%'><center><a href='" . INFUSIONS . "the_kroax/embed.php?url=" . $data['kroax_id'] . "'><b><u>" . $data['kroax_titel'] . "</b></u></a><br><br>" . stripslashes($pres) . "</td></td></center>"; } else { echo "\n<td align='left' width='8%'><a href='#' onclick=window.open('" . INFUSIONS . "the_kroax/embed.php?p=1&url=" . $data['kroax_id'] . "','Click','scrollbars=yes,resizable=yes,width=650,height=550')>" . $showimg . "</A>\n<td valign='top' width='74%'><center><a href='#' onclick=window.open('" . INFUSIONS . "the_kroax/embed.php?p=1&url=" . $data['kroax_id'] . "','Click','scrollbars=yes,resizable=yes,width=650,height=550')><b><u>" . $data['kroax_titel'] . "</b></u></a><br><br>" . stripslashes($pres) . "</td></td></center>"; } echo "</table><br><br>"; $kroax_comment_count = dbcount("(comment_id)", "" . $db_prefix . "comments", "comment_type='K' AND comment_item_id='" . $data['kroax_id'] . "'"); echo "<table width='95%' align='middle' cellspacing='0' cellpadding='0'border='0'>\n<td width='20%' class='tbl1' align='middle'>"; if ($kroaxsettings['kroax_set_ratings'] == "1") { rating_bar($data['kroax_id']); } echo "<td width='80%' class='tbl1'>"; if ($kroaxsettings['kroax_set_favorites'] == "1" && iMEMBER) { $row2 = dbquery("SELECT * FROM " . $db_prefix . "kroax_favourites WHERE fav_id=" . $data['kroax_id'] . " AND fav_user='******'user_id'] . "'"); $fav_id2 = dbarray($row2); $fav_id2 = $fav_id2['fav_id']; if ($data['kroax_id'] != $fav_id2) { echo "<a href='" . INFUSIONS . "the_kroax/add_favourite.php?fav_id=" . $data['kroax_id'] . "&fav_user="******"'><b>" . $locale['FKROAX107'] . "</b></a> ]<br>[ "; } } if ($kroaxsettings['kroax_set_comments'] == "1") { echo "<a href='#' onclick=window.open('" . INFUSIONS . "the_kroax/callcomments.php?comment_id=" . $data['kroax_id'] . "','Comments','scrollbars=yes,resizable=yes,width=650,height=650')><b>" . $locale['KROAX302'] . "</b></a>({$kroax_comment_count}) ][ "; } if ($kroaxsettings['kroax_set_recommend'] == "1") { echo "<a href='#' onclick=window.open('" . INFUSIONS . "the_kroax/tipafriend.php?movie_id=" . $data['kroax_id'] . "','Tipafriend','scrollbars=yes,resizable=yes,width=350,height=300')><b>" . $locale['KROAX303'] . "</b></a> ][ "; } if ($kroaxsettings['kroax_set_report'] == "1") { if (iMEMBER) { echo "<a href='" . INFUSIONS . "the_kroax/report.php?broken_id=" . $data['kroax_id'] . "' target='_blank' onClick='return confirmreport();''><b>" . $locale['KROAX304'] . "</b></a> ][ "; } } echo "<a href=\"javascript:history.go(-1)\"><b>" . $locale['KROAX007'] . "</b></a>"; echo '</td>'; echo "</td><tr>"; echo "<td colspan='2' height='1px' valign='top' background='img/line.gif'></tr></td></td></tr></table>"; } //End else from thumb view.. }
"><?php echo $article['sub_category']; ?> </a> </div> <div class="company1"> <?php echo $article['name_company']; ?> </div> </div> <div class="c_f1"> <?php require 'rating/form.php'; echo rating_bar($article['id_art'], 5); ?> </div> <div class="thumbs"> <div class="thumbs_pics"> <?php if (!empty($article['pics'])) { $pics = explode("!", $article['pics']); for ($i = 0; $i < count($pics); $i++) { printf('<a class="two" rel="group" href="%sS.jpg"><img src="%s.jpg" /></a>', $pics[$i], $pics[$i]); } } ?> </div> </div>
function template_replacer_news($news_arr, $output) { // Predefined Globals global $config_timestamp_active, $config_http_script_dir, $config_comments_popup, $config_comments_popup_string, $config_full_popup, $config_full_popup_string, $rss_news_include_url, $my_names, $my_start_from, $cat, $action, $cat_icon, $archive, $name_to_nick, $template, $user_query, $member_db, $_SESS, $PHP_SELF; // Short Story not exists if (empty($news_arr[NEW_FULL]) and strpos($output, '{short-story}') === false) { $news_arr[NEW_FULL] = $news_arr[NEW_SHORT]; } $output = more_fields($news_arr[NEW_MF], $output); // Date Formatting [year, month, day, hour, minute, date=$config_timestamp_active] list($output, $news_arr) = hook('template_replacer_news_before', array($output, $news_arr)); $output = embedateformat($news_arr[NEW_ID], $output); // Replace news content $output = str_replace("{title}", hesc($news_arr[NEW_TITLE]), $output); $output = str_replace("{author}", $my_names[$news_arr[NEW_USER]] ? $my_names[$news_arr[NEW_USER]] : $news_arr[NEW_USER], $output); $output = str_replace("{author-name}", hesc($name_to_nick[$news_arr[NEW_USER]]), $output); $output = str_replace("{short-story}", hesc($news_arr[NEW_SHORT]), $output); $output = str_replace("{full-story}", hesc($news_arr[NEW_FULL]), $output); // Replace system information $output = str_replace("{avatar-url}", $news_arr[NEW_AVATAR], $output); $output = str_replace("{category}", hesc(catid2name($news_arr[NEW_CAT])), $output); $output = str_replace("{category-url}", linkedcat($news_arr[NEW_CAT]), $output); $output = str_replace("{page-views}", false, $output); $output = str_replace("{phpself}", $PHP_SELF, $output); $output = str_replace("{index-link}", '<a href="' . $PHP_SELF . '">' . lang('Go back') . '</a>', $output); $output = str_replace("{back-previous}", '<a href="javascript:history.go(-1)">Go back</a>', $output); $output = str_replace("{cute-http-path}", $config_http_script_dir, $output); $output = str_replace("{news-id}", $news_arr[NEW_ID], $output); $output = str_replace("{category-id}", $news_arr[NEW_CAT], $output); $output = str_replace("{comments-num}", countComments($news_arr[NEW_ID], $archive), $output); $output = str_replace("{archive-id}", $archive, $output); $output = str_replace("{category-icon}", caticon($news_arr[NEW_CAT], $cat_icon, $cat), $output); $mf_for_avatar = options_extract($news_arr[NEW_MF]); if (array_key_exists('_avatar_width', $mf_for_avatar)) { $width_for_avatar = 'width:' . $mf_for_avatar['_avatar_width'] . ';'; } if (array_key_exists('_avatar_height', $mf_for_avatar)) { $height_for_avatar = 'height:' . $mf_for_avatar['_avatar_height'] . ';'; } $output = str_replace("{avatar}", $news_arr[NEW_AVATAR] ? '<img alt="" src="' . $news_arr[NEW_AVATAR] . '" style="border: none;' . $width_for_avatar . $height_for_avatar . '" />' : '', $output); $output = preg_replace('/\\[loggedin\\](.*?)\\[\\/loggedin\\]/is', empty($_SESS['user']) ? '' : '\\1', $output); // social plugins $output = str_replace('{fb-comments}', show_social_code('fb', $news_arr), $output); $output = str_replace('{fb-like}', show_social_code('fb-like', $news_arr), $output); $output = str_replace('{twitter}', show_social_code('twitter', $news_arr), $output); // in RSS we need the date in specific format if ($template == 'rss') { $output = str_replace("{date}", date("r", $news_arr[0]), $output); $output = str_replace("{rss-news-include-url}", $rss_news_include_url ? $rss_news_include_url : $config_http_script_dir . '/router.php', $output); } else { $output = str_replace("{date}", date($config_timestamp_active, $news_arr[NEW_ID]), $output); } // Star Rating if (empty($archive)) { $output = str_replace("{star-rate}", rating_bar($news_arr[NEW_ID], $news_arr[NEW_RATE]), $output); } else { $output = str_replace("{star-rate}", false, $output); } // Mail Exist in mailist ---------------------------------------------------- [mail]...[/mail] if (!empty($my_mails[$news_arr[NEW_USER]])) { $output = str_replace(array("[mail]", '[/mail]'), array('<a href="mailto:' . $my_mails[$news_arr[NEW_USER]] . '">', ''), $output); } else { $output = str_replace(array("[mail]", '[/mail]'), '', $output); } // By click to comments - popup window -------------------------------------- [com-link]...[/com-link] if ($config_comments_popup == "yes") { $URL = build_uri('subaction,id,ucat,start_from,template,archive', array('showcomments', $news_arr[NEW_ID], $news_arr[NEW_CAT], $my_start_from)); $output = str_replace(array('[com-link]', '[/com-link]'), array('<a href="#" onclick="window.open(\'' . $config_http_script_dir . '/router.php' . $URL . '\', \'News\', \'' . $config_comments_popup_string . '\'); return false;">', '</a>'), $output); } else { if ($archive) { $URL = RWU('archreadcomm', $PHP_SELF . build_uri('subaction,id,ucat,title,template,archive', array('showcomments', $news_arr[NEW_ID], $news_arr[NEW_CAT], titleToUrl($news_arr[NEW_TITLE])))); } else { $URL = RWU('readcomm', $PHP_SELF . build_uri('subaction,id,ucat,title,template', array('showcomments', $news_arr[NEW_ID], $news_arr[NEW_CAT], titleToUrl($news_arr[NEW_TITLE])))); } $output = str_replace(array("[com-link]", '[/com-link]'), array("<a href=\"{$URL}\">", '</a>'), $output); } // Open link --------------------------------------------------------------- [link]...[/link] $URL = build_uri('subaction,id,start_from,ucat,archive,template', array('showfull', $news_arr[NEW_ID], $my_start_from, $news_arr[NEW_CAT])); $URL .= "&#disqus_thread"; $output = preg_replace('/\\[link target\\=([a-z0-9_]+?)\\](.*?)\\[\\/link\\]/is', '<a href="' . $PHP_SELF . $URL . '" target="\\1">\\2</a>', $output); $output = str_replace(array("[link]", "[/link]"), array('<a href="' . $PHP_SELF . $URL . '">', "</a>"), $output); // With Action = showheadlines -------------------------------------------- [full-link]...[/full-link] if ($news_arr[NEW_FULL] or $action == "showheadlines") { if ($config_full_popup == "yes") { $URL = build_uri('subaction,id,archive,template', array('showfull', $news_arr[NEW_ID], $archive, $template)); // Popup string $attrlink = "href='#' onclick=\"window.open('{$config_http_script_dir}/router.php{$URL}', '_News', '{$config_full_popup_string}'); return false;\""; $output = preg_replace('/\\[full\\-link target\\=([a-z0-9_]+?)\\](.*?)\\[\\/full\\-link\\]/is', "<a {$attrlink} target='\\1'>\\2</a>", $output); $output = str_replace('[full-link]', "<a {$attrlink}>", $output); } else { $template = $template == 'Default' ? '' : $template; if ($archive) { $URL = RWU('archreadmore', $PHP_SELF . build_uri('subaction,id,archive,ucat,title,template', array('showfull', $news_arr[0], $archive, $news_arr[NEW_CAT], titleToUrl($news_arr[NEW_TITLE]), $template)) . "&{$user_query}"); } else { $URL = RWU('readmore', $PHP_SELF . build_uri('subaction,id,ucat,title,template', array('showfull', $news_arr[0], $news_arr[NEW_CAT], titleToUrl($news_arr[NEW_TITLE]), $template)) . "&{$user_query}"); } // Target string $attrlink = "href='{$URL}'"; $output = preg_replace('/\\[full\\-link target\\=([a-z0-9_]+?)\\](.*?)\\[\\/full\\-link\\]/is', "<a {$attrlink} target='\\1'>\\2</a>", $output); $output = str_replace("[full-link]", "<a {$attrlink}>", $output); } $output = str_replace("[/full-link]", "</a>", $output); } else { $output = preg_replace('~\\[full-link.*?\\].*?\\[/full-link\\]~si', '<!-- no full story-->', $output); } // Admin can edit for news ------------------------------------------------ [edit]...[/edit] $DREdit = false; if (empty($_SESS['user']) == false) { $member_db = user_search($_SESS['user']); if (in_array($member_db[UDB_ACL], array(ACL_LEVEL_ADMIN, ACL_LEVEL_JOURNALIST))) { $url = '/index.php' . build_uri('mod,action,id,source', array('editnews', 'editnews', $news_arr[NEW_ID], $archive)); $output = preg_replace('/\\[edit\\]/i', '<a target="_blank" href="' . $config_http_script_dir . $url . '">', $output); $output = preg_replace('/\\[\\/edit\\]/i', '</a>', $output); $DREdit = true; } } // If not used, replace [edit]..[/edit] if ($DREdit == false) { $output = preg_replace('~\\[edit\\].*?\\[/edit\\]~si', '', $output); } list($output, $news_arr) = hook('template_replacer_news_middle', array($output, $news_arr)); $output = replace_news("show", $output); list($output) = hook('template_replacer_news_after', array($output, $news_arr)); return $output; }
} else { $ddl .= '<a onclick="download.bukakategori(\'' . $v['link'] . '\');" style="cursor:pointer" title="Page ' . $v['title'] . '">' . $v['title'] . '</a> | '; } } unset($pagging); $pagging = substr($ddl, 0, strlen($ddl) - 3); } else { $pagging = null; } if (empty($offset)) { $offset = 0; } $query = mysql_query("SELECT * FROM `mod_download` WHERE `kid` = '{$kid}' ORDER BY `id` DESC LIMIT {$offset},{$limit}"); while ($data = mysql_fetch_assoc($query)) { $ceknew = empty($ceknew) ? '' : $ceknew; $open['List'][] = array('judul' => $data['judul'], 'keterangan' => $data['keterangan'], 'url' => $data['url'], 'hit' => $data['hit'], 'date' => date('Y-m-d H:i:s', $data['date']), 'size' => $data['size'], 'id' => $data['id'], 'newlinks' => cek_baru($data['id'], 1209600, 'id', 'mod_download'), 'rate' => rating_bar($data['id'], '10')); } if (!empty($pagging)) { $open['paging'] = $pagging; } else { $open['paging'] = ''; } $query = mysql_query("SELECT `kategori` FROM `mod_cat_download` WHERE `kid` = '{$kid}'"); $getsql = mysql_fetch_assoc($query); $open['kategori'] = array($getsql['kategori'] . ' (' . $jumlah . ')'); $j = new JSON_obj(); echo $j->encode($open); } break; default: $num = mysql_query("SELECT kid FROM `mod_cat_download`");
function onPrepareContent(&$article, &$params, $limitstart) { if (!@$article->id) { return; } $view = JRequest::getCmd('view'); JPlugin::loadLanguage('com_alphacontent'); @session_start(); if (@$_SESSION['acdirectory'] != '') { $selectedDirectory = @$_SESSION['acdirectory']; } else { return; } $id = $article->id; $option = JRequest::getVar('option', '', 'GET', 'string'); $layout = JRequest::getVar('layout', '', 'GET', 'string'); $Itemid = JRequest::getVar('Itemid', 0, 'GET', 'int'); $ratingbar = ""; $googlemaps = ""; $menus =& JSite::getMenu(); if ($menus->getDefault() == $menus->getActive() && $option == 'com_content' || $option != 'com_content') { return; } // Get plugin info $plugin =& JPluginHelper::getPlugin('content', 'alphacontent'); $pluginParams = new JParameter($plugin->params); $readytoshow = 0; $showonintro = $pluginParams->get('showonintro', 0); if ($option == 'com_content') { switch ($view) { case 'article': if ($pluginParams->get('enabled', 0)) { $readytoshow = 1; } break; case 'frontpage': if ($pluginParams->get('enabled') && $showonintro) { $readytoshow = 1; } break; case 'section': case 'article': if ($pluginParams->get('enabled') && $showonintro && $layout == 'blog') { $readytoshow = 1; } break; default: $readytoshow = 0; } } $excludeID = $pluginParams->get('excludeID', ''); $listexclude = @explode(",", $excludeID); // Get AlphaContent default params $dparams = $this->setDirectoryParams(); // check whether plugin has been unpublished or is an AlphaContent Directory if ($selectedDirectory || $readytoshow) { // get Ajax rating bar for AlphaContent if ($dparams->get('activeglobalsystemrating') || $pluginParams->get('enabled', 0)) { switch ($option) { case 'com_content': default: $component4rating = 'com_content'; } if (!in_array($article->id, $listexclude)) { $document =& JFactory::getDocument(); $document->addScript(JURI::base(true) . '/components/com_alphacontent/assets/js/behavior.js'); $document->addScript(JURI::base(true) . '/components/com_alphacontent/assets/js/rating.js'); $document->addStyleSheet(JURI::base(true) . '/components/com_alphacontent/assets/css/rating.css'); require_once JPATH_SITE . DS . 'components' . DS . 'com_alphacontent' . DS . 'assets' . DS . 'includes' . DS . 'alphacontent.drawrating.php'; $ratingbar = rating_bar($id, $dparams->get('numstars', 5), $component4rating, $dparams->get('widthstars', 16), '', '', 0, 0, 1); $article->text = $ratingbar . $article->text; } } } // insert Google Maps link //if ( $dparams->get('apikeygooglemap') ) { $mapIsDefined = 0; if (preg_match('#{ALPHAGMAP=(.*)}#Uis', $article->text, $m)) { $a = explode("|", $m[1]); if (count($a) == 3) { // add style sheet $document =& JFactory::getDocument(); $document->addStyleSheet(JURI::base(true) . '/components/com_alphacontent/assets/css/alphacontent.css'); $thewidthmap = $dparams->get('widthgooglemap', 400) + 20; $theheightmap = $dparams->get('widthgooglemap', 250) + 20; $status = "status=no,toolbar=no,scrollbars=no,titlebar=no,menubar=no,resizable=no,width=" . $thewidthmap . ",height=" . $theheightmap . ",directories=no,location=no"; $googlemaps = "<a href=\"javascript:void window.open('index2.php?option=com_alphacontent&task=viewmap&la=" . $a[0] . "&lo=" . $a[1] . "&txt=" . $a[2] . "', 'win2', '{$status}');\">" . JTEXT::_('AC_MAP') . "</a>"; } else { $googlemaps = ""; } } //} $article->text = preg_replace(" |{ALPHAGMAP=(.*)}| ", "", $article->text); $article->text .= '<p>' . $googlemaps . '</p>'; // insert Report listing if ($dparams->get('list_showreportlisting') && $selectedDirectory) { $report = ""; $url = 'index.php?option=com_alphacontent&task=report'; $report_type = 'com_content'; $url .= '&type=' . $report_type . '&id=' . $id . '&tmpl=component'; $status = 'width=400,height=300,menubar=yes,resizable=yes'; $text = JText::_('AC_REPORT'); $attribsr['title'] = JText::_('AC_REPORT_THIS_LISTING'); $attribsr['onclick'] = "window.open(this.href,'win2','" . $status . "'); return false;"; $report = JHTML::_('link', JRoute::_($url), $text, $attribsr); $article->text .= '<p><img src="images/M_images/edit_unpublished.png" title="" alt="" /> ' . $report . '</p>'; } // show Sharethis widget in article if (!in_array($article->id, $listexclude)) { //$menus = &JSite::getMenu(); if (($selectedDirectory || $pluginParams->get('enabled', 0)) && !$params->get('intro_only')) { if (!$params->get('show_intro')) { $article->text .= $this->showShareThisWidget($dparams); } } } // Display Related Items $displayListRelatedItem = ""; if ($selectedDirectory && !$params->get('intro_only')) { // Get the menu item object //$menus = &JSite::getMenu(); $menus->setActive($selectedDirectory); $menu = $menus->getActive(); $menuname = $menu->name; $menuid = $menu->id; $dparams = $this->setDirectoryParams(); if ($dparams->get('showrelateditems')) { $relatedItems = $this->getRelatedItems($dparams->get('numrelateditems'), $selectedDirectory); if (count($relatedItems)) { $displayListRelatedItem = "<div id=\"alpharelateditems\"><p>" . JTEXT::_('AC_RELATEDARTICLES') . "</p>"; $displayListRelatedItem .= "<ul>"; foreach ($relatedItems as $item) { $displayListRelatedItem .= "<li>"; $displayListRelatedItem .= $item->created . " - "; $displayListRelatedItem .= "<a href=\"" . $item->route . "\">"; $displayListRelatedItem .= $item->title . "</a>"; $displayListRelatedItem .= "</li>"; } $displayListRelatedItem .= "</ul></div>"; } $article->text .= $displayListRelatedItem; } } }
<? }} ?> </div> <!-- <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=106830472742387&xfbml=1"></script><fb:like href="<?php echo selfURL; ?>" send="true" width="450" show_faces="true" font=""></fb:like> --> <? if(0 && $setting->rate_on == 1 && $setting->member_rate != 1){ echo $detail_rating_text; echo rating_bar($package->id,'10','false'); } else { if($setting->member_rate == 1 && $setting->rate_on == 1 && $_SESSION['sub_member'] > 0){ echo $detail_rating_text; echo rating_bar($package->id,'10','false'); } } ?> <?php if($setting->allow_digital == 1 & $package->act_download == 1){ echo "<tr><td class=\"photo_details\" bgcolor=\"#F9F9F9\" style=\"border: 1px solid #eeeeee; padding: 10px;\">"; echo "<div align=\"center\" style=\"background-color: #eeeeee; margin-bottom: 10px; padding: 3px;\">" . $detail_digital . "</div>"; $x = 1; $photo1_result = mysql_query("SELECT * FROM uploaded_images where reference = 'photo_package' and reference_id = '$package->id' order by quality_order", $db); $photo1_rows = mysql_num_rows($photo1_result); while($photo1 = mysql_fetch_object($photo1_result)){ $filename = strip_ext($photo1->filename);
function makelist() { global $data, $varcsettings, $db_prefix, $locale, $pres, $gamefile, $size, $userdata, $gamelink; $gamefile = "" . INFUSIONS . "varcade/uploads/flash/" . $data['flash'] . ""; getsize($gamefile); $arcade_comment_count = dbcount("(comment_id)", "" . $db_prefix . "comments", "comment_type='G' AND comment_item_id='" . $data['lid'] . "'"); $pres = nl2br($data['description']); $pres = preg_replace("/^(.{255}).*\$/", "\$1", $pres); $pres = preg_replace("/([^\\s]{25})/", "\$1\n", $pres); if ($varcsettings['popup'] == "1") { $gamelink = "<a href='#' onclick=window.open('" . INFUSIONS . "varcade/arcade.php?p=1&game=" . $data['lid'] . "','VArcpopup','scrollbars=yes,resizable=yes,width=800,height=700')>"; } else { $gamelink = "<a href='" . INFUSIONS . "varcade/arcade.php?game=" . $data['lid'] . "'>"; } echo "\n<center>\n<table cellpadding='0' cellspacing='1' border='0' width='300' width='100%'><tr valign='top'><td>\n<tr valign='top'>"; echo "<table align='center' cellpadding='0' cellspacing='1' class='tbl-border'>\n<tr>\n<td colspan='3'>\n<table align='center' cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td class='tbl2'><b>" . $gamelink . "" . $data['title'] . "</a></b></td>"; echo "<td align='right' class='tbl2'>"; if ($varcsettings['showsize'] == "1") { echo "" . $locale['VARC150'] . " " . parseByteSize($size) . ""; } echo "</td></tr></table></td><tr><td align='center' width='150' rowspan='5' class='tbl2'>\n"; if (file_exists(INFUSIONS . "varcade/uploads/thumb/" . $data['icon'] . "")) { $showimg = "<IMG SRC='" . INFUSIONS . "varcade/uploads/thumb/" . $data['icon'] . "' valign='middle' align='center' width='80' height='80' border='0' alt='" . $data['title'] . "'>"; } else { $showimg = "<img src='" . INFUSIONS . "varcade/img/arcade.gif' valign='middle' align='center' width='80' height='80' border='0' alt='" . $data['title'] . "'>"; } if ($data['lastplayed'] == "0") { $lastplayed = "" . $locale['VARC158'] . ""; } else { $lastplayed = "" . showdate('shortdate', $data['lastplayed']) . ""; } if ($data['hiscoredate'] == "0") { $hiscoredate = "" . $locale['VARC159'] . ""; } else { $hiscoredate = "" . showdate('shortdate', $data['hiscoredate']) . ""; } if ($data['hi_player'] == "0") { $hi_player = "" . $locale['VARC160'] . ""; } else { $hi_player = "<a href='" . INFUSIONS . "varcade/hiscore.php?gameid=" . $data['lid'] . "'>" . $data['hi_player'] . "</a>"; } echo "" . $gamelink . "" . $showimg . "</a></td>"; echo "\n<td width='1%' class='tbl1' style='white-space:nowrap'><b>" . $locale['VARC151'] . "</b></td>\n<td class='tbl1'><a href='" . INFUSIONS . "varcade/hiscore.php?gameid=" . $data['lid'] . "'>" . $data['hiscore'] . "</a></td>\n</tr>\n<tr>\n<td width='1%' class='tbl2' style='white-space:nowrap'><b>" . $locale['VARC152'] . "</b></td>\n<td class='tbl2'>" . $hi_player . "</td>\n</tr>\n<tr>\n<td width='1%' class='tbl1' style='white-space:nowrap'><b>" . $locale['VARC153'] . "</b></td>\n<td class='tbl1'>" . $hiscoredate . "</td>\n</tr>\n<tr>\n<td width='1%' class='tbl2' style='white-space:nowrap'><b>" . $locale['VARC154'] . "</b></td>\n<td class='tbl2'>" . $data['played'] . " " . $locale['VARC157'] . "\n</td>\n</tr>\n<tr>\n<td width='1%' class='tbl1' style='white-space:nowrap'><b>" . $locale['VARC155'] . "</b></td>\n<td class='tbl1'>" . $lastplayed . "</td>\n</tr>\n<tr>"; if ($varcsettings['ratings'] == "1") { echo "<td align='center' class='tbl1'>\n"; rating_bar($data['lid']); echo "</td>"; echo "<td width='1%' class='tbl2' style='white-space:nowrap'><b>" . $locale['VARC156'] . "</b></td>"; } if ($varcsettings['ratings'] == "0") { echo "<td width='1%' colspan='2' class='tbl2' style='white-space:nowrap'><b>" . $locale['VARC156'] . "</b></td>"; } echo "<td class='tbl2'>"; if ($data['control'] == 0) { echo '<img src="' . INFUSIONS . 'varcade/img/mouse.png" border="0" alt="' . $locale['VARC414'] . '">'; } if ($data['control'] == 1) { echo '<img src="' . INFUSIONS . 'varcade/img/keyboard.png" border="0" alt="' . $locale['VARC413'] . '">'; } if ($data['control'] == 2) { echo '<img src="' . INFUSIONS . 'varcade/img/mouse.png" border="0" alt="' . $locale['VARC414'] . '">'; //Gotto fix a new option / image .. } echo "\n</td>\n</tr>"; echo "<tr><td class='tbl1' align='center' colspan='3'>" . $pres . "</td></tr>"; if ($varcsettings['usergold'] == "1") { echo "<tr><td class='tbl1' align='center' colspan='3'>"; echo "<font color ='red'><b>" . $locale['GARC104'] . "</b></font> : " . $data['cost'] . " <font color ='red'><b>" . $locale['GARC105'] . "</b></font> : " . $data['reward'] . " <font color ='red'><b>" . $locale['GARC106'] . "</b></font> : " . $data['bonus'] . ""; echo "</tr></td>"; } echo "<tr><td class='tbl1' align='center' colspan='3'>"; if ($varcsettings['popup'] == "2") { echo " • <a href='#' onclick=window.open('" . INFUSIONS . "varcade/arcade.php?p=1&game=" . $data['lid'] . "','VArcpopup','scrollbars=yes,resizable=yes,width=800,height=700')><img src='" . INFUSIONS . "varcade/img/newwindow.gif' border='0' alt='" . $locale['VARC161'] . "'></a>"; } if ($varcsettings['favorites'] == "1") { if (iMEMBER) { $row2 = dbquery("SELECT * FROM " . $db_prefix . "varcade_favourites WHERE fav_id={$data['lid']} AND fav_user='******'user_id'] . "'"); $fav_id2 = dbarray($row2); $fav_id2 = $fav_id2['fav_id']; if ($data['lid'] != $fav_id2) { echo " • <a href='" . INFUSIONS . "varcade/add_favourites.php?fav_id=" . $data['lid'] . "&fav_user="******"&fav_icon=" . $data['icon'] . "&fav_gamename=" . $data['title'] . "'><img src='" . INFUSIONS . "varcade/img/bookmark.gif' border='0' alt='" . $locale['FARC107'] . "'></a> •"; } } } if ($varcsettings['recommend'] == "1") { echo " <a href='#' onclick=window.open('" . INFUSIONS . "varcade/tipafriend.php?game_id=" . $data['lid'] . "','Tipafriend','scrollbars=yes,resizable=yes,width=520,height=300')><img src='" . INFUSIONS . "varcade/img/email.gif' border='0' alt='" . $locale['VARC601'] . " " . $data['title'] . "'></a> • "; } if ($varcsettings['comments'] == "1") { echo "<a href='#' onclick=window.open('" . INFUSIONS . "varcade/callcomments.php?comment_id=" . $data['lid'] . "','Comments','scrollbars=yes,resizable=yes,width=650,height=660')><img src='" . INFUSIONS . "varcade/img/comment.gif' border='0' alt='" . $locale['KOM100'] . "'>({$arcade_comment_count})</a> • "; } if (iMEMBER) { if ($varcsettings['reports'] == "1") { echo "<a href='" . INFUSIONS . "varcade/report.php?broken_id=" . $data['lid'] . "' onClick='return confirmreport();''><img src='" . INFUSIONS . "varcade/img/broken.gif' border='0' alt='" . $locale['VARC504'] . "'></a>"; } } if (iADMIN) { $game = "" . $data['lid'] . ""; echo " • <a href=\"javascript:show_hide('" . $data['lid'] . "')\"><img src='" . INFUSIONS . "varcade/img/edit.gif' border='0' alt='" . $locale['VARC400'] . "'></a> •"; echo "<div id='" . $data['lid'] . "' style='display:none'>"; echo '<IFRAME frameborder="0" SRC="' . INFUSIONS . 'varcade/admin/edit.php?game=' . $game . '" width="100%" HEIGHT="230px"></IFRAME>'; echo "</div>"; } echo "</td></tr>"; echo "</table>\n"; }
<style> h1,h2,h3{clear:both} pre{border:1px solid #ccc;background:#dadada;font-family:monospace;font-size:11px;color:#333;padding:10px;clear:both} </style> </head> <body> <? ?> <h1>Sistema de Votación</h1> <p>Suponiendo que mostramos el registro 1 de la base de datos.</p> <pre>$ide=1;</pre> <?php include '../../conexion.php'; $link = conectarse(); $consulta = mysql_query("SELECT id FROM galeria", $link); $resultado = mysql_fetch_array($consulta); $ide = 1; ?> <div id='container'><?php echo rating_bar($ide, 5, $valor); ?> </div> </body>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="ru-RU"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>Пример: Скрипт рейтинга на PHP</title> <script type="text/javascript" src="rating.js"></script> <link rel="stylesheet" type="text/css" href="style.css" media="screen" /> </head> <body> <?php require 'form.php'; $userrating = "rche.ru"; // имя пользователя за кооторого голосуем, или ID echo rating_bar($userrating, 5); ?> <br/> <a href="http://rche.ru/303_skript-dlya-reitinga.html">Описание скрипта рейтинга</a> </body> </html>
function hookextraRight($params) { global $smarty, $cookie, $page_name, $logged; $smarty->assign(array('onllog' => Configuration::get('RATING_ONLG'), 'rating' => rating_bar(Tools::getValue('id_product'), Configuration::get('RATING_NUMBER')), 'result' => rating_bar(Tools::getValue('id_product'), Configuration::get('RATING_NUMBER'), 'static'))); return $this->display(__FILE__, 'productrating.tpl'); }
if ($kroaxsettings['kroax_set_comments'] == "1") { echo "<a href='#' onclick=window.open('" . INFUSIONS . "the_kroax/callcomments.php?comment_id=" . $data['kroax_id'] . "','Comments','scrollbars=yes,resizable=yes,width=650,height=650')><b>" . $locale['KROAX302'] . "</b></a>({$kroax_comment_count}) ][ "; } if ($kroaxsettings['kroax_set_recommend'] == "1") { echo "<a href='#' onclick=window.open('" . INFUSIONS . "the_kroax/tipafriend.php?movie_id=" . $data['kroax_id'] . "','Tipafriend','scrollbars=yes,resizable=yes,width=350,height=300')><b>" . $locale['KROAX303'] . "</b></a> ][ "; } if ($kroaxsettings['kroax_set_report'] == "1") { if (iMEMBER) { echo "<a href='" . INFUSIONS . "the_kroax/report.php?broken_id=" . $data['kroax_id'] . "' target='_blank' onClick='return confirmreport();''><b>" . $locale['KROAX304'] . "</b></a> ][ "; } } echo "<a href=\"javascript:history.go(-1)\"><b>" . $locale['KROAX007'] . "</b></a>"; echo '</td></tr>'; if ($kroaxsettings['kroax_set_ratings'] == "1") { echo '<tr><td align="center">'; rating_bar($data['kroax_id']); echo "</td></tr>"; } echo "</table>"; // quicktime function quicktime_player($file_url) { global $title, $thumb, $embedcode, $downloadcode, $url; $theplayer = <<<EOD <table border='0' cellpadding='0' align="center" style='margin: 0 auto;'> \t<tr> \t\t<td> \t\t\t<OBJECT classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width="425" \t\t\theight="373" codebase='http://www.apple.com/qtactivex/qtplugin.cab'> \t\t\t<param name='src' value="{$file_url}"> \t\t\t<param name='autoplay' value="true">
} exit; } else { //edited to work with UG3 and UG2 - Start if (USERGOLD) { takegold2($userdata['user_id'], $game['cost'], 'cash', 0); } else { $payment = $gold['points_total'] - $game['cost']; $result = dbquery("UPDATE " . $db_prefix . "users_points SET points_total = '{$payment}' WHERE owner_id ={$userdata['user_id']} LIMIT 1"); } //edited to work with UG3 and UG2 - End echo '<tr><td colspan="4" class="tbl1" align="center"><B>' . $locale['GARC115'] . ' ' . $game['cost'] . ' ' . $locale['GARC116'] . '</B></td></tr><br>'; } } } if ($varcsettings['ratings'] == "1") { echo "<tr><td align='center'>"; rating_bar($game['lid']); echo "</td></tr>"; } echo '</table>'; closetable(); } else { opentable($locale['VARC801']); echo $locale['VARC179']; closetable(); } require_once "footer.php"; if (!isset($p)) { require_once THEMES . "templates/footer.php"; }