Minor display cleanup
[mirrors/Kyberia-bloodline.git] / scripts / alik.php
1 <?php
2 define('ALIK_DIR',"/storage/system/www-kyberia/data/alik/www.alik.cz/scripts/sample_icons/");
3 define('NEW_DIR',"/storage/system/www-kyberia/data/alik/icons/");
4
5 $handle=opendir(ALIK_DIR);
6 echo "Directory handle: $handle\n";
7 echo "Files:\n";
8 $i=10;
9 while (($file = readdir($handle))!==false) {
10 echo "copying $file as $i.gif \n";
11 $i++;
12 if ($i==100) $i=10;
13 copy(ALIK_DIR.$file,NEW_DIR.$i.".gif");
14 }
15 closedir($handle);
16 ?>
This page took 0.324207 seconds and 4 git commands to generate.