码迷,mamicode.com
首页 > 其他好文 > 详细

MRBS会议管理系统配置简要说明

时间:2017-05-25 22:07:46      阅读:2736      评论:0      收藏:0      [点我收藏+]

标签:localhost   database   shanghai   管理系统   settings   

首先,确保linux系统lamp或lnmp运行正常。

  将MRBS文件夹放入指定的文件目录下

  编辑config.inc.php文件修改一下参数;

    $timezone = "Asia/Shanghai";

    

/*******************

 * Database settings

 ******************/

// Which database system: "pgsql"=PostgreSQL, "mysql"=MySQL

$dbsys = "mysql";

// Hostname of database server. For pgsql, can use "" instead of localhost

// to use Unix Domain Sockets instead of TCP/IP. For mysql "localhost"

// tells the system to use Unix Domain Sockets, and $db_port will be ignored;

// if you want to force TCP connection you can use "127.0.0.1".

$db_host = "localhost";

// If you need to use a non standard port for the database connection you

// can uncomment the following line and specify the port number

// $db_port = 1234;

// Database name:

$db_database = "mrbs";

// Schema name.  This only applies to PostgreSQL and is only necessary if you have more

// than one schema in your database and also you are using the same MRBS table names in

// multiple schemas.

//$db_schema = "public";

// Database login user name:

$db_login = "mysql_username";

// Database login password:

$db_password = ‘mysql_password‘;

// Prefix for table names.  This will allow multiple installations where only

// one database is available

$db_tbl_prefix = "mrbs_";

// Set $db_persist to TRUE to use PHP persistent (pooled) database connections.  Note

// that persistent connections are not recommended unless your system suffers significant

// performance problems without them.   They can cause problems with transactions and

// locks (see http://php.net/manual/en/features.persistent-connections.php) and although

// MRBS tries to avoid those problems, it is generally better not to use persistent

// connections if you can.

$db_persist = FALSE;

如需要指定管理员可以添加一下内容

$auth["admin"][] = "username";//登录名称

如需要将登陆用户通过邮箱账号来登录可以添加以下字段

$auth["type"] = "pop3";

# ‘auth_pop3‘ configuration settings

# Where is the POP3 server

$pop3_host = "pop.mail.com";修改成服务器指定地址

# The POP3 server port

$pop3_port = "110";


lang/lang.zh-cn可以进行修改页面的中文显示

根据对应关系进行修改


systemdefaults.inc.php修改系统默认配置

创建添加修改预定会议室时邮件通知给预定人修改如下内容

/**********************************************

 * Email settings

 **********************************************/


// WHO TO EMAIL

// ------------

// The following settings determine who should be emailed when a booking is made,

// edited or deleted (though the latter two events depend on the "When" settings below).

// Set to TRUE or FALSE as required

// (Note:  the email addresses for the room and area administrators are set from the

// edit_area_room.php page in MRBS)

$mail_settings[‘admin_on_bookings‘]      = TRUE;  // the addresses defined by $mail_settings[‘recipients‘] below

$mail_settings[‘area_admin_on_bookings‘] = FALSE;  // the area administrator

$mail_settings[‘room_admin_on_bookings‘] = FALSE;  // the room administrator

$mail_settings[‘booker‘]                 = TRUE;  // the person making the booking

$mail_settings[‘book_admin_on_approval‘] = TRUE;  // the booking administrator when booking approval is enabled

                                                   // (which is the MRBS admin, but this setting allows MRBS

                                                   // to be extended to have separate booking approvers)     


// WHEN TO EMAIL

// -------------

// These settings determine when an email should be sent.

// Set to TRUE or FALSE as required

//

// (Note:  (a) the variables $mail_settings[‘admin_on_delete‘] and

// $mail_settings[‘admin_all‘], which were used in MRBS versions 1.4.5 and

// before are now deprecated.   They are still supported for reasons of backward

// compatibility, but they may be withdrawn in the future.  (b)  the default 

// value of $mail_settings[‘on_new‘] is TRUE for compatibility with MRBS 1.4.5

// and before, where there was no explicit config setting, but mails were always sent

// for new bookings if there was somebody to send them to)


$mail_settings[‘on_new‘]    = TRUE;   // when an entry is created

$mail_settings[‘on_change‘] = TRUE;  // when an entry is changed

$mail_settings[‘on_delete‘] = TRUE;  // when an entry is deleted


// It is also possible to allow all users or just admins to choose not to send an

// email when creating or editing a booking.  This can be useful if an inconsequential

// change is being made, or many bookings are being made at the beginning of a term or season.

$mail_settings[‘allow_no_mail‘]        = FALSE;

$mail_settings[‘allow_admins_no_mail‘] = FALSE;  // Ignored if ‘allow_no_mail‘ is TRUE

$mail_settings[‘no_mail_default‘] = FALSE; // Default value for the ‘no mail‘ checkbox.  

                                           // TRUE for checked (ie don‘t send mail),

                                           // FALSE for unchecked (ie do send mail)



// WHAT TO EMAIL

// -------------

// These settings determine what should be included in the email

// Set to TRUE or FALSE as required

$mail_settings[‘details‘]   = TRUE; // Set to TRUE if you want full booking details;

                                     // otherwise you just get a link to the entry

$mail_settings[‘html‘]      = TRUE; // Set to true if you want HTML mail

$mail_settings[‘icalendar‘] = TRUE; // Set to TRUE to include iCalendar details

                                     // which can be imported into a calendar.  (Note:

                                     // iCalendar details will not be sent for areas

                                     // that use periods as there isn‘t a mapping between

                                     // periods and time of day, so the calendar would not

// HOW TO EMAIL - LANGUAGE

// -----------------------------------------


// Set the language used for emails (choose an available lang.* file).

$mail_settings[‘admin_lang‘] = ‘zh‘;   // Default is ‘en‘.



// HOW TO EMAIL - ADDRESSES

// ------------------------

// The email addresses of the MRBS administrator are set in the config file, and

// those of the room and area administrators are set though the edit_area_room.php

// in MRBS.    But if you have set $mail_settings[‘booker‘] above to TRUE, MRBS will

// need the email addresses of ordinary users.   If you are using the "db" 

// authentication method then MRBS will be able to get them from the users table.  But

// if you are using any other authentication scheme then the following settings allow

// you to specify a domain name that will be appended to the username to produce a

// valid email address (eg "@domain.com").

$mail_settings[‘domain‘] = ‘‘;

// If you use $mail_settings[‘domain‘] above and username returned by mrbs contains extra

// strings appended like domain name (‘username.domain‘), you need to provide

// this extra string here so that it will be removed from the username.

$mail_settings[‘username_suffix‘] = ‘‘;



// HOW TO EMAIL - BACKEND

// ----------------------

// Set the name of the backend used to transport your mails. Either ‘mail‘,

// ‘smtp‘, ‘sendmail‘ or ‘qmail‘. Default is ‘mail‘.

$mail_settings[‘admin_backend‘] = ‘mail‘;


/*******************

 * Sendmail settings

 */


// Set the path of the Sendmail program (only used with "sendmail" backend).

// Default is ‘/usr/bin/sendmail‘

$sendmail_settings[‘path‘] = ‘/usr/bin/sendmail‘;

// Set additional Sendmail parameters (only used with "sendmail" backend).

// (example "-t -i"). Default is ‘‘

$sendmail_settings[‘args‘] = ‘‘;


/*******************

 * Qmail settings

 */


/* Configures the path to ‘qmail-inject‘, if unset defaults to ‘/var/qmail/bin/qmail-inject‘ */

$mail_settings[‘qmail‘][‘qmail-inject-path‘] = ‘/usr/bin/qmail-inject‘;


/*******************

 * SMTP settings

 */


// These settings are only used with the "smtp" backend

$smtp_settings[‘host‘] = ‘mail.collegepre.com‘;  // SMTP server

$smtp_settings[‘port‘] = 25;           // SMTP port number

$smtp_settings[‘auth‘] = TRUE;        // Whether to use SMTP authentication

$smtp_settings[‘secure‘] = ‘tls‘;      // Encryption method: ‘‘, ‘tls‘ or ‘ssl‘

$smtp_settings[‘username‘] = ‘‘;       // Username (if using authentication)

$smtp_settings[‘password‘] = ‘‘;       // Password (if using authentication)

$smtp_settings[‘disable_opportunistic_tls‘] = false; // Set this to true to disable

                                                     // opportunistic TLS

                                                     // https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#opportunistic-tls


// EMAIL - MISCELLANEOUS

// ---------------------

// Set the email address of the From field. Default is ‘admin_email@your.org‘

$mail_settings[‘from‘] = ‘mrbs@your.org‘;


// The address to be used for the ORGANIZER in an iCalendar event.   Do not make

// this email address the same as the admin email address or the recipients 

// email address because on some mail systems, eg IBM Domino, the iCalendar email

// notification is silently discarded if the organizer‘s email address is the same 

// as the recipient‘s.  On other systems you may get a "Meeting not found" message.

$mail_settings[‘organizer‘] = ‘admin_email@your.org‘;


// Set the recipient email. Default is ‘admin_email@your.org‘. You can define

// more than one recipient like this "john@doe.com,scott@tiger.com"

$mail_settings[‘ttrecipients‘] = ‘mrbs@your.org‘;


// Set email address of the Carbon Copy field. Default is ‘‘. You can define

// more than one recipient (see ‘recipients‘)

//$user = getUserName();

$mail_settings[‘cc‘] = $user;


// Set to TRUE if you want the cc addresses to be appended to the to line.

// (Some email servers are configured not to send emails if the cc or bcc

// fields are set)

$mail_settings[‘treat_cc_as_to‘] = TRUE;


// The filename to be used for iCalendar attachments.   Will always have the

// extension ‘.ics‘

$mail_settings[‘ics_filename‘] = "booking";


// Set this to TRUE if you want MRBS to output debug information when you are sending email.

// If you are not getting emails it can be helpful by telling you (a) whether the mail functions

// are being called in the first place (b) whether there are addresses to send email to and (c)

// the result of the mail sending operation.

$mail_settings[‘debug‘] = TRUE;

// Where to send the debug output.  Can be ‘browser‘ or ‘log‘ (for the error_log)

$mail_settings[‘debug_output‘] = ‘log‘;


// Set this to TRUE if you do not want any email sent, whatever the rest of the settings.

// This is a global setting that will override anything else.   Useful when testing MRBS.

$mail_settings[‘disabled‘] = FALSE;


本文出自 “学习总结” 博客,谢绝转载!

MRBS会议管理系统配置简要说明

标签:localhost   database   shanghai   管理系统   settings   

原文地址:http://gaogaoxingxing.blog.51cto.com/5074809/1929413

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!