@@ 75-78 (lines=4) @@ | ||
72 | $sql = 'INSERT INTO ' . $GLOBALS['xoopsDB']->prefix('xoopstube_videos') |
|
73 | . ' (lid, cid, title, vidid, submitter, publisher, status, date, hits, rating, votes, comments, vidsource, published, expired, offline, description, ipaddress, notifypub, vidrating, time, keywords, item_tag, picurl) '; |
|
74 | $sql .= " VALUES ('', $cid, '$title', '$vidid', '$submitter', '$publisher', '$status', '$date', 0, 0, 0, 0, '$vidsource', '$publishdate', 0, '$offline', '$descriptionb', '$ipaddress', '$notifypub', '$vidrating', '$time', '$keywords', '$item_tag', '$picurl')"; |
|
75 | if (!$result = $GLOBALS['xoopsDB']->query($sql)) { |
|
76 | $_error = $GLOBALS['xoopsDB']->error() . ' : ' . $GLOBALS['xoopsDB']->errno(); |
|
77 | XoopsErrorHandler_HandleError(E_USER_WARNING, $_error, __FILE__, __LINE__); |
|
78 | } |
|
79 | $newid = $GLOBALS['xoopsDB']->getInsertId(); |
|
80 | ||
81 | // Add item_tag to Tag-module |
|
@@ 121-124 (lines=4) @@ | ||
118 | $sql = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix('xoopstube_videos') |
|
119 | . " SET cid=$cid, title='$title', vidid='$vidid', publisher='$publisher', updated='$updated', offline='$offline', description='$descriptionb', ipaddress='$ipaddress', notifypub='$notifypub', vidrating='$vidrating', time='$time', keywords='$keywords', item_tag='$item_tag', picurl='$picurl' WHERE lid =" |
|
120 | . $lid; |
|
121 | if (!$result = $GLOBALS['xoopsDB']->query($sql)) { |
|
122 | $_error = $GLOBALS['xoopsDB']->error() . ' : ' . $GLOBALS['xoopsDB']->errno(); |
|
123 | XoopsErrorHandler_HandleError(E_USER_WARNING, $_error, __FILE__, __LINE__); |
|
124 | } |
|
125 | ||
126 | $notificationHandler = xoops_getHandler('notification'); |
|
127 | $tags = array(); |
|
@@ 149-152 (lines=4) @@ | ||
146 | $sql = 'INSERT INTO ' . $GLOBALS['xoopsDB']->prefix('xoopstube_mod') |
|
147 | . ' (requestid, lid, cid, title, vidid, publisher, vidsource, description, modifysubmitter, requestdate, time, keywords, item_tag, picurl)'; |
|
148 | $sql .= " VALUES ('', $lid, $cid, '$title', '$vidid', '$publisher', '$vidsource', '$descriptionb', '$modifysubmitter', '$requestdate', '$time', '$keywords', '$item_tag', '$picurl')"; |
|
149 | if (!$result = $GLOBALS['xoopsDB']->query($sql)) { |
|
150 | $_error = $GLOBALS['xoopsDB']->error() . ' : ' . $GLOBALS['xoopsDB']->errno(); |
|
151 | XoopsErrorHandler_HandleError(E_USER_WARNING, $_error, __FILE__, __LINE__); |
|
152 | } |
|
153 | } else { |
|
154 | redirect_header('index.php', 2, _MD_XOOPSTUBE_MODIFYNOTALLOWED); |
|
155 | } |