Browse code

Merge branch 'main' of https://github.com/e107-eFiction/efiction-3.5.6

Jimako authored on 2023/09/07 02:26:33
Showing 1 changed files
... ...
@@ -1,4 +1,7 @@
1 1
 <?php
2
+ini_set('display_errors', 0);
3
+ini_set('display_startup_errors', 0);
4
+error_reporting(-1);
2 5
 
3 6
 session_start();
4 7
 define("_BASEDIR", "../");
... ...
@@ -56,7 +59,6 @@ for( $i=0; $i<(140*40)/3; $i++ ) {
56 59
   imagefilledellipse($image, mt_rand(0,140), mt_rand(0,40), 1, 1, $gray);
57 60
 }
58 61
 
59
-
60 62
 for ($i = 0; $i < 5; $i++) {
61 63
  $x = $x + mt_rand(16, 24);
62 64
  $y = mt_rand(26, 32); 
... ...
@@ -67,12 +69,11 @@ for ($i = 0; $i < 5; $i++) {
67 69
  imagettftext($image, mt_rand(20, 24), $angle,  $x, $y, $colori, $fontList[$fnt], $cnum[$i]); 
68 70
 
69 71
 }
70
-
71
-
72
+ 
72 73
 $digit = "$cnum[0]$cnum[1]$cnum[2]$cnum[3]$cnum[4]";
73 74
 
74 75
 $_SESSION[$sitekey.'_digit'] = md5($sitekey.$digit);
75
-
76
+ 
76 77
 header("Expires: Tue, 11 Jun 1985 05:00:00 GMT");  
77 78
 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");  
78 79
 header("Cache-Control: no-store, no-cache, must-revalidate");