* $Id$
*/
+function sqm_baseuri(){
+ global $base_uri, $PHP_SELF;
+ if (isset($base_uri)){
+ return $base_uri;
+ }
+ $dirs = array("|src/.*|", "|plugins/.*|", "|functions/.*|");
+ $repl = array("", "", "");
+ $base_uri = preg_replace($dirs, $repl, $PHP_SELF);
+ return $base_uri;
+}
+
function error_username_password_incorrect() {
global $frame_top, $color;
/* XXX: Should really not start the HTML before this, or close off more
'</TR>' .
'<TR><TD>'.
'<CENTER><BR>' . _("Unknown user or password incorrect.") .
- '<BR><A HREF="login.php" TARGET='.$frame_top.'>' .
- _("Click here to try again") .
+ '<BR><A HREF="' . sqm_baseuri() . '"login.php" TARGET='.
+ $frame_top.'>' . _("Click here to try again") .
'</A>.</CENTER>'.
'</TD></TR>'.
'</TABLE>'.
'</TD></TR><TR><TD>'.
"<CENTER><BR>$message<BR>\n".
'<BR>'.
- "<A HREF=\"right_main.php?sort=$sort&startMessage=$startMessage&mailbox=$urlMailbox\">";
+ "<A HREF=\"" . sqm_baseuri()
+ . "right_main.php?sort=$sort&startMessage=$startMessage"
+ . "&mailbox=$urlMailbox\">";
printf (_("Click here to return to %s"), $mailbox);
echo '</A>.'.
'</TD></TR>'.
GLOBAL $frame_top, $org_logo, $org_name, $org_logo_width, $org_logo_height,
$hide_sm_attributions, $version;
-
- include_once( '../functions/page_header.php' );
+ $base_uri = sqm_baseuri();
+ include_once($base_uri . 'functions/page_header.php' );
if ( !isset( $org_logo ) ) {
// Don't know yet why, but in some accesses $org_logo is not set.
- include( '../config/config.php' );
+ include( $base_uri . '../config/config.php' );
}
/* Display width and height like good little people */
$width_and_height = '';