PHP-powered image gallery script that outputs a JS-powered gallery page that degrades nicely when JS is disabled.  PHP5 and MySQLi required.