$Value ) {
$_POST[$Key] = $_GET[$Key];
}
foreach( $_POST as $Key => $Value ) {
$_POST[$Key] = str_replace("\\\\", "\\", $Value );
$_POST[$Key] = str_replace("\\'", "'", $_POST[$Key] );
$_POST[$Key] = str_replace("\\\"", "\"", $_POST[$Key] );
}
if ( $_POST['charset'] == '' ) {
$_POST['charset'] = 'utf-8';
}
if ( $_POST['w'] == '' ) {
$_POST['w'] = '600';
}
header( "Content-Type: text/html; Charset={$_POST['charset']}" );
header( "pragma: no-cache" );
header( "Expires: Wed, 31 May 2000 14:59:58 GMT" );
header( "Cache-control: no-cache" );
mb_language( "ja" );
mb_internal_encoding("EUC-JP");
if ( $_POST['url'] == '' ) {
$_POST['url'] = 'http://lightbox.on.coocan.jp/sh/blank.htm';
}
if ( $_POST['brush'] == '' ) {
$_POST['brush'] = 'text';
}
$ff = '�l�r �o�S�V�b�N';
$Text = file_get_contents( $_POST['url'] );
if ( $_POST['charset'] == 'utf-8' ) {
$ff = mb_convert_encoding( $ff, "utf-8", "shift_jis" );
$Text = htmlentities( $Text, ENT_NOQUOTES, "utf-8" );
}
if ( $_POST['charset'] == 'euc-jp' ) {
$ff = mb_convert_encoding( $ff, "euc-jp", "shift_jis" );
$Text = htmlentities( $Text, ENT_NOQUOTES, "euc-jp" );
}
if ( $_POST['charset'] == 'shift_jis' ) {
$Text = mb_convert_encoding( $Text, "euc-jp", "shift_jis" );
$Text = htmlentities( $Text, ENT_NOQUOTES, "euc-jp" );
$Text = mb_convert_encoding( $Text, "shift_jis", "euc-jp" );
}
?>