| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | | $app->auth->check_security_permissions('admin_allow_osupdate'); |
| | | |
| | | //* This is only allowed for administrators |
| | | if(!$app->auth->is_admin()) die('only allowed for administrators.'); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_remote_action.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | |
| | | /* |
| | | * We need a list of all Servers |
| | |
| | | } |
| | | foreach ($servers as $serverId) { |
| | | $sql = "INSERT INTO sys_remoteaction (server_id, tstamp, action_type, action_param, action_state, response) " . |
| | | "VALUES (". |
| | | (int)$serverId . ", " . |
| | | time() . ", " . |
| | | "'os_update', " . |
| | | "'', " . |
| | | "'pending', " . |
| | | "''" . |
| | | ")"; |
| | | "VALUES (". |
| | | $app->functions->intval($serverId) . ", " . |
| | | time() . ", " . |
| | | "'os_update', " . |
| | | "'', " . |
| | | "'pending', " . |
| | | "''" . |
| | | ")"; |
| | | $app->db->query($sql); |
| | | } |
| | | $msg = $wb['action_scheduled']; |
| | | } |
| | | |
| | | $app->tpl->setVar('msg',$msg); |
| | | $app->tpl->setVar('msg', $msg); |
| | | |
| | | $app->tpl->setVar($wb); |
| | | |
| | |
| | | $app->tpl->pparse(); |
| | | |
| | | |
| | | ?> |
| | | ?> |