2
Here is what the code segment looks like at the beginning of the index page:
include_once '../../mainfile.php';
include_once XOOPS_ROOT_PATH."/header.php";
include 'include/functions.php';
global $xoopsOption, $xoopsDB, $xoopsUser, $xoopsConfig, $xoopsModuleConfig;
settype($vid,"integer");
$vid = intval($_GET['vid']);
$op ='';
$postnum ='';
if (isset($HTTP_GET_VARS['op'])) $op=$HTTP_GET_VARS['op'];
if (isset($HTTP_POST_VARS['op'])) $op=$HTTP_POST_VARS['op'];
$PHP_SELF = $_SERVER["PHP_SELF"];
And the segment where I assign the template:
// Designate Smarty template to be used
$xoopsOption['template_main'] = 'video_display.html';
include_once(XOOPS_ROOT_PATH."/header.php");
// Read Preferences configuration values
$vdispformat = $xoopsModuleConfig['videodisplayformat'];
$vautoplay = $xoopsModuleConfig['videoautoplay'];
$vdisporder = $xoopsModuleConfig['videodisplayorder'];
$vdispnumber = $xoopsModuleConfig['videodisplaynumber'];
My concern is that I may not be calling out the includes in such a way that it will work on all sites. Any suggestions on how to proceed?