GureWiki > Ezagutza partekatzen / Compartiendo conocimiento
GureWiki: "Ezagutza partekatzen / Compartiendo conocimiento"
Template:@himikel > GetPageSecOpers
    Aurkibidea
    Goibururik ez
    var mPars = {     
      sPageTitle: __request.args.title ?? args.title ?? null,
      nPageId: __request.args.pageid ?? args.pageid ?? null
    };
    
    var sSecOperXPath="//operations";
    var sPageSecUri=Site.Api.."/pages/=Template:@himikel%252FGetPageSec/contents?mode=view&format=xhtml&xpath="..sSecOperXPath.."&authtoken="..user.authtoken;
    if (mPars.sPageTitle!=null)
      let sPageSecUri..="&title="..Uri.Encode(mPars.sPageTitle);
    else if (mPars.nPageId!=null)
      let sPageSecUri..="&pageid="..mPars.nPageId;
      
    var xhPageSec=Web.Html(sPageSecUri);
    //var xhPageSec=Web.Html("http://www.gureweb.net/@api/deki/pages/=Template:@himikel%252FGetPageSec/contents?mode=view&format=xhtml&pageid=1&title="..Uri.Encode(mPars.sPageTitle).."&xpath="..sSecOperXPath.."&authtoken="..user.authtoken);  
    var xPageSecBody=xhPageSec["//body"];
    //var shPageSec=Xml.Html{ doc: xhPageSec, xpath: "//security/permissions.effective/operations" };
    var sPageSec=Xml.Text{ doc: xPageSecBody, xml: true };
    if (String.IndexOf(sPageSec,"[status: 401 (Unauthorized)]")>0)
      Web.Html("Error=401");
    else
      Web.Html(xhPageSec);
    

    Webgune hau MindTouch Core "DekiWiki" software askearekin dabil

    Hemengo edukiak Creative Commons BY-NC-SA baimen baten mende daude