From: Rob S. <rs...@op...> - 2009-11-16 14:07:35
|
I am sorry about the html must have been the signature. As I research this further, the site states that the courier_vacation plugin requires compatibility 1.x instead of 2.x which is what I am using and have to use because of the change_sqlpass option. I tried to update the top as suggested. <?php define('SM_PATH','../../'); require_once(SM_PATH . 'include/validate.php'); if (file_exists(SM_PATH . 'include/validate.php')) include_once(SM_PATH . 'include/validate.php'); else include_once(SM_PATH . 'src/validate.php'); load_config('courier_vacation', array('config.php')); include_once(SM_PATH . 'plugins/courier_vacation/functions.php'); global $messageFileName, $subjectFileName, $ccAddressesFileName, $keepMessagesFileName, $vacationMessageSubmit, $messageText, $vacationStatus, $messageSubject, $ccAddresses, $keepMessages, $username, $data_dir, $color; // get flag that tells us if this is a vacation // message submission // sqgetGlobalVar('vacationMessageSubmit', $vacationMessageSubmit); // get the user's home directory // $homeDir = getHomeDirectory($username); // if a message and other info was submitted, process it here // if (isset($vacationMessageSubmit) && $vacationMessageSubmit == 1) { sqgetGlobalVar('messageText', $messageText); sqgetGlobalVar('vacationStatus', $vacationStatus); sqgetGlobalVar('messageSubject', $messageSubject); sqgetGlobalVar('ccAddresses', $ccAddresses); sqgetGlobalVar('keepMessages', $keepMessages); // // file names... // // file in user's directory where vacation message text is kept // $messageFileName = 'vacation.txt'; // file in user's directory where vacation message subject is kept // $subjectFileName = 'vacation_subject.txt'; // file in user's directory where cc addresses are kept // $ccAddressesFileName = 'vacation_cc_addresses.txt'; // file in user's directory that serves as a flag that messages // should be retained in the local account as well as forwarding copies... // $keepMessagesFileName = 'vacation_keep_messages.txt'; // // backend settings // // this setting determines where your user settings are // stored. currently, only MySQL is supported, although // that could change... // $backend = 'mysql'; // // MySQL settings // // your MySQL server // $mysql_server = 'localhost'; // the MySQL user ID // $mysql_user = '/user/'; // the MySQL user's password // $mysql_pwd = '/user_pass/'; // the MySQL database that contains email account information // $mysql_database = '/db/'; // the MySQL table that contains email account information // $mysql_table = 'users'; // the MySQL field that contains users' home directory locations // $mysql_home_field = concat('home','maildir'); //this should put the proper home directory in, since it is virtual the home directory is sql cell home (/var/spool/mail/virtual) and maildir (/userx//) // the MySQL field that contains users' IDs // $mysql_userid_field = 'id'; ?> |