diff options
author | Boian Bonev <bbonev@php.net> | 2001-01-14 17:04:22 +0000 |
---|---|---|
committer | Boian Bonev <bbonev@php.net> | 2001-01-14 17:04:22 +0000 |
commit | bd92e102138f01005c2ef6986759e199c058df6f (patch) | |
tree | 75cc788e4043e67e93159d97a2985c2c67ab4f46 /ext/vpopmail/php_vpopmail.h | |
parent | f6ad8186d6980ff1a699f20d12dc736c00fbd7c7 (diff) | |
download | php-git-bd92e102138f01005c2ef6986759e199c058df6f.tar.gz |
merged my version with David Croft's
removed unneccessary php.ini calls and defines
removed module_init, shutdown, request_init declarations and references
added request_shutdown to close mysql/other db connection
(a must in apache module)
added defines for external binaries from vpopmail
changed functions to present more consistent api from user's point of view
so that in one call more stuff is done
added more comprehensive MINFO function helping users debug their case
added static int vpopmail_exec(char *cmd) [will change to php_Exec soon]
@ vpopmail extension updated to working alfa. give it a try but keep in
@ mind that it is not ready for production environments (Boian Bonev)
Diffstat (limited to 'ext/vpopmail/php_vpopmail.h')
-rw-r--r-- | ext/vpopmail/php_vpopmail.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/ext/vpopmail/php_vpopmail.h b/ext/vpopmail/php_vpopmail.h index 83be22ec63..d10786bfab 100644 --- a/ext/vpopmail/php_vpopmail.h +++ b/ext/vpopmail/php_vpopmail.h @@ -12,7 +12,8 @@ | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Author: David Croft <david@infotrek.co.uk> | + | Authors: David Croft <david@infotrek.co.uk> | + | Boian Bonev <boian@bonev.com> | +----------------------------------------------------------------------+ */ @@ -32,29 +33,30 @@ extern zend_module_entry vpopmail_module_entry; #define PHP_VPOPMAIL_API #endif -PHP_MINIT_FUNCTION(vpopmail); -PHP_MSHUTDOWN_FUNCTION(vpopmail); +PHP_RSHUTDOWN_FUNCTION(vpopmail); PHP_MINFO_FUNCTION(vpopmail); +// domain management PHP_FUNCTION(vpopmail_adddomain); PHP_FUNCTION(vpopmail_deldomain); +PHP_FUNCTION(vpopmail_addaliasdomain); +// user management PHP_FUNCTION(vpopmail_adduser); PHP_FUNCTION(vpopmail_deluser); PHP_FUNCTION(vpopmail_passwd); PHP_FUNCTION(vpopmail_setuserquota); PHP_FUNCTION(vpopmail_auth_user); -typedef struct { - int le_vpopmail; - int initialised; - char *defaulthost; - int defaultport; - int defaulttimeout; - char *proxyaddress; - int proxyport; - char *proxylogon; - char *proxypassword; -} php_vpopmail_globals; +// defines for proper operation +#define VPOPMAIL_ADDD "/vadddomain " +#define VPOPMAIL_DELD "/vdeldomain " +#define VPOPMAIL_ADAD "/vaddaliasdomain " + +/* removed by intent - will add upon need +ZEND_BEGIN_MODULE_GLOBALS(vpopmail) + int global_variable; +ZEND_END_MODULE_GLOBALS(vpopmail) +*/ #ifdef ZTS #define VPOPMAILG(v) (vpopmail_globals->v) |