C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\netspot\editor\editor.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
<?php
/**
* @version $Id: editor.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.' );

if (!
defined'_MOS_EDITOR_INCLUDED' )) {
    
$_MAMBOTS->loadBotGroup'editors' );
    
$_MAMBOTS->loadBotGroup'editors-xtd' );

    function 
initEditor() {
        global 
$_MAMBOTS;

        
$results $_MAMBOTS->trigger'onInitEditor' );
        foreach (
$results as $result) {
            if (
trim($result)) {
                echo 
$result;
            }
        }
    }
    function 
getEditorContents$editorArea$hiddenField ) {
        global 
$_MAMBOTS;

        
$results $_MAMBOTS->trigger'onGetEditorContents', array( $editorArea$hiddenField ) );
        foreach (
$results as $result) {
            if (
trim($result)) {
                echo 
$result;
            }
        }
    }
    
// just present a textarea
    
function editorArea$name$content$hiddenField$width$height$col$row ) {
        global 
$_MAMBOTS;

        
$results $_MAMBOTS->trigger'onEditorArea', array( $name$content$hiddenField$width$height$col$row ) );
        foreach (
$results as $result) {
            if (
trim($result)) {
                echo 
$result;
            }
        }
    }
    
define'_MOS_EDITOR_INCLUDED');
}
?>