Subversion Repositories php-qbpwcf

Rev

Rev 3 | Rev 182 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 62
Line 62... Line 62...
62
 
62
 
63
#匯入外部套件
63
#匯入外部套件
64
include("allInOne.php");
64
include("allInOne.php");
65
 
65
 
66
#如果不存在要處理的參數
66
#如果不存在要處理的參數
67
if( !isset($_SERVER['argv'][1]) )
67
if( !isset($_SERVER['argv'][1]) ){
68
{
68
 
69
	#show help
69
	#show help
70
	help();
70
	help();
71
 
71
 
72
	#停止執行
72
	#停止執行
73
	exit;
73
	exit;
-
 
74
 
74
}
75
	}
75
 
76
 
76
#如果第參數為 "help" 或 "-h"
77
#如果第參數為 "help" 或 "-h"
77
if( $_SERVER['argv'][1]==="help" || $_SERVER['argv'][1]==="-h" )
78
if( $_SERVER['argv'][1]==="help" || $_SERVER['argv'][1]==="-h" ){
78
{
79
 
79
	#show help
80
	#show help
80
	help();
81
	help();
81
 
82
 
82
	#停止執行
83
	#停止執行
83
	exit;
84
	exit;
84
 
85
 
85
}#if end
86
}#if end
86
 
87
 
87
#印出結果
88
#印出結果
88
echo base64_decode($_SERVER['argv'][1]).PHP_EOL;
89
echo base64_decode($_SERVER['argv'][1]);
89
 
90
 
90
#說明
91
#說明
91
function help()
92
function help(){
92
{
93
 
93
	#說明
94
	#說明
94
	echo $_SERVER['argv'][0]." string to base64 decode".PHP_EOL;
95
	echo $_SERVER['argv'][0]." string to base64 decode".PHP_EOL;
-
 
96
 
95
}
97
	}
96
 
98
 
97
?>
99
?>