@@ -105,14 +105,14 @@ |
||
105 | 105 | $cfg['baseDomain'] = $this->baseDomain; |
106 | 106 | $cfg['database'] = $this->db; |
107 | 107 | $cfg['singleLanguage'] = $this->singleLanguage; |
108 | - $cfg['multiLanguage'] = (bool)$this->multiLanguage; |
|
109 | - $cfg['passwordSalt'] = '$2a$07$' . Str::randomLatinNumeric(mt_rand(21, 30)) . '$'; |
|
110 | - $cfg['debug']['cookie']['key'] = 'fdebug_' . Crypt::randomString(mt_rand(4, 16)); |
|
108 | + $cfg['multiLanguage'] = (bool) $this->multiLanguage; |
|
109 | + $cfg['passwordSalt'] = '$2a$07$'.Str::randomLatinNumeric(mt_rand(21, 30)).'$'; |
|
110 | + $cfg['debug']['cookie']['key'] = 'fdebug_'.Crypt::randomString(mt_rand(4, 16)); |
|
111 | 111 | $cfg['debug']['cookie']['value'] = Crypt::randomString(mt_rand(32, 128)); |
112 | 112 | $cfg['mail'] = $this->mail; |
113 | 113 | |
114 | 114 | // initialize migrations table |
115 | - App::$Database->getConnection('install')->getSchemaBuilder()->create('migrations', function ($table) { |
|
115 | + App::$Database->getConnection('install')->getSchemaBuilder()->create('migrations', function($table) { |
|
116 | 116 | $table->increments('id'); |
117 | 117 | $table->string('migration', 128)->unique(); |
118 | 118 | $table->timestamps(); |
@@ -7,7 +7,7 @@ |
||
7 | 7 | <?php |
8 | 8 | $menu = $this->bootstrap()->nav('ul', ['class' => 'nav-tabs nav-fill']) |
9 | 9 | ->menu(['text' => __('User list'), 'link' => ['user/index']]); |
10 | -if ((int)$configs['registrationType'] === 0) { |
|
10 | +if ((int) $configs['registrationType'] === 0) { |
|
11 | 11 | $menu->menu(['text' => __('Invitation list'), 'link' => ['user/invitelist']]); |
12 | 12 | } |
13 | 13 | $menu->menu(['text' => __('Role management'), 'link' => ['user/rolelist']]) |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | <?= $form->fieldset()->text('usersOnPage', null, __('How many users will be displayed per one list page?')) ?> |
29 | 29 | <?= $form->fieldset()->boolean('guestView', null, __('Allow guests view user profiles?')) ?> |
30 | -<?= $form->fieldset()->text('wallPostOnPage', null, __('How many wall posts must be displayed in one page of profile?')) ?> |
|
30 | +<?= $form->fieldset()->text('wallPostOnPage', null, __('How many wall posts must be displayed in one page of profile?')) ?> |
|
31 | 31 | <?= $form->fieldset()->text('wallPostOnFeed', null, __('How many wall posts must be displayed on one page of feed list?')) ?> |
32 | 32 | <?= $form->fieldset()->text('delayBetweenPost', null, __('Delay between 2 posts on wall from one user in seconds')) ?> |
33 | 33 | <?= $form->fieldset()->boolean('rating', null, __('Enable user rating system?')) ?> |
@@ -32,7 +32,7 @@ |
||
32 | 32 | ['text' => $model->type] |
33 | 33 | ])->row([ |
34 | 34 | ['text' => $model->getLabel('reg_exp')], |
35 | - ['text' => ($model->reg_cond == 0 ? '!' : null) . 'preg_match("'.$model->reg_exp.'", $input)'] |
|
35 | + ['text' => ($model->reg_cond == 0 ? '!' : null).'preg_match("'.$model->reg_exp.'", $input)'] |
|
36 | 36 | ])->display(); |
37 | 37 | ?> |
38 | 38 | </div> |
@@ -35,7 +35,7 @@ |
||
35 | 35 | $menu->menu([ |
36 | 36 | 'text' => Str::upperCase($lang), |
37 | 37 | 'tab' => function() use ($form, $lang) { |
38 | - return $form->fieldset()->text('name.' . $lang, null, __('Define field name, which be displayed for user for current language locale')); |
|
38 | + return $form->fieldset()->text('name.'.$lang, null, __('Define field name, which be displayed for user for current language locale')); |
|
39 | 39 | }, |
40 | 40 | 'tabActive' => $lang === \App::$Request->getLanguage(), |
41 | 41 | ]); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $query = Profile::with(['user']); |
27 | 27 | |
28 | 28 | // set current page and offset |
29 | - $page = (int)$this->request->query->get('page'); |
|
29 | + $page = (int) $this->request->query->get('page'); |
|
30 | 30 | $offset = $page * self::ITEM_PER_PAGE; |
31 | 31 | |
32 | 32 | // count total items count for pagination builder |
@@ -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 |
@@ -77,7 +77,8 @@ discard block |
||
77 | 77 | </div> |
78 | 78 | <?php if (\App::$Captcha->isFull()): ?> |
79 | 79 | <div class="col-md-offset-3 col-md-9"><?= \App::$Captcha->get() ?></div> |
80 | - <?php else: ?> |
|
80 | + <?php else { |
|
81 | + : ?> |
|
81 | 82 | <div class="form-group"> |
82 | 83 | <label for="guest-captcha" class="col-sm-3 control-label"><?= __('Captcha') ?>:</label> |
83 | 84 | <div class="col-sm-9"> |
@@ -85,7 +86,9 @@ discard block |
||
85 | 86 | <input id="guest-captcha" type="text" name="captcha" class="form-control" required> |
86 | 87 | </div> |
87 | 88 | </div> |
88 | - <?php endif; ?> |
|
89 | + <?php endif; |
|
90 | +} |
|
91 | +?> |
|
89 | 92 | <?php endif; ?> |
90 | 93 | <textarea class="form-control wysiwyg" name="message"></textarea> |
91 | 94 | </form> |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | /** @var int $id */ |
6 | 6 | ?> |
7 | 7 | |
8 | -<?php if ((bool)$configs['guestAdd'] && (bool)$configs['guestModerate'] && !\App::$User->isAuth()): ?> |
|
8 | +<?php if ((bool) $configs['guestAdd'] && (bool) $configs['guestModerate'] && !\App::$User->isAuth()): ?> |
|
9 | 9 | <p class="alert alert-warning"><?= $this->bootstrap()->alert('warning', __('All guest comments will be moderated before display')) ?></p> |
10 | 10 | <?php endif; ?> |
11 | 11 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | </a> |
38 | 38 | </i> |
39 | 39 | </div> |
40 | - <div id="comment-text" class="comment-text"><?= __('Loading') . ' ...' ?></div> |
|
40 | + <div id="comment-text" class="comment-text"><?= __('Loading').' ...' ?></div> |
|
41 | 41 | </div> |
42 | 42 | <div id="comment-answers-0" class="d-none"></div> |
43 | 43 | <div class="row d-none" id="add-replay-to"> |
@@ -60,12 +60,12 @@ discard block |
||
60 | 60 | <span id="answer-date">00.00.00 00-00-00</span> |
61 | 61 | <span id="answer-user-name"><?= __('Unknown') ?></span>: |
62 | 62 | </div> |
63 | - <div id="answer-text" class="comment-text"><?= __('Loading') . ' ...' ?></div> |
|
63 | + <div id="answer-text" class="comment-text"><?= __('Loading').' ...' ?></div> |
|
64 | 64 | </div> |
65 | 65 | </li> |
66 | 66 | </ul> |
67 | 67 | |
68 | -<?php if ((bool)$configs['guestAdd'] || \App::$User->isAuth()): ?> |
|
68 | +<?php if ((bool) $configs['guestAdd'] || \App::$User->isAuth()): ?> |
|
69 | 69 | <!-- comment form --> |
70 | 70 | <form name="comment-add-form" action="" method="post" style="padding-top: 15px;" class="form-horizontal"> |
71 | 71 | <input type="hidden" name="replay-to" value="0" /> |