Location: PHPKode > scripts > Gmail Invite Sig > gmail-invite-sig/config.php
<?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 => not allowed, 1 => allowed
   
   /** for debugger **/
   define("D_FILE", "debug.php");     // debugging data file, should be in PHP for security reason
   define("D_ON",   0);               // debugging mode. 0 => off, 1 => on
   
   
   /*** do NOT modify the code after this line ***/
   
   
   /** 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;
   }
   
   class Debugger {      
      function say($str) {
         if (D_ON) {
            $fd = fopen(D_FILE, "a+");
            fwrite($fd, "<?php ".$str." ?>\n");
            fclose($fd);
         }
      }
   }
   Debugger::say("======== ".date("j M Y H:i:s")." entry begin ===============================");

   
?>
Return current item: Gmail Invite Sig