index.php 797 B

123456789101112131415161718192021222324252627
  1. <?php
  2. //define('APP_DOMAIN','wxt.rltest.cn');
  3. define('PHPCLS_NAMESPACE','Xskq');
  4. define('APP_PREFIX','xskqgl');
  5. $plugins = array(
  6. );
  7. $prefix = substr( $_GET['s'] ,0,strpos($_GET['s'] ,'_'));
  8. //define('UICOMP_SERVER','http://jrcomp.rltest.cn:8080/uicomp');
  9. define('UICOMP_SERVER','http://jrcomp.rltest.cn/uicomp');
  10. define('SOLUTION_PATH',__DIR__ .'/');
  11. define('ENTRY_PATH',__DIR__ .'/');
  12. if(! $plugins[$prefix]){
  13. define('SCRIPT_FILENAME',__FILE__);
  14. }
  15. else{
  16. //运行相应插件
  17. $path = __DIR__ . $plugins[$prefix] . 'stub.php';
  18. if(! file_exists($path) )
  19. die('invalid plugin path - ' . $path);
  20. define('SCRIPT_FILENAME', $path);
  21. require $path;
  22. }
  23. require 'vendor/autoload.php';
  24. //$c = new \Aliyun\OTS\OTSClient;
  25. require 'vendor/elvisszhang/php-tp313/ThinkPHP.php';