mirror of
https://github.com/sabnzbd/sabnzbd.git
synced 2026-09-22 10:55:33 -04:00
* Add a session store that keeps web-UI logins in the admin folder * Authenticate the web interface with session cookies and CSRF tokens * Stop embedding the apikey in the web interface * Cover the session, CSRF and apikey changes
44 lines
2.3 KiB
HTML
44 lines
2.3 KiB
HTML
<!--#include $webdir + "/inc_top.tmpl"#-->
|
|
<form action="$url('wizard/one')" method="post">
|
|
<input type="hidden" name="csrf_token" value="$csrf_token" />
|
|
<div class="container">
|
|
<div id="inner">
|
|
<div id="content" class="bigger">
|
|
<div id="rightGreyText">$T('wizard-version') $version</div>
|
|
<h1>$T('wizard-quickstart')</h1>
|
|
<hr />
|
|
<div class="bigger">
|
|
<h3>$T('opt-language')</h3>
|
|
$T('explain-language')<br /><br />
|
|
<div class="main-container">
|
|
<!--#for $l, $language in $languages#-->
|
|
<label class="language">
|
|
$language<br />
|
|
<input type="radio" name="lang" id="$l" value="$l" <!--#if $active_lang == $l then 'checked="checked"' else ''#--> />
|
|
</label>
|
|
<!--#end for#-->
|
|
<!--#if not $languages#-->
|
|
<hr>
|
|
No language files detected. Please run <code>python tools/make_mo.py</code> once and restart SABnzbd, or contact your package provider.
|
|
<!--#end if#-->
|
|
<div class="spacer"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<hr />
|
|
<div class="row">
|
|
<div class="col-md-4 text-center">
|
|
<button class="btn btn-danger" type="submit" form="shutdown-form"><span class="glyphicon glyphicon-remove"></span> $T('wizard-exit')</button>
|
|
</div>
|
|
<div class="col-md-4 text-center">
|
|
<a class="btn btn-default" href="$url('config/general#config_backup_file')"><span class="glyphicon glyphicon-open"></span> $T('restore-backup')</a>
|
|
</div>
|
|
<div class="col-md-4 text-center">
|
|
<button class="btn btn-default">$T('wizard-start') <span class="glyphicon glyphicon-chevron-right"></span></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<form id="shutdown-form" method="post" action="$url('shutdown')"><input type="hidden" name="csrf_token" value="$csrf_token" /></form>
|
|
<!--#include $webdir + "/inc_bottom.tmpl"#--> |