Revision 382,
730 bytes
checked in by niltonneto, 16 years ago
(diff) |
Inclusão do módulo JabberIt? Messenger, novo módulo de mensagens
instantâneas do Expresso. É uma customização do projeto original
Jeti, e foi desenvolvido em Java.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | function getPhotoSession($pUid) |
---|
4 | { |
---|
5 | if(isset($_SESSION['phpgw_info']['jabberit_messenger']['photo'][$pUid])) |
---|
6 | { |
---|
7 | $photo = imagecreatefromstring($_SESSION['phpgw_info']['jabberit_messenger']['photo'][$pUid]); |
---|
8 | |
---|
9 | header("Content-Type: image/jpeg"); |
---|
10 | $width = imagesx($photo); |
---|
11 | $height = imagesy($photo); |
---|
12 | $twidth = 60; |
---|
13 | $theight = 80; |
---|
14 | $small_photo = imagecreatetruecolor ($twidth, $theight); |
---|
15 | imagecopyresampled($small_photo, $photo, 0, 0, 0, 0,$twidth, $theight, $width, $height); |
---|
16 | imagejpeg($small_photo,'',100); |
---|
17 | |
---|
18 | unset($_SESSION['phpgw_info']['jabberit_messenger']['photo'][$pUid]); |
---|
19 | return; |
---|
20 | } |
---|
21 | } |
---|
22 | |
---|
23 | if(trim($_REQUEST['uid']) != "") |
---|
24 | { |
---|
25 | getPhotoSession(trim($_REQUEST['uid'])); |
---|
26 | } |
---|
27 | |
---|
28 | ?> |
---|
29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.