38 行
752 B
PHP
38 行
752 B
PHP
<?php
|
|
//直接アクセスしちゃだめ
|
|
require $d_root.'/hide_php/conf/c.php';
|
|
|
|
|
|
|
|
if (isset($_GET['width'], $_GET['height'])){
|
|
$width = (int)$_GET['width'];
|
|
$height = (int)$_GET['height'];
|
|
} else {
|
|
$width = 300;
|
|
$height = 150;
|
|
}
|
|
|
|
|
|
|
|
|
|
############html開始
|
|
html_head('Oekaki-', '', $d_root.'/sqlike/css/oekaki/draw_style.css', false);
|
|
|
|
//htmlファイル取得
|
|
$html_file = $d_root.'/sqlike/html/oekaki/draw.html';
|
|
$html = '';
|
|
if (file_exists($html_file)){
|
|
$fp = fopen($html_file, 'r');
|
|
while (($i = fgets($fp)) !== false){
|
|
$html = $html.trim($i);
|
|
}
|
|
fclose($fp);
|
|
}
|
|
foreach (['{width}' => $width, '{height}' => $height] as $s => $r){
|
|
$html = str_replace($s, $r, $html);
|
|
}
|
|
//html表示
|
|
echo $html;
|
|
|
|
html_foot($d_root.'/js/draw_new.js', '');
|