5
I just tried to fix the problem and it works in the following amendment.
original script in viewcat.php
_------------------------------------------
global $xoopsModuleConfig, $myts, $xoopsModules;
$start = isset($_GET['start']) ? intval($_GET['start']) : 0;
$orderby = isset($_GET['orderby']) ? convertorderbyin($_GET['orderby']) : $xoopsModuleConfig['filexorder'];
$cid = empty( $_GET['cid'] ) ? 0 : intval( $_GET['cid'] ) ;
$uid = empty( $_GET['uid'] ) ? 0 : intval( $_GET['uid'] ) ;
$list = isset($_GET['list']) && $myts->addslashes($_GET['list']) ? $_GET['list'] : 0;
$selectdate = (isset($_GET['selectdate']) ? intval($_GET['selectdate']) : 0);
$xoopsOption['template_main'] = "PDdownloads{$mydirnumber}_viewcat.html";
$groups = (is_object($xoopsUser)) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS;
$gperm_handler = &xoops_gethandler('groupperm');
$time_cur = time();
$module_id = $xoopsModule->getVar('mid');
---------------------------------------------------cut and paste at the top
----------------------------------------------------------
/**
* Begin Main page Heading etc
*/
include XOOPS_ROOT_PATH . '/header.php';
$catarray['imageheader'] = PDd_imageheader();
$catarray['letters'] = PDd_letters();
$catarray['toolbar'] = PDd_toolbar();
$xoopsTpl->assign('catarray', $catarray);
/**
* Breadcrumb
*/
-------------------------------------------
revised script in viewcat.php
_------------------------------------------
/**
* Begin Main page Heading etc
*/
include XOOPS_ROOT_PATH . '/header.php';
$catarray['imageheader'] = PDd_imageheader();
$catarray['letters'] = PDd_letters();
$catarray['toolbar'] = PDd_toolbar();
$xoopsTpl->assign('catarray', $catarray);
/**
* Breadcrumb
*/
global $xoopsModuleConfig, $myts, $xoopsModules;
$start = isset($_GET['start']) ? intval($_GET['start']) : 0;
$orderby = isset($_GET['orderby']) ? convertorderbyin($_GET['orderby']) : $xoopsModuleConfig['filexorder'];
$cid = empty( $_GET['cid'] ) ? 0 : intval( $_GET['cid'] ) ;
$uid = empty( $_GET['uid'] ) ? 0 : intval( $_GET['uid'] ) ;
$list = isset($_GET['list']) && $myts->addslashes($_GET['list']) ? $_GET['list'] : 0;
$selectdate = (isset($_GET['selectdate']) ? intval($_GET['selectdate']) : 0);
$xoopsOption['template_main'] = "PDdownloads{$mydirnumber}_viewcat.html";
$groups = (is_object($xoopsUser)) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS;
$gperm_handler = &xoops_gethandler('groupperm');
$time_cur = time();
$module_id = $xoopsModule->getVar('mid');
---------------------------------------------------
I used to test the file of $cid in the original script. It returns null. Can anyone tell why it happens?