';
echo '';
echo '
';
echo '';
echo 'Mikescher.com - AdminExec';
echo '';
echo '';
echo '';
echo '';
echo '';
foreach (Programs::listAll() as $prog)
{
echo 'Create preview for ' . $prog['name'] . '
' . "\n";
Programs::createPreview($prog);
}
echo 'Finished.' . '
' . "\n";
echo '';
echo '';
echo '';
exit;
}
if ($cmd === 'createBookThumbnails')
{
echo '';
echo '';
echo '';
echo '';
echo 'Mikescher.com - AdminExec';
echo '';
echo '';
echo '';
echo '';
echo '';
foreach (Books::listAll() as $book)
{
echo 'Create preview for ' . $book['title'] . '
' . "\n";
Books::createPreview($book);
}
echo 'Finished.' . '
' . "\n";
echo '';
echo '';
echo '';
exit;
}
die('Wrong command.');