ZenCart_Documentation  1.5.0
http://www.collinsharper.com
C:/xampp/htdocs/zen-cart/admin/alert_page.php
Go to the documentation of this file.
00001 <?php
00008 require ('includes/application_top.php');
00009 $adminDirectoryExists = $installDirectoryExists = FALSE;
00010 if (substr(DIR_WS_ADMIN, -7) == '/admin/' || substr(DIR_WS_HTTPS_ADMIN, -7) == '/admin/')
00011 {
00012    $adminDirectoryExists = TRUE;
00013 }
00014 $check_path = dirname($_SERVER['SCRIPT_FILENAME']) . '/../zc_install';
00015 if (is_dir($check_path))
00016 {
00017   $installDirectoryExists = TRUE;
00018 }
00019 if (!$adminDirectoryExists && !$installDirectoryExists)
00020 {
00021   zen_redirect(zen_href_link(FILENAME_DEFAULT));
00022 }
00023 ?>
00024 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
00025 <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
00026 <head>
00027 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
00028 <title>Zen Cart!</title>
00029 <meta name="robot" content="noindex, nofollow" />
00030 </head>
00031 <body>
00032         <div style="width:400px;margin:auto;margin-top:10%;border:5px red solid;padding:20px 50px 50px 50px;background-color:#FFAFAF;">
00033         <h1 style="text-align: center;font-size:40px;color:red;margin:0;"><?php echo HEADING_TITLE; ?></h1>
00034         <p style=""><?php echo ALERT_PART1; ?></p>
00035         <ul style="">
00036         <?php if ($installDirectoryExists) { ?>
00037         <li><?php echo ALERT_REMOVE_ZCINSTALL; ?><br /><br /></li>
00038         <?php  } ?>
00039         <?php if ($adminDirectoryExists) { ?>
00040         <li><?php echo ALERT_RENAME_ADMIN; ?><br /><a href="http://tutorials.zen-cart.com/index.php?article=33" target="_blank"><?php echo ADMIN_RENAME_FAQ_NOTE; ?></a></li>
00041         <?php  } ?>
00042         </ul>
00043         <br />
00044         <p class=""><?php echo ALERT_PART2; ?></p>
00045         </div>
00046 </body>
00047 </html>
 All Data Structures Namespaces Files Functions Variables Enumerations