mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 03:01:34 +00:00
37 lines
685 B
PHP
Executable File
37 lines
685 B
PHP
Executable File
<?php
|
|
require_once realpath(__DIR__ . DIRECTORY_SEPARATOR . 'install.php');
|
|
|
|
use nntmux\Install;
|
|
|
|
$page = new InstallPage();
|
|
$page->title = "Save Settings";
|
|
|
|
$cfg = new Install();
|
|
|
|
if (!$cfg->isInitialized()) {
|
|
header("Location: index.php");
|
|
die();
|
|
}
|
|
|
|
$cfg = $cfg->getSession();
|
|
|
|
$cfg->saveConfigCheck = $cfg->saveConfig();
|
|
if ($cfg->saveConfigCheck === false) {
|
|
$cfg->error = true;
|
|
}
|
|
|
|
$cfg->saveLockCheck = $cfg->saveInstallLock();
|
|
if ($cfg->saveLockCheck === false) {
|
|
$cfg->error = true;
|
|
}
|
|
|
|
if (!$cfg->error) {
|
|
$cfg->setSession();
|
|
}
|
|
|
|
$page->smarty->assign('cfg', $cfg);
|
|
$page->smarty->assign('page', $page);
|
|
|
|
$page->content = $page->smarty->fetch('step5.tpl');
|
|
$page->render();
|