index.php 702 B

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