Đây là lễ ra mắt của em mong ae chị em có chém hay kill thì cũng nhẹ tay dùm
Để giúp webmaster ADMIN security tốt về web mình em xin viết bài này
/**
Securimage Test script
Version 1.0 - 01/02/2008
Upload this PHP script to your web server and call it from the browser.
The script will tell you if you meet the requirements for running Securimage.
http://www.phpcaptcha.org*/
if (isset($_GET['testimage']) && $_GET['testimage'] == '1') {
$im = imagecreate(225, 225);
$white = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 0, 0);
$red = imagecolorallocate($im, 255, 0, 0);
$green = imagecolorallocate($im, 0, 255, 0);
$blue = imagecolorallocate($im, 0, 0, 255);
// draw the head
imagearc($im, 100, 120, 200, 200, 0, 360, $black);
// mouth
imagearc($im, 100, 120, 150, 150, 25, 155, $red);
// left and then the right eye
imagearc($im, 60, 95, 50, 50, 0, 360, $green);
imagearc($im, 140, 95, 50, 50, 0, 360, $blue);
imagestring($im, 5, 15, 1, 'Securimage Will Work!!', $blue);
imagestring($im, 2, 5, 20, ':) :) :)', $black);
imagestring($im, 2, 5, 30, ':) :)', $black);
imagestring($im, 2, 5, 40, ':)', $black);
imagestring($im, 2, 150, 20, '(: (: (:', $black);
imagestring($im, 2, 168, 30, '(: (:', $black);
imagestring($im, 2, 186, 40, '(:', $black);
imagepng($im, null, 3);
exit;
}
function print_status($supported)
{
if ($supported) {
echo "
Yes!";
} else {
echo "
No";
}
}
?>
Securimage Test scriptSecurimage Test script
This script will test your PHP installation to see if Securimage will run on your server.
GD Support:
GD Version:
TTF Support (FreeType):
No FreeType support. Cannot use TTF fonts, but you can use GD fonts
JPEG Support:
PNG Support:
GIF Read Support:
GIF Create Support:
Since you can see this...
Based on the requirements, you do not have what it takes to run Securimage :(
Code này bao phủ tổng quan toàn thể website của bạn để các bạn theo dõi dc site mình có bị lỗi ko
Nguồn trích dẫn :
http://vn.360plus.yahoo.com/phamhuy-mobile/