forked from XoopsModules25x/xoopstube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomment_new.php
30 lines (27 loc) · 1.08 KB
/
comment_new.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php declare(strict_types=1);
/**
* Module: XoopsTube
*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
*
*
* @category Module
* @author XOOPS Development Team
* @copyright 2001-2016 XOOPS Project (https://xoops.org)
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html)
* @link https://xoops.org/
* @since 1.0.6
*/
use Xmf\Request;
require_once \dirname(__DIR__, 2) . '/mainfile.php';
$com_itemid = Request::getInt('com_itemid', 0, 'GET');
if ($com_itemid > 0) {
// Get file title
$sql = 'SELECT title FROM ' . $GLOBALS['xoopsDB']->prefix('xoopstube_videos') . ' WHERE lid=' . $com_itemid;
$result = $GLOBALS['xoopsDB']->query($sql);
$row = $GLOBALS['xoopsDB']->fetchArray($result);
$com_replytitle = $row['title'];
require XOOPS_ROOT_PATH . '/include/comment_new.php';
}