Fh3 V1.2 > FH3 / FHTML / FCKeditor / Editor / Filemanager / Browser / Default / Connectors / Php / Io.php

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Fh3 V1.2

Download:
fh3-v1.2.zip

Category:
Form Processors

Archive Content:

FH3 > Buttons

FH3

FH3 > FHTML > FCKeditor > Editor > Css > Behaviors

FH3 > FHTML > FCKeditor > Editor > Css

FH3 > FHTML > FCKeditor > Editor > Css > Images

FH3 > FHTML > FCKeditor > Editor > Dialog > Common

FH3 > FHTML > FCKeditor > Editor > Dialog > Common > Images

FH3 > FHTML > FCKeditor > Editor > Dialog > Common

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck About

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Docprops

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Flash

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Image

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Link

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Select

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Spellerpages > Spellerpages

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Spellerpages > Spellerpages > Server Scripts

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Spellerpages > Spellerpages

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Template > Images

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Universalkey

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default > Connectors > Php

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default > Connectors

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default > Images

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default > Images > Icons > 32

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default > Images > Icons

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default > Images

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default > Js

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php > Auth

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php > Commands

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php > Commands > Helpers

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php > Commands

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php > Docs

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php > Dtd

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php > Images

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Images

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Images > Icons > 32

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Images > Icons

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Images

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Images > Toolbar

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Js

FH3 > FHTML > FCKeditor > Editor > Filemanager > Upload > Php

FH3 > FHTML > FCKeditor > Editor > Filemanager > Upload

FH3 > FHTML > FCKeditor > Editor > Images

FH3 > FHTML > FCKeditor > Editor > Images > Smiley > Fun

FH3 > FHTML > FCKeditor > Editor > Images > Smiley > Msn

FH3 > FHTML > FCKeditor > Editor > Images

FH3 > FHTML > FCKeditor > Editor > Js

FH3 > FHTML > FCKeditor > Editor > Lang

FH3 > FHTML > FCKeditor > Editor > Plugins > Placeholder

FH3 > FHTML > FCKeditor > Editor > Plugins > Placeholder > Lang

FH3 > FHTML > FCKeditor > Editor > Plugins > Placeholder

FH3 > FHTML > FCKeditor > Editor > Plugins > Simplecommands

FH3 > FHTML > FCKeditor > Editor > Plugins > Tablecommands

FH3 > FHTML > FCKeditor > Editor > Skins > Default

FH3 > FHTML > FCKeditor > Editor > Skins > Default > Images

FH3 > FHTML > FCKeditor > Editor > Skins > Default > Toolbar

FH3 > FHTML > FCKeditor > Editor > Skins > Office2003

FH3 > FHTML > FCKeditor > Editor > Skins > Office2003 > Images

FH3 > FHTML > FCKeditor > Editor > Skins > Office2003 > Toolbar

FH3 > FHTML > FCKeditor > Editor > Skins > Silver

FH3 > FHTML > FCKeditor > Editor > Skins > Silver > Images

FH3 > FHTML > FCKeditor > Editor > Skins > Silver > Toolbar

FH3 > FHTML > FCKeditor > Editor > Source > Classes

FH3 > FHTML > FCKeditor > Editor > Source > Commandclasses

FH3 > FHTML > FCKeditor > Editor > Source > Globals

FH3 > FHTML > FCKeditor > Editor > Source > Internals

FH3 > FHTML > FCKeditor

FH3 > FHTML > Images

FH3 > FHTML > Js

FH3 > FHTML > Overlib

FH3 > FHTML > Overlib > Mini

FH3 > FHTML > Overlib

FH3 > Fields

FH3 > Includes

FH3 > Language

FH3

FH3 > Yadal

FH3 > Yadal > Test

Io.php:


<?php 
/*
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
 * 
 * Licensed under the terms of the GNU Lesser General Public License:
 *         http://www.opensource.org/licenses/lgpl-license.php
 * 
 * For further information visit:
 *         http://www.fckeditor.net/
 * 
 * "Support Open Source software. What about a donation today?"
 * 
 * File Name: io.php
 *     This is the File Manager Connector for ASP.
 * 
 * File Authors:
 *         Frederico Caldeira Knabben (fredck <at> fckeditor <dot> net)
 */

function GetUrlFromPath$resourceType,  $folderPath )
{
    if ( 
true || $resourceType == '' )
        return 
RemoveFromEnd$GLOBALS["UserFilesPath"],  '/' ) . $folderPath ;
    else
        return 
$GLOBALS["UserFilesPath"] . $resourceType $folderPath ;
}

function 
RemoveExtension$fileName )
{
    return 
substr$fileName,  0,  strrpos$fileName,  '.' ) ) ;
}

function 
ServerMapFolder$resourceType,  $folderPath )
{
    
// Get the resource type directory.
    
$sResourceTypePath $GLOBALS["UserFilesDirectory"];// . $resourceType . '/' ;

    // Ensure that the directory exists.
    
CreateServerFolder$sResourceTypePath ) ;

    
// Return the resource type directory combined with the required path.
    
return $sResourceTypePath RemoveFromStart$folderPath,  '/' ) ;
}

function 
GetParentFolder$folderPath )
{
    
$sPattern "-[/\\\\][^/\\\\]+[/\\\\]?$-" ;
    return 
preg_replace$sPattern,  '',  $folderPath ) ;
}

function 
CreateServerFolder$folderPath )
{
    
$sParent GetParentFolder$folderPath ) ;

    
// Check if the parent exists,  or create it.
    
if ( !file_exists$sParent ) )
    {
        
$sErrorMsg CreateServerFolder$sParent ) ;
        if ( 
$sErrorMsg != '' )
            return 
$sErrorMsg ;
    }

    if ( !
file_exists$folderPath ) )
    {
        
// Turn off all error reporting.
        
error_reporting) ;
        
// Enable error tracking to catch the error.
        
ini_set'track_errors',  '1' ) ;

        
// To create the folder with 0777 permissions,  we need to set umask to zero.
        
$oldumask umask(0) ;
        
mkdir$folderPath,  0777 ) ;
        
umask$oldumask ) ;

        
$sErrorMsg $php_errormsg ;

        
// Restore the configurations.
        
ini_restore'track_errors' ) ;
        
ini_restore'error_reporting' ) ;

        return 
$sErrorMsg ;
    }
    else
        return 
'' ;
}

function 
GetRootPath()
{
    
$sRealPath realpath'./' ) ;

    
$sSelfPath $_SERVER['PHP_SELF'] ;
    
$sSelfPath substr$sSelfPath,  0,  strrpos$sSelfPath,  '/' ) ) ;

    return 
substr$sRealPath,  0,  strlen$sRealPath ) - strlen$sSelfPath ) ) ;
}
?>


Other Form Processors Scripts:

WebMaster Resources Home

©RingsWorld.com