Neue Adminseite hinzufügen

Aus Wiki | modified eCommerce Shopsoftware
Zur Navigation springenZur Suche springen


in admin/includes/extra/menu/foobar.php

<?php
defined('_VALID_XTC') or die('Direct Access to this location is not allowed.');

if (defined('MODULE_FOOBAR_STATUS') && 'true' == strtolower(MODULE_FOOBAR_STATUS)) {
  $filename = 'foobar.php';

  $add_contents[BOX_HEADING_TOOLS][] = array(
      'admin_access_name' => 'foobar',
      'filename' => $filename,
      'boxname' => 'Foobar',
      'parameters' => '',
      'ssl' => ''
  );
}
?>

in admin/foobar.php

<?php
/**
 * --------------------------------------------------------------
 * File: foobar.php
 * Version:
 * Date:
 *
 * Author:
 * Copyright:
 * Web:
 * Contact:
 * --------------------------------------------------------------
 * Released under the GNU General Public License
 * --------------------------------------------------------------
 */
require('includes/application_top.php');
require (DIR_WS_INCLUDES.'head.php');
?>
</head>
<body>
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<!-- body //-->

<h1>Hier Content einfügen.</h1>

<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>