<?
/*
File name : global.inc
Version : 2.0.0
Last Modified By : Pete Larsen
e-mail : hide@address.com
Purpose : Global configuration File for Postaci Webmail
Last modified : 29 Sept 2006
*/
// 1.
// you should select the default language. version 1.1.1 defaults to English
// Possible values : english, portugues, dutch, deutsch, italiano, turkce, espanol,
// francais, norsk, polski
$default_lang = "english";
// 2.
// Select the database engine. Possible values are postgresql, mysql, msql, sybase, mssql.
// You can find the default sql queries in queries directory for mysql, postgresql and mssql
// MS SQL support is under test please report any errors/improvements to
// "Umut Gokbayrak" <hide@address.com>
$database_type = "mysql";
// 3.
// Specify the hostname where database is located. It may be an IP number, hostname or dns name
// You should grant usage to the webmail server(IP) and database user the select, insert, delete,
// update permissions in order to install Postaci if the database server is a remote one.
// See INSTALL file for details. If Postaci is on the database server no need to change this.
$database_host = "localhost";
// 4. The database name, username and password.
// YOU REALLY NEED TO CHANGE THESE.
$database_user = "";
$database_user_pass = "";
$database_name = "";
// 5.
// You should select which protocol to use. Postaci supports both IMAP and POP3 mailboxes.
// Possible values : imap, pop3
$default_protocol = "imap";
// 6.
// The POP3/IMAP servername, IP or DNS name. If Postaci is on the POP3/IMAP server, no need
// to change this.
$default_host = "localhost";
// 7.
// Default port for IMAP access is 143 and it is 110 for POP3. If yours is different simply
// change this value. If you are not sure leave as default.
$default_port = "143";
// 8.
// SMTP host information. Postaci can use another relay server for sending mail. If $smtp_host is
// left as default value(localhost) things will go slightly faster. If you want to use another SMTP
// server for sending e-mail you can use the IP, hostname or DNS name here.
// If a remote server is defined here, Postaci will try to connect to the server via SMTP port and
// try to deliver the mail. This is work in progress, so please report any success or failure.
// SMTP servers normally reside on port 25. So you normally don' t need to change $smtp port value.
// $smtp_auth - Does your smtp server require authentication? yes/no
// $smtp_imap - If your smtp server does require a login, is it the same
// username and password used for imap or pop3? yes/no
// $smtp_same - If your smtp server does require a login, do you want everyone to use the same
// username and password? yes/no If yes then you must set $smtp_user and $smtp_pass
$smtp_host = "localhost";
$smtp_port = "25";
$smtp_auth = "no";
$smtp_imap = "no";
$smtp_same = "no";
$smtp_user = '';
$smtp_pass = '';
// 9.
// $attach_directory is the place where Postaci uploads the attachments to be sent for temporary
// storage.
// DO NOT FORGET THE TAILING SLASH!!!, YOU REALLY NEED TO CHANGE THIS.
$attach_directory = "/tmp/postaci/send/";
// 10.
// postaci_directory is where the Postaci installation resides on your directory structure.
// This varible is really important. If you do not set it you will get an empty screen.
// DO NOT FORGET THE TAILING SLASH!!! YOU REALLY NEED TO CHANGE THIS
$postaci_directory = "/val/www/postaci/";
// 11.
// Although Cyrus IMAP has some slight differences, Postaci seems to work with all IMAP servers.
// In case you need it set this value to true and please report any incompatibilities.
$cyrus_imap_server = false;
// 12.
// If you are using POP3 protocol, you should have a non-web accessable directory for
// storing attachments. This directory' s permissions should be 700 and the owner should be nobody
// (the user that runs the httpd). Although you don' t use POP3 this directory should lead to an
// existing directory. (Ex : /tmp)
// DO NOT FORGET THE TAILING SLASH!!!
$pop3_attach_dir = "/tmp/postaci/store/";
// 13.
// You set the title here.
$title = "Postaci Webmail";
// 14.
// Seperator is the value used for limiting the number of messages to be shown at each page.
// NO NEED TO CHANGE THIS.
// $seperator = 15;
// 15.
// Operating system. As from version 1.1.1, Postaci both supports Unix/Linux/BSD and Windows systems.
// You can select you operating system here.
// Possible values : windows, unix
$operating_system = "unix";
// 16.
// This is the error value for PHP configuration. If you think you have found a bug or want to
// contact the author, comment the following line with two slashes and e-mail the error/warning messages to
// "Umut Gokbayrak <hide@address.com>"
error_reporting(32);
// 17.
// Please enter your TEMP directory here. This directory is used for temprarily storing session files.
// Windows port of PHP doesn't handle TEMP directories by itself so Windows users need to specify it here.
// It can be any directory with appropriate permissions. Just uncomment it (delete two slashes) and assing
// the correct value.
// WINDOWS USERS NEED THIS.
// $temp_directory = "c:\\temp";
$temp_directory = "/tmp/postaci/";
// 18.
// If you want to remove that sponsored by... banner simply change this value to false.
$show_sponsor = false;
// 19.
// Qmail users which store accounts and messages in databases require special login format. In order to avoid
// this imcompatibility simply change this value to true.
$qmail_support = false;
// 20.
// You can specify a footer text for every message outgoing from the server.
// This field is optinal. If you need a new line in the text, use \n for the purpose.
$footer_message = "";
// 21.
// To cope with courier-imap personal folders
$courier_imap_support = false;
// The following only are considered if courier-imap support is on
// If php imap supports NAMESPACE server extension (RFC2342) this
// could be configured automatically.
// DO NOT FORGET THE TRAILING PERIOD
$personal_namespace = "INBOX.";
// 22.
// Decide which language selections to show in the main page.
// If any language is set to true a button will appear
// on the intro screen which will let you use Postaci using that language settings.
// Possible values : true and false
$turkce_support = true;
$english_support = true;
$francais_support = true;
$deutsch_support = true;
$polski_support = true;
$espanol_support = true;
$portugues_support = true;
$dutch_support = true;
$norsk_support = true;
$italiano_support = true;
// 23.
// Background Color for the top left corner.
// The top and left sides are gif images. You can edit
// those images and then change this color to match them.
$bgc = "#273C79";
// 24.
// This text will appear at the bottom of each page.
$footer = "<a href='http://www.postaciwebmail.org/' target='_blank'>Postaci WebMail</a>";
// 25.
// These variables change the background colors of the input fields in sendmail.php
// $scolor is the color of the field that is selected
// $nscolor is the color of the fields when they are not selected
$scolor = "#FFFFFF";
$nscolor = "#DFE7EE";
// 26.
// This variable enables the spellcheck feature.
// true = on and false = off
// To change the dictionary used, just change the $spell_language variable in the
// translation file of the particular language you want to change.
// All of the translation files are located in the lang directory.
$spellcheck_on = true;
/**************************************************************/
/* No Need to change anything below. */
/**************************************************************/
$postaci_version = "2";
if ($operating_system == "windows") {
session_save_path($temp_directory);
}
$to_folder = "Sent Items";
if (trim($l) != "" && trim($l) != '$lang_choice') {
$lang_choice = $l;
} else {
if ($lang_choice == "") {
$lang_choice = $default_lang;
}
}
switch ($lang_choice) {
case "portugues":
case "dutch":
case "deutsch":
case "italiano":
case "francais":
case "norsk":
case "turkce":
case "espanol":
case "polski":
case "english":
include("$postaci_directory" . "lang/" . "$lang_choice" . ".inc");
break;
default:
die("<center><font color='red'><p><b>Invalid language selection</b></p></font></conter>");
}
include("$postaci_directory" . "classes/phpDB.inc");
$db = new phpDB();
$db->pconnect("$database_host", "$database_user", "$database_user_pass", "$database_name") or die ("<center><font color='red'><p><b>$text75</b></p></font></conter>");
?>