File size: 4,300 Bytes
07c3cdd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?php

$http = G::is_https() ? "https" : "http";
$host = $_SERVER["SERVER_NAME"] . (($_SERVER["SERVER_PORT"] != "80")? ":" . $_SERVER["SERVER_PORT"] : "");

$urlLogin = $http . "://" . $host . "/sys/en/neoclassic/login/login";
$urlHome =  $urlLogin;

if (isset($_GET["url"]) && $_GET["url"] != "") {
    $url = urldecode($_GET["url"]);
    $url = explode("/", $url);

    $sysSys = "";
    $sysLang = "";
    $sysSkin = "";
 
    if (isset($url[1]) && preg_match("/^sys(.+)$/", $url[1], $match)) {
        $sysSys = $match[1];

        // Check if sys path exists
        $checkDir = PATH_DATA."sites/".$sysSys;
        if(!is_dir($checkDir)) { 
            $sysSys = '';
        }
    }
    
    if (isset($url[2])) {
        $sysLang = $url[2];
    }

    if (isset($url[3])) {
        $sysSkin = $url[3];
        
        // Check if sys path exists
        $checkDir = PATH_SKIN_ENGINE.$sysSkin;
        if(!is_dir($checkDir)) { 
            // Try this again
            $checkDir = PATH_CUSTOM_SKINS.$sysSkin;
            if(!is_dir($checkDir)) { 
                $sysSkin = '';
            }
        }
    }

    if ($sysSys != "" && $sysLang != "" && $sysSkin != "") {
        $urlLogin = $http . "://" . $host . "/sys" . $sysSys . "/" . $sysLang . "/" . $sysSkin . "/login/login";
        $urlHome =  $http . "://" . $host . "/sys" . $sysSys . "/" . $sysLang . "/" . $sysSkin . "/cases/main";
    }
}

?>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <META http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"/>
  <link href="css2/style1.css" type="text/css" rel="stylesheet"/>
</head>
<body style="margin: 0px; overflow: auto;">
    <!-- Warp around everything -->
    <div id="warp">


        <!-- Header top -->
        <div id="header_top"></div>
        <!-- End header top -->


        <!-- Header -->
        <div id="header">
            <table border="0" cellspacing="0" cellpadding="0" width="90%">
                <tr>
                    <td align="center">
                        <h2>Oops, page not found!</h2>
                        <h5>This page may be busy or the URL incorrect.</h5>
                    </td>
                </tr>
            </table>
        </div>
        <!-- End Header -->


        <!-- The content div -->
        <div id="content">

            <!-- text -->
            <div id="text">
                <!-- The info text -->
                <strong>Possible reasons: </strong>
<ul id="textInfo">
<li>The link is broken. This may occur when you receive a link via email but your client software adds line breaks, thus distorting long URLs.</li>
<li>The page you requested is no longer active.</li>
<li>There is a spelling mistake in the link, in case you entered the URL into the browser's address toolbar.</li>
</ul>
<ul>
                <br/>
                <h3>What you can do?</h3>
                <!-- End info text -->
                <br/>
                <!-- Page links -->
                <ul id="textInfo">
                    <li>You might try retyping the URL and trying again.</li>
                    <li>Or we could take you back to the <a href="<?php echo htmlspecialchars($urlHome); ?>">home page.</a></li>
                    <li>Or you could start again from the <a href="<?php echo htmlspecialchars($urlLogin); ?>">login page.</a></li>
                </ul>
                <!-- End page links -->
            </div>
            <!-- End info text -->


            <!-- Book icon -->
            <img id="book" src="images/img-01.png" alt="Book iCon" />
            <!-- End Book icon -->

            <div style="clear:both;"></div>
        </div>
        <!-- End Content -->


        <!-- Footer -->
        <div id="footer" style="padding-top: 10px; color: #878787; font-size: 10px; text-align: center;">
            <span>&#169; Copyright 2000 - <?php echo date("Y"); ?> </span>
        </div>
        <!-- End Footer -->


        <!-- Footer bottom -->
        <div id="footer_bottom"></div>
        <!-- End Footer bottom -->


        <!-- Social Media list -->


        <!-- End Social media -->
        <div style="clear:both;"></div>


      </div>
    <!-- End Warp around everything -->

  </div>
</body>
</html>