. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. * */ /** * @Description This is the View of all groups from a determinated user * @author Erik Amaru Ortiz * @Date 24/04/2008 * @LastModification 30/05/2008 */ $width_content = '430px'; $html = '
'.G::loadTranslation('DBCONNECTIONS_TITLE').'
'; $flagTns = ($_POST["type"] == "oracle" && $_POST["connectionType"] == "TNS")? 1 : 0; if ($flagTns == 0) { $host = new NET($_POST["server"]); $port = $_POST["port"]; if ($port == "default") { //setting defaults ports switch ($_POST["type"]) { case "mysql": $port = 3306; break; case "pgsql": $port = 5432; break; case "mssql": $port = 1433; break; case "oracle": $port = 1521; break; } $_POST["port"] = $port; $port = "default ($port)"; } $tests = array( "", G::loadTranslation('ID_HOST_NAME').' '.$_POST['server'].'', G::loadTranslation('ID_CHECK_PORT').' '.$port.'', G::loadTranslation('ID_CONNECT_HOST').' '.$host->ip.':'.$_POST['port'].'', G::loadTranslation('ID_OPEN_DB').'['.$_POST['db_name'].'] '.G::loadTranslation('ID_IN').' '.$_POST['type'].' '.G::loadTranslation('ID_SERVICE') ); } else { $tests = array( "", "Test TNS" . " " . $_POST["tns"] . "" ); } $n = Array('','uno','dos','tres','cuatro','cinco'); for($i=1; $i
$tests[$i]
"; } echo '
'.$html.'
'; print ("
"); print ("");