Improvement in sysGeneric when try to load nonexistent files

This commit is contained in:
Julio Cesar Laura
2013-04-22 16:53:46 -04:00
parent fe8d2ac2f9
commit 835608523f
2 changed files with 7 additions and 6 deletions

View File

@@ -3,13 +3,11 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Server Error :: </title> <title>Server Error :: </title>
<link href="style.css" rel="stylesheet" type="text/css">
</head> </head>
<style> <style>
.box { .box {
-moz-border-radius:6px; /* Rounded edges in Firefox */ -moz-border-radius:6px; /* Rounded edges in Firefox */
background-image: url(/images/classic/info.gif);
color :#000; color :#000;
border-style:solid; border-style:solid;
border-width:1px; border-width:1px;
@@ -54,5 +52,4 @@
</div> </div>
</body> </body>
</html> </html>

View File

@@ -501,8 +501,12 @@ if (defined( 'SYS_TEMP' ) && SYS_TEMP != '') {
// including workspace shared classes -> particularlly for pmTables // including workspace shared classes -> particularlly for pmTables
set_include_path( get_include_path() . PATH_SEPARATOR . PATH_WORKSPACE ); set_include_path( get_include_path() . PATH_SEPARATOR . PATH_WORKSPACE );
} else { } else {
Bootstrap::SendTemporalMessage( 'ID_NOT_WORKSPACE', "error" ); if (SYS_LANG != '' && SYS_SKIN != '') {
Bootstrap::header( 'location: /sys/' . SYS_LANG . '/' . SYS_SKIN . '/main/sysLogin?errno=2' ); Bootstrap::SendTemporalMessage( 'ID_NOT_WORKSPACE', "error" );
Bootstrap::header( 'location: /sys/' . SYS_LANG . '/' . SYS_SKIN . '/main/sysLogin?errno=2' );
} else {
header('location: /errors/error404.php?url=' . urlencode($_SERVER['REQUEST_URI']));
}
die(); die();
} }
} else { //when we are in global pages, outside any valid workspace } else { //when we are in global pages, outside any valid workspace