ソース掲示板




すべてから検索

キーワード   条件 表示 現行ログ 過去ログ トピックス 名前 本文

  メンテナンス 前画面に戻る

対象スレッド 件名: model.php
名前: lightbox
処理選択
パスワード

件名 model.php
名前 lightbox
コメント
@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