コード例 #1
0
            $bb = explode("#", $aa);
            $query3 = mysql_query("SELECT id FROM {$d} WHERE b_isbn='{$bb['1']}'");
            while ($row3 = mysql_fetch_array($query3)) {
                $id2 = $row3['id'];
                //子集目录id
            }
            mysql_query("DELETE FROM {$f} WHERE {$g}='{$id1}' AND {$h}='{$id2}'");
        }
        mysql_close();
        echo "删除成功";
    }
    switch ($type) {
        case '1':
            DeleteContent($first, "b_category_grade", "grade", "b_category_college", "college", "b_rel_col_grade", "id_category_grade", "id_category_col", $second);
            break;
        case '2':
            DeleteContent($first, "b_category_college", "college", "b_category_major", "major", "b_rel_maj_col", "id_category_col", "id_category_major", $second);
            break;
        case '3':
            DeleteContentBook($first, "b_category_major", "major", "b_product", "b_rel_pro_maj", "id_category_major", "id_product", $second);
            break;
        default:
            break;
    }
} else {
    if ($certain == 'server') {
        echo "对不起你没有权限";
    } else {
        echo "cookie保存到期请重新登录";
    }
}
コード例 #2
0
ファイル: content.php プロジェクト: borisper1/vesi-cms
     break;
 case "ajax-special-file-lister-preview":
     AJAXSpecialFileListerPreview($_POST["path"]);
     break;
 case "ajax-is-orphan":
     IsViewOrphan($connection->real_escape_string($_POST["id"]), $connection->real_escape_string($_POST["parent"]));
     break;
 case "ajax-orphans-views":
     $elements = explode(",", $connection->real_escape_string($_POST["ids"]));
     foreach ($elements as $element) {
         IsViewOrphan($element, $connection->real_escape_string($_POST["parent"]));
     }
     break;
 case "ajax-delete-content":
     $id = $connection->real_escape_string($_POST["id"]);
     DeleteContent($id);
     break;
 case "ajax-new-content":
     NewContent($connection->real_escape_string($_POST["type"]), uniqid());
     break;
 case "ajax-add-content-dialog":
     AddContentDialog();
     break;
 case "ajax-add-content-execute":
     AddContentExecute($connection->real_escape_string($_POST["type"]), $connection->real_escape_string($_POST["id"]));
     break;
 case "footer":
     if (checkPermissionModules("content-footer") === true) {
         DrawFooterGUI();
     } else {
         ModuleAccessDeniedException("content-footer");