Rev 52 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 52 | Rev 55 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <?php /* <ViaThinkSoftSignature> |
1 | <?php /* <ViaThinkSoftSignature> |
2 | Wg+EYgkO45tkUYzHp3wFsbyVVQadb07ttd04MjjH7C7i7UygR0ZiFQfpqQ5pc6i6M |
2 | ogeU7sU9og0Wo32ZGa8L9wIY+V280zVqPOo8/wFGNLcjhWISQDQiY/6hyvIb0IODQ |
3 | bd+RpyfWYxeMRU8KLRO/I2CymXtB/L11tisWnZRRVSBBsoVr73xZFIDrZiMC+Amxs |
3 | 7GQ2eU7C0QiTPiaMy7C1H9EXqhoCyKtDqTtkXso2KCYTNqkUtcna/UjX12mZwvQ89 |
4 | /WqnIRJIVCCniLDPPzp+WlIq7/e8djQukSglqSsL4Dhvk37k7iWJuAkyoFodffOVQ |
4 | ltvtnRJeC1OXO1XcwE0/L1XZlo68dYSvgmufJQheVYAj9uU7PW9sb2YH+WTK8BM2M |
5 | FHLvcfvw/yjzSvLzE/3kAOToZ7OmNBfVhJKcUOYouYINCrxrqvY7FfOWz/GftnHkV |
5 | JUHn+JdLnY9QUlOLp6bVYXJqDxqzj81uHGH5oXnhrqvsKvd8CrhUwy2X6fCpWgyId |
6 | 5vjYJrTaoKpYW3N4Xoi0HBVfzTKQjND4ihulrkV4p6PhHdbdD5dXNaXUERgjAqeED |
6 | S46OaEpBykHYdPIwFo04G3HfIyeWCQxnOIcxBbeuz1jee48I5BHFJczmkpYerE/Ao |
7 | tvpQzPHqA25Q74llkjFDeyNFHkEMKmiqdVbO/LcWHetROqMRu2on6Eghy7BCgqsfD |
7 | V0zlIF7cXWvSNn2XVC9+AyfDIA/BmtafqkOnDKHNrVmsQHx0QBL++C6ZoooE78ArT |
8 | lPXeHS2EN+AhcfPpFBZ59crM/qWw+LSrbQfvI/SScwlT3z0+vjKRuLOBvz2US3Mce |
8 | rkmjPLr8uK896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b2MVRnuIgaMZ6dizCPWJl/bkuqCjizMV2TbLLUnIx |
16 | gqvRGbkZKuJMQTBkSxR9Ex6MyzhknWokHVV3xAWAb62B6wILFtWAYVgAgzcERr+Qd |
17 | /fRb2YX98uPNsdWRTt8kZJit6QmwPi6YKJO3YKZUkaCtaM7mwjVZ0g/ZNkX2VBZ8k |
17 | suffXc41q5xjx1jpBkgCN26wj96fPu+jeKHS3/m/ck4PLNsWwicNGOS/uppJTb8d+ |
18 | OW0JumHLXOcbQLCi6dVjsyp4fsEXmiQYLksGQtyhDtGVj/MVDz0MZMJosClcqjfCa |
18 | FvNy7yTk4E91H9ui4Us6RzoqbRT+Z8EQQqBl5nLkzqNzNN4gMgBNvICfsWBNJbHpY |
19 | M3DD8exxuvwFLIj9+y52IZKxOlsW/fB/fQiBmay/OOsyYHGMfVEpFZNnOMweB13xR |
19 | enq7LIYYfqBISDJ5WcWw/Z51e3z8Uk9TOOBNkcpRyjUe/F1Q3bhRLrz/eeXnBzkG0 |
20 | SpB8NaUON7MUCKwG1PfdmQcMZpwA01QREkVW4/u75qPr3OoyyeJ3/zYJhJXSv3md6 |
20 | 7Cji5xIasOO6qkgZSbcNqqvQ0chkrfOgB2FnsT8WUFIYtLaJOXHV/r0VGbTFhOTSv |
21 | V6V53FLy2SG13eHajqVQDLrYDqu56V/GL/tI4JLIoFhKr2gzj2lFJFGyr4peCipRD |
21 | 2968Q3wsFxstk8DlKtWgl3LeYb2ECvNPFM5iZrisvx8EGcZNp2xJDniE9xorfKJTl |
22 | ijdZWqbFUcDFJS8c0lJ1P68D1ATEB0m92CDen1ttVUCOUO5CK0+Qc5MbKCTXlr2OY |
22 | Gh43qnLC0djTq+mIp8V2fP8QqK8MoSxPiowJIyzXUCD2YOppdiYeaFdqXyZioy9wJ |
23 | A== |
23 | Q== |
24 | </ViaThinkSoftSignature> */ ?> |
24 | </ViaThinkSoftSignature> */ ?> |
25 | <?php |
25 | <?php |
26 | 26 | ||
27 | /* |
27 | /* |
28 | 28 | ||
Line 393... | Line 393... | ||
393 | /*public*/ const OUTPUT_NORMAL = 2; |
393 | /*public*/ const OUTPUT_NORMAL = 2; |
394 | /*public*/ const OUTPUT_EXCEPTION = 4; |
394 | /*public*/ const OUTPUT_EXCEPTION = 4; |
395 | /*public*/ const OUTPUT_ALWAYS = 7; // = OUTPUT_SPECIAL+OUTPUT_NORMAL+OUTPUT_EXCEPTION |
395 | /*public*/ const OUTPUT_ALWAYS = 7; // = OUTPUT_SPECIAL+OUTPUT_NORMAL+OUTPUT_EXCEPTION |
396 | 396 | ||
397 | public $http_visual_output = self::OUTPUT_ALWAYS; // show a human-readable panel? ... |
397 | public $http_visual_output = self::OUTPUT_ALWAYS; // show a human-readable panel? ... |
398 | public $http_invisible_output = self::OUTPUT_ALWAYS; // ... and/or show an invisible machine-readable tag? |
398 | public $http_invisible_output = self::OUTPUT_ALWAYS; // ... and/or output an invisible machine-readable tag? |
399 | 399 | ||
400 | // $html_before and $html_after contain the output HTML which were sent by the user |
400 | // $html_before and $html_after contain the output HTML which were sent by the user |
401 | 401 | ||
402 | // before and after the visual output |
402 | // before and after the visual output |
403 | protected $html_before = ''; |
403 | protected $html_before = ''; |
Line 1705... | Line 1705... | ||
1705 | return !is_null($this->getArgumentObj($shortopt)); |
1705 | return !is_null($this->getArgumentObj($shortopt)); |
1706 | } |
1706 | } |
1707 | 1707 | ||
1708 | public function illegalUsage() { |
1708 | public function illegalUsage() { |
1709 | // In this function, we should check if $argv (resp. getopts) contains stuff which is not expected or illegal, |
1709 | // In this function, we should check if $argv (resp. getopts) contains stuff which is not expected or illegal, |
1710 | // so the script can show an usage information and quit the program. |
1710 | // so the script can show a usage information and quit the program. |
1711 | 1711 | ||
1712 | // WONTFIX: PHP's horrible implementation of GNU's getopt does not allow following intended tasks: |
1712 | // WONTFIX: PHP's horrible implementation of GNU's getopt does not allow following intended tasks: |
1713 | // - check for illegal values/arguments (e.g. the argument -? which is always illegal) |
1713 | // - check for illegal values/arguments (e.g. the argument -? which is always illegal) |
1714 | // - check for missing values (e.g. -H instead of -H localhost ) |
1714 | // - check for missing values (e.g. -H instead of -H localhost ) |
1715 | // - check for unexpected arguments (e.g. -x if only -a -b -c are defined in $expectedArgs as expected arguments) |
1715 | // - check for unexpected arguments (e.g. -x if only -a -b -c are defined in $expectedArgs as expected arguments) |