<?php $cdir = 'szablony/'.$_POST['lay'].'/'; $tdir = 'strony/'.$_SESSION['katalog'].'/'; ?>
<?php $cdir = 'szablony/'.$_POST['lay'].'/'; $tdir = 'strony/'.$_SESSION['katalog'].'/'; ?>
<?php function katalogi($dir) { { $kat=$file; } } return katalogi($dir=$kat); } katalogi("szablony/1/"); ?>
<? function p($arg1){ if($file=='.' || $file=='..') continue; p("$arg1/$file"); else } } } p('szablony/1/'); ?>
// $Id: rglob.php,v 1.0 2008/11/24 17:20:00 hm2k Exp $ /** * Recursive glob() */ /** * @param int $pattern * the pattern passed to glob() * @param int $flags * the flags passed to glob() * @param string $path * the path to scan * @return mixed * an array of files in the given path matching the pattern. */ function rglob($pattern='*', $flags = 0, $path='') { return $files; } /* example usage: */