Update of /cvsroot/phpcvsview/phpcvsview
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5408
Modified Files:
utils.php
Log Message:
- Commit after merging language changes with DIFF changes.
- Re-added check for CVS folder when listing theme dirs and language files.
Index: utils.php
===================================================================
RCS file: /cvsroot/phpcvsview/phpcvsview/utils.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** utils.php 1 Feb 2005 15:14:28 -0000 1.4
--- utils.php 2 Feb 2005 06:24:41 -0000 1.5
***************
*** 115,119 ****
while (false !== ($file = readdir($handle))) {
// do not list . and ..
! if ($file != "." && $file != "..") {
// add directory to an array
array_push($theme, $file);
--- 115,119 ----
while (false !== ($file = readdir($handle))) {
// do not list . and ..
! if ($file != "." && $file != ".." && $file != "CVS") {
// add directory to an array
array_push($theme, $file);
***************
*** 137,141 ****
while (false !== ($file = readdir($handle))) {
// do not list . and ..
! if ($file != "." && $file != "..") {
// strip filename and add to an array
array_push($lang, rtrim($file, '.php'));
--- 137,141 ----
while (false !== ($file = readdir($handle))) {
// do not list . and ..
! if ($file != "." && $file != ".." && $file != "CVS") {
// strip filename and add to an array
array_push($lang, rtrim($file, '.php'));
***************
*** 147,149 ****
--- 147,158 ----
}
+ function InsertIntoArray(&$Array, $Value, $Position)
+ {
+ if (!is_array($Array)) return false;
+ $Last = array_splice($Array, $Position);
+ $Array[] = $Value;
+ $Array = array_merge($Array, $Last);
+ }
+
?>
+
|