Пример #1
0
 public static function f($connection)
 {
     list($host, $email, $password) = explode('~', $connection);
     if (empty(self::$instance_f[$connection])) {
         debug::output("Starting Connection to {$email} ({$host})");
         $i = new imap();
         $i->connect($host, $email, $password);
         self::$instance_f[$connection] = $i;
         return $i;
     } else {
         return self::$instance_f[$connection];
     }
 }