11<?php
2+
23namespace Icinga \Editor ;
34
45/**
@@ -381,7 +382,7 @@ static function stripServiceName($serviceName)
381382 {
382383 return str_replace (' ' , '_ ' ,
383384 preg_replace ('/[^(\s:_\.a-zA-Z0-9)]*/ ' , '' ,
384- EaseSand ::rip ($ serviceName )));
385+ \ Ease \Sand ::rip ($ serviceName )));
385386 }
386387
387388 /**
@@ -395,8 +396,8 @@ public function cfgEnding()
395396 switch ($ this ->platform ) {
396397 case 'windows ' :
397398 $ this ->nscBatArray [] = "\n" .'echo ^<h1^> ' ._ ('Konfigurace hosta ' ).' ' .$ this ->host ->getName ().'^</h1^> >> %ICIEDIT_HTML% ' ;
398- $ this ->nscBatArray [] = "\n" .'echo ^<br^>^<a data-role="editor" href=" ' .Vitexus/icinga_configurator ::getBaseURL ().'host.php?host_id= ' .$ this ->host ->getId ().'"^> ' ._ ('Konfigurace hosta ' ).'^</a^> >> %ICIEDIT_HTML% ' ;
399- $ this ->nscBatArray [] = "\n" .'echo ^<br^>^<a data-role="bat" href=" ' .Vitexus/icinga_configurator ::getBaseURL ().'nscpcfggen.php?host_id= ' .$ this ->host ->getId ().'"^> ' ._ ('Znovu stahnout ' ).' ' .$ this ->host ->getName ().'_nscp.bat ' .'^</a^> >> %ICIEDIT_HTML% ' ;
399+ $ this ->nscBatArray [] = "\n" .'echo ^<br^>^<a data-role="editor" href=" ' .Engine \Configurator ::getBaseURL ().'host.php?host_id= ' .$ this ->host ->getId ().'"^> ' ._ ('Konfigurace hosta ' ).'^</a^> >> %ICIEDIT_HTML% ' ;
400+ $ this ->nscBatArray [] = "\n" .'echo ^<br^>^<a data-role="bat" href=" ' .Engine \Configurator ::getBaseURL ().'nscpcfggen.php?host_id= ' .$ this ->host ->getId ().'"^> ' ._ ('Znovu stahnout ' ).' ' .$ this ->host ->getName ().'_nscp.bat ' .'^</a^> >> %ICIEDIT_HTML% ' ;
400401 $ this ->nscBatArray [] = "\n" .'echo ^<br^>^<a data-role="confirm" href=" ' .$ this ->getCfgConfirmUrl ().'"^> ' ._ ('Potvrzení konfigurace ' ).'^</a^> >> %ICIEDIT_HTML% ' ;
401402 $ this ->nscBatArray [] = "\n" .'echo ^</body^> >> %ICIEDIT_HTML% ' ;
402403 $ this ->nscBatArray [] = "\n" .'echo ^</html^> >> %ICIEDIT_HTML%
@@ -462,7 +463,7 @@ public function getCfg($send = TRUE)
462463
463464 function getCfgConfirmUrl ()
464465 {
465- return Vitexus/icinga_configurator ::getBaseURL ().'cfgconfirm.php?hash= ' .$ this ->host ->getConfigHash ().'&host_id= ' .$ this ->host ->getId ();
466+ return Engine \Configurator ::getBaseURL ().'cfgconfirm.php?hash= ' .$ this ->host ->getConfigHash ().'&host_id= ' .$ this ->host ->getId ();
466467 }
467468
468469 /**
@@ -482,13 +483,13 @@ public function deployScripts()
482483 foreach ($ this ->scriptsToDeploy as $ script_name => $ script_id ) {
483484 switch ($ this ->platform ) {
484485 case 'windows ' :
485- $ this ->nscBatArray [] = "\n" .'echo ^<a data-role="script" href=" ' .Vitexus/icinga_configurator ::getBaseURL ().'scriptget.php?script_id= ' .$ script_id .'"^> ' .$ script_name .'^</a^>^<br^> >> %ICIEDIT_HTML%
486+ $ this ->nscBatArray [] = "\n" .'echo ^<a data-role="script" href=" ' .Engine \Configurator ::getBaseURL ().'scriptget.php?script_id= ' .$ script_id .'"^> ' .$ script_name .'^</a^>^<br^> >> %ICIEDIT_HTML%
486487 ' ;
487488 break ;
488489 case 'linux ' :
489490 $ this ->nscBatArray [] = "\n" .'
490491# ' .$ script_name .'
491- curl " ' .Vitexus/icinga_configurator ::getBaseURL ().'scriptget.php?script_id= ' .$ script_id .'"
492+ curl " ' .Engine \Configurator ::getBaseURL ().'scriptget.php?script_id= ' .$ script_id .'"
492493 ' ;
493494 break ;
494495 default :
0 commit comments