Changeset 677


Ignore:
Timestamp:
08/17/07 16:41:49 (7 years ago)
Author:
wwalc
Message:

Added code for PHP 4.0 backwards compatibility - ticket #180

Location:
FCKeditor/trunk/editor/filemanager/connectors/php
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/filemanager/connectors/php/commands.php

    r413 r677  
    104104function CreateFolder( $resourceType, $currentFolder ) 
    105105{ 
     106    if (!isset($_GET)) { 
     107        global $_GET; 
     108    } 
    106109        $sErrorNumber   = '0' ; 
    107110        $sErrorMsg              = '' ; 
     
    152155function FileUpload( $resourceType, $currentFolder, $sCommand ) 
    153156{ 
     157    if (!isset($_FILES)) { 
     158        global $_FILES; 
     159    } 
    154160        $sErrorNumber = '0' ; 
    155161        $sFileName = '' ; 
  • FCKeditor/trunk/editor/filemanager/connectors/php/connector.php

    r413 r677  
    3030require('./basexml.php') ; 
    3131require('./commands.php') ; 
     32require('./phpcompat.php') ; 
    3233 
    3334if ( !$Config['Enabled'] ) 
     
    3839function DoResponse() 
    3940{ 
     41    if (!isset($_GET)) { 
     42        global $_GET; 
     43    } 
    4044        if ( !isset( $_GET['Command'] ) || !isset( $_GET['Type'] ) || !isset( $_GET['CurrentFolder'] ) ) 
    4145                return ; 
  • FCKeditor/trunk/editor/filemanager/connectors/php/io.php

    r413 r677  
    133133function GetRootPath() 
    134134{ 
     135    if (!isset($_SERVER)) { 
     136        global $_SERVER; 
     137    } 
    135138        $sRealPath = realpath( './' ) ; 
    136139 
     
    203206function GetCurrentFolder() 
    204207{ 
     208    if (!isset($_GET)) { 
     209        global $_GET; 
     210    } 
    205211        $sCurrentFolder = isset( $_GET['CurrentFolder'] ) ? $_GET['CurrentFolder'] : '/' ; 
    206212 
  • FCKeditor/trunk/editor/filemanager/connectors/php/upload.php

    r413 r677  
    2727require('./io.php') ; 
    2828require('./commands.php') ; 
     29require('./phpcompat.php') ; 
    2930 
    3031// Check if this uploader has been enabled. 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy