add_supermaster.php
changeset 126 cb06e3e29ed8
parent 119 f74e4f88b680
equal deleted inserted replaced
125:700a3674b72e 126:cb06e3e29ed8
    24 
    24 
    25 $master_ip = $_POST["master_ip"];
    25 $master_ip = $_POST["master_ip"];
    26 $ns_name = $_POST["ns_name"];
    26 $ns_name = $_POST["ns_name"];
    27 $account = $_POST["account"];
    27 $account = $_POST["account"];
    28 
    28 
    29 (verify_permission(supermaster_add)) ? $supermasters_add = "1" :  $supermasters_add = "0";
    29 (verify_permission('supermaster_add')) ? $supermasters_add = "1" :  $supermasters_add = "0";
    30 
    30 
    31 if($_POST["submit"])
    31 if($_POST["submit"])
    32 {
    32 {
    33 	if (add_supermaster($master_ip, $ns_name, $account)) {
    33 	if (add_supermaster($master_ip, $ns_name, $account)) {
    34 		success(SUC_SM_ADD);
    34 		success(SUC_SM_ADD);