Get("NewsRev_View"); if(!is_numeric($RevView)) { $RevView = $Rev_AllValue; } else { $StatusList = array(); if($RevView & $Bit_Disabled) $StatusList[] = 0; if($RevView & $Bit_Enabled) $StatusList[] = 1; if($RevView & $Bit_Pending) $StatusList[] = 2; if(count($StatusList)) { $status = " r.Status IN (".implode(",",$StatusList).") "; } else $status = " r.Status = -1 "; $RevFilter = $status; } $Perpage_Reviews = (int)$objConfig->Get("Perpage_Reviews"); if(!$Perpage_Reviews) $PerPage_Reviews = 20; $SortOrder = $objConfig->Get("NewsReview_LV_Sortorder"); if(!strlen($SortOrder)) $SortOrder = "desc"; $SortField = $objConfig->Get("NewsReview_LV_Sortfield"); if(!strlen($SortField)) $SortField = "DatePosted"; $lang_ReviewText = admin_language("la_prompt_ReviewText"); $lang_Reviewer = admin_language("la_Prompt_ReviewedBy"); $lang_Reviews = admin_language("la_Text_Reviews"); print<< END; ?>