//$myServer = '200.71.207.86';
$myServer = '200.29.128.167';
$myUser = 'gms3520';
$myPass = '6p9v63n8';
$myDBx = 'pymesdechile10';
$link=mysql_connect($myServer , $myUser, $myPass );
mysql_select_db($myDBx ,$link) OR DIE ("Error: Imposible Conectar");
?>
$myServer = '200.29.128.167';
$myUser = 'gms3520';
$myPass = '6p9v63n8';
$myDB = 'pymesdechile11';
$myDB1 = 'pymesdechile10';
$link=mysql_connect($myServer , $myUser, $myPass );
mysql_select_db($myDB ,$link) OR DIE ("Error: Imposible Conectar");
/*$myServer = 'localhost';
$myUser = 'gms3520';
$myPass = '6p9v63n8';
$link = mysql_connect($myServer, $myUser, $myPass, TRUE);
$link2 = mysql_connect($myServer, $myUser, $myPass, TRUE);
mysql_select_db('pymesdechile11', $link)or die("Error: Imposible Conectar");
mysql_select_db('pymesdechile10', $link2)or die("Error: Imposible Conectar");*/
function getRealIP(){
if( $_SERVER['HTTP_X_FORWARDED_FOR'] != '' )
{
$client_ip =
( !empty($_SERVER['REMOTE_ADDR']) ) ?
$_SERVER['REMOTE_ADDR']
:
( ( !empty($_ENV['REMOTE_ADDR']) ) ?
$_ENV['REMOTE_ADDR']
:
"unknown" );
// los proxys van añadiendo al final de esta cabecera
// las direcciones ip que van "ocultando". Para localizar la ip real
// del usuario se comienza a mirar por el principio hasta encontrar
// una dirección ip que no sea del rango privado. En caso de no
// encontrarse ninguna se toma como valor el REMOTE_ADDR
$entries = split('[, ]', $_SERVER['HTTP_X_FORWARDED_FOR']);
reset($entries);
while (list(, $entry) = each($entries))
{
$entry = trim($entry);
if ( preg_match("/^([0-9]+.[0-9]+.[0-9]+.[0-9]+)/", $entry, $ip_list) )
{
// http://www.faqs.org/rfcs/rfc1918.html
$private_ip = array(
'/^0./',
'/^127.0.0.1/',
'/^192.168..*/',
'/^172.((1[6-9])|(2[0-9])|(3[0-1]))..*/',
'/^10..*/');
$found_ip = preg_replace($private_ip, $client_ip, $ip_list[1]);
if ($client_ip != $found_ip)
{
$client_ip = $found_ip;
break;
}
}
}
}
else
{
$client_ip =
( !empty($_SERVER['REMOTE_ADDR']) ) ?
$_SERVER['REMOTE_ADDR']
:
( ( !empty($_ENV['REMOTE_ADDR']) ) ?
$_ENV['REMOTE_ADDR']
:
"unknown" );
}
return $client_ip;
}
?>
if ($_GET["sector"]=="ficha")
{ ///
if(ereg('[^-0-9a-zA-Z_]', $_GET[de]) or $_GET[de] == "")
{
}else{ ////
$ker = mysql_query("select usuario,tags,pyme_desc from registros as r
INNER JOIN pymes as p on r.usuario=p.pyme_nombre where r.usuario='$_GET[de]'");
if ($row = mysql_fetch_array($ker))
{ /////
?>
$tagsx = explode("#",$row["tags"]);
$tags="";
foreach ($tagsx as $key => $value)
{
if (strlen($value) > 1)
{
$tags .= trim($value);
$tags .=", ";
}
}
?>
" />
} /////
} ////
}else{ ///
?>
Pymes de Chile portal y directorio internet de la pequeñas y medianas empresas chilenas - PymesdeChile.cl
} ///
?>
PORTAL
Y DIRECTORIO DE LA PEQUEÑAS Y MEDIANAS EMPRESAS PYMES CHILENAS
- PymesdeChile.cl
if ($_SESSION[user]) { $coloar="#cccccc"; } else { $coloar= "#ffffff";} ?>
$nickname2= $_SESSION[user];
$pass222= $_SESSION[passwd];
$sql= mysql_query("select * from usuarios where nick='$nickname2' and password='$pass222' ", $link);
if ($us = mysql_fetch_array($sql)) {
echo " Panel / ";
//echo "
if (!($sub == "redirect" or $sub == "sitios" or $sector == "ficha" or $sector == "ficha1" or $sector == "ficha2" or $sector == "ficha3" or $sector == "registro_9990" or $sector == "remates" or $sector == "buscador" or $sector == "" or $sector == "bolsadetrabajo" or $sector == "RemateVer" or $sector =="RemateCats" or $sector == "RemateMios" or $sector == "RemateAdd" or $sector == "RemateCatsEsp" or $sector == "Busqueda")) {
include("search.php");
// include("publicidad_banner_superior.php");
// include("publicidad.banner.php");
}
if($sector!="AgregarTrabajo"){
session_unregister("archivo");
session_unregister("Post");
}
if($sector!="usuarios"){
session_unregister("acepto");
}
switch($sector) {
default:
include('home.php');
break;
case "BolsaBusqueda":
include('BolsaBuscadorEsp.php');
break;
case "AgregarTrabajo":
include('BolsaAdd.php');
break;
case "beneficios":
include('beneficios.php');
break;
case "catalogo_web_gratis":
include('catalogo_web_gratis.php');
break;
case "catalogo_web_gratis2":
include('catalogo_web_gratis2.php');
break;
case "catalogo_web_gratis3":
include('catalogo_web_gratis3.php');
break;
case "catalogo_web_gratis4":
include('catalogo_web_gratis4.php');
break;
case "catalogo_web_gratis5":
include('catalogo_web_gratis5.php');
break;
case "catalogo_web_tarjeta":
include('catalogo_web_tarjeta.php');
break;
case "comunidad":
include('directorio.php');
break;
case "noticias":
include('noticias.php');
break;
case "buscador":
include('buscador.php');
break;
case "Busqueda":
include('RemateBusqueda.php');
break;
case "RemateVer":
include('RemateShow.php');
break;
case "RemateCats":
include('RemateCats.php');
break;
case "RemateMios":
include('RemateEdit.php');
break;
case "RemateAdd":
include('RemateAdd.php');
break;
case "servicios":
include('servicios.php');
break;
case "descargas":
include('descargas.php');
break;
case "foros":
include('foros.php');
break;
case "encuestas":
include('encuestas.php');
break;
case "webmail":
include('webmail.htm');
break;
case "encuesta":
echo "
";
include('encuesta.php');
break;
case "mi_pyme":
include('mipyme.php');
break;
case "congresos":
include('congresos.php');
break;
case "history":
include('history.php');
break;
case "bolsadetrabajo":
include('bolsadetrabajo2.php');
break;
case "remates":
include('remate.php');
break;
case "RemateCatsEsp":
include('RemateCatsEsp.php');
break;
case "contactanos":
include('contactenos.php');
break;
case "contactenos_TC":
include('contactenos_TC.php');
break;
case "faq":
include('faq.php');
break;
case "modulos":
include('modulos.php');
break;
case "news":
include('news.php');
break;
case "foromodulos":
include('foromodulos.php');
break;
case "perfiles":
include('perfiles.php');
break;
case "usuarios":
include('usuarios.php');
break;
case "webamigas":
include('webamigas.php');
break;
case "panel":
include('panel.php');
break;
case "indicadores":
include('indicadores.php');
break;
case "editorial":
include('editorial.php');
break;
case "indicadores2":
include('indicadores2.php');
break;
case "ficha":
include('ficha.php');
break;
case "ficha1":
include('ficha1.php');
break;
case "ficha2":
include('ficha2.php');
break;
case "ficha3":
include('ficha3.php');
break;
case "contacto_ficha":
include('contacto_ficha.php');
break;
case "productos":
include('productos.php');
break;
case "promociones":
include('promociones.php');
break;
case "registro_9990":
include('registro_9990.php');
break;
case "oferta_hosting_web":
include('oferta_hosting_web.php');
break;
case "oferta_redir_pymes":
include ('oferta_redir_pymes.php');
break;
case "subir_logo_comercio":
include('subir_logo_comercio.php');
}
?>
Portal
y directorio internet de la pequeña y mediana empresa chilena
PymesdeChile.cl, Luis Thayer Ojeda #0191, of 304, Providencia.
Powered By SNH
- Servicio Nacional de Hosting