Exemplo n.º 1
0
         } else {
             $notify_checked = "";
         }
     }
 }
 if (isset($_GET['quote']) && isnum($_GET['quote'])) {
     $result = dbquery("SELECT * FROM " . DB_POSTS . "\n\t\t\tINNER JOIN " . DB_USERS . " ON " . DB_POSTS . ".post_author=" . DB_USERS . ".user_id\n\t\t\tWHERE thread_id='" . $_GET['thread_id'] . "' and post_id='" . $_GET['quote'] . "'");
     if (dbrows($result)) {
         $data = dbarray($result);
         $message = "[quote][b]" . $data['user_name'] . $locale['429'] . "[/b]\n" . $data['post_message'] . "[/quote]";
     }
 }
 add_to_title($locale['global_201'] . $locale['403']);
 opentable($locale['403']);
 if (!isset($_POST['previewreply'])) {
     renderPostNav($_GET['action'], $announcementCheck);
 }
 echo "<form name='inputform' method='post' action='" . FUSION_SELF . "?action=reply&amp;forum_id=" . $_GET['forum_id'] . "&amp;thread_id=" . $_GET['thread_id'] . "' enctype='multipart/form-data'>\n";
 echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n";
 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>";
 if ($fb4['spell_check']) {
     echo "<script type='text/javascript' src='http://buttercup.spellingcow.com/spell/scayt'></script>\n\t\t<script type='text/javascript'>\n\t\t<!--\n\t\t\n\t\tvar sc_ayt_params = {\n\t\t  highlight_err_type : 'highlight',\t\t// note that there are commas after the fist 2 entries\n\t\t  highlight_err_color : 'gray',\n\t\t  ayt_default : 'on'\t\t\t\t// notice there's no comma after the last entry\n\t\t} ;\n\t\t\n\t\t//-->\n\t\t</script>";
 }
 echo "</td>\n";
 echo "</tr>\n<tr>\n";
 echo "<td width='145' class='tbl2'>&nbsp;</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";
Exemplo n.º 2
0
     $subject = "";
     $message = "";
     $sticky_thread_check = "";
     $lock_thread_check = "";
     $disable_smileys_check = "";
     $sig_checked = " checked='checked'";
     if ($settings['thread_notify']) {
         $notify_checked = "";
     }
     $poll_title = "";
     $poll_opts = array();
 }
 add_to_title($locale['global_201'] . $locale['401']);
 opentable($locale['401']);
 if (!isset($_POST['previewpost'])) {
     renderPostNav($_GET['action']);
 }
 echo "<form id='inputform' method='post' action='" . FUSION_SELF . "?action=newthread&amp;forum_id=" . $_GET['forum_id'] . "' enctype='multipart/form-data' onsubmit='return checkForm();'>\n";
 echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n";
 echo "<td width='145' class='tbl2'>" . $locale['460'] . "</td>\n";
 echo "<td class='tbl1'><input type='text' name='subject' value='" . $subject . "' class='textbox' maxlength='255' style='width: 250px' /></td>\n";
 echo "</tr>\n<tr>\n";
 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>";
 if ($fb4['spell_check']) {
     echo "<script type='text/javascript' src='http://buttercup.spellingcow.com/spell/scayt'></script>\n\t\t<script type='text/javascript'>\n\t\t<!--\n\t\t\n\t\tvar sc_ayt_params = {\n\t\t  highlight_err_type : 'highlight',\t\t// note that there are commas after the fist 2 entries\n\t\t  highlight_err_color : 'gray',\n\t\t  ayt_default : 'on'\t\t\t\t// notice there's no comma after the last entry\n\t\t} ;\n\t\t\n\t\t//-->\n\t\t</script>";
 }
 echo "</td>\n";
 echo "</tr>\n<tr>\n";
 echo "<td width='145' class='tbl2'>&nbsp;</td>\n";
 echo "<td class='tbl1'>" . display_bbcodes("99%", "message") . "</td>\n";