Changeset 551
- Timestamp:
- 11/12/08 10:59:07 (15 years ago)
- Location:
- trunk/jabberit_messenger
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jabberit_messenger/default_preferences.xml
r382 r551 1 <preference key="jeti.toFrontOnNewMessage" value=" true"/>1 <preference key="jeti.toFrontOnNewMessage" value="false"/> -
trunk/jabberit_messenger/inc/class.FileDefine.inc.php
r439 r551 14 14 { 15 15 16 final function getParams($pParam)16 public final function getParams($pParam) 17 17 { 18 18 $array_values = explode("\n", $pParam['val']); … … 68 68 fclose($handle); 69 69 } 70 71 70 } 72 71 ?> -
trunk/jabberit_messenger/inc/class.contacts_im.inc.php
r417 r551 26 26 } 27 27 28 private final function users_auth_im($pName) 29 { 30 $array_uids = $this->db->get_accounts_acl(); 31 $count = count($array_uids); 32 $uids_members = array(); 33 34 for($i = 0; $i < $count ;$i+=50) 35 { 36 $partial_uids = array_slice($array_uids,$i,50); 37 $filter_uid = implode(")(uidnumber=",$partial_uids); 38 $filter_uid = "(uidnumber=". $filter_uid. ")"; 39 $result = $this->ldap->list_users_ldap("cn=*".$pName."*", $filter_uid); 40 if ( is_array($result) ) 41 $uids_members = array_merge($uids_members,$result); 42 43 if(count($uids_members) > 50){ 44 unset($_SESSION['phpgw_info']['jabberit_messenger']['photo']); 45 return 'Many Results'; 46 } 47 } 48 if(count($uids_members) > 0) 49 return $uids_members; 50 else 51 return 0; 28 public final function getParticipantsExternal() 29 { 30 return $_SESSION['phpgw_info']['jabberit_messenger']['use_external_participants_jabberit']; 52 31 } 53 32 54 33 public final function list_contacts($param) 55 34 { … … 82 61 return $return; 83 62 } 63 64 private final function users_auth_im($pName) 65 { 66 $array_uids = $this->db->get_accounts_acl(); 67 $count = count($array_uids); 68 $uids_members = array(); 69 70 for($i = 0; $i < $count ;$i+=50) 71 { 72 $partial_uids = array_slice($array_uids,$i,50); 73 $filter_uid = implode(")(uidnumber=",$partial_uids); 74 $filter_uid = "(uidnumber=". $filter_uid. ")"; 75 $result = $this->ldap->list_users_ldap("cn=*".$pName."*", $filter_uid); 76 if ( is_array($result) ) 77 $uids_members = array_merge($uids_members,$result); 78 79 if(count($uids_members) > 50){ 80 unset($_SESSION['phpgw_info']['jabberit_messenger']['photo']); 81 return 'Many Results'; 82 } 83 } 84 if(count($uids_members) > 0) 85 return $uids_members; 86 else 87 return 0; 88 } 89 90 84 91 } 85 92 ?> -
trunk/jabberit_messenger/inc/class.ldap_im.inc.php
r526 r551 53 53 } 54 54 55 private final function _ldapConnect($refer = false) 56 { 57 function ldapRebindJabberit($ldap_connection, $ldap_url) 58 { 59 $acc = $_SESSION['phpgw_info']['jabberit_messenger']['ldapManager']['acc']; 60 $pw = $_SESSION['phpgw_info']['jabberit_messenger']['ldapManager']['pw']; 61 62 @ldap_bind($ldap_connection, $acc,$pw); 63 } 64 65 // Using ContactCenter configuration. 66 $this->ldap_host = $_SESSION['phpgw_info']['jabberit_messenger']['ldapManager']['host']; 67 $this->ldap_context = $_SESSION['phpgw_info']['jabberit_messenger']['ldapManager']['dn']; 68 $this->ldap_dn = $_SESSION['phpgw_info']['jabberit_messenger']['ldapManager']['acc']; 69 $this->ldap_pass = $_SESSION['phpgw_info']['jabberit_messenger']['ldapManager']['pw']; 70 71 $this->ldap = ldap_connect($this->ldap_host); 72 ldap_set_option($this->ldap, LDAP_OPT_PROTOCOL_VERSION, 3); 73 ldap_set_option($this->ldap, LDAP_OPT_REFERRALS, $refer); 74 75 if ($refer) 76 { 77 ldap_set_rebind_proc($this->ldap, ldapRebindJabberit); 78 } 79 80 @ldap_bind($this->ldap,$this->ldap_dn,$this->ldap_pass); 81 } 82 83 public final function list_participants_externals($pSearch) 84 { 85 $this->_ldapConnect(true); 86 87 $mail = $pSearch['mail']; 88 89 if( $this->ldap ) 90 { 91 $filter = "(&(phpgwaccounttype=u)(mail=".$mail."))"; 92 $justthese = array("uid","uidNumber","cn","mail","phpgwAccountVisible","dn","jpegPhoto"); 93 $search = ldap_search($this->ldap,$this->ldap_context,$filter,$justthese, 0, $this->max_result + 1); 94 $entry1 = ldap_get_entries($this->ldap,$search); 95 $entry = ldap_first_entry( $this->ldap, $search ); 96 } 97 98 if( $entry1['count'] > 0 ) 99 { 100 $i = 0; 101 $result_user = array(); 102 $result = array(); 103 104 while($entry) 105 { 106 107 if ( $entry1[$i]['phpgwaccountvisible'][0] != '-1' ) 108 { 109 $result['uidnumber'] = @ldap_get_values($this->ldap, $entry, 'uidnumber'); 110 $result['mail'] = @ldap_get_values($this->ldap, $entry, 'mail'); 111 $result['uid'] = @ldap_get_values($this->ldap, $entry, 'uid'); 112 $result['cn'] = @ldap_get_values($this->ldap, $entry, 'cn'); 113 114 foreach ( $result as $key => $value ) 115 $result_user[$i][$key] = $value[0]; 116 117 $ou = explode('dc=', $entry1[$i]['dn']); 118 $ou = explode("ou=",$ou[0]); 119 $ou = array_pop($ou); 120 $result_user[$i]['dn'] = strtoupper(substr($ou,0,strlen($ou)-1)); 121 122 $result_user[$i]['photo'] = 0; 123 124 $photo = @ldap_get_values_len($this->ldap, $entry, 'jpegphoto'); 125 126 if ( $photo ) 127 { 128 $result_user[$i]['photo'] = 1; 129 $_SESSION['phpgw_info']['jabberit_messenger']['photo'][trim($result_user[$i]['uid'])] = $photo[0]; 130 } 131 132 $i++; 133 } 134 $entry = ldap_next_entry($this->ldap,$entry); 135 } 136 137 $return = "<uids>"; 138 $return .= "<".$result_user[0]['dn']."><data>"; 139 $return .= "<cn>".$result_user[0]['cn']."</cn>"; 140 $return .= "<mail>".$result_user[0]['mail']."</mail>"; 141 $return .= "<uid>".$result_user[0]['uid']."</uid>"; 142 $return .= "<photo>".$result_user[0]['photo']."</photo>"; 143 $return .= "</data></".$result_user[0]['dn'].">"; 144 $return .= "</uids>"; 145 146 return $return; 147 } 148 149 return '<empty/>'; 150 } 151 55 152 public final function list_users_ldap($search, $uidnumber) 56 153 { -
trunk/jabberit_messenger/inc/controller.xml
r519 r551 30 30 </js> 31 31 <php path="/var/www/expresso/jabberit_messenger/inc" suffix=".class.php"> 32 <item ref="contacts_im" alias="getParticipantsExternal" class="contacts_im" method="getParticipantsExternal" prefix="class." suffix=".inc.php"/> 32 33 <item ref="contacts_im" alias="list_contacts" class="contacts_im" method="list_contacts" prefix="class." suffix=".inc.php"/> 33 34 <item ref="db_im" alias="getPreferences" class="db_im" method="getPreferences" prefix="class." suffix=".inc.php"/> … … 36 37 <item ref="db_im" alias="removeAttributesLdap" class="db_im" method="removeAttributesLdap" prefix="class." suffix=".inc.php"/> 37 38 <item ref="ldap_im" alias="list_organizations_ldap" class="ldap_im" method="list_organizations_ldap" prefix="class." suffix=".inc.php"/> 39 <item ref="ldap_im" alias="list_participants_externals" class="ldap_im" method="list_participants_externals" prefix="class." suffix=".inc.php"/> 38 40 <item ref="ldap_im" alias="photo_ldap" class="ldap_im" method="photo_ldap" prefix="class." suffix=".inc.php"/> 39 41 <item ref="ujabber" alias="AddNewContact" class="ujabber" method="AddNewContact" prefix="class." suffix=".inc.php"/> -
trunk/jabberit_messenger/inc/getphoto.php
r494 r551 10 10 * option) any later version. * 11 11 \***************************************************************************/ 12 13 function ldap_rebind($ldap_connection, $ldap_url){ 14 include('conf_Ldap_Photos.php'); 15 $handle = unserialize(base64_decode($CONF_SERVER)); 16 @ldap_bind($ldap_connection, $handle['dn'],$handle['passwd']); 17 } 12 18 13 19 class ldapPhoto … … 28 34 { 29 35 require_once('conf_Ldap_Photos.php'); 30 $ this->handle = unserialize(base64_decode($CONF_SERVER));31 32 $this->host = $ this->handle['host'];33 $this->context = $ this->handle['context'];34 $this->dn = $ this->handle['dn'];35 $this->passwd = $ this->handle['passwd'];36 37 $this->refer = false;36 $handle = unserialize(base64_decode($CONF_SERVER)); 37 38 $this->host = $handle['host']; 39 $this->context = $handle['context']; 40 $this->dn = $handle['dn']; 41 $this->passwd = $handle['passwd']; 42 43 $this->refer = true; 38 44 $this->version3 = true; 39 45 } 40 46 41 private final function ldap_rebind($ldap_connection, $ldap_url)42 {43 @ldap_bind($ldap_connection, $this->user_referral, $this->password_referral);44 }45 47 46 48 private final function ldapConnect() … … 57 59 return False; 58 60 } 61 59 62 if( $this->version3 ) 60 63 { … … 63 66 } 64 67 ldap_set_option($this->conn, LDAP_OPT_REFERRALS, $this->refer); 68 65 69 // verifica refer 66 70 if( $this->refer ) 67 71 { 68 $this->user_referral = $this->dn; 69 $this->password_referral = $this->passwd; 70 @ldap_set_rebind_proc($this->conn, $this->ldap_rebind); 72 @ldap_set_rebind_proc($this->conn, ldap_rebind); 71 73 } 72 74 … … 76 78 return False; 77 79 } 80 78 81 // bind as anonymous 79 82 if(!$this->dn && !$this->passwd && !@ldap_bind($this->conn)) … … 84 87 } 85 88 89 public final function getNameOrganization($pUid, $pCharset) 90 { 91 $this->ldapConnect(); 92 93 if( $this->conn ) 94 { 95 $filter = "(&(phpgwaccounttype=u)(uid=".$pUid.")(!(phpgwaccountvisible=-1)))"; 96 $justthese = array("uid","cn","dn"); 97 $search = ldap_search($this->conn,$this->context,$filter,$justthese); 98 $entry = ldap_get_entries($this->conn,$search); 99 $cn = $entry[0]['cn'][0]; 100 $ou = explode("dc=", $entry[0]['dn']); 101 $ou = explode("ou=",$ou[0]); 102 $ou = array_pop($ou); 103 $dn = strtoupper(substr($ou,0,strlen($ou)-1)); 104 105 $return = utf8_encode("Nome : " . $cn . ";Organização : " . $dn); 106 107 if( $pCharset === "1" ) 108 return $return; 109 else 110 return mb_convert_encoding($return, "ISO-8859-1", "UTF-8"); 111 112 $return = utf8_encode("Nome : Não Identificado ;Organização : Não Identificado"); 113 114 if( $pCharset === 1 ) 115 return $return; 116 else 117 return mb_convert_encoding($return, "ISO-8859-1", "UTF-8"); 118 } 119 } 120 86 121 public final function getPhotoLdap($uid) 87 122 { … … 89 124 if( $this->conn ) 90 125 { 91 $filter = "(&(phpgwaccounttype=u)(uid=".$uid.") )";92 $justthese = array("uid"," phpgwAccountVisible","jpegPhoto");126 $filter = "(&(phpgwaccounttype=u)(uid=".$uid.")(!(phpgwaccountvisible=-1)))"; 127 $justthese = array("uid","jpegPhoto"); 93 128 $search = ldap_search($this->conn,$this->context,$filter,$justthese); 94 129 $entry1 = ldap_get_entries($this->conn,$search); 95 130 $entry = ldap_first_entry( $this->conn, $search ); 96 97 131 if( $entry1['count'] > 0 ) 98 132 { … … 100 134 $photo = ""; 101 135 $return_photo = ""; 102 103 104 if ( $entry1[$i]['phpgwaccountvisible'][0] != '-1' ) 105 { 106 $photo = @ldap_get_values_len($this->conn, $entry, 'jpegphoto'); 107 108 if ( $photo ) 109 $return_photo = $photo[0]; 110 } 136 $photo = @ldap_get_values_len($this->conn, $entry, 'jpegphoto'); 137 if ($photo) 138 $return_photo = $photo[0]; 111 139 return $return_photo; 112 140 } … … 172 200 } 173 201 202 if(trim($_POST['jid']) != "") 203 { 204 $jid = trim($_POST['jid']); 205 if( strpos($jid,"@")) 206 $jid = substr($jid, 0, strpos($jid,"@")); 207 $charset = trim($_POST['charset']); 208 $a = new ldapPhoto(); 209 210 printf("%s",$a->getNameOrganization($jid, $charset)); 211 } 174 212 ?> -
trunk/jabberit_messenger/inc/jabberit_acl.inc.php
r494 r551 31 31 { 32 32 33 $ldapManager = CreateObject('contactcenter.bo_ldap_manager'); 34 $_SESSION['phpgw_info']['jabberit_messenger']['ldapManager'] = $ldapManager->srcs[1]; 35 33 36 $webserver_url = $GLOBALS['phpgw_info']['server']['webserver_url']; 34 37 $webserver_url = ( !empty($webserver_url) ) ? $webserver_url : '/'; -
trunk/jabberit_messenger/inc/jabberit_sessions.inc.php
r526 r551 16 16 $_SESSION['phpgw_info']['jabberit_messenger']['passwd'] = $GLOBALS['phpgw_info']['user']['passwd']; 17 17 $_SESSION['phpgw_info']['jabberit_messenger']['mail'] = $GLOBALS['phpgw_info']['user']['email']; 18 $_SESSION['phpgw_info']['jabberit_messenger']['fullname'] = $GLOBALS['phpgw_info']['user']['fullname']; 19 20 //Server http or https 21 $_SESSION['phpgw_info']['jabberit_messenger']['use_https'] = $GLOBALS['phpgw_info']['server']['use_https']; 18 22 19 23 //Organization Ldap 20 24 $_SESSION['phpgw_info']['jabberit_messenger']['account_dn'] = $GLOBALS['phpgw_info']['user']['account_dn']; 21 22 25 23 26 //Ldap … … 45 48 $_SESSION['phpgw_info']['jabberit_messenger']['use_attribute_jabberit'] = $GLOBALS['phpgw_info']['server']['use_attribute_jabberit']; 46 49 $_SESSION['phpgw_info']['jabberit_messenger']['attributes_org_ldap_jabberit'] = $GLOBALS['phpgw_info']['server']['attributes_org_ldap_jabberit']; 47 50 $_SESSION['phpgw_info']['jabberit_messenger']['use_external_participants_jabberit'] = $GLOBALS['phpgw_info']['server']['use_external_participants_jabberit']; 51 48 52 ?> -
trunk/jabberit_messenger/inc/login.php
r526 r551 16 16 if(isset($_SESSION['phpgw_info']['jabberit_messenger']['name_jabberit'])) 17 17 { 18 // Path Server 18 19 $path = $_SESSION['phpgw_info']['jabberit_messenger']['webserver_url']; 19 20 $SERVER_EXPRESSO = $_SERVER['HTTP_HOST'] . $path; 21 22 // Type Protocol http / https 23 $protocol = trim("http"); 24 if( $_SESSION['phpgw_info']['jabberit_messenger']['use_https'] === 2 ) 25 $protocol = trim("https"); 20 26 27 // Uid user 21 28 $uid = $_SESSION['phpgw_info']['jabberit_messenger']['user']; 22 29 … … 26 33 $organization_user = substr($organization_user, strpos($organization_user,"ou=") + 3 , strlen($organization_user)); 27 34 $organization_user = substr($organization_user, 0, strpos($organization_user, ",")); 35 36 // FirstName 37 $CnName = explode(" ",$_SESSION['phpgw_info']['jabberit_messenger']['fullname']); 28 38 29 39 if(is_array($organization)) … … 68 78 $template->set_var("value_userproxy",$_SESSION['phpgw_info']['jabberit_messenger']['use_proxy_java']); 69 79 $template->set_var("value_expresso",$SERVER_EXPRESSO); 80 $template->set_var("value_use_https", $protocol); 70 81 $template->set_var("value_company", $_SESSION['phpgw_info']['jabberit_messenger']['name_company']); 82 $template->set_var("value_cnname",$CnName[0]); 71 83 $template->set_file(Array('jabberit_messenger' => 'jabberIM.tpl')); 72 84 $template->set_block('jabberit_messenger','index'); -
trunk/jabberit_messenger/index.php
r417 r551 7 7 8 8 $GLOBALS['phpgw_info']['flags']['currentapp'] = 'jabberit_messenger'; 9 $GLOBALS['phpgw_info']['flags']['jabberit_version'] = '0.7. 7';9 $GLOBALS['phpgw_info']['flags']['jabberit_version'] = '0.7.10'; 10 10 11 11 include("../header.inc.php"); 12 12 13 13 $jabberit_version = $GLOBALS['phpgw_info']['flags']['jabberit_version']; 14 14 -
trunk/jabberit_messenger/js/ldap.js
r526 r551 20 20 'lang5':jabberitGetLang('group'), 21 21 'lang6':jabberitGetLang('add'), 22 'lang7':jabberitGetLang('close') 22 'lang7':jabberitGetLang('close'), 23 'lang8':jabberitGetLang('External Participants') 23 24 }; 24 25 … … 27 28 28 29 _win_add.content( _xtools.parse(_xtools.xml('adduser'), 'add_user.xsl', _params)); 30 31 _conn.go('$this.contacts_im.getParticipantsExternal', 32 function(data) 33 { 34 var data = eval(data); 35 var elementDiv = document.getElementById('external_Participants_Jabberit'); 36 37 if( data ) 38 elementDiv.style.display = 'block'; 39 }); 29 40 30 41 _config( _win_add.wc.childNodes[2].childNodes[0], … … 133 144 var _loading = document.getElementById('__span_load_im'); 134 145 var _target = document.getElementById('im_ldap_user'); 135 146 var _particiExt = document.getElementById('external_Participants_Jabberit').firstChild; 147 148 function getUsersLdap(_data) 149 { 150 var _params = { 151 'many_results' : jabberitGetLang('More than 50 results. Please, try to refine your search.'), 152 'empty' : jabberitGetLang('None result was found.') 153 }; 154 155 _target.innerHTML = _xtools.parse(_data,'list_ldap_contacts.xsl', _params); 156 157 function _show(m) 158 { 159 m = ( m.target ) ? m.target : m.srcElement; 160 if ( m.getAttribute('value')) 161 m = m.getAttribute('value'); 162 else 163 m = m.parentNode.getAttribute('value'); 164 165 if ( !m ) 166 return false; 167 168 document.getElementById('__span_load_im_group').style.display = 'block'; 169 document.getElementById('im_jid').value = m.substr(0, m.indexOf(';')); 170 document.getElementById('im_uid').value = m.substr((m.indexOf(';')+1)); 171 172 var _name = document.getElementById('im_name'); 173 174 var first_name = document.getElementById(m).innerHTML; 175 first_name = first_name.substr(0, first_name.indexOf(' ')); 176 177 _name.value = first_name; 178 _name.previousSibling.style.color = "#000"; 179 _name.parentNode.style.display = 'block'; 180 _name.parentNode.nextSibling.style.display = 'block'; 181 _name.parentNode.nextSibling.nextSibling.innerHTML = ''; 182 183 _conn.go('$this.ujabber.getGroupsJabber', 184 function(data) 185 { 186 if( data = data.replace(/(^\s*)|(\s*$)/g,'')) 187 { 188 var _group = document.getElementById('im_group'); 189 var _groupOptions = ''; 190 191 _group.setAttribute('selectBoxOptions', data); 192 if( document.getElementById('selectBox0') == null) 193 editS.create(document.getElementById('im_group')); 194 } 195 document.getElementById('__span_load_im_group').style.display = 'none'; 196 }); 197 198 document.getElementById('im_group').value = ''; 199 document.getElementById('im_group').focus(); 200 } 201 202 var _member = _target.firstChild; 203 204 while ( _member ) 205 { 206 if( _member.getAttribute('photo') === '1' ) 207 { 208 var uid = _member.getAttribute('value'); 209 uid = uid.substr(uid.indexOf(';') + 1); 210 _member.style.backgroundImage = 'url(' + path_jabberit + 'inc/getphoto.php?uid=' + uid + ')'; 211 } 212 _config(_member, 'onclick', _show); 213 214 _member = _member.nextSibling; 215 } 216 217 } 218 136 219 _loading.style.display = "block"; 137 138 _conn.go( 139 '$this.contacts_im.list_contacts', 140 function(_data) 141 { 142 var _params = { 143 'many_results' : jabberitGetLang('More than 50 results. Please, try to refine your search.'), 144 'empty' : jabberitGetLang('None result was found.') 145 }; 146 147 _target.innerHTML = _xtools.parse(_data,'list_ldap_contacts.xsl', _params); 148 149 function _show(m) 150 { 151 m = ( m.target ) ? m.target : m.srcElement; 152 if ( m.getAttribute('value')) 153 m = m.getAttribute('value'); 154 else 155 m = m.parentNode.getAttribute('value'); 156 157 if ( !m ) 158 return false; 159 160 document.getElementById('__span_load_im_group').style.display = 'block'; 161 document.getElementById('im_jid').value = m.substr(0, m.indexOf(';')); 162 document.getElementById('im_uid').value = m.substr((m.indexOf(';')+1)); 163 164 var _name = document.getElementById('im_name'); 165 166 var first_name = document.getElementById(m).innerHTML; 167 first_name = first_name.substr(0, first_name.indexOf(' ')); 168 169 _name.value = first_name; 170 _name.previousSibling.style.color = "#000"; 171 _name.parentNode.style.display = 'block'; 172 _name.parentNode.nextSibling.style.display = 'block'; 173 _name.parentNode.nextSibling.nextSibling.innerHTML = ''; 174 175 _conn.go('$this.ujabber.getGroupsJabber', 176 function(data) 177 { 178 if( data = data.replace(/(^\s*)|(\s*$)/g,'')) 179 { 180 var _group = document.getElementById('im_group'); 181 var _groupOptions = ''; 182 183 _group.setAttribute('selectBoxOptions', data); 184 if( document.getElementById('selectBox0') == null) 185 editS.create(document.getElementById('im_group')); 186 } 187 document.getElementById('__span_load_im_group').style.display = 'none'; 188 }); 189 190 document.getElementById('im_group').value = ''; 191 document.getElementById('im_group').focus(); 192 } 193 194 var _member = _target.firstChild; 195 196 while ( _member ) 197 { 198 if( _member.getAttribute('photo') === '1' ) 199 { 200 var uid = _member.getAttribute('value'); 201 uid = uid.substr(uid.indexOf(';') + 1); 202 _member.style.backgroundImage = 'url(' + path_jabberit + 'inc/getphoto.php?uid=' + uid + ')'; 203 } 204 _config(_member, 'onclick', _show); 205 206 _member = _member.nextSibling; 207 } 208 _loading.style.display = "none"; 209 }, 210 'name='+ arguments[0] 211 ); 220 221 if(!_particiExt.checked) 222 { 223 _conn.go( 224 '$this.contacts_im.list_contacts', 225 function(_data) 226 { 227 getUsersLdap(_data); 228 _loading.style.display = "none"; 229 }, 230 'name='+ arguments[0] 231 ); 232 } 233 else 234 { 235 236 function checkMail(pMail) 237 { 238 var er = new RegExp(/^[A-Za-z0-9_\-\.]+@[A-Za-z0-9_\-\.]{2,}\.[A-Za-z0-9]{2,}(\.[A-Za-z0-9])?/); 239 if(er.test(pMail)) 240 return true; 241 else 242 return false; 243 } 244 245 if( checkMail(arguments[0]) ) 246 { 247 _conn.go( 248 '$this.ldap_im.list_participants_externals', 249 function(data) 250 { 251 getUsersLdap(data); 252 _loading.style.display = "none"; 253 }, 254 'mail=' + arguments[0] 255 ); 256 } 257 else 258 alert(jabberitGetLang('Inform a valid e-mail!')); 259 } 260 212 261 } 213 262 -
trunk/jabberit_messenger/js/load.js
r439 r551 169 169 } 170 170 171 function changeLabel() 172 { 173 if( arguments.length > 0 ) 174 { 175 var element = arguments[0].parentNode.parentNode.firstChild; 176 177 if(arguments[0].checked) 178 element.innerHTML = "Digite o Email .:"; 179 else 180 element.innerHTML = "Nome do Contato .:"; 181 } 182 } 183 171 184 function configEvents(pObj, pEvent, pHandler) 172 185 { … … 243 256 _win_contacts.size(215,400); 244 257 } 245 else _win_contacts.size(1,1); 258 else 259 { 260 _win_contacts.size(1,1); 261 _win_contacts.wm.style.visibility = 'hidden'; 262 } 246 263 247 264 _win_contacts.position(50,50); … … 399 416 { 400 417 if ( _win_contacts ) 401 { 418 { 402 419 _win_contacts.wm.style.visibility = "visible"; 403 420 _win_contacts.title('.:: Expresso - JMessenger ::.'); … … 423 440 Load.prototype.setPrefe = setPreferences; 424 441 Load.prototype.closeW = closeWindow; 442 Load.prototype.cLabel = changeLabel; 425 443 Load.prototype.adIcon = addIcon; 426 444 window.loadscript = new Load; -
trunk/jabberit_messenger/setup/phpgw_pt-br.lang
r526 r551 36 36 Enable the Expresso Messenger module jabberit_messenger pt-br Habilitar o módulo Expresso Messenger 37 37 E-mail jabberit_messenger pt-br E-mail 38 External Participants jabberit_messenger pt-br Participantes Externos 38 39 Ficar ausente depois de jabberit_messenger pt-br Ficar ausente depois de 39 40 Font jabberit_messenger pt-br Fonte … … 41 42 Group jabberit_messenger pt-br Grupo 42 43 Help jabberit_messenger pt-br Ajuda 44 Inform a valid e-mail! jabberit_messenger pt-br Informe um email válido! 43 45 Information Contacts jabberit_messenger pt-br Informações do Contato 44 46 Information jabberit_messenger pt-br Informações Adicionais -
trunk/jabberit_messenger/setup/setup.inc.php
r529 r551 8 8 $setup_info['jabberit_messenger']['name'] = 'jabberit_messenger'; 9 9 $setup_info['jabberit_messenger']['title'] = 'Jeti Applet'; 10 $setup_info['jabberit_messenger']['version'] = '0.7. 9';10 $setup_info['jabberit_messenger']['version'] = '0.7.10'; 11 11 $setup_info['jabberit_messenger']['app_order'] = 9; 12 12 $setup_info['jabberit_messenger']['enable'] = 1; -
trunk/jabberit_messenger/templates/default/confOrganization.tpl
r519 r551 5 5 <form method="POST" action="{action_url}"> 6 6 <table align="center" width="60%" cellspacing="2" style="border: 1px solid #000000;"> 7 <input type="hidden" name=" teste" value="">7 <input type="hidden" name="HiddenJabberit" value=""> 8 8 <tr class="th"> 9 9 <td colspan="2"> <b>Informe o atributo de autenticação no Servidor Jabber</b></td> … … 36 36 <tr> 37 37 <td colspan="2"> 38 <table id="table _teste" cellspacing="2" style="width:100%">38 <table id="tableHiddenJabberit" cellspacing="2" style="width:100%"> 39 39 <tr style="width:60%"> 40 40 <td align="left" class="row_on">{lang_Organization}</td> -
trunk/jabberit_messenger/templates/default/config.tpl
r526 r551 60 60 61 61 <tr bgcolor="{row_on}"> 62 <td>Habilitar Participantes Externos:</td> 63 <td> 64 <select name="newsettings[use_external_participants_jabberit]"> 65 <option value="false" {selected_use_external_participants_jabberit_false}>Não</option> 66 <option value="true" {selected_use_external_participants_jabberit_true}>Sim</option> 67 </select> 68 </td> 69 </tr> 70 71 <tr bgcolor="{row_off}"> 62 72 <td colspan="2"> <b>Configurando o Nome da Empresa</b></td> 63 73 </tr> 64 74 65 <tr bgcolor="{row_o ff}">75 <tr bgcolor="{row_on}"> 66 76 <td id="JETTI_name_company_applet_jabberit__label">Digite o Nome da sua Empresa:</td> 67 77 <td><input type="text" id="JETTI_name_company_applet_jabberit" name="newsettings[name_company_applet_jabberit]" value="{value_name_company_applet_jabberit}"></td> 68 78 </tr> 69 79 70 <tr bgcolor="{row_o n}">80 <tr bgcolor="{row_off}"> 71 81 <td colspan="2"> <b>Configuração do Servidor Ldap</b></td> 72 82 </tr> 73 83 74 <tr bgcolor="{row_o ff}">84 <tr bgcolor="{row_on}"> 75 85 <td id="JETTI_server_ldap_jabberit__label">Servidor Ldap:</td> 76 86 <td><input type="text" id="JETTI_server_ldap_jabberit" name="newsettings[server_ldap_jabberit]" value="{value_server_ldap_jabberit}"></td> 77 87 </tr> 78 88 79 <tr bgcolor="{row_o n}">89 <tr bgcolor="{row_off}"> 80 90 <td id="JETTI_context_ldap_jabberit__label">Contexto:</td> 81 91 <td><input type="text" id="JETTI_context_ldap_jabberit" name="newsettings[context_ldap_jabberit]" value="{value_context_ldap_jabberit}" size="30"></td> 82 92 </tr> 83 93 84 <tr bgcolor="{row_o ff}">94 <tr bgcolor="{row_on}"> 85 95 <td id="JETTI_user_ldap_jabberit__label">Usuário Ldap:</td> 86 96 <td><input type="text" id="JETTI_user_ldap_jabberit" name="newsettings[user_ldap_jabberit]" value="{value_user_ldap_jabberit}" size="30"></td> 87 97 </tr> 88 98 89 <tr bgcolor="{row_o n}">99 <tr bgcolor="{row_off}"> 90 100 <td id="JETTI_password_ldap_jabberit__label">Password:</td> 91 101 <td><input type="password" id="JETTI_password_ldap_jabberit" name="newsettings[password_ldap_jabberit]" value="{value_password_ldap_jabberit}"></td> -
trunk/jabberit_messenger/templates/default/jabberIM.tpl
r514 r551 14 14 <param name='USEPROXY' value='{value_userproxy}'> 15 15 <param name='EXPRESSO' value='{value_expresso}'> 16 <param name='USEHTTPS' value='{value_use_https}'> 16 17 <param name='NAMECOMPANY' value='{value_company}'> 18 <param name='CNNAME' value='{value_cnname}'> 17 19 <param name='EXTIPAGE' value='javascript:window.close();'> 18 20 </applet> -
trunk/jabberit_messenger/templates/default/setup.js
r519 r551 42 42 }; 43 43 44 var Table = document.getElementById('table _teste');44 var Table = document.getElementById('tableHiddenJabberit'); 45 45 Table.innerHTML = _xtools.parse( data, 'tableOrganizations.xsl', _params); 46 46 } -
trunk/jabberit_messenger/xsl/add_user.xsl
r466 r551 10 10 <xsl:param name="lang6" /> 11 11 <xsl:param name="lang7" /> 12 12 <xsl:param name="lang8" /> 13 13 14 <xsl:template match="adduser"> 14 15 … … 16 17 <div class="search_user"> 17 18 <span style="width:130px;"><xsl:value-of select="$lang1" /> .:</span> 18 <input type="text" size="20" maxlength="20" onclick="this.select();" onkeypress="javascript:loadscript.keyPress(event, this);" style="margin: 0 10 0 10px;"/> 19 <input type="button" class="search_user_button" value="{$lang2}" onclick="javascript:loadscript.search(this);" /> 19 <input type="text" size="30" onclick="this.select();" onkeypress="javascript:loadscript.keyPress(event, this);" style="margin: 0 10 0 10px;"/> 20 <input type="button" class="search_user_button" value="{$lang2}" onclick="javascript:loadscript.search(this);" /> 21 <br/> 22 <div id="external_Participants_Jabberit" style="display:none;"> 23 <input type="checkbox" name="checkbox_external_Participants_Jabberit" style="margin:10 5 0 0px;" onclick="javascript:loadscript.cLabel(this);"/> 24 <xsl:value-of select="$lang8" /> 25 </div> 20 26 </div> 21 27 <br/>
Note: See TracChangeset
for help on using the changeset viewer.