vote.php el archivo principal que maneja estos arrays creo. Disculpen por mi ignorancia!
Código PHP:
<?php
ob_start();
include('database.php');
include('links.php');
include('security.php');
$check['updateVoteTime'] = mssql_query("delete from votes where lastVoteDate <= '".time()."'");
?>
<html>
<head>
<title>Vota por RosarioGames!</title>
<style type="text/css">
body,tr,td,th
{
font-family:Arial, Helvetica, sans-serif;
font-size: 11px;
color:#61534a;
}
body
{
background: #000000;
background-image:url(bg.png);
background-repeat:no-repeat;
background-position:top;
}
a { font:normal 12px Tahoma, Helvetica, sans-serif; color:#6b6a6a; text-decoration:none;text-shadow:#000 1px 0px 1px; }
a:hover {font:normal 12px Tahoma, Helvetica, sans-serif; color:#fff; text-decoration:none; text-shadow:#D47F00 1px 0px 1px;}
.fs {
font-family: Tahoma;
font-size: 13px;
color:#624f38;
background: #352a1d;
padding-left:3px;
border:1px #302a22 ;
border-top-color: #302a22;
border-right-color: #302a22;
border-bottom-color: #B89F82;
border-left-color: #302a22;
-moz-border-radius: 4px 4px 4px 4px;
}
.vote {
font-family: Tahoma;
font-size: 13px;
background: #321A19;
padding-left:3px;
border:1px #302a22 ;
border-top-color: #302a22;
border-right-color: #302a22;
border-bottom-color: #B89F82;
border-left-color: #302a22;
-moz-border-radius: 4px 4px 4px 4px;
}
.bTN_CMS_USER {
background-image:url(inp.png);
height:28px;
width:186px;
font-size:11px;
padding-left:4px;
font-family:Arial, Helvetica, sans-serif;
color: #847363;
border:0px;
} </style>
</head>
<body>
<div align="center" style="margin-top: 180px;">
<?php
if(!isset($_GET['vote_id']))
{
echo '';
echo '<table cellpadding="3" cellspacing="4" border="0" width="550">';
for($i=0; $i < count($links); $i++)
{
if($links[$i][3])
{
echo '<tr >';
echo '<td style="background:#281408; border-bottom:#2D2012 1px dashed;" align="left" width="40%"><b><font color=#4b422a>'.$links[$i][0].'</font></b></td>';
echo '<td style="background:#281408; border-bottom:#2D2012 1px dashed;" align="left" >Reward : <b>'.$links[$i][1].'</b></td>';
echo '<td align="center" class=vote><a href="?vote_id='.$i.'" >Vote Now</a></td>';
echo '</tr>';
}
}
echo '</table>';
}
else
{
include('vote.php');
}
?> <br>
<a href="http://mu.rosariogames.net" class="fs"> Volver a la web!
</a></div>
</body>
</html>