diff options
author | TomTurnschuh <36013390+TomTurnschuh@users.noreply.github.com> | 2018-08-22 19:21:13 +0300 |
---|---|---|
committer | nacho <nacho@ownyourbits.com> | 2018-09-13 04:57:03 +0300 |
commit | e26a834b63da30904735636b0920ecfb7d0418b0 (patch) | |
tree | 40905512d95c2580a9cf060847ed0475c4c987db /ncp-web | |
parent | 7703cebe27328468d279ff529608fa8707e8b731 (diff) |
Rename DDNS apps so they show up togetherv0.59.7
Diffstat (limited to 'ncp-web')
-rw-r--r-- | ncp-web/ncp-launcher.php | 2 | ||||
-rw-r--r-- | ncp-web/wizard/JS/wizard.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ncp-web/ncp-launcher.php b/ncp-web/ncp-launcher.php index 35fe2f7b..9fca90c4 100644 --- a/ncp-web/ncp-launcher.php +++ b/ncp-web/ncp-launcher.php @@ -95,7 +95,7 @@ else if ( $_POST['action'] == "launch" && $_POST['config'] ) // sanity checks if ( !$_POST['ref'] ) exit( '{ "output": "Invalid request" }' ); - preg_match( '/^[0-9A-Za-z-]+$/' , $_POST['ref'] , $matches ) + preg_match( '/^[0-9A-Za-z_-]+$/' , $_POST['ref'] , $matches ) or exit( '{ "output": "Invalid input" , "token": "' . getCSRFToken() . '" }' ); // CSRF check diff --git a/ncp-web/wizard/JS/wizard.js b/ncp-web/wizard/JS/wizard.js index 8f0c4bbe..0446257c 100644 --- a/ncp-web/wizard/JS/wizard.js +++ b/ncp-web/wizard/JS/wizard.js @@ -247,7 +247,7 @@ $(document).ready(function(){ // Enable FreeDNS step $('#ddns-enable-freedns').on('click', function(){ - launch_action( 'freeDNS', + launch_action( 'DDNS_freeDNS', { "ACTIVE":"yes", "DOMAIN": $("#ddns-domain" ).val(), @@ -269,7 +269,7 @@ $(document).ready(function(){ // Enable noip step $('#ddns-enable-noip').on('click', function(){ - launch_action( 'no-ip', + launch_action( 'DDNS_no-ip', { "ACTIVE":"yes", "DOMAIN": $("#ddns-domain" ).val(), |