|
@@ 82-85 (lines=4) @@
|
| 79 |
|
) |
| 80 |
|
. ' (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) '; |
| 81 |
|
$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')"; |
| 82 |
|
if (!$result = $xoopsDB->query($sql)) { |
| 83 |
|
$_error = $xoopsDB->error() . ' : ' . $xoopsDB->errno(); |
| 84 |
|
XoopsErrorHandler_HandleError(E_USER_WARNING, $_error, __FILE__, __LINE__); |
| 85 |
|
} |
| 86 |
|
$newid = mysql_insert_id(); |
| 87 |
|
|
| 88 |
|
// Add item_tag to Tag-module |
|
@@ 135-138 (lines=4) @@
|
| 132 |
|
$updated = time(); |
| 133 |
|
$sql = "UPDATE " . $xoopsDB->prefix('xoopstube_videos') . " 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 =" |
| 134 |
|
. $lid; |
| 135 |
|
if (!$result = $xoopsDB->query($sql)) { |
| 136 |
|
$_error = $xoopsDB->error() . " : " . $xoopsDB->errno(); |
| 137 |
|
XoopsErrorHandler_HandleError(E_USER_WARNING, $_error, __FILE__, __LINE__); |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
$notification_handler = & xoops_gethandler('notification'); |
| 141 |
|
$tags = array(); |
|
@@ 171-174 (lines=4) @@
|
| 168 |
|
'xoopstube_mod' |
| 169 |
|
) . ' (requestid, lid, cid, title, vidid, publisher, vidsource, description, modifysubmitter, requestdate, time, keywords, item_tag, picurl)'; |
| 170 |
|
$sql .= " VALUES ('', $lid, $cid, '$title', '$vidid', '$publisher', '$vidsource', '$descriptionb', '$modifysubmitter', '$requestdate', '$time', '$keywords', '$item_tag', '$picurl')"; |
| 171 |
|
if (!$result = $xoopsDB->query($sql)) { |
| 172 |
|
$_error = $xoopsDB->error() . " : " . $xoopsDB->errno(); |
| 173 |
|
XoopsErrorHandler_HandleError(E_USER_WARNING, $_error, __FILE__, __LINE__); |
| 174 |
|
} |
| 175 |
|
} else { |
| 176 |
|
redirect_header('index.php', 2, _MD_XOOPSTUBE_MODIFYNOTALLOWED); |
| 177 |
|
} |