Changeset 2248 for alternc-procmail
- Timestamp:
- 06/10/08 10:43:36 (6 months ago)
- Files:
-
- alternc-procmail/trunk/debian/changelog (modified) (1 diff)
- alternc-procmail/trunk/debian/control (modified) (1 diff)
- alternc-procmail/trunk/debian/lintian-override (added)
- alternc-procmail/trunk/debian/postinst (deleted)
- alternc-procmail/trunk/debian/rules (modified) (1 diff)
- alternc-procmail/trunk/procmail_add.php (modified) (3 diffs)
- alternc-procmail/trunk/procmail_opt.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc-procmail/trunk/debian/changelog
r1279 r2248 1 alternc-procmail (1.5) testing; urgency=low 2 3 * Patch to work properly with squirrelmail 1.4.9 on alternc 0.9.9 with php with register_globals = off 4 5 -- Benjamin Sonntag <benjamin@alternc.org> Tue, 10 Jun 2007 10:34:00 +0200 6 1 7 alternc-procmail (1.4) testing; urgency=low 2 8 alternc-procmail/trunk/debian/control
r1654 r2248 3 3 Priority: optional 4 4 Maintainer: Benjamin Sonntag <benjamin@alternc.org> 5 Build-Depends-Indep: debhelper, gettext 6 Standards-Version: 3.7.2.0 5 Build-Depends-Indep: gettext 6 Build-Depends: debhelper 7 Standards-Version: 3.7.2.2 7 8 8 9 Package: alternc-procmail 9 10 Architecture: all 10 Pre-Depends: alternc 11 Depends: ${shlibs:Depends}, procmail, squirrelmail (>= 1.4 )12 Description: Procmail plugin for AlternC and Squirrelmail 1.4 11 Pre-Depends: alternc (>= 0.9.8) 12 Depends: ${shlibs:Depends}, procmail, squirrelmail (>= 1.4.9) 13 Description: Procmail plugin for AlternC and Squirrelmail 1.4.9 13 14 This AlternC & Squirrelmail plugin allows any user to build a procmailrc 14 15 file thanks to a user-friendly internationalized web interface integrated alternc-procmail/trunk/debian/rules
r1612 r2248 50 50 cp m_procmail.php procmailrc.default debian/alternc-procmail/var/alternc/bureau/class/procmail_builder/ 51 51 cp -R locales debian/alternc-procmail/var/alternc/bureau/ 52 find debian/alternc-procmail/var/alternc/bureau/ -name CVS -depth -exec rm {} -rf \; 52 find debian/alternc-procmail/ -name CVS -depth -exec rm {} -rf \; 53 find debian/alternc-procmail/ -name .svn -depth -exec rm {} -rf \; 53 54 chown -R 33.33 debian/alternc-procmail/var/alternc/bureau/ debian/alternc-procmail/usr/share/squirrelmail/plugins/ 54 55 alternc-procmail/trunk/procmail_add.php
r1270 r2248 1 <?php /* Modified at 2 places by ri_once */ ?> 2 <?php 3 4 // the following has been commented out for squirrelmail 1.4 version : 5 /* 6 chdir (".."); 7 session_start(); 8 9 include_once ("procmail_builder/config.php"); 10 include_once ("../config/config.php"); 11 include_once ("../functions/strings.php"); 12 include_once ("../functions/page_header.php"); 13 include_once ("../functions/imap.php"); 14 15 if (isset($plugin_change_ldappass)) 16 $Messages = change_ldappass_check(); 17 18 include_once ("../src/load_prefs.php"); 19 displayPageHeader($color, "None"); 20 */ 1 <?php 2 3 global $username, $key, $imapServerAddress, $imapPort; 21 4 22 5 define('SM_PATH','../../'); 23 6 /* SquirrelMail required files. */ 24 7 require_once(SM_PATH . 'include/validate.php'); 8 require_once(SM_PATH . 'functions/global.php'); 25 9 require_once(SM_PATH . 'functions/page_header.php'); 26 10 require_once(SM_PATH . 'functions/imap.php'); 27 11 require_once(SM_PATH . 'include/load_prefs.php'); 28 require_once (SM_PATH . "plugins/procmail_builder/config.php"); 29 30 12 require_once(SM_PATH . "plugins/procmail_builder/config.php"); 13 14 15 /** COOKIE VARS */ 16 sqgetGlobalVar('key', $key, SQ_COOKIE); 17 18 /** SESSION VARS */ 19 sqgetGlobalVar('username', $username, SQ_SESSION); 20 sqgetGlobalVar('onetimepad',$onetimepad, SQ_SESSION); 21 sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION); 22 sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION); 31 23 32 24 33 25 textdomain("procmail_builder"); 34 26 35 $raction=intval($ raction);27 $raction=intval($_REQUEST["raction"]); 36 28 if (!$raction) { 37 29 $raction=1; 38 30 } 31 32 $accook=$_REQUEST["accook"]; 33 $crit=$_REQUEST["crit"]; 34 $crittext=$_REQUEST["crittext"]; 35 $del=$_REQUEST["del"]; 36 $createit=$_REQUEST["createit"]; 37 $rcreateit=$_REQUEST["rcreateit"]; 38 $dropit=$_REQUEST["dropit"]; 39 $rdropit=$_REQUEST["rdropit"]; 40 $newcrittxt=$_REQUEST["newcrittxt"]; 41 $newcrit=$_REQUEST["newcrit"]; 39 42 40 43 $crittypecount=7; … … 45 48 $crittext=array(); 46 49 } 47 if ($createit && $accook= 2) {50 if ($createit && $accook==2) { 48 51 $newcrit=intval($newcrit); 49 52 $crit[]=$newcrit; … … 68 71 69 72 if ($rcreateit && $accook==2) { 70 if (!$r=$pr->buildrule($ rulename,$crit,$crittext,$raction,$foldertogo,$emailto,$autoreplytxt)) {73 if (!$r=$pr->buildrule($_REQUEST["rulename"],$crit,$crittext,$raction,$_REQUEST["foldertogo"],$_REQUEST["emailto"],$_REQUEST["autoreplytxt"])) { 71 74 $error=$er->errstr(); 72 75 } else { alternc-procmail/trunk/procmail_opt.php
r1270 r2248 4 4 * 5 5 */ 6 if ($ accook==1 && $addnew) {6 if ($_REQUEST["accook"]==1 && $_REQUEST["addnew"]) { 7 7 include_once("procmail_add.php"); 8 8 exit(); … … 11 11 if (!$already) { 12 12 13 14 // the following has been commented out for squirrelmail 1.4 version : 15 /* 16 chdir (".."); 17 session_start(); 18 19 include_once ("procmail_builder/config.php"); 20 include_once ("../config/config.php"); 21 include_once ("../functions/strings.php"); 22 include_once ("../functions/page_header.php"); 23 include_once ("../functions/imap.php"); 24 25 if (isset($plugin_change_ldappass)) 26 $Messages = change_ldappass_check(); 27 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 43 displayPageHeader($color, "None"); 13 define('SM_PATH','../../'); 14 /* SquirrelMail required files. */ 15 require_once(SM_PATH . 'include/validate.php'); 16 require_once(SM_PATH . 'functions/page_header.php'); 17 require_once(SM_PATH . 'functions/imap.php'); 18 require_once(SM_PATH . 'include/load_prefs.php'); 19 require_once (SM_PATH . "plugins/procmail_builder/config.php"); 20 21 displayPageHeader($color, "None"); 44 22 } 45 23 … … 47 25 48 26 // submit :) let's DO something 49 if ($ accook==1) {27 if ($_REQUEST["accook"]==1) { 50 28 $error=""; 51 if ($ disable) {29 if ($_REQUEST["disable"]) { 52 30 if ($pr->disable()) 53 31 $error=_("Your mail filters has been disabled"); … … 55 33 $error=$er->errstr(); 56 34 } 57 if ($ enable) {35 if ($_REQUEST["enable"]) { 58 36 if ($pr->enable()) 59 37 $error=_("Your mail filters has been enabled"); … … 61 39 $error=$er->errstr(); 62 40 } 63 if ($ delete && is_array($del)) {41 if ($_REQUEST["delete"] && is_array($_REQUEST["del"])) { 64 42 $rules=$pr->readrules(); 65 43 $r=array(); 66 44 for($i=0;$i<count($rules);$i++) { 67 if (!in_array($i+1,$ del)) {45 if (!in_array($i+1,$_REQUEST["del"])) { 68 46 $r[]=$rules[$i]; 69 47 } … … 90 68 $rules=$pr->readrules(); 91 69 92 if ($ act=="up") {93 $t=$pr->uprule($rules,$ rid);70 if ($_REQUEST["act"]=="up") { 71 $t=$pr->uprule($rules,$_REQUEST["rid"]); 94 72 if ($t!==false) { 95 73 $pr->writerules($t); … … 99 77 } 100 78 } 101 if ($ act=="down") {102 $t=$pr->downrule($rules,$ rid);79 if ($_REQUEST["act"]=="down") { 80 $t=$pr->downrule($rules,$_REQUEST["rid"]); 103 81 if ($t!==false) { 104 82 $pr->writerules($t);
