Beispiel #1
0
     /*
     |--------------------------------------------------------------------------
     | Auth 3. Save data
     |--------------------------------------------------------------------------
     |
     */
 /*
 |--------------------------------------------------------------------------
 | Auth 3. Save data
 |--------------------------------------------------------------------------
 |
 */
 case 'authsave':
     if (mb_strlen($_POST['u']) > 0 && mb_strlen($_POST['p']) >= 6) {
         Sentinel::setAdmin($_POST['u'], $_POST['p']);
         $return['notice'] = Sentinel::save();
     }
     break;
     /*
     |--------------------------------------------------------------------------
     | Logs 1. Check if $config_file already exists
     |--------------------------------------------------------------------------
     |
     */
 /*
 |--------------------------------------------------------------------------
 | Logs 1. Check if $config_file already exists
 |--------------------------------------------------------------------------
 |
 */
 case 'exist':
     /*
     |--------------------------------------------------------------------------
     | Profile save
     |--------------------------------------------------------------------------
     |
     */
 /*
 |--------------------------------------------------------------------------
 | Profile save
 |--------------------------------------------------------------------------
 |
 */
 case 'profile_save':
     if (@$_POST['regenerate'] === '1') {
         Sentinel::setUser($current_user, null, null, null, true);
         Sentinel::save();
     }
     break;
     /*
     |--------------------------------------------------------------------------
     | Unknown action...
     |--------------------------------------------------------------------------
     |
     */
 /*
 |--------------------------------------------------------------------------
 | Unknown action...
 |--------------------------------------------------------------------------
 |
 */
 default: