File manager - Edit - /home/newsbmcs.com/public_html/static/img/logo/serviceMgr.php.tar
Back
usr/local/CyberCP/lsws-6.2/admin/html/service/serviceMgr.php 0000644 00000004114 15030470770 0017547 0 ustar 00 <?php require_once('../includes/auth.php'); // this will force login $product = PRODUCT::GetInstance(); $act = DUtil::getGoodVal(DUtil::grab_input('request','act')); $actId = DUtil::getGoodVal(DUtil::grab_input('request','actId')); $vl = DUtil::getGoodVal(DUtil::grab_input('request','vl')); $tk = DUtil::getGoodVal(DUtil::grab_input('request','tk')); // validate all inputs $actions = array('', 'restart', 'upgrade', 'switchTo', // restart required 'RESET_ALL_PHP_PROCESSES', 'toggledbg', 'download', 'enable', 'disable', 'remove', 'validatelicense'); $vloptions = array('', '1','2','3','4'); if (!in_array($vl, $vloptions) || !in_array($act, $actions)) { echo "Illegal Entry Point!"; return; // illegal entry } if ($act != '') { if ($tk != CLIENT::singleton()->getToken()) { echo "Illegal Entry Point!"; return; // illegal entry } } $confCenter = ConfCenter::singleton(); $service = new Service(); $service->init(); $service->refreshConf($confCenter->ExportConf()); //check if require restart if ( ($act == 'restart' && $actId == '') || $act == 'switchTo') { header("location:restart.html"); $service->process($act, $actId); return; } elseif ($act == 'upgrade') { if ($service->download($actId)) { header("location:restart.html"); $service->process($act, $actId); return; } else { $error = "Failed to download release $actId! Please try upgrade manually."; } } elseif (in_array($act, array('toggledbg', 'enable', 'disable', 'restart', 'remove', 'validatelicense', 'RESET_ALL_PHP_PROCESSES'))) //other no-restart actions { if ($act == 'disable' || $act == 'enable') { $confCenter->enableDisableVh($act, $actId); } $service->process($act, $actId); } echo GUI::header($service->serv['name']); echo GUI::top_menu(); switch($vl) { case '1': include 'logViewer.php'; break; case '2': include 'realtimeReport.php'; break; case '3': if ($act == 'download') { include 'verMgrDownload.php'; } else { include 'verMgrCont.php'; } break; case '4': include 'realtimeReqReport.php'; break; default: include 'homeCont.php'; break; } echo GUI::footer(); usr/local/lswsbak/admin/html.open/view/serviceMgr.php 0000644 00000001343 15030532336 0016703 0 ustar 00 <?php require_once("inc/auth.php"); $act = UIBase::GrabGoodInput("any",'act'); $actId = UIBase::GrabGoodInput("any",'actId'); switch ($act) { case 'restart': Service::ServiceRequest(SInfo::SREQ_RESTART_SERVER); break; case 'lang': DMsg::SetLang($actId); break; case 'toggledebug': Service::ServiceRequest(SInfo::SREQ_TOGGLE_DEBUG); break; case 'reload': if ($actId != '') { Service::ServiceRequest(SInfo::SREQ_VH_RELOAD, $actId); } break; case 'disable': if ($actId != '') { Service::ServiceRequest(SInfo::SREQ_VH_DISABLE, $actId); } break; case 'enable': if ($actId != '') { Service::ServiceRequest(SInfo::SREQ_VH_ENABLE, $actId); } break; default: error_log("illegal act $act "); }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings