Ticket #2142: 2142.patch
File 2142.patch, 12.2 KB (added by , 16 years ago) |
---|
-
_samples/html/sampleposteddata.php
1 <?php 2 /* 3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net 4 * Copyright (C) 2003-2008 Frederico Caldeira Knabben 5 * 6 * == BEGIN LICENSE == 7 * 8 * Licensed under the terms of any of the following licenses at your 9 * choice: 10 * 11 * - GNU General Public License Version 2 or later (the "GPL") 12 * http://www.gnu.org/licenses/gpl.html 13 * 14 * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") 15 * http://www.gnu.org/licenses/lgpl.html 16 * 17 * - Mozilla Public License Version 1.1 or later (the "MPL") 18 * http://www.mozilla.org/MPL/MPL-1.1.html 19 * 20 * == END LICENSE == 21 * 22 * This page lists the data posted by a form. 23 */ 24 ?> 25 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 26 <html> 27 <head> 28 <title>FCKeditor - Samples - Posted Data</title> 29 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 30 <meta name="robots" content="noindex, nofollow"> 31 <link href="../sample.css" rel="stylesheet" type="text/css" /> 32 </head> 33 <body> 34 <h1>FCKeditor - Samples - Posted Data</h1> 35 This page lists all data posted by the form. 36 <hr> 37 <table width="100%" border="1" cellspacing="0" bordercolor="#999999"> 38 <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999"> 39 <td nowrap>Field Name </td> 40 <td>Value</td> 41 </tr> 42 <?php 43 44 if ( isset( $_POST ) ) 45 $postArray = &$_POST ; // 4.1.0 or later, use $_POST 46 else 47 $postArray = &$HTTP_POST_VARS ; // prior to 4.1.0, use HTTP_POST_VARS 48 49 foreach ( $postArray as $sForm => $value ) 50 { 51 if ( get_magic_quotes_gpc() ) 52 $postedValue = htmlspecialchars( stripslashes( $value ) ) ; 53 else 54 $postedValue = htmlspecialchars( $value ) ; 55 56 ?> 57 <tr> 58 <td valign="top" nowrap><b><?=$sForm?></b></td> 59 <td width="100%" style="white-space:pre"><?=$postedValue?></td> 60 </tr> 61 <?php 62 } 63 ?> 64 </table> 65 </body> 66 </html> -
_samples/html/sample10.html
39 39 <hr /> 40 40 <div id="xToolbar"></div> 41 41 <hr /> 42 <form action="sampleposteddata. asp" method="post" target="_blank">42 <form action="sampleposteddata.php" method="post" target="_blank"> 43 43 Normal text field:<br /> 44 44 <input name="NormaText" value="Plain Text" /> 45 45 <br /> -
_samples/html/sample01.html
37 37 This sample displays a normal HTML form with an FCKeditor with full features enabled. 38 38 </div> 39 39 <hr /> 40 <form action="sampleposteddata. asp" method="post" target="_blank">40 <form action="sampleposteddata.php" method="post" target="_blank"> 41 41 <script type="text/javascript"> 42 42 <!-- 43 43 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample02.html
52 52 It uses the "ReplaceTextarea" command to create the editor. 53 53 </div> 54 54 <hr /> 55 <form action="sampleposteddata. asp" method="post" target="_blank">55 <form action="sampleposteddata.php" method="post" target="_blank"> 56 56 <div> 57 57 <textarea name="FCKeditor1" rows="10" cols="80" style="width: 100%; height: 200px"><p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p></textarea> 58 58 </div> -
_samples/html/sample12.html
76 76 </tr> 77 77 </table> 78 78 <br /> 79 <form action="sampleposteddata. asp" method="post" target="_blank">79 <form action="sampleposteddata.php" method="post" target="_blank"> 80 80 <script type="text/javascript"> 81 81 <!-- 82 82 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample03.html
105 105 </tr> 106 106 </table> 107 107 <br /> 108 <form action="sampleposteddata. asp" method="post" target="_blank">108 <form action="sampleposteddata.php" method="post" target="_blank"> 109 109 <script type="text/javascript"> 110 110 <!-- 111 111 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample13.html
125 125 operations so it will work even if the internal implementation changes. 126 126 </div> 127 127 <hr /> 128 <form action="sampleposteddata. asp" method="post" target="_blank" onsubmit="PrepareSave();">128 <form action="sampleposteddata.php" method="post" target="_blank" onsubmit="PrepareSave();"> 129 129 <div id="Textarea"> 130 130 <input type="button" value="Switch to FCKeditor" onclick="Toggle()" /> 131 131 <br /> -
_samples/html/sample04.html
65 65 </tr> 66 66 </table> 67 67 <br /> 68 <form action="sampleposteddata. asp" method="post" target="_blank">68 <form action="sampleposteddata.php" method="post" target="_blank"> 69 69 <script type="text/javascript"> 70 70 <!-- 71 71 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample05.html
71 71 </tr> 72 72 </table> 73 73 <br /> 74 <form action="sampleposteddata. asp" method="post" target="_blank">74 <form action="sampleposteddata.php" method="post" target="_blank"> 75 75 <script type="text/javascript"> 76 76 <!-- 77 77 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample14.html
39 39 or the "style" attribute, are avoided. 40 40 </div> 41 41 <hr /> 42 <form action="sampleposteddata. asp" method="post" target="_blank">42 <form action="sampleposteddata.php" method="post" target="_blank"> 43 43 <script type="text/javascript"> 44 44 <!-- 45 45 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample06.html
45 45 </ul> 46 46 </div> 47 47 <hr /> 48 <form action="sampleposteddata. asp" method="post" target="_blank">48 <form action="sampleposteddata.php" method="post" target="_blank"> 49 49 <script type="text/javascript"> 50 50 <!-- 51 51 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample07.html
37 37 to </HTML>). 38 38 </div> 39 39 <hr /> 40 <form action="sampleposteddata. asp" method="post" target="_blank">40 <form action="sampleposteddata.php" method="post" target="_blank"> 41 41 <script type="text/javascript"> 42 42 <!-- 43 43 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample08.html
148 148 at runtime. 149 149 </div> 150 150 <hr /> 151 <form action="sampleposteddata. asp" method="post" target="_blank">151 <form action="sampleposteddata.php" method="post" target="_blank"> 152 152 <script type="text/javascript"> 153 153 <!-- 154 154 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample09.html
57 57 in the JavaScript API. 58 58 </div> 59 59 <hr /> 60 <form action="sampleposteddata. asp" method="post" target="_blank">60 <form action="sampleposteddata.php" method="post" target="_blank"> 61 61 Normal text field:<br /> 62 62 <input name="NormaText" value="Plain Text" /> 63 63 <br /> -
_samples/html/sample11_frame.html
29 29 <script type="text/javascript" src="../../fckeditor.js"></script> 30 30 </head> 31 31 <body> 32 <form action="sampleposteddata. asp" method="post" target="_blank">32 <form action="sampleposteddata.php" method="post" target="_blank"> 33 33 Normal text field:<br /> 34 34 <input name="NormaText" value="Plain Text" /> 35 35 <br /> -
_samples/html/sampleposteddata.asp
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">2 <!--3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net4 * Copyright (C) 2003-2008 Frederico Caldeira Knabben5 *6 * == BEGIN LICENSE ==7 *8 * Licensed under the terms of any of the following licenses at your9 * choice:10 *11 * - GNU General Public License Version 2 or later (the "GPL")12 * http://www.gnu.org/licenses/gpl.html13 *14 * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")15 * http://www.gnu.org/licenses/lgpl.html16 *17 * - Mozilla Public License Version 1.1 or later (the "MPL")18 * http://www.mozilla.org/MPL/MPL-1.1.html19 *20 * == END LICENSE ==21 *22 * This page lists the data posted by a form.23 -->24 <html xmlns="http://www.w3.org/1999/xhtml">25 <head>26 <title>FCKeditor - Samples - Posted Data</title>27 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />28 <meta name="robots" content="noindex, nofollow" />29 <link href="../sample.css" rel="stylesheet" type="text/css" />30 </head>31 <body>32 <h1>33 FCKeditor - Samples - Posted Data</h1>34 <div>35 This page lists all data posted by the form.36 </div>37 <hr />38 <table width="100%" border="1" cellpadding="3" style="border-color: #999999; border-collapse: collapse;">39 <tr style="font-weight: bold; color: #dddddd; background-color: #999999">40 <td style="white-space: nowrap;">41 Field Name </td>42 <td>43 Value</td>44 </tr>45 <% For Each sForm in Request.Form %>46 <tr>47 <td valign="top" style="white-space: nowrap;">48 <b>49 <%=sForm%>50 </b>51 </td>52 <td style="width: 100%;">53 <pre><%=ModifyForOutput( Request.Form(sForm) )%></pre>54 </td>55 </tr>56 <% Next %>57 </table>58 </body>59 </html>60 <%61 62 ' This function is useful only for this sample page se whe can display the63 ' posted data accordingly. This processing is usually not done on real64 ' applications, where the posted data must be saved on a DB or file. In those65 ' cases, no processing must be done, and the data is saved as posted.66 Function ModifyForOutput( value )67 68 ModifyForOutput = Server.HTMLEncode( value )69 70 End Function71 72 %>