Teller van exchangesite blijft op 0 staan

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Pagina: 1 2 volgende »

Robin .

robin .

06/05/2015 20:30:27
Quote Anchor link
Beste,

Ik heb een vraag.
Ik heb een traffic exchange website, werkt prima maar heb 1 probleem met me exhange.
Na ongeveer 6-9 websites geladen stopt die er mee.

Hopelijk kan iemand mij daar mee helpen waarom die dat doet.

Dit is mijn file
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-61989399-1', 'auto');
  ga('send', 'pageview');

</script>
<!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=utf-8" />
<title>Traffic Exchange</title>
<link href="css/clon.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include('header.php');?>
<?php include('admin/includes/connection.php');?>
<? if($_SESSION['user_id']!='') { ?>
<div id='bottom-content-area'>
<div class='margin-top-10'></div>
<div class='margin-top-20'></div>
<?php if($_SESSION['limt']!='')
{
    $_SESSION['limt']= 0;
}
?>


<script>

 window.onload = function() {
    /* set your parameters(
    number to countdown from,
    pause between counts in milliseconds,
    function to execute when finished
    )
    */
   // startCountDown(15, 1000, myFunction);
    }

    function startCountDown(i, p, f) {
        
    // store parameters
    var pause = p;
    var fn = f;
    // make reference to div
    var countDownObj = document.getElementById("countDown");
    if (countDownObj == null) {
    // error
    alert("div not found, check your id");
    // bail
    return;
    }
    countDownObj.count = function(i) {
    // write out count
    countDownObj.innerHTML = i;
    if (i == 0) {
    // execute function
    fn();
    // stop
    return;
    }
    setTimeout(function() {
    // repeat
    countDownObj.count(i - 1);
    },
    pause
    );
    }
    // set it going
    countDownObj.count(i);
    }

    function myFunction() {
    //alert("hi alex");
    
    ShowOptions(1);
    }
function popUpClosed() {
    window.location.reload();
}
var ajaxObj=new getAjaxObject();

function getAjaxObject()
        {
          var XMLHttpRequestObject = false;
          if (window.XMLHttpRequest)
              {
                   XMLHttpRequestObject = new XMLHttpRequest();
              }
              else if (window.ActiveXObject)
              {
                 XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
              }
              if (!XMLHttpRequestObject)
              {
                 alert("Your browser does not support Ajax.");       return false;
              }
          return XMLHttpRequestObject;
        }
//var loads=false;
function createpopup(website)
{
    //alert('popup');
popupWindow = window.open(website,'mypopup','width=400,height=400');
//popupWindow.onclose=function(){alert('unload');}    
//popupWindow.onclose = function(){ alert('unload');}
//popupWindow.onbeforeunload=function(){ alert('unload');}
}
function closeMe(evt) {
    alert('ff');
    /*if (typeof evt == 'undefined') {
        evt = window.event; }
    if (evt && evt.clientX >= (window.event.screenX - 150) &&
        evt.clientY >= -150 && evt.clientY <= 0) {
        return "Do you want to log out of your current session?";
    }*/
}
var callback = function(){
  //alert("foo");
  window.location.reload();
};
function pollForWindowClosure(){
  if(popupWindow.closed){
    callback();
    return;
  }
  
  setTimeout(pollForWindowClosure, 99999999999999999);
}


function changepopupurl(website)
{
    window.popupWindow.location=website;
    //popupWindow.onbeforeunload = function(){ alert('unload');}
///popupWindow = window.open(website,'mypopup','width=400,height=400');    
}
function ShowOptions(id)// kahi se call karo is ko
    {
        var limm= document.getElementById('sit').value;
     //popupWindow = window.open(''name','width=400,height=400');
     //if(loads)
    // {
    //window.opener.location.href='http://www.google.com';
    //alert('window');
    //}
    var xmlHTTPObject=new getAjaxObject();
     var lim= document.getElementById('site').value;
         var limm= document.getElementById('sit').value;
          var website= document.getElementById('siturl').value;
          //alert(website);
    
        if(id==0)
        {
            //Opt();
            
 
        //loads=true;
         createpopup(website);
         pollForWindowClosure();
        }
        else
        {
            changepopupurl(website);
        }
    
      
//popupWindow.onunload = function() {
  //  if (window.opener && !window.opener.closed) {
   //     window.opener.popUpClosed();
 // }
 //alert('window');
//};
     // popupWindow.focus();
     var url='get-options.php?lim='+lim;
     var parameters='123';
      var timers;
 if(xmlHTTPObject)
           {
              if (xmlHTTPObject.readyState == 4 || xmlHTTPObject.readyState == 0)
              {//alert(xmlHTTPObject.readyState);
                   xmlHTTPObject.open("GET", url, true);
                  // alert('open');
                  xmlHTTPObject.onreadystatechange =function()
                    {
                        if (xmlHTTPObject.readyState == 4)
                           {
                              if (xmlHTTPObject.status == 200)
                              {
                                try
                                    {
                                         var XMLResponse = xmlHTTPObject.responseText;
                                         timers =XMLResponse;
                                         document.getElementById('sites').innerHTML=XMLResponse;
                                         var countDowntime=document.getElementById('countDowntime').value;
                                         //alert(countDowntime);
                                         Opt(countDowntime);
                                         startCountDown(countDowntime, 1000, myFunction);
                                }
                                catch(e){}
                              }
                           }  
                    };
                 xmlHTTPObject.send(null);
              }
            }
                //setTimeout ( "ShowOptions(1)", 999999999999999999);
                return false;  
        
    
    }
function Opt(countDowntime)// kahi se call karo is ko
    {
var xmlHTTPObject=new getAjaxObject();
         var url='update.php?countDowntime='+countDowntime;
     var parameters='123';
      var timers;
  if(xmlHTTPObject)
           {
              if (xmlHTTPObject.readyState == 4 || xmlHTTPObject.readyState == 0)
              {
                   xmlHTTPObject.open("GET", url, true);
                    xmlHTTPObject.onreadystatechange = function ()
                    {
                        if (xmlHTTPObject.readyState == 4)
                           {
                              if (xmlHTTPObject.status == 200)
                              {
                                try
                                    {
                                         var XMLResponse = xmlHTTPObject.responseText;
                                            //alert(XMLResponse);                    
                                    }
                                catch(e){}
                              }
                           }  
                    };
                 xmlHTTPObject.send(null);
              }
            }
            //setTimeout ( "ShowOptions()", 9999999999999999999);
                return false;  
}    
</script>
<div  style="display:block" class="vertical-top" id="sites">
<?

$queryz2
= mysql_query("SELECT * FROM userwebsite WHERE minutes > '0' ORDER BY RAND()  LIMIT 1");
$resz2 = mysql_fetch_array($queryz2);
    mysql_query("UPDATE userwebsite SET hits = hits + 1 WHERE uwid='".$resz5['uwid']."'")
      or die(mysql_error());
mysql_query("UPDATE userwebsite SET minutes = minutes - 2 WHERE uwid='".$resz5['uwid']."'")
    or die(mysql_error());
mysql_query("UPDATE userwebsite SET minutes = minutes + 1 WHERE userid='".$_SESSION['user_id']."'")
      or die(mysql_error());
mysql_query("UPDATE members SET hits = hits + 1 WHERE userid='".$resz5['userid']."'")
      or die(mysql_error());
mysql_query("UPDATE members SET dohits = dohits + 1 WHERE userid='".$_SESSION['user_id']."'")
      or die(mysql_error());
mysql_query("UPDATE stats SET totaalhits = totaalhits + 1 ")
      or die(mysql_error());

?>


<input type="hidden" id="site" name="site" value="0">

<input type="hidden" id="sit" name="sit" value="<?=$resz5['uwid'] ?>">
<input type="hidden" id="siturl" name="siturl" value="<?=$resz5['website'] ?>">
<!--<input type="hidden" id="site" name="site" value="0">
<input type="hidden" id="sit" name="sit" value="15">
<input type="hidden" id="siturl" name="siturl" value="google.com">-->
<div class='session-status-section' id='explanation-with-start-button-section'>
<div class='text-align-center'>
<b>Warning first add a <a href="websites.php">Website</a> on your account before you go show websites! Or you dont will earn minutes!
The Traffic Exchange lets you earn Minutes by viewing websites. Your Minutes are automatically used to show your <a href="websites.php">Websites</a> to people all over the world.
</div>
<div class='margin-top-10 text-align-center'>
<form name="traffic" id="traffic" action="" method="post" onsubmit="javascript:Opt()"  accept-charset="UTF-8">
<div>
<center>
<input type="button" id="addRegisteruser" name="addRegisteruser" onclick="javascript:ShowOptions(0)" class="myButton" value="Start Traffic Exchange">
</center>
</div>


</form>
</div>
</div>
<!--<div class='session-status-section hidden' id='loading-traffic-exchange-section'>
<table style='width: 100%'>
<tr>
<td align='center'>
<table>
<tr>
<td align='right' style='width: 20px;'>
<div class='icon icon-ajax-loader' style='width: 20px; height: 16px;'></div>
</td>
<td align='left' class='bold' style='width: 150px; vertical-align: top'>
Loading Traffic Exchange
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class='session-status-section hidden' id='recently-viewed-websites-section'>
<table style='width: 100%'>
<tr>
<td class='vertical-top' style='padding-left: 30px'>
<div style='width: 500px;'>
<table>
<tbody id='recently-viewed-websites'>
<tr class='hidden website-row'>
<td style='vertical-align: top'>
<div class='timer'></div>
</td>
<td class='padding-left-5' style='vertical-align: top; padding-top: 3px'>
<a class='address' href='#' rel='external' style='font-size: 16px'></a>
<div class='hidden alternate_id'></div>
</td>
<td class='padding-left-5' style='vertical-align: top; padding-top: 3px'>
<div class='icon icon-cross-shield'>
<span class='noop-link block-website-link' style='font-size: 14px;'>
Block
</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</td>
<td class='vertical-top' style='padding-right: 30px'>
<table>
<tr>
<td>
<div class='bold' style='font-size: 16px'>
All-Time Minutes Earned
</div>
</td>
</tr>
<tr>
<td style='padding-top: 3px'>
<div class='text-align-center' style='font-size: 10px'>
(Updates every few minutes)
</div>
<div class='text-align-center bold' id='minutes-earned' style='color: #4D7D4B; font-size: 16px'></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class='session-status-section hidden' id='cant-display-website-section'>
<div class='bold text-align-center'>
Traffic Exchange Window is frozen or closed. Please click on the button to re-start.
</div>
<div class='text-align-center'>
<button class='open-traffic-exchange-link'>
Start Traffic Exchange
</button>
</div>
</div>
<div class='session-status-section hidden' id='temporarily-banned-section'>
<div class='bold text-align-center'>
Your browser doesn't load many of the websites. Please close other resource intensive programs. You can use the Traffic Exchange again in 24 hours.
</div>
</div>
<div class='session-status-section hidden' id='please-update-your-viewer-software'>
<div class='success'>
A new version of HitLeap Viewer is available. Please download it with your normal browser.
</div>
</div>
<div class='session-status-section hidden' id='javascript-disabled-message-section'>
<table style='width: 100%'>
<tr>
<td align='center'>
<span class='text-align-center icon icon-cross-small bold'>
Either your Javascript is not enabled for all domains or your connection is too slow. Adjust your settings and restart your session
</span>
</td>
</tr>
</table>
</div>
<div class='session-status-section hidden' id='opera-not-supported-section'>
<table style='width: 100%'>
<tr>
<td align='center'>
<span class='text-align-center icon icon-cross-small bold'>
The Opera Browser is not supported. Use Firefox or Chrome.
</span>
</td>
</tr>
</table>
</div>
<div class='session-status-section hidden' id='exchange-session-not-available'>
<table style='width: 100%'>
<tr>
<td align='center'>
<span class='text-align-center icon icon-cross-small bold'>
Only one account per IP can use the Traffic Exchange. Please try again in a few minutes.
</span>
</td>
</tr>
</table>
</div>
-->
</div>
<table class='margin-top-20' id='exchange-earning-ratios'>
<tr>
<td class='vertical-top' style='padding-left: 50px; padding-top: 20px'>
<div class='margin-top-20'></div>
<div class='bold font-size-24'>
Upgrade account
</div>
<div class='margin-top-10'></div>
You have a <a href="premium.php">Premium</a> account
</td>
</tr>
</table>

<div class='margin-top-40 vertical-line-spacer'></div>
</div>
<?
} else { ?>

<div id='bottom-content-area'>
<?php
echo '<h3><a href="login.php">Log in</a> with your creditentials to use these features</h3>';
?>

</div>
<? } ?>
<?php include('footer.php')?>

</body>
</html>

- Aar -:
Gelieve in het vervolg bij code de [code][/code]-tags gebruiken.
Hier kan je meer lezen over de mogelijke opmaakcodes.
Alvast bedankt!
Gewijzigd op 06/05/2015 20:36:46 door - Ariën -
 
PHP hulp

PHP hulp

28/03/2024 10:31:55
 
- Ariën  -
Beheerder

- Ariën -

06/05/2015 20:33:27
Quote Anchor link
Wat bedoel je met: 'stopt er mee'?
Wat doet het script dan wel en wat doet deze dan niet? Iets meer uitleg is wel graag gewenst.
 
Robin .

robin .

06/05/2015 20:34:30
Quote Anchor link
- Aar - op 06/05/2015 20:33:27:
Wat bedoel je met: 'stopt er mee'?
Wat doet het script dan wel en wat doet deze dan niet? Iets meer uitleg is wel graag gewenst.


Dat blijft de teller op 0 staan en laad geen websites meer.

u kunt het testen op

http://gladlytraffic.com
 
- Ariën  -
Beheerder

- Ariën -

06/05/2015 20:36:24
Quote Anchor link
Waar kunnen we het precies testen op die site? Heb je een tijdelijke inlog misschien?

Verder heb ik je titel even verduidelijkt naar iets wat je probleem aangeeft.
Gewijzigd op 06/05/2015 20:37:39 door - Ariën -
 
Robin .

robin .

06/05/2015 20:37:36
Quote Anchor link
Bij traffic exhange op de website als u inlogt.

Inlog phphulp
ww 12345

Kunt u mee inloggen om te testen
 
- Ariën  -
Beheerder

- Ariën -

06/05/2015 20:41:50
Quote Anchor link
Zet eerst eens foutrapportage aan door dit bovenaan te plaatsen:

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
<?php
error_reporting(E_ALL);
ini_set('display_errors',1);
?>
Gewijzigd op 06/05/2015 20:49:24 door - Ariën -
 
Robin .

robin .

06/05/2015 20:43:56
Quote Anchor link
- Aar - op 06/05/2015 20:41:50:
Zet eerst eens foutrapportage aan door dit bovenaan te plaatsen:

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
<?php
error_reporting(E_ALL);
ini_set('display_errors,1);
?>


Dan werkt me script niet meer als ik dat er in plaats.
 
- Ariën  -
Beheerder

- Ariën -

06/05/2015 20:49:41
Quote Anchor link
Er miste een quote, try again.
Als jet meezit moet je wat meer foutmeldingen zien.
Gewijzigd op 06/05/2015 20:50:13 door - Ariën -
 
Robin .

robin .

06/05/2015 20:54:31
Quote Anchor link
Als ik die file er in zet krijg ik dit.
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
dus dan kan ik helemaal niet zien wat er fout is
 
- Ariën  -
Beheerder

- Ariën -

06/05/2015 20:56:15
Quote Anchor link
Vreemd, ik denk dat je het verkeerd neerzet?

Verder zie ik dat het script ook foutafhandeling mist. Ook gebruik van de MySQL_*() functies inmiddels afgeraden.

Hoe kom je aan dit script, misschien is er wel een update voor. Wat ik eigenlijk wel hoop.
Gewijzigd op 06/05/2015 20:57:44 door - Ariën -
 
Robin .

robin .

06/05/2015 20:58:03
Quote Anchor link
nee zet gewoon boven aan de file, heb ook al onderaan geprobeerd maar dan krijg je het zelfde
 
- Ariën  -
Beheerder

- Ariën -

06/05/2015 20:59:50
Quote Anchor link
Vreemd....
Misschien dat de hosting wat blokkeert, zou wel idioot zijn in dat geval.
maar ze verwijzen naar je error_log. Kan je die niet bekijken, deze staat vaak buiten je webrooot (www / public_html / htdocs etc..)

Verder is het script behoorlijk verouderd dat het binnen afzienbare tijd niet meer zal werken.
Gewijzigd op 06/05/2015 21:01:45 door - Ariën -
 
Robin .

robin .

06/05/2015 21:06:46
Quote Anchor link
- Aar - op 06/05/2015 20:59:50:
Vreemd....
Misschien dat de hosting wat blokkeert, zou wel idioot zijn in dat geval.
maar ze verwijzen naar je error_log. Kan je die niet bekijken, deze staat vaak buiten je webrooot (www / public_html / htdocs etc..)

Verder is het script behoorlijk verouderd dat het binnen afzienbare tijd niet meer zal werken.


Kan niet bij de error logs komen.
Ik zit bij fatcow.com




Toevoeging op 06/05/2015 21:08:54:

maar u kunt dus niet aan de script zien waarom die mee stopt met laten zien van websites
 
- Ariën  -
Beheerder

- Ariën -

06/05/2015 21:13:59
Quote Anchor link
Met dit bovenaan moet je mogelijk toch de site blijven zien:
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
<?php
error_reporting(E_ALL);
ini_set('display_errors',1);
?>


Probeer anders eens zonder de regel van error_reporting of die van ini_set?
Als die melding blijft zou ik eens een ticket naar je hosting schieten. Maar wees erop voorbereid dat je script een grote revisie/update nodig heeft. Mogelijk kan deze binnen afzienbare tijd niet meer werken, omdat er geen MySQLi wordt gebruikt.
 
Robin .

robin .

06/05/2015 21:37:41
Quote Anchor link
zonder de error_ doet die het wel,

kunt u nu zien dan wat er aan de hand is?
 
- Ariën  -
Beheerder

- Ariën -

06/05/2015 21:40:25
Quote Anchor link
Ze blokkeren error_reporting(); vreemde zaak. Verder zie ik geen verschil.

Geen idee waar je dit script vandaan hebt, maar is er geen update van beschikbaar?
 
Robin .

robin .

06/05/2015 22:00:27
Quote Anchor link
Nee dit is het enige script ervan .
 
- Ariën  -
Beheerder

- Ariën -

06/05/2015 22:15:35
Quote Anchor link
Ik zie de fout ook niet zo snel, maar het valt vast wel te debuggen. Ik zie wel dat er niet wordt doorgestuurd in JavaScript en mogelijk update.php

Verder heeft het script tevens ook groot onderhoud nodig om het in de toekomst nog te laten werken.
 
Robin .

robin .

06/05/2015 22:30:12
Quote Anchor link
wilt u de update.php script zien dan?


Ja dan update ik wel na die tijd
 
- Ariën  -
Beheerder

- Ariën -

06/05/2015 22:30:57
Quote Anchor link
Laat de relevante code maar eens zien.
Gewijzigd op 06/05/2015 22:31:09 door - Ariën -
 
Robin .

robin .

06/05/2015 22:53:23
Quote Anchor link
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
include("admin/includes/connection.php");
session_start();
error_reporting(0);
if(isset($_REQUEST['countDowntime']))
{

    
    $query3 = mysql_query("Select * from userminutes WHERE userid= '".$_SESSION['user_id']."' ");
    $res3 = mysql_fetch_array($query3);
    $min=$res3['minutes'] + intval($_REQUEST['countDowntime']);
     mysql_query("UPDATE userminutes SET minutes='".$min."' WHERE  userid='".$_SESSION['user_id']."'")or die(mysql_error());
    
    $query37 = mysql_query("Select * from users WHERE id= '".$_SESSION['user_id']."' ");
    $res37 = mysql_fetch_array($query37);
    $query379 = mysql_query("Select * from referer WHERE name= '".$res37['name']."' ");
    $numres379 = mysql_num_rows($query379);
    if($numres379>0)
    {

        $res379 = mysql_fetch_array($query379);
    
    
        $query39 = mysql_query("Select * from userminutes WHERE userid= '".$res379['userid']."' ");
        $res39 = mysql_fetch_array($query39);
     //$mins=$res39['minutes'] + 1;
        $mins=$res39['minutes'] + ((intval($_REQUEST['countDowntime']) * 20) / 100) ;
        mysql_query("UPDATE userminutes SET minutes='".$mins."' WHERE  userid='".$res39['userid']."'")or die(mysql_error());
    }

    
      $query33 = mysql_query("Select * from user_hits WHERE userid= '".$_SESSION['user_id']."' ");
$res33 = mysql_fetch_array($query33);
$mins=$res33['hits'] +1;

     mysql_query("UPDATE user_hits SET hits='".$mins."' WHERE  userid='".$_SESSION['user_id']."'")
      or die(mysql_error());
      

              $todate=getdate();
      $toyear=$todate['year'];
      $tomonth=$todate['mon'];
      $today=$todate['mday'];
  $datee=$today.'-'.$tomonth.'-'.$toyear;
   $todays_date=strtotime($today.'-'.$tomonth.'-'.$toyear);
    //  $result = mysql_query("SELECT created, hits FROM webhits WHERE created='".$datee."' and   userid = '".$_SESSION['user_id']."'") or die("MySQL Login Error: ".mysql_error());
    $result = mysql_query("SELECT created, hits FROM webhits WHERE created=CURRENT_DATE and   userid = '".$_SESSION['user_id']."'") or die("MySQL Login Error: ".mysql_error());
    
if (mysql_num_rows($result) > 0 ) {
while($rows=mysql_fetch_array($result))
{

$hitss=$rows['hits']+1;
 /*mysql_query("UPDATE webhits SET hits='".$hitss."' WHERE  created='".$datee."' AND  userid = '".$_SESSION['user_id']."'")
      or die(mysql_error());*/

      mysql_query("UPDATE webhits SET hits='".$hitss."' WHERE  created=CURRENT_DATE AND  userid = '".$_SESSION['user_id']."'")
      or die(mysql_error());
    }
        
    }

            else{
            mysql_query("INSERT into webhits values('','".$_SESSION['user_id']."','','1','1',CURRENT_DATE)");
            }

            
            
            
             /* $results = mysql_query("SELECT * FROM webmint WHERE created='".$datee."' and   userid = '".$_SESSION['user_id']."'") or die("MySQL Login Error: ".mysql_error());*/
              $results = mysql_query("SELECT * FROM webmint WHERE created=CURRENT_DATE and userid ='".$_SESSION['user_id']."'") or die("MySQL Login Error: ".mysql_error());
if (mysql_num_rows($results) > 0 ) {
while($rowss=mysql_fetch_array($results))
{

//echo intval($_REQUEST['countDowntime']/60;
 $minu=$rowss['minutes'] + (intval($_REQUEST['countDowntime'])/60);
 /* mysql_query("UPDATE webmint SET minutes='".$minu."' WHERE  created='".$datee."' AND  userid = '".$_SESSION['user_id']."'")      or die(mysql_error());*/
 //echo "UPDATE webmint SET minutes='".$minu."' WHERE  created=CURRENT_DATE AND userid = '".$_SESSION['user_id']."'";

  mysql_query("UPDATE webmint SET minutes='".$minu."' WHERE  created=CURRENT_DATE AND userid = '".$_SESSION['user_id']."'") or die(mysql_error());

        }
        }

        else {
/*mysql_query("INSERT into webmint values('','".$_SESSION['user_id']."','','1','1','".$datee."')");*/

mysql_query("INSERT into webmint values('','".$_SESSION['user_id']."','','1','1',CURRENT_DATE)");
            }

    
    
      
 $qTime = "SELECT * FROM userwebsite WHERE minutes > '0' and src='".SITE_URL."/traffic-exchange' order by uwid ASC LIMIT 1";
    $rsTime = mysql_query($qTime) or die (mysql_error());
    if (mysql_num_rows($rsTime) > 0 ) {
        while ($rowTime = mysql_fetch_assoc($rsTime)) {
        

        $queryz = mysql_query("Select * from userwebsite WHERE minutes > '0'");
$resz = mysql_fetch_array($queryz);
    $hitt=$res2['hits'] + 1;
    mysql_query("UPDATE userwebsite SET hits='".$hitt."' WHERE uwid='".$resz['uwid']."'")
      or die(mysql_error());
      
}}
}

?>
 

Pagina: 1 2 volgende »



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.