���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/tie.cx/app/controllers/Plan.php
���ѧ٧ѧ�
<?php namespace Altum\Controllers; use Altum\Middlewares\Authentication; class Plan extends Controller { public function index() { if(!settings()->payment->is_enabled) { redirect(); } $type = isset($this->params[0]) && in_array($this->params[0], ['renew', 'upgrade', 'new']) ? $this->params[0] : 'new'; /* If the user is not logged in when trying to upgrade or renew, make sure to redirect them */ if(in_array($type, ['renew', 'upgrade']) && !Authentication::check()) { redirect('plan/new'); } /* Plans View */ $data = [ 'simple_user_plan_settings' => require APP_PATH . 'includes/simple_user_plan_settings.php' ]; $view = new \Altum\Views\View('partials/plans', (array) $this); $this->add_view_content('plans', $view->run($data)); /* Prepare the View */ $data = [ 'type' => $type ]; $view = new \Altum\Views\View('plan/index', (array) $this); $this->add_view_content('content', $view->run($data)); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.1 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�