The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Teste php
By Guest on 6th October 2017 08:10:13 PM | Syntax: PHP | Views: 5



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1. <?php
  2.  
  3.     require 'app/lib/shoutbox.class.php';
  4.  
  5.     $shoutbox = new Shoutbox();
  6.     $shoutbox->sendContentTypeHeader('text/html');
  7.  
  8. ?><!doctype html>
  9. <html lang="en">
  10.     <head>
  11.         <base href="<?php echo $shoutbox->getBaseURL() ?>" />
  12.         <title>Shoutbox</title>
  13.         <meta charset="<?php echo $shoutbox->getCharset() ?>" />
  14.         <meta name="viewport" content="width=device-width, initial-scale=1" />
  15.         <link rel="shortcut icon" type="image/png" href="media/images/favicon.png" />
  16.         <link rel="stylesheet" type="text/css" media="all" href="media/css/main.css" />
  17.         <link rel="stylesheet" type="text/css" media="all and (max-width: 759px)" href="media/css/mobile.css" />
  18.         <script src="media/js/jquery.js"></script>
  19.         <script src="media/js/jquery.placeholder.js"></script>
  20.         <script src="media/js/jquery.charcounter.js"></script>
  21.         <script src="media/js/shoutbox.js"></script>
  22.     </head>
  23.     <body>
  24.         <div id="wrapper">
  25.             <div id="shoutbox" data-config-refresh-rate="<?php echo $shoutbox->getRefreshRate() ?>" data-config-spam-protection-rate="<?php echo $shoutbox->getSpamProtectionRate() ?>">
  26.                 <h1><img src="media/images/icon-shoutbox.png" alt="Shoutbox" width="32" height="32" /> <?php echo $shoutbox->getHeading() ?></h1>
  27.                 <div id="shoutbox-box-wrapper">
  28.                     <div id="shoutbox-box-login-wrapper">
  29.                         <div id="shoutbox-enter-name">
  30.                             <p>Welcome, please enter your name:</p>
  31.                             <p><input type="text" name="name" id="shoutbox-name" value="" data-prepopulate="<?php echo $shoutbox->getPrepopulateName() ?>" /></p>
  32.                             <p><input type="submit" id="shoutbox-name-submit" value="Login" /></p>
  33.                         </div>
  34.                         <div id="shoutbox-loader"><img src="media/images/loader.gif" alt="Loading" width="32" height="25" /></div>
  35.                     </div>
  36.                 </div>
  37.             </div>
  38.         </div>
  39.     </body>
  40. </html>



  • Recent Pastes