Diff for phpPlatonLib/common/misc/Attic/fnc.chdir_back.php between version 1.1 and 1.2
| version 1.1, 2002/04/19 23:58:05 |
version 1.2, 2002/04/21 23:21:19 |
|
|
| <?php |
<?php |
| |
|
| require_once dirname(__FILE__) . '/fnc.dir_back.php'; |
/* |
| |
* phpPlatonLib - Platon software development group PHP library |
| |
* |
| |
* common/misc/fnc.chdir_back.php - change directory back of $dir |
| |
* ____________________________________________________________ |
| |
* |
| |
* Developed by Ondrej Jombik <nepto@pobox.sk> |
| |
* Copyright (c) 2001-2002 Platon SDG, http://www.platon.sk/ |
| |
* All rights reserved. |
| |
* |
| |
* See README file for more information about this software. |
| |
* See COPYING file for license information. |
| |
* |
| |
* Download the latest version from |
| |
* http://www.platon.sk/projects/phpPlatonLib/ |
| |
*/ |
| |
|
| function chdir_back($dir) |
/* $Id$ */ |
| { |
|
| $dir_back = dir_back($dir); |
|
| |
|
| if (strlen($dir_back) > 0) |
if (! defined('phpPlatonLib_fnc_chdir_back')) { |
| return chdir($dir_back); |
define('phpPlatonLib_fnc_chdir_back', 1); |
| |
|
| |
require_once dirname(__FILE__) . '/fnc.dir_back.php'; |
| |
|
| |
function chdir_back($dir) |
| |
{ |
| |
$dir_back = dir_back($dir); |
| |
|
| |
if (strlen($dir_back) > 0) |
| |
return chdir($dir_back); |
| |
|
| |
return false; |
| |
} |
| |
|
| return false; |
|
| } |
} |
| |
|
| ?> |
?> |
Platon Group <platon@platon.org> http://platon.org/
|
|