本文整理汇总了PHP中COM_setArgNames函数的典型用法代码示例。如果您正苦于以下问题:PHP COM_setArgNames函数的具体用法?PHP COM_setArgNames怎么用?PHP COM_setArgNames使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了COM_setArgNames函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
} elseif ($year != 0) {
$parts .= "&year={$year}";
} elseif ($dir_topic === 'all') {
$tp = '';
}
$url = COM_buildURL($script . $tp . $parts);
return '<link rel="canonical" href="' . $url . '"' . XHTML . '>' . LB;
}
// MAIN
$display = '';
if (isset($_POST['topic']) && isset($_POST['year']) && isset($_POST['month'])) {
$dir_topic = $_POST['topic'];
$year = $_POST['year'];
$month = $_POST['month'];
} else {
COM_setArgNames(array('topic', 'year', 'month'));
$dir_topic = COM_getArgument('topic');
$year = COM_getArgument('year');
$month = COM_getArgument('month');
}
$dir_topic = COM_applyFilter($dir_topic);
if (empty($dir_topic)) {
$dir_topic = 'all';
}
// Topic stuff already set in lib-common but need to double check if URL_Write is_a enabled
//Set topic for rest of site
if ($dir_topic === 'all') {
$topic = '';
} else {
$topic = $dir_topic;
}
示例2: Template
$loginreq = new Template($_CONF['path_layout'] . 'submit');
$loginreq->set_file('loginreq', 'submitloginrequired.thtml');
$loginreq->set_var('xhtml', XHTML);
$loginreq->set_var('layout_url', $_CONF['layout_url']);
$loginreq->set_var('login_message', $LANG_LOGIN[2]);
$loginreq->set_var('lang_login', $LANG_LOGIN[3]);
$loginreq->set_var('lang_newuser', $LANG_LOGIN[4]);
$loginreq->parse('errormsg', 'loginreq');
$display .= $loginreq->finish($loginreq->get_var('errormsg'));
$display .= COM_endBlock(COM_getBlockTemplate('_msg_block', 'footer'));
$display .= CLASSIFIEDS_siteFooter(true);
echo $display;
exit;
}
// Retrieve and sanitize input variables. Typically _GET, but may be _POSTed.
COM_setArgNames(array('mode', 'id', 'page', 'query'));
// Get any message ID
if (isset($_REQUEST['msg'])) {
$msg = COM_applyFilter($_REQUEST['msg']);
} else {
$msg = '';
}
if (isset($_REQUEST['mode'])) {
$mode = COM_applyFilter($_REQUEST['mode']);
} else {
$mode = COM_getArgument('mode');
}
if (isset($_REQUEST['id'])) {
$id = COM_sanitizeID($_REQUEST['id']);
} else {
$id = COM_applyFilter(COM_getArgument('id'));
示例3: COM_siteHeader
//.........这里部分代码省略.........
break;
case 'xhtml10strict':
$doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
break;
default:
// fallback: HTML 4.01 Transitional w/o system identifier
$doctype = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
break;
}
// send out the charset header
header('Content-Type: text/html; charset=' . COM_getCharset());
if (!empty($_CONF['frame_options'])) {
header('X-FRAME-OPTIONS: ' . $_CONF['frame_options']);
}
$header = COM_newTemplate($_CONF['path_layout']);
$header->set_file(array('header' => 'header.thtml', 'menuitem' => 'menuitem.thtml', 'menuitem_last' => 'menuitem_last.thtml', 'menuitem_none' => 'menuitem_none.thtml', 'leftblocks' => 'leftblocks.thtml', 'rightblocks' => 'rightblocks.thtml'));
$header->postprocess_fn = 'PLG_replaceTags';
$header->set_var('doctype', $doctype);
if (XHTML == '') {
$header->set_var('xmlns', '');
} else {
$header->set_var('xmlns', ' xmlns="http://www.w3.org/1999/xhtml"');
}
// get topic if not on home page
if (!isset($_GET['topic'])) {
if (isset($_GET['story'])) {
$sid = COM_applyFilter($_GET['story']);
} elseif (isset($_GET['sid'])) {
$sid = COM_applyFilter($_GET['sid']);
} elseif (isset($_POST['story'])) {
$sid = COM_applyFilter($_POST['story']);
}
if (empty($sid) && $_CONF['url_rewrite'] && strpos($_SERVER['PHP_SELF'], 'article.php') !== false) {
COM_setArgNames(array('story', 'mode'));
$sid = COM_applyFilter(COM_getArgument('story'));
}
if (!empty($sid)) {
$topic = DB_getItem($_TABLES['stories'], 'tid', "sid='{$sid}'");
}
} else {
$topic = COM_applyFilter($_GET['topic']);
}
$feed_url = array();
if ($_CONF['backend'] == 1) {
$baseurl = SYND_getFeedUrl();
$sql = 'SELECT format, filename, title, language FROM ' . $_TABLES['syndication'] . " WHERE (header_tid = 'all')";
if (!empty($topic)) {
$sql .= " OR (header_tid = '" . addslashes($topic) . "')";
}
$result = DB_query($sql);
$numRows = DB_numRows($result);
for ($i = 0; $i < $numRows; $i++) {
$A = DB_fetchArray($result);
if (!empty($A['filename'])) {
$format_type = SYND_getMimeType($A['format']);
$format_name = SYND_getFeedType($A['format']);
$feed_title = $format_name . ' Feed: ' . $A['title'];
$feed_url[] = '<link rel="alternate" type="' . $format_type . '" hreflang="' . $A['language'] . '" href="' . $baseurl . $A['filename'] . '" title="' . htmlspecialchars($feed_title) . '"' . XHTML . '>';
}
}
}
$header->set_var('feed_url', implode(LB, $feed_url));
// for backward compatibility only - use {feed_url} instead
$feed = SYND_getDefaultFeedUrl();
$header->set_var('rdf_file', $feed);
$header->set_var('rss_url', $feed);
示例4: USES_evlist_class_ticket
case 'printtickets':
if ($_EV_CONF['enable_rsvp'] && !COM_isAnonUser()) {
USES_evlist_class_ticket();
$eid = COM_sanitizeID($_GET['eid'], false);
$doc = evTicket::PrintTickets($eid, 0, $_USER['uid']);
echo $doc;
exit;
} else {
$content .= 'Function not available';
}
break;
case 'view':
default:
if (empty($eid)) {
// Default action, view the calendar or event
COM_setArgNames(array('eid', 'ts', 'range', 'cat'));
$eid = COM_sanitizeID(COM_getArgument('eid'), false);
}
if (!empty($eid)) {
USES_evlist_class_repeat();
$Rep = new evRepeat($eid);
$pagetitle = COM_stripslashes($Rep->Event->title);
if ($view == 'print') {
$template = 'event_print';
$query = '';
}
$query = isset($_GET['query']) ? $_GET['query'] : '';
$content .= $Rep->Detail('', $query, $template);
} else {
// Shouldn't be in this file without an event ID to display or edit
echo COM_refresh(EVLIST_URL . '/index.php');
示例5: COM_404
COM_404();
exit;
}
if (COM_isAnonUser() && $_MG_CONF['loginrequired'] == 1) {
$display = MG_siteHeader();
$display .= SEC_loginRequiredForm();
$display .= COM_siteFooter();
echo $display;
exit;
}
require_once $_CONF['path'] . 'plugins/mediagallery/include/init.php';
MG_initAlbums();
/*
* Main Function
*/
COM_setArgNames(array('aid', 'f', 'sort'));
$album_id = COM_applyFilter(COM_getArgument('aid'), true);
$T = new Template(MG_getTemplatePath($album_id));
$T->set_file(array('page' => 'playall_xspf.thtml'));
if ($MG_albums[$album_id]->access == 0) {
$display .= COM_showMessageText($LANG_MG00['access_denied_msg'], $LANG_ACCESS['accessdenied'], true);
$display .= MG_siteFooter();
echo $display;
exit;
}
$album_title = $MG_albums[$album_id]->title;
$album_desc = $MG_albums[$album_id]->description;
MG_usage('playalbum', $album_title, '', '');
$birdseed = '<a href="' . $_CONF['site_url'] . '/index.php">' . $LANG_MG03['home'] . '</a> ' . ($_MG_CONF['gallery_only'] == 1 ? '' : $_MG_CONF['seperator'] . ' <a href="' . $_MG_CONF['site_url'] . '/index.php">' . $_MG_CONF['menulabel'] . '</a> ') . $MG_albums[$album_id]->getPath(1, 0, 1);
$T->set_var(array('site_url' => $_MG_CONF['site_url'], 'birdseed' => $birdseed, 'pagination' => '<a href="' . $_MG_CONF['site_url'] . '/album.php?aid=' . $album_id . '&page=1&sort=' . '0' . '">' . $LANG_MG03['return_to_album'] . '</a>', 'album_title' => $album_title, 'album_desc' => $album_desc, 'aid' => $album_id, 'home' => $LANG_MG03['home'], 'return_to_album' => $LANG_MG03['return_to_album']));
/*
示例6: COM_refresh
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software Foundation, |
// | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
// | |
// +---------------------------------------------------------------------------+
require_once '../lib-common.php';
if (!in_array('banner', $_PLUGINS)) {
echo COM_refresh($_CONF['site_url'] . '/index.php');
exit;
}
// MAIN
$url = '';
COM_setArgNames(array('what', 'item'));
$what = COM_getArgument('what');
if ($what == 'banner') {
$item = COM_applyFilter(COM_getArgument('item'));
if (!empty($item)) {
// Hack: due to PLG_afterSaveSwitch settings, we may get
// an attached &msg - strip it off
$i = explode('&', $item);
$item = $i[0];
}
if (!empty($item)) {
$url = DB_getItem($_TABLES['banner'], 'url', "bid = '{$item}' AND (publishstart IS NULL OR publishstart < NOW()) and (publishend IS NULL OR publishend > NOW())");
if (!empty($url)) {
DB_change($_TABLES['banner'], 'hits', 'hits + 1', 'bid', $item, '', true);
}
}
示例7: COM_404
if (!in_array('paypal', $_PLUGINS)) {
COM_404();
}
// Ensure sufficient privs and dependencies to read this page
PAYPAL_access_check();
// Import plugin-specific functions
USES_paypal_functions();
// Create a global shopping cart for our use. This allows the cart to be
// manipulated in an action and then displayed in a view, without necessarily
// having to revisit the database or create a new cart.
USES_paypal_class_cart();
$ppGCart = new ppCart();
// First try to get the SEO-friendly arguments. A single "action" and "id"
// will probably be the most common anyway. If that fails, go through all
// the possibilies for actions that might come from submit buttons, etc.
COM_setArgNames(array('action', 'id'));
$action = COM_getArgument('action');
$actionval = '';
if (!empty($action)) {
$id = COM_sanitizeID(COM_getArgument('id'));
} else {
$expected = array('updatecart', 'checkout', 'searchcat', 'savebillto', 'saveshipto', 'updatecart', 'emptycart', 'addcartitem', 'addcartitem_x', 'checkoutcart', 'processorder', 'thanks', 'action', 'order', 'view', 'detail', 'printorder', 'orderhist');
$action = 'view';
foreach ($expected as $provided) {
if (isset($_POST[$provided])) {
$action = $provided;
$actionval = $_POST[$provided];
break;
} elseif (isset($_GET[$provided])) {
$action = $provided;
$actionval = $_GET[$provided];
示例8: downloader
// +---------------------------------------------------------------------------+
/**
* For really strict webhosts, this file an be used to show images in pages that
* serve the images from outside of the webtree to a place that the webserver
* user can actually write too
*
* @author Tony Bibbs, tony AT tonybibbs DOT com
*
*/
require_once 'lib-common.php';
require_once $_CONF['path_system'] . 'classes/downloader.class.php';
$downloader = new downloader();
$downloader->setLogFile($_CONF['path_log'] . 'error.log');
$downloader->setLogging(true);
$downloader->setAllowedExtensions(array('gif' => 'image/gif', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'png' => 'image/png', 'png' => 'image/x-png'));
COM_setArgNames(array('mode', 'image'));
$mode = COM_applyFilter(COM_getArgument('mode'));
$image = COM_applyFilter(COM_getArgument('image'));
if (strstr($image, '..')) {
// Can you believe this, some jackass tried to relative pathing to access
// files they shouldn't have access to?
COM_accessLog('Someone tried to illegally access files using getimage.php');
exit;
}
// Set the path properly
switch ($mode) {
case 'show':
case 'articles':
$downloader->setPath($_CONF['path_images'] . 'articles/');
break;
case 'topics':
示例9: COM_applyFilter
$sid = COM_applyFilter($_POST['story']);
$mode = COM_applyFilter($_POST['mode']);
if (isset($_POST['order'])) {
$order = COM_applyFilter($_POST['order']);
}
if (isset($_POST['query'])) {
$query = $_POST['query'];
}
if (isset($_POST['reply'])) {
$reply = COM_applyFilter($_POST['reply']);
}
if (isset($_POST['cpage'])) {
$page = COM_applyFilter($_POST['cpage'], true);
}
} else {
COM_setArgNames(array('story', 'mode'));
$sid = COM_applyFilter(COM_getArgument('story'));
$mode = COM_applyFilter(COM_getArgument('mode'));
if (isset($_GET['order'])) {
$order = COM_applyFilter($_GET['order']);
}
if (isset($_GET['query'])) {
$query = $_GET['query'];
}
if (isset($_GET['reply'])) {
$reply = COM_applyFilter($_GET['reply']);
}
if (isset($_GET['cpage'])) {
$page = COM_applyFilter($_GET['cpage'], true);
}
}
示例10: substr_replace
$urlpart = substr_replace($urlpart, $newlang, -$lang_len);
}
$retval = $urlpart . $extra_vars;
}
return $retval;
}
// MAIN
$ret_url = '';
if (isset($_SERVER['HTTP_REFERER'])) {
if (strpos($_SERVER['HTTP_REFERER'], $_CONF['site_url']) !== false) {
$ret_url = $_SERVER['HTTP_REFERER'];
}
}
// if not allowed, just ignore and return
if ($_CONF['allow_user_language'] == 1) {
COM_setArgNames(array('lang'));
$lang = strtolower(COM_applyFilter(COM_getArgument('lang')));
$lang = preg_replace('/[^a-z0-9\\-_]/', '', $lang);
$oldlang = COM_getLanguageId();
// do we really have a new language to switch to?
if (!empty($lang) && array_key_exists($lang, $_CONF['language_files'])) {
// does such a language file exist?
$langfile = $_CONF['language_files'][$lang];
if (is_file($_CONF['path_language'] . $langfile . '.php')) {
// Set the language cookie.
// Mainly used for anonymous users so the rest of their session
// will remain in the selected language
setcookie($_CONF['cookie_language'], $langfile, time() + 31536000, $_CONF['cookie_path'], $_CONF['cookiedomain'], $_CONF['cookiesecure']);
// if user is not anonymous, store the preference in the database
if (!COM_isAnonUser()) {
DB_query("UPDATE {$_TABLES['users']} SET language = '{$langfile}' WHERE uid = {$_USER['uid']}");
示例11: strpos
//public_html/data.php?id=1&m=id&template=yyyy
//public_html/data.php?code=xxxx_en&m=code&template=yyyy
$url_rewrite = false;
$q = false;
$url = $_SERVER["REQUEST_URI"];
if ($_CONF['url_rewrite']) {
$q = strpos($url, '?');
if ($q === false) {
$url_rewrite = true;
} elseif (substr($url, $q - 4, 4) != '.php') {
$url_rewrite = true;
}
}
//
if ($url_rewrite) {
COM_setArgNames(array('idcode', 'm', 'template', $dummy1));
$m = COM_applyFilter(COM_getArgument('m'));
$template = COM_applyFilter(COM_getArgument('template'));
//code 使用の時
if ($m === "code") {
$id = 0;
$code = COM_applyFilter(COM_getArgument('idcode'));
} elseif ($m === "id") {
$id = COM_applyFilter(COM_getArgument('idcode'), true);
$code = "";
} else {
$id = 0;
$code = "";
}
} else {
$m = COM_applyFilter($_GET['m']);
示例12: strpos
// 引数
//public_html/page.php?code=xxxx&template=yyyy
$url_rewrite = false;
$q = false;
$url = $_SERVER["REQUEST_URI"];
if ($_CONF['url_rewrite']) {
$q = strpos($url, '?');
if ($q === false) {
$url_rewrite = true;
} elseif (substr($url, $q - 4, 4) != '.php') {
$url_rewrite = true;
}
}
//
if ($url_rewrite) {
COM_setArgNames(array('code', 'template', 'dummy1', 'dummy2'));
$code = COM_applyFilter(COM_getArgument('code'));
$template = COM_applyFilter(COM_getArgument('template'));
} else {
$code = COM_applyFilter($_GET['code']);
$template = COM_applyFilter($_GET['template']);
}
$msg = '';
if (isset($_GET['msg'])) {
$msg = COM_applyFilter($_GET['msg'], true);
}
$display = '';
$information = array();
// 'コメントを追加',
if (isset($_POST['reply']) && $_POST['reply'] == $LANG01[25]) {
$display .= COM_refresh($_CONF['site_url'] . '/comment.php?sid=' . $_POST['pid'] . '&pid=' . $_POST['pid'] . '&type=' . $_POST['type']);
示例13: COM_siteFooter
/**
* Returns the site footer
*
* This loads the proper templates, does variable substitution and returns the
* HTML for the site footer.
*
* @param boolean $rightblock Whether or not to show blocks on right hand side default is no
* @param array $custom An array defining custom function to be used to format Rightblocks
* @see function COM_siteHeader
* @return string Formated HTML containing site footer and optionally right blocks
*
*/
function COM_siteFooter($rightblock = -1, $custom = '')
{
global $_CONF, $_TABLES, $_USER, $LANG01, $LANG12, $LANG_BUTTONS, $LANG_DIRECTION, $_IMAGE_TYPE, $topic, $_COM_VERBOSE, $_PAGE_TIMER, $theme_what, $theme_pagetitle, $theme_headercode, $theme_layout, $_LOGO, $uiStyles;
COM_hit();
if (isset($blockInterface['right'])) {
$currentURL = COM_getCurrentURL();
if (strpos($currentURL, $_CONF['site_admin_url']) === 0) {
if ($blockInterface['right']['location'] == 'right' || $blockInterface['right']['location'] == 'left') {
$rightblocks = -1;
}
}
}
$function = $_USER['theme'] . '_siteFooter';
if (function_exists($function)) {
return $function($rightblock, $custom);
}
$dt = new Date('now', $_USER['tzid']);
$what = $theme_what;
$pagetitle = $theme_pagetitle;
$themecode = $theme_headercode;
// Grab any content that was cached by the system
$content = ob_get_contents();
ob_end_clean();
$theme = new Template($_CONF['path_layout']);
$theme->set_file(array('header' => 'header.thtml', 'footer' => 'footer.thtml', 'leftblocks' => 'leftblocks.thtml', 'rightblocks' => 'rightblocks.thtml'));
$theme->set_var('num_search_results', $_CONF['num_search_results']);
// get topic if not on home page
if (!isset($_GET['topic'])) {
if (isset($_GET['story'])) {
$sid = COM_applyFilter($_GET['story']);
} elseif (isset($_GET['sid'])) {
$sid = COM_applyFilter($_GET['sid']);
} elseif (isset($_POST['story'])) {
$sid = COM_applyFilter($_POST['story']);
}
if (empty($sid) && $_CONF['url_rewrite'] && strpos($_SERVER['PHP_SELF'], 'article.php') !== false) {
COM_setArgNames(array('story', 'mode'));
$sid = COM_applyFilter(COM_getArgument('story'));
}
if (!empty($sid)) {
$topic = DB_getItem($_TABLES['stories'], 'tid', "sid='" . DB_escapeString($sid) . "'");
}
} else {
$topic = COM_applyFilter($_GET['topic']);
}
$loggedInUser = !COM_isAnonUser();
$theme->set_var('site_name', $_CONF['site_name']);
$theme->set_var('background_image', $_CONF['layout_url'] . '/images/bg.' . $_IMAGE_TYPE);
$theme->set_var('site_mail', "mailto:{$_CONF['site_mail']}");
if ($_LOGO['display_site_slogan']) {
$theme->set_var('site_slogan', $_CONF['site_slogan']);
}
$msg = $LANG01[67] . ' ' . $_CONF['site_name'];
if (!empty($_USER['username']) && !COM_isAnonUser()) {
$msg .= ', ' . COM_getDisplayName($_USER['uid'], $_USER['username'], $_USER['fullname']);
}
$curtime = $dt->format($dt->getUserFormat(), true);
$theme->set_var('welcome_msg', $msg);
$theme->set_var('datetime', $curtime);
if ($_LOGO['use_graphic_logo'] == 1 && file_exists($_CONF['path_html'] . '/images/' . $_LOGO['logo_name'])) {
$L = new Template($_CONF['path_layout']);
$L->set_file(array('logo' => 'logo-graphic.thtml'));
$imgInfo = @getimagesize($_CONF['path_html'] . '/images/' . $_LOGO['logo_name']);
$dimension = $imgInfo[3];
$L->set_var('site_name', $_CONF['site_name']);
$site_logo = $_CONF['site_url'] . '/images/' . $_LOGO['logo_name'];
$L->set_var('site_logo', $site_logo);
$L->set_var('dimension', $dimension);
if ($imgInfo[1] != 100) {
$delta = 100 - $imgInfo[1];
$newMargin = $delta;
$L->set_var('delta', 'style="padding-top:' . $newMargin . 'px;"');
} else {
$L->set_var('delta', '');
}
if ($_LOGO['display_site_slogan']) {
$L->set_var('site_slogan', $_CONF['site_slogan']);
}
$L->parse('output', 'logo');
$theme->set_var('logo_block', $L->finish($L->get_var('output')));
} else {
if ($_LOGO['use_graphic_logo'] == 0) {
$L = new Template($_CONF['path_layout']);
$L->set_file(array('logo' => 'logo-text.thtml'));
$L->set_var('site_name', $_CONF['site_name']);
if ($_LOGO['display_site_slogan']) {
$L->set_var('site_slogan', $_CONF['site_slogan']);
}
//.........这里部分代码省略.........
示例14: COM_siteHeader
}
// allow_anon_view is set by functions.inc if global login_required is on
if (COM_isAnonUser() && $_EV_CONF['allow_anon_view'] != '1') {
$content = COM_siteHeader();
$content .= SEC_loginRequiredForm();
$content .= COM_siteFooter();
echo $content;
exit;
}
USES_evlist_functions();
USES_evlist_views();
//var_dump($_GET);die;
/*
* MAIN
*/
COM_setArgNames(array('view', 'range', 'cat'));
if (isset($_GET['view'])) {
$view = COM_applyFilter($_GET['view']);
} elseif (isset($_POST['view'])) {
$view = COM_applyFilter($_POST['view']);
} else {
$view = COM_applyFilter(COM_getArgument('view'));
}
/*if (empty($view)) {
$view = isset($_EV_CONF['default_view']) ? $_EV_CONF['default_view'] : '';
}*/
if (isset($_GET['range'])) {
$range = COM_applyFilter($_GET['range'], true);
} elseif (isset($_POST['range'])) {
$range = COM_applyFilter($_POST['range'], true);
} else {
示例15: COM_handle404
/**
* Display a Static Page
*
* @package StaticPages
* @subpackage public_html
*/
/**
* Geeklog common function library
*/
require_once '../lib-common.php';
if (!in_array('staticpages', $_PLUGINS)) {
COM_handle404();
exit;
}
// MAIN
COM_setArgNames(array('page', 'disp_mode'));
$page = COM_applyFilter(COM_getArgument('page'));
$display_mode = COM_applyFilter(COM_getArgument('disp_mode'));
$query = '';
if (isset($_REQUEST['query'])) {
$query = COM_applyfilter($_GET['query']);
}
TOPIC_getTopic('staticpages', $page);
// from comments display refresh:
if (isset($_REQUEST['order'])) {
$comment_order = COM_applyFilter($_REQUEST['order']);
$comment_mode = COM_applyFilter($_REQUEST['mode']);
if (isset($_REQUEST['cpage'])) {
$comment_page = COM_applyFilter($_REQUEST['cpage']);
}
if (strcasecmp($comment_order, 'ASC') != 0 && strcasecmp($comment_order, 'DESC') != 0) {