openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit c22ecf794f7d4f9adfe9ee42351638c740860ce8
parent 7524c427e0888fdee6e20a142b47061be9148fec
Author: dankert <devnull@localhost>
Date:   Sat, 17 Nov 2007 00:51:04 +0100

Umbenannt: FileUtils.php

Diffstat:
serviceClasses/FileUtils.class.php | 36++++++++++++++++++++++++++++++++++++
serviceClasses/FileUtils.php | 36------------------------------------
2 files changed, 36 insertions(+), 36 deletions(-)

diff --git a/serviceClasses/FileUtils.class.php b/serviceClasses/FileUtils.class.php @@ -0,0 +1,35 @@ +<?php + +/** + * Werkzeugklasse für Datei-Operationen. + * + */ +class FileUtils +{ + /** + * Fügt einen Slash ("/") an das Ende an, sofern nicht bereits vorhanden. + * + * @param String $pfad + * @return Pfad mit angehängtem Slash. + */ + function slashify($pfad) + { + if ( substr($pfad,-1,1) == '/') + return $pfad; + else + return $pfad.'/'; + } + + + /** + * Ermittelt das temporäre Verzeichnis. + * + * @return String + */ + function getTempDir() + { + return FileUtils::slashify(ini_get('upload_tmp_dir')); + } +} + +?>+ \ No newline at end of file diff --git a/serviceClasses/FileUtils.php b/serviceClasses/FileUtils.php @@ -1,35 +0,0 @@ -<?php - -/** - * Werkzeugklasse für Datei-Operationen. - * - */ -class FileUtils -{ - /** - * Fügt einen Slash ("/") an das Ende an, sofern nicht bereits vorhanden. - * - * @param String $pfad - * @return Pfad mit angehängtem Slash. - */ - function slashify($pfad) - { - if ( substr($pfad,-1,1) == '/') - return $pfad; - else - return $pfad.'/'; - } - - - /** - * Ermittelt das temporäre Verzeichnis. - * - * @return String - */ - function getTempDir() - { - return ini_get('upload_tmp_dir'); - } -} - -?>- \ No newline at end of file