هادی2020
جمعه 17 آبان 1387, 14:38 عصر
<?php
find ../photo-fun/ | sed "s/^..\///g" > photo-fun.list
count=0
page=0
echo "" > index.html
echo "" > "photo-fun.coral.$page.html";
for i in `cat photo-fun.list`; do
if [ $count -gt 50 ]; then
let page=page+1;
echo "<a href=\"photo-fun.coral.$page.html\">Page $page</a><br />" >> index.html
echo "" > "photo-fun.coral.$page.html";
count=0;
fi
echo "<img src=\"http://www.q.qq.qqq.net/team/photos/$i\" /><br />" >> "photo-fun.coral.$page.html";
let count=count+1
done
rm photo-fun.list
?>
find ../photo-fun/ | sed "s/^..\///g" > photo-fun.list
count=0
page=0
echo "" > index.html
echo "" > "photo-fun.coral.$page.html";
for i in `cat photo-fun.list`; do
if [ $count -gt 50 ]; then
let page=page+1;
echo "<a href=\"photo-fun.coral.$page.html\">Page $page</a><br />" >> index.html
echo "" > "photo-fun.coral.$page.html";
count=0;
fi
echo "<img src=\"http://www.q.qq.qqq.net/team/photos/$i\" /><br />" >> "photo-fun.coral.$page.html";
let count=count+1
done
rm photo-fun.list
?>