Browse Source

mass acions skeleton

Serghey Rodin 13 years ago
parent
commit
5b7e5ecbfc
2 changed files with 24 additions and 1 deletions
  1. 24 0
      web/mass/web/index.php
  2. 0 1
      web/templates/admin/menu_web.html

+ 24 - 0
web/mass/web/index.php

@@ -0,0 +1,24 @@
+<?php
+// Init
+error_reporting(NULL);
+ob_start();
+session_start();
+include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
+
+//if (!empty($_GET['domain'])) {
+//    $v_username = escapeshellarg($user);
+//    $v_domain = escapeshellarg($_GET['domain']);
+//    exec (VESTA_CMD."v_delete_web_domain ".$v_username." ".$v_domain, $output, $return_var);
+//    if ($return_var != 0) {
+//        $error = implode('<br>', $output);
+//        if (empty($error)) $error = 'Error: vesta did not return any output.';
+//            $_SESSION['error_msg'] = $error;
+//    }
+//    unset($output);
+//}
+echo "<pre>";
+print_r($_POST);
+echo "</pre>";
+
+
+//header("Location: /list/web/");

+ 0 - 1
web/templates/admin/menu_web.html

@@ -21,7 +21,6 @@
         unset($_SESSION['error_msg']);
     }
 ?>
-<form action="/mass-domain/">
 <table class="sub-menu">
 <tr>
     <td width="142px" style="padding: 16px 0 16px 6px">