public static function set_role() { $role_str = \Zotlabs\Lib\System::get_server_role(); switch ($role_str) { case 'basic': $role = SERVER_ROLE_BASIC; break; case 'pro': $role = SERVER_ROLE_PRO; break; case 'standard': default: $role = SERVER_ROLE_STANDARD; break; } self::$role = $role; return $role; }
<?php use helpers\BaseHtml; use helpers\Detail; $this->title = 'My Profile'; $this->breadcrumb = [['label' => $this->title]]; ?> <div class="main-title"> <h1><?php echo $this->title; ?> </h1> </div> <div class="row"> <div class="col-md-8 col-md-offset-2"> <?php echo BaseHtml::a('New Password', ['change-password'], ['class' => 'btn btn-warning']); ?> <br /><br /> <?php echo Detail::begin(['model' => $model, 'items' => ['Username', 'Email', 'isActivated', 'regDatePretty', 'lastLoginPretty', ['label' => 'Role', 'value' => App::role()]]]); ?> </div> </div>