<% include("language.html") if _SESSION["username"] ~= nil and _SESSION["currentpath"] ~= nil then local operation = _GET["operation"] or _POST["operation"] or "get" if operation == "add" then c_AddBookmark(_SESSION["username"], _SESSION["currentpath"]) elseif operation == "del" then c_DeleteBookmark(_SESSION["username"], _SESSION["currentpath"]) end local liststr = "" local result = c_GetBookmark(_SESSION["username"]) for _,row in pairs(result) do liststr = liststr..row[0].."\n" end print(liststr) else print("session expired") end %>