mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-11 13:43:37 +00:00
f3310e29f2
Change improve security with DNS rebinding prevention, set "Allowed browser hostnames" at config/General/Web Interface. Change improve security with cross-site request forgery (xsrf) protection on web forms. Change improve security by sending header flag httponly with cookies Change improve security by sending header flag secure with SSL cookies Change improve test for creating self-signed SSL cert. Change force restart when switching SSL on/off. Change enable Tornado serve_traceback feature. Change PEP8 tweaks.
95 lines
3.4 KiB
Cheetah
95 lines
3.4 KiB
Cheetah
#import sickbeard
|
|
#from sickbeard.common import *
|
|
<% def sg_var(varname, default=False): return getattr(sickbeard, varname, default) %>#slurp#
|
|
<% def sg_str(varname, default=''): return getattr(sickbeard, varname, default) %>#slurp#
|
|
##
|
|
#set global $title = 'Import'
|
|
#set global $header = $title
|
|
#set global $sbPath = '../..'
|
|
#set global $statpath = '../..'
|
|
#set global $topmenu = 'home'
|
|
#set global $page_body_attr = 'import-shows"'
|
|
##
|
|
#import os.path
|
|
#include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_top.tmpl')
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
<!--
|
|
var config = { sortArticle: #echo ['!1','!0'][$sg_var('SORT_ARTICLE')]# }
|
|
\$.sgSid = '$kwargs.get('sid', '')';
|
|
\$.sgHashDir = '$kwargs.get('hash_dir', '')';
|
|
\$(document).ready(function(){
|
|
\$('#tabs').tabs({ collapsible: !0, selected: #echo ('0', '-1')[any($sg_str('ROOT_DIRS'))]# });
|
|
});
|
|
//-->
|
|
</script>
|
|
<script type="text/javascript" src="$sbRoot/js/qualityChooser.js?v=$sbPID"></script>
|
|
<script type="text/javascript" src="$sbRoot/js/addExistingShow.js?v=$sbPID"></script>
|
|
<script type="text/javascript" src="$sbRoot/js/rootDirs.js?v=$sbPID"></script>
|
|
<script type="text/javascript" src="$sbRoot/js/addShowOptions.js?v=$sbPID"></script>
|
|
|
|
#if $varExists('header')
|
|
<h1 class="header">$header</h1>
|
|
#else
|
|
<h1 class="title">$title</h1>
|
|
#end if
|
|
|
|
<image class="preload-image" style="position:absolute;top:-999px" src="$sbRoot/images/loading32#echo ('', '-dark')['dark' == $sg_str('THEME_NAME', 'dark')]#.gif" width="32" height="32" border="0">
|
|
|
|
<h3>Existing show folders</h3>
|
|
<form id="addShowForm" method="post" action="$sbRoot/home/addShows/addNewShow" accept-charset="utf-8">
|
|
$xsrf_form_html
|
|
|
|
<span#if $kwargs.get('hash_dir', None)# class="hide"#end if#>
|
|
<p>Tip: shows are added quicker when usable show nfo and xml metadata is found</p>
|
|
|
|
<p style="margin-top:15px">
|
|
<input type="checkbox" id="promptForSettings" name="promptForSettings" style="vertical-align: top;" />
|
|
<label for="promptForSettings">Enable to change the following options per show, otherwise use these options with all shows added below</label>
|
|
</p>
|
|
|
|
<div id="tabs">
|
|
<ul>
|
|
<li><a href="#tabs-1">Manage parent folders</a></li>
|
|
<li><a href="#tabs-2">Custom options</a></li>
|
|
</ul>
|
|
<div id="tabs-1" class="existingtabs">
|
|
<div style="width: 430px; margin: 0px auto">
|
|
#include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_rootDirs.tmpl')
|
|
</div>
|
|
</div>
|
|
<div id="tabs-2">
|
|
<div class="stepDiv" style="padding-top:25px">
|
|
#include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_addShowOptions.tmpl')
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<br />
|
|
<hr />
|
|
</span>
|
|
|
|
<p>The following parent folder$multi_parents scanned for
|
|
#if not $kwargs.get('hash_dir', None)#existing shows. Toggle a folder to display shows#else#the existing show...#end if#
|
|
</p>
|
|
|
|
<ul id="rootDirStaticList">
|
|
<li></li>
|
|
</ul>
|
|
|
|
#if not $kwargs.get('hash_dir', None)
|
|
<p>shows <span class="boldest">not known</span> to SickGear are listed below...</p>
|
|
#end if
|
|
|
|
<div id="tableDiv"></div>
|
|
|
|
<br />
|
|
#if not $kwargs.get('hash_dir', None)
|
|
<p>If you tried to add a show, arrived here and can't see the folder, then that show may already be in your show list.</p>
|
|
#end if
|
|
|
|
<input class="btn btn-primary" type="button" value="#if $kwargs.get('hash_dir', None)#Redo Search#else#Submit#end if#" id="submitShowDirs" />
|
|
|
|
</form>
|
|
|
|
#include $os.path.join($sg_str('PROG_DIR'), 'gui/slick/interfaces/default/inc_bottom.tmpl')
|