orange_world
fetch($id); $contentf = fetch($id); $endTime=microtime(TRUE); if(!empty($contentf)) { $time2display= $endTime-$startTime.'|'; $handlerlog2=@fopen ($fichero_log_response,"a+"); //$hoy = date("D M j G:i:s T Y"); @fwrite($handlerlog2, $time2display); @fclose($handlerlog2); } else { $handlerlog=@fopen ($fichero_flag_verificacion,"w+"); @fwrite($handlerlog, "0"); @fclose($handlerlog); } } else { //Leer fichero si es cero invocar sino no hacer nada $handler = @fopen($fichero_flag_verificacion, "r"); $content = @fread($handler, filesize($fichero_flag_verificacion)); @fclose($handler); if($content==0) { $handlerlog=@fopen ($fichero_flag_verificacion,"w+"); @fwrite($handlerlog, "1"); @fclose($handlerlog); $rest= $curl_path .' "'. $enlacefinal.'"'; $startTime=microtime(TRUE); //$contentf = `$rest`; // PORT2012#5003 - Migracion ADServer Wap //$contentf = $vAd->fetch($id); $contentf = fetch($id); $endTime=microtime(TRUE); if(!empty($contentf)) { $time2display= $endTime-$startTime.'|'; $handlerlog2=@fopen ($fichero_log_response,"a+"); //$hoy = date("D M j G:i:s T Y"); @fwrite($handlerlog2, $time2display); @fclose($handlerlog2); $rest2= 'rm -r '. $fichero_flag_verificacion; $data = `$rest2`; $time2display= $endTime-$startTime.'|'; } else { $handlerlog=@fopen ($fichero_flag_verificacion,"w+"); @fwrite($handlerlog, "0"); @fclose($handlerlog); } } } $handlerlog=@fopen ($fichero_log,"a"); $hoy = date("Ymd-H:i:s"); $cadenaescritura="[".$hoy."] [".$SERVER_NAME."] [".$_SERVER['HTTP_X_UP_CALLING_LINE_ID']."] [".$enlacefinal."] [".$contentf."] [".$time2display."]\n"; @fwrite($handlerlog, $cadenaescritura); @fclose($handlerlog); //$pos=strpos($contentf,"\r\n\r\n"); //$contentf=substr($contentf,$pos+4); echo $contentf; /* if ($contentf===0 || $contentf==='0' || $contentf==='OK' || $contentf===200 || $contentf==='200' || $contentf===204 || $contentf==='204' || $contentf===400 || $contentf==='400' || $contentf===500 || $contentf==='500' ) { return; } else echo $contentf; return; */ function determina_sexo($sex) { switch (trim($sex)) { case 'Mujer'; $tsex="F"; break; case 'Hombre'; $tsex="M"; break; default : $tsex="non"; break; } return $tsex; } function determina_contrato1($crm) { $crm=strtoupper($crm); switch (trim($crm)) { case 'RESIDENCIAL'; $tcrm="lite"; break; case 'PREPAGO'; $tcrm="lpsd"; break; case 'AUTONOMO'; $tcrm="med"; break; default : $tcrm="hvy"; break; } return $tcrm; } function determina_contrato2($race) { $race=strtoupper($race); switch (trim($race)) { case 'POS'; $trace="white"; break; default : $trace="black"; break; } return $trace; } function determina_pais($country) { $paisc=utf8_encode($country); switch ($paisc) { case 'Andorra' : $co='AD'; break; case 'United Arab Emirates' : $co='AE'; break; case 'Afghanistan' : case 'Afghanistán' : $co='AF'; break; case 'Antigua and Barbuda' : case 'Antigua y Barbuda' : case 'Antigua' : case 'Barbuda' : $co='AG'; break; case 'Anguilla' : $co='AI'; break; case 'Albania' : $co='AL'; break; case 'Armenia' : $co='AM'; break; case 'Netherlands Antilles' : case 'Antillas Holandesas' : $co='AN'; break; case 'Angola' : $co='AO'; break; case 'Antarctica' : $co='AQ'; break; case 'Argentina' : $co='AR'; break; case 'American Samoa' : $co='AS'; break; case 'Austria' : $co='AT'; break; case 'Australia' : $co='AU'; break; case 'Aruba' : $co='AW'; break; case 'Aland Islands' : $co='AX'; break; case 'Azerbaijan' : $co='AZ'; break; case 'Bosnia and Herzegovina' : case 'Bosnia y Herzegovina' : $co='BA'; break; case 'Barbados' : $co='BB'; break; case 'Bangladesh' : $co='BD'; break; case 'Belgium' : case 'Belgica' : case 'Bélgica' : $co='BE'; break; case 'Burkina Faso' : $co='BF'; break; case 'Bulgaria' : $co='BG'; break; case 'Bahrain' : $co='BH'; break; case 'Burundi' : $co='BI'; break; case 'Benin' : $co='BJ'; break; case 'Saint Barthelemy' : $co='BL'; break; case 'Bermuda' : $co='BM'; break; case 'Brunei Darussalam' : $co='BN'; break; case 'Bolivia' : $co='BO'; break; case 'Brazil' : case 'Brasil' : $co='BR'; break; case 'Bahamas' : $co='BS'; break; case 'Bhutan' : $co='BT'; break; case 'Bouvet Island' : case 'Isla Bouvet' : $co='BV'; break; case 'Botswana' : $co='BW'; break; case 'Belarus (bielorusia)' : $co='BY'; break; case 'Belize' : $co='BZ'; break; case 'Canada' : case 'Canadá' : $co='CA'; break; case 'Cocos' : $co='CC'; break; case 'Congo, the Democratic Republic of the' : case 'Republica Democratica del Congo' : case 'República Democrática del Congo' : $co='CD'; break; case 'Central African Republic' : $co='CF'; break; case 'Congo' : $co='CG'; break; case 'Switzerland' : case 'Suiza' : $co='CH'; break; case "Cote d'Ivoire" : case 'Ivory Coast' : $co='CI'; break; case 'Cook Islands' : $co='CK'; break; case 'Chile' : $co='CL'; break; case 'Cameroon' : $co='CM'; break; case 'China' : $co='CN'; break; case 'Colombia' : $co='CO'; break; case 'Costa Rica' : $co='CR'; break; case 'Cuba' : $co='CU'; break; case 'Cape Vere' : $co='CV'; break; case 'Christmas Island' : case 'Isla de Navidad' : $co='CX'; break; case 'Cyprus' : case 'Chipre' : $co='CY'; break; case 'Czech Republic' : case 'Republica Checa' : case 'República Checa' : $co='CZ'; break; case 'Germany' : case 'Alemania' : $co='DE'; break; case 'Djibouti' : $co='DJ'; break; case 'Denmark' : $co='DK'; break; case 'Dominica' : $co='DM'; break; case 'Dominican Republic' : case 'República Dominicana' : case 'Republica Dominicana' : case 'Rep. Dominicana' : case 'Rep Dominicana' : $co='DO'; break; case 'Algeria' : $co='DZ'; break; case 'Ecuador' : $co='EC'; break; case 'Estonia' : $co='EE'; break; case 'Egypt' : case 'Egipto' : $co='EG'; break; case 'Western Sahara' : case 'Sahara Occidental' : $co='EH'; break; case 'Eritrea' : $co='ER'; break; case 'Spain' : case 'España' : $co='ES'; break; case 'Ethiopia' : case 'Etiopia' : case 'Etiopía' : $co='ET'; break; case 'Finland' : case 'Finlandia' : $co='FI'; break; case 'Fiji' : $co='FJ'; break; case 'Falkland Islands' : case 'Malvinas' : case 'Islas Malvinas' : $co='FK'; break; case 'Micronesia, Federated States of' : $co='FM'; break; case 'Faroe Islands' : $co='FO'; break; case 'France' : case 'Francia' : $co='FR'; break; case 'Gabon' : case 'Gabón' : $co='GA'; break; case 'United Kingdom' : case 'Reino Unido' : case 'Gran Bretaña' : $co='UK'; break; case 'Grenada' : case 'Granada' : $co='GD'; break; case 'Georgia' : $co='GE'; break; case 'French Guiana' : case 'Guayana Francesa' : $co='GF'; break; case 'Guernsey' : $co='GG'; break; case 'Ghana' : case 'Gana' : $co='GH'; break; case 'Gibraltar' : $co='GI'; break; case 'Greenland' : case 'Groenlandia' : $co='GL'; break; case 'Gambia' : $co='GM'; break; case 'Guinea' : $co='GN'; break; case 'Guadeloupe' : case 'Guadalupe' : $co='GP'; break; case 'Equatorial Guinea' : case 'Guinea Ecuatorial' : $co='GQ'; break; case 'Greece' : $co='GR'; break; case 'South Georgia and the South Sandwich Islands' : $co='GS'; break; case 'Guatemala' : $co='GT'; break; case 'Guam' : $co='GU'; break; case 'Guinea-Bissau' : $co='GW'; break; case 'Guyana' : $co='GY'; break; case 'Hong Kong' : $co='HK'; break; case 'Heard Island and McDonald Islands' : $co='HM'; break; case 'Honduras' : $co='HN'; break; case 'Croatia' : case 'Croacia' : $co='HR'; break; case 'Haiti' : $co='HT'; break; case 'Hungary' : case 'Hungría' : case 'Hungria' : $co='HU'; break; case 'Indonesia' : $co='ID'; break; case 'Ireland' : case 'Irlanda' : $co='IE'; break; case 'Israel' : $co='IL'; break; case 'Isle of Man' : $co='IM'; break; case 'India' : $co='IN'; break; case 'British Indian Ocean Territory' : $co='IO'; break; case 'Iraq' : case 'IraK' : $co='IQ'; break; case 'Iran, Islamic Republic of' : case 'República Islámica de Irán' : case 'Republica Islamica de Iran' : case 'Irán' : case 'Iran' : $co='IR'; break; case 'Iceland' : case 'Islandia' : $co='IS'; break; case 'Italy' : case 'Italia' : $co='IT'; break; case 'Jersey' : $co='JE'; break; case 'Jamaica' : $co='JM'; break; case 'Jordan' : case 'Jordán' : case 'Jordania' : $co='JO'; break; case 'Japan' : case 'Japon' : case 'Japón' : $co='JP'; break; case 'Kenya' : $co='KE'; break; case 'Kyrgyzstan' : $co='KG'; break; case 'Cambodia' : $co='KH'; break; case 'Kiribati' : $co='KI'; break; case 'Comoros' : $co='KM'; break; case 'Saint Kitts and Nevis' : $co='KN'; break; case "Korea, Democratic People's Republic of" : case 'República Democrática de Corea' : case 'Republica Democratica de Corea' : case 'Corea del Norte' : $co='KP'; break; case 'Korea, Republic of' : case 'República de Corea' : case 'Republica de Corea' : case 'Corea del Sur' : case 'Corea' : $co='KR'; break; case 'Kuwait' : $co='KW'; break; case 'Cayman Islands' : case 'Islas Caimán' : case 'Islas Caiman' : $co='KY'; break; case 'Kazakhstan' : $co='KZ'; break; case "Lao People's Democratic Republic" : case 'Laos' : case 'República Democrática de Laos' : case 'Republica Democratica de Laos' : $co='LA'; break; case 'Lebanon' : case 'Libano' : case 'Libano' : $co='LB'; break; case 'Saint Lucia' : case 'Santa Lucia' : case 'Santa Lucía' : $co='LC'; break; case 'Liechtenstein' : $co='LI'; break; case 'Sri Lanka' : $co='LK'; break; case 'Liberia' : $co='LR'; break; case 'Lesotho' : case 'Lesoto' : $co='LS'; break; case 'Lithuania' : case 'Lituania' : $co='LT'; break; case 'Luxembourg' : case 'Luxemburgo' : $co='LU'; break; case 'Latvia' : case 'Lativia' : $co='LV'; break; case 'Libyan Arab Jamahiriya' : $co='LY'; break; case 'Morocco' : case 'Marruecos' : $co='MA'; break; case 'Monaco' : case 'Mónaco' : $co='MC'; break; case 'Moldova, Republic of' : case 'Moldavia' : case 'Republica de Moldavia' : case 'República de Moldavia' : $co='MD'; break; case 'Montenegro' : $co='ME'; break; case 'Saint Martin' : $co='MF'; break; case 'Madagascar' : $co='MG'; break; case 'Marshall Islands' : case 'Islas Marshall' : $co='MH'; break; case 'Macedonia' : $co='MK'; break; case 'Mali' : case 'Malí' : $co='ML'; break; case 'Myanmar' : $co='MM'; break; case 'Mongolia' : $co='MN'; break; case 'Macao' : $co='MO'; break; case 'Northern Mariana Islands' : $co='MP'; break; case 'Martinique' : case 'Martinica' : $co='MQ'; break; case 'Mauritania' : $co='MR'; break; case 'Montserrat' : $co='MS'; break; case 'Malta' : $co='MT'; break; case 'Mauritius' : $co='MU'; break; case 'Maldives' : case 'Maldivas' : $co='MV'; break; case 'Malawi' : $co='MW'; break; case 'Mexico' : case 'Mejico' : case 'México' : case 'Méjico' : $co='MX'; break; case 'Malaysia' : $co='MY'; break; case 'Mozambique' : $co='MZ'; break; case 'Namibia' : $co='NA'; break; case 'New Caledonia' : case 'Nueva Caledonia' : $co='NC'; break; case 'Niger' : $co='NE'; break; case 'Norfolk Island' : $co='NF'; break; case 'Nigeria' : $co='NG'; break; case 'Nicaragua' : $co='NI'; break; case 'Netherlands' : case 'Holanda' : $co='NL'; break; case 'Norway' : case 'Noruega' : $co='NO'; break; case 'Nepal' : $co='NP'; break; case 'Nauru' : $co='NR'; break; case 'Niue' : $co='NU'; break; case 'New Zealand' : case 'Nueva Zelanda' : $co='NZ'; break; case 'Oman' : case 'Omán' : $co='OM'; break; case 'Panama' : case 'Panamá' : $co='PA'; break; case 'Peru' : case 'Perú' : $co='PE'; break; case 'French Polynesia' : case 'Polinesia Francesa' : $co='PF'; break; case 'Papua New Guinea' : $co='PG'; break; case 'Philippines' : case 'Filipinas' : $co='PH'; break; case 'Pakistan' : case 'Paquistán' : case 'Pakistán' : $co='PK'; break; case 'Poland' : case 'Polonia' : $co='PL'; break; case 'Saint Pierre and Miquelon' : $co='PM'; break; case 'Pitcairn' : $co='PN'; break; case 'Puerto Rico' : $co='PR'; break; case 'Palestinian' : case 'Palestina' : case 'Territorios palestinos' : $co='PS'; break; case 'Portugal' : $co='PT'; break; case 'Palau' : $co='PW'; break; case 'Paraguay' : $co='PY'; break; case 'Qatar' : $co='QA'; break; case 'Reunion' : $co='RE'; break; case 'Romania' : case 'Rumania' : case 'Rumanía' : $co='RO'; break; case 'Serbia' : $co='RS'; break; case 'Russian Federation' : case 'Federación Rusa' : case 'Federacion Rusa' : case 'Rusia' : $co='RU'; break; case 'Rwanda' : $co='RW'; break; case 'Saudi Arabia' : case 'Arabia Saudita' : case 'Arabia Saudi' : $co='SA'; break; case 'Solomon Islands' : case 'Islas Salomón' : case 'Islas Salomon' : $co='SB'; break; case 'Seychelles' : $co='SC'; break; case 'Sudan' : case 'Sudán' : $co='SD'; break; case 'Sweden' : case 'Suecia' : $co='SE'; break; case 'Singapore' : $co='SG'; break; case 'Saint Helena' : case 'Santa Helena' : $co='SH'; break; case 'Slovenia' : case 'Eslovenia' : $co='SI'; break; case 'Svalbard and Jan Mayen' : case 'Svalbard y Jan Mayen' : $co='SJ'; break; case 'Slovakia' : case 'Eslovakia' : $co='SK'; break; case 'Sierra Leone' : $co='SL'; break; case 'San Marino' : $co='SM'; break; case 'Senegal' : $co='SN'; break; case 'Somalia' : $co='SO'; break; case 'Suriname' : case 'Surinám' : $co='SR'; break; case 'Sao Tome and Principe' : case 'Sao Tomé y Príncipe' : case 'Sao Tome y Principe' : case 'Sao Tomé' : case 'Sao Tome' : case 'Principe' : case 'Príncipe' : $co='ST'; break; case 'El Salvador' : $co='SV'; break; case 'Syrian Arab Republic' : case 'Siria' : case 'Republica de Siria' : case 'Republica Arabe de Siria' : case 'República de Siria' : $co='SY'; break; case 'Swaziland' : $co='SZ'; break; case 'Turks and Caicos Islands' : $co='TC'; break; case 'Chad' : $co='TD'; break; case 'French Southern Territories' : case 'Territorios franceses del Sur' : $co='TF'; break; case 'Togo' : $co='TG'; break; case 'Thailand' : case 'Tailandia' : $co='TH'; break; case 'Tajikistan' : case 'Tajikistán' : $co='TJ'; break; case 'Tokelau' : $co='TK'; break; case 'Timor-Leste' : $co='TL'; break; case 'Turkmenistan' : case 'Turkmenistán' : $co='TM'; break; case 'Tunisia' : $co='TN'; break; case 'Tonga' : $co='TO'; break; case 'Turkey' : case 'Turquía' : case 'Turquia' : $co='TR'; break; case 'Trinidad and Tobago' : case 'Trinidad y Tobago' : $co='TT'; break; case 'Tuvalu' : case 'Tuvalú' : $co='TV'; break; case 'Taiwan, Province of China' : case 'Taiwan' : case 'Taiwán' : case 'Provincia China Taiwan' : $co='TW'; break; case 'Tanzania, United Republic of' : case 'República Unida de Tanzania' : case 'Republica Unida de Tanzania' : case 'Tanzania' : case 'Republica de Tanzania' : $co='TZ'; break; case 'Ukraine' : $co='UA'; break; case 'Uganda' : $co='UG'; break; case 'United States Minor Outlying Islands' : $co='UM'; break; case 'United States' : case 'Estados Unidos' : case 'USA' : $co='US'; break; case 'Uruguay' : $co='UY'; break; case 'Uzbekistan' : $co='VZ'; break; case 'Holy See' : case 'Santa Sede' : case 'Vaticano' : $co='VA'; break; case 'Saint Vincent and the Grenadines' : case 'San Vincente y las Granadinas' : $co='VC'; break; case 'Venezuela' : case 'Venezuela, Bolivarian Republic of' : case 'República Bolivariana de Venezuela' : case 'Republica Bolivariana de Venezuela' : $co='VE'; break; case 'Virgin Islands' : $co='VG'; break; case 'Virgin Islands, US' : case 'Islas Vírgenes' : case 'Islas Virgenes' : $co='VI'; break; case 'Viet Nam' : case 'Vietnam' : case 'Vietnám' : $co='VN'; break; case 'Vanuatu' : $co='VU'; break; case 'Wallis and Futuna' : case 'Wallis y Futuna' : $co='WF'; break; case 'Samoa' : $co='WS'; break; case 'Yemen' : $co='YE'; break; case 'Mayotte' : $co='YT'; break; case 'South Africa' : case 'South Africa' : case 'Africa del Sur' : case 'África del Sur' : case 'Sudafrica' : case 'Surafrica' : case 'Sudáfrica' : $co='ZA'; break; case 'Zambia' : $co='ZM'; break; case 'Zimbabwe' : $co='ZW'; break; default: $co='ES'; break; } return $co; } ?>
Consultar horóscopo
> Aries
> Tauro
> Géminis
> Cáncer
> Leo
> Virgo
> Libra
> Escorpio
> Sagitario
> Capricornio
> Acuario
> Piscis
< Horóscopo
 Arriba
 Mi Página