Gratis surfbar script!!

Gestart doorJenner14 reacties26 weergaven

15 berichten · pagina 1 van 1

Jenner

Lid · Topicstarter

Berichten
1.544
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo,

Omdat ik veel mensen zie die uitbreidingen zoeken voor hun GPT heb ik er 1 gemaakt die veel mensen zoeken.
Ik heb hem even snel gemaakt.
Omdat ik er nog nooit 1 heb gemaakt weet ik niet of de beveiliging optimaal is maar daar zou ik dan ook graag reacties over willen.

REACTIES GRAAG

DEMO: http://je7.eu/surfbar/

HIER IS HET SCRIPT:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]

[URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]localhost[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]jenner[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]Wachtwoord[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]surfbar[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//Update query (Punten bijgeven)[/COLOR]
[COLOR= #0000BB]$tijd[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]15[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//Seconden[/COLOR]


[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<body style="margin:0;">[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]timestamp[/COLOR][COLOR= #007700]])){[/COLOR]
    
    [COLOR= #FF8000]//UPDATE BEGIN[/COLOR]
    [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]timestamp[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700]() + ([/COLOR][COLOR= #0000BB]$tijd[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]views[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #FF8000]//UPDATE EINDE
    
    
    //ADVERTENTIE BEGIN[/COLOR]
    [COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM `advertenties` WHERE `tegoed` > 0 ORDER BY RAND() LIMIT 1"[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700])){[/COLOR]
        [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]advertentie[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE `advertenties` SET `tegoed` = `tegoed` - 1 WHERE `id` = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]advertentie[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);
    }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$iframeerror[/COLOR] [COLOR= #007700]=[/COLOR] true[COLOR= #007700];
    }[/COLOR]
    [COLOR= #FF8000]//ADVERTENTIE EINDE[/COLOR]
    
    
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Dit is je eerste view in deze sessie.<br />[/COLOR][COLOR= #007700];
    
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
    
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/time"]time[/URL][COLOR= #007700]() >=[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]timestamp[/COLOR][COLOR= #007700]]){[/COLOR]
        
        [COLOR= #FF8000]//UPDATE BEGIN[/COLOR]
        [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]timestamp[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700]() + ([/COLOR][COLOR= #0000BB]$tijd[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]views[/COLOR][COLOR= #007700]]++;[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700])){[/COLOR]
            [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);
        }[/COLOR]
        [COLOR= #FF8000]//UPDATE EINDE
                
        
        //ADVERTENTIE BEGIN[/COLOR]
        [COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM `advertenties` WHERE `tegoed` > 0 ORDER BY RAND() LIMIT 1"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700])){[/COLOR]
            [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]advertentie[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]
            [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE `advertenties` SET `tegoed` = `tegoed` - 1 WHERE `id` = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]advertentie[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);
        }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
            [COLOR= #0000BB]$iframeerror[/COLOR] [COLOR= #007700]=[/COLOR] true[COLOR= #007700];
        }[/COLOR]
        [COLOR= #FF8000]//ADVERTENTIE EINDE[/COLOR]
        
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Goedzo, je hebt weer een pagina bezocht.<br />[/COLOR][COLOR= #007700];
        
        
    }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]timestamp[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700]() + ([/COLOR][COLOR= #0000BB]$tijd[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je ging te snel, nu moet je de advertentie nog een keer bekijken.<br />[/COLOR][COLOR= #007700];
    }
}[/COLOR]
[COLOR= #0000BB]$earn[/COLOR] [COLOR= #007700]= ([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]views[/COLOR][COLOR= #007700]] -[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]) *[/COLOR] [COLOR= #0000BB]0.01[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je hebt nu <strong>[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]views[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]</strong> advertentie(s) bekeken en al [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$earn[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000] euro verdient (1 view is 1 cent)<br />[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Over <strong><span id="countDown">15</span></strong> seconden herlaad de pagina zich en krijg je een nieuwe advertentie te zien.<br />[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<a href="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]advertentie[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]url[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]" target="_blank">Open de advertentie in een nieuw venster.</a><br />[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iframeerror[/COLOR][COLOR= #007700])){[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Er is geen advertentie gevonden.[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<iframe style="border:thin; border-color:#000; border-style:solid;" frameborder="0" height="100%" width="100%" src="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]advertentie[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]url[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"></iframe>[/COLOR][COLOR= #007700];
}[/COLOR]
?>


<script language="javascript">
window.onload = function() {
    count("countDown",<?=$tijd ?>);
}

function count(div,i) {
    var pause = 1000; //Tijd per seconden
    var countDownObj = document.getElementById(div);
    
    countDownObj.count = function(i) {
        // write out count
        countDownObj.innerHTML = i;
        if (i == 0) {
            setTimeout(function() {
            location.reload();
            },pause);
            return;
        }
        
        setTimeout(function() {
            countDownObj.count(i - 1);
        },pause);
    }
    countDownObj.count(i);
}
</script>
</body>


DATABASE:

CREATE TABLE IF NOT EXISTS `advertenties` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `url` varchar(255) NOT NULL,
  `tegoed` int(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `tegoed` (`tegoed`),
  KEY `url` (`url`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;


Wees vriendelijk en zet een link naar www.janerik.eu

Het is niet de bedoeling dat je dit script gaat verkopen.
Je mag dit script wel weggeven maar zonder vergoeding.
Ook graag de links naar deze pagina erbij geven en duidelijk maken dat ik het gemaakt heb.
0
Berichten
1.561
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Is deze voor jouw GPT script?
0
Jenner

Lid · Topicstarter

Berichten
1.544
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Frozenflame schreef:
Is deze voor jouw GPT script?
Nee, Gewoon voor alle scripts.
Er zit ook nog geen detectie bij voor leden enzo.
Maar ik probeer het wel zo makkelijk mogelijk te maken om het te intergreren in je script.
0
Erik

Lid

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Mooi scriptje. smile
0
Jenner

Lid · Topicstarter

Berichten
1.544
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@Erik
Bedankt.

Maar zou alleen tijdcheck voldoende zijn tegen hackers of moet ik iets anders bedenken?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
heb je voorbeeld?
0
Jenner

Lid · Topicstarter

Berichten
1.544
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja, moment ik zet even online.
Maar ik heb al 1 lek gevonden.
Maar die kun je gewoon vermijden door er een inlogsysteem voor te zetten.
Dan is het lek niet meer mogelijk.

EDIT:
Die bug is ook verholpen.
Ik zal even de nieuwe versie online zetten en demo online zetten.

EDIT:
DEMO: http://je7.eu/surfbar/
0
Krm

Lid

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Misschien doen dat je 1 url per dag maar 1 keer kan bekijken net als bij mijn surfbar
0
Jenner

Lid · Topicstarter

Berichten
1.544
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik zal eens effe kijken.
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
iframeborder="0" erin doen en style body margin 0
0
Jenner

Lid · Topicstarter

Berichten
1.544
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dat mag je zelf doen xd.
Het gaat meer om het script.
Niet om de style.
Maar ik zal het wel effe aanpassen.

EDIT:
Style aangepast.
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Ziet er zo beter uit wink
0
Berichten
418
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jenner schreef:
Dat mag je zelf doen xd.
Het gaat meer om het script.
Niet om het script.
Maar ik zal het wel effe aanpassen.

EDIT:
Style aangepast.

Verduidelijking?
0
Tom

Lid

Berichten
3.868
Reputatie
0
Punten
0,02
Lid sinds
Laatst gezien
Ik heb een bug gevonden:
Goedzo, je hebt weer een pagina bezocht.
Je hebt nu 7 advertentie(s) bekeken en al 0.06 euro verdient (1 view is 1 cent)

Als 1 view 1 cent is, dan hoor ik dus al 7 cent te hebben verdient.
0
Jenner

Lid · Topicstarter

Berichten
1.544
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Tom schreef:
Ik heb een bug gevonden:
Goedzo, je hebt weer een pagina bezocht.
Je hebt nu 7 advertentie(s) bekeken en al 0.06 euro verdient (1 view is 1 cent)

Als 1 view 1 cent is, dan hoor ik dus al 7 cent te hebben verdient.

Is geen bug.
Als je de advertentie heb bekeken krijg je er pas een cent bij.
Dit is ook ter beveiliging dat iemand even 1 seconde kijkt.

@appel
Het gaat niet om de style, zal ik even aanpassen.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren