make captcha bigger
This commit is contained in:
parent
aa6bbf4bd7
commit
5173bccb97
4 changed files with 12 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ $alphanum = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789abcdefghijklmnopqrstuvwxyz';
|
||||||
$string = substr( str_shuffle( $alphanum ), 2, 5 );
|
$string = substr( str_shuffle( $alphanum ), 2, 5 );
|
||||||
$_SESSION['captcha_code'] = $string;
|
$_SESSION['captcha_code'] = $string;
|
||||||
/* Create new empty image */
|
/* Create new empty image */
|
||||||
$Imagick->newImage( 80, 25, $bg );
|
$Imagick->newImage( 100, 25, $bg );
|
||||||
|
|
||||||
/* Write the text on the image */
|
/* Write the text on the image */
|
||||||
$Imagick->annotateImage( $ImagickDraw, 4, 20, 0, $string );
|
$Imagick->annotateImage( $ImagickDraw, 4, 20, 0, $string );
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
error_reporting(E_ERROR | E_PARSE);
|
error_reporting(E_ERROR | E_PARSE);
|
||||||
|
define("news", "test");
|
||||||
define("bannedhosts", array("google.com"));
|
define("bannedhosts", array("google.com"));
|
||||||
define("sitename", "Eternal Winter");
|
define("sitename", "Eternal Winter");
|
||||||
define("dbfile", "secrets/eternalwinter.db");
|
define("dbfile", "secrets/eternalwinter.db");
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,11 @@ head();
|
||||||
?>
|
?>
|
||||||
<body>
|
<body>
|
||||||
<img class="banner" src="<?php echo constant('static') . '/img/' . constant('banner'); ?>" /><br>
|
<img class="banner" src="<?php echo constant('static') . '/img/' . constant('banner'); ?>" /><br>
|
||||||
|
<?php
|
||||||
|
if (constant("news")) {
|
||||||
|
echo "<h3 class='news'>" . constant("news") . "</h3>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
<div class="about">
|
<div class="about">
|
||||||
<p><?php echo constant("sitename"); ?> lets you discover and share niche, non-corporate, hobby websites with others by submitting them to our database.<br>It's intended to help small forum operators, blog authors, and anyone else with a small website recieve traffic without having to market their site.</p>
|
<p><?php echo constant("sitename"); ?> lets you discover and share niche, non-corporate, hobby websites with others by submitting them to our database.<br>It's intended to help small forum operators, blog authors, and anyone else with a small website recieve traffic without having to market their site.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -109,3 +109,8 @@ select {
|
||||||
.selectedpage {
|
.selectedpage {
|
||||||
background-color: #ef9;
|
background-color: #ef9;
|
||||||
}
|
}
|
||||||
|
.news {
|
||||||
|
color: red;
|
||||||
|
border-bottom: 1px solid red;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue