[geeklog-cvs] geeklog-1.3/public_html usersettings.php,1.70,1.71
geeklog-cvs-admin at lists.geeklog.net
geeklog-cvs-admin at lists.geeklog.net
Fri Sep 5 13:18:17 EDT 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory geeklog_prod:/tmp/cvs-serv21687/public_html
Modified Files:
usersettings.php
Log Message:
Added support for the GD library when uploading images.
Index: usersettings.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/usersettings.php,v
retrieving revision 1.70
retrieving revision 1.71
diff -C2 -d -r1.70 -r1.71
*** usersettings.php 4 Aug 2003 12:11:52 -0000 1.70
--- usersettings.php 5 Sep 2003 17:18:15 -0000 1.71
***************
*** 687,693 ****
// Using imagemagick
$upload->setMogrifyPath ($_CONF['path_to_mogrify']);
} else {
! // must be using netPBM
! $upload->_pathToNetPBM= $_CONF['path_to_netpbm'];
}
$upload->setAutomaticResize(true);
--- 687,696 ----
// Using imagemagick
$upload->setMogrifyPath ($_CONF['path_to_mogrify']);
+ } elseif ($_CONF['image_lib'] == 'netpbm') {
+ // using netPBM
+ $upload->setNetPBM ($_CONF['path_to_netpbm']);
} else {
! // must be using the GD library
! $upload->setGDLib ();
}
$upload->setAutomaticResize(true);
More information about the geeklog-cvs
mailing list