# ********************************************************** # PHP # ********************************************************** header( "Content-Type: text/html; Charset=shift_jis" ); header( "Expires: Wed, 31 May 2000 14:59:58 GMT" ); ini_set( 'display_errors', "1" ); mb_language( "ja" ); mb_internal_encoding("EUC-JP"); # ********************************************************** # 初期値 # ********************************************************** $img = "http://lightbox.on.coocan.jp/php/font.php?cset=utf-8&font="; if ( $_GET['font'] == "" ) { $_GET['font'] = "ArmedBanana"; } $img .= $_GET['font']; if ( $_GET['x'] == '' ) { $_GET['x'] = 8; } $img .= "&x={$_GET['x']}"; if ( $_GET['w'] == '' ) { $_GET['w'] = 900; } $img .= "&w={$_GET['w']}"; if ( $_GET['y'] == '' ) { $_GET['y'] = 55; } $img .= "&y={$_GET['y']}"; if ( $_GET['height'] == '' ) { $_GET['height'] = 65; } $img .= "&height={$_GET['height']}"; $img .= "&h={$_GET['height']}"; if ( $_GET['backColor'] == '' ) { $_GET['backColor'] = "FFFFFF"; } $img .= "&bc={$_GET['backColor']}"; if ( $_GET['s'] == '' ) { $_GET['s'] = "45"; } $img .= "&s={$_GET['s']}"; if ( $_GET['TitleText'] == '' ) { $_GET['TitleText'] = "フリーフォントで簡単ロゴ作成"; } $_GET['TitleText'] = str_replace("\\'", "'", $_GET['TitleText'] ); $str = mb_convert_encoding( $_GET['TitleText'], "utf-8", "shift_jis" ); $img .= "&text=" . urlencode($str); if ( $_GET['a'] == '' ) { $_GET['a'] = "0"; } $img .= "&a={$_GET['a']}"; if ( $_GET['backColorImage'] == '' ) { $_GET['backColorImage'] = "FFFFFF"; } $img .= "&backColorImage={$_GET['backColorImage']}"; if ( $_GET['check'] == "" ) { if ( $_GET['dropShadow'] == '' ) { $_GET['dropShadow'] = "1"; } } $img .= "&dropShadow={$_GET['dropShadow']}"; $img .= "&dropShadow2={$_GET['dropShadow2']}"; if ( $_GET['textColor'] == '' ) { $_GET['textColor'] = "000000"; } $img .= "&tc={$_GET['textColor']}"; //print
; //print_r("$_GET"); //print; ?>