what's wrong with the next code: i will pay u

Discussion in 'PHP' started by nevret2, Feb 18, 2008.

  1. #1
    hello, example of a page on my site is http://yourdepo.com/files/47197/ss-test-test

    i get 2000 unique visitors a day to pages like this with bidvertiser/widgetbucks ads. but there is something wrong with this script, i have tested it with adsense/widgetbucks/kontera/adbrite/bidvertiser. all same, pageviews gets counted, but clicks doesnt gets counted

    here the source of folder.php:

    <?php
    	require_once( 'class.captcha.php' );
    
    	if (empty($_POST['session_code'])) 
    		{ $session_code = md5(round(rand(0,40000))); } 
    	else 
    		{ $session_code=$_POST['session_code']; }	
    	
    	$my_captcha = new captcha( $session_code, '__TEMP__/' );
    			
    	
    
    	$do = $_POST['do'];
    	
    	if($foldercaptcha == "0" or $_SESSION[admin] == "1"){
    	$test 	= "1";
    	$do		= "verify";
    	}
    	
    	if ($do == 'verify')
    	{
    		if ($my_captcha->verify( $_POST['password'] ) or $test == "1")
    		{
    ?>
    <script language="JavaScript">
    <!--
    function na_change_img_src(name, nsdoc, rpath, preload)
    { 
      var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
      if (name == '')
        return;
      if (img) {
        img.altsrc = img.src;
        img.src    = rpath;
      } 
    }
    
    function na_preload_img()
    { 
      var img_list = na_preload_img.arguments;
      if (document.preloadlist == null) 
        document.preloadlist = new Array();
      var top = document.preloadlist.length;
      for (var i=0; i < img_list.length-1; i++) {
        document.preloadlist[top+i] = new Image;
        document.preloadlist[top+i].src = img_list[i+1];
      } 
    }
    
    // -->
    </script>
    <script type="text/javascript">
    <!--
    function ShowHide(id) {
        obj = document.getElementsByTagName("div");
        if (obj[id].style.visibility == 'visible'){
        obj[id].style.visibility = 'hidden';
        }
        else {
        obj[id].style.visibility = 'visible';
        }
    }
    //-->
    </script>
    <script LANGUAGE="JavaScript"><!--
    
    function Info()
    {
    if (confirm("Drücken Sie <OK> um den Ornder zu löschen. \nDrücken Sie <Abbrechen> wenn Sie nicht Ordner löschen wollen! \nDer Ordner wird sonst unwiderruflich gelöscht!\nName: <? echo "$foldername"; ?>\nId: <? echo "$folderid"; ?>"))
    location='/dell/<? echo"$folderid"; ?>'
    }
    <!--End-->
    </script><title>YourDepo.com | Link Protection At It's Best.</title>
    <style type="text/css">
    <!--
    .style1 {color: #000000}
    -->
    </style>
    <table align="center" border="0" cellpadding="10" cellspacing="0" width="700">
      <tbody><tr>
        <td><table border="0">
          <tr>
            <td><span class="style4">Download files Secured<iframe src="http://yourdepo.com/yourd/usersonline.php" name="frame1" scrolling="no" frameborder="no" align="center" height = "1px" width = "1px">
    </iframe> |</span> <span class="style3"><a href="<?
    	if($folderwebsiteurl == ""){
    	$folderwebsiteurl = "http://megafiledepo.com/";
    	}
    	echo"$folderwebsiteurl"; ?>" target="_blank"> <? echo"$foldername"; ?></a></span><span class="style4"> |</span></td>
            </tr>
          <tr>
            <td><? if($folderdiscription != ""){ echo"$folderdiscription"; } ?></td>
            </tr>
        </table>  
    	<?
    		if($_SESSION[admin] == "1"){
    		?>    
    	  <table width="100%"  border="0">
            <tr>
              <td>
                <div align="right">&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:Info()"><img src="../img/b_drop.png" width="16" height="16" border="0"></a><a href="/edit/<? echo"$folderid"; ?>"><img src="../img/b_edit.png" width="16" height="16" border="0"></a>
                </div></td>
            </tr>
          </table>
    	                  <?
    		}
    		?>
    	  
    
    </td>
      </tr>
    </tbody></table>
    <div align="center"><br />
      <div align="left">
        <? 
    							$links = explode("\n", $folderlinks);
    						   $i = 0;
    							while ($i <= 60) {
    
    							if($links[$i] != ""){
    							$part = $i+1;
    							
    							//
    							$result = mysql_query("SELECT * 
    												   FROM counter
    												   WHERE id = '$folderid' AND
    												   link = '$i'"); 
    							if ( mysql_num_rows ($result) > 0 )  
    							{
    							// Update SQL!
    							while ($counts = mysql_fetch_array ($result))
    							{
    							$countstat = $counts[counter];
    							}
    							}else{
    							$countstat = "0";
    							}
    							
    							//
    							if($counter[$i] == ""){
    							$counter[$i] = "0";
    							}
    														
    							$host = explode("/", $links[$i]);
    							
    							if(strstr($links[$i],"rapidshare.com")){  
    							$filename = $host[5];
    							}else{
    							$filename = "unknown filename";
    							}
    							?>
        
      </div>
    </div>
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="700">
      <tbody><tr>
        <td><img src="/img/spacr.png" height="3" width="700"></td>
      </tr>
    </tbody></table>
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="700">
      <tbody><tr>
        <td rowspan="3" width="30"><div align="center"><img src="/img/status_na.png" height="16" width="16"></div></td>
        <td rowspan="3" width="120"><strong>File <? echo"$part"; ?></strong>:<br>
          <span class="style4">Downloads: <? echo"$countstat"; ?></span></td>
        <td rowspan="3" width="60"><img src="/img/dl1.png" border="0" name="image<? echo $i; ?>" height="50" width="50"></td>
        <td rowspan="3" width="315">      <strong><? echo"$filename";?><br>
          </strong><span class="style4"><? echo"http://$host[2]";?></span></td>
        <td height="23" valign="bottom" width="175"><div align="center">
    	<? echo"<a href=\"javascript:na_change_img_src('image$i', 'document', '/img/dl2.png', true);\" onClick='window.open(\"/go.php?go=$folderid&goto=$i#$time\", \"Pam\")'>"; ?>
    	<img src="/img/down.png" border="0" height="18" width="160"></a></div></td>
      </tr>
      <tr>
        <td height="4" valign="bottom"><img src="/img/hold.png" height="4" width="1"></td>
      </tr>
      <tr>
        <td height="23" valign="top"><div align="center">
    	<? 
    	if($foldermirror == ""){ $foldermirror = "http://megafiledepo.com/"; }
    	echo" <a href=\"$foldermirror#$time\" target=\"_blank\" >"; ?>
    	<img src="/img/mirrorro.png" border="0" height="18" width="160">
    	</a></div></td>
      </tr>
    </tbody></table>
    <div align="center">
                                <?
    	
    								$i++;
    							}else{
    								$i = 100;
    								}
    
    							}
    							?>
                                <br />
                                <br />
    							<table width="723" border="0">
                                  <tr>
                                    <td>&nbsp;</td>
                                  </tr>
      </table>
    </div>
    							<table align="center" border="0" cellpadding="0" cellspacing="0" width="700">
      <tbody><tr>
        <td><img src="/img/spacr.png" height="3" width="700"></td>
      </tr>
    </tbody></table>
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="700">
      <tbody><tr>
        <td>&nbsp;</td>
      </tr>
    </tbody></table>
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="700">
      <tbody><tr>
        <td><div align="center">  </div></td>
      </tr>
    </tbody></table>
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="700">
      <tbody><tr>
        <td><div align="center">Copyright &copy; 2008 YourDepo.com <a href="http://yourdepo.com/include/rss.php" class="style1">RSS</a></div></td>
      </tr>
    </tbody></table>
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="700">
      <tbody><tr>
        <td></td>
      </tr>
    </tbody></table>
    <table align="center" border="0" cellpadding="10" cellspacing="0" width="700">
      <tbody><tr>
        <td width="475"><div align="center"></div></td>
        <td width="185">&nbsp;</td>
      </tr>
    </tbody></table>
    <a name="werbung" ></a><?
    			exit;	
    		}
    	}
    
    	$pic_url = $my_captcha->get_pic( 4 );
    		
    ?>
    <table align="center" border="0" cellpadding="10" cellspacing="0" width="700">
      <tbody><tr>
        <td><div align="center"><span class="style4">Please enter the four letters or digits that appear in the image opposite.  </span></div></td>
      </tr>
    </tbody></table>
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="700">
      <tbody><tr>
        <td><img src="/img/spacr.png" height="3" width="700"></td>
      </tr>
    </tbody></table>
    <table align="center" border="0" cellpadding="10" cellspacing="0" width="700">
      <tbody><tr>
        <td><form name="form1" method="post" action="">
    	<div> 
    	  <div align="center"><table width="711" border="0">
        <tr>
          <td width="360"><div align="right"><!-- START CUSTOM WIDGETBUCKS CODE --><div><script src="http://api.widgetbucks.com/script/ads.js?uid=6fcUoK3wquwGbpcD"></script></div><!-- END CUSTOM WIDGETBUCKS CODE --></div></td>
          <td width="341"><!-- START CUSTOM WIDGETBUCKS CODE -->
          <div><script src="http://api.widgetbucks.com/script/ads.js?uid=6fcUoK3wquwGbpcD"></script></div><!-- END CUSTOM WIDGETBUCKS CODE --></td>
        </tr>
      </table><br>
    	    </div>
    	  <div align="left"></div>
    	  <table align="center" bgcolor="#cccccc" border="0" cellpadding="0" cellspacing="0">
    					<tr>
    						<td>
    							<img src="/captcha_image.php?img=<? echo"$pic_url"; ?>">
    						</td>
    					</tr>
    			</table>
    	  <div align="center"><br/>
    	    <input type="text" name="password" size="26">
    		<input type="submit" name="Submit" value="OK">
    		<input type="hidden" name="do" value="verify">
    	    <input type="hidden" name="session_code" value="<? echo"$session_code"; ?>">
    	    <br />
    	     <!-- Begin BidVertiser code -->
    <SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=77218&bid=280300" type="text/javascript"></SCRIPT>
    <noscript><a href="http://www.bidvertiser.com/bdv/BidVertiser/bdv_advertiser.dbm">marketing</a></noscript>
    <!-- End BidVertiser code --> <br />
    	    <? if($folderdiscription != ""){ echo"$folderdiscription"; } ?>
    	    <br>
    	        <br>
    	      </div>
    	  </div>
    	</form>
        </td>
      </tr>
    </tbody></table>
    <p>&nbsp;</p>
    Code (markup):
    or the folder.php: http://yourdepo.com/folder.rar

    can someone please tell me whats wrong?

    i can pay u if u want

    thnx,
     
    nevret2, Feb 18, 2008 IP
  2. nevret2

    nevret2 Peon

    Messages:
    518
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    damn people want 50$ to help me:(
     
    nevret2, Feb 18, 2008 IP
  3. Ares

    Ares Member

    Messages:
    47
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #3
    I dont get it, where do you mean "click count" ?[​IMG]
     
    Ares, Feb 19, 2008 IP