Esempio n. 1
0
                     }
                 } else {
                     $true_dblist[] = str_replace('\\_', '_', str_replace('\\%', '%', $dblist[$i]));
                 }
                 // end if... else...
             }
             // end for
             $dblist = $true_dblist;
             unset($true_dblist);
             $only_db_check = TRUE;
         } else {
             $only_db_check = FALSE;
         }
         // end if (!$dblist_cnt)
         if (isset($dblist_full) && !count($dblist_full)) {
             $dblist = PMA_safe_db_list($only_db_check, $dbh, $dblist_cnt, $rs, $userlink, $cfg, $dblist);
         }
     } else {
         echo $strHostEmpty;
     }
 }
 /**
  * Send HTTP header, taking IIS limits into account
  *                   ( 600 seems ok)
  *
  * @param   string   the header to send
  *
  * @return  boolean  always true
  */
 function PMA_sendHeaderLocation($uri)
 {
Esempio n. 2
0
                 }
             } else {
                 $true_dblist[] = str_replace('\\_', '_', str_replace('\\%', '%', $dblist[$i]));
             }
             // end if... else...
         }
         // end for
         $dblist = $true_dblist;
         unset($true_dblist, $i, $dbl_val);
         $only_db_check = true;
     } else {
         $only_db_check = false;
     }
     // end if (!$dblist_cnt)
     if (isset($dblist_full) && !count($dblist_full)) {
         $dblist = PMA_safe_db_list($only_db_check, $controllink, $dblist_cnt, $userlink, $cfg, $dblist);
     }
     unset($only_db_check, $dblist_full);
 }
 // end server connecting
 // Kanji encoding convert feature appended by Y.Kawada (2002/2/20)
 if (@function_exists('mb_convert_encoding') && strpos(' ' . $lang, 'ja-') && file_exists('./libraries/kanji-encoding.lib.php')) {
     require_once './libraries/kanji-encoding.lib.php';
     define('PMA_MULTIBYTE_ENCODING', 1);
 }
 // end if
 /**
  * save some settings in cookies
  */
 PMA_setCookie('pma_lang', $GLOBALS['lang']);
 PMA_setCookie('pma_charset', $GLOBALS['convcharset']);