<?php require_once '/var/www/connection.php'; $data = new dataClass(); if (isset($_POST['action']) && !empty($_POST['action'])) { $action = $_POST['action']; switch ($action) { case 'changeUsername': $data->changeUsername(); break; case 'changePassword': $data->changePassword(); break; case 'updateNodeName_': $data->updateNodeName_(); break; case 'tableNamesLoad': $data->tableNamesLoad(); break; case 'checkLoadNames': $data->checkLoadNames(); break; case 'server_1_stop': $data->server_1_stop(); break; case 'server_1': $data->server_1(); break; case 'read_log': $data->read_log(); break;