[geeklog-cvs] geeklog-1.3/public_html/admin user.php,1.80,1.81
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Sun Aug 15 04:46:52 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html/admin
In directory www:/tmp/cvs-serv10383/admin
Modified Files:
user.php
Log Message:
Fixed hard-coded path to user photo
Index: user.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/admin/user.php,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -d -r1.80 -r1.81
*** user.php 11 Aug 2004 18:14:42 -0000 1.80
--- user.php 15 Aug 2004 08:46:49 -0000 1.81
***************
*** 144,156 ****
$user_templates->set_var('lang_username', $LANG28[3]);
$user_templates->set_var('username', $A['username']);
! if ($_CONF['allow_user_photo'] == 1 AND !empty($A['photo'])) {
! $user_templates->set_var('user_photo', '<img src="' . $_CONF['site_url'] . '/images/userphotos/' . $A['photo'] . '" alt="">');
! $user_templates->set_var('lang_delete_photo', $LANG28[28]);
! $user_templates->set_var('delete_photo_option', '<input type="checkbox" name="delete_photo">');
} else {
! $user_templates->set_var('user_photo', '');
! $user_templates->set_var('lang_delete_photo','');
! $user_templates->set_var('delete_photo_option','');
}
$user_templates->set_var('lang_fullname', $LANG28[4]);
$user_templates->set_var('user_fullname', htmlspecialchars($A['fullname']));
--- 144,167 ----
$user_templates->set_var('lang_username', $LANG28[3]);
$user_templates->set_var('username', $A['username']);
!
! if (($_CONF['allow_user_photo'] == 1) && !empty ($A['photo'])) {
! if (strstr ($_CONF['path_images'], $_CONF['path_html'])) {
! $imgpath = substr ($_CONF['path_images'],
! strlen ($_CONF['path_html']));
! $user_templates->set_var ('user_photo', '<img src="'
! . $_CONF['site_url'] . '/' . $imgpath . 'userphotos/'
! . $A['photo'] . '" alt="">');
! } else {
! $user_templates->set_var ('user_photo', '<img src="' . $_CONF['site_url'] . '/getimage.php?mode=userphotos&image=' . $A['photo'] . '" alt="">');
! }
! $user_templates->set_var ('lang_delete_photo', $LANG28[28]);
! $user_templates->set_var ('delete_photo_option',
! '<input type="checkbox" name="delete_photo">');
} else {
! $user_templates->set_var ('user_photo', '');
! $user_templates->set_var ('lang_delete_photo', '');
! $user_templates->set_var ('delete_photo_option', '');
}
+
$user_templates->set_var('lang_fullname', $LANG28[4]);
$user_templates->set_var('user_fullname', htmlspecialchars($A['fullname']));
More information about the geeklog-cvs
mailing list