of class "ratingsystem", see http://rating-system.com/. */ function RatingSystem_Parse($p1, $p2, $p3, $p4, $p5, $p6, $p7, $p8, $p9) { # global $RatingSystemNewwin, $RatingSystemWidth, $RatingSystemHeight; # configuration variables from configuration file, e.g. config.php global $RatingSystemCompanyId, $RatingSystemUserId, $RatingSystemRatingBoxId; global $RatingSystemProductCode, $RatingSystemSearchText, $RatingSystemSortExpression; global $RatingSystemPageIndex, $RatingSystemMaxpageDisplay, $RatingSystemRSPage; global $debugon; # for debug // Initialise variables $retval = ''; # return value $debugval = ''; #return debug information $opt = ParseArgs($p1 . ' ' . $p2 . ' ' . $p3 . ' ' . $p4 . ' ' . $p5 . ' ' . $p6 . ' ' . $p7 . ' ' . $p8 . ' ' . $p9); # see pmWiki documentation if ( $debugon ) { $debugval .= $p1 . ' ' . $p2 . ' ' . $p3 . ' ' . $p4 . ' ' . $p5 . ' ' . $p6 . ' ' . $p7 . ' ' . $p8 . ' ' . $p9;}; $newwin = $RatingSystemNewwin; # open map in new window // $width = (bool) $opt['width'] ? 'width:' . $opt['width'] . ';' : $RatingSystemWidth . ';'; # parameter $height = (bool) $opt['height'] ? 'height:' . $opt['height'] . ';' : $RatingSystemHeight . ';'; # parameter $float = (bool) $opt['float'] ? 'float:' . $opt['float'] . ';' : ''; # div parameter $clear = (bool) $opt['clear'] ? 'clear:' . $opt['clear'] . ';' : ''; # div parameter // $companyid = (bool) $opt['companyid'] ? $opt['companyid'] : $RatingSystemCompanyId; # parameter $userid = (bool) $opt['userid'] ? $opt['userid'] : $RatingSystemUserId; # parameter $ratingboxid = (bool) $opt['ratingboxid'] ? $opt['ratingboxid'] : $RatingSystemRatingBoxId; # parameter $productcode = (bool) $opt['productcode'] ? $opt['productcode'] : $RatingSystemProductCode; # parameter $searchtext = (bool) $opt['searchtext'] ? $opt['searchtext'] : $RatingSystemSearchText; # parameter $sortexpression = (bool) $opt['sortexpression'] ? $opt['sortexpression'] : $RatingSystemSortExpression; # parameter $pageindex = (bool) $opt['pageindex'] ? $opt['pageindex'] : $RatingSystemPageIndex; # parameter $maxpagedisplay = (bool) $opt['maxpagedisplay'] ? $opt['maxpagedisplay'] : $RatingSystemMaxpageDisplay; # parameter $rspage = (bool) $opt['rspage'] ? $opt['rspage'] : $RatingSystemRSPage; # parameter // $retval .= <<
Powered by Rating-System.com
RETVALEND; if ( $debugon ) { $debugval = '
debug:' . $debugval . "\n";}; return $retval . $debugval; } # RatingSystem_Parse