[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /***************************************************************************\ 3 * eGroupWare - EmailAdmin * 4 * http://www.linux-at-work.de * 5 * http://www.egroupware.org * 6 * Written by : Lars Kneschke [lkneschke@linux-at-work.de] * 7 * ------------------------------------------------- * 8 * This program is free software; you can redistribute it and/or modify it * 9 * under the terms of the GNU General Public License version 2 as published * 10 * by the Free Software Foundation. * 11 \***************************************************************************/ 12 13 /* $Id: class.ajaxemailadmin.inc.php 19640 2005-11-06 14:27:42Z lkneschke $ */ 14 15 class ajaxemailadmin 16 { 17 function ajaxemailadmin() 18 { 19 $this->bo =& CreateObject('emailadmin.bo'); 20 /* $this->bofelamimail =& CreateObject('felamimail.bofelamimail',$GLOBALS['egw']->translation->charset()); 21 $this->uiwidgets =& CreateObject('felamimail.uiwidgets'); 22 $this->bofelamimail->openConnection(); 23 24 $this->sessionDataAjax = $GLOBALS['egw']->session->appsession('ajax_session_data'); 25 $this->sessionData = $GLOBALS['egw']->session->appsession('session_data'); 26 27 if(!isset($this->sessionDataAjax['folderName'])) 28 $this->sessionDataAjax['folderName'] = 'INBOX'; 29 30 $this->bofelamimail->openConnection($this->sessionDataAjax['folderName']);*/ 31 } 32 33 function setOrder($_order) 34 { 35 $i = 0; 36 37 $order = explode(',',$_order); 38 39 foreach($order as $profileIDString) 40 { 41 // remove profile_ and just use the number 42 $profileID = (int)substr($profileIDString,8); 43 if($profileID > 0) 44 $newOrder[$i++] = $profileID; 45 } 46 47 $this->bo->setOrder($newOrder); 48 } 49 50 function addACL($_accountName, $_aclData) 51 { 52 if(!empty($_accountName)) 53 { 54 $acl = implode('',(array)$_aclData['acl']); 55 $data = $this->bofelamimail->addACL($this->sessionDataAjax['folderName'], $_accountName, $acl); 56 #$response =& new xajaxResponse(); 57 #$response->addScript("window.close();"); 58 #$response->addAssign("accountName", "value", $this->sessionDataAjax['folderName'].'-'.$_accountName.'-'.$acl); 59 #return $response->getXML(); 60 61 } 62 } 63 64 function updateACLView() 65 { 66 $folderACL = $this->bofelamimail->getIMAPACL($this->sessionDataAjax['folderName']); 67 68 $response =& new xajaxResponse(); 69 $response->addAssign("aclTable", "innerHTML", $this->createACLTable($folderACL)); 70 return $response->getXML(); 71 } 72 73 } 74 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |