• Inloggen
  • Registreer
  • Zoeken
Dit topic
  • Overal
  • Dit topic
  • Dit forum
  • Artikelen
  • Pagina's
  • Forum
  • Downloads
  • Meer opties

ICTscripters

Dé plek voor IT

Dé plek voor IT

Aanmelden

Geavanceerde opties
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
    3. Onopgeloste topics
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
    3. Onopgeloste topics
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
    3. Onopgeloste topics
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  1. Dé plek voor IT - ICTscripters
  2. Forum
  3. Scripting & programmeren
  4. PHP + SQL

Forum

  • Klantfeedback en websitewijzigingen beheren via WhatsApp

    frio 3 december 2026 om 17:35
  • Top List Games

    frio 30 november 2026 om 09:45
  • Praktische workflow voor WhatsApp-berichten vanuit een Excel-lijst

    Jeroen.G 27 november 2026 om 11:17
  • [Beta] wh0.nl: gratis misdaadspel in een 3D-stad, zonder account. Feedback gezocht!

    frio 27 november 2026 om 05:46
  • Maffia Hotel: een browsergame waarin je van lobbygast naar spil van het hotel groeit

    Luc 26 november 2026 om 06:32
  • GEZ Crimevalley source

    frio 23 november 2026 om 16:30
  • Criminolz

    qevanto 14 november 2026 om 14:37
  • Externe testers gezocht — Saphaxis AI Chat Organizer 0.1.59

    FreelanceAP 4 november 2026 om 07:42

Marktplaats

  • 285 Nieuwe Domeinnamen November 2026

    shiga 2 december 2026 om 12:04
  • Ik wil website maken maar weet niks

    frio 13 november 2026 om 20:29
  • [Aanbod] Logo vectoriseren: wazige jpg of AI-logo wordt een scherpe PDF en SVG, vanaf €29

    frio 11 november 2026 om 11:44

captcha vendetta

  • joshua-S
  • 2 april 2012 om 20:58
  • joshua-S
    2 Jaar aanwezig
    Berichten
    177
    • 2 april 2012 om 20:58
    • #1

    beste,

    ik heb een probleempje ik gebruik de vendetta source en mijn captcha doet ut niet ik krijg geen plaatje te zien hier img.php


    PHP
    <?php
    $aant       = "2";//this varable can be 2-40
    $height     = "35";
    $SQUARE     = "1"; //this varable can be 1 = ON, 0 = OFF
    $possible   = 'abdefghjkmnpqrstuvwxyz23456789'; //Characters used in code
    $Background = "AUTO"; // this varible can be AUTO, WHITE, RED, GREEN, BLUE
    $LINES      = "0"; //Draw lines?  this varable can be 1 = ON, 0 = OFF
    $LINES_OVER = "0"; //Draw lines Over text? this varable can be 1 = ON, 0 = OFF
    //Start de sessie
    session_start();
     
      function generateCode($characters,$possible) {
     
          $code = '';
          $i = 0;
          while ($i < $characters) { 
             $code[] = substr($possible, mt_rand(0, strlen($possible)-1), 1);
             $codestr.=substr($possible, mt_rand(0, strlen($possible)-1), 1);
             $i++;
          }
          return $code;
       }
     
    // Maak 't plaatje
    $width= $aant * 35;
    $im = imagecreate($width, $height);
     
    //Achtergrond kleur
    $Background = strtoupper ($Background);
    if ($Background=="AUTO"){
    $bg = imagecolorallocate($im, rand(190,255), rand(190,255), rand(190,255));
    }elseif($Background=="WHITE"){
    $bg = imagecolorallocate($im, 255, 255, 255);
    }elseif($Background=="RED"){
    $bg = imagecolorallocate($im, 255 , 0, 0);
    }elseif($Background=="GREEN"){
    $bg = imagecolorallocate($im, 0, 255, 0);
    }elseif($Background=="BLUE"){
    $bg = imagecolorallocate($im, 0, 0, 255);
    }else{
    $bg = imagecolorallocate($im, 255, 255, 255);
    }
     
    // Genereer de code
    $code= generateCode($aant,$possible);
     
    if($LINES=="0" ){
    // Teken variabele lijnen
    $i=0;
    while( $i<($width*$height)/150) {
        $noise_color = imagecolorallocate($im, rand(250,255), rand(150,255), rand(150,255));
        imageline($im, rand(0,$width), rand(0,$height), rand(0,$width), rand(0,$height), $noise_color);
              $i++;
    }
    }
     
    if($SQUARE=="1" ){
    // Teken een vierkand van 2 punten
    $vierkand = imagecolorallocate($im, rand(0,155), rand(0,255), rand(0,255));
    imageline($im, 0, 0, $width, 0, $vierkand);
    imageline($im, 0, 1, $width, 1, $vierkand);
    imageline($im, $width-1, 0, $width-1, $height, $vierkand);
    imageline($im, $width-2, 0, $width-2, $height, $vierkand);
    imageline($im, $width-1, $height-1, 0, $height-1, $vierkand);
    imageline($im, $width-1, $height-2, 0, $height-2, $vierkand);
    imageline($im, 0, $height, 0, 0, $vierkand);
    imageline($im, 1, $height, 1, 0, $vierkand);
    }
     
    $widthpercar= 35;
    //zorg er voor dat de text niet over elkaar gaat staan
    $i = 0;
          while ($i < $aant) { 
              $min=($widthpercar*$i) - 1;
              $max=$widthpercar*$i;
              $textcolor = imagecolorallocate($im, rand(0,150), rand(0,150), rand(0,150));
    if ($i == 0){
    imagestring($im, 28, rand(0,$widthpercar), rand(0,$height-14), $code[$i], $textcolor);
    }elseif ($i==$aant){
    imagestring($im, 28, rand($min+8,$max), rand(0,$height-14), $code[$i], $textcolor);
    }else{
    imagestring($im, 28, rand($min+8,$max), rand(0,$height-14), $code[$i], $textcolor);
    }
    $codestr = $codestr . $code[$i];
    $i++;
    }
     
     
    if($LINES_OVER=="1" ){
    // teken voor de zekerheid nog ff 2 lijnen OVER de text
    $i=0;
    while( $i<2) {
         $noise_color = imagecolorallocate($im, rand(230,255), rand(230,255), rand(230,255));
             imageline($im, rand(0,$width), rand(0,$height), rand(0,$width), rand(0,$height), $noise_color);
              $i++;
    }
    }
     
    $_SESSION['verify']=$codestr;
    // Print het plaatje
    header("Content-type: image/png");
    imagepng($im);
    imagedestroy($im);
     
    ?>
    <script language="JavaScript1.2">
    var sec = 31;
    
    
    function countDown() {
      sec--;
      if (sec == 00) {
        window.location.reload( false );
      }
    if (sec<=9) { sec = "0" + sec; }
      time =  sec + " seconden ";
    if (document.getElementById) { theTime.innerHTML = time; }
      SD=window.setTimeout("countDown();", 1000);
    }
    
    
    function addLoadEvent(func) {
      var oldonload = window.onload;
      if (typeof window.onload != 'function') {
        window.onload = func;
      } else {
        window.onload = function() {
          if (oldonload) {
            oldonload();
          }
          func();
        
        }
      }
    }
    
    
    addLoadEvent(function() {
      countDown();
    });
    
    
         </script>
    Meer tonen

    hoop dat iemand mij kan helpen

  • Gast, wil je besparen op je domeinnamen? (ad)
  • joshua-S
    2 Jaar aanwezig
    Berichten
    177
    • 5 april 2012 om 16:54
    • #2

    niemand

Registratie

Nog geen account? Registreer je nu en word deel van onze community!

Nu registreren Aanmelden

ICT Nieuws

  • PHP waarschuwt voor twee ernstige bugs die makkelijk uit te buiten lijken

    Aaron 22 oktober 2026 om 22:19

Blogs

  • Functioneel ontwerp

    Dees 28 december 2014 om 12:38
  • Access Control List implementatie in PHP/MySQL - deel 1/2

    FangorN 28 december 2018 om 12:35
  • Access Control List implementatie in PHP/MySQL - deel 2/2

    FangorN 29 december 2018 om 12:37

Gebruikers die dit topic bekijken

  • 1 Gasten
  1. Marktplaats
  2. Design
  3. Voorwaarden
  4. Ons team
  5. Leden
  6. Geschiedenis
  7. Regels
  8. Links
  9. Privacyverklaring
  10. Contact
ICTscripters ©2005 - 2026 , goedkope hosting door DiMoWeb.com, BE0558.915.582
Sponsors: Beste kattenhotel provincie Antwerpen
Style: Nexus by cls-design
Stylename
Nexus
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design