Ejemplo n.º 1
0
 private function runAdminerLoader()
 {
     $mode = Settings::get('mode', 1);
     $autologin = Settings::get('autologin', 0);
     if ($mode == 2) {
         Session::flash('ADMINER_PLUGINS', ['frames' => 'AdminerFrames']);
     }
     if ($autologin == 1) {
         Session::flash('ADMINER_AUTOLOGIN', true);
     }
 }
 public static function getAutologinURL($nav = false)
 {
     $mode = Settings::get('mode', 1);
     $autologin = Settings::get('autologin', 0);
     if ($autologin == 0 || $nav == true && $mode == 2) {
         return '';
     }
     $connection = self::getMySQLParams();
     if ($connection['driver'] == 'mysql') {
         $server = self::getServerAddress();
         $params = '?server=' . $server . '&username='******'username'] . '&db=' . $connection['database'];
     } else {
         $params = '';
     }
     return $params;
 }