找回密码
 注册
广告投放 虚位以待【阿里云】2核2G云新老同享 99元/年,续费同价做网站就用糖果主机-sugarhosts.comJtti.com-新加坡服务器,美国服务器,香港服务器
查看: 278|回复: 3

Triton CMS Website出现错误

[复制链接]
发表于 2008 年 10 月 21 日 23:51:08 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
Install Plugins

                               
登录/注册后可看大图
/* Simple parser for CSS */Editor.Parser = (function() {  var tokenizeCSS = (function() {    function normal(source, setState) {      var ch = source.next();      if (ch == "@") {        source.nextWhile(matcher(/\w/));        return "at";      }      else if (ch == "/" && source.equals("*")) {        setState(inCComment);        return null;      }      else if (ch == "<" && source.equals("!")) {        setState(inSGMLComment);        return null;      }      else if (ch == "=") {        return "compare";      }      else if (source.equals("=") && (ch == "~" || ch == "|")) {        source.next();        return "compare";      }      else if (ch == "\"" || ch == "'") {        setState(inString(ch));        return null;      }      else if (ch == "#") {        source.nextWhile(matcher(/\w/));        return "hash";      }      else if (ch == "!") {        source.nextWhile(matcher(/[ \t]/));        source.nextWhile(matcher(/\w/));        return "important";      }      else if (/\d/.test(ch)) {        source.nextWhile(matcher(/[\w.%]/));        return "unit";      }      else if (/[,.+>*\/]/.test(ch)) {        return "select-op";      }      else if (/[;{}:\[\]]/.test(ch)) {        return "punctuation";      }      else {        source.nextWhile(matcher(/[\w\\\-_]/));        return "identifier";      }    }    function inCComment(source, setState) {      var maybeEnd = false;      while (!source.endOfLine()) {        var ch = source.next();        if (maybeEnd && ch == "/") {          setState(normal);          break;        }        maybeEnd = (ch == "*");      }      return "comment";    }    function inSGMLComment(source, setState) {      var dashes = 0;      while (!source.endOfLine()) {        var ch = source.next();        if (dashes >= 2 && ch == ">") {          setState(normal);          break;        }        dashes = (ch == "-") ? dashes + 1 : 0;      }      return "comment";    }    function inString(quote) {      return function(source, setState) {        var escaped = false;        while (!source.endOfLine()) {          var ch = source.next();          if (ch == quote && !escaped)            break;          escaped = ch == "\\";        }        if (!escaped)          setState(normal);        return "string";      };    }    return function(source, startState) {      return tokenizer(source, startState || normal);    };  })();  function indentCSS(inBraces, inRule) {    return function(nextChars) {      if (!inBraces || /^\}/.test(nextChars)) return 0;      else if (inRule) return 4;      else return 2;    };  }  // This is a very simplistic parser -- since CSS does not really  // nest, it works acceptably well, but some nicer colouroing could  // be provided with a more complicated parser.  function parseCSS(source) {    var tokens = tokenizeCSS(source);    var inBraces = false, inRule = false;    var iter = {      next: function() {        var token = tokens.next(), style = token.style, content = token.content;        if (style == "identifier" && inRule)          token.style = "value";        if (style == "hash")          token.style =  inRule ? "colorcode" : "identifier";        if (content == "\n")          token.indentation = indentCSS(inBraces, inRule);        if (content == "{")          inBraces = true;        else if (content == "}")          inBraces = false;        else if (inBraces && content == ";")          inRule = false;        else if (inBraces && style != "comment" && style != "whitespace")          inRule = true;        return token;      },      copy: function() {        var _inBraces = inBraces, _inRule = inRule, _tokenState = tokens.state;        return function(source) {          tokens = tokenizeCSS(source, _tokenState);          inBraces = _inBraces;          inRule = _inRule;          return iter;        };      }    };    return iter;  }  return {make: parseCSS, electricChars: "}"};})();
Triton CMS Pro has encountered an error in
D:\freehost\czhy6618\web\admin\shelter\plugin_install.php

Undefined variable: p_name (Line 81.)
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
 楼主| 发表于 2008 年 10 月 21 日 23:51:24 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
安装新插件的时候出现
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2008 年 10 月 22 日 01:08:31 | 显示全部楼层
:hug:
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2008 年 10 月 22 日 15:10:09 | 显示全部楼层
呵呵。bug吧。
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|金光论坛

GMT+8, 2025 年 2 月 1 日 22:46 , Processed in 0.028503 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表