Upgrade to xinha svn head to fix issues with xinha editors not appearing in Firefox 1.5
This commit is contained in:
23
xinha/examples/ext_example-dest.php
Normal file
23
xinha/examples/ext_example-dest.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Example of Xinha</title>
|
||||
<link rel="stylesheet" href="full_example.css" />
|
||||
</head>
|
||||
</body>
|
||||
<?php
|
||||
if (get_magic_quotes_gpc()) {
|
||||
$_REQUEST = array_map('stripslashes',$_REQUEST);
|
||||
}
|
||||
// or in php.ini
|
||||
//; Magic quotes for incoming GET/POST/Cookie data.
|
||||
//magic_quotes_gpc = Off
|
||||
foreach($_REQUEST as $key=>$value){
|
||||
if(substr($key,0,10) == 'myTextarea') {
|
||||
echo '<h3 style="border-bottom:1px solid black;">'.$key.'(source):</h3><xmp style="border:1px solid black; width: 100%; height: 200px; overflow: auto;">'.$value.'</xmp><br/>';
|
||||
echo '<h3 style="border-bottom:1px solid black;">'.$key.'(preview):</h3>'.$value;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user