예제 #1
0
파일: index.php 프로젝트: vcgato29/poff
<?php 
function header_img()
{
    return 'header.jpg';
    // $b = in('b');
    // if (!$b) $b = 'es';
    // if (in('l')=='eng') $b .= '_e';
    // return $b . '.gif';
}
?>


<style type="text/css">
<!--
.tegelane {  background-image: url(img/<?php 
print header_img();
?>
); background-repeat: no-repeat;}
-->
</style>
</head>

<body bgcolor="#3D3D3D" text="#000000" topmargin="0" background="" onLoad="init();">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
	<tr>
		<td height="5"></td>
	</tr>
	<tr>
		<td align="center" valign="top">
			<table width="100" border="0" cellspacing="0" cellpadding="1" bgcolor="000" height="100%">
				<tr>
예제 #2
0
파일: pic.php 프로젝트: seofactory/modus
function error_gif($t)
{
    $vsize = 46;
    $t1 = substr($t, 0, 30);
    if ($t != $t1) {
        $t1 = ereg_replace(' [^ ]*$', '', $t1);
        $t2 = trim(substr($t, strlen($t1), 90));
        $vsize = 64;
    }
    header('HTTP/1.1 404 Not Found');
    header_img(1);
    $coin = imagecreate(250, $vsize);
    $color2 = imagecolorallocate($coin, 255, 0, 0);
    $color3 = imagecolorallocate($coin, 255, 255, 255);
    $color4 = imagecolorallocate($coin, 0, 0, 0);
    imagefilledrectangle($coin, 1, 1, 248, $vsize - 2, $color3);
    ImageTTFText($coin, 13, 0, 5, 19, $color2, 'default.ttf', 'Ошибка!');
    ImageTTFText($coin, 11, 0, 5, 37, $color4, 'default.ttf', $t1);
    if ($t2) {
        ImageTTFText($coin, 11, 0, 5, 55, $color4, 'default.ttf', $t2);
    }
    ImageGif($coin);
    ImageDestroy($coin);
    exit;
}