admin.php 351 B

123456789101112
  1. <?php
  2. require_once __DIR__.'/config.php';
  3. $plugin = SepePlugin::create();
  4. $enable = $plugin->get('sepe_enable') == 'true';
  5. $pluginPath = api_get_path(WEB_PLUGIN_PATH).'sepe/src/sepe-administration-menu.php';
  6. if ($enable && api_is_platform_admin()) {
  7. header('Location:'.$pluginPath);
  8. } else {
  9. header('Location: ../../index.php');
  10. }