@@ -13,11 +13,14 @@ |
||
13 | 13 | |
14 | 14 | <?php if (App::$Captcha->isFull()): ?> |
15 | 15 | <div class="col-md-9 offset-md-3"><?= $html ?></div> |
16 | -<?php else: ?> |
|
16 | +<?php else { |
|
17 | + : ?> |
|
17 | 18 | <div class="row"> |
18 | 19 | <div class="col-md-9 offset-md-3"> |
19 | 20 | <img src="<?= $html ?>" alt="captcha" onClick="this.src='<?=$html?>&rnd='+Math.random()" /> |
20 | 21 | </div> |
21 | 22 | </div> |
22 | 23 | <?= $form->fieldset()->text($name, null, __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')) ?> |
23 | -<?php endif; ?> |
|
24 | 24 | \ No newline at end of file |
25 | +<?php endif; |
|
26 | +} |
|
27 | +?> |
|
25 | 28 | \ No newline at end of file |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $record = new Invite(); |
24 | 24 | |
25 | 25 | // set current page num and offset |
26 | - $page = (int)$this->request->query->get('page', 0); |
|
26 | + $page = (int) $this->request->query->get('page', 0); |
|
27 | 27 | $offset = $page * self::ITEM_PER_PAGE; |
28 | 28 | |
29 | 29 | // prepare pagination data |
@@ -91,18 +91,18 @@ discard block |
||
91 | 91 | $user = App::$User->identity(); |
92 | 92 | // user is not authed ? |
93 | 93 | if ($user === null || !App::$User->isAuth()) { |
94 | - $redirectUrl = App::$Alias->scriptUrl . '/user/login'; |
|
94 | + $redirectUrl = App::$Alias->scriptUrl.'/user/login'; |
|
95 | 95 | App::$Response->redirect($redirectUrl, true); |
96 | 96 | exit(); |
97 | 97 | } |
98 | 98 | |
99 | - $permission = env_name . '/' . App::$Request->getController() . '/' . App::$Request->getAction(); |
|
99 | + $permission = env_name.'/'.App::$Request->getController().'/'.App::$Request->getAction(); |
|
100 | 100 | |
101 | 101 | // doesn't have permission? get the f*ck out |
102 | 102 | if (!$user->role->can($permission)) { |
103 | 103 | App::$Session->invalidate(); |
104 | 104 | |
105 | - $redirectUrl = App::$Alias->scriptUrl . '/user/login'; |
|
105 | + $redirectUrl = App::$Alias->scriptUrl.'/user/login'; |
|
106 | 106 | App::$Response->redirect($redirectUrl, true); |
107 | 107 | exit(); |
108 | 108 | } |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | */ |
152 | 152 | public function getConfigs(): ?array |
153 | 153 | { |
154 | - $configs = $this->type === 'widget' ? (array)$this->widget->configs : (array)$this->application->configs; |
|
154 | + $configs = $this->type === 'widget' ? (array) $this->widget->configs : (array) $this->application->configs; |
|
155 | 155 | foreach ($configs as $cfg => $value) { |
156 | 156 | if (Any::isInt($value)) { |
157 | 157 | $configs[$cfg] = $value; |
@@ -7,7 +7,7 @@ |
||
7 | 7 | /** @var array $url */ |
8 | 8 | /** @var array $properties */ |
9 | 9 | |
10 | -$rndId = 'btn_selectize_submit_' . mt_rand(999, 999999); |
|
10 | +$rndId = 'btn_selectize_submit_'.mt_rand(999, 999999); |
|
11 | 11 | $properties['id'] = $rndId; |
12 | 12 | |
13 | 13 | echo (new \Ffcms\Templex\Helper\Html\Dom())->button(function() use ($text) { |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$this->layout('_layouts/default',[ |
|
3 | +$this->layout('_layouts/default', [ |
|
4 | 4 | 'title' => 'Access forbidden' |
5 | 5 | ]); |
6 | 6 |
@@ -7,7 +7,7 @@ |
||
7 | 7 | /** @var array $url */ |
8 | 8 | /** @var array $properties */ |
9 | 9 | |
10 | -$rndId = 'btn_selectize_submit_' . mt_rand(999, 999999); |
|
10 | +$rndId = 'btn_selectize_submit_'.mt_rand(999, 999999); |
|
11 | 11 | $properties['id'] = $rndId; |
12 | 12 | |
13 | 13 | echo (new \Ffcms\Templex\Helper\Html\Dom())->button(function() use ($text) { |
@@ -13,11 +13,14 @@ |
||
13 | 13 | |
14 | 14 | <?php if (App::$Captcha->isFull()): ?> |
15 | 15 | <div class="col-md-9 offset-md-3"><?= $html ?></div> |
16 | -<?php else: ?> |
|
16 | +<?php else { |
|
17 | + : ?> |
|
17 | 18 | <div class="row"> |
18 | 19 | <div class="col-md-9 offset-md-3"> |
19 | 20 | <img src="<?= $html ?>" alt="captcha" onClick="this.src='<?=$html?>&rnd='+Math.random()" /> |
20 | 21 | </div> |
21 | 22 | </div> |
22 | 23 | <?= $form->fieldset()->text($name, null, __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')) ?> |
23 | -<?php endif; ?> |
|
24 | 24 | \ No newline at end of file |
25 | +<?php endif; |
|
26 | +} |
|
27 | +?> |
|
25 | 28 | \ No newline at end of file |
@@ -88,7 +88,7 @@ |
||
88 | 88 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
89 | 89 | SOFTWARE.</textarea> |
90 | 90 | <br /> |
91 | -<?php if($model->checkAll()): ?> |
|
91 | +<?php if ($model->checkAll()): ?> |
|
92 | 92 | <div class="row"> |
93 | 93 | <div class="col-3" style="padding-top: 5px;padding-left: 25px;"> |
94 | 94 | <input type="checkbox" id="agree-license" /> <label for="agree-license"><?= __('Accept license') ?></label> |
@@ -97,9 +97,12 @@ |
||
97 | 97 | <a href="#license" class="btn btn-success btn-block disabled" id="install-link"><?= __('Start install') ?></a> |
98 | 98 | </div> |
99 | 99 | </div> |
100 | -<?php else: ?> |
|
100 | +<?php else { |
|
101 | + : ?> |
|
101 | 102 | <?= \Ffcms\Templex\Url\Url::a(['main/index'], __('Check again'), ['class' => 'btn btn-warning btn-block']) ?> |
102 | -<?php endif; ?> |
|
103 | +<?php endif; |
|
104 | +} |
|
105 | +?> |
|
103 | 106 | <script> |
104 | 107 | $(document).ready(function () { |
105 | 108 | $('#agree-license').change(function () { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | var script_lang = '<?= \App::$Request->getLanguage() ?>'; |
26 | 26 | var site_url = '<?= \App::$Alias->baseUrl ?>'; |
27 | 27 | </script> |
28 | - <?php if (!isset($fullgrid)){ $fullgrid = false; } ?> |
|
28 | + <?php if (!isset($fullgrid)) { $fullgrid = false; } ?> |
|
29 | 29 | </head> |
30 | 30 | |
31 | 31 | <body> |