Minor speed enhancements. Also cleans up a few warning messages.

This commit is contained in:
skeeter 2001-06-17 17:04:26 +00:00
parent 6396f3f8e6
commit 5693fa9b96
4 changed files with 7 additions and 10 deletions

View File

@ -79,8 +79,7 @@
if ($phpgw_info["user"]["lastpasswd_change"] == 0) {
$api_messages = lang("You are required to change your password during your first login")
. '<br> Click this image on the navbar: <img src="'
. $phpgw_info["server"]["webserver_url"] . '/preferences/templates/'
. $phpgw_info["server"]["template_set"] . '/images/navbar.gif">';
. $phpgw->common->image('preferences','navbar.gif').'">';
} else if ($phpgw_info["user"]["lastpasswd_change"] < time() - (86400*30)) {
$api_messages = lang("it has been more then x days since you changed your password",30);
}

View File

@ -37,8 +37,8 @@
$title = '<img src="' . $app[1]['icon'] . '" alt="' . $app[1]['title'] . '" title="'
. lang($app[1]['title']) . '" border="0" name="' . $app[0] . '">';
$img_src_over = $phpgw_info['server']['webserver_url'] . '/' . $app[0] . '/templates/idsociety/images/navbar-over.gif';
$img_src_out = $phpgw_info['server']['webserver_url'] . '/' . $app[0] . '/templates/idsociety/images/navbar.gif';
$img_src_over = $phpgw->common->image($app[0],'navbar-over.gif');
$img_src_out = $phpgw->common->image($app[0],'navbar.gif');
// onMouseOver="two.src='rollover/admin_over.gif'" onMouseOut="two.src='images/admin.gif'"><img src="images/admin.gif" border="0" name="two"
$applications .= '<tr><td><a href="' . $app[1]['url'] . '"';
@ -51,7 +51,7 @@
$applications .= $title . '</a></td></tr>';
$applications .= "\n";
}
$pre_load[] = $phpgw_info['server']['webserver_url'] . '/' . $app[0] . '/templates/idsociety/images/navbar-over.gif';
$pre_load[] = $phpgw->common->image($app[0],'navbar-over.gif');
}
$tpl->set_var('app_images',implode("','",$pre_load));
@ -112,7 +112,7 @@
{
$api_messages = lang('You are required to change your password during your first login')
. '<br> Click this image on the navbar: <img src="'
. $phpgw->common->get_image_path('preferences').'/navbar.gif">';
. $phpgw->common->image('preferences','navbar.gif').'">';
}
elseif ($phpgw_info['user']['lastpasswd_change'] < time() - (86400*30))
{

View File

@ -78,8 +78,7 @@
/* if ($phpgw_info["user"]["lastpasswd_change"] == 0) {
$api_messages = lang("You are required to change your password during your first login")
. '<br> Click this image on the navbar: <img src="'
. $phpgw_info["server"]["webserver_url"] . '/preferences/templates/'
. $phpgw_info["server"]["template_set"] . '/images/navbar.gif">';
. $phpgw->common->image('preferences','navbar.gif').'">';
} else if ($phpgw_info["user"]["lastpasswd_change"] < time() - (86400*30)) {
$api_messages = lang("it has been more then x days since you changed your password",30);
}

View File

@ -105,8 +105,7 @@
{
$api_messages = lang('You are required to change your password during your first login')
. '<br> Click this image on the navbar: <img src="'
. $phpgw_info['server']['webserver_url'] . '/preferences/templates/'
. $phpgw_info['server']['template_set'] . '/images/navbar.gif">';
. $phpgw->common->image('preferences','navbar.gif').'">';
}
else if ($phpgw_info['user']['lastpasswd_change'] < time() - (86400*30))
{