C:\$Recycle.Bin\S-1-5-21-3967099092-2644009230-141905953-500\$RJRNN8D\editor\editor.htmlarea2.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* @version $Id: editor.htmlarea2.php,v 1.4 2005/01/06 01:13:28 eddieajau Exp $
* @package Mambo
* @copyright (C) 2000 - 2005 Miro International Pty Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* Mambo is Free Software
*/

/** ensure this file is being included by a parent file */
defined'_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

function 
initEditor() {
    global 
$mosConfig_live_site;
?>
<script language="JavaScript1.2" type="text/JavaScript1.2">
<!--
_editor_url = '<?php echo $mosConfig_live_site?>/editor/htmlarea2/';          // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }

if (win_ie_ver >= 5.5) {
    document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
    document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else {
    document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>');
}

/** Wrapper around the editor specific update function in JavaScript
*/
function updateEditorContents( editorName, newValue ) {
    editor_setHTML( editorName, newValue );
}
//-->
</script>
<?php
}

function 
editorArea$name$content$hiddenField$width$height$col$row ) {
?>
    <textarea name="<?php echo $hiddenField?>" id="<?php echo $hiddenField?>" cols="<?php echo $col?>" rows="<?php echo $row?>" style="width:<?php echo $width?>; height:<?php echo $height?>"><?php echo $content?></textarea>
    <script language="JavaScript1.2" defer="defer">
    <!--
    editor_generate('<?php echo $hiddenField ?>');
    //-->
    </script>
<?php
}

function 
getEditorContents$editorArea$hiddenField ) {
}
?>