Exemplo n.º 1
0
 public static function getActionSwitchLang($lang)
 {
     return TplApp::getActionRun(Action::SWITCH_LANG, array($lang)) . PHP_EOL . TplAppReload::getActionReload();
 }
Exemplo n.º 2
0
 public static function getActionSwitchPhpExtension($extension, $switch)
 {
     global $neardBins;
     $switch = $switch == ActionSwitchPhpExtension::SWITCH_OFF ? ActionSwitchPhpExtension::SWITCH_ON : ActionSwitchPhpExtension::SWITCH_OFF;
     return TplApp::getActionRun(Action::SWITCH_PHP_EXTENSION, array($extension, $switch)) . PHP_EOL . TplService::getActionRestart(BinApache::SERVICE_NAME) . PHP_EOL . TplAppReload::getActionReload() . PHP_EOL;
 }
 public static function getActionSwitchLogsVerbose($verbose)
 {
     return TplApp::getActionRun(Action::SWITCH_LOGS_VERBOSE, array($verbose)) . PHP_EOL . TplAppReload::getActionReload();
 }
Exemplo n.º 4
0
 public static function getActionRefreshGitReposStartup($scanStartup)
 {
     return TplApp::getActionRun(Action::REFRESH_REPOS_STARTUP, array(ActionRefreshRepos::GIT, $scanStartup)) . PHP_EOL . TplAppReload::getActionReload() . PHP_EOL;
 }
 public static function getActionLaunchStartupMariadb($launchStartup)
 {
     global $neardBins;
     return TplApp::getActionRun(Action::LAUNCH_STARTUP_SERVICE, array($neardBins->getMariadb()->getName(), $launchStartup)) . PHP_EOL . TplAppReload::getActionReload();
 }
 public static function getActionSwitchNodejsVersion($version)
 {
     global $neardBs, $neardCore, $neardBins;
     return TplApp::getActionRun(Action::SWITCH_VERSION, array($neardBins->getNodejs()->getName(), $version)) . PHP_EOL . TplAppReload::getActionReload() . PHP_EOL . TplApp::getActionExec() . PHP_EOL;
 }
Exemplo n.º 7
0
 private static function getSectionMenuRight()
 {
     global $neardLang;
     $tplReload = TplAppReload::process();
     $tplBrowser = TplAppBrowser::process();
     $tplLang = TplAppLang::process();
     $tplLogsVerbose = TplAppLogsVerbose::process();
     $tplLaunchStartup = TplAppLaunchStartup::process();
     $tplExit = TplAppExit::process();
     $tplRestart = TplAppRestart::process();
     return '[Menu.Right]' . PHP_EOL . self::getActionRun(Action::ABOUT, null, array($neardLang->getValue(Lang::MENU_ABOUT), TplAestan::GLYPH_ABOUT)) . PHP_EOL . self::getActionRun(Action::CHECK_VERSION, array(ActionCheckVersion::DISPLAY_OK), array($neardLang->getValue(Lang::MENU_CHECK_UPDATE), TplAestan::GLYPH_UPDATE)) . PHP_EOL . TplAestan::getItemLink($neardLang->getValue(Lang::HELP), APP_GITHUB_HOME) . PHP_EOL . TplAestan::getItemSeparator() . PHP_EOL . $tplReload[self::SECTION_CALL] . PHP_EOL . TplAppClearFolders::process() . PHP_EOL . $tplBrowser[self::SECTION_CALL] . PHP_EOL . TplAestan::getItemConsole($neardLang->getValue(Lang::CONSOLE), TplAestan::GLYPH_CONSOLE) . PHP_EOL . TplAestan::getItemSeparator() . PHP_EOL . $tplLang[self::SECTION_CALL] . PHP_EOL . $tplLogsVerbose[self::SECTION_CALL] . PHP_EOL . $tplLaunchStartup[self::SECTION_CALL] . PHP_EOL . TplAestan::getItemSeparator() . PHP_EOL . $tplRestart[self::SECTION_CALL] . PHP_EOL . $tplExit[self::SECTION_CALL] . PHP_EOL . PHP_EOL . $tplReload[self::SECTION_CONTENT] . PHP_EOL . PHP_EOL . $tplBrowser[self::SECTION_CONTENT] . PHP_EOL . PHP_EOL . $tplLang[self::SECTION_CONTENT] . PHP_EOL . $tplLogsVerbose[self::SECTION_CONTENT] . PHP_EOL . $tplLaunchStartup[self::SECTION_CONTENT] . PHP_EOL . $tplRestart[self::SECTION_CONTENT] . PHP_EOL . $tplExit[self::SECTION_CONTENT] . PHP_EOL;
 }
 public static function getActionSwitchHost($ip, $domain, $enabled)
 {
     $switch = $enabled ? ActionSwitchHost::SWITCH_OFF : ActionSwitchHost::SWITCH_ON;
     return TplApp::getActionRun(Action::SWITCH_HOST, array($ip, $domain, $switch)) . PHP_EOL . TplAppReload::getActionReload() . PHP_EOL;
 }
 public static function getActionLaunchStartup($launchStartup)
 {
     global $neardBins;
     return TplApp::getActionRun(Action::LAUNCH_STARTUP, array($launchStartup)) . PHP_EOL . TplAppReload::getActionReload() . PHP_EOL;
 }
 public static function getActionChangeBrowser()
 {
     return TplApp::getActionRun(Action::CHANGE_BROWSER) . PHP_EOL . TplAppReload::getActionReload();
 }
Exemplo n.º 11
0
 public static function getActionStatus($status)
 {
     global $neardBins;
     return TplApp::getActionRun(Action::SWITCH_ONLINE, array($status)) . PHP_EOL . TplService::getActionRestart(BinApache::SERVICE_NAME) . PHP_EOL . TplService::getActionRestart(BinFilezilla::SERVICE_NAME) . PHP_EOL . TplAppReload::getActionReload() . PHP_EOL;
 }