/**
* version #2.0
* package EZweb
* date 2009/8
* author BigNostrilTAO
* email bignostriltao@gmail.com
* copyright protected
*/
defined( '_VALID_WAY' ) or die( 'Do not Access the Location Directly!' );
/************************************************************
//* 直接重新導向
//* 傳回: 無
************************************************************/
function Redirect($url) {
if (headers_sent()) {
echo "\n";
} else {
@ob_end_clean(); // clear output buffer
header( "Location: $url" );
}
exit();
}
/************************************************************
//* 目的: 關調子視窗,母視窗重新整理
//* 參數: publicMsg傳入訊息
//* 傳回: 無
************************************************************/
function showCloseBackReload($publicMsg)
{
js_headder();
echo "\n";
js_tailer_goon();
exit;
}
/************************************************************
//* 目的: 父視窗重新整理
//* 參數: publicMsg傳入訊息
//* 傳回: 無
************************************************************/
function showParentReload($publicMsg)
{
js_headder();
echo "\n";
js_tailer_goon();
exit;
}
/************************************************************
//* 目的: alert傳入訊息,並返回上頁
//* 參數: publicMsg傳入訊息
//* 傳回: 無
************************************************************/
function showMsgBack($publicMsg)
{
js_headder();
?>
js_tailer_goon();
exit;
}
//************************************************************
//* 目的: alert傳入訊息,並返回結束本頁視窗
//* 參數: publicMsg傳入訊息
//* 傳回: 無
//************************************************************
function showMsgClose($publicMsg)
{
js_headder();
?>
js_tailer_goon();
exit;
}
//************************************************************
//* 目的: alert傳入訊息,並返回上頁,opener重新載入
//* 參數: publicMsg傳入訊息
//* 傳回: 無
//************************************************************
function showMsgBackReload($publicMsg)
{
js_headder();
?>
js_tailer_goon();
exit;
}
//************************************************************
//* 目的: alert傳入訊息,導向另外一頁
//* 參數: publicMsg傳入訊息
//* 傳回: 無
//************************************************************
function showMsgRedirect($publicMsg,$url)
{
js_headder();
?>
js_tailer_goon();
exit;
}
/************************************************************
//* 目的: 關調子視窗,母視窗重新導向
//* 參數: publicMsg傳入訊息
//* 傳回: 無
************************************************************/
function showCloseOpenRedir($publicMsg,$url)
{
js_headder();
echo "\n";
js_tailer_goon();
exit;
}
?>