case 'downloadzip': Viewer::downloadLogs(); die; break; case 'backup': Viewer::compressLogs(); die; break; case 'realtime': Viewer::realtime(); flush(); die; break; default: echo "no action available"; Viewer::stopProgress(); die; break; } } $files = Viewer::getFiles(); //And now the main view ?> <html> <head> <title>Log Viewer for CodeIgniter</title> <link rel='icon' type='image/png' href='<?php echo Viewer::$assets['favicon']; ?> '>