|
@@ 55-72 (lines=18) @@
|
| 52 |
|
echo '<div><b>' . _AM_XOOPSTUBE_MOD_MODPOSTER . '</b> ' . $submittername . '</div>'; |
| 53 |
|
$not_allowed = array('lid', 'submitter', 'requestid', 'modifysubmitter'); |
| 54 |
|
$sform = new XoopsThemeForm(_AM_XOOPSTUBE_MOD_ORIGINAL, 'storyform', 'index.php'); |
| 55 |
|
foreach ($orig_array as $key => $content) { |
| 56 |
|
if (in_array($key, $not_allowed)) { |
| 57 |
|
continue; |
| 58 |
|
} |
| 59 |
|
$lang_def = constant('_AM_XOOPSTUBE_MOD_' . strtoupper($key)); |
| 60 |
|
|
| 61 |
|
if ($key == 'cid') { |
| 62 |
|
$sql = 'SELECT title FROM ' . $xoopsDB->prefix('xoopstube_cat') . ' WHERE cid=' . $content; |
| 63 |
|
$row = $xoopsDB->fetchArray($xoopsDB->query($sql)); |
| 64 |
|
$content = $row['title']; |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
if ($key == 'vidsource') { |
| 68 |
|
include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/video.php'; |
| 69 |
|
$content = xtubeReturnSource($content); |
| 70 |
|
} |
| 71 |
|
$sform->addElement(new XoopsFormLabel($lang_def, $content)); |
| 72 |
|
} |
| 73 |
|
$sform->display(); |
| 74 |
|
|
| 75 |
|
$orig_user = new XoopsUser($mod_array['modifysubmitter']); |
|
@@ 81-98 (lines=18) @@
|
| 78 |
|
|
| 79 |
|
echo '<div><b>' . _AM_XOOPSTUBE_MOD_MODIFYSUBMITTER . '</b> ' . $submittername . '</div>'; |
| 80 |
|
$sform = new XoopsThemeForm(_AM_XOOPSTUBE_MOD_PROPOSED, 'storyform', 'modifications.php'); |
| 81 |
|
foreach ($mod_array as $key => $content) { |
| 82 |
|
if (in_array($key, $not_allowed)) { |
| 83 |
|
continue; |
| 84 |
|
} |
| 85 |
|
$lang_def = constant('_AM_XOOPSTUBE_MOD_' . strtoupper($key)); |
| 86 |
|
|
| 87 |
|
if ($key == 'cid') { |
| 88 |
|
$sql = 'SELECT title FROM ' . $xoopsDB->prefix('xoopstube_cat') . ' WHERE cid=' . $content; |
| 89 |
|
$row = $xoopsDB->fetchArray($xoopsDB->query($sql)); |
| 90 |
|
$content = $row['title']; |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
if ($key == 'vidsource') { |
| 94 |
|
include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/video.php'; |
| 95 |
|
$content = xtubeReturnSource($content); |
| 96 |
|
} |
| 97 |
|
$sform->addElement(new XoopsFormLabel($lang_def, $content)); |
| 98 |
|
} |
| 99 |
|
$button_tray = new XoopsFormElementTray('', ''); |
| 100 |
|
$button_tray->addElement(new XoopsFormHidden('requestid', $requestid)); |
| 101 |
|
$button_tray->addElement(new XoopsFormHidden('lid', $mod_array['requestid'])); |