@@ -11,7 +11,7 @@ |
||
| 11 | 11 | $dedicated_view = $this->load_view($view_name, [ |
| 12 | 12 | 'error_code' => $code, |
| 13 | 13 | ]); |
| 14 | - if (! $dedicated_view) { |
|
| 14 | + if (!$dedicated_view) { |
|
| 15 | 15 | $this->load_view('http_error', [ |
| 16 | 16 | 'error_code' => $code, |
| 17 | 17 | ]); |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -if (!function_exists('getallheaders')) { |
|
| 2 | +if (!function_exists('getallheaders')) { |
|
| 3 | 3 | function getallheaders() { |
| 4 | 4 | if (!is_array($_SERVER)) { |
| 5 | 5 | return array(); |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | -$text_input = function ($name, $large_text=false) use ($errors) { |
|
| 2 | +$text_input = function($name, $large_text = false) use ($errors) { |
|
| 3 | 3 | ?> |
| 4 | 4 | <?php if ($large_text): ?> |
| 5 | 5 | <textarea name="<?= $name ?>" class="pure-input-1" required=""><?= isset($_POST[$name]) ? $_POST[$name] : '' ?></textarea> |
| 6 | - <?php else: ?> |
|
| 6 | + <?php else : ?> |
|
| 7 | 7 | <input |
| 8 | 8 | name="<?= $name ?>" |
| 9 | 9 | value="<?= isset($_POST[$name]) ? $_POST[$name] : '' ?>" |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -$text_input = function ($name, $required=true) use ($errors) { |
|
| 2 | +$text_input = function($name, $required = true) use ($errors) { |
|
| 3 | 3 | ?> |
| 4 | 4 | <input |
| 5 | 5 | name="<?= $name ?>" |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -$text_input = function ($name, $type="text") use ($errors) { |
|
| 2 | +$text_input = function($name, $type = "text") use ($errors) { |
|
| 3 | 3 | ?> |
| 4 | 4 | <input |
| 5 | 5 | name="<?= $name ?>" |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | -$text_input = function ($name, $large_text=false) use ($errors) { |
|
| 2 | +$text_input = function($name, $large_text = false) use ($errors) { |
|
| 3 | 3 | ?> |
| 4 | 4 | <?php if ($large_text): ?> |
| 5 | 5 | <textarea name="<?= $name ?>" class="pure-input-1" required=""><?= isset($_POST[$name]) ? $_POST[$name] : '' ?></textarea> |
| 6 | - <?php else: ?> |
|
| 6 | + <?php else : ?> |
|
| 7 | 7 | <input |
| 8 | 8 | name="<?= $name ?>" |
| 9 | 9 | value="<?= isset($_POST[$name]) ? $_POST[$name] : '' ?>" |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | -$text_input = function ($name, $large_text=false) use ($errors) { |
|
| 2 | +$text_input = function($name, $large_text = false) use ($errors) { |
|
| 3 | 3 | ?> |
| 4 | 4 | <?php if ($large_text): ?> |
| 5 | 5 | <textarea name="<?= $name ?>" class="pure-input-1" required=""><?= isset($_POST[$name]) ? $_POST[$name] : '' ?></textarea> |
| 6 | - <?php else: ?> |
|
| 6 | + <?php else : ?> |
|
| 7 | 7 | <input |
| 8 | 8 | name="<?= $name ?>" |
| 9 | 9 | value="<?= isset($_POST[$name]) ? $_POST[$name] : '' ?>" |
@@ -7,19 +7,19 @@ |
||
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | public function login() { |
| 10 | - $this->http_lib->redirect( locale_base_url() . 'oidc/login/' ); |
|
| 10 | + $this->http_lib->redirect(locale_base_url() . 'oidc/login/'); |
|
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | public function logout() { |
| 14 | - $this->http_lib->redirect( locale_base_url() . 'oidc/logout/' ); |
|
| 14 | + $this->http_lib->redirect(locale_base_url() . 'oidc/logout/'); |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | public function register() { |
| 18 | - $this->http_lib->redirect( locale_base_url() . 'oidc/login/' ); |
|
| 18 | + $this->http_lib->redirect(locale_base_url() . 'oidc/login/'); |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | public function wdw() { |
| 22 | - $this->http_lib->redirect( locale_base_url() . 'talks-and-workshops/web-development/' ); |
|
| 22 | + $this->http_lib->redirect(locale_base_url() . 'talks-and-workshops/web-development/'); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | public function codecraft() { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | public function logout() { |
| 30 | 30 | $oidc = $this->construct_oidc(); |
| 31 | 31 | // XXX: Hack to logout from kong, i.e. unset lua_resty_session cookies |
| 32 | - setcookie('session', '', time() - 3600, '/'); |
|
| 32 | + setcookie('session', '', time() - 3600, '/'); |
|
| 33 | 33 | setcookie('session_2', '', time() - 3600, '/'); |
| 34 | 34 | setcookie('session_3', '', time() - 3600, '/'); |
| 35 | 35 | $oidc->signOut($oidc->getAccessToken(), base_url()); |