<?php
/** config.php **/
require_once("libgmailer.php");
/** for accessing with proxy **/
define("P_PROXY", "");
define("P_USER", "");
define("P_PWD", "");
/** for session management method, must pick either one **/
//$session_method = (GM_USE_PHPSESSION | GM_USE_COOKIE); // if you are going to use PHP Session and with cookies
$session_method = (GM_USE_PHPSESSION | !GM_USE_COOKIE); // if you are going to use PHP Session, but without cookies
//$session_method = (!GM_USE_PHPSESSION | GM_USE_COOKIE); // if you do not have, or are not going to use PHP Session (then you must use cookies)
/** for composing **/
define("C_ATTACHMENT", 1); // 0 => attachment not allowed, 1 => allowed
/** auto-refresh of Summary **/
define("S_REFRESH_SEC", 300); // second to refresh summary page; 0 => no auto-refresh
/** display total no. of conversation for each label in the summary page (may make it slow to render) **/
define("S_SHOW_TOTAL", 1); // 1 => display, 0 => not display
/** color theme **/
define("T_BACKGROUND", "white");
define("T_OTHERROW", "lightblue");
define("T_OPTIONROW", "silver");
/** for debugger **/
$D_FILE = "debug.php"; // debugging data file, should be in PHP for security reason
$D_ON = 0; // debugging mode. 0 => off, 1 => on
error_reporting(E_ALL);
/*** please do NOT modify the code after this line ***/
/** gmail-lite version **/
define("GL_VER", "0.9");
/** quick init. gmailer for gmail-lite **/
function quick_init(&$gmailer) {
global $session_method;
if ($gmailer->created) {
if (strlen(P_PROXY) > 0)
$gmailer->setProxy(P_PROXY, P_USER, P_PWD);
if (isset($session_method))
$gmailer->setSessionMethod($session_method);
}
return 0;
}
Debugger::say("======== ".date("j M Y H:i:s")." entry begin ===============================");
?>