admin.php 361 B

1234567891011121314
  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. exit;
  9. } else {
  10. header('Location: ../../index.php');
  11. exit;
  12. }