klik-limiet
Code (php)
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
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
<?php
Function PageViewLimit(){
$dbres = mysql_query("SELECT betaald FROM `users` WHERE `login`='{$_SESSION['login']}'");
$data = mysql_fetch_object($dbres);
$paid = $data->betaald = 1;
$clicks = array(20,25,35,50,100); // Aantal clicks per level (gewoon, donateur, silver, gold, admin)
$PvlViews=$clicks[$paid];
$error="
<html>
<head>
<title>Crime55</title>
<link rel=\"stylesheet\" type=\"text/css\" href=\"style2.css\">
</head>
<table width=100%>
<tr>
<td class=\"subTitle\"><b>Kliklimiet</b></td>
</tr>
<tr><td> </td></tr>
<tr>
<td class=\"mainTxt\">
Je mag om de server niet te belasten maar $PvlViews pagina's per minuut bekijken.<br>Wil je meer kliklimiet , doneer dan!
</td></tr>
</table>
</body>
</html>"; // error
session_start();
if(!isset($_SESSION['Pvl'])){
$_SESSION['Pvl']['Time']=time();
$_SESSION['Pvl']['Views']=1;
}
else{
// timer
if((time()-$_SESSION['Pvl']['Time']) >= 60){
$_SESSION['Pvl']['Time']=time();
$_SESSION['Pvl']['Views']=1;
}
else{
$_SESSION['Pvl']['Views']++;
if($_SESSION['Pvl']['Views']>=$PvlViews){
exit($error);
}
}}}?>
Function PageViewLimit(){
$dbres = mysql_query("SELECT betaald FROM `users` WHERE `login`='{$_SESSION['login']}'");
$data = mysql_fetch_object($dbres);
$paid = $data->betaald = 1;
$clicks = array(20,25,35,50,100); // Aantal clicks per level (gewoon, donateur, silver, gold, admin)
$PvlViews=$clicks[$paid];
$error="
<html>
<head>
<title>Crime55</title>
<link rel=\"stylesheet\" type=\"text/css\" href=\"style2.css\">
</head>
<table width=100%>
<tr>
<td class=\"subTitle\"><b>Kliklimiet</b></td>
</tr>
<tr><td> </td></tr>
<tr>
<td class=\"mainTxt\">
Je mag om de server niet te belasten maar $PvlViews pagina's per minuut bekijken.<br>Wil je meer kliklimiet , doneer dan!
</td></tr>
</table>
</body>
</html>"; // error
session_start();
if(!isset($_SESSION['Pvl'])){
$_SESSION['Pvl']['Time']=time();
$_SESSION['Pvl']['Views']=1;
}
else{
// timer
if((time()-$_SESSION['Pvl']['Time']) >= 60){
$_SESSION['Pvl']['Time']=time();
$_SESSION['Pvl']['Views']=1;
}
else{
$_SESSION['Pvl']['Views']++;
if($_SESSION['Pvl']['Views']>=$PvlViews){
exit($error);
}
}}}?>