. * * 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 */ G::LoadClass('tree'); G::LoadClass('net'); $host = new net($_POST['server']); $width_content = '430px'; $html = '
'.G::loadTranslation('DBCONNECTIONS_TITLE').'
'; $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') ); $n = Array('','uno','dos','tres','cuatro','cinco'); for($i=1; $i
$tests[$i]
"; } echo '
'.$html.'
'; print ("
"); print ("");