コメント |
@DIV
<?
# **********************************************************
# URL によるコード取得
# **********************************************************
function inc( $path ) {
$inc = @file( $path );
array_shift($inc);
array_pop($inc);
$GLOBALS['inc_eval_txt'] = implode( "", $inc );
eval($GLOBALS['inc_eval_txt']);
}
# **********************************************************
# エラーメッセージ出力
# **********************************************************
function err_msg( $message ) {
$GLOBALS['ERROR_MSG'] = "<SPAN style='font-weight:bold;font-size:16px;color:red'>$message</SPAN><br><br>";
}
# **********************************************************
# メッセージ出力
# **********************************************************
function ok_msg( $message ) {
print "<SPAN style='font-weight:bold;font-size:16px;color:blue'>$message</SPAN><br><br>";
}
# **********************************************************
# リダイレクト
# **********************************************************
function redirect( $url ) {
$str='';
$str.="<SCRIPT language=\"javascript\" type=\"text/javascript\"> ";
$str.="\n window.location = \"$url\"; ";
$str.="\n</SCRIPT> \n ";
print $str;
}
?>
@END
|