Soort van BOT?

Gestart doorWouterr28 reacties78 weergaven

29 berichten · pagina 2 van 2

Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

hoe kan ik dan zorgen dat hij elk kwartier kijkt of er nieuwe betalingen binnen zijn bupatih? (Bij die bot is dat zo, die kijkt elk kwartier of er betalingen zijn?!?)
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Snabbotube schreef:
hoe kan ik dan zorgen dat hij elk kwartier kijkt of er nieuwe betalingen binnen zijn bupatih? (Bij die bot is dat zo, die kijkt elk kwartier of er betalingen zijn?!?)
Met een cronjob elke 15 minuten de bot laten draaien.
0
Berichten
1.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
weet er iemand een goede tut over cURL?? wil er ook wel meer van weten yummie
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Snabbotube schreef:
hoe kan ik dan zorgen dat hij elk kwartier kijkt of er nieuwe betalingen binnen zijn bupatih? (Bij die bot is dat zo, die kijkt elk kwartier of er betalingen zijn?!?)
Je hebt natuurlijk al toestemming gevraagd en een goede reden om het te gebruiken ? biggrin
0
Berichten
5.957
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Rohimma schreef:
weet er iemand een goede tut over cURL?? wil er ook wel meer van weten yummie
Op php.net zelf, het is niet moeilijk.
0
Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

php.net vind ik altijd redelijk moeilijk?
is er geen makelijker sadley
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
php.net is juist handig, alleen misschien vervelend voor jou, omdat het in het engels is?
0
Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

nou engels is op zich niet echt he grootste probleem, maar ik vind het altijd zo onhandig bijvoorbeeld:

resource curl_init ([ string $url = NULL ] )


http://www.php.net/manual/en/function.curl-init.php
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Snabbotube schreef:
nou engels is op zich niet echt he grootste probleem, maar ik vind het altijd zo onhandig bijvoorbeeld:

resource curl_init ([ string $url = NULL ] )
http://www.php.net/manual/en/function.curl-init.php

dat houd in dat de functie curl_init() een resource als output heeft, en geen verplichte parameters, optioneel is om de url mee te geven (iets naar onder staat wat voor waardes de parameters moeten hebben)
0
Berichten
5.957
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het is geen tut maar meer naslagwerk, ik vind de voorbeelden altijd wel goed.
0
Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

En wat werkt hier dan nie aan?
Spoiler tonen
[COLOR= #0000BB]<?php[/COLOR]
    [COLOR= #FF8000]/**
     * One2xs loterij-ophaal script
     * 
     * Het script is vrij aan te passen zo lang deze tekst er nog blijft staan
     * Als je de tekst weg wil hebben dan graag contact met mij opnemen via One2xs
     * 
     * @author Luukvdo
     * @copyright Luukvdo 2009-2011
     * @link http://www.one2xs.com/threads/7395
     */

    
    //Config[/COLOR]
    [COLOR= #0000BB]$user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Snabbotube[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$nFont[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]arial.ttf[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$nFontSize[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]9[/COLOR][COLOR= #007700];[/COLOR]
    
    [COLOR= #0000BB]$ch[/COLOR] [COLOR= #007700]=[/COLOR] curl_init[COLOR= #007700]();[/COLOR]

    curl_setopt[COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700],[/COLOR] CURLOPT_URL[COLOR= #007700],[/COLOR] [COLOR= #DD0000]http://www.one2xs.com/profiel/bekijk?gebruiker=[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$user[/COLOR][COLOR= #007700]);[/COLOR]
    
    [COLOR= #0000BB]$content[/COLOR] [COLOR= #007700]=[/COLOR] curl_exec[COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700]);[/COLOR]
    
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$content[/COLOR] [COLOR= #007700]===[/COLOR] FALSE[COLOR= #007700])[/COLOR]
        [COLOR= #0000BB]$img_content[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Curl error: [/COLOR] [COLOR= #007700].[/COLOR] curl_error[COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700]);[/COLOR]

    [URL="http://www.php.net/else"]else[/URL] 
    [COLOR= #007700]{[/COLOR]
        [URL="http://www.php.net/preg_match"]preg_match[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000].gif" title="(.*)" alt="[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$content[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$naam[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/preg_match"]preg_match[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]geleden voor het laatst gezien<br />(.*) punten<br />[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$content[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$punten[/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]$naam[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]]) && ![/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$punten[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]]))[/COLOR]
            [COLOR= #0000BB]$img_content[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Ik ben op het moment Offline en heb 0 punten.[/COLOR][COLOR= #007700];[/COLOR]

        [URL="http://www.php.net/else"]else[/URL]
            [COLOR= #0000BB]$img_content[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Ik ben op het moment [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$naam[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000] en ik heb [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$punten[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000].[/COLOR][COLOR= #007700];
        
    }[/COLOR]

    [COLOR= #FF8000]// Get status length[/COLOR]
    [COLOR= #0000BB]$uCoords[/COLOR] [COLOR= #007700]=[/COLOR] imagettfbbox[COLOR= #007700]([/COLOR][COLOR= #0000BB]$nFontSize[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$nFont[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$img_content[/COLOR][COLOR= #007700]);[/COLOR]

    [COLOR= #FF8000]// Create img[/COLOR]
    [COLOR= #0000BB]$uImg[/COLOR] [COLOR= #007700]=[/COLOR] imagecreatetruecolor[COLOR= #007700]([/COLOR][COLOR= #0000BB]$uCoords[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]2[/COLOR][COLOR= #007700]] +[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]13[/COLOR][COLOR= #007700]);[/COLOR]

    [COLOR= #FF8000]// Creating color for text[/COLOR]
    [COLOR= #0000BB]$colBlack[/COLOR] [COLOR= #007700]=[/COLOR] imagecolorallocate[COLOR= #007700]([/COLOR][COLOR= #0000BB]$uImg[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$colWhite[/COLOR] [COLOR= #007700]=[/COLOR] imagecolorallocate[COLOR= #007700]([/COLOR][COLOR= #0000BB]$uImg[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]255[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]255[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]255[/COLOR][COLOR= #007700]);[/COLOR]

    [COLOR= #FF8000]// Set background white[/COLOR]
    imagefilledrectangle[COLOR= #007700]([/COLOR][COLOR= #0000BB]$uImg[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$uCoords[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]2[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]13[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$colWhite[/COLOR][COLOR= #007700]);[/COLOR]
    
    [COLOR= #FF8000]// And make this white background transparant[/COLOR]
    imagecolortransparent[COLOR= #007700]([/COLOR][COLOR= #0000BB]$uImg[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$colWhite[/COLOR][COLOR= #007700]);[/COLOR]
    
    [COLOR= #FF8000]// Put text on image[/COLOR]
    imagettftext[COLOR= #007700]([/COLOR][COLOR= #0000BB]$uImg[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$nFontSize[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]10[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$colBlack[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$nFont[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$img_content[/COLOR][COLOR= #007700]);[/COLOR]
    
    [COLOR= #FF8000]// Output the image[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Content-type: image/png"[/COLOR][COLOR= #007700]);[/COLOR]
    imagepng[COLOR= #007700]([/COLOR][COLOR= #0000BB]$uImg[/COLOR][COLOR= #007700]);[/COLOR]
    
    [COLOR= #FF8000]// Delete image from temp files[/COLOR]
    imagedestroy[COLOR= #007700]([/COLOR][COLOR= #0000BB]$uImg[/COLOR][COLOR= #007700]);[/COLOR]

    curl_exec[COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700]);[/COLOR]
    
    curl_close[COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700]);[/COLOR]
    ?>
er komt gewoon helemaal niks..
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je moet ingelogd zijn om een profiel te bekijken
0
Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

echt?
//edit bedankt.
//edit 2 dan moet er tog komen dat ik geen punten heb en offline ben?
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Als je preg_match klopt wel
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