Changeset 1270
- Timestamp:
- 04/01/05 18:46:21 (4 years ago)
- Files:
-
- trunk/config.php (modified) (2 diffs)
- trunk/debian/changelog (modified) (1 diff)
- trunk/debian/control (modified) (1 diff)
- trunk/m_procmail.php (modified) (1 diff)
- trunk/procmail_add.php (modified) (2 diffs)
- trunk/procmail_opt.php (modified) (2 diffs)
- trunk/setup.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/config.php
r1268 r1270 1 1 <?php 2 3 global $pr,$db,$er; 2 4 3 5 bindtextdomain("procmail_builder", "/var/alternc/bureau/locales"); … … 9 11 require_once($root."class/functions.php"); 10 12 require_once($root."class/procmail_builder/m_procmail.php"); 13 require_once($root."class/db_mysql.php"); 11 14 require_once($root."class/m_err.php"); 12 15 13 require_once($root."class/db_mysql.php"); 14 15 // Classe héritée de la classe db de la phplib. 16 class DB_system extends DB_Sql { 17 var $Host,$Database,$User,$Password; 18 function DB_system() { 19 global $L_MYSQL_HOST,$L_MYSQL_DATABASE,$L_MYSQL_LOGIN,$L_MYSQL_PWD; 20 $this->Host = $L_MYSQL_HOST; 21 $this->Database = $L_MYSQL_DATABASE; 22 $this->User = $L_MYSQL_LOGIN; 23 $this->Password = $L_MYSQL_PWD; 24 } 16 if (!class_exists("DB_Sql")) { 17 // Classe héritée de la classe db de la phplib. 18 class DB_system extends DB_Sql { 19 var $Host,$Database,$User,$Password; 20 function DB_system() { 21 global $L_MYSQL_HOST,$L_MYSQL_DATABASE,$L_MYSQL_LOGIN,$L_MYSQL_PWD; 22 $this->Host = $L_MYSQL_HOST; 23 $this->Database = $L_MYSQL_DATABASE; 24 $this->User = $L_MYSQL_LOGIN; 25 $this->Password = $L_MYSQL_PWD; 26 } 27 } 28 $db= new DB_system(); 25 29 } 26 30 27 $db= new DB_system(); 31 if (!class_exists("m_err")) { 32 $er= new m_err(); 33 } 34 28 35 $pr= new m_procmail($username); 29 $er= new m_err();30 36 31 37 ?> trunk/debian/changelog
r1262 r1270 1 alternc-procmail (1.3-1) testing; urgency=low 2 3 * Patch to work properly with alternc 0.9.3 and squirrelmail 1.4 4 5 -- Benjamin Sonntag <benjamin@octopuce.com> Tue, 01 Apr 2005 18:39:00 +0200 6 1 7 alternc-procmail (1.2-1) unstable; urgency=low 2 8 trunk/debian/control
r1262 r1270 4 4 Maintainer: Benjamin Sonntag <benjamin@alternc.org> 5 5 Build-Depends: debhelper (>> 3.0.0), gettext 6 Standards-Version: 3. 5.26 Standards-Version: 3.6.1 7 7 8 8 Package: alternc-procmail 9 9 Architecture: any 10 Depends: ${shlibs:Depends}, alternc (>= 0.9. 2), procmail, squirrelmail (>= 1.4)10 Depends: ${shlibs:Depends}, alternc (>= 0.9.3), procmail, squirrelmail (>= 1.4) 11 11 Description: Procmail plugin for AlternC and Squirrelmail 1.4 12 12 This AlternC & Squirrelmail plugin allows any user to build a procmailrc trunk/m_procmail.php
r1266 r1270 65 65 *****************************************************************************/ 66 66 function get_status($user="") { 67 global $db; 67 68 if (!$user) $user=$this->user; 68 69 trunk/procmail_add.php
r1262 r1270 2 2 <?php 3 3 4 // the following has been commented out for squirrelmail 1.4 version : 5 /* 4 6 chdir (".."); 5 7 session_start(); … … 16 18 include_once ("../src/load_prefs.php"); 17 19 displayPageHeader($color, "None"); 18 19 textdomain("procmail_builder"); 20 */ 21 22 define('SM_PATH','../../'); 23 /* SquirrelMail required files. */ 24 require_once(SM_PATH . 'include/validate.php'); 25 require_once(SM_PATH . 'functions/page_header.php'); 26 require_once(SM_PATH . 'functions/imap.php'); 27 require_once(SM_PATH . 'include/load_prefs.php'); 28 require_once (SM_PATH . "plugins/procmail_builder/config.php"); 29 30 31 32 33 textdomain("procmail_builder"); 20 34 21 35 $raction=intval($raction); trunk/procmail_opt.php
r1262 r1270 10 10 11 11 if (!$already) { 12 13 14 // the following has been commented out for squirrelmail 1.4 version : 15 /* 12 16 chdir (".."); 13 17 session_start(); … … 19 23 include_once ("../functions/imap.php"); 20 24 25 if (isset($plugin_change_ldappass)) 26 $Messages = change_ldappass_check(); 27 21 28 include_once ("../src/load_prefs.php"); 29 displayPageHeader($color, "None"); 30 */ 31 32 define('SM_PATH','../../'); 33 /* SquirrelMail required files. */ 34 require_once(SM_PATH . 'include/validate.php'); 35 require_once(SM_PATH . 'functions/page_header.php'); 36 require_once(SM_PATH . 'functions/imap.php'); 37 require_once(SM_PATH . 'include/load_prefs.php'); 38 require_once (SM_PATH . "plugins/procmail_builder/config.php"); 39 40 41 42 22 43 displayPageHeader($color, "None"); 23 44 } 24 45 25 textdomain("procmail_builder");46 textdomain("procmail_builder"); 26 47 27 48 // submit :) let's DO something trunk/setup.php
r1262 r1270 14 14 textdomain("procmail_builder"); 15 15 $optpage_blocks[] = array( 16 'name' => _("Filter messages"),16 'name' => _("Filter Messages"), 17 17 'url' => '../plugins/procmail_builder/procmail_opt.php', 18 18 'desc' => _("This allow you to filter your incoming messages, setup a vacation autoreply, or filter spam with SpamAssassin"),
