+// functions to display a "progress page" when thumbs are generating
+function beginGenerating ()
+{
+ if (! isset($GLOBALS["generating"])) {
+ echo "<p> <i><b>If you get: \"Fatal error: Maximum execution time exceeded\", refresh this page.</b></i><br/> Please wait while generating thumbnails:<p/>\n";
+ ob_flush(); flush();
+ $GLOBALS["generating"] = true;
+ }
+}
+function displayGenerated($thumbFile)
+{
+ if (isset($GLOBALS["generating"])) {
+ echo basename($thumbFile)."\n";
+ ob_flush(); flush();
+ }
+}
+function endGenerating() {
+ if (isset($GLOBALS["generating"])) {
+ echo "<p>Finished. This page will be refreshed.</p> <script>window.location.reload();</script>\n";
+ exit();
+ }
+}
+