Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.29 KB | None | 0 0
  1.  
  2. <?
  3. include ('config/mysql_conf.inc.php');
  4. if (isset($_POST["eintragen"])) {
  5.  
  6. $username = "System";
  7. $time =  time();
  8. $message = mysql_escape_string(htmlspecialchars($_POST['message']));
  9. $ipAddress = "::ffff:88f3:1dc";
  10. $userID = 6;
  11. $shout = "INSERT INTO wcf2_shoutbox_entry(ipAddress, userID, time, username, message) VALUES ('$ipAddress', '$userID', '$time', '$username', '$shoutbox')";
  12. $Result1 = mysql_query($shout, $con) or die(mysql_error());
  13.  
  14. } else {
  15.    ?>
  16. <!DOCTYPE html>
  17. <html>
  18.  
  19. <head>
  20.     <meta charset="utf-8">
  21.     <meta name="robots" content="noindex, nofollow">
  22.     <title>News Eintrag Shoutbox</title>
  23.     <script src="http://cdn.ckeditor.com/4.5.7/standard-all/ckeditor.js"></script>
  24. </head>
  25.  
  26. <body>
  27. <form action="" method="post">
  28.     <textarea  id="editor1" name="message" cols="50" rows="10"></textarea><br />
  29.    <script>
  30.         // Replace the <textarea id="editor1"> with an CKEditor
  31.         // instance, using the "bbcode" plugin, customizing some of the
  32.         // editor configuration options to fit BBCode environment.
  33.         CKEDITOR.replace( 'editor1', {
  34.             height: 280,
  35.             // Add plugins providing functionality popular in BBCode environment.
  36.             extraPlugins: 'bbcode,smiley,font,colorbutton',
  37.             // Remove unused plugins.
  38.             removePlugins: 'filebrowser,format,horizontalrule,pastetext,pastefromword,scayt,showborders,stylescombo,table,tabletools,wsc',
  39.             // Remove unused buttons.
  40.             removeButtons: 'Anchor,BGColor,Font,Strike,Subscript,Superscript',
  41.             // Width and height are not supported in the BBCode format, so object resizing is disabled.
  42.             disableObjectResizing: true,
  43.             // Define font sizes in percent values.
  44.             fontSize_sizes: "30/30%;50/50%;100/100%;120/120%;150/150%;200/200%;300/300%",
  45.             // Strip CKEditor smileys to those commonly used in BBCode.
  46.             smiley_images: [
  47.                 'regular_smile.png', 'sad_smile.png', 'wink_smile.png', 'teeth_smile.png', 'tongue_smile.png',
  48.                 'embarrassed_smile.png', 'omg_smile.png', 'whatchutalkingabout_smile.png', 'angel_smile.png',
  49.                 'shades_smile.png', 'cry_smile.png', 'kiss.png'
  50.             ],
  51.             smiley_descriptions: [
  52.                 'smiley', 'sad', 'wink', 'laugh', 'cheeky', 'blush', 'surprise',
  53.                 'indecision', 'angel', 'cool', 'crying', 'kiss'
  54.             ]
  55.         });
  56.     </script>
  57.    <input type="submit" name="eintragen" class="senden"/></form>
  58. </body>
  59.  
  60. </html>
  61. <?
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement