Beispiel #1
0
 */
 set_error_handler(function ($errno, $errstr, $errfile, $errline, array $errcontext) {
     throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
 });
 $a = date('U');
 restore_error_handler();
 switch ($_POST['s']) {
     /*
     |--------------------------------------------------------------------------
     | Auth 1. Ask for authentication
     |--------------------------------------------------------------------------
     |
     */
     case 'auth':
         // Destroy a previous session
         Sentinel::destroy();
         $return['notice'] = '<h2>' . __('Setup admin account') . '</h2>' . '<br/>' . __('You can use <em>Pimp my Log</em> without authentication. You will be able to add this feature later from the debugger web interface.') . '<br/>' . '<br/>' . __('Setup an admin account will let you create other users later and give them access to certain log files only.') . '<br/>' . '<br/>' . __('Do you want to create an admin account now?') . '<br/>' . '<br/>' . '<br/>' . '<a href="javascript:process_authentication_yes()" class="btn btn-primary">' . __('Create an admin account') . '</a>' . '&nbsp;&nbsp;' . '<a href="javascript:process_authentication_no()" class="btn btn-default">' . __('No') . '</a>';
         break;
         /*
         |--------------------------------------------------------------------------
         | Auth 2. Touch auth file
         |--------------------------------------------------------------------------
         |
         */
     /*
     |--------------------------------------------------------------------------
     | Auth 2. Touch auth file
     |--------------------------------------------------------------------------
     |
     */
     case 'authtouch':