getURL().'#plugins' : $_REQUEST['redir']; # -- Get settings -- $core->blog->settings->addNamespace('pacKman'); $s = $core->blog->settings->pacKman; $packman_pack_nocomment = $s->packman_pack_nocomment; $packman_pack_overwrite = $s->packman_pack_overwrite; $packman_pack_filename = $s->packman_pack_filename; $packman_secondpack_filename = $s->packman_secondpack_filename; $packman_pack_repository = $s->packman_pack_repository; $packman_pack_excludefiles = $s->packman_pack_excludefiles; # -- Set settings -- if (!empty($_POST['save'])) { try { $packman_pack_nocomment = !empty($_POST['packman_pack_nocomment']); $packman_pack_overwrite = !empty($_POST['packman_pack_overwrite']); $packman_pack_filename = $_POST['packman_pack_filename']; $packman_secondpack_filename = $_POST['packman_secondpack_filename']; $packman_pack_repository = path::real($_POST['packman_pack_repository'], false); $packman_pack_excludefiles = $_POST['packman_pack_excludefiles']; $check = libPackman::is_configured( $core, $packman_pack_repository, $packman_pack_filename, $packman_secondpack_filename ); if ($check) { $s->put('packman_pack_nocomment', $packman_pack_nocomment); $s->put('packman_pack_overwrite', $packman_pack_overwrite); $s->put('packman_pack_filename', $packman_pack_filename); $s->put('packman_secondpack_filename', $packman_secondpack_filename); $s->put('packman_pack_repository', $packman_pack_repository); $s->put('packman_pack_excludefiles', $packman_pack_excludefiles); dcPage::addSuccessNotice( __('Configuration has been successfully updated.') ); http::redirect( $list->getURL('module=pacKman&conf=1&redir='. $list->getRedir()) ); } } catch (Exception $e) { $core->error->add($e->getMessage()); } } # -- Display form -- echo '
'.sprintf(__('Preconization: %s'), $core->blog->public_path ? $core->blog->public_path : __("Blog's public directory") ).'
'.sprintf(__('Preconization: %s'), '%type%-%id%-%version%').'
'.sprintf(__('Preconization: %s'), '%type%-%id%').'
'.sprintf(__('Preconization: %s'), '*.zip,*.tar,*.tar.gz').'