Xataface CKeditor Module 0.3
CKeditor Widget for Xataface
lib/ckeditor/_samples/sample_posteddata.php
Go to the documentation of this file.
00001 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
00002 <?php
00003 /*
00004 Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
00005 For licensing, see LICENSE.html or http://ckeditor.com/license
00006 */
00007 ?>
00008 <html xmlns="http://www.w3.org/1999/xhtml">
00009 <head>
00010         <title>Sample - CKEditor</title>
00011         <meta http-equiv="content-type" content="text/html; charset=utf-8" />
00012         <link type="text/css" rel="stylesheet" href="sample.css" />
00013 </head>
00014 <body>
00015         <h1>
00016                 CKEditor - Posted Data
00017         </h1>
00018         <table border="1" cellspacing="0" id="outputSample">
00019                 <colgroup><col width="100" /></colgroup>
00020                 <thead>
00021                         <tr>
00022                                 <th>Field&nbsp;Name</th>
00023                                 <th>Value</th>
00024                         </tr>
00025                 </thead>
00026 <?php
00027 
00028 if ( isset( $_POST ) )
00029         $postArray = &$_POST ;                  // 4.1.0 or later, use $_POST
00030 else
00031         $postArray = &$HTTP_POST_VARS ; // prior to 4.1.0, use HTTP_POST_VARS
00032 
00033 foreach ( $postArray as $sForm => $value )
00034 {
00035         if ( get_magic_quotes_gpc() )
00036                 $postedValue = htmlspecialchars( stripslashes( $value ) ) ;
00037         else
00038                 $postedValue = htmlspecialchars( $value ) ;
00039 
00040 ?>
00041                 <tr>
00042                         <th style="vertical-align: top"><?php echo $sForm?></th>
00043                         <td><pre><?php echo $postedValue?></pre></td>
00044                 </tr>
00045         <?php
00046 }
00047 ?>
00048         </table>
00049         <div id="footer">
00050                 <hr />
00051                 <p>
00052                         CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
00053                 </p>
00054                 <p id="copy">
00055                         Copyright &copy; 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
00056                 </p>
00057         </div>
00058 </body>
00059 </html>
 All Data Structures Files Functions Variables