protected function generateTimestamp($date) { return CWebDavDiskDispatcher::convertToExternalVersion(makeTimeStamp($date)); }
$threshold = isset($_POST['threshold']) ? $_POST['threshold'] : 3; $w = isset($_POST['w']) ? $_POST['w'] : 120; $h = isset($_POST['h']) ? $_POST['h'] : 80; function makeTimeStamp($name) { return mktime(0, 0, 0, $_POST[$name . 'Month'], $_POST[$name . 'Day'], $_POST[$name . 'Year']); } //do some processing? if (isset($_POST['go'])) { //this takes a long time, so we output a header first of all $smarty->display('_std_begin.tpl'); echo "<h3><a href=\"recreatethumbs.php\"><<</a> Creating Thumbnails...</h3>"; flush(); set_time_limit(3600 * 24); $datefrom = makeTimeStamp('datefrom'); $dateto = makeTimeStamp('dateto'); $funct = $_GET['function']; print "<PRE>"; print_r($_POST); print "</PRE>"; print "{$datefrom} - {$dateto}<BR>"; $recordSet =& $db->Execute("select * from gridimage"); while (!$recordSet->EOF) { $image = new GridImage(); $image->loadFromRecordset($recordSet); $oldfile = $image->_getFullpath(); if (file_exists($_SERVER['DOCUMENT_ROOT'] . $oldfile)) { $filedate = filemtime($_SERVER['DOCUMENT_ROOT'] . $oldfile); printf("%c = %d %d %d<BR>", $oldfile, $filedate, $filedate - $datefrom, $dateto - $filedate); if ($filedate > $datefrom && $filedate <= $dateto) { ## $CONF['photo_hashing_secret']=$to;