getURL() . '#plugins' : $_REQUEST['redir']; # -- Get settings -- $core->blog->settings->addNamespace('tweakStores'); $s = $core->blog->settings->tweakStores; $tweakStores_active = $s->active; $tweakStores_packman = $s->packman; $tweakStores_file_pattern = $s->file_pattern; # -- Set settings -- if (!empty($_POST['save'])) { try { $tweakStores_active = !empty($_POST['tweakStores_active']); $tweakStores_packman = !empty($_POST['tweakStores_packman']); $tweakStores_file_pattern = $_POST['tweakStores_file_pattern']; $s->put('active', $tweakStores_active); $s->put('packman', $tweakStores_packman); $s->put('file_pattern', $tweakStores_file_pattern); dcPage::addSuccessNotice( __('Configuration has been successfully updated.') ); http::redirect( $list->getURL('module=tweakStores&conf=1&redir=' . $list->getRedir()) ); } catch (Exception $e) { $core->error->add($e->getMessage()); } } # -- Display form -- echo '

' . __('Tweak store') . '

' . __('If enabled, new tab "Tweak stores" allows your to perfom actions relative to third-party repositories.') .'

' . __('If enabled, plugin pacKman will (re)generate on the fly dcstore.xml file at root directory of the module.') .'

' . __('You can use widcard like %author%, %type%, %id%, %version%.') . '
' . __('For example on github https://github.com/MyGitName/%id%/releases/download/v%version%/%type%-%id%.zip') . '
' . __('Note: on github, you must create a release and join to it the module zip file.') . '

';