IndexController.class.php 986 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Home\Controller;
  3. use Think\Controller;
  4. class IndexController extends BaseController {
  5. public function index(){
  6. $tmp = @file_get_contents('./Application/Common/Conf/config.php');
  7. if (strstr($tmp, "showdoc not install")) {
  8. header("location:./install");
  9. exit();
  10. }
  11. $this->checkLogin(false);
  12. $login_user = session("login_user");
  13. $this->assign("login_user" ,$login_user);
  14. if (LANG_SET == 'en-us') {
  15. $demo_url = "http://api.pkbigdata.com/demo-en";
  16. $help_url = "http://api.pkbigdata.com/help-en";
  17. $creator_url = "https://github.com/star7th";
  18. }
  19. else{
  20. $demo_url = "http://api.pkbigdata.com/demo";
  21. $help_url = "http://api.pkbigdata.com/help";
  22. $creator_url = "https://blog.star7th.com/";
  23. }
  24. $this->assign("demo_url" ,$demo_url);
  25. $this->assign("help_url" ,$help_url);
  26. $this->assign("creator_url" ,$creator_url);
  27. $this->display();
  28. }
  29. }