C:\$Recycle.Bin\S-1-5-21-3967099092-2644009230-141905953-500\$R30CG93\tcpro\includes\avatar.inc.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
if (!defined('_VALID_TCPRO')) exit ('No direct access allowed!');
/**
 * avatar.inc.php
 * 
 * HTML portion included in the user profile dialog for avatar management
 * 
 * @package TeamCalPro
 * @version 3.3.001 
 * @author George Lewe <george@lewe.com>
 * @copyright Copyright (c) 2004-2010 by George Lewe
 * @link http://www.lewe.com
 * @license http://www.lewe.com/tcpro/doc/license.txt Extended GNU Public License
 */

/**
 * Includes
 */
unset($CONF);
include( 
"config.tcpro.php" );
require_once( 
$CONF['app_root']."includes/functions.tcpro.php" );
getOptions();
include( 
$CONF['app_root']."includes/lang/".$CONF['options']['lang'].".tcpro.php");
?>
<?php printDialogFrameTop
($LANG['ava_title'],"0"); ?>
         <table width="99%">
            <tr>
               <td class="dlg-body" style="width: 120px;">
                  <?php
                  
if ($AV->find($U->username)) {
                     echo 
"<img  style=\"padding-right: 10px;\" src=\"".$AV->path.$AV->filename.".".$AV->fileextension."\" align=\"top\" border=\"0\" alt=\"".$U->username."\" title=\"".$U->username."\">";
                  }
                  else {
                     echo 
"<img src=\"".$AV->path."noavatar.gif\" align=\"top\" border=\"0\" alt=\"No avatar\" title=\"No avatar\">";
                  }
                  
?>
               </td>
               <td class="dlg-body">
                  <?php
                  
echo $LANG['ava_upload']."<br /><br />";
                  
?>
                  <input class="text" type="hidden" name="MAX_FILE_SIZE" value="<?php echo $AV->maxSize?>">
                  <input class="text" type="file" name="imgfile" size="40"><br /><br />
                  <input name="btn_avatar_upload" type="submit" class="button" value="<?php echo $LANG['btn_upload']; ?>" onmouseover="this.className='button-over';" onmouseout="this.className='button';">
                  <br />
                  <br />
               </td>
            </tr>
         </table>
<?php printDialogFrameBottom(); ?>