--- a/includes/button.php +++ b/includes/button.php @@ -8,7 +8,7 @@ include("../config.php"); unset($_SESSION[$sitekey.'_digit']); -$image = imagecreate(140, 40); +$image = imagecreate(280, 80); $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); $gray = imagecolorallocate($image, 0xC0, 0xC0, 0xC0); @@ -31,6 +31,8 @@ putenv('GDFONTPATH=' . realpath('.')); +$folder=dir("cFonts/"); //The directory where your fonts reside + while($font=$folder->read()) { if(stristr($font,'.ttf')) { // Check GD Version 2.4.0 or later @@ -48,27 +50,27 @@ $rColors[$i] = imagecolorallocate($image, $rC['r'], $rC['g'], $rC['b']); for ($x = 0; $x < 2; $x++) { - $x1 = rand(0,140); - $y1 = rand(0,40); - $x2 = rand(0,140); - $y2 = rand(0,40); + $x1 = rand(0,280); + $y1 = rand(0,80); + $x2 = rand(0,280); + $y2 = rand(0,80); imageline($image, $x1, $y1, $x2, $y2 , $rColors[$i]); } } /* generate random dots in background */ -for( $i=0; $i<(140*40)/3; $i++ ) { - imagefilledellipse($image, mt_rand(0,140), mt_rand(0,40), 1, 1, $gray); +for( $i=0; $i<(280*80)/3; $i++ ) { + imagefilledellipse($image, mt_rand(0,280), mt_rand(0,80), 1, 1, $gray); } for ($i = 0; $i < 5; $i++) { - $x = $x + mt_rand(16, 24); - $y = mt_rand(26, 32); - $angle = mt_rand(-15, 15); + $x = $x + mt_rand(32, 48); + $y = mt_rand(52, 64); + $angle = mt_rand(-30, 30); $fnt = mt_rand(0, sizeof($fontList) - 1); $colori = $rColors[$i]; - imagettftext($image, mt_rand(20, 24), $angle, $x, $y, $colori, $fontList[$fnt], $cnum[$i]); + imagettftext($image, mt_rand(40, 48), $angle, $x, $y, $colori, $fontList[$fnt], $cnum[$i]); }
--- a/includes/reviewform.php +++ b/includes/reviewform.php @@ -48,9 +48,10 @@ } $form .= "<option value=\"-1\"".($review['rating'] == -1 || $action != "edit" ? " selected" : "").">"._NONE."</option></select></div>"; } -if(!USERUID && !empty($captcha)) $form .= "<div><span class=\"label\">"._CAPTCHANOTE."</span><input MAXLENGTH=5 SIZE=5 name=\"userdigit\" type=\"text\" value=\"\"><br /><img width=120 height=30 src=\""._BASEDIR."includes/button.php\" style=\"border: 1px solid #111;\"></div>"; +if(!USERUID && !empty($captcha)) $form .= "<div><span class=\"label\">"._CAPTCHANOTE."</span><input MAXLENGTH=5 SIZE=5 name=\"userdigit\" type=\"text\" value=\"\"><br /><img width=240 height=60 src=\""._BASEDIR."includes/button.php\" style=\"border: 1px solid #111;\"></div>"; $form .= "<INPUT type=\"hidden\" name=\"chapid\" value=\"".(isset($chapid) ? $chapid : "")."\"><div style=\"text-align: center; margin: 1ex;\"><INPUT type=\"submit\" class=\"button\" name=\"submit\" value=\""._SUBMIT."\"></div>"; if(!empty($rateonly)) $form .= "<div>"._REVIEWNOTE."</div>"; $form .= "</div></form>"; ?> +
--- a/user/editbio.php +++ b/user/editbio.php @@ -239,7 +239,7 @@ if($action != "register" || $pwdsetting) $output .= "<div><label for='password'>"._PASSWORD.":</label> <INPUT name=\"password\" class=\"textbox\" value=\"\" type=\"password\">".($action == "register" ? "<font color=\"red\">*</font>" : "")."</div> <div><label for='password2'>"._PASSWORD2.":</label> <INPUT name=\"password2\" class=\"textbox=\" value=\"\" type=\"password\">".($action == "register" ? "<font color=\"red\">*</font>" : "")."</div>"; - if(!empty($captcha) && $action == "register") $output .= "<div><label for='userdigit'>"._CAPTCHANOTE."</label><input MAXLENGTH=5 SIZE=5 name=\"userdigit\" type=\"text\" value=\"\"><div style='text-align: center;'><img width=120 height=30 src=\""._BASEDIR."includes/button.php\" style=\"border: 1px solid #111;\"></div></div>"; + if(!empty($captcha) && $action == "register") $output .= "<div><label for='userdigit'>"._CAPTCHANOTE."</label><input MAXLENGTH=5 SIZE=5 name=\"userdigit\" type=\"text\" value=\"\"><div style='text-align: center;'><img width=240 height=60 src=\""._BASEDIR."includes/button.php\" style=\"border: 1px solid #111;\"></div></div>"; $output .= "<div style='text-align: center; margin: 1em;'><INPUT type=\"hidden\" name=\"uid\" value=\"".(isset($user) ? $user['uid'] : "")."\"><INPUT type=\"submit\" class=\"button\" name=\"submit\" value=\""._SUBMIT."\">"; if(!isADMIN && $action != "register") {