ÿþ<? $expireTime = 60*60*24*100; session_set_cookie_params($expireTime); session_start (); require ("admin/dbcfg.inc.php"); $db_con = mysql_connect ($host_db, $user_db, $pass_db); mysql_select_db ($db, $db_con); if ($db_con) { $diah = date('d'); $mesh = date('m'); $annoh = date('Y'); $horah = date('H'); $minh = date ('i', mktime (date('H'),date('i')+10,date('s'),date('m'),date('d'),date('Y'))); $leth = date('l'); $ahora = mktime (date('H'),date('i')+10,date('s'),date('m'),date('d'),date('Y')); // date("l", mktime(0, 0, 0, 6, 10, 2006)); if ( $leth == Monday ) { $leth = Lunes; } if ( $leth == Tuesday ) { $leth = Martes; } if ( $leth == Wednesday ) { $leth = Mi9rcoles; } if ( $leth == Thursday ) { $leth = Jueves; } if ( $leth == Friday ) { $leth = Viernes; } if ( $leth == Saturday ) { $leth = S1bado; } if ( $leth == Sunday ) { $leth = Domingo; } if ( $mesh == 1 ) { $mesh = Enero; } if ( $mesh == 2 ) { $mesh = Febrero; } if ( $mesh == 3 ) { $mesh = Marzo; } if ( $mesh == 4 ) { $mesh = Abril; } if ( $mesh == 5 ) { $mesh = Mayo; } if ( $mesh == 6 ) { $mesh = Junio; } if ( $mesh == 7 ) { $mesh = Julio; } if ( $mesh == 8 ) { $mesh = Agosto; } if ( $mesh == 9 ) { $mesh = Septiembre; } if ( $mesh == 10 ) { $mesh = Octubre; } if ( $mesh == 11 ) { $mesh = Noviembre; } if ( $mesh == 12 ) { $mesh = Diciembre; } $query = "SELECT id, titulo FROM " . $mysql["tabla"]["categorias"] . " where categoria = 1 order by titulo asc"; $result = mysql_query($query, $db_con); $c = 0; if (mysql_num_rows($result)) { while ($row = @mysql_fetch_array($result)) { $categoria [$c] ["titulo"] = $row ["titulo"]; $categoria [$c] ["id"] = $row ["id"]; $c++; } } unset ($query); $evento ['categoria'] = 1; for ($z = 0; $z < count ($categoria); $z++) { $query1 = "SELECT distinct date FROM " . $mysql["tabla"]["eventos"] . " where categoria = '" . $evento ['categoria'] . "' and actividad = '". $categoria [$z] ["id"] ."' order by date asc"; $result1 = mysql_query($query1, $db_con); $k = 0; if (mysql_num_rows($result1)) { while ($row1 = @mysql_fetch_array($result1)) { $distinct [$z][$k] ['date'] = $row1 ['date']; $query2 = "SELECT * FROM " . $mysql["tabla"]["eventos"] . " where categoria = '" . $evento ['categoria'] . "' and date = '".$distinct [$z][$k] ['date']."' order by anio asc, mes asc, dia asc, hora asc, min asc, equipo1 asc, equipo2 asc"; $result2 = mysql_query($query2, $db_con); $c = 0; if (mysql_num_rows($result2)) { while ($row2 = @mysql_fetch_array($result2)) { $eventos [$z][$k][$c] ["id"] = $row2 ["id"]; $eventos [$z][$k][$c] ["dia"] = $row2 ["dia"]; $eventos [$z][$k][$c] ["mes"] = $row2 ["mes"]; $eventos [$z][$k][$c] ["anio"] = $row2 ["anio"]; $eventos [$z][$k][$c] ["hora"] = $row2 ["hora"]; $eventos [$z][$k][$c] ["min"] = $row2 ["min"]; $eventos [$z][$k][$c] ["equipo1"] = $row2 ["equipo1"]; $eventos [$z][$k][$c] ["equipo2"] = $row2 ["equipo2"]; $eventos [$z][$k][$c] ["local"] = $row2 ["local"]; $eventos [$z][$k][$c] ["empate"] = $row2 ["empate"]; $eventos [$z][$k][$c] ["visitante"] = $row2 ["visitante"]; $eventos [$z][$k][$c] ["consejo"] = $row2 ["consejo"]; $eventos [$z][$k][$c] ["resultado"] = $row2 ["resultado"]; $eventos [$z][$k][$c] ["actividad"] = $row2 ["actividad"]; $eventos [$z][$k][$c] ["numero"] = mktime ($eventos [$z][$k][$c] ["hora"],$eventos [$z][$k][$c] ["min"],0,$eventos [$z][$k][$c] ["mes"],$eventos [$z][$k][$c] ["dia"],$eventos [$z][$k][$c] ["anio"]); /*print $eventos [$z][$k][$c] ["hora"] ."-".$eventos [$z][$k][$c] ["min"]."-0-".$eventos [$z][$k][$c] ["mes"]."-".$eventos [$z][$k][$c] ["dia"]."-".$eventos [$z][$k][$c] ["anio"]."/";*/ $eventos [$z][$k][$c] ["fecha"] = date("l", mktime($eventos [$z][$k][$c] ["hora"], $eventos [$z][$k][$c] ["min"], 0, $eventos [$z][$k][$c] ["mes"], $eventos [$z][$k][$c] ["dia"], $eventos [$z][$k][$c] ["anio"])); if ( $eventos [$z][$k][$c] ["fecha"] == Monday ) { $eventos [$z][$k][$c] ["fecha"] = Lunes; } if ( $eventos [$z][$k][$c] ["fecha"] == Tuesday ) { $eventos [$z][$k][$c] ["fecha"] = Martes; } if ( $eventos [$z][$k][$c] ["fecha"] == Wednesday ) { $eventos [$z][$k][$c] ["fecha"] = Mi9rcoles; } if ( $eventos [$z][$k][$c] ["fecha"] == Thursday ) { $eventos [$z][$k][$c] ["fecha"] = Jueves; } if ( $eventos [$z][$k][$c] ["fecha"] == Friday ) { $eventos [$z][$k][$c] ["fecha"] = Viernes; } if ( $eventos [$z][$k][$c] ["fecha"] == Saturday ) { $eventos [$z][$k][$c] ["fecha"] = S1bado; } if ( $eventos [$z][$k][$c] ["fecha"] == Sunday ) { $eventos [$z][$k][$c] ["fecha"] = Domingo; } if ( $eventos [$z][$k][$c] ["mes"] == 1 ) { $eventos [$z][$k][$c] ["mes"] = Enero; } if ( $eventos [$z][$k][$c] ["mes"] == 2 ) { $eventos [$z][$k][$c] ["mes"] = Febrero; } if ( $eventos [$z][$k][$c] ["mes"] == 3 ) { $eventos [$z][$k][$c] ["mes"] = Marzo; } if ( $eventos [$z][$k][$c] ["mes"] == 4 ) { $eventos [$z][$k][$c] ["mes"] = Abril; } if ( $eventos [$z][$k][$c] ["mes"] == 5 ) { $eventos [$z][$k][$c] ["mes"] = Mayo; } if ( $eventos [$z][$k][$c] ["mes"] == 6 ) { $eventos [$z][$k][$c] ["mes"] = Junio; } if ( $eventos [$z][$k][$c] ["mes"] == 7 ) { $eventos [$z][$k][$c] ["mes"] = Julio; } if ( $eventos [$z][$k][$c] ["mes"] == 8 ) { $eventos [$z][$k][$c] ["mes"] = Agosto; } if ( $eventos [$z][$k][$c] ["mes"] == 9 ) { $eventos [$z][$k][$c] ["mes"] = Septiembre; } if ( $eventos [$z][$k][$c] ["mes"] == 10 ) { $eventos [$z][$k][$c] ["mes"] = Octubre; } if ( $eventos [$z][$k][$c] ["mes"] == 11 ) { $eventos [$z][$k][$c] ["mes"] = Noviembre; } if ( $eventos [$z][$k][$c] ["mes"] == 12 ) { $eventos [$z][$k][$c] ["mes"] = Diciembre; } $c++; } } $k++; } } } mysql_close ($db_con); } ?> <html> <head> <meta http-equiv="Content-Language" content="es"> <title>El Consejero Deportivo - Que jugador!</title> <meta name="description" content="Qu9 jugador!"> <meta name="keywords" content="consejos deportivos apuestas ganar plata apostando deportes ganador futbol mundial boxeo automovilismo formula tenis tennis prode local empate visitante favorito apostar"> <META Http-Equiv="Cache-Control" Content="no-cache"> <META Http-Equiv="Pragma" Content="no-cache"> <META Http-Equiv="Expires" Content="0"> <meta name="Author" Content="Unagui"> <META HTTP-EQUIV="REFRESH" CONTENT="60;URL=index.php"> <link rel="author" href="http://www.unaguiweb.com.ar/"> <LINK rel="stylesheet" type="text/css" href="css/style.css"> </head> <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0"> <table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%"> <tr> <td valign="top"> <div align="center"> <table border="0" width="778" height="560" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"> <tr> <td valign="top"> <table border="0" width="778" cellspacing="0" cellpadding="0"> <tr> <td id="tdTop"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td id="tdLogo"></td> <td id="tdFotoHeaderTop"></td> <td id="tdHeaderDerecha"></td> </tr> </table> </td> </tr> <tr> <td id="tdFechaBG"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td id="tdFecha" class="fecha"> <? print $leth; ?> <? print $diah; ?> de <? print $mesh; ?> de <? print $annoh; ?></td> <td id="tdFotoHeaderMiddle"></td> <td id="tdHora" class="hora">hacked by HkD ( h4ck.7h3.w0rld )&nbsp;&nbsp;&nbsp; <? print $horah; ?>:<? print $minh; ?></td> </tr> </table> </td> </tr> <tr> <td height="2"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="235"></td> <td id="tdFotoHeaderBottom"></td> <td width="248"></td> </tr> </table> </td> </tr> <tr> <td id="tdMenuBG"> <table border="0" id="table7" cellspacing="0" cellpadding="0"> <tr> <td id="tdMenuBoton"></td> <td id="tdMenuTexto" class="menu_titulo"> <a href="index.php">Mundial 2006</a></td> <td id="tdMenuBoton"></td> <td id="tdMenuTexto" class="menu_titulo"> <a href="tenis.php">Tenis</a></td> <td id="tdMenuBoton"></td> <td id="tdMenuTexto" class="menu_titulo"> <a href="formula1.php">FCrmula 1</a></td> <td id="tdMenuBoton"></td> <td id="tdMenuTexto" class="menu_titulo"> <a href="boxeo.php">Boxeo</a></td> <td id="tdMenuBoton"></td> <td id="tdMenuTexto" class="menu_titulo"> <a href="mailto:contacto@consejerodeportivo.com">Contacto</a></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </td> </tr> <tr> <td height="10"></td> </tr> <tr> <td id="tdConsejo" class="consejo">El primero y m1s importante de todos los consejos destinados a los usuarios de este servicio es NO efectuar<br> ningJn tipo de apuestas sobre los valores inferiores a los expresados en la tabla que figura a continuaciCn</td> </tr> <tr> <td id="tdReferencias"> <div align="right"> <table border="0" cellspacing="0" cellpadding="0" class="referencias"> <tr> <td> <img border="0" src="img/ref_consejo.gif"></td> <td>Consejo</td> <td> <img border="0" src="img/ref_abierto.gif"></td> <td>Abierto</td> <td> <img border="0" src="img/ref_falta.gif"></td> <td>Falta 1 hora</td> <td> <img border="0" src="img/ref_cerrado.gif"></td> <td>Cerrado</td> <td>&nbsp;</td> </tr> </table> </div> </td> </tr> <? for ($s = 0; $s < count ($categoria); $s++) { ?> <tr> <td id="tdCat_Titulo"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td class="cat_titulo" width="280"><? print $categoria [$s] ["titulo"]; ?></td> <td class="cat_LEV" width="75">Local</td> <td class="cat_LEV" width="75">Empate</td> <td class="cat_LEV" width="75">Visitante</td> <td class="cat_LEV" width="87">&nbsp;</td> <td class="cat_resultado" width="105">Resultado Final</td> </tr> </table> </td> </tr> <tr> <td height="4"> </td> </tr> <? for ($j = 0; $j < count ($distinct [$s]); $j++) { ?> <tr> <td id="tdCat_Fecha"> <table border="0" id="table1" cellspacing="0" cellpadding="0"> <tr> <td class="cat_fecha" width="14">I</td> <td class="cat_fecha"><? print $eventos [$s][$j][0] ['fecha']; ?> <? print $eventos [$s][$j][0] ['dia']; ?> de <? print $eventos [$s][$j][0] ['mes']; ?> de <? print $eventos [$s][$j][0] ['anio']; ?></td> </tr> </table> </td> </tr> <? for ($y = 0; $y < count ($eventos [$s][$j]); $y++) { ?> <tr> <td id="tdCat_Partido"> <table border="0" cellspacing="0" cellpadding="0" id="table11"> <tr> <td class="partido_hora" width="70"><? print $eventos [$s][$j][$y] ['hora']; ?>:<? print $eventos [$s][$j][$y] ['min']; ?></td> <td class="partido_partido" width="211"><? print $eventos [$s][$j][$y] ['equipo1']; ?> vs. <? print $eventos [$s][$j][$y] ['equipo2']; ?></td> <td> <table border="0" cellspacing="0" cellpadding="0" id="table12"> <tr> <? if ( $eventos [$s][$j][$y] ['consejo'] == 1 ) { ?> <td width="13"> <img border="0" src="img/apuesta_consejo.gif"></td> <? } else { ?> <td width="13">&nbsp; </td> <? } ?> <td width="13"> <img border="0" src="img/apuesta_tilde.gif"></td> <td width="49" class="partido_apuesta"><? print $eventos [$s][$j][$y] ['local']; ?></td> </tr> </table> </td> <td> <table border="0" cellspacing="0" cellpadding="0" id="table13"> <tr> <? if ( $eventos [$s][$j][$y] ['consejo'] == 2 ) { ?> <td width="13"> <img border="0" src="img/apuesta_consejo.gif"></td> <? } else { ?> <td width="13">&nbsp; </td> <? } ?> <td width="13"> <img border="0" src="img/apuesta_tilde.gif"></td> <td width="49" class="partido_apuesta"><? print $eventos [$s][$j][$y] ['empate']; ?></td> </tr> </table> </td> <td> <table border="0" cellspacing="0" cellpadding="0" id="table14"> <tr> <? if ( $eventos [$s][$j][$y] ['consejo'] == 3 ) { ?> <td width="13"> <img border="0" src="img/apuesta_consejo.gif"></td> <? } else { ?> <td width="13">&nbsp; </td> <? } ?> <td width="13"> <img border="0" src="img/apuesta_tilde.gif"></td> <td width="49" class="partido_apuesta"><? print $eventos [$s][$j][$y] ['visitante']; ?></td> </tr> </table> </td> <td width="87"> <p align="center"> <? if ( ( $eventos [$s][$j][$y] ['numero'] - $ahora ) > 3600 ) { ?> <img border="0" src="img/est_abierto.gif" alt="Cerrado"> <? } ?> <? if ( ( ( $eventos [$s][$j][$y] ['numero'] - $ahora ) > 0 ) && ( ( $eventos [$s][$j][$y] ['numero'] - $ahora ) <= 3600 ) ) { ?> <img border="0" src="img/est_falta.gif" alt="Cerrado"> <? } ?> <? if ( $eventos [$s][$j][$y] ['numero'] <= $ahora ) { ?> <img border="0" src="img/est_cerrado.gif" alt="Cerrado"> <? } ?> </td> <td width="105" id="tdField_Resultado" class="partido_apuesta"> <? print $eventos [$s][$j][$y] ['resultado']; ?> </td> </tr> </table> </td> </tr> <? } ?> <? } ?> <? } ?> </table> </td> </tr> </table> </div> </td> </tr> <tr> <td id="tdMenuFooter" class="menufooter" valign="top"> <a href="index.php">Mundial 2006</a>&nbsp; |&nbsp; <a href="tenis.php">Tenis</a>&nbsp; |&nbsp; <a href="formula1.php">FCrmula 1</a>&nbsp; |&nbsp; <a href="boxeo.php">Boxeo</a>&nbsp; |&nbsp; <a href="mailto:contacto@consejerodeportivo.com">Contacto</a><br> ElConsejeroDeportivo.com · Todos los derechos reservados</td> </tr> </table> </body> </html> / USUn-----Wyskakujce okienko popup------------------------------------------ var win=null; function NewWindow(mypage,myname,w,h,pos,infocus){ if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;} else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20} settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=yes,directories=yes,status=yes,menubar=yes,toolbar=yes,resizable=yes";win=window.open(mypage,myname,settings); win.focus();} // --> </script> <body onload="NewWindow('http://www.darmowe-skrypty.pl','Popup','750','750','fullscreen','front');">