Mister Spy Say ="Hello Kids ... :D"
___ ____ _ _____
| \/ (_) | | / ___|
| . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _
| |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | |
| | | | \__ \ || __/ | /\__/ / |_) | |_| |
\_| |_/_|___/\__\___|_| \____/| .__/ \__, |
| | __/ |
|_| |___/
Bot Mister Spy V3
Mister Spy
Mister Spy
<?php
require_once('../../Connections/cnx.php');
require_once('00_admin_look.php');
require_once('ssi_seguridad.php');
$currentPage = $_SERVER["PHP_SELF"];
$maxRows_rsLinks = 10;
$pageNum_rsLinks = 0;
if (isset($_GET['pageNum_rsLinks'])) {
$pageNum_rsLinks = $_GET['pageNum_rsLinks'];
}
$startRow_rsLinks = $pageNum_rsLinks * $maxRows_rsLinks;
mysql_select_db($database_cnx, $cnx);
$query_rsLinks = "SELECT * FROM links ORDER BY nombre ASC";
$query_limit_rsLinks = sprintf("%s LIMIT %d, %d", $query_rsLinks, $startRow_rsLinks, $maxRows_rsLinks);
$rsLinks = mysql_query($query_limit_rsLinks, $cnx) or die(mysql_error());
$row_rsLinks = mysql_fetch_assoc($rsLinks);
if (isset($_GET['totalRows_rsLinks'])) {
$totalRows_rsLinks = $_GET['totalRows_rsLinks'];
} else {
$all_rsLinks = mysql_query($query_rsLinks);
$totalRows_rsLinks = mysql_num_rows($all_rsLinks);
}
$totalPages_rsLinks = ceil($totalRows_rsLinks/$maxRows_rsLinks)-1;
$queryString_rsLinks = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_rsLinks") == false &&
stristr($param, "totalRows_rsLinks") == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString_rsLinks = "&" . htmlentities(implode("&", $newParams));
}
}
$queryString_rsLinks = sprintf("&totalRows_rsLinks=%d%s", $totalRows_rsLinks, $queryString_rsLinks);
$modulo="links";
$nivel=$_SESSION['MM_Group'];
$sql="SELECT * FROM `niveles_permisos` WHERE `nivel` =".$nivel." AND `modulo` = '".$modulo."'";
$qry=mysql_query($sql);
$row=mysql_fetch_array($qry);
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
<link href="basico_backend.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/JavaScript" src="edita.js"></script>
</head>
<body>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="bordeGrisFondo">
<tr>
<td width="20" height="40" class="TituloRubro"> </td>
<td height="40"><span class="tituloPagina">LINKS</span></td>
</tr>
</table></td>
</tr>
<tr>
<td height="30" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20" height="40"><div align="right"><a href="../espanol/_admin_/marca_add.php"><img src="iconos/add.gif" alt="Agregar" width="16" height="14" border="0" /></a> </div></td>
<td height="40"><a href="links_add.php">Agregar</a></td>
</tr>
</table></td>
</tr>
<tr>
<td><div align="center">
<?php if ($totalRows_rsLinks > 0) { // Show if recordset not empty ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" valign="top"><div align="right"> Registros <?php echo ($startRow_rsLinks + 1) ?> a <?php echo min($startRow_rsLinks + $maxRows_rsLinks, $totalRows_rsLinks) ?> de <?php echo $totalRows_rsLinks ?> </div></td>
</tr>
<tr>
<td><table width="100%" align="center" cellpadding="0" cellspacing="0" class="bordeGris">
<tr class="bordeGrisFondo">
<td width="10"> </td>
<td width="120"><div align="center"><strong>Foto</strong></div></td>
<td height="25"><div align="left"><strong>Datos</strong></div></td>
<td width="100"><div align="center"><strong>Acciones</strong></div></td>
</tr>
<?php do { ?>
<tr onmouseover="changeto(event, '<? echo $colCeld; ?>')" onmouseout="changeback(event, '<? echo $colCeldOut; ?>')">
<td width="10" height="90"> </td>
<td width="120" height="90"><div align="center">
<?php
$archivo = '../_recursos/links/'.$row_rsLinks['foto'];
if($row_rsLinks['foto']!='' && file_exists($archivo))
{
$foto = $row_rsLinks['foto'];
}
else
{
$foto = 'default.jpg';
}
?>
<img src="../../_recursos/links/<?= $foto;?>" /></div></td>
<td height="90"><div align="left">
<p><strong><?php echo $row_rsLinks['nombre']; ?> </strong></p>
<p><a href="http://<?php echo $row_rsLinks['link']; ?>" target="_blank"><?php echo $row_rsLinks['link']; ?></a></p>
</div></td>
<td width="100" height="90">
<div align="center">
<? if($row['modificacion']){?>
<a href="links_mod.php?linkID=<?php echo $row_rsLinks['linkID']; ?>"><img src="iconos/mod.gif" alt="modificar" width="16" height="14" border="0" /></a>
<? } ?>
<? if($row['baja']){?>
- <a href="links_del.php?linkID=<?php echo $row_rsLinks['linkID']; ?>"><img src="iconos/del.gif" alt="Eliminar" width="16" height="14" border="0" /></a>
<? } ?>
</div></td>
</tr>
<tr onmouseover="changeto(event, '<? echo $colCeld; ?>')" onmouseout="changeback(event, '<? echo $colCeldOut; ?>')">
<td colspan="6"><div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/linea_punteada_vertical.gif"><div align="center"></div></td>
</tr>
</table>
</div></td>
</tr>
<?php } while ($row_rsLinks = mysql_fetch_assoc($rsLinks)); ?>
</table></td>
</tr>
<tr>
<td><table width="20%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="23%" align="center"><?php if ($pageNum_rsLinks > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_rsLinks=%d%s", $currentPage, 0, $queryString_rsLinks); ?>"><img src="First.gif" border=0></a>
<?php } // Show if not first page ?> </td>
<td width="31%" align="center"><?php if ($pageNum_rsLinks > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_rsLinks=%d%s", $currentPage, max(0, $pageNum_rsLinks - 1), $queryString_rsLinks); ?>"><img src="Previous.gif" border=0></a>
<?php } // Show if not first page ?> </td>
<td width="23%" align="center"><?php if ($pageNum_rsLinks < $totalPages_rsLinks) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_rsLinks=%d%s", $currentPage, min($totalPages_rsLinks, $pageNum_rsLinks + 1), $queryString_rsLinks); ?>"><img src="Next.gif" border=0></a>
<?php } // Show if not last page ?> </td>
<td width="23%" align="center"><?php if ($pageNum_rsLinks < $totalPages_rsLinks) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_rsLinks=%d%s", $currentPage, $totalPages_rsLinks, $queryString_rsLinks); ?>"><img src="Last.gif" border=0></a>
<?php } // Show if not last page ?> </td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<?php } // Show if recordset not empty ?>
</div></td>
</tr>
</table>
<?php if ($totalRows_rsLinks == 0) { // Show if recordset empty ?>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="bordeGrisFondo">
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center"><img src="iconos/alerta.gif" width="26" height="24" border="0" /></div></td>
</tr>
<tr>
<td><div align="center"><strong>Lo Siento! </strong></div></td>
</tr>
<tr>
<td><div align="center"><strong>No hay registros disponibles.</strong></div></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<?php } // Show if recordset empty ?>
</body>
</html>
<?php
mysql_free_result($rsLinks);
?>
Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat