Update of /cvsroot/phpwiki/phpwiki/themes/Hawaiian/pictures
In directory usw-pr-cvs1:/tmp/cvs-serv29013
Modified Files:
random.php
Log Message:
count RandomPictures array
Index: random.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/themes/Hawaiian/pictures/random.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** random.php 2002/01/01 06:24:50 1.1
--- random.php 2002/01/02 00:14:51 1.2
***************
*** 8,33 ****
! $pictures = array(
! "SwimmingPoolWater.jpg",
! "LoihiSeamount.jpg",
"Coastline.jpg",
"LavaTwilight.jpg",
"SubmersiblePiscesV.jpg",
! "HawaiiMauiFromSpace.jpg",
! "BeachPalmDusk.jpg",
"WhaleRainbow.jpg",
- "SteamVolcanoDusk.jpg",
- "Waterfall.jpg"
);
! function my_srand($seed = '') {
! static $wascalled = FALSE;
! if (!$wascalled){
! $seed = $seed === '' ? (double) microtime() * 1000000 : $seed;
! srand($seed);
! $wascalled = TRUE;
}
}
- my_srand();
- $SignatureImg = "themes/$theme/pictures/".$pictures[mt_rand(0,9)];
// (c-file-style: "gnu")
--- 8,37 ----
! $RandomPictures = array(
! "BeachPalmDusk.jpg",
"Coastline.jpg",
+ "HawaiiMauiFromSpace.jpg",
"LavaTwilight.jpg",
+ "LoihiSeamount.jpg",
+ "SteamVolcanoDusk.jpg",
"SubmersiblePiscesV.jpg",
! "SwimmingPoolWater.jpg",
! "Waterfall.jpg",
"WhaleRainbow.jpg",
);
!
! if isset($RandomPictures) {
! function my_srand($seed = '') {
! static $wascalled = FALSE;
! if (!$wascalled) {
! $seed = $seed === '' ? (double) microtime() * 1000000 : $seed;
! srand($seed);
! $wascalled = TRUE;
! }
}
+
+ my_srand();
+ $SignatureImg = "themes/$theme/pictures/".$pictures[mt_rand(0,count($RandomPictures)-1)];
}
// (c-file-style: "gnu")
|