summaryrefslogtreecommitdiffstats
path: root/modules-available/rebootcontrol/inc
Commit message (Collapse)AuthorAgeFilesLines
* [rebootcontrol] Fix the "bogus" array to string warningHEADmasterSimon Rettberg2024-03-041-4/+6
| | | | | | | After all it wasn't bogus, but caused by array_unique internally casting everything to string by default, which causes a warning for arrays. Thankfully we have an elephant for figuring out things like this.
* Add function param/return types, fix a lot more phpstorm complaintsSimon Rettberg2023-11-144-35/+35
|
* [rebootcontrol] WOL from Server > WOL from other subnet's clientSimon Rettberg2022-12-051-2/+4
|
* [rebootcontrol] Work around bogus warnings in older PHP versionsSimon Rettberg2022-09-121-1/+4
|
* [rebootcontrol/main] Add subkey column to property_list tableSimon Rettberg2022-07-041-3/+3
| | | | | This makes it easier to reference to list entries that have non-trivial data values, e.g. long json data.
* [rebootcontrol] Fix permission checkSimon Rettberg2022-07-011-3/+3
|
* [rebootcontrol] Pick better variable namesSimon Rettberg2022-05-301-22/+30
|
* [rebootcontrol] Change WakeOnLan task call struct to new formatSimon Rettberg2022-05-241-6/+10
|
* [rebootcontrol] Force type of ByRef param to arraySimon Rettberg2022-05-231-1/+1
|
* FixSimon Rettberg2022-05-211-1/+1
|
* [remoteaccess] Mark locations that have access restrictions in placeSimon Rettberg2022-05-211-4/+6
|
* [rebootcontrol] Optional parameter should default to nullSimon Rettberg2022-05-131-2/+2
| | | | Otherwise, passing an undefined variable results in an error
* [rebootcontrol] Add typesSimon Rettberg2022-05-121-10/+10
|
* [rebootcontrol] Show time of execution for WOL/reboot/shutdownSimon Rettberg2022-05-021-0/+1
|
* [locations/remoteaccess] Add option to veto remoteaccess modeSimon Rettberg2022-04-292-49/+83
| | | | | | | Remoteaccess mode can now be forced to be disabled for individual locations in locations module, either unconditionally, or whenever the openingtimes schedule says the room is open. A reboot will be triggered whenever the room opens/closes to force clients into the proper runmode.
* [rebootcontrol] Add option to override destination broadcast addressSimon Rettberg2022-03-231-3/+16
|
* [rebootcontrol] Adapt do new WakeOnLan taskSimon Rettberg2022-03-091-198/+185Star
|
* [eventlog] Add event filtering and notification systemSimon Rettberg2021-06-251-0/+37
|
* Moderize Database handlingSimon Rettberg2021-05-113-7/+7
| | | | | | | * Auto-convert to utf8mb4_unicode_520_ci * Use foreach instead of while to loop over results * Drop useless statement caching * Keep emulated prepares, as we sometimes loop over nested queries
* [main+Session] Move session from /tmp/ to session tableSimon Rettberg2021-05-111-1/+0Star
|
* [locations/rebootcontrol] Inherit openingtimes for WOL/shutdownSimon Rettberg2021-03-191-30/+202
| | | | | | | | | | The opening times schedule is now inherited to child locations, so it's easy to toggle WOL or shutdown for individual rooms in a building, where you only have to set the opening times once for the entire building. As of now, WOL and shutdown settings are *not* inherited to child locations, as I'm not sure if you always want to inherit those by default. Closes #3710
* [locations/rebootcontrol] Change ENUM constants; display next eventSimon Rettberg2021-03-171-6/+10
|
* [rebootcontrol] Simplify some logic, improve schedulerSimon Rettberg2021-03-171-80/+68Star
|
* [locations/rebootcontrol] FormattingSimon Rettberg2021-03-171-30/+42
|
* [rebootcontrol] Handle scheduler overlapsChristian Hofmaier2021-03-161-39/+73
| | | | | - Overlaps < 5 min are ignored, < 15 triggers reboot - Database: Make 1 line out of 2
* [rebootcontrol] calculate next execution time functionChristian Hofmaier2020-12-221-4/+31
|
* [rebootcontrol] rename scheduler table and associated queriesChristian Hofmaier2020-12-081-12/+12
|
* [locations] Add scheduler to openingtimes modalChristian Hofmaier2020-12-031-0/+58
| | | | | - only load/safe without further functionality - add backend to rebootcontrol
* [rebootcontrol] WOL: Make UDP-Port and c2c discovery configurableSimon Rettberg2020-09-031-0/+9
| | | | | | | | | The port setting only applies to WOL-packets sent from the satellite server. Testing the reachability of client subnets between each other is usually pointless, since a subnet that is reachable from another subnet can also be reached form the satelitte server, unless some fancy firewall rules are in place.
* [rebootcontrol] Cleanup, TODOSimon Rettberg2020-05-151-37/+8Star
|
* [rebootcontrol] wakeMachines(): Return machines that can't be reachedSimon Rettberg2020-04-161-1/+2
| | | | | | | | | | | A clumsy way to return a list of machines we can't wake, since their subnet is not reachable. This is required for the upcoming remoteaccess module, since it needs to know how many machines it could actually wake up. This needs some proper refactoring anyways, but we either need separate functions for building a wakeup plan and actually executing it, or change this method so it takes a binch of machines, but you can specify after how many machines it can actually reach, it should just stop and return.
* [rebootcontrol] Fix indirect subnet to subnet WOLSimon Rettberg2020-03-271-3/+3
| | | | | | | | The query for getting clients that can reach a client in another subnet was broken in that it didn't check for actual reachability from src to dst. Then the wrong array key was accessed when trying to wake clients via this method.
* [rebootcontrol] Fix WOL within same subnetSimon Rettberg2020-02-271-0/+2
|
* [rebootcontrol] Fix WOL via jumphost (missing array index)Simon Rettberg2020-01-241-1/+1
| | | | | Lookup of jumphost depends on the hostid of the jumphost in its according array.
* [rebootcontrol] Try harder to silence notice about ref passingSimon Rettberg2020-01-241-2/+3
| | | | | Only variables should be passed by reference in .../rebootcontrol/inc/rebootcontrol.inc.php on line 295
* [rebootcontrol] Don't pass string "false" to WOL taskSimon Rettberg2020-01-101-2/+2
|
* [rebootcontrol] Only use Session to pass machine list to exec formwolSimon Rettberg2019-12-111-1/+0Star
|
* [statistics/rebootcontrol] Add remote exec UISimon Rettberg2019-12-103-30/+90
|
* [statistics/rebootcontrol] Add WOL button to statistics moduleSimon Rettberg2019-12-072-71/+393
| | | | | * Overhauled task display in rebootcontrol module * Can only add subnets by CIDR now instead of start and end
* [statistics/rebootcontrol] Implement editing subnetSimon Rettberg2019-11-271-1/+5
|
* [rebootcontrol] Start adding WOL functionalitySimon Rettberg2019-11-221-0/+64
|
* [rebootcontrol] Fix NO_SUCH_INSTANCE handlingSimon Rettberg2018-04-251-1/+1
|
* [rebootcontrol] Nicer status list; list of all running jobsSimon Rettberg2018-04-252-7/+62
|
* [rebootcontrol] Try clients first that are known to be onlineSimon Rettberg2018-04-241-2/+2
| | | | | This prevents long delays if a large amount of clients is selected where the majority is offline.
* Fix A LOT of type problems, logic flaws, uninitialized variables etc.Simon Rettberg2017-12-161-1/+0Star
| | | | | Most of them were found by phpstorm, so I put in some time and went through the list, fixing quite a bunch of them.
* [statistics] Introduce state column to get rid of complicated state ↵Simon Rettberg2017-11-281-5/+5
| | | | | | determination This also adds support for the STANDBY state
* [rebootcontrol] Conditional rebuild of config.tgz, proper permissions for ↵Simon Rettberg2017-11-031-1/+5
| | | | authorized_keys
* [rebootcontrol] Move reboot function to helper classSimon Rettberg2017-11-031-0/+30
|
* [rebootcontrol] Don't show clients that haven't been seen for more than 30 daysSimon Rettberg2017-05-111-1/+3
|
* [rebootcontrol] Fix current session display, colors for on/offSimon Rettberg2017-05-091-2/+15
|