website diff lib/random-image.php @ rev 946

Add forum activity to main pages
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 13 20:28:01 2012 +0100 (2012-03-13)
parents 3b9816842566
children e06721d4f040
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lib/random-image.php	Tue Mar 13 20:28:01 2012 +0100
     1.3 @@ -0,0 +1,11 @@
     1.4 +<?php
     1.5 +
     1.6 +$total  = "8";
     1.7 +$folder = "images/slideshow";
     1.8 +$start  = "1";
     1.9 +$random = mt_rand($start, $total);
    1.10 +$name   = $random . ".png";
    1.11 +
    1.12 +echo "<img src=\"$folder/$name\" alt=\"$name\" />";
    1.13 +
    1.14 +?>