add new feature: import/export of settings
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
26
templates/Sparkle/admin/settings/importexport/index.tpl
vendored
Normal file
26
templates/Sparkle/admin/settings/importexport/index.tpl
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
$header
|
||||
<article>
|
||||
<header>
|
||||
<h2>
|
||||
<img src="templates/{$theme}/assets/img/icons/settings_big.png" alt="" />
|
||||
{$lng['admin']['configfiles']['importexport']}
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
<section>
|
||||
<a href="{$linker->getLink(array('section' => 'settings', 'page' => $page, 'action' => 'export'))}">
|
||||
<input class="yesbutton" type="button" value="Download/Export {$lng['admin']['serversettings']}" />
|
||||
</a>
|
||||
</section>
|
||||
<br><br>
|
||||
<section>
|
||||
<form action="{$linker->getLink(array('section' => 'settings', 'page' => $page, 'action' => 'import'))}" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
|
||||
<input type="file" name="import_file" id="import_file" placeholder="Chose file for import" />
|
||||
<input type="submit" value="Import">
|
||||
</form>
|
||||
</section>
|
||||
</article>
|
||||
$footer
|
||||
@@ -3,7 +3,8 @@
|
||||
<h2>
|
||||
<img src="templates/{$theme}/assets/img/icons/settings_big.png" alt="" />
|
||||
{$lng['admin']['serversettings']}
|
||||
[<a href="$filename?page=overview&part=&s=$s">{$lng['admin']['configfiles']['compactoverview']}</a>]
|
||||
[<a href="$filename?page=overview&part=&s=$s">{$lng['admin']['configfiles']['compactoverview']}</a>]
|
||||
[<a href="$filename?page=importexport&s=$s">{$lng['admin']['configfiles']['importexport']}</a>]
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
<h2>
|
||||
<img src="templates/{$theme}/assets/img/icons/settings_big.png" alt="" />
|
||||
{$lng['admin']['serversettings']}
|
||||
[<a href="$filename?page=overview&part=all&s=$s">{$lng['admin']['configfiles']['overview']}</a>]
|
||||
[<a href="$filename?page=overview&part=all&s=$s">{$lng['admin']['configfiles']['overview']}</a>]
|
||||
[<a href="$filename?page=importexport&s=$s">{$lng['admin']['configfiles']['importexport']}</a>]
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user