This commit is contained in:
2022-06-07 00:30:34 +03:00
commit 5f4b2cbf77
1784 changed files with 327645 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
<IfModule mod_php4.c>
php_value register_globals 1
php_value session.auto_start 1
php_flag session.auto_start 1
</IfModule>
+32
View File
@@ -0,0 +1,32 @@
<meta charset="UTF-8">
<?
// Получаем массив с информацией о версии curl
//$version = curl_version();
// Это битовые поля, которые можно использовать
// для проверки возможностей сборки curl
/*
$bitfields = Array(
'CURL_VERSION_IPV6',
'CURL_VERSION_KERBEROS4',
'CURL_VERSION_SSL',
'CURL_VERSION_LIBZ'
);
foreach($bitfields as $feature)
{
echo $feature . ($version['features'] & constant($feature) ? ' есть' : ' нет');
echo PHP_EOL;
}
//echo $_SERVER['HTTP_CF_CONNECTING_IP']."<br>";
//echo $_SERVER['HTTP_USER_AGENT'];
*/
phpinfo();
#curl_getinfo();
?>
+11
View File
@@ -0,0 +1,11 @@
date.timezone=Europe/Moscow
allow_url_fopen = On
session.auto_start=On
allow_url_include = On
error_reporting = E_ALL
display_errors = Off
display_startup_errors = Off
log_errors = On
error_log = /home/newcom1/error_log
+48
View File
@@ -0,0 +1,48 @@
<?php
header("Content-type: image/png");
// ñîçäàåì êàðòèíêó ðàçìåðîì 172X52
$img = imagecreatetruecolor(107, 26) or die('Cannot create image');
$orange = imageColorAllocate($img, 107, 26, 64);
// çàïîëíÿåì ôîí êàðòèíêè
imagefill($img, 0, 0, 0x616161);
$x=-20;
$i = 1;
$sum = "";
//öâåò òåêñòà
$color_RGB = rand(180,200);
while ($i++ <=5000)
{
imageSetPixel($img, rand(0,105), rand(0,24),0x515151);
}
//ðèñóåì 2 ëèíèè
imageLine($img, rand(0,10), rand(0,50), rand(95,105), rand(0,26), 0x909090);
imageLine($img, rand(0,10), rand(0,50), rand(95,105), rand(0,26), 0x909090);
//ðàìêà
imageRectangle($img,0,0,105,24,0x343434);
$fonts = array ('fonts/FRSCRIPT.ttf','fonts/CHILLER.ttf','fonts/Bradley Hand ITC.ttf','fonts/de_Manu_2_Regular.ttf','fonts/Edgar_da_cool_Regular.ttf','fonts/Hurryup_Hurryup.ttf','fonts/Fh_Script_Regular.ttf','fonts/Gabo4_Gabo4.ttf','fonts/JAMI_Regular.ttf','fonts/Justy1_Regular.ttf');
$font = '../'.$fonts[rand(0, sizeof($fonts)-1)];
// âûâîäèì îäíó öèôðó çà îäèí ïðîõîä öèêëà (âñåãî 6 öèôð)
$i = 1;
while ($i++ <= 4)
{
// âûâîäèì òåêñò ïîâåðõ êàðòèíêè
imagettftext($img, 15, 0, $x=$x+25, 20,
imagecolorallocate($img, $color_RGB,$color_RGB,$color_RGB), $font, $rnd = rand(0,9));
// Ñîáèðàåì â îäíó ñòðîêó âñå ñèìâîëû íà êàðòèíêå
$sum = $sum.(string)$rnd;
}
//Íå çàáóäüòå $sum çàïèñàòü â òàáëèöó êàê STR1
// âûâîäèì ãîòîâóþ êàðòèíêó â ôîðìàòå PNG
imagepng($img);
// îñâîáîæäàåì ïàìÿòü, âûäåëåííóþ äëÿ êàðòèíêè
imagedestroy($img);
// Ïîìåùàåì çàùèòíûé êîä â ñåññèþ
$_SESSION['code'] = $sum;
?>
+48
View File
@@ -0,0 +1,48 @@
<?php
header("Content-type: image/png");
// ñîçäàåì êàðòèíêó ðàçìåðîì 172X52
$img = imagecreatetruecolor(70, 20) or die('Cannot create image');
$orange = imageColorAllocate($img, 255, 128, 64);
// çàïîëíÿåì ôîí êàðòèíêè
imagefill($img, 0, 0, 0x616161);
$x=0;
$i = 1;
$sum = "";
//öâåò òåêñòà
$color_RGB = rand(180,200);
while ($i++ <=5000)
{
imageSetPixel($img, rand(0,170), rand(0,50),0x515151);
}
//ðèñóåì 2 ëèíèè
imageLine($img, rand(0,10), rand(0,50), rand(110,170), rand(0,50), 0x909090);
imageLine($img, rand(0,10), rand(0,50), rand(110,170), rand(0,50), 0x909090);
//ðàìêà
imageRectangle($img,0,0,170,50,0x343434);
$fonts = array ('fonts/CHILLER.ttf');
$font = '../'.$fonts[rand(0, sizeof($fonts)-1)];
// âûâîäèì îäíó öèôðó çà îäèí ïðîõîä öèêëà (âñåãî 6 öèôð)
$i = 1;
while ($i++ <= 5)
{
// âûâîäèì òåêñò ïîâåðõ êàðòèíêè
imagettftext($img, rand(18,18), 0, $x=$x+10, 16+rand(0,4),
imagecolorallocate($img, $color_RGB,$color_RGB,$color_RGB), $font, $rnd = rand(0,9));
// Ñîáèðàåì â îäíó ñòðîêó âñå ñèìâîëû íà êàðòèíêå
$sum = $sum.(string)$rnd;
}
//Íå çàáóäüòå $sum çàïèñàòü â òàáëèöó êàê STR1
// âûâîäèì ãîòîâóþ êàðòèíêó â ôîðìàòå PNG
imagepng($img);
// îñâîáîæäàåì ïàìÿòü, âûäåëåííóþ äëÿ êàðòèíêè
imagedestroy($img);
// Ïîìåùàåì çàùèòíûé êîä â ñåññèþ
$_SESSION['code'] = $sum;
?>
+48
View File
@@ -0,0 +1,48 @@
<?php
header("Content-type: image/png");
// ñîçäàåì êàðòèíêó ðàçìåðîì 172X52
$img = imagecreatetruecolor(70, 20) or die('Cannot create image');
$orange = imageColorAllocate($img, 255, 128, 64);
// çàïîëíÿåì ôîí êàðòèíêè
imagefill($img, 0, 0, 0x616161);
$x=0;
$i = 1;
$sum = "";
//öâåò òåêñòà
$color_RGB = rand(180,200);
while ($i++ <=5000)
{
imageSetPixel($img, rand(0,170), rand(0,50),0x515151);
}
//ðèñóåì 2 ëèíèè
imageLine($img, rand(0,10), rand(0,50), rand(110,170), rand(0,50), 0x909090);
imageLine($img, rand(0,10), rand(0,50), rand(110,170), rand(0,50), 0x909090);
//ðàìêà
imageRectangle($img,0,0,170,50,0x343434);
$fonts = array ('fonts/CHILLER.ttf');
$font = '../'.$fonts[rand(0, sizeof($fonts)-1)];
// âûâîäèì îäíó öèôðó çà îäèí ïðîõîä öèêëà (âñåãî 6 öèôð)
$i = 1;
while ($i++ <= 4)
{
// âûâîäèì òåêñò ïîâåðõ êàðòèíêè
imagettftext($img, rand(18,18), 0, $x=$x+10, 16+rand(0,4),
imagecolorallocate($img, $color_RGB,$color_RGB,$color_RGB), $font, $rnd = rand(0,9));
// Ñîáèðàåì â îäíó ñòðîêó âñå ñèìâîëû íà êàðòèíêå
$sum = $sum.(string)$rnd;
}
//Íå çàáóäüòå $sum çàïèñàòü â òàáëèöó êàê STR1
// âûâîäèì ãîòîâóþ êàðòèíêó â ôîðìàòå PNG
imagepng($img);
// îñâîáîæäàåì ïàìÿòü, âûäåëåííóþ äëÿ êàðòèíêè
imagedestroy($img);
// Ïîìåùàåì çàùèòíûé êîä â ñåññèþ
$_SESSION['code3'] = $sum;
?>