$ret = plugin('upload', $id, $va); break; case "upimg": if ($id) { write_file('users/' . ses('qb') . '/' . $va, base64_decode($id)); } break; //meta::new //meta::new case "metall": req('meta'); $ret = meta_all($id); break; case "editag": req('meta'); $ret = edit_tags($id, $va, $opt); break; case "addtag": req('meta'); $ret = addtag($id, $va, $opt, $optb); break; case "deltag": req('meta'); $ret = deltag($id, $va, $opt, $optb); break; case "slctag": req('meta'); $ret = slctag($id, $va, $opt); break; case "savtag": req('meta');
for ($i = 0; $i <= 24; $i++) { echo "<option" . (isset($news_end['hours']) && $news_end['hours'] == $i ? " selected='selected'" : "") . ">{$i}</option>\n"; } echo "</select> : <select name='news_end[minutes]' class='textbox'>\n"; for ($i = 0; $i <= 60; $i++) { echo "<option" . (isset($news_end['minutes']) && $news_end['minutes'] == $i ? " selected='selected'" : "") . ">{$i}</option>\n"; } echo "</select> : 00 " . $locale['429'] . "</td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='tbl'>" . $locale['430'] . "</td>\n"; echo "<td class='tbl'><select name='news_visibility' class='textbox'>\n" . $visibility_opts . "</select></td>\n"; echo "</tr>\n"; if ($settings['enable_tags']) { if (isset($_GET['action']) && $_GET['action'] == "edit" && (isset($_POST['news_id']) && isnum($_POST['news_id']) || isset($_GET['news_id']) && isnum($_GET['news_id']))) { $id = isset($_POST['news_id']) ? $_POST['news_id'] : $_GET['news_id']; echo edit_tags($id, "N"); // Pimped: tag } else { echo add_tags("N"); // Pimped: tag } } echo "<tr>\n"; echo "<td width='100' class='tbl'>" . $locale['441'] . "</td>\n"; // meta echo "<td class='tbl'><input type='text' name='news_keywords' value='" . $news_keywords . "' class='textbox' style='width:250px;' /></td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='tbl'></td><td class='tbl'>\n"; echo "<label><input type='checkbox' name='news_draft' value='yes'" . $news_draft . " /> " . $locale['431'] . "</label><br />\n"; echo "<label><input type='checkbox' name='news_sticky' value='yes'" . $news_sticky . " /> " . $locale['432'] . "</label><br />\n"; if (!isset($_COOKIE['news_wysiwyg_editor']) || !$_COOKIE['news_wysiwyg_editor'] || !$settings['wysiwyg_enabled']) {
echo " " . $locale['423'] . "<select name='page_access' class='textbox' style='width:150px;'>\n" . $access_opts . "</select></td>\n"; echo "</tr>\n<tr>\n"; echo "<td valign='top' width='100' class='tbl'>" . $locale['424'] . "</td>\n"; echo "<td width='80%' class='tbl'><textarea name='page_content' cols='100' rows='25' class='textbox' style='width:98%'>" . $page_content . "</textarea></td>\n"; echo "</tr>\n<tr>\n"; if (!isset($_COOKIE['custompages_wysiwyg_editor']) || !$_COOKIE['custompages_wysiwyg_editor'] || !$settings['wysiwyg_enabled']) { echo "<td class='tbl'></td><td class='tbl'>\n"; echo "<input type='button' value='<?php?>' class='button' style='width:60px;' onclick=\"addText('page_content', '<?php\\n', '\\n?>');\" />\n"; echo "<input type='button' value='<p>' class='button' style='width:35px;' onclick=\"addText('page_content', '<p>', '</p>');\" />\n"; echo "<input type='button' value='<br />' class='button' style='width:40px;' onclick=\"insertText('page_content', '<br />');\" />\n"; echo display_html("inputform", "page_content", true) . "</td>\n"; echo "</tr>\n"; } if ($settings['enable_tags']) { if ($request_edit && $request_page_id) { echo edit_tags($request_page_id, "C"); // Pimped: tag } else { echo add_tags("C"); // Pimped: tag } } echo "<tr>\n"; echo "<td width='100' class='tbl'>" . $locale['431'] . "</td>\n"; // meta echo "<td class='tbl'><input type='text' name='page_keywords' value='" . $page_keywords . "' class='textbox' style='width:250px;' /></td>\n"; echo "</tr>\n<tr>\n"; if (!check_admin_pass(isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : "")) { echo "<td class='tbl'>" . $locale['425'] . "</td>\n"; echo "<td class='tbl'><input type='password' name='admin_password' value='" . (isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : "") . "' class='textbox' style='width:150px;' /></td>\n"; echo "</tr>\n<tr>\n";
function meta_all($id) { $r['tag'] = 'tag'; $ica = explode(' ', prmb(18)); $ico = explode(' ', prmb(19)); $r += array_combine($ica, $ico); foreach ($r as $cat => $ico) { $ret .= edit_tags($id, $cat, $ico); } return $ret; }
echo "<td valign='top' width='145' class='tbl2'>" . $locale['461'] . "</td>\n"; echo "<td class='tbl1'><textarea name='message' cols='60' rows='15' class='textbox' style='width:98%'>{$message}</textarea></td>\n"; echo "</tr>\n<tr>\n"; echo "<td width='145' class='tbl2'> </td>\n"; echo "<td class='tbl1'>" . display_bbcodes("99%", "message") . "</td>\n"; echo "</tr>\n<tr>\n"; echo "<td valign='top' width='145' class='tbl2'>" . $locale['463'] . "</td>\n"; echo "<td class='tbl1'>\n"; echo "<label><input type='checkbox' name='disable_smileys' value='1'" . $disable_smileys_check . " /> " . $locale['482'] . "</label><br />\n"; if (iSUPERADMIN) { echo "<label><input type='checkbox' name='edit_hide' value='1'" . $edit_hide_check . " /> " . $locale['487'] . "</label><br />\n"; } echo "<label><input type='checkbox' name='delete' value='1'" . $del_check . " /> " . $locale['484'] . "</label>\n"; echo "</td>\n</tr>\n"; if ($settings['enable_tags'] && (iMOD || iMEMBER && $tdata['thread_author'] == $userdata['user_id'])) { echo edit_tags((int) $_GET['thread_id'], "F", "tbl2"); // Pimped: tag } if ($fdata['forum_attach'] && checkgroup($fdata['forum_attach'])) { add_to_head("<script src='" . INCLUDES_JS . "multiupload.js' type='text/javascript'></script>"); // Pimped: Multi-Upload echo "<tr>\n<td valign='top' width='145' class='tbl2'>" . $locale['464'] . "</td>\n<td class='tbl1'>\n"; $result = dbquery("SELECT attach_id, attach_name FROM " . DB_FORUM_ATTACHMENTS . " WHERE post_id='" . $_GET['post_id'] . "'"); $count_atts = 0; if (dbrows($result)) { while ($adata = dbarray($result)) { if (file_exists(FORUM_ATT . $adata['attach_name'])) { echo "<label><input type='checkbox' name='delete_attach[]' value='" . $adata['attach_id'] . "' /> " . $locale['485'] . "</label>\n"; echo "<a href='" . FORUM_ATT . $adata['attach_name'] . "'>" . $adata['attach_name'] . "</a> [" . parsebytesize(filesize(FORUM_ATT . $adata['attach_name'])) . "]<br />\n"; } else { echo "<label><input type='checkbox' name='delete_attach[]' value='" . $adata['attach_id'] . "' /> " . $locale['485'] . "</label>\n";
echo display_html("inputform", "body", true, true, true, IMAGES_A); echo "</td>\n</tr>\n"; } echo "<tr>\n<td valign='top' width='100' class='tbl'>" . $locale['425'] . "</td>\n"; echo "<td class='tbl'><textarea name='body2' cols='95' rows='10' class='textbox' style='width:98%'>" . $body2 . "</textarea></td>\n"; echo "</tr>\n"; if (!isset($_COOKIE['articles_wysiwyg_editor']) || !$_COOKIE['articles_wysiwyg_editor'] || !$settings['wysiwyg_enabled']) { echo "<tr>\n<td class='tbl'></td><td class='tbl'>\n"; echo "<input type='button' value='" . $locale['432'] . "' class='button' style='width:80px;' onclick=\"insertText('body2', '<--PAGEBREAK-->');\" />\n"; echo display_html("inputform", "body2", true, true, true, IMAGES_A); echo "</td>\n</tr>\n"; } if ($settings['enable_tags']) { if (isset($_GET['action']) && $_GET['action'] == "edit" && (isset($_POST['article_id']) && isnum($_POST['article_id']) || isset($_GET['article_id']) && isnum($_GET['article_id']))) { $id = isset($_POST['article_id']) ? $_POST['article_id'] : $_GET['article_id']; echo edit_tags($id, "A"); // Pimped: tag } else { echo add_tags("A"); // Pimped: tag } } echo "<tr>\n"; echo "<td width='100' class='tbl'>" . $locale['435'] . "</td>\n"; // meta echo "<td class='tbl'><input type='text' name='article_keywords' value='" . $article_keywords . "' class='textbox' style='width:250px;' /></td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='tbl'></td><td class='tbl'>\n"; echo "<label><input type='checkbox' name='article_draft' value='yes'" . $draft . " /> " . $locale['426'] . "</label><br />\n"; if (!isset($_COOKIE['articles_wysiwyg_editor']) || !$_COOKIE['articles_wysiwyg_editor'] || !$settings['wysiwyg_enabled']) { echo "<label><input type='checkbox' name='line_breaks' value='yes'" . $breaks . " /> " . $locale['427'] . "</label><br />\n";