Permalink
Browse files

Switch to single character images.

  • Loading branch information...
1 parent 7e23a25 commit 89acf309e30b8101123ad1c11a77f863e8e298e1 Mihai Maruseac committed Apr 27, 2012
Showing with 30 additions and 30 deletions.
  1. +30 −30 code/gen/supervised-gen.php
@@ -1,30 +1,30 @@
-<?php
-
-/**
- * Script based on securimage_show_example2.php in the securimage distro.
- */
-
-require_once dirname(__FILE__) . '/securimage/securimage.php';
-
-// set session parameters
-session_save_path("/tmp");
-session_id("uncaptcha");
-session_start();
-
-$img = new Securimage();
-
-//Change some settings
-$img->image_width = 280;
-$img->image_height = 100;
-$img->perturbation = 0; // high level of distortion
-$img->code_length = rand(5,6); // random code length
-$img->image_bg_color = new Securimage_Color("#ffffff");
-$img->num_lines = 0;
-$img->noise_level = 0;
-$img->text_color = new Securimage_Color("#000000");
-$img->noise_color = $img->text_color;
-$img->line_color = new Securimage_Color("#cccccc");
-
-$img->show();
-
-?>
+<?php
+
+/**
+ * Script based on securimage_show_example2.php in the securimage distro.
+ */
+
+require_once dirname(__FILE__) . '/securimage/securimage.php';
+
+// set session parameters
+session_save_path("/tmp");
+session_id("uncaptcha");
+session_start();
+
+$img = new Securimage();
+
+//Change some settings
+$img->image_width = 280;
+$img->image_height = 100;
+$img->perturbation = 0; // high level of distortion
+$img->code_length = rand(1,1); // random code length
+$img->image_bg_color = new Securimage_Color("#ffffff");
+$img->num_lines = 0;
+$img->noise_level = 0;
+$img->text_color = new Securimage_Color("#000000");
+$img->noise_color = $img->text_color;
+$img->line_color = new Securimage_Color("#cccccc");
+
+$img->show();
+
+?>

0 comments on commit 89acf30

Please sign in to comment.