示例#1
0
    $forum_form->addElement(new XoopsFormHidden('forum', $forum_id));
    $forum_form->addElement(new XoopsFormHidden('viewmode', $viewmode));
    $forum_form->addElement(new XoopsFormHidden('order', $order));
    $forum_form->addElement(new XoopsFormHidden('start', $start));
    // backward compatible
    if (!class_exists("XoopsSecurity")) {
        $post_valid = 1;
        $_SESSION['submit_token'] = $post_valid;
        $forum_form->addElement(new XoopsFormHidden('post_valid', $post_valid));
    }
    $forum_form->addElement(new XoopsFormHidden('notify', -1));
    $forum_form->addElement(new XoopsFormHidden('contents_submit', 1));
    $submit_button = new XoopsFormButton('', 'quick_submit', _SUBMIT, "submit");
    $submit_button->setExtra('onclick="if (document.forms.quick_reply.message.value == \'RE\' || document.forms.quick_reply.message.value == \'\') { alert(\'' . _MD_QUICKREPLY_EMPTY . '\'); return false;} else { return true;}"');
    $button_tray = new XoopsFormElementTray('');
    $button_tray->addElement($submit_button);
    $forum_form->addElement($button_tray);
    $toggles = newbb_getcookie('G', true);
    $display = in_array('qr', $toggles) ? 'none;' : 'block;';
    $xoopsTpl->assign('quickreply', array('show' => 1, 'display' => $display, 'icon' => newbb_displayImage($forumImage['t_qr']), 'form' => $forum_form->render()));
    unset($forum_form);
} else {
    $xoopsTpl->assign('quickreply', array('show' => 0));
}
if ($xoopsModuleConfig["do_tag"] && @(include_once XOOPS_ROOT_PATH . "/modules/tag/include/tagbar.php")) {
    $xoopsTpl->assign('tagbar', tagBar($topic_obj->getVar("topic_tags", "n")));
}
if ($transferbar = (include XOOPS_ROOT_PATH . "/Frameworks/transfer/bar.transfer.php")) {
    $xoopsTpl->assign('transfer', $transferbar);
}
include XOOPS_ROOT_PATH . '/footer.php';
示例#2
0
    /**
     * Get item fileds:
     * title
     * content
     * time
     * uid
     * tags
     */
    if (!($item = @$items_module[$items[$key]["modid"]][$items[$key]["catid"]][$items[$key]["itemid"]])) {
        continue;
    }
    $item["module"] = $modules_obj[$items[$key]["modid"]]->getVar("name");
    $item["dirname"] = $modules_obj[$items[$key]["modid"]]->getVar("dirname");
    $time = empty($item["time"]) ? $items[$key]["time"] : $item["time"];
    $item["time"] = formatTimestamp($time, "s");
    $item["tags"] = tagBar($item["tags"]);
    $items_data[] = $item;
    $uids[$item["uid"]] = 1;
}
load_functions("user");
$users = mod_getUnameFromIds(array_keys($uids));
foreach (array_keys($items_data) as $key) {
    $items_data[$key]["uname"] = $users[$items_data[$key]["uid"]];
}
if (!empty($start) || count($items_data) >= $limit) {
    $count_item = $tag_handler->getItemCount($tag_id, $modid, $catid);
    // Tag, modid, catid
    include XOOPS_ROOT_PATH . "/class/pagenav.php";
    $nav = new XoopsPageNav($count_item, $limit, $start, "start", "tag={$tag_id}&catid={$catid}");
    $pagenav = $nav->renderNav(4);
} else {
示例#3
0
if ($cfg['config_rating_registred_only']) {
    if (isset($xoopsUser) && is_object($xoopsUser)) {
        $other_test = true;
    } else {
        $other_test = false;
    }
}
if (news_getmoduleoption('ratenews') && $other_test) {
    $xoopsTpl->assign('rates', true);
    $xoopsTpl->assign('lang_ratingc', _NW_RATINGC);
    $xoopsTpl->assign('lang_ratethisnews', _NW_RATETHISNEWS);
    $story['rating'] = number_format($article->rating(), 2);
    if ($article->votes == 1) {
        $story['votes'] = _NW_ONEVOTE;
    } else {
        $story['votes'] = sprintf(_NW_NUMVOTES, $article->votes);
    }
} else {
    $xoopsTpl->assign('rates', false);
}
$xoopsTpl->assign('story', $story);
// Added in version 1.63, TAGS
if (news_getmoduleoption('tags')) {
    require_once XOOPS_ROOT_PATH . '/modules/tag/include/tagbar.php';
    $xoopsTpl->assign('tags', true);
    $xoopsTpl->assign('tagbar', tagBar($storyid, 0));
} else {
    $xoopsTpl->assign('tags', false);
}
include_once XOOPS_ROOT_PATH . '/include/comment_view.php';
include_once XOOPS_ROOT_PATH . '/footer.php';
示例#4
0
$xoopsTpl->assign('categoryPath', $item['categoryPath'] . " > " . $item['title']);
$xoopsTpl->assign('commentatarticlelevel', $xoopsModuleConfig['commentatarticlelevel']);
$xoopsTpl->assign('com_rule', smartsection_getConfig('com_rule'));
$xoopsTpl->assign('lang_items_links', _MD_SSECTION_ITEMS_LINKS);
$xoopsTpl->assign('previous_item_link', $previous_item_link);
$xoopsTpl->assign('next_item_link', $next_item_link);
$xoopsTpl->assign('previous_item_url', $previous_item_url);
$xoopsTpl->assign('next_item_url', $next_item_url);
$xoopsTpl->assign('other_items', $xoopsModuleConfig['other_items_type']);
$itemFooter = smartsection_getConfig('itemfooter');
$itemFooter = $myts->displayTarea($itemFooter);
$xoopsTpl->assign('itemfooter', $itemFooter);
// tags support
if (smartsection_tag_module_included()) {
    include_once XOOPS_ROOT_PATH . "/modules/tag/include/tagbar.php";
    $xoopsTpl->assign('tagbar', tagBar($itemid, $catid = 0));
}
/**
 * Generating meta information for this page
 */
$smartsection_metagen = new SmartsectionMetagen($itemObj->getVar('title'), $itemObj->getVar('meta_keywords', 'n'), $itemObj->getVar('meta_description', 'n'), $itemObj->getCategoryPath());
$smartsection_metagen->createMetaTags();
//SmartObject Rating feature
if (file_exists(XOOPS_ROOT_PATH . '/modules/smartobject/include/rating.rate.php')) {
    include_once XOOPS_ROOT_PATH . '/modules/smartobject/include/rating.rate.php';
}
// Include the comments if the selected ITEM supports comments
if ($itemObj->cancomment() == 1 || !$xoopsModuleConfig['commentatarticlelevel'] && smartsection_getConfig('com_rule') != 0) {
    include_once XOOPS_ROOT_PATH . "/include/comment_view.php";
    // Problem with url_rewrite and posting comments :
    $xoopsTpl->assign(array('editcomment_link' => SMARTSECTION_URL . 'comment_edit.php?com_itemid=' . $com_itemid . '&com_order=' . $com_order . '&com_mode=' . $com_mode . '' . $link_extra, 'deletecomment_link' => SMARTSECTION_URL . 'comment_delete.php?com_itemid=' . $com_itemid . '&com_order=' . $com_order . '&com_mode=' . $com_mode . '' . $link_extra, 'replycomment_link' => SMARTSECTION_URL . 'comment_reply.php?com_itemid=' . $com_itemid . '&com_order=' . $com_order . '&com_mode=' . $com_mode . '' . $link_extra));
示例#5
0
 // Add lightbox
 //$xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.lightbox.js');
 //$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/lightbox.css');
 if (isset($_GET['stock']) && $_GET['stock'] == 'add' && oledrion_utils::isMemberOfGroup(oledrion_utils::getModuleOption('grp_qty'))) {
     $h_oledrion_products->increaseStock($product);
 }
 if (isset($_GET['stock']) && $_GET['stock'] == 'substract' && oledrion_utils::isMemberOfGroup(oledrion_utils::getModuleOption('grp_qty'))) {
     $h_oledrion_products->decreaseStock($product);
     $h_oledrion_products->verifyLowStock($product);
 }
 $currentUser = oledrion_utils::getCurrentUserID();
 $xoopsTpl->assign('currentUserId', $currentUser);
 $baseurl = OLEDRION_URL . basename(__FILE__) . '?product_id=' . $product->getVar('product_id');
 if (oledrion_utils::getModuleOption('use_tags')) {
     require_once XOOPS_ROOT_PATH . '/modules/tag/include/tagbar.php';
     $xoopsTpl->assign('tagbar', tagBar($product_id, 0));
 }
 // Quelques options pour le template
 $xoopsTpl->assign('baseurl', $baseurl);
 $xoopsTpl->assign('nostock_msg', oledrion_utils::getModuleOption('nostock_msg'));
 $xoopsTpl->assign('mod_pref', $mod_pref);
 // Préférences du module
 $xoopsTpl->assign('columnsCount', oledrion_utils::getModuleOption('catagory_colums'));
 $xoopsTpl->assign('icones', $icones);
 $xoopsTpl->assign('canRateProducts', oledrion_utils::getModuleOption('rateproducts'));
 // Préférences du module
 $xoopsTpl->assign('mail_link', 'mailto:?subject=' . sprintf(_OLEDRION_INTARTICLE, $xoopsConfig['sitename']) . '&body=' . sprintf(_OLEDRION_INTARTFOUND, $xoopsConfig['sitename']) . ':  ' . XOOPS_URL . '/modules/oledrion/product.php?product_id=' . $product_id);
 $xoopsTpl->assign('canChangeQuantity', oledrion_utils::isMemberOfGroup(oledrion_utils::getModuleOption('grp_qty')));
 // Groupe autorisé à modifier les quantités depuis la page
 $xoopsTpl->assign('ProductStockQuantity', sprintf(_OLEDRION_QUANTITY_STOCK, $product->getVar('product_stock')));
 // Recherche de la catégorie du produit
示例#6
0
    function showPost($isadmin)
    {
        global $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser, $myts, $xoopsTpl;
        global $xforumUrl, $xforumImage;
        global $viewtopic_users, $viewtopic_posters, $viewtopic_forum, $xforumtopic, $online, $user_karma, $viewmode, $order, $start, $total_posts, $topic_status;
        static $post_NO = 0;
        static $user_ip;

		$post_id = $this->getVar('post_id');
		$topic_id = $this->getVar('topic_id');
		$forum_id = $this->getVar('forum_id');
		
		$topic_status = $xforumtopic->getVar('topic_status');

        $uid = is_object($xoopsUser)? $xoopsUser->getVar('uid'):0;
		
        $post_NO ++;
        if (strtolower($order) == "desc") $post_no = $total_posts - ($start + $post_NO) + 1;
        else $post_no = $start + $post_NO;

        if ($isadmin or $this->checkIdentity()) {
            $post_text = $this->getVar('post_text');
            $post_attachment = $this->displayAttachment();
        } elseif ($xoopsModuleConfig['enable_karma'] && $this->getVar('post_karma') > $user_karma) {
            $post_text = "<div class='karma'>" . sprintf(_MD_KARMA_REQUIREMENT, $user_karma, $this->getVar('post_karma')) . "</div>";
            $post_attachment = '';
        } elseif (
	        	$xoopsModuleConfig['allow_require_reply']
	        	&& $this->getVar('require_reply')
	        	&& (
	        		!$uid
	        		|| !in_array($uid, $viewtopic_posters)
	        	)
        	) {
            $post_text = "<div class='karma'>" . _MD_REPLY_REQUIREMENT . "</div>";
            $post_attachment = '';
        } else {
            $post_text = $this->getVar('post_text');
            $post_attachment = $this->displayAttachment();
        }
        $poster = (($this->getVar('uid') > 0) && isset($viewtopic_users[$this->getVar('uid')]))?
        	$viewtopic_users[$this->getVar('uid')]:
            array(
            	'poster_uid' => 0,
                'name' => $this->getVar('poster_name')?$this->getVar('poster_name'):$myts->HtmlSpecialChars($xoopsConfig['anonymous']),
                'link' => $this->getVar('poster_name')?$this->getVar('poster_name'):$myts->HtmlSpecialChars($xoopsConfig['anonymous'])
            );

        $posticon = $this->getVar('icon');
        if (!empty($posticon)){
            $post_image = '<a name="' . $post_id . '"><img src="' . XOOPS_URL . '/images/subject/' . $posticon . '" alt="" /></a>';
        }else{
            $post_image = '<a name="' . $post_id . '"><img src="' . XOOPS_URL . '/images/icons/posticon.gif" alt="" /></a>';
        }

        $post_title = $this->getVar('subject');

        $thread_buttons = array();
        
		if($GLOBALS["xoopsModuleConfig"]['enable_permcheck']){
	        $topic_handler = &xoops_getmodulehandler('topic', 'xforum');
	        if ($topic_handler->getPermission($forum_id, $topic_status, "edit")) {
	            $edit_ok = false;
	            if ($isadmin) {
	                $edit_ok = true;
	            } elseif ($this->checkIdentity() && $this->checkTimelimit('edit_timelimit')) {
	                $edit_ok = true;
	            }
	            if ($edit_ok) {
	                $thread_buttons['edit']['image'] = forum_displayImage($xforumImage['p_edit'], _EDIT);
	                $thread_buttons['edit']['link'] = "edit.php?forum=" . $forum_id . "&amp;topic_id=" . $topic_id . "&amp;viewmode=$viewmode&amp;order=$order";
	                $thread_buttons['edit']['name'] = _EDIT;
	            }
	        }
	
	        if ($topic_handler->getPermission($forum_id, $topic_status, "delete")) {
	            $delete_ok = false;
	            if ($isadmin) {
	                $delete_ok = true;
	            } elseif ($this->checkIdentity() && $this->checkTimelimit('delete_timelimit')) {
	                $delete_ok = true;
	            }
	
	            if ($delete_ok) {
	                $thread_buttons['delete']['image'] = forum_displayImage($xforumImage['p_delete'], _DELETE);
	                $thread_buttons['delete']['link'] = "delete.php?forum=" . $forum_id . "&amp;topic_id=" . $topic_id . "&amp;viewmode=$viewmode&amp;order=$order";
	                $thread_buttons['delete']['name'] = _DELETE;
	            }
	        }
	        if ($topic_handler->getPermission($forum_id, $topic_status, "reply")) {
	            $thread_buttons['reply']['image'] = forum_displayImage($xforumImage['p_reply'], _MD_REPLY);
	            $thread_buttons['reply']['link'] = "reply.php?forum=" . $forum_id . "&amp;topic_id=" . $topic_id . "&amp;viewmode=$viewmode&amp;order=$order&amp;start=$start";
	            $thread_buttons['reply']['name'] = _MD_REPLY;
	            /*
	            $thread_buttons['quote']['image'] = forum_displayImage($xforumImage['p_quote'], _MD_QUOTE);
	            $thread_buttons['quote']['link'] = "reply.php?forum=" . $forum_id . "&amp;topic_id=" . $topic_id . "&amp;viewmode=$viewmode&amp;order=$order&amp;start=$start&amp;quotedac=1";
	            $thread_buttons['quote']['name'] = _MD_QUOTE;
	            */
	        }
        
    	}else{
    	
			$thread_buttons['edit']['image'] = forum_displayImage($xforumImage['p_edit'], _EDIT);
			$thread_buttons['edit']['link'] = "edit.php?forum=" . $forum_id . "&amp;topic_id=" . $topic_id . "&amp;viewmode=$viewmode&amp;order=$order";
			$thread_buttons['edit']['name'] = _EDIT;
			
			$thread_buttons['delete']['image'] = forum_displayImage($xforumImage['p_delete'], _DELETE);
			$thread_buttons['delete']['link'] = "delete.php?forum=" . $forum_id . "&amp;topic_id=" . $topic_id . "&amp;viewmode=$viewmode&amp;order=$order";
			$thread_buttons['delete']['name'] = _DELETE;
			
			$thread_buttons['reply']['image'] = forum_displayImage($xforumImage['p_reply'], _MD_REPLY);
			$thread_buttons['reply']['link'] = "reply.php?forum=" . $forum_id . "&amp;topic_id=" . $topic_id . "&amp;viewmode=$viewmode&amp;order=$order&amp;start=$start";
			$thread_buttons['reply']['name'] = _MD_REPLY;
    	
		}
		
        if (!$isadmin && $xoopsModuleConfig['reportmod_enabled']) {
            $thread_buttons['report']['image'] = forum_displayImage($xforumImage['p_report'], _MD_REPORT);
            $thread_buttons['report']['link'] = "report.php?forum=" . $forum_id . "&amp;topic_id=" . $topic_id . "&amp;viewmode=$viewmode&amp;order=$order";
            $thread_buttons['report']['name'] = _MD_REPORT;
        }
                
        $thread_action = array();
        /*
        if ($isadmin) {
        	$thread_action['news']['image'] = forum_displayImage($xforumImage['news'], _MD_POSTTONEWS);
        	$thread_action['news']['link'] = "posttonews.php?topic_id=" . $topic_id;
        	$thread_action['news']['name'] = _MD_POSTTONEWS;
        }

        $thread_action['pdf']['image'] = forum_displayImage($xforumImage['pdf'], _MD_PDF);
        $thread_action['pdf']['link'] = "makepdf.php?type=post&amp;pageid=0&amp;scale=0.66";
        $thread_action['pdf']['name'] = _MD_PDF;

        $thread_action['print']['image'] = forum_displayImage($xforumImage['printer'], _MD_PRINT);
        $thread_action['print']['link'] = "print.php?form=2&amp;forum=". $forum_id."&amp;topic_id=" . $topic_id;
        $thread_action['print']['name'] = _MD_PRINT;

        if(is_object($xoopsUser) && $this->getVar('uid') > 0 && isset($viewtopic_users[$this->getVar('uid')])){
	        $thread_action['pm']['image'] = $image_url = "<img src=\"".$xforumImage['pm']."\" alt=\""._MD_PM."\" align=\"middle\" />";
	        $thread_action['pm']['link'] = "posttopm.php?";
	        $thread_action['pm']['name'] = _MD_PM;
        }
        */
		if (file_exists(XOOPS_ROOT_PATH."/modules/tag/include/tagbar.php")) {
			include_once XOOPS_ROOT_PATH."/modules/tag/include/tagbar.php";
    		$tagbar = tagBar($post_id, $catid = 0);
			$hastags = true;
		} else {
    		$tagbar = '';  
			$hastags = false;
		}
		
		$post = array(
	    			'post_id' => $post_id,
	                'post_parent_id' => $this->getVar('pid'),
	                'post_date' => forum_formatTimestamp($this->getVar('post_time')),
	                'post_image' => $post_image,
	                'post_title' => $post_title,
	                'post_text' => $post_text,
	                'post_attachment' => $post_attachment,
	                'post_edit' => $this->displayPostEdit(),
	                'post_no' => $post_no,
	                'post_signature' => ($this->getVar('attachsig'))?@$poster["signature"]:"",
	                'poster_ip' => ($isadmin && $xoopsModuleConfig['show_ip'])?long2ip($this->getVar('poster_ip')):"",
			    	'thread_action' => $thread_action,
	                'thread_buttons' => $thread_buttons,
	                'poster' => $poster,
					'hastags' => $hastags,
					'tagbar' => $tagbar
	       	);

        unset($thread_buttons);
        unset($eachposter);
        
        return $post;
    }
示例#7
0
$xoopsTpl->assign("links", art_parseLinks($article_obj->getVar("art_elinks", "E")));
// related external links
$xoopsTpl->assign_by_ref("article", $article_data);
$xoopsTpl->assign_by_ref("categories", $categories);
$xoopsTpl->assign_by_ref("topics", $topics);
$xoopsTpl->assign_by_ref("trackbacks", $trackbacks);
$xoopsTpl->assign_by_ref("sibling", $articles_sibling);
$xoopsTpl->assign("isadmin", $isAdmin);
$xoopsTpl->assign("isauthor", $isAuthor);
$xoopsTpl->assign("do_counter", $xoopsModuleConfig["do_counter"]);
$xoopsTpl->assign("do_trackback", $xoopsModuleConfig["do_trackback"]);
$xoopsTpl->assign("canRate", !empty($xoopsModuleConfig["do_rate"]) && $category_handler->getPermission($category_obj, "rate"));
$xoopsTpl->assign("page", $page);
$xoopsTpl->assign("sponsors", $category_obj->getSponsor());
if (@(include_once XOOPS_ROOT_PATH . "/modules/tag/include/tagbar.php")) {
    $xoopsTpl->assign('tagbar', tagBar($article_obj->getVar("art_keywords", "n")));
}
if ($transferbar = @(include XOOPS_ROOT_PATH . "/Frameworks/transfer/bar.transfer.php")) {
    $xoopsTpl->assign('transfer', $transferbar);
}
// Loading module meta data, NOT THE RIGHT WAY DOING IT
$xoopsTpl->assign("xoops_module_header", $xoopsOption["xoops_module_header"]);
$xoopsTpl->assign("xoops_pagetitle", $xoopsOption["xoops_pagetitle"]);
// for comment and notification
//$_SERVER["REQUEST_URI"] = XOOPS_URL."/modules/".$GLOBALS["artdirname"]."/view.article.php";
$_GET["article"] = $article_obj->getVar("art_id");
// for comment
$category = $category_id;
// The $comment_config["extraParams"]
include XOOPS_ROOT_PATH . "/include/comment_view.php";
include_once "footer.php";
示例#8
0
    redirect_header("javascript:history.go(-1)", 2, _MD_SPARTNER_NOPARTNERSELECTED);
    exit;
}
// Chech the status
if ($partnerObj->status() != _SPARTNER_STATUS_ACTIVE) {
    redirect_header("javascript:history.go(-1)", 2, _NOPERM);
    exit;
}
// Updating the counter
$partnerObj->updateHits_page();
// Populating the smarty variables with informations related to the selected Partner
$partner = $partnerObj->toArray();
$xoopsTpl->assign('partner', $partner);
if (file_exists(XOOPS_ROOT_PATH . "/modules/tag/include/tagbar.php")) {
    include_once XOOPS_ROOT_PATH . "/modules/tag/include/tagbar.php";
    $xoopsTpl->assign('tagbar', tagBar($partnerObj->id(), $catid = 0));
}
// Lanugage constants
$xoopsTpl->assign('lang_contact', _CO_SPARTNER_CONTACT);
$xoopsTpl->assign('lang_email', _CO_SPARTNER_EMAIL);
$xoopsTpl->assign('lang_adress', _CO_SPARTNER_ADRESS);
$xoopsTpl->assign('lang_phone', _CO_SPARTNER_PHONE);
$xoopsTpl->assign('lang_website', _CO_SPARTNER_WEBSITE);
$xoopsTpl->assign('lang_times', _CO_SPARTNER_TIMES);
$xoopsTpl->assign('lang_stats', _CO_SPARTNER_STATS);
$xoopsTpl->assign('lang_partner_informations', _CO_SPARTNER_PARTNER_INFORMATIONS);
$xoopsTpl->assign('lang_page_been_seen', _CO_SPARTNER_PAGE_BEEN_SEEN);
$xoopsTpl->assign('lang_url_been_visited', _CO_SPARTNER_URL_BEEN_VISITED);
$xoopsTpl->assign('backtoindex', $xoopsModuleConfig['backtoindex']);
$xoopsTpl->assign('lang_backtoindex', _MD_SPARTNER_BACKTOINDEX);
$xoopsTpl->assign('modulepath', SMARTPARTNER_URL);
示例#9
0
        $xoopsOption['template_main'] = "vidshop_index.html";
        include XOOPS_ROOT_PATH . '/header.php';
        $criteria = new Criteria('weight', '0', '>');
        $criteria->setOrder('weight');
        $categories = $videoCatHandler->getObjects($criteria, true);
        if (is_array($categories)) {
            foreach ($categories as $key => $object) {
                $xoopsTpl->append('categories', $object->getValues());
            }
        }
        $criteria = new Criteria('uid', '0', '>');
        $criteria->setStart(rand(0, $videoHandler->getCount($criteria) - 1));
        $criteria->setLimit(1);
        $videos = $videoHandler->getObjects($criteria);
        if (is_array($videos) && is_object($videos[0])) {
            $video = array();
            $video = $videos[0]->getValues();
            $video['description'] = $myts->displayTarea($video['description'], 1, 1, 1, 1, 1);
            $xoopsTpl->assign('video', $video);
            include_once XOOPS_ROOT_PATH . "/modules/tag/include/tagbar.php";
            $xoopsTpl->assign('tagbar', tagBar($videos[0]->getVar('id'), $videos[0]->getVar('cid')));
            $_GET['id'] = $videos[0]->getVar('id');
            include_once XOOPS_ROOT_PATH . "/include/comment_view.php";
        }
        include XOOPS_ROOT_PATH . '/footer.php';
        break;
}
// Maintenance
$fromtime = time() - 60 * 60 * 24 * $xoConfigs['daysonpayment'];
$sql[0] = "DELETE FROM " . $GLOBALS['xoopsDB']->prefix('vidshop_video_downloads') . " WHERE `created` < {$fromtime}";
@$GLOBALS['xoopsDB']->queryF($sql[0]);