'; if ($ui['ac'] === 'delete') { if (isset($ui['deleteUrl']) && testValidUrl($ui['deleteUrl']) !== true) { unset($ui['deleteUrl']); echo '
Not a valid url.
'; } echo '

'; if (empty($ui['deleteUrl'])) { echo ''; } else { echo ''; } echo '

'; if (!empty($ui['deleteUrl'])) { $ui['deleteUrl'] = trim(rawurldecode($ui['deleteUrl'])); $ui['deleteUrl'] = rtrim($ui['deleteUrl'], '/'); $hashUrl = sha1($GLOBALS['config']['salt'].$ui['deleteUrl']); $imgUrl = pathForFile('m', $hashUrl); echo '

Delete this thumb
'; } } if (isset($ui['log']) && $ui['log'] === 'success') { $logs = parseSuccessLog(); if (!empty($logs)) { $nbThumb = 0; $nbThumb = count($logs['genTime']); echo 'Total request : ', $nbThumb, '
'; echo 'Moyenne per request : ', round(array_sum($logs['genTime']) / $nbThumb, 2), 's (min (', min($logs['genTime']), 's) max (', max($logs['genTime']), 's))
'; } else { echo 'No result'; } echo '

Clear success log

'; } if (isset($ui['log']) && ($ui['log'] === 'suspect' || $ui['log'] === 'retry' || $ui['log'] === 'other')) { if (isset($ui['hash']) && !empty($ui['hash'])) { $ui['hash'] = validHash($ui['hash']); if (isset($ui['root']) && (int)$ui['root'] === 1) { $success = tryRootDomain($ui['hash'], $ui['log']); } if (isset($ui['cache']) && (int)$ui['cache'] === 1) { $success['filePath'] = pathForFile($ui['s'], $ui['hash']).'.png'; if (!file_exists($success['filePath'])) { $success['base64'] = 'data:image/png;base64,'.base64_encode(file_get_contents('bin/error.png')); } } if (isset($ui['keep']) && (int)$ui['keep'] === 1) { keepThisThumb($ui['hash'], $ui['log']); } if (isset($ui['mGen']) && (int)$ui['mGen'] === 1) $success = manualGen($ui['hash'], $ui['log']); } $logs = parseFailLog($ui['log']); if (!empty($logs)) { echo ''; } else { echo 'No result'; } } echo ''; if (!empty($success)) { echo '
'; echo ''; echo '

'; echo 'Try with root domain / '; echo 'Keep this thumbshot'; echo '
'; } ?>