|
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2008-08-07 20:47:08
|
Update of /cvsroot/xrns-php/xrns-php/scripts In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv16546/scripts Modified Files: rndpack.php Log Message: Removed multi-byte functions, replaced them with the defaults. Index: rndpack.php =================================================================== RCS file: /cvsroot/xrns-php/xrns-php/scripts/rndpack.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** rndpack.php 7 Aug 2008 19:03:41 -0000 1.1 --- rndpack.php 7 Aug 2008 20:47:17 -0000 1.2 *************** *** 59,63 **** $haystack = $GLOBALS['argv']; foreach($haystack as $key => $val) { ! if (mb_strtolower($val) == mb_strtolower($needle)) return $key; } return false; --- 59,63 ---- $haystack = $GLOBALS['argv']; foreach($haystack as $key => $val) { ! if (strtolower($val) == strtolower($needle)) return $key; } return false; *************** *** 76,80 **** function getFileList($num, array $inpath, $r, $l, $u, $e) { ! if ($e) $e = mb_split(',', $e); // Restrict extension(s) $files = array(); --- 76,80 ---- function getFileList($num, array $inpath, $r, $l, $u, $e) { ! if ($e) $e = split(',', $e); // Restrict extension(s) $files = array(); *************** *** 91,95 **** if ($file->isFile()) { if ($e) { ! $ext = mb_strtolower(end(explode('.', $file))); if (!in_array($ext, $e)) continue; // No match, skip } --- 91,95 ---- if ($file->isFile()) { if ($e) { ! $ext = strtolower(end(explode('.', $file))); if (!in_array($ext, $e)) continue; // No match, skip } |