2 /***********************************************************************/
4 /***********************************************************************/
5 /* Copyright (c) 2002-2010 */
6 /* Inclusive Design Institute */
9 /* This program is free software. You can redistribute it and/or */
10 /* modify it under the terms of the GNU General Public License */
11 /* as published by the Free Software Foundation. */
12 /***********************************************************************/
15 if (!defined('AT_INCLUDE_PATH')) { exit; }
16 require(AT_INCLUDE_PATH.'header.inc.php');
19 $supported_images = array();
20 if ($gd_info['GIF Create Support']) {
21 $supported_images[] = 'gif';
23 if ($gd_info['JPG Support'] || $gd_info['JPEG Support']) {
24 $supported_images[] = 'jpg';
26 if ($gd_info['PNG Support']) {
27 $supported_images[] = 'png';
31 <form method="post" enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>?member_id=<?php echo $member_id; ?>" name="form">
32 <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_config['prof_pic_max_file_size']; ?>" />
33 <div class="input-form">
34 <?php if (profile_image_exists($member_id)): ?>
36 <a href="get_profile_img.php?id=<?php echo $member_id.SEP.'size=o'; ?>"><img src="get_profile_img.php?id=<?php echo $member_id; ?>" alt="" /></a>
37 <input type="checkbox" name="delete" value="1" id="del"/><label for="del"><?php echo _AT('delete'); ?></label>
41 <h3><?php echo _AT('upload_new_picture'); ?></h3>
42 <input type="file" name="file" /> (<?php echo implode(', ', $supported_images); ?>)</div>
44 <div class="row buttons">
45 <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" />
46 <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
51 <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>