Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Switch to single character images.

  • Loading branch information...
commit 89acf309e30b8101123ad1c11a77f863e8e298e1 1 parent 7e23a25
authored April 27, 2012

Showing 1 changed file with 30 additions and 30 deletions. Show diff stats Hide diff stats

  1. 60  code/gen/supervised-gen.php
60  code/gen/supervised-gen.php
... ...
@@ -1,30 +1,30 @@
1  
-<?php
2  
-
3  
-/**
4  
- * Script based on securimage_show_example2.php in the securimage distro.
5  
- */
6  
-
7  
-require_once dirname(__FILE__) . '/securimage/securimage.php';
8  
-
9  
-// set session parameters
10  
-session_save_path("/tmp");
11  
-session_id("uncaptcha");
12  
-session_start();
13  
-
14  
-$img = new Securimage();
15  
-
16  
-//Change some settings
17  
-$img->image_width     = 280;
18  
-$img->image_height    = 100;
19  
-$img->perturbation    = 0;      // high level of distortion
20  
-$img->code_length     = rand(5,6); // random code length
21  
-$img->image_bg_color  = new Securimage_Color("#ffffff");
22  
-$img->num_lines       = 0;
23  
-$img->noise_level     = 0;
24  
-$img->text_color      = new Securimage_Color("#000000");
25  
-$img->noise_color     = $img->text_color;
26  
-$img->line_color      = new Securimage_Color("#cccccc");
27  
-
28  
-$img->show();
29  
-
30  
-?>
  1
+<?php
  2
+
  3
+/**
  4
+ * Script based on securimage_show_example2.php in the securimage distro.
  5
+ */
  6
+
  7
+require_once dirname(__FILE__) . '/securimage/securimage.php';
  8
+
  9
+// set session parameters
  10
+session_save_path("/tmp");
  11
+session_id("uncaptcha");
  12
+session_start();
  13
+
  14
+$img = new Securimage();
  15
+
  16
+//Change some settings
  17
+$img->image_width     = 280;
  18
+$img->image_height    = 100;
  19
+$img->perturbation    = 0;      // high level of distortion
  20
+$img->code_length     = rand(1,1); // random code length
  21
+$img->image_bg_color  = new Securimage_Color("#ffffff");
  22
+$img->num_lines       = 0;
  23
+$img->noise_level     = 0;
  24
+$img->text_color      = new Securimage_Color("#000000");
  25
+$img->noise_color     = $img->text_color;
  26
+$img->line_color      = new Securimage_Color("#cccccc");
  27
+
  28
+$img->show();
  29
+
  30
+?>

0 notes on commit 89acf30

Please sign in to comment.
Something went wrong with that request. Please try again.