Notice (8) : Undefined index: HTTP_ACCEPT_LANGUAGE [APP/Controller/UsersController.php , line 60 ]Code Context // Set language
$this -> lang = substr ( $_SERVER [ 'HTTP_ACCEPT_LANGUAGE' ], 0 , 2 );
$this -> lang = $this -> getRequest ()-> getQuery ( 'lang' );
$event = object(Cake\Event\Event) {
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(App\Controller\UsersController) {}
[protected] _data => []
[protected] _stopped => false
} App\Controller\UsersController::beforeFilter() - APP/Controller/UsersController.php, line 60
Cake\Event\EventManager::_callListener() - CORE/src/Event/EventManager.php, line 353
Cake\Event\EventManager::dispatch() - CORE/src/Event/EventManager.php, line 330
Cake\Controller\Controller::dispatchEvent() - CORE/src/Event/EventDispatcherTrait.php, line 114
Cake\Controller\Controller::startupProcess() - CORE/src/Controller/Controller.php, line 658
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 115
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 232
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Middleware\CsrfProtectionMiddleware::__invoke() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 103
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 163
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Warning (512) : Unable to emit headers. Headers sent in file=/home/miko/user_dev/vendor/cakephp/cakephp/src/Error/Debugger.php line=853 [CORE/src/Http/ResponseEmitter.php , line 48 ]Code Context if ( Configure :: read ( 'debug' )) {
trigger_error ( $message , E_USER_WARNING );
} else {
$response = object(Cake\Http\Response) {
'status' => (int) 200,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => '<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Users </title>
<link rel="stylesheet" href="/css/normalize.min.css"/> <link rel="stylesheet" href="/css/s2p.css?v=1736164026"/> <link rel="stylesheet" href="/css/main.css?v=1736164026"/> <link rel="stylesheet" href="https://code.jquery.com/ui/1.13.1/themes/base/jquery-ui.css"/> <link rel="stylesheet" href="/css/selectize.css"/> <link rel="stylesheet" href="/css/w3.css"/> <link rel="stylesheet" href="/css/w3-theme-blue.css"/> <link rel="stylesheet" href="/css/./famfamfam-flags.css"/> <link rel="stylesheet" href="/css/./materialdesignicons.min.css"/> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css"/> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.css"/> <link rel="stylesheet" href="https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/leaflet.fullscreen.css"/> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet.locatecontrol@0.79.0/dist/L.Control.Locate.min.css"/>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://code.jquery.com/ui/1.13.1/jquery-ui.min.js"></script> <script src="/js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script> <script src="/js/tablesort.min.js"></script> <script src="/js/selectize.js"></script> <script src="https://kit.fontawesome.com/688ce23241.js"></script> <script src="https://code.iconify.design/1/1.0.0/iconify.min.js"></script> <script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.js"></script> <script src="https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/Leaflet.fullscreen.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/leaflet.locatecontrol@0.79.0/dist/L.Control.Locate.min.js"></script>
<script src="/js/main.js?v=1736164026"></script>
</head>
<body onscroll="bodyScroll();">
<button onclick="topFunction()" class="w3-button w3-blue w3-hover-teal" id="goTopBtn" title="Go to top"><i class="fas fa-arrow-up"></i></button>
<div class="main-container">
<div class="main-content">
<style>
.switch-field {
display: flex;
margin-bottom: 10px;
overflow: hidden;
}
.switch-field input {
position: absolute !important;
clip: rect(0, 0, 0, 0);
height: 1px;
width: 1px;
border: 0;
overflow: hidden;
}
.switch-field label {
background-color: #e4e4e4;
color: rgba(0, 0, 0, 0.6);
font-size: 14px;
line-height: 1;
text-align: center;
padding: 8px 16px;
/* margin-right: -1px; */
width: 100%;
border: 1px solid rgba(0, 0, 0, 0.2);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
transition: all 0.1s ease-in-out;
}
.switch-field label:hover {
cursor: pointer;
}
.switch-field input:checked+label {
background-color: #6abf6f;
color: white;
box-shadow: none;
}
.switch-field label:first-of-type {
border-radius: 4px 0 0 4px;
}
.switch-field label:last-of-type {
border-radius: 0 4px 4px 0;
}
.hidden-input {
position: absolute !important;
clip: rect(0, 0, 0, 0);
height: 1px;
width: 1px;
border: 0;
overflow: hidden;
}
</style>
<div class="w3-card-4 w3-modal-content" style="margin-top: 40px; max-width:400px">
<div class="w3-bar w3-theme-d2 w3-left-align w3-large">
<div class="w3-dropdown-hover w3-right">
<a href="#" class="w3-hover-white w3-theme-d2 w3-button w3-padding-large"><i class="fa fa-language" title="Language"></i></a>
<div style="width:auto;right: 0;" class="w3-dropdown-content w3-large w3-bar-block w3-card-4">
<a href="#" onclick="setLang('zh')" class="w3-bar-item w3-button "><i class="famfamfam-flag-cn"></i> Chinese</a>
<a href="#" onclick="setLang('en')" class="w3-bar-item w3-rightbar w3-border-blue w3-button bold"><i class="famfamfam-flag-gb"></i> English</a>
<a href="#" onclick="setLang('fi')" class="w3-bar-item w3-button "><i class="famfamfam-flag-fi"></i> Finnish</a>
<a href="#" onclick="setLang('lv')" class="w3-bar-item w3-button "><i class="famfamfam-flag-lv"></i> Latvian</a>
<a href="#" onclick="setLang('no')" class="w3-bar-item w3-button "><i class="famfamfam-flag-no"></i> Norwegian</a>
<a href="#" onclick="setLang('pl')" class="w3-bar-item w3-button "><i class="famfamfam-flag-pl"></i> Polish</a>
<a href="#" onclick="setLang('pt')" class="w3-bar-item w3-button "><i class="famfamfam-flag-pt"></i> Portuguese</a>
<a href="#" onclick="setLang('sv')" class="w3-bar-item w3-button "><i class="famfamfam-flag-se"></i> Swedish</a>
<a href="#" onclick="setLang('tr')" class="w3-bar-item w3-button "><i class="famfamfam-flag-tr"></i> Turkish</a>
<a href="#" onclick="setLang('uk')" class="w3-bar-item w3-button "><i class="famfamfam-flag-ua"></i> Ukrainian</a>
</div>
</div>
</div>
<div class="w3-center"><br>
<img src="/img/s2p_logo_forgot.png" alt="Avatar" style="width:90%">
</div>
<form method="post" accept-charset="utf-8" class="w3-container" action="/users/forgot"><div style="display:none;"><input type="hidden" name="_method" value="POST"/><input type="hidden" name="_csrfToken" autocomplete="off" value="6cbce3d4af554045386cfa368c4ca8e3767ba8f7afd3df7d1ed3a57f13d8b119b608064dcff89fd694917a0fe8ea68dc36d73570c506dcb6f865db1c673bfb52"/></div>
<h2>Account Recovery</h2>
<label>Recover with</label>
<div class="switch-field">
<input type="radio" name="switch_report" value="0" id="switch-report-0" checked>
<label for="switch-report-0">Username</label>
<input type="radio" name="switch_report" value="1" id="switch-report-1">
<label for="switch-report-1">E-mail</label>
</div>
<div class="w3-section">
<div id="username">
<div class="input text required"><label for="username">Username</label><input type="text" name="username" class="w3-input w3-border w3-margin-bottom" required="required" placeholder="Enter Username" id="username"/></div> </div>
<div id="email" style="display:none;">
<div class="input email"><label for="email">E-mail</label><input type="email" name="email" class="w3-input w3-border w3-margin-bottom" placeholder="Enter E-mail address" id="email"/></div> </div>
<button class="w3-button w3-block w3-green w3-section w3-padding" type="submit">Request</button> </div>
</form>
<div class="w3-container w3-border-top w3-padding-16 w3-light-grey">
<span class="w3-left w3-padding"><a href="/users/register">Register</a></span>
<span class="w3-right w3-padding"><a href="/users/login">Login</a></span>
</div>
</div>
<script>
var rad = document.getElementsByName("switch_report");
for (var i = 0; i < rad.length; i++) {
rad[i].addEventListener('change', function() {
if (this.value == 1) {
$("#username").hide();
$("#username").find('input').attr('required', false);
$("#email").show();
$("#email").find('input').attr('required', true);
} else {
$("#username").show();
$("#username").find('input').attr('required', true);
$("#email").hide();
$("#email").find('input').attr('required', false);
}
});
}
</script>
<div class="context-menu" id="device-context-menu" style="display: none;">
<ul>
<li><a href="#" class="remove">Remove</a></li>
<li><a href="#" class="redeem">Give all unredeemed time</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>'
}
$maxBufferLength = (int) 8192
$file = '/home/miko/user_dev/vendor/cakephp/cakephp/src/Error/Debugger.php'
$line = (int) 853
$message = 'Unable to emit headers. Headers sent in file=/home/miko/user_dev/vendor/cakephp/cakephp/src/Error/Debugger.php line=853' Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 48
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40 Warning (2) : Cannot modify header information - headers already sent by (output started at /home/miko/user_dev/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php , line 148 ]Code Context $response -> getStatusCode (),
( $reasonPhrase ? ' ' . $reasonPhrase : '' )
));
$response = object(Cake\Http\Response) {
'status' => (int) 200,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => '<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Users </title>
<link rel="stylesheet" href="/css/normalize.min.css"/> <link rel="stylesheet" href="/css/s2p.css?v=1736164026"/> <link rel="stylesheet" href="/css/main.css?v=1736164026"/> <link rel="stylesheet" href="https://code.jquery.com/ui/1.13.1/themes/base/jquery-ui.css"/> <link rel="stylesheet" href="/css/selectize.css"/> <link rel="stylesheet" href="/css/w3.css"/> <link rel="stylesheet" href="/css/w3-theme-blue.css"/> <link rel="stylesheet" href="/css/./famfamfam-flags.css"/> <link rel="stylesheet" href="/css/./materialdesignicons.min.css"/> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css"/> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.css"/> <link rel="stylesheet" href="https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/leaflet.fullscreen.css"/> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet.locatecontrol@0.79.0/dist/L.Control.Locate.min.css"/>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://code.jquery.com/ui/1.13.1/jquery-ui.min.js"></script> <script src="/js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script> <script src="/js/tablesort.min.js"></script> <script src="/js/selectize.js"></script> <script src="https://kit.fontawesome.com/688ce23241.js"></script> <script src="https://code.iconify.design/1/1.0.0/iconify.min.js"></script> <script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.js"></script> <script src="https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/Leaflet.fullscreen.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/leaflet.locatecontrol@0.79.0/dist/L.Control.Locate.min.js"></script>
<script src="/js/main.js?v=1736164026"></script>
</head>
<body onscroll="bodyScroll();">
<button onclick="topFunction()" class="w3-button w3-blue w3-hover-teal" id="goTopBtn" title="Go to top"><i class="fas fa-arrow-up"></i></button>
<div class="main-container">
<div class="main-content">
<style>
.switch-field {
display: flex;
margin-bottom: 10px;
overflow: hidden;
}
.switch-field input {
position: absolute !important;
clip: rect(0, 0, 0, 0);
height: 1px;
width: 1px;
border: 0;
overflow: hidden;
}
.switch-field label {
background-color: #e4e4e4;
color: rgba(0, 0, 0, 0.6);
font-size: 14px;
line-height: 1;
text-align: center;
padding: 8px 16px;
/* margin-right: -1px; */
width: 100%;
border: 1px solid rgba(0, 0, 0, 0.2);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
transition: all 0.1s ease-in-out;
}
.switch-field label:hover {
cursor: pointer;
}
.switch-field input:checked+label {
background-color: #6abf6f;
color: white;
box-shadow: none;
}
.switch-field label:first-of-type {
border-radius: 4px 0 0 4px;
}
.switch-field label:last-of-type {
border-radius: 0 4px 4px 0;
}
.hidden-input {
position: absolute !important;
clip: rect(0, 0, 0, 0);
height: 1px;
width: 1px;
border: 0;
overflow: hidden;
}
</style>
<div class="w3-card-4 w3-modal-content" style="margin-top: 40px; max-width:400px">
<div class="w3-bar w3-theme-d2 w3-left-align w3-large">
<div class="w3-dropdown-hover w3-right">
<a href="#" class="w3-hover-white w3-theme-d2 w3-button w3-padding-large"><i class="fa fa-language" title="Language"></i></a>
<div style="width:auto;right: 0;" class="w3-dropdown-content w3-large w3-bar-block w3-card-4">
<a href="#" onclick="setLang('zh')" class="w3-bar-item w3-button "><i class="famfamfam-flag-cn"></i> Chinese</a>
<a href="#" onclick="setLang('en')" class="w3-bar-item w3-rightbar w3-border-blue w3-button bold"><i class="famfamfam-flag-gb"></i> English</a>
<a href="#" onclick="setLang('fi')" class="w3-bar-item w3-button "><i class="famfamfam-flag-fi"></i> Finnish</a>
<a href="#" onclick="setLang('lv')" class="w3-bar-item w3-button "><i class="famfamfam-flag-lv"></i> Latvian</a>
<a href="#" onclick="setLang('no')" class="w3-bar-item w3-button "><i class="famfamfam-flag-no"></i> Norwegian</a>
<a href="#" onclick="setLang('pl')" class="w3-bar-item w3-button "><i class="famfamfam-flag-pl"></i> Polish</a>
<a href="#" onclick="setLang('pt')" class="w3-bar-item w3-button "><i class="famfamfam-flag-pt"></i> Portuguese</a>
<a href="#" onclick="setLang('sv')" class="w3-bar-item w3-button "><i class="famfamfam-flag-se"></i> Swedish</a>
<a href="#" onclick="setLang('tr')" class="w3-bar-item w3-button "><i class="famfamfam-flag-tr"></i> Turkish</a>
<a href="#" onclick="setLang('uk')" class="w3-bar-item w3-button "><i class="famfamfam-flag-ua"></i> Ukrainian</a>
</div>
</div>
</div>
<div class="w3-center"><br>
<img src="/img/s2p_logo_forgot.png" alt="Avatar" style="width:90%">
</div>
<form method="post" accept-charset="utf-8" class="w3-container" action="/users/forgot"><div style="display:none;"><input type="hidden" name="_method" value="POST"/><input type="hidden" name="_csrfToken" autocomplete="off" value="6cbce3d4af554045386cfa368c4ca8e3767ba8f7afd3df7d1ed3a57f13d8b119b608064dcff89fd694917a0fe8ea68dc36d73570c506dcb6f865db1c673bfb52"/></div>
<h2>Account Recovery</h2>
<label>Recover with</label>
<div class="switch-field">
<input type="radio" name="switch_report" value="0" id="switch-report-0" checked>
<label for="switch-report-0">Username</label>
<input type="radio" name="switch_report" value="1" id="switch-report-1">
<label for="switch-report-1">E-mail</label>
</div>
<div class="w3-section">
<div id="username">
<div class="input text required"><label for="username">Username</label><input type="text" name="username" class="w3-input w3-border w3-margin-bottom" required="required" placeholder="Enter Username" id="username"/></div> </div>
<div id="email" style="display:none;">
<div class="input email"><label for="email">E-mail</label><input type="email" name="email" class="w3-input w3-border w3-margin-bottom" placeholder="Enter E-mail address" id="email"/></div> </div>
<button class="w3-button w3-block w3-green w3-section w3-padding" type="submit">Request</button> </div>
</form>
<div class="w3-container w3-border-top w3-padding-16 w3-light-grey">
<span class="w3-left w3-padding"><a href="/users/register">Register</a></span>
<span class="w3-right w3-padding"><a href="/users/login">Login</a></span>
</div>
</div>
<script>
var rad = document.getElementsByName("switch_report");
for (var i = 0; i < rad.length; i++) {
rad[i].addEventListener('change', function() {
if (this.value == 1) {
$("#username").hide();
$("#username").find('input').attr('required', false);
$("#email").show();
$("#email").find('input').attr('required', true);
} else {
$("#username").show();
$("#username").find('input').attr('required', true);
$("#email").hide();
$("#email").find('input').attr('required', false);
}
});
}
</script>
<div class="context-menu" id="device-context-menu" style="display: none;">
<ul>
<li><a href="#" class="remove">Remove</a></li>
<li><a href="#" class="redeem">Give all unredeemed time</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>'
}
$reasonPhrase = 'OK' header - [internal], line ??
Cake\Http\ResponseEmitter::emitStatusLine() - CORE/src/Http/ResponseEmitter.php, line 148
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 54
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40 Warning (2) : Cannot modify header information - headers already sent by (output started at /home/miko/user_dev/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php , line 177 ]Code Context foreach ( $values as $value ) {
header ( sprintf (
'%s: %s' ,
$response = object(Cake\Http\Response) {
'status' => (int) 200,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => '<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Users </title>
<link rel="stylesheet" href="/css/normalize.min.css"/> <link rel="stylesheet" href="/css/s2p.css?v=1736164026"/> <link rel="stylesheet" href="/css/main.css?v=1736164026"/> <link rel="stylesheet" href="https://code.jquery.com/ui/1.13.1/themes/base/jquery-ui.css"/> <link rel="stylesheet" href="/css/selectize.css"/> <link rel="stylesheet" href="/css/w3.css"/> <link rel="stylesheet" href="/css/w3-theme-blue.css"/> <link rel="stylesheet" href="/css/./famfamfam-flags.css"/> <link rel="stylesheet" href="/css/./materialdesignicons.min.css"/> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css"/> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.css"/> <link rel="stylesheet" href="https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/leaflet.fullscreen.css"/> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet.locatecontrol@0.79.0/dist/L.Control.Locate.min.css"/>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://code.jquery.com/ui/1.13.1/jquery-ui.min.js"></script> <script src="/js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script> <script src="/js/tablesort.min.js"></script> <script src="/js/selectize.js"></script> <script src="https://kit.fontawesome.com/688ce23241.js"></script> <script src="https://code.iconify.design/1/1.0.0/iconify.min.js"></script> <script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.js"></script> <script src="https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/Leaflet.fullscreen.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/leaflet.locatecontrol@0.79.0/dist/L.Control.Locate.min.js"></script>
<script src="/js/main.js?v=1736164026"></script>
</head>
<body onscroll="bodyScroll();">
<button onclick="topFunction()" class="w3-button w3-blue w3-hover-teal" id="goTopBtn" title="Go to top"><i class="fas fa-arrow-up"></i></button>
<div class="main-container">
<div class="main-content">
<style>
.switch-field {
display: flex;
margin-bottom: 10px;
overflow: hidden;
}
.switch-field input {
position: absolute !important;
clip: rect(0, 0, 0, 0);
height: 1px;
width: 1px;
border: 0;
overflow: hidden;
}
.switch-field label {
background-color: #e4e4e4;
color: rgba(0, 0, 0, 0.6);
font-size: 14px;
line-height: 1;
text-align: center;
padding: 8px 16px;
/* margin-right: -1px; */
width: 100%;
border: 1px solid rgba(0, 0, 0, 0.2);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
transition: all 0.1s ease-in-out;
}
.switch-field label:hover {
cursor: pointer;
}
.switch-field input:checked+label {
background-color: #6abf6f;
color: white;
box-shadow: none;
}
.switch-field label:first-of-type {
border-radius: 4px 0 0 4px;
}
.switch-field label:last-of-type {
border-radius: 0 4px 4px 0;
}
.hidden-input {
position: absolute !important;
clip: rect(0, 0, 0, 0);
height: 1px;
width: 1px;
border: 0;
overflow: hidden;
}
</style>
<div class="w3-card-4 w3-modal-content" style="margin-top: 40px; max-width:400px">
<div class="w3-bar w3-theme-d2 w3-left-align w3-large">
<div class="w3-dropdown-hover w3-right">
<a href="#" class="w3-hover-white w3-theme-d2 w3-button w3-padding-large"><i class="fa fa-language" title="Language"></i></a>
<div style="width:auto;right: 0;" class="w3-dropdown-content w3-large w3-bar-block w3-card-4">
<a href="#" onclick="setLang('zh')" class="w3-bar-item w3-button "><i class="famfamfam-flag-cn"></i> Chinese</a>
<a href="#" onclick="setLang('en')" class="w3-bar-item w3-rightbar w3-border-blue w3-button bold"><i class="famfamfam-flag-gb"></i> English</a>
<a href="#" onclick="setLang('fi')" class="w3-bar-item w3-button "><i class="famfamfam-flag-fi"></i> Finnish</a>
<a href="#" onclick="setLang('lv')" class="w3-bar-item w3-button "><i class="famfamfam-flag-lv"></i> Latvian</a>
<a href="#" onclick="setLang('no')" class="w3-bar-item w3-button "><i class="famfamfam-flag-no"></i> Norwegian</a>
<a href="#" onclick="setLang('pl')" class="w3-bar-item w3-button "><i class="famfamfam-flag-pl"></i> Polish</a>
<a href="#" onclick="setLang('pt')" class="w3-bar-item w3-button "><i class="famfamfam-flag-pt"></i> Portuguese</a>
<a href="#" onclick="setLang('sv')" class="w3-bar-item w3-button "><i class="famfamfam-flag-se"></i> Swedish</a>
<a href="#" onclick="setLang('tr')" class="w3-bar-item w3-button "><i class="famfamfam-flag-tr"></i> Turkish</a>
<a href="#" onclick="setLang('uk')" class="w3-bar-item w3-button "><i class="famfamfam-flag-ua"></i> Ukrainian</a>
</div>
</div>
</div>
<div class="w3-center"><br>
<img src="/img/s2p_logo_forgot.png" alt="Avatar" style="width:90%">
</div>
<form method="post" accept-charset="utf-8" class="w3-container" action="/users/forgot"><div style="display:none;"><input type="hidden" name="_method" value="POST"/><input type="hidden" name="_csrfToken" autocomplete="off" value="6cbce3d4af554045386cfa368c4ca8e3767ba8f7afd3df7d1ed3a57f13d8b119b608064dcff89fd694917a0fe8ea68dc36d73570c506dcb6f865db1c673bfb52"/></div>
<h2>Account Recovery</h2>
<label>Recover with</label>
<div class="switch-field">
<input type="radio" name="switch_report" value="0" id="switch-report-0" checked>
<label for="switch-report-0">Username</label>
<input type="radio" name="switch_report" value="1" id="switch-report-1">
<label for="switch-report-1">E-mail</label>
</div>
<div class="w3-section">
<div id="username">
<div class="input text required"><label for="username">Username</label><input type="text" name="username" class="w3-input w3-border w3-margin-bottom" required="required" placeholder="Enter Username" id="username"/></div> </div>
<div id="email" style="display:none;">
<div class="input email"><label for="email">E-mail</label><input type="email" name="email" class="w3-input w3-border w3-margin-bottom" placeholder="Enter E-mail address" id="email"/></div> </div>
<button class="w3-button w3-block w3-green w3-section w3-padding" type="submit">Request</button> </div>
</form>
<div class="w3-container w3-border-top w3-padding-16 w3-light-grey">
<span class="w3-left w3-padding"><a href="/users/register">Register</a></span>
<span class="w3-right w3-padding"><a href="/users/login">Login</a></span>
</div>
</div>
<script>
var rad = document.getElementsByName("switch_report");
for (var i = 0; i < rad.length; i++) {
rad[i].addEventListener('change', function() {
if (this.value == 1) {
$("#username").hide();
$("#username").find('input').attr('required', false);
$("#email").show();
$("#email").find('input').attr('required', true);
} else {
$("#username").show();
$("#username").find('input').attr('required', true);
$("#email").hide();
$("#email").find('input').attr('required', false);
}
});
}
</script>
<div class="context-menu" id="device-context-menu" style="display: none;">
<ul>
<li><a href="#" class="remove">Remove</a></li>
<li><a href="#" class="redeem">Give all unredeemed time</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>'
}
$cookies = [
'csrfToken' => [
'name' => 'csrfToken',
'value' => '6cbce3d4af554045386cfa368c4ca8e3767ba8f7afd3df7d1ed3a57f13d8b119b608064dcff89fd694917a0fe8ea68dc36d73570c506dcb6f865db1c673bfb52',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
],
'language' => [
'name' => 'language',
'value' => 'en',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => false,
'expire' => '1769039589'
]
]
$values = [
(int) 0 => 'text/html; charset=UTF-8'
]
$name = 'Content-Type'
$first = true
$value = 'text/html; charset=UTF-8' header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 177
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40 Warning (2) : Cannot modify header information - headers already sent by (output started at /home/miko/user_dev/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php , line 206 ]Code Context $cookie [ 'secure' ],
$cookie [ 'httpOnly' ]
);
$cookies = [
'csrfToken' => [
'name' => 'csrfToken',
'value' => '6cbce3d4af554045386cfa368c4ca8e3767ba8f7afd3df7d1ed3a57f13d8b119b608064dcff89fd694917a0fe8ea68dc36d73570c506dcb6f865db1c673bfb52',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
],
'language' => [
'name' => 'language',
'value' => 'en',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => false,
'expire' => '1769039589'
]
]
$cookie = [
'name' => 'csrfToken',
'value' => '6cbce3d4af554045386cfa368c4ca8e3767ba8f7afd3df7d1ed3a57f13d8b119b608064dcff89fd694917a0fe8ea68dc36d73570c506dcb6f865db1c673bfb52',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
] setcookie - [internal], line ??
Cake\Http\ResponseEmitter::emitCookies() - CORE/src/Http/ResponseEmitter.php, line 206
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 186
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40 Warning (2) : Cannot modify header information - headers already sent by (output started at /home/miko/user_dev/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php , line 206 ]Code Context $cookie [ 'secure' ],
$cookie [ 'httpOnly' ]
);
$cookies = [
'csrfToken' => [
'name' => 'csrfToken',
'value' => '6cbce3d4af554045386cfa368c4ca8e3767ba8f7afd3df7d1ed3a57f13d8b119b608064dcff89fd694917a0fe8ea68dc36d73570c506dcb6f865db1c673bfb52',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
],
'language' => [
'name' => 'language',
'value' => 'en',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => false,
'expire' => '1769039589'
]
]
$cookie = [
'name' => 'language',
'value' => 'en',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => false,
'expire' => '1769039589'
] setcookie - [internal], line ??
Cake\Http\ResponseEmitter::emitCookies() - CORE/src/Http/ResponseEmitter.php, line 206
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 186
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40
Users