Changeover to SEP

This commit is contained in:
Miles Lott 2001-04-10 04:34:33 +00:00
parent 2ace0ea50b
commit a6081e5184
3 changed files with 10 additions and 8 deletions

View File

@ -5,17 +5,17 @@
global $phpgw, $phpgw_info;
$appname = 'addressbook';
$imgfile = $phpgw->common->get_image_dir($appname) . '/' . $appname . '.gif';
$imgfile = $phpgw->common->get_image_dir($appname) . SEP . $appname . '.gif';
if (file_exists($imgfile))
{
$imgpath = $phpgw->common->get_image_path($appname) . '/' . $appname . '.gif';
$imgpath = $phpgw->common->get_image_path($appname) . SEP . $appname . '.gif';
}
else
{
$imgfile = $phpgw->common->get_image_dir($appname) . '/navbar.gif';
$imgfile = $phpgw->common->get_image_dir($appname) . SEP . 'navbar.gif';
if (file_exists($imgfile))
{
$imgpath = $phpgw->common->get_image_path($appname) . '/navbar.gif';
$imgpath = $phpgw->common->get_image_path($appname) . SEP . 'navbar.gif';
}
else
{

View File

@ -9,7 +9,9 @@
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
// Delete all records for a user
if (floor($PHP_VERSION ) == 4)
{

View File

@ -13,13 +13,13 @@
/* $Id$ */
{
echo "<p>\n";
$imgfile = $phpgw->common->get_image_dir($appname) . '/' . $appname . '.gif';
$imgfile = $phpgw->common->get_image_dir($appname) . SEP . $appname . '.gif';
if (file_exists($imgfile)) {
$imgpath = $phpgw->common->get_image_path($appname) . '/' . $appname . '.gif';
$imgpath = $phpgw->common->get_image_path($appname) . SEP . $appname . '.gif';
} else {
$imgfile = $phpgw->common->get_image_dir($appname) . '/navbar.gif';
$imgfile = $phpgw->common->get_image_dir($appname) . SEP . 'navbar.gif';
if (file_exists($imgfile)) {
$imgpath = $phpgw->common->get_image_path($appname) . '/navbar.gif';
$imgpath = $phpgw->common->get_image_path($appname) . SEP . 'navbar.gif';
} else {
$imgpath = '';
}