__init.php 712 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. defined('IN_IA') or exit('Access Denied');
  7. if (in_array($action, array('site', 'menu', 'attachment', 'systeminfo', 'logs', 'filecheck', 'optimize',
  8. 'database', 'scan', 'bom', 'ipwhitelist', 'sensitiveword', 'thirdlogin', 'oauth', 'usersetting', 'job', 'check', 'save_setting', 'scrapfile'))) {
  9. define('FRAME', 'site');
  10. }
  11. if ($action == 'platform') {
  12. define('FRAME', 'account_manage');
  13. }
  14. if ($action == 'workorder') {
  15. define('FRAME', 'workorder');
  16. }
  17. if (in_array($action, array('template', 'updatecache'))) {
  18. define('FRAME', 'system');
  19. }