Location: PHPKode > projects > CsWebmail > cswebmail-3.10/cswebmail-3.10/include/config.php
<?
define(VALID_DOCUMENT,1);

///////////////////////////////////////
// Some server side constants
// root path for all content
define(ROOT_PATH,dirname($_SERVER['PHP_SELF']).'/');

// version
define(VERSION,'CS Webmail v3.9');

// organization
define(ORGANIZATION,'CS Department');

// author
define(AUTHOR,'Yanik Gleyzer');

// Web mail admin e-mail
define(ADMIN_EMAIL,'hide@address.com');

// IMAP server:port
define(IMAPHOST,'frodo.cs.bgu.ac.il');
define(IMAPPORT,143);

// NNTP server:port
define(NNTPHOST,'news.bgu.ac.il');
define(NNTPPORT,119);

// SMTP server:port
define(SMTPHOST,'indigo.cs.bgu.ac.il');
define(SMTPPORT,25);

// FTP server name
$FTPHOSTS = array('lace.cs.bgu.ac.il',
                  'lvs-rs1.cs.bgu.ac.il',
                  'lvs-rs2.cs.bgu.ac.il',
                  'lvs-rs3.cs.bgu.ac.il');
// Authentication name
define(AUTHNAME,'Computer Science Web Mail');

// mail suffix, domain name
define(MAILSUFFIX,'cs.bgu.ac.il');

define(MAILS_ON_PAGE,100);

define(DEFAULT_MAILS_PER_PAGE,50);

define(MAXFILESIZE,8*1024*1024);

define(ATTACHMENTS_NUM,5);

define(MAX_IMG_WIDTH,600);

// Default directory for mail boxes
define(DEFAULT_MAIL_DIR,'mail');

// Default mailbox for restored mails
define(DEFAULT_RESTORED_MAILBOX,'restored-mail');

// Default mailbox for fcc
define(DEFAULT_FCC_MAILBOX,'sent-mail');

// Default mailbox for fcc
define(DEFAULT_DRAFT_MAILBOX,'draft');

// local preferences storage dir
define(LOCAL_STORAGE_DIR,'/cs_service/www/webmail_storage/');

// auto login cookies dir
define(AUTOLOGIN_DIR,LOCAL_STORAGE_DIR.'AUTOLOGIN/');

// Directory for all preferences files (remote)
define(PREFERENCES_DIR,'~/.csmail');

// Preferences file
define(PREFERENCES_FILE,PREFERENCES_DIR.'/csmailrc');

// Addresses XML database
define(ADDRESSBOOK_FILE_XML,PREFERENCES_DIR.'/addressbook.xml');

// addresses database
define(ADDRESSBOOK_FILE,PREFERENCES_DIR.'/addressbook.dat');

// Procmail file
define(PROCMAIL_FILE,'~/.procmailrc');

// Newsrc file
define(NEWSRC_FILE,PREFERENCES_DIR.'/newsrc');

// Labels file
define(LABELS_FILE,PREFERENCES_DIR.'/labels.dat');

// incoming mail backup directory
define(INCOMING_BACKUP_DIR, '/mail_backup2/Incoming_mail_backup');
// inbox buckup directory
define(INBOX_BACKUP_DIR, '/mail_backup/');

//////////////////////////////////
// theme definitions
//////////////////////////////////
$THEMES = array('Gray'       => array('css'=>'./themes/gray.css','image'=>'./themes/gray-logo.gif'),
                'Sea Waves'  => array('css'=>'./themes/seawaves.css','image'=>'./themes/seawaves-logo.gif'),
                'Khaki'      => array('css'=>'./themes/khaki.css','image'=>'./themes/khaki-logo.gif'),
                'Diabolic'   => array('css'=>'./themes/diabolic.css','image'=>'./themes/diabolic-logo.gif'),
                'CS'         => array('css'=>'./themes/cs.css','image'=>'./themes/cs-logo.gif'),
                'PHP.net'    => array('css'=>'./themes/php.css','image'=>'./themes/php-logo.gif'),
                'Yahoo!'     => array('css'=>'./themes/yahoo.css','image'=>'./themes/yahoo-logo.gif'),
                'GMail'      => array('css'=>'./themes/gmail.css','image'=>'./themes/gmail-logo.gif'));
// default theme
$DEFAULT_THEME='CS';

//////////////////////////////////
// charset definitions
//////////////////////////////////
$CHARSETS = array('Western'            => 'iso-8859-1',
                  'Cyrillic (koi8-r)'  => 'koi8-r',
                  'Cyrillic (windows)' => 'windows-1251',
                  'Cyrillic (iso)'     => 'iso-8859-5',
                  'Hebrew (windows)'   => 'windows-1255',
                  'Hebrew (iso)'       => 'iso-8859-8',
                  'Unicode (utf-8)'    => 'utf-8');
// default charset
$DEFAULT_CHARSET = 'utf-8';

//////////////////////////////////
// default labels definitions
//////////////////////////////////
$DEFAULT_LABELS = array('urgent'    => array('name'=>'Urgent','color'=>'#B06','shortcut'=>'U'),
                        'important' => array('name'=>'Important','color'=>'#059','shortcut'=>'I'),
                        'personal'  => array('name'=>'Personal','color'=>'#090','shortcut'=>'P'),
                        'todo'      => array('name'=>'To Do','color'=>'#990','shortcut'=>'TD'));

//////////////////////////////////
// Email priorities
//////////////////////////////////
$EMAIL_PRIORITIES = array('normal' => array('name'=>'Normal',
                                            'headers'=>array('Priority: normal',
                                                             'X-Priority: 3 (Normal)')),
                          'urgent' => array('name'=>'Urgent',
                                            'headers'=>array('Priority: urgent',
                                                             'X-Priority: 1 (Highest)')),
                          'lowest' => array('name'=>'Non-urgent',
                                            'headers'=>array('Priority: lowest',
                                                             'X-Priority: 5 (Lowest)'))
                          );

// separator for emails
$EMAILS_SEPARATOR = ",";

// mailbox views
$MAILBOX_VIEWS = array('list'=>'Flat list','thread'=>'Thread grouping');

// style for blockquote in reply (check in RTE too)
$QUOTE_STYLE = 'margin:6px 0px 6px 6px;padding: 4px;border-left: 1px solid #888888;';

// action titles
$ACTION_TITLES = array('addressbook'=>'Address book',
                       'compose-forward'=>'Forward',
                       'compose-reply'=>'Reply',
                       'compose-reply-all'=>'Reply All',
                       'compose-continue'=>'Continue Email',
                       'compose'=>'Compose',
                       'labels'=>'Labels',
                       'gnupg'=>'GnuPG');

// default title
$TITLE = VERSION;

// tips
$TIPS = array('Select multiple mails at once : check the first, then press "Shift" and check the last.',
              'Compose a message in a new window by pressing "Shift" while clicking <i>Compose</i> or <i>Reply</i>.',
              'You can fill-up your <a href="'.$_SERVER['PHP_SELF'].'?action=addressbook">Address Book</a> by enabling <i>Remember each outgoing e-mail address</i> option.',
              'You can organize your emails using <a href="'.$_SERVER['PHP_SELF'].'?action=labels">labels</a>.',
              'Begin typing in the address fields and '.VERSION.' will suggest names from your contact list.',
              'If the mail has more than one attachments, you can download all attachments as <a href="http://en.wikipedia.org/wiki/ZIP_%28file_format%29">ZIP</a> file.',
              'You can view mailbox messages in threaded mode.');

?>
Return current item: CsWebmail