Till Brehm
2015-06-03 5af0cfd99a13fda9afad3380b0c50a3428acd299
interface/web/vm/openvz_action.php
@@ -17,6 +17,11 @@
if($vm_id == 0) die('Invalid VM ID');
if(isset($_POST) && count($_POST) > 1) {
   //* CSRF Check
   $app->auth->csrf_token_check();
}
$vm = $app->db->queryOneRecord("SELECT server_id, veid FROM openvz_vm WHERE vm_id = $vm_id");
$veid = $app->functions->intval($vm['veid']);
$server_id = $app->functions->intval($vm['server_id']);
@@ -141,6 +146,11 @@
$app->tpl->setVar($options);
$app->tpl->setVar('error', $error_msg);
//* SET csrf token
$csrf_token = $app->auth->csrf_token_get('openvz_action');
$app->tpl->setVar('_csrf_id',$csrf_token['csrf_id']);
$app->tpl->setVar('_csrf_key',$csrf_token['csrf_key']);
$app->tpl_defaults();
$app->tpl->pparse();