From cce5e7710295021b41d9aaecc503a60fb99256be Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 4 Oct 2008 10:38:03 +0000 Subject: Initial revision --- forum/utils/editor.php | 154 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) create mode 100644 forum/utils/editor.php (limited to 'forum/utils/editor.php') diff --git a/forum/utils/editor.php b/forum/utils/editor.php new file mode 100644 index 0000000..681b98d --- /dev/null +++ b/forum/utils/editor.php @@ -0,0 +1,154 @@ + +getPost($pid); + if($post || $pid == -1) { + + switch($task) { + case "new": + $title = "Title"; + $message = "Message"; + break; + + case "reply": + $title = "Re: " . $post->title; + $message = ""; + break; + + case "edit": + $title = $post->title; + $message = $post->message; + break; + + case "quote": + $title = "Re: " . $post->title; + $user = $users->getUser($post->user); + $message = "[quote title=" . $user->name . " wrote on " .date("r", $post->date) ."]" . $post->message . "[/quote]"; + break; + + default: + error("No mode supplied!"); + break; + } +?> +
+;-) +;-) +;-) +;-) +B +I +U +[L  ] +[ C ] +[  R] +URL +E-Mail +Image +"Q" +c++ + + + + + + */ ?> +

+ Title: + +

+

+\"\""; +} +?> +

+

+ +

+

+ To make a link, simply type the URL, and the system will + automagically transform it into an anchor (remember the + http:// part).
+ Example: http://www.executionroom.com
+

+

+ To insert an image, simply type the URL to that image, it will + automagically be transformed into an image, with a link to the + original image (again, remember the http:// part).
+ Example: http://www.executionroom.com/gfx/logos/die_logo_bloody.png +

+

+ +

+
+show(); + } else { + error("Message " . $pid . " not found!"); + } +} else { + error("No message supplied!"); +} + +?> -- cgit v1.2.3