ckeditor/samples/old/assets/posteddata.php
changeset 0 44d330dccc59
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ckeditor/samples/old/assets/posteddata.php	Thu Dec 15 18:10:20 2016 +0300
     1.3 @@ -0,0 +1,59 @@
     1.4 +<!DOCTYPE html>
     1.5 +<?php
     1.6 +/*
     1.7 +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
     1.8 +For licensing, see LICENSE.md or http://ckeditor.com/license
     1.9 +*/
    1.10 +?>
    1.11 +<html>
    1.12 +<head>
    1.13 +	<meta charset="utf-8">
    1.14 +	<title>Sample &mdash; CKEditor</title>
    1.15 +	<link rel="stylesheet" href="sample.css">
    1.16 +</head>
    1.17 +<body>
    1.18 +	<h1 class="samples">
    1.19 +		CKEditor &mdash; Posted Data
    1.20 +	</h1>
    1.21 +	<table border="1" cellspacing="0" id="outputSample">
    1.22 +		<colgroup><col width="120"></colgroup>
    1.23 +		<thead>
    1.24 +			<tr>
    1.25 +				<th>Field&nbsp;Name</th>
    1.26 +				<th>Value</th>
    1.27 +			</tr>
    1.28 +		</thead>
    1.29 +<?php
    1.30 +
    1.31 +if (!empty($_POST))
    1.32 +{
    1.33 +	foreach ( $_POST as $key => $value )
    1.34 +	{
    1.35 +		if ( ( !is_string($value) && !is_numeric($value) ) || !is_string($key) )
    1.36 +			continue;
    1.37 +
    1.38 +		if ( get_magic_quotes_gpc() )
    1.39 +			$value = htmlspecialchars( stripslashes((string)$value) );
    1.40 +		else
    1.41 +			$value = htmlspecialchars( (string)$value );
    1.42 +?>
    1.43 +		<tr>
    1.44 +			<th style="vertical-align: top"><?php echo htmlspecialchars( (string)$key ); ?></th>
    1.45 +			<td><pre class="samples"><?php echo $value; ?></pre></td>
    1.46 +		</tr>
    1.47 +	<?php
    1.48 +	}
    1.49 +}
    1.50 +?>
    1.51 +	</table>
    1.52 +	<div id="footer">
    1.53 +		<hr>
    1.54 +		<p>
    1.55 +			CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
    1.56 +		</p>
    1.57 +		<p id="copy">
    1.58 +			Copyright &copy; 2003-2016, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
    1.59 +		</p>
    1.60 +	</div>
    1.61 +</body>
    1.62 +</html>