session_name('phplightbox'); session_set_cookie_params(0,'/'); session_start(); # ********************************************************** # PHP # ********************************************************** header( "Content-Type: text/html; Charset=shift_jis" ); header( "pragma: no-cache" ); header( "Expires: Wed, 31 May 2000 14:59:58 GMT" ); header( "Cache-control: no-cache" ); if ( $_GET['session'] == 'true' ) { $_SESSION['save_flg'] = "OK"; $_SESSION['save'] = $_GET; } if ( $_GET['session'] == 'false' ) { $_SESSION = array(); if (isset($_COOKIE[session_name()])) { setcookie(session_name(), '', time()-42000, '/'); } // 最終的に、セッションを破壊する session_destroy(); } foreach( $_GET as $Key => $Value ) { $_POST[$Key] = $_GET[$Key]; $_GET[$Key] = str_replace("\\\\", "\\", $Value ); $_GET[$Key] = str_replace("\\'", "'", $_GET[$Key] ); $_GET[$Key] = str_replace("\\\"", "\"", $_GET[$Key] ); } foreach( $_POST as $Key => $Value ) { $_POST[$Key] = str_replace("\\\\", "\\", $Value ); $_POST[$Key] = str_replace("\\'", "'", $_POST[$Key] ); $_POST[$Key] = str_replace("\\\"", "\"", $_POST[$Key] ); } ini_set( 'display_errors', "1" ); mb_language( "ja" ); mb_internal_encoding("EUC-JP"); # ********************************************************** # 初期値 # ********************************************************** $img = "http://lightbox.on.coocan.jp/php/font_test.php?cset=utf-8&font="; if ( $_GET['font'] == "" ) { $_GET['font'] = "jiyunotsubasa"; } else { $title_font = $_GET['font']; } $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'] = 74; } $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'] = "フリーフォントで簡単ロゴ作成"; } //if ( substr($_GET['TitleText'], 0, 1 ) == '%' ) { // $_GET['TitleText'] = urldecode( $_GET['TitleText'] ); //} if ( strpos($_GET['TitleText'], '%' ) !== false ) { $_GET['TitleText'] = urldecode( $_GET['TitleText'] ); } $_GET['TitleText'] = str_replace("\\'", "'", $_GET['TitleText'] ); //$_GET['TitleText'] = str_replace("&", "&", $_GET['TitleText'] ); if ( $_GET['ie'] == 'utf8' ) { if ( $_GET['cr'] != "" ) { $cr_cnt = mb_strlen($_GET['TitleText'],'utf8'); $cr_n = $_GET['cr'] + 0; $cr_work = ''; for( $cr_idx = 0; $cr_idx < $cr_cnt; $cr_idx++ ) { $cr_ch = mb_substr( $_GET['TitleText'], $cr_idx, 1, 'utf8' ); if ( ($cr_idx+1) % $cr_n == 0 ) { $cr_work .= $cr_ch . "\n"; } else { $cr_work .= $cr_ch; } } $_GET['TitleText'] = $cr_work; } $str = $_GET['TitleText']; $img .= "&text=" . urlencode($str); $_GET['TitleText'] = mb_convert_encoding( $_GET['TitleText'], "cp932", "utf-8" ); } else { if ( $_GET['cr'] != "" ) { $cr_cnt = mb_strlen($_GET['TitleText'],'cp932'); $cr_n = $_GET['cr'] + 0; $cr_work = ''; for( $cr_idx = 0; $cr_idx < $cr_cnt; $cr_idx++ ) { $cr_ch = mb_substr( $_GET['TitleText'], $cr_idx, 1, 'cp932' ); if ( ($cr_idx+1) % $cr_n == 0 ) { $cr_work .= $cr_ch . "\n"; } else { $cr_work .= $cr_ch; } } $_GET['TitleText'] = $cr_work; } $str = mb_convert_encoding( $_GET['TitleText'], "utf-8", "cp932" ); $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'] = "0"; } } $img .= "&dropShadow={$_GET['dropShadow']}"; $img .= "&dropShadow2={$_GET['dropShadow2']}"; if ( $_GET['textColor'] == '' ) { $_GET['textColor'] = "000000"; } $img .= "&tc={$_GET['textColor']}"; if ( $_GET['tp'] == "" ) { $_GET['tp'] = "0"; } $img .= "&tp={$_GET['tp']}"; if ( $_GET['mc'] != "" ) { if ( $_GET['mpit'] == "" ) { $_GET['mpit'] = "2"; } $img .= "&mc={$_GET['mc']}"; $img .= "&mpit={$_GET['mpit']}"; } if ( $_GET['url1x'] == "" ) { $_GET['url1x'] = "0"; } if ( $_GET['url1y'] == "" ) { $_GET['url1y'] = "0"; } if ( $_GET['url1t'] == "" ) { $_GET['url1t'] = "100"; } if ( $_GET['cirx'] == "" ) { $_GET['cirx'] = "100"; } if ( $_GET['ciry'] == "" ) { $_GET['ciry'] = "100"; } if ( $_GET['cirr'] == "" ) { $_GET['cirr'] = "100"; } if ( $_GET['cirs'] == "" ) { $_GET['cirs'] = "20"; } if ( $_GET['cira'] == "" ) { $_GET['cira'] = "0"; } if ( $_GET['cird'] == "" ) { $_GET['cird'] = "0"; } if ( $_GET['cir'] == '1' ) { $img .= "&cir={$_GET['cir']}"; $img .= "&cirx={$_GET['cirx']}"; $img .= "&ciry={$_GET['ciry']}"; $img .= "&cirr={$_GET['cirr']}"; $img .= "&cirs={$_GET['cirs']}"; $img .= "&cira={$_GET['cira']}"; $img .= "&cird={$_GET['cird']}"; } $img .= "&ss={$_GET['session']}"; //print
;
//print_r("$_GET");
//print ;
?>
require_once("font_table.php") ?>
if ( $title_font == '' ) { ?>
|
ここに色を表示させて背景かテキストボタンをクリック
|
≪≪ 通常出力をPDFとして出力できます
|