$result = $mysqli->query($update); if ($result) { $mysqli->close(); } echo "<h2>{$loc_edt_com}</h2>"; echo "{$loc_done}. <a href='{$protocol}://" . $_SERVER['HTTP_HOST'] . "/index.php'>{$loc_return}</a>.</div>"; echo "<meta http-equiv='refresh' content='0; {$protocol}://" . $_SERVER['HTTP_HOST'] . "/index.php' />"; } else { $sql = "SELECT id, message FROM {$blogc} WHERE id = " . $aid; $stmt = $mysqli->prepare($sql); $stmt->execute(); $stmt->bind_result($cid, $cmsg); while ($stmt->fetch()) { echo "<script type='text/javascript' src='module/codebutton.js'></script>"; echo "<h2>{$loc_edt_com}</h2>"; echo "<a href='{$protocol}://" . $_SERVER['HTTP_HOST'] . "/index.php'>{$loc_return}</a><br /><br />"; echo "<form action='{$protocol}://" . $_SERVER['HTTP_HOST'] . "/index.php?mode=commentedit&id={$aid}"; if (!empty($lc)) { echo "&lang={$lc}"; } echo "' method='post'>\n<div id='BlogBody'>"; include "module/textbuttons.php"; echo "<textarea name='Content' id='message' rows='20' cols='160' wrap='hard'>" . strbr($cmsg) . "</textarea><br />\n<input name='Submit' type='submit' value='{$loc_edit}'></div>\n</form><br /><br />"; } $stmt->close(); $mysqli->close(); } break; } } }
while ($stmt->fetch()) { echo "<script type='text/javascript' src='module/codebutton.js'></script>"; echo "<h2>{$loc_edt_post}</h2>"; echo "<a href='{$protocol}://" . $_SERVER['HTTP_HOST'] . "/index.php'>{$loc_return}</a><br /><br />"; echo "<form action='{$protocol}://" . $_SERVER['HTTP_HOST'] . "/index.php?mode=postedit&id={$aid}' method='post'>\n\t<input type='text' name='Name' value='" . $btitle . "'><br />\n\t<select name='Category'>"; while ($catty->fetch()) { echo "<option value='{$cid}'"; if ($cid == $bcid) { echo " selected='selected'"; } echo ">{$ctit}</option>"; } echo "</select>\n<br />\n<div id='BlogData'>" . $uuname . " | " . date($dateF, $bdate) . "</div>\n<div id='BlogBody'>"; include "module/textbuttons.php"; include "module/postuploader.php"; echo "<br />{$loc_post_text}<br />\n<textarea name='Content' id='message' rows='40' cols='160' wrap='virtual'>" . strbr($bbody) . "</textarea><br />"; echo '<div class="spoiler" style="display: inline;"><button onclick="var s=this.parentNode.getElementsByClassName(\'emo\')[0].style;s.display=(s.display==\'none\')?\'\':\'none\';return false;" style="margin-top: 5px;">'; echo "{$loc_advanced}"; echo '</button><br /><div class="emo" style="display:none;">'; echo "Manual enters? "; echo "<input type='checkbox' value='0' name='breakline' /><br />"; echo "{$loc_thumbnail}: "; echo "<input type='text' name='thumbnail' value='{$bthumb}' /><br />"; echo "{$loc_custom_scripts}:<br />\n<textarea name='javascript' id='javascript' rows=10 cols=80 wrap='virtual'>{$bjavasc}</textarea><br />\n{$loc_custom_style}:<br />\n<textarea name='css' id='css' rows=10 cols=80 wrap='virtual'>{$bcss}</textarea><br />"; echo '</div></div><br />'; echo "<select name='Privacy'>\n <option value='0'"; if ($bpriv == 0) { echo " selected='selected'"; } echo ">{$loc_public}</option>\n <option value='1'"; if ($bpriv == 1) {
dateFormat: "dd-mm-yy" }); }); </script> <input type="text" name="birthday" id="birthday" value="<?php echo date('d-m-Y', $ubirth); ?> " /> </td> <tr> <td class="b n1" align="center" width=120><?php echo $loc_bio; ?> :</td> <td class="b n2"><textarea wrap="virtual" name="bio" id='message' rows=20 cols=80><?php echo strbr($ubio); ?> </textarea></td> <tr> <td class="b n1" align="center" width=120><?php echo $loc_avatar; ?> :</td> <td class="b n2"><input type="text" name="avatar" value="<?php echo $uava; ?> " /></td> <tr> <td class="b n1" align="center" width=120><?php echo $loc_custom_name_colour; ?>