Home\Controller\IndexController::index PHP Method

index() public method

public index ( )
    public function index()
    {
        $this->checkLogin(false);
        $login_user = session("login_user");
        $this->assign("login_user", $login_user);
        if (LANG_SET == 'en-us') {
            $demo_url = "http://www.showdoc.cc/demo-en";
            $help_url = "http://www.showdoc.cc/help-en";
            $creator_url = "https://github.com/star7th";
        } else {
            $demo_url = "http://www.showdoc.cc/demo";
            $help_url = "http://www.showdoc.cc/help";
            $creator_url = "http://blog.star7th.com/";
        }
        $this->assign("demo_url", $demo_url);
        $this->assign("help_url", $help_url);
        $this->assign("creator_url", $creator_url);
        $this->display();
    }
IndexController