Initial commit
This commit is contained in:
46
production/admin/index.php
Normal file
46
production/admin/index.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| CubeCart 4
|
||||
| ========================================
|
||||
| CubeCart is a registered trade mark of Devellion Limited
|
||||
| Copyright Devellion Limited 2006. All rights reserved.
|
||||
| Devellion Limited,
|
||||
| 5 Bridge Street,
|
||||
| Bishops Stortford,
|
||||
| HERTFORDSHIRE.
|
||||
| CM23 2JU
|
||||
| UNITED KINGDOM
|
||||
| http://www.devellion.com
|
||||
| UK Private Limited Company No. 5323904
|
||||
| ========================================
|
||||
| Web: http://www.cubecart.com
|
||||
| Email: info (at) cubecart (dot) com
|
||||
| License Type: CubeCart is NOT Open Source Software and Limitations Apply
|
||||
| Licence Info: http://www.cubecart.com/site/faq/license.php
|
||||
+--------------------------------------------------------------------------
|
||||
| index.php
|
||||
| ========================================
|
||||
| Admin Folder Protection
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
include '..'.DIRECTORY_SEPARATOR.'ini.inc.php';
|
||||
include '..'.CC_DS.'includes'.CC_DS.'global.inc.php';
|
||||
|
||||
if (file_exists('..'.CC_DS.'admin.php')) {
|
||||
header('location: ../admin.php');
|
||||
} else {
|
||||
header('HTTP/1.1 404 Not Found');
|
||||
header('HTTP/1.0 404 Not Found');
|
||||
header('Status: 404 Not Found');
|
||||
}
|
||||
?>
|
||||
<html><head>
|
||||
<title>404 Not Found</title>
|
||||
</head><body>
|
||||
<h1>Not Found</h1>
|
||||
<p>The requested URL <?php echo $_SERVER['REQUEST_URI']; ?> was not found on this server.</p>
|
||||
<hr>
|
||||
<address><?php echo $_SERVER['SERVER_SOFTWARE']; ?></address>
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user