Page 1 of 1

help Please!!! want to allow multiple browsing.

Posted: Mon Mar 10, 2008 9:58 am
by xceed
Login to clickapic.co.nr

Username:demouser
password:demouser

View this links. at single time.

Code: Select all

http://5.fabriconengineers.com/view.php?ad=11
http://5.fabriconengineers.com/view.php?ad=12
http://5.fabriconengineers.com/view.php?ad=13
You will get error i want that error not to happen.

I want to allow my users to browse unlimited ads at a time.

Can anyone help me?

Please.

The Script for the viewads page is

Code: Select all

<?
session_start();
 
require('config.php');
global $c;
require('data.php');
global $config;
require('funciones.php');
$adse=securedata($_GET["ad"]);
 
if(isset($_GET['example']))
{
die("<body bgcolor='#FFFFFF'></body>");
}
if(!$_GET['ad'])
{
die("<b>Error</b> - You need the advertisement ID.");
}
if(!isset($_COOKIE["usNick"]) && !isset($_COOKIE["usPass"]))
{
      $sqlz = "SELECT * FROM ads WHERE ad_id='$adse'";
      $resultz = mysql_query($sqlz);        
      $myrowz = mysql_fetch_array($resultz);
 
  if(!$loggedin)
 {
 $numero=$myrowz["outside"];
 
      $sqlex = "UPDATE ads SET outside=outside +'1' WHERE ad_id='$adse'";
      $resultex = mysql_query($sqlex);
 }
}
 
 
$checkad = mysql_query("SELECT * FROM ads WHERE ad_id='$adse'");
$ad_exist = mysql_num_rows($checkad);
 
if ($ad_exist<1) {
echo "You can only click an ad once every 24 hours."; exit();
}
 
$ad = mysql_fetch_array($checkad);
?>
 
 
 
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<link rel="stylesheet" type="text/css" href="css.css">
<title><?=$config["title"]?></title>
<script>
var x = 31;
var y = 1;
function startClock() {
    if (x !== 'Done') {
        x = x-y;
        document.frm.clock.value = x;
        setTimeout("startClock()", 1000);
 
    }
    if (x == 0) {
        x = 'Done';
        document.frm.clock.value = x;
               var code = "<?php
if($loggedin==1)
{
$site_code = md5(time().sha1(microtime()));
} else {
$site_code = "undefined";
}
$_SESSION["adcode"] = $site_code;
print($site_code);
 
?>";
               var ad= "<?=$_GET['ad']?>";
    success.location.href="success.php?ad="+ad+"&code="+code+"&verify=1";
    }
}
</script>
</head>
            
            <body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" onLoad="startClock()">
            
            <form name="frm">
             <table border="0" cellpadding="0" cellspacing="0" width="100%">
            
                <tbody>
 
            
                  <tr> 
            
                    <td class="maintopright" style="border-bottom: 2px solid rgb(51, 51, 51); font-family: Verdana; font-size: 13px;" width="50%">
            
                      <div class="maintopright">&nbsp;&nbsp;<img src="images/top_small.png" width="132" height="34" border="0">&nbsp;&nbsp;&nbsp;&nbsp;
            
                      <input name="clock" size="3" readonly="readonly" style="border: medium none ; padding: 0pt; font-size: 25pt; font-family: Verdana; vertical-align: top;" type="text">
            
                      <iframe name="success" src="view.php?example" border="0" framespacing="0" marginheight="0" marginwidth="0" vspace="0" hspace="0" style="vertical-align: top;" frameborder="0" height="40" scrolling="no" width="40"></iframe>
            
                      </div>
            
                    </td>
            
                    <td style="border-bottom: 2px solid rgb(51, 51, 51); font-family: Verdana; font-size: 13px; " align="left" valign="middle" width="50%">
            
                        <strong>Please take the time to visit the sponsor below.<br>
 
            
                        Show your website below for only <a href=advertise.php target=_blank>$1.99</a> per 100 views!</strong>
            
                     </td>
            
                    </tr>
            
                  </tbody>
            
             </table>
            
             <iframe src="<?=$ad["ad_url"]?>" border="0" framspacing="0" marginheight="0" marginwidth="0" vspace="0" hspace="0" frameborder="0" height="100%" scrolling="yes" width="100%"></iframe>
 
            
            </form>
            
            </body>
            
            
</html>

Re: help Please!!! want to allow multiple browsing.

Posted: Mon Mar 10, 2008 11:32 am
by markusn00b
I didn't get an error.
what error are you speaking of?
We're not pyschic

Re: help Please!!! want to allow multiple browsing.

Posted: Tue Mar 11, 2008 12:21 am
by xceed
Its not actally an error but you get a red X sign when the timer stops. i want tick sign insted of this that says account is credited.