Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- include ('config/mysql_conf.inc.php');
- if (isset($_POST["eintragen"])) {
- $username = "System";
- $time = time();
- $message = mysql_escape_string(htmlspecialchars($_POST['message']));
- $ipAddress = "::ffff:88f3:1dc";
- $userID = 6;
- $shout = "INSERT INTO wcf2_shoutbox_entry(ipAddress, userID, time, username, message) VALUES ('$ipAddress', '$userID', '$time', '$username', '$shoutbox')";
- $Result1 = mysql_query($shout, $con) or die(mysql_error());
- } else {
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="robots" content="noindex, nofollow">
- <title>News Eintrag Shoutbox</title>
- <script src="http://cdn.ckeditor.com/4.5.7/standard-all/ckeditor.js"></script>
- </head>
- <body>
- <form action="" method="post">
- <textarea id="editor1" name="message" cols="50" rows="10"></textarea><br />
- <script>
- // Replace the <textarea id="editor1"> with an CKEditor
- // instance, using the "bbcode" plugin, customizing some of the
- // editor configuration options to fit BBCode environment.
- CKEDITOR.replace( 'editor1', {
- height: 280,
- // Add plugins providing functionality popular in BBCode environment.
- extraPlugins: 'bbcode,smiley,font,colorbutton',
- // Remove unused plugins.
- removePlugins: 'filebrowser,format,horizontalrule,pastetext,pastefromword,scayt,showborders,stylescombo,table,tabletools,wsc',
- // Remove unused buttons.
- removeButtons: 'Anchor,BGColor,Font,Strike,Subscript,Superscript',
- // Width and height are not supported in the BBCode format, so object resizing is disabled.
- disableObjectResizing: true,
- // Define font sizes in percent values.
- fontSize_sizes: "30/30%;50/50%;100/100%;120/120%;150/150%;200/200%;300/300%",
- // Strip CKEditor smileys to those commonly used in BBCode.
- smiley_images: [
- 'regular_smile.png', 'sad_smile.png', 'wink_smile.png', 'teeth_smile.png', 'tongue_smile.png',
- 'embarrassed_smile.png', 'omg_smile.png', 'whatchutalkingabout_smile.png', 'angel_smile.png',
- 'shades_smile.png', 'cry_smile.png', 'kiss.png'
- ],
- smiley_descriptions: [
- 'smiley', 'sad', 'wink', 'laugh', 'cheeky', 'blush', 'surprise',
- 'indecision', 'angel', 'cool', 'crying', 'kiss'
- ]
- });
- </script>
- <input type="submit" name="eintragen" class="senden"/></form>
- </body>
- </html>
- <?
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement