public function display_signup_page(Page $page) { global $config; $tac = $config->get_string("login_tac", ""); $tfe = new TextFormattingEvent($tac); send_event($tfe); $tac = $tfe->formatted; $reca = "<tr><td colspan='2'>" . captcha_get_html() . "</td></tr>"; if (empty($tac)) { $html = ""; } else { $html = "<p>{$tac}</p>"; } $html .= "\n\t\t<form action='" . make_link("user_admin/create") . "' method='POST'>\n\t\t\t<table style='width: 300px;'>\n\t\t\t\t<tr><td>Name</td><td><input type='text' name='name'></td></tr>\n\t\t\t\t<tr><td>Password</td><td><input type='password' name='pass1'></td></tr>\n\t\t\t\t<tr><td>Repeat Password</td><td><input type='password' name='pass2'></td></tr>\n\t\t\t\t<tr><td>Email (Optional)</td><td><input type='text' name='email'></td></tr>\n\t\t\t\t{$reca};\n\t\t\t\t<tr><td colspan='2'><input type='Submit' value='Create Account'></td></tr>\n\t\t\t</table>\n\t\t</form>\n\t\t"; $page->set_title("Create Account"); $page->set_heading("Create Account"); $page->disable_left(); $page->add_block(new Block("Signup", $html)); }
public function display_signup_page(Page $page) { global $config; $tac = $config->get_string("login_tac", ""); if ($config->get_bool("login_tac_bbcode")) { $tfe = new TextFormattingEvent($tac); send_event($tfe); $tac = $tfe->formatted; } if (empty($tac)) { $html = ""; } else { $html = '<p>' . $tac . '</p>'; } $h_reca = "<tr><td colspan='2'>" . captcha_get_html() . "</td></tr>"; $html .= ' ' . make_form(make_link("user_admin/create")) . "\n\t\t\t<table class='form'>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr><th>Name</th><td><input type='text' name='name'></td></tr>\n\t\t\t\t\t<tr><th>Password</th><td><input type='password' name='pass1'></td></tr>\n\t\t\t\t\t<tr><th>Repeat Password</th><td><input type='password' name='pass2'></td></tr>\n\t\t\t\t\t<tr><th>Email (Optional)</th><td><input type='text' name='email'></td></tr>\n\t\t\t\t\t{$h_reca}\n\t\t\t\t</tbody>\n\t\t\t\t<tfoot>\n\t\t\t\t\t<tr><td colspan='2'><input type='Submit' value='Create Account'></td></tr>\n\t\t\t\t</tfoot>\n\t\t\t</table>\n\t\t</form>\n\t\t"; $page->set_title("Create Account"); $page->set_heading("Create Account"); $page->add_block(new NavBlock()); $page->add_block(new Block("Signup", $html)); }
/** * @param int $image_id * @return string */ protected function build_postbox($image_id) { global $config; $i_image_id = int_escape($image_id); $hash = CommentList::get_hash(); $h_captcha = $config->get_bool("comment_captcha") ? captcha_get_html() : ""; return ' <div class="comment"> ' . make_form(make_link("comment/add")) . ' <input type="hidden" name="image_id" value="' . $i_image_id . '" /> <input type="hidden" name="hash" value="' . $hash . '" /> <textarea id="comment_on_' . $i_image_id . '" name="comment" rows="5" cols="50"></textarea> ' . $h_captcha . ' <br><input type="submit" value="Post Comment" /> </form> </div> '; }
protected function build_postbox($image_id) { global $config; $i_image_id = int_escape($image_id); $hash = CommentList::get_hash(); $captcha = $config->get_bool("comment_captcha") ? captcha_get_html() : ""; return "\n\t\t\t" . make_form(make_link("comment/add")) . "\n\t\t\t\t<input type='hidden' name='image_id' value='{$i_image_id}' />\n\t\t\t\t<input type='hidden' name='hash' value='{$hash}' />\n\t\t\t\t<textarea name='comment' rows='5' cols='50'></textarea>\n\t\t\t\t{$captcha}\n\t\t\t\t<br><input type='submit' value='Post Comment' />\n\t\t\t</form>\n\t\t"; }