';
echo '';
echo '
';
echo '';
echo 'Mikescher.com - AdminExec';
echo '';
echo '';
echo '';
echo '';
echo '';
foreach ($SITE->modules->Books()->listAll() as $book)
{
echo 'Create preview for ' . $book['title'] . '
' . "\n";
try {
$SITE->modules->Books()->createPreview($book);
} catch (Exception $e) {
echo 'Failed to create preview for ' . $book['title'] . ':' . $e->getMessage() . '
' . "\n";
}
}
echo 'Finished.' . '
' . "\n";
echo '';
echo '';
echo '';