Ignore:
Timestamp:
04/22/10 17:12:12 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #986 - Correcao para evitar o excesso de requisicoes, quando o servidor aceita apenas uma.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/jabberit_messenger/trophy_expresso/inc/class.CommonFunctions.inc.php

    r2607 r2620  
    1515        { 
    1616                return "YWxleG5K87W".base64_encode($this->userJabber); 
     17                //return $this->gerador().base64_encode($this->userJabber); 
    1718        }        
    1819 
     
    2021        { 
    2122                return "TWxGeG55K7W".base64_encode($this->password); 
     23                //return $this->gerador().base64_encode($this->password); 
    2224        }        
    2325         
     26        private function gerador() 
     27        { 
     28                $char = "ABCDEFGHIJKLMNOPQRSTUVWXTZ0123456789abcdefghiklmnopqrstuvwxyz"; 
     29                $key = ""; 
     30                 
     31                for( $i = 0 ; $i < 61; $i++ ) 
     32                { 
     33                        $key   .= substr($char, $i, mt_rand(1,61));      
     34                } 
     35                 
     36                $key = strlen($key).$key; 
     37                 
     38                return $key; 
     39        } 
     40         
    2441} 
    25  
    2642?> 
Note: See TracChangeset for help on using the changeset viewer.