Conbinejs-1Ozone
var OZONE = function () {};
OZONE.ajax = {
  _callbackArray: new Array(),
  _callbackArrayIndex: 0,
  _javascriptLoadLock: false,
  requestModule: function (d, h, k, a, b) {
    if (!b || !b.noCursorWait) {
      OZONE.visuals.cursorWait()
    }
    if (h == null) {
      h = new Object()
    }
    if (d == null || d == "") {
      d = "Empty"
    }
    h.moduleName = d;
    if (b && b.clearRequestQueue) {
      OZONE.ajax._callbackArray = new Array()
    }
    var j = OZONE.ajax._callbackArrayIndex++;
    OZONE.ajax._callbackArray[j] = {
      callback: k,
      arg: a
    };
    h.callbackIndex = j;
    var f = OZONE.ajax.requestModuleCallback;
    var g = function () {
      var m = OZONE.utils.getCookie("wikidot_token7");
      if (m == null) {
        OZONE.visuals.cursorClear();
        return
      }
      h.wikidot_token7 = m;
      var l = jQuery.param(h);
      YAHOO.util.Connect.asyncRequest("POST", "/ajax-module-connector.php", {
        success: function (r) {
          var o = OZONE.ajax.parseResponse(r.responseText);
          if (o.status == "wrong_token7") {
            alert("wikidot.com security error:\n\nYour authentication token in the request is not valid. Please enable cookies in your browser and try to repeat the action.\n\nIf you see this message on the page not associated with the wikidot.com wiki hosting it probably means an indentity theft attempt or improper use of wikidot.com service.");
            OZONE.visuals.cursorClear();
            return
          }
          if (o.status == "try_again") {
            setTimeout(g, o.time_to_wait * 1000);
            return
          }
          if (OZONE.request && OZONE.request.timestamp && o.CURRENT_TIMESTAMP) {
            OZONE.request.timestamp = o.CURRENT_TIMESTAMP
          }
          var s = o.callbackIndex;
          if (s == null) {
            OZONE.visuals.cursorClear();
            OZONE.dialog.cleanAll()
          }
          if (!OZONE.ajax._callbackArray[s]) {
            return
          }
          var t = OZONE.ajax._callbackArray[s]["callback"];
          if (!t) {
            alert("internal: callback error")
          }
          var n = OZONE.ajax._callbackArray[s]["arg"];
          if (n != null) {
            t(o, n)
          } else {
            t(o)
          }
          if (o.jsInclude != null) {
            for (var q = 0; q < o.jsInclude.length; q++) {
              OZONE.utils.addJavascriptUrl(o.jsInclude[q])
            }
          }
          if (o.cssInclude != null) {
            for (var q = 0; q < o.cssInclude.length; q++) {
              OZONE.utils.addStyleUrl(o.cssInclude[q])
            }
          }
          OZONE.visuals.cursorClear()
        },
        failure: function (n) {
          if ((b && b.ignoreCodeZero && n.status == "0") || !h.action) {} else {
            alert("The ajax request failed. Please check your internet connection or\nreport a bug if the error repeats during your work.\ncode:" + n.status)
          }
          OZONE.visuals.cursorClear();
          OZONE.dialog.cleanAll()
        }
      }, l)
    };
    g()
  },
  parseResponse: function (a) {
    res = JSON.parse(a);
    if (!res) {
      alert(a.replace(/\r?\n/g, " "))
    }
    return res
  },
  requestQuickModule: function (a, f, h) {
    if (f == null) {
      f = new Object()
    }
    if (a == null || a == "") {
      alert("Quick module name empty.")
    }
    var g = OZONE.ajax._callbackArrayIndex++;
    OZONE.ajax._callbackArray[g] = h;
    f.callbackIndex = g;
    var d = JSON.stringify(f);
    var b = OZONE.ajax.requestQuickModuleCallback;
    YAHOO.util.Connect.asyncRequest("POST", "/quickmodule.php?module=" + a, b, d)
  },
  requestQuickModuleCallback: {
    success: function (b) {
      var a = OZONE.ajax.parseResponse(b.responseText);
      var d = a.callbackIndex;
      var f = OZONE.ajax._callbackArray[d];
      f(a)
    },
    failure: function (a) {
      alert("The ajax request failed. Please check your internet connection or\nreport a bug if the error repeats during your work.")
    }
  }
};
特に指定がない限り、このサイトのコンテンツには次のライセンスが適用されます: Creative Commons Attribution-ShareAlike 3.0 License