commit 103c80ab649ae0915c0838c715bcfce3062cadf8 Author: editor <@51Aspx.com> Date: Tue Apr 23 17:18:41 2024 +0800 初始化 diff --git a/51Aspx源码必读.txt b/51Aspx源码必读.txt new file mode 100644 index 0000000..d71b18a --- /dev/null +++ b/51Aspx源码必读.txt @@ -0,0 +1,61 @@ +X2BLOG4.0及X2WEBCONTROLS源码 + +一、源码描述 +环境:VS2022 Access + +二、功能介绍 +一个C#编写的简洁的Ajax版blog系统,开源,多皮肤、Ajax + +增加了后台管理自定义CSS的功能; +增加了评论及留言cookie记录用户信息功能; +从前台到后台完全整合了Fckeditor编辑器; +修复了Firefox下无法使用编辑器的问题; +JavaScript使用了压缩技术,有效缩小了代码体积; +附带JavaScript压缩引擎; +密码不再明文存储,采用MD5加密; +去除了登录时的用户名选项; +去除了多语言选择的功能,现在仅提供中文版; +整理了项目文件,删除了一些无用文件; +修改了本说明文件。 +因为调整比较多,对于原先的用户要升级可能存在一些问题,主要是数据库的转换。 + +默认管理密码:51aspx + +1、登陆 +2、编辑文章 +3、文章管理 +4、评论管理 +5、引用管理 +6、相册管理 +7、系统设置 +8、注销 + +三、注意事项 +1、在项目web.config修改数据库连接字符串。 +2、管理员账号与密码: 51aspx 。 +3、ctrl+F5运行即可。 + + + + + +作者: x2blog + +如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/x2blog +------------------------------------------------------------------------------------------------ + + 源码服务专家 + 官网: https://www.51aspx.com + 讨论圈: https://club.51aspx.com/ + +平台声明: + +1.51Aspx平台上提供下载的资源为免费、共享、商业三类源码,其中免费和共享源码仅供个人学习和研究使用,商业源码请在相应的授权许可条件下使用; +2.51Aspx平台对提供下载的软件及其它资源不拥有任何权利,其版权归属源码合法拥有者所有; +3.著作权人发现本网站载有侵害其合法权益的内容或作品,请与我们联系( 登录官网与客服反馈或发送邮件到support@51Aspx.com ); +4.51Aspx平台不保证提供的下载资源的准确性、安全性和完整性; + +友情提示: + 一般数据库文件默认在 DB_51Aspx 文件夹下 + 默认账号密码一般均为51Aspx + 关于源码使用常见问题及解决方案,请参阅: https://www.51aspx.com/Help diff --git a/AssemblyInfo.cs b/AssemblyInfo.cs new file mode 100644 index 0000000..b104422 --- /dev/null +++ b/AssemblyInfo.cs @@ -0,0 +1,15 @@ +using System.Reflection; +using System.Runtime.CompilerServices; + +// +// �йس��򼯵ij�����Ϣ��ͨ������ +// ���Լ����Ƶġ�������Щ����ֵ���޸������ +// ��������Ϣ�� +// +[assembly: AssemblyTitle("")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("")] +[assembly: AssemblyCopyright("")] +[assembly: AssemblyTrademark("")] diff --git a/Backup1/51aspx源码必读.txt b/Backup1/51aspx源码必读.txt new file mode 100644 index 0000000..d71b18a --- /dev/null +++ b/Backup1/51aspx源码必读.txt @@ -0,0 +1,61 @@ +X2BLOG4.0及X2WEBCONTROLS源码 + +一、源码描述 +环境:VS2022 Access + +二、功能介绍 +一个C#编写的简洁的Ajax版blog系统,开源,多皮肤、Ajax + +增加了后台管理自定义CSS的功能; +增加了评论及留言cookie记录用户信息功能; +从前台到后台完全整合了Fckeditor编辑器; +修复了Firefox下无法使用编辑器的问题; +JavaScript使用了压缩技术,有效缩小了代码体积; +附带JavaScript压缩引擎; +密码不再明文存储,采用MD5加密; +去除了登录时的用户名选项; +去除了多语言选择的功能,现在仅提供中文版; +整理了项目文件,删除了一些无用文件; +修改了本说明文件。 +因为调整比较多,对于原先的用户要升级可能存在一些问题,主要是数据库的转换。 + +默认管理密码:51aspx + +1、登陆 +2、编辑文章 +3、文章管理 +4、评论管理 +5、引用管理 +6、相册管理 +7、系统设置 +8、注销 + +三、注意事项 +1、在项目web.config修改数据库连接字符串。 +2、管理员账号与密码: 51aspx 。 +3、ctrl+F5运行即可。 + + + + + +作者: x2blog + +如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/x2blog +------------------------------------------------------------------------------------------------ + + 源码服务专家 + 官网: https://www.51aspx.com + 讨论圈: https://club.51aspx.com/ + +平台声明: + +1.51Aspx平台上提供下载的资源为免费、共享、商业三类源码,其中免费和共享源码仅供个人学习和研究使用,商业源码请在相应的授权许可条件下使用; +2.51Aspx平台对提供下载的软件及其它资源不拥有任何权利,其版权归属源码合法拥有者所有; +3.著作权人发现本网站载有侵害其合法权益的内容或作品,请与我们联系( 登录官网与客服反馈或发送邮件到support@51Aspx.com ); +4.51Aspx平台不保证提供的下载资源的准确性、安全性和完整性; + +友情提示: + 一般数据库文件默认在 DB_51Aspx 文件夹下 + 默认账号密码一般均为51Aspx + 关于源码使用常见问题及解决方案,请参阅: https://www.51aspx.com/Help diff --git a/Backup1/AssemblyInfo.cs b/Backup1/AssemblyInfo.cs new file mode 100644 index 0000000..b104422 --- /dev/null +++ b/Backup1/AssemblyInfo.cs @@ -0,0 +1,15 @@ +using System.Reflection; +using System.Runtime.CompilerServices; + +// +// �йس��򼯵ij�����Ϣ��ͨ������ +// ���Լ����Ƶġ�������Щ����ֵ���޸������ +// ��������Ϣ�� +// +[assembly: AssemblyTitle("")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("")] +[assembly: AssemblyCopyright("")] +[assembly: AssemblyTrademark("")] diff --git a/Backup1/Global.asax b/Backup1/Global.asax new file mode 100644 index 0000000..9bb85ad --- /dev/null +++ b/Backup1/Global.asax @@ -0,0 +1 @@ +<%@ Application Codebehind="Global.asax.cs" Inherits="x2blog40.Global" %> diff --git a/Backup1/Global.asax.cs b/Backup1/Global.asax.cs new file mode 100644 index 0000000..b8b1e6b --- /dev/null +++ b/Backup1/Global.asax.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections; +using System.ComponentModel; +using System.Web; +using System.Web.SessionState; + +namespace x2blog40 +{ + /// + /// Global ��ժҪ˵���� + /// + public class Global : System.Web.HttpApplication + { + /// + /// ���������������� diff --git a/Backup1/Global.asax.resx b/Backup1/Global.asax.resx new file mode 100644 index 0000000..a76fe8d --- /dev/null +++ b/Backup1/Global.asax.resx @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/Backup1/Readme.htm b/Backup1/Readme.htm new file mode 100644 index 0000000..3ebabca --- /dev/null +++ b/Backup1/Readme.htm @@ -0,0 +1,15 @@ + + + + + Readme-X2Blog + + + + + + +

GNU Lesser General Public License

+ +

Version 2.1, February 1999

+
+

Copyright (C) 1991, 1999 Free Software Foundation, Inc. 59 Temple Place, Suite diff --git a/Backup1/editor/dialog/fck_anchor.html b/Backup1/editor/dialog/fck_anchor.html new file mode 100644 index 0000000..3892060 --- /dev/null +++ b/Backup1/editor/dialog/fck_anchor.html @@ -0,0 +1,15 @@ + +");var val=frag.str.substring(4,close);var thisary=frag.ary.length;frag.ary[thisary]=new _comment();frag.ary[thisary].value=val;frag.str=frag.str.substring(close+3,frag.str.length);return frag;};function _tag_cdata(frag){var close=frag.str.indexOf("]]>");var val=frag.str.substring(9,close);var thisary=frag.ary.length;frag.ary[thisary]=new _chardata();frag.ary[thisary].value=val;frag.str=frag.str.substring(close+3,frag.str.length);return frag;};function _attribution(str){var all=new Array();while(1){var eq=str.indexOf("=");if(str.length==0||eq==-1){return all;};var id1=str.indexOf("\'");var id2=str.indexOf("\"");var ids=new Number();var id=new String();if((id1");str=str.substring(close+2,str.length);};var start=str.indexOf("",start)+1;var dp=str.indexOf("[",start);if(dp",start)+2;};str=str.substring(close,str.length);};return str;};function _strip(str){var A=new Array();A=str.split("\n");str=A.join("");A=str.split(" ");str=A.join("");A=str.split("\t");str=A.join("");return str;};function _normalize(str){var A=new Array();A=str.split("\n");str=A.join(" ");A=str.split("\t");str=A.join(" ");return str;};function _entity(str){var A=new Array();A=str.split("<");str=A.join("<");A=str.split(">");str=A.join(">");A=str.split(""");str=A.join("\"");A=str.split("'");str=A.join("\'");A=str.split("&");str=A.join("&");return str;};var Enum=new Object();function escape2(str){return escape(str).replace(/\+/g,"%2b");};function $se(tag){return document.createElement(tag);};function externalLinks(){if(!document.getElementsByTagName)return;var anchors=document.getElementsByTagName("a");for(var i=0;i/g,">").replace(/\"/g,""").replace(/ /g," ").replace(/\t/g," ").replace(/\n/g,"
");};String.prototype.unescapeHTML2=function(){return this.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"\"").replace(/ /g," ").replace(/
/g,"\n");};String.prototype.trim=function(){return this.replace(/^ +/,"").replace(/ +$/,"");};if(!Array.prototype.exist){Array.prototype.exist=function(k){for(var i=0;ithis.length-1)return;var _temp=this[index];for(var i=index;i";this.spanClose.className="close";this.spanClose.onclick=this.hide.bind(this);this.spanInfo=$se("span");this.spanInfo.className="info";this.box.appendChild(this.spanInfo);this.box.appendChild(this.spanClose);this.timeOutPtr=0;if(this.options.padding)this.box.style.padding=this.options.padding;if(this.options.color)this.box.style.color=this.options.color;if(this.options.backgroundColor)this.box.style.backgroundColor=this.options.bgColor;if(this.options.borderWidth)this.box.style.borderWidth="1px";if(this.options.borderStyle)this.box.style.borderStyle="solid";if(this.options.borderColor)this.box.style.borderColor=this.options.borderColor;if(this.options.marginTop)this.box.style.marginTop=this.options.marginTop;if(this.options.marginRight)this.box.style.marginRight=this.options.marginRight;if(this.options.marginLeft)this.box.style.marginLeft=this.options.marginLeft;if(this.options.marginBottom)this.box.style.marginBottom=this.options.marginBottom;if(this.options.textAlign)this.box.style.textAlign=this.options.textAlign;this.hide();if(this.options.delay>0){this.timeOutPtr=window.setTimeout(this.hide,this.options.delay*1000);}},setText:function(msg,noCloseButton){this.text=msg;this.spanInfo.innerHTML=msg;if(noCloseButton){if(this.box.childNodes.length>1)this.spanClose=this.box.removeChild(this.spanClose);}else{this.box.appendChild(this.spanClose);}},removeAfterSeconds:function(delay){if(!this.removed){if(this.timeOutPtr)window.clearTimeout(this.timeOutPtr);this.timeOutPtr=window.setTimeout(this.remove.bind(this),delay*1000);}},hideAfterSeconds:function(delay){if(this.using){if(this.timeOutPtr)window.clearTimeout(this.timeOutPtr);this.timeOutPtr=window.setTimeout(this.hide.bind(this),delay*1000);}},remove:function(){this.removed=true;Element.remove(this.box);},show:function(){this.using=true;Element.show(this.box);},hide:function(){this.using=false;Element.hide(this.box);},clearDelay:function(){if(this.timeOutPtr)window.clearTimeout(this.timeOutPtr);},toggleText:function(msg,delay){this.box.innerHTML=msg;window.setTimeout(this.recoverText.bind(this),delay*1000);},recoverText:function(){this.box.innerHTML=this.text;}};Object.extend(Enum,{DragAndDrop:{State:{NORMAL:0,DRAGING:1},Type:{X:0,Y:1,XY:2}}});var DragAndDrop=new Object();Object.extend(DragAndDrop,{state:Enum.DragAndDrop.State.NORMAL,makeDragAble:function(eventElement,effectElement,newLayer,closeAble){return new DragAndDropHandler(eventElement,effectElement,newLayer,closeAble);},makeContainer:function(container,tagName,detectType,dadHandler){var self=this;var okIndex=lastIndex=-1;var className=lastClassName="boldTop";var sepElement=$se(tagName);Element.addClassName(sepElement,"editSep");this.state=Enum.DragAndDrop.State.NORMAL;Element.cleanWhitespace(container);this.interval=window.setInterval(detect,200);dadHandler.ondrop=function(){window.clearInterval(self.interval);if(-1==okIndex)return;Element.removeClassName(container.childNodes[okIndex],className);var _e=("boldTop"==className)?container.childNodes[okIndex]:container.childNodes[okIndex].nextSibling;container.insertBefore(dadHandler.realEffectElement,_e);};function detect(){if(self.state==Enum.DragAndDrop.State.NORMAL)return;var _x=parseInt(dadHandler.effectElement.style.left.replace(/px/g,""));var _y=parseInt(dadHandler.effectElement.style.top.replace(/px/g,""));var _h=dadHandler.effectElement.offsetHeight;var _w=dadHandler.effectElement.offsetWidth;var _vc=_y+_h/2;var _hc=_x+_w/2;var minSpan=2000;for(var i=0;ispan){minSpan=span;okIndex=i;className=(spanTop=0){Element.removeClassName(container.childNodes[lastIndex],lastClassName);};if(okIndex>=0){Element.addClassName(container.childNodes[okIndex],className);};lastIndex=okIndex;lastClassName=className;}}}});var DragAndDropHandler=Class.create();DragAndDropHandler.prototype={initialize:function(_eventElement,_effectElement,_newLayer,_closeAble){this.realEventElement=this.eventElement=_eventElement;this.realEffectElement=this.effectElement=_effectElement;this.newLayer=_newLayer?true:false;this.closeAble=_closeAble?true:false;this.moveLayer=$se("div");Element.hide(this.moveLayer);document.body.appendChild(this.moveLayer);this.rx=0;this.ry=0;this.img=$se("img");if(_newLayer){this.moveLayer.style.border="1px dotted #666";if(isie()){this.moveLayer.style.backgroundColor="#fff";this.moveLayer.style.filter="alpha(opacity=50)";};this.effectElement=this.moveLayer;};this.tempFuncs=new Object();this.tempFuncs.proccessDrag=this.processDrag.bind(this);this.tempFuncs.drag=this.drag.bind(this);this.tempFuncs.drop=this.drop.bind(this);this.oldCursor=this.eventElement.style.cursor;this.eventElement.style.cursor="move";Event.observe(this.eventElement,"mousedown",this.tempFuncs.drag);if(this.closeAble){this.img.title="删除";this.img.src="img/imgClose.gif";this.img.style.cursor="pointer";this.img.style.marginLeft="15px";var self=this;this.img.onmousedown=function(event){if(!event)event=window.event;window.event.cancelBubble=true;if(event.stopPropagation)event.stopPropagation();};this.img.onclick=function(event){self.realEffectElement.parentNode.removeChild(self.realEffectElement);if(self.onclose)self.onclose();if(!event)event=window.event;event.cancelBubble=true;if(event.stopPropagation)event.stopPropagation();};this.realEventElement.appendChild(this.img);}},drag:function(event){if(this.newLayer){Position.clone(this.realEffectElement,this.moveLayer);Element.show(this.moveLayer);Element.addClassName(this.realEffectElement,"dragBorder");DragAndDrop.makeContainer(this.realEffectElement.parentNode,this.realEffectElement.tagName.toLowerCase(),Enum.DragAndDrop.Type.Y,this);};this.rx=Event.pointerX(event)-this.effectElement.offsetLeft;this.ry=Event.pointerY(event)-this.effectElement.offsetTop;Event.observe(document,"mousemove",this.tempFuncs.proccessDrag);Event.observe(document.body,"selectstart",this.falseFunction);Event.observe(document,"mouseup",this.tempFuncs.drop);DragAndDrop.state=Enum.DragAndDrop.State.DRAGING;if(this.ondrag)this.ondrag();},processDrag:function(event){this.effectElement.style.left=(Event.pointerX(event)-this.rx)+"px";this.effectElement.style.top=(Event.pointerY(event)-this.ry)+"px";},drop:function(){Event.stopObserving(document.body,"selectstart",this.falseFunction);Event.stopObserving(document,"mousemove",this.tempFuncs.proccessDrag);Event.stopObserving(document,"mouseup",this.tempFuncs.drop);if(this.newLayer){Element.hide(this.moveLayer);Element.removeClassName(this.realEffectElement,"dragBorder");};DragAndDrop.state=Enum.DragAndDrop.State.NORMAL;if(this.ondrop){this.ondrop();}},stopDragAble:function(){this.eventElement.style.cursor=this.oldCursor;if(this.closeAble){this.img.parentNode.removeChild(this.img);};Event.stopObserving(this.eventElement,"mousedown",this.tempFuncs.drag);},startDragAble:function(){this.eventElement.style.cursor="move";Event.observe(this.eventElement,"mousedown",this.tempFuncs.drag);},onclose:function(){},falseFunction:function(){return false;}};var photoBox=Class.create();photoBox.prototype={initialize:function(className){this.width=220;this.height=200;this.container=$se("div");if(className)this.container.className=className;this.captionBox=$se("div");this.container.appendChild(this.captionBox);this.captionBox.className="caption";this.listBox=$se("select");this.captionBox.appendChild(this.listBox);this.listBox.onchange=this.albumChange.bind(this);this.tipBox=$se("span");this.captionBox.appendChild(this.tipBox);this.imageBox=$se("table");this.container.appendChild(this.imageBox);this.imageBox.className="imageBox";var tr=this.imageBox.insertRow(0);var td=tr.insertCell(0);td.vAlign="middle";td.algin="center";this.imageBox=td;this.img=$se("img");this.img.alt=this.img.title="No Picture";this.imageBox.appendChild(this.img);this.toolbar=$se("div");this.container.appendChild(this.toolbar);this.generateToolbar();this.groups=new Array();this.images=new Array();this.playIndex=-1;this.delay=3000;this.playing=false;this.effectArray=new Array();this.effectArray.push("BlendTrans(duration=1);");this.effectArray.push("progid:DXImageTransform.Microsoft.Barn();");this.effectArray.push("progid:DXImageTransform.Microsoft.Barn(duration=0.5,motion=in,orientation=horizontal);");this.effectArray.push("progid:DXImageTransform.Microsoft.Blinds()");this.effectArray.push("progid:DXImageTransform.Microsoft.Inset()");this.effectArray.push(" progid:DXImageTransform.Microsoft.Pixelate(enabled=false,duration=0.5,maxSquare=10);");this.effectArray.push("progid:DXImageTransform.Microsoft.RandomDissolve()");this.effectArray.push("BlendTrans(duration=1);");this.effectArray.push("BlendTrans(duration=1);");this.effectArray.push("BlendTrans(duration=1);");this.allowRandom=false;this.autoplay=true;},init:function(){for(var i=0;i0){var opt=new Option();opt.text=title;opt.value=this.groups.length-1;this.listBox.options[this.listBox.length]=opt;}},albumChange:function(){if(0==this.groups.length)return;if(0==this.listBox.length)return;this.images=this.groups[this.listBox.selectedIndex];for(var i=0;i=this.images.length){this.pause();return;};this.showNext();this.playing=true;this.toolbar.firstChild.src="img/button_pause.gif";this.interval=window.setInterval(this.showNext.bind(this),this.delay);},stop:function(){this.toolbar.firstChild.src="img/button_play.gif";this.playIndex=0;this.showSingle(0);window.clearInterval(this.interval);this.playing=false;},pause:function(){this.toolbar.firstChild.src="img/button_play.gif";window.clearInterval(this.interval);this.playing=false;},showNext:function(){this.playIndex++;if(this.playIndex==this.images.length){if(event){};this.playIndex--;this.pause();this.playing=false;return;};this.showSingle(this.playIndex);if(this.playIndex==this.images.length-1){this.toolbar.firstChild.src="img/button_play.gif";this.pause();this.playing=false;}},showPreview:function(){this.playIndex--;if(this.playIndex>=0){this.showSingle(this.playIndex);}else{this.playIndex=0;}},showSingle:function(index){if(index>=this.images.length)return;if("waiting"==this.images[index].state){this.playIndex--;this.setDesc("Loading........");return;};this.playIndex=index;this.tipBox.innerHTML=(index+1)+"/"+this.images.length;var r=parseInt(Math.random()*10000)%10;if(!this.allowRandom)r=0;try{this.img.parentNode.style.filter=this.effectArray[r];this.img.parentNode.filters[0].apply();}catch(e){};if("Full"==this.btnFull.title){this.img.src=this.images[index].info[0];this.setDesc(this.images[index].info[2]);}else{this.img.src=this.images[index].info[1];this.setDesc(this.images[index].info[2]);};this.img.title=this.img.alt=this.images[index].info[2];try{this.img.parentNode.filters[0].play();}catch(e){}},resize:function(){if(this.img.offsetWidth>780){var ht=this.img.offsetHeight*780/this.img.offsetWidth;this.img.style.height=ht+"px";this.img.style.width="780px";}},getBox:function(){return this.container;},setDesc:function(msg){this.description.innerHTML=msg;},generateToolbar:function(){this.toolbar.className="toolbar";var btn=$se("img");setBtnEffect(btn);btn.src="img/button_play.gif";this.toolbar.appendChild(btn);btn.title="play";btn.onclick=this.play.bind(this);btn=$se("img");setBtnEffect(btn);btn.src="img/button_stop.gif";this.toolbar.appendChild(btn);btn.title="stop";btn.onclick=this.stop.bind(this);btn=$se("img");setBtnEffect(btn);btn.src="img/button_back.gif";this.toolbar.appendChild(btn);btn.title="back";btn.onclick=this.showPreview.bind(this);btn=$se("img");setBtnEffect(btn);btn.src="img/button_fw.gif";this.toolbar.appendChild(btn);btn.title="foward";btn.onclick=this.showNext.bind(this);this.description=$se("span");this.toolbar.appendChild(this.description);btn=$se("img");this.btnFull=btn;setBtnEffect(btn);btn.className="full";btn.src="img/button_full.gif";this.toolbar.appendChild(btn);btn.title="Full";btn.onclick=this.toggelFull.bind(this);function setBtnEffect(e){return;try{e.style.filter="alpha(opacity=100);";e.onmouseover=function(){try{this.filters[0].Opacity=70;}catch(e){}};e.onmouseout=function(){try{this.filters[0].Opacity=100;}catch(e){}}}catch(e){}}},setCaption:function(_value){this.captionBox.innerHTML=_value;},toggelFull:function(){if("absolute"==this.container.style.position){if(this.dadHandler)this.dadHandler.stopDragAble();if(true){var ee=document.getElementsByTagName("select");for(var i=0;i/g,">").replace(/\"/g,""").replace(/ /g," ").replace(/\t/g," ").replace(/\n/g,"
");};String.prototype.escapeHTML2=function(){return this.replace(/&/g,"&").replace(//g,">").replace(/\"/g,""").replace(/ /g," ").replace(/\t/g," ").replace(/\n/g,"
");};String.prototype.unescapeHTML2=function(){return this.replace(/</g,"<").replace(/>/g,">").replace(/"/g,"\"").replace(/ /g," ").replace(/&/g,"&");};document.X2Lighter=1;var Lighter=Class.create();Lighter.langs=new Array();Lighter.supportedLanguages=new Array();Lighter.addLanguage=function(_option){Lighter.supportedLanguages.push({objectColor:"#ff0000",lineNumberColor:"#006600",lineNumberSepColor:"#006600",reservedWordColor:"#0000ff",normalWordColor:"#000000",delimiterColor:"#000000",propertyColor:"#008684",methodColor:"#a52a2a",stringColor:"#ff00ff",baseColor:"#000000",commentColor:"#006600"}.extend(_option||{}));Lighter.langs.push(_option.language);};Lighter.prototype={retarray:0,initialize:function(){this.currentWord="";this.currentState="";this.allCode="";this.element=null;this.lan=null;this.language="";if(arguments.length==2){this.element=arguments[0];this.language=arguments[1];}},highlight:function(code){for(var j=0;j");this.currentWord="";this.currentState="";this.allCode=code.replace(/
/ig,"\n").replace(/

/ig,"\n").stripTags().unescapeHTML2();for(var i=0;i");this.result=this.retarray.join("");this.result=this.result.replace(/\n/g,"
");this.result=this.result.replace(/\t/g,"   ");return this.result;},changeToState:function(_state){if(this.currentState!=_state){if(this.currentWord.length>0)this.handleCurrentWord();this.currentState=_state;}},handleCurrentWord:function(){switch(this.currentState){case"word":if(this.lan.reservedWords.exist(this.currentWord)){this.retarray.push(fb1+this.lan.reservedWordColor+fb2+this.currentWord+fb3);}else if(this.lan.objects.exist(this.currentWord)){this.retarray.push(fb1+this.lan.objectColor+fb2+this.currentWord+fb3);}else if(this.lan.properties.exist(this.currentWord)){this.retarray.push(fb1+this.lan.propertyColor+fb2+this.currentWord+fb3);}else if(this.lan.methods.exist(this.currentWord)){this.retarray.push(fb1+this.lan.methodColor+fb2+this.currentWord+fb3);}else if(this.lan.properties.exist(this.currentWord)){this.retarray.push(fb1+this.lan.propertyColor+fb2+this.currentWord+fb3);}else{this.retarray.push(fb1+this.lan.normalWordColor+fb2+this.currentWord+fb3);};break;case"string":this.retarray.push(fb1+this.lan.stringColor+fb2+this.currentWord.escapeHTML2()+fb3);break;case"comment":this.retarray.push(fb1+this.lan.commentColor+fb2+this.currentWord.escapeHTML2()+fb3);break;case"delimiter":this.retarray.push(fb1+this.lan.delimiterColor+fb2+this.currentWord.escapeHTML2()+fb3);break;case"other":this.retarray.push(this.currentWord.escapeHTML2());break;case"lineEnd":this.retarray.push(this.currentWord.escapeHTML2());break;case"end":this.retarray.push(this.currentWord.escapeHTML2());break;default:break;};this.currentState="";this.currentWord="";}};function highLightCode(){var lighter=new Lighter();var cls=document.getElementsByClassName("codeArea");var className="";var lang="";for(var i=0;i490){var ht=imgs[i].offsetHeight*490/imgs[i].offsetWidth;imgs[i].style.height=ht+"px";imgs[i].style.width="490px";}}};function initLoad(){resizeImages();allLoaded=true;};function getSortId(_dl){if(!_dl.className)return"";return _dl.className.split(" ")[1];};function checkLoaded(_key,_method,_arguments){recordAction(_method,_arguments);if(loaded)return true;LoadedEvent[_key]=createFunction(_method,_arguments);return false;};function checkAllLoaded(_key,_method,_arguments){if(loaded)return true;AllLoadedEvent[_key]=createFunction(_method,_arguments);return false;};function createFunction(_method,_arguments,_obj){var obj=_obj;if(!obj)obj=this;return function(){_method.apply(obj,_arguments);}};function recordAction(_method,_arguments,_obj){if(baflag)return;if(currentAction!=null){bafback.push(currentAction);$("imgBack").src="img/back.gif";$("imgBack").style.cursor="pointer";};currentAction=createFunction(_method,_arguments,_obj);baforward.length=0;$("imgForward").src="img/forward_inactive.gif";$("imgForward").style.cursor="normal";};function x2Back(){if(bafback.length==0)return;baflag=true;if(currentAction!=null){baforward.push(currentAction);$("imgForward").src="img/forward.gif";$("imgForward").style.cursor="pointer";};currentAction=bafback.pop();currentAction.apply(this,[]);if(bafback.length==0){$("imgBack").src="img/back_inactive.gif";$("imgBack").style.cursor="normal";};baflag=false;};function x2Forward(){if(baforward.length==0)return;baflag=true;if(currentAction!=null){bafback.push(currentAction);$("imgBack").src="img/back.gif";$("imgBack").style.cursor="pointer";};currentAction=baforward.pop();currentAction.apply(this,[]);if(baforward.length==0){$("imgForward").src="img/forward_inactive.gif";$("imgForward").style.cursor="normal";};baflag=false;};function toggleDl(dt){var e=dt.parentNode;if(Element.hasClassName(e,"dlClose")){Element.removeClassName(e,"dlClose");Element.addClassName(e,"dlOpen");}else{Element.removeClassName(e,"dlOpen");Element.addClassName(e,"dlClose");}};function toggleViewComment(topicId,e){if(!checkLoaded("comment",toggleViewComment,[topicId,e]))return;hideCommentTipBox();var bi=e.parentNode.parentNode;var vcb;if(!vcmap.exist(topicId)){var tempNode=commentListBox.cloneNode(true);bi.parentNode.insertBefore(tempNode,bi.nextSibling);vcmap.push(topicId,tempNode);vcb=tempNode;}else vcb=vcmap.getValue(topicId);var viewTb=getViewTb(bi);if(isTbClose(viewTb)){if(isTbOpen(getPostTb(bi)))togglePostCommentBox(topicId,e);if(isTbOpen(getTbaTb(bi)))toggleTrackbackAddress(topicId,e);if(isTbOpen(getTbsTb(bi)))toggleTrackbacks(topicId,e);genCommentList(topicId);}else{Element.hide(vcb);setTbClose(viewTb);}};function toggleTrackbacks(topicId,e){if(!checkLoaded("comment",toggleTrackbacks,[topicId,e]))return;hideCommentTipBox();var bi=e.parentNode.parentNode;var tbsb;if(!tbsmap.exist(topicId)){var tempNode=commentListBox.cloneNode(true);bi.parentNode.insertBefore(tempNode,bi.nextSibling);tbsmap.push(topicId,tempNode);tbsb=tempNode;}else tbsb=tbsmap.getValue(topicId);var tbsTb=getTbsTb(bi);if(isTbClose(tbsTb)){if(isTbOpen(getPostTb(bi)))togglePostCommentBox(topicId,e);if(isTbOpen(getTbaTb(bi)))toggleTrackbackAddress(topicId,e);if(isTbOpen(getViewTb(bi)))toggleViewComment(topicId,e);genTrackbacks(topicId);}else{Element.hide(tbsb);setTbClose(tbsTb);}};function togglePostCommentBox(topicId,e){if(!checkLoaded("comment",togglePostCommentBox,[topicId,e]))return;hideCommentTipBox();var bi=e.parentNode.parentNode;var pcb;if(!pcmap.exist(topicId)){var tempNode=postCommentBox.cloneNode(true);bi.parentNode.insertBefore(tempNode,bi.nextSibling);pcmap.push(topicId,tempNode);pcb=tempNode;resetPcb(pcb);attachPostEvent(topicId,pcb);}else pcb=pcmap.getValue(topicId);var postTb=getPostTb(bi);if(isTbClose(postTb)){if(isTbOpen(getViewTb(bi)))toggleViewComment(topicId,e);if(isTbOpen(getTbaTb(bi)))toggleTrackbackAddress(topicId,e);if(isTbOpen(getTbsTb(bi)))toggleTrackbacks(topicId,e);Element.show(pcb);setTbOpen(postTb);}else{Element.hide(pcb);setTbClose(postTb);}};function toggleTrackbackAddress(topicId,e){if(!checkLoaded("comment",toggleTrackbackAddress,[topicId,e]))return;hideCommentTipBox();var bi=e.parentNode.parentNode;var tbab;if(!tbamap.exist(topicId)){var tempNode=$se("div");var path=window.location.host.split("/")[0]+window.location.pathname;tempNode.innerHTML="

  • 本文的Trackback地址是:
  • http://"+path.substring(0,path.lastIndexOf('/')+1)+"trackback.aspx?id="+topicId+"
  • 本文的固定地址是:
  • http://"+path+"?tid="+topicId+"
";tempNode.className="trackbackAddress";bi.parentNode.insertBefore(tempNode,bi.nextSibling);tbamap.push(topicId,tempNode);tbab=tempNode;}else tbab=tbamap.getValue(topicId);var tbaTb=getTbaTb(bi);if(isTbClose(tbaTb)){if(isTbOpen(getViewTb(bi)))toggleViewComment(topicId,e);if(isTbOpen(getPostTb(bi)))togglePostCommentBox(topicId,e);if(isTbOpen(getTbsTb(bi)))toggleTrackbacks(topicId,e);Element.show(tbab);setTbOpen(tbaTb);}else{Element.hide(tbab);setTbClose(tbaTb);}};function showCommentTipBox(msg,e,noButton){e.parentNode.insertBefore(commentTipBox.box,e.nextSibling);commentTipBox.show();if(noButton)commentTipBox.setText(msg,"noCloseButton");else commentTipBox.setText(msg);};function hideCommentTipBox(){commentTipBox.hide();};function isTbOpen(tb){return tb.nodeValue.charAt(0)=="-";};function isTbClose(tb){return tb.nodeValue.charAt(0)=="+";};function setTbClose(tb){tb.nodeValue="+"+tb.nodeValue.slice(1,tb.nodeValue.length);};function setTbOpen(tb){tb.nodeValue="-"+tb.nodeValue.slice(1,tb.nodeValue.length);};function getViewTb(e){return e.lastChild.childNodes[0].firstChild;};function getPostTb(e){return e.lastChild.childNodes[1].firstChild;};function getTbaTb(e){return e.lastChild.childNodes[2].firstChild;};function getTbsTb(e){return e.lastChild.childNodes[3].firstChild;};function genCommentList(topicId){var vcb=vcmap.getValue(topicId);var bi=pn(vcb);showCommentTipBox("正在获取数据,请稍候……",bi,"noButton");var option={parameters:"s="+Math.random()+"&oper=getComment&topicId="+topicId,method:"get",onSuccess:function(transport){var rp=transport.responseText;if(/^<(\d+)>/.exec(rp)==null){commentTipBox.setText(rp);commentTipBox.hideAfterSeconds(3);return;};bi.lastChild.childNodes[0].childNodes[1].innerHTML=RegExp.$1;if(RegExp.$1==0){commentTipBox.setText("对不起,本主题暂时还没有评论!");commentTipBox.hideAfterSeconds(3);return;};setTbOpen(getViewTb(bi));vcb.innerHTML=RegExp.rightContext;commentTipBox.hide();Element.show(vcb);},onFailure:function(transport){commentTipBox.setText("数据提交失败,请检查网络或【重试】。");}};var request=new Ajax.Request("ajax.aspx",option);return;};function genTrackbacks(topicId){var tbsb=tbsmap.getValue(topicId);var bi=pn(tbsb);showCommentTipBox("正在获取数据,请稍候……",bi,"noButton");var option={parameters:"s="+Math.random()+"&oper=getTrackbacks&topicId="+topicId,method:"get",onSuccess:function(transport){var rp=transport.responseText;if(/^<(\d+)>/.exec(rp)==null){commentTipBox.setText(rp);commentTipBox.hideAfterSeconds(3);return;};bi.lastChild.childNodes[3].childNodes[1].innerHTML=RegExp.$1;if(RegExp.$1==0){commentTipBox.setText("对不起,本主题暂时还没有Trackback!");commentTipBox.hideAfterSeconds(3);return;};setTbOpen(getTbsTb(bi));tbsb.innerHTML=RegExp.rightContext;commentTipBox.hide();Element.show(tbsb);},onFailure:function(transport){commentTipBox.setText("数据提交失败,请检查网络或【重试】。");}};var request=new Ajax.Request("ajax.aspx",option);return;};function attachPostEvent(topicId,pcb){var iptAuthor=pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-3)].childNodes[1];var check=pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-3)].childNodes[2];var iptUrl=pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-2)].childNodes[1];var taContent=pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-1)].childNodes[1];var btn=pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-1)].childNodes[2];var tipBox=new TipBox("",{});pcb.childNodes[ci(0)].insertBefore(tipBox.box,pcb.childNodes[ci(0)].childNodes[ci(1)]);btn.onclick=function addComment(){if(tipBox.using){tipBox.setText("请不要不要频繁发布信息,谢谢!");return;};if(iptAuthor.value.trim().length==0||taContent.value.trim().length==0){tipBox.setText("署名和内容均不得为空!");tipBox.show();tipBox.hideAfterSeconds(3);tipBox.using=false;return;};if(check.checked){ch.setValue("x2author",iptAuthor.value,1000);ch.setValue("x2url",iptUrl.value,1000);}else{ch.setValue("x2author","",-1);ch.setValue("x2url","",-1);};tipBox.show();tipBox.setText("正在提交评论,请稍候……","noCloseButton");var option={parameters:"author="+escape2(iptAuthor.value)+"&url="+escape2(iptUrl.value)+"&memo="+escape2(taContent.value)+"&topicId="+topicId,method:"post",onSuccess:function(transport){var sortId=0;var response=transport.responseText;if(/^\d{4}-\d{1,2}-\d{1,2}/.test(response)){tipBox.setText("评论已经成功提交,谢谢您的关注!");tipBox.hideAfterSeconds(3);var bi=pn(pcb);var count=bi.childNodes[3].childNodes[0].childNodes[1].innerHTML;count++;bi.childNodes[3].childNodes[0].childNodes[1].innerHTML=count;togglePostCommentBox(topicId,bi.childNodes[3].childNodes[0]);showCommentTipBox("评论已经成功提交,谢谢您的关注!",bi);addCommentToLeft(iptAuthor.value,taContent.value,topicId,sortId);resetPcb(pcb);commentTipBox.hideAfterSeconds(3);}else{tipBox.setText(response);tipBox.hideAfterSeconds(3);}},onFailure:function(transport){tipBox.using=false;tipBox.setText("数据提交失败,请检查网络或重试。");tipBox.hideAfterSeconds(3);}};var request=new Ajax.Request("ajax.aspx?s="+Math.random()+"&oper=addComment",option);}};function resetPcb(pcb){pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-3)].childNodes[1].value=ch.getValue("x2author");pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-2)].childNodes[1].value=ch.getValue("x2url")?ch.getValue("x2url"):"http://";if(ch.getValue("x2author"))pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-3)].childNodes[2].checked=true;pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-1)].childNodes[1].value="";};function pn(e){var n=e.previousSibling;while(n.tagName.toLowerCase()!="dl"){if(!n.previousSibling)return null;n=n.previousSibling;};return n;};function addCommentToLeft(author,content,topicId,sortId){var n=$("newComment");if(!n)return;var str=""+author.escapeHTML2()+":";str+=(""+cutLeft(content,50).escapeHTML2()+"");var dd=document.createElementWithText("dd",str);if(cc(n)>10)n.removeChild(n.childNodes[ci(cc(n)-1)]);if(cc(n)>1)n.insertBefore(dd,n.childNodes[ci(1)]);else n.appendChild(dd);};function postMsg(){if(!checkLoaded("postMsg",postMsg,[]))return;if(msgTipBox.using){msgTipBox.toggleText("请不要不要频繁发布信息,谢谢!",1);return;};if($F("tbAuthor").trim().length==0||$F("tbTitle").trim().length==0||$F("tbContent").trim().length==0||$F("ddlMsgSort")=="0"){msgTipBox.setText("标题,作者,类别,内容不得为空!");msgTipBox.show();msgTipBox.hideAfterSeconds(3);msgTipBox.using=false;return;};if($("cbRememberMe").checked){ch.setValue("x2author",$F("tbAuthor"),1000);ch.setValue("x2url",$F("tbUrl"),1000);}else{ch.setValue("x2author","",-1);ch.setValue("x2url","",-1);};msgTipBox.show();msgTipBox.setText("正在提交留言,请稍候……","noCloseButton");var option={parameters:"author="+escape2($F("tbAuthor"))+"&url="+escape2($F("tbUrl"))+"&title="+escape2($F("tbTitle"))+"&content="+escape2($F("tbContent"))+"&sortId="+$F("ddlMsgSort"),method:"post",onSuccess:function(transport){var response=transport.responseText;if(/^<(\d+)><(\d+)>$/.exec(response)){msgTipBox.setText("留言已经成功提交,谢谢您的关注!");msgTipBox.hideAfterSeconds(3);if(RegExp.$2==1)addMsgToLeft(RegExp.$1,$F("ddlMsgSort"));resetPostMsgBox();}else{msgTipBox.setText(response);msgTipBox.hideAfterSeconds(3);}},onFailure:function(transport){msgTipBox.using=false;msgTipBox.setText("数据提交失败,请检查网络或【重试】。");msgTipBox.hideAfterSeconds(3);}};var request=new Ajax.Request("ajax.aspx?s="+Math.random()+"&oper=addMsg",option);};function addMsgToLeft(topicId,sortId){var n=$("newMsg");if(!n)return;var str=""+$F("tbTitle").escapeHTML2()+"";var dd=document.createElementWithText("dd",str);if(cc(n)>10)n.removeChild(n.childNodes[ci(cc(n)-1)]);if(cc(n)>0)n.insertBefore(dd,n.childNodes[ci(1)]);else n.appendChild(dd);};function resetPostMsgBox(){if(!$("tbAuthor"))return;$("tbAuthor").value=ch.getValue("x2author");$("tbUrl").value=ch.getValue("x2url")?ch.getValue("x2url"):"http://";if(ch.getValue("x2author"))$("cbRememberMe").checked=true;$("tbTitle").value="";$("tbContent").value="";$("ddlMsgSort").selectedIndex=0;};function cutLeft(str,len){if(str.length>len)return str.slice(0,len)+"……";return str;};function getBlog(sortId,p){if(!checkLoaded("gb",getBlog,[sortId,p]))return;sortFlag=Math.random();var sortFlagTemp=sortFlag;gbTipBox.setText("正在获取数据,请稍候……","noCloseButton");gbTipBox.show();var option={parameters:"s="+Math.random()+"&oper=getBlog&sortId="+sortId+"&page="+p,method:"get",onSuccess:function(transport){if(sortFlagTemp!=sortFlag)return;xmlDoc=new X2Doc(transport.responseText);if(xmlDoc.root.attributes["recCount"]=="0"){try{setCurrentMenu(sortId);getBlogList(sortId);gbTipBox.hide();rh.reset();rh.setValue("sid",sortId);rh.setValue("page",p);rh.toHash();}catch(e){gbTipBox.setText("对不起,请求的栏目不存在或者已经被删除。");gbTipBox.show();};return;};setCurrentMenu(sortId);getBlogList(sortId);gbTipBox.hide();if(document.X2Lighter)highLightCode();rh.reset();rh.setValue("sid",sortId);rh.setValue("page",p);rh.toHash();},onFailure:function(transport){if(sortFlagTemp!=sortFlag)return;gbTipBox.using=false;gbTipBox.setText("对不起,获取数据失败,请检查网络或者重试。");}};var request=new Ajax.Request("ajax.aspx",option);} ;function gsb(tid){if(!checkLoaded("gb",gsb,[tid]))return;sortFlag=Math.random();var sortFlagTemp=sortFlag;gbTipBox.setText("正在获取数据,请稍候……","noCloseButton");gbTipBox.show();var option={parameters:"s="+Math.random()+"&oper=getBlog&tid="+tid,method:"get",onSuccess:function(transport){if(sortFlagTemp!=sortFlag)return;xmlDoc=new X2Doc(transport.responseText);if(xmlDoc.root.attributes["recCount"]=="0"){gbTipBox.setText("对不起,请求的主题不存在,或者已经被删除。");gbTipBox.show();return;};var sortId=xmlDoc.root.contents[0].getValue("sortId");setCurrentMenu(sortId);getBlogList(sortId);gbTipBox.hide();rh.reset();rh.setValue("tid",tid);rh.toHash();if(document.X2Lighter)highLightCode();},onFailure:function(transport){if(sortFlagTemp!=sortFlag)return;gbTipBox.using=false;gbTipBox.setText("对不起,获取数据失败,请检查网络或者重试。");}};var request=new Ajax.Request("ajax.aspx",option);};function getBlogList(sortId){var recCount=parseInt(xmlDoc.root.attributes["recCount"]);var pageSize=parseInt(xmlDoc.root.attributes["pageSize"]);var currentPage=parseInt(xmlDoc.root.attributes["currentPage"]);if(pageSize==0)hidePager();else{showPager();genPager(recCount,pageSize,currentPage,sortId);};var tempBil=document.createElement("div");for(var i=0;i7)url=""+author+"";else url=author;span.innerHTML=url;dd.appendChild(span);dl.appendChild(dd);};dd=$se("dd");try{dd.innerHTML=bi.getValue("abstract");}catch(e){try{dd.innerHTML=bi.getValue("abstract").replace("
","").replace("
","【该内容中有错误标记,已经被替换】"+dd.innerHTML;}catch(e){dd.innerHTML="
【该内容中有错误标记,无法正常显示】
";}};Element.addClassName(dd,"content");if(more){var para=document.createElement("p");Element.addClassName(para,"readMore");para.innerHTML="——此篇较长,点击这里查看全文";dd.appendChild(para);};if(link){var para=document.createElement("p");Element.addClassName(para,"readMore");para.innerHTML="——此篇对应一个链接,点击这里查看";dd.appendChild(para);};dl.appendChild(dd);if(allowComment){dd=document.createElement("dd");Element.addClassName(dd,"comment");span=document.createElement("span");Element.addClassName(span,"viewComment");span.appendChild(document.createTextNode("+查看评论 ("));span.appendChild(document.createElementWithText("span",bi.getValue("commentCount")));span.appendChild(document.createTextNode(")"));span.onclick=toggleV(bi.getValue("id"));dd.appendChild(span);span=document.createElement("span");Element.addClassName(span,"viewComment");span.appendChild(document.createTextNode("+发表评论"));span.onclick=toggleP(bi.getValue("id"));dd.appendChild(span);span=document.createElement("span");Element.addClassName(span,"viewComment");span.appendChild(document.createTextNode("+Trackback地址"));span.onclick=_toggleTrackbackAddress(bi.getValue("id"));dd.appendChild(span);span=document.createElement("span");Element.addClassName(span,"viewComment");span.appendChild(document.createTextNode("+Trackbacks ("));span.appendChild(document.createElementWithText("span",bi.getValue("trackbackCount")));span.appendChild(document.createTextNode(")"));span.onclick=_toggleTrackbacks(bi.getValue("id"));dd.appendChild(span);dl.appendChild(dd);};return dl;};function toggleV(id){return function(){toggleViewComment(id,this);}};function toggleP(id){return function(){togglePostCommentBox(id,this);}};function _toggleTrackbackAddress(id){return function(){toggleTrackbackAddress(id,this);}};function _toggleTrackbacks(id){return function(){toggleTrackbacks(id,this);}};function setCurrentMenu(sortId){var _menu=$("ulMenu");for(var i=0;i<_menu.childNodes.length;i++){if(_menu.childNodes[i].id=="m"+sortId)Element.addClassName(_menu.childNodes[i],"current");else Element.removeClassName(_menu.childNodes[i],"current");};setRssLink(sortId);};function hidePager(){Element.hide($("pagerHolder"));};function showPager(){Element.show($("pagerHolder"));} ;function genPager(rc,ps,cp,si,_type){var pager=$("pager");var p=10;var pagerStr="";var tpc=Math.ceil(rc/ps);var t=Math.floor(((cp-1)/p));var i=0;var type=1;if(_type)type=_type;for(i=t*p+1;i<=(t+1)*p&&i<=tpc;i++){if(i==cp)pagerStr+="["+i+"]";else pagerStr+="["+i+"]";};if(t>0){pagerStr="<<"+pagerStr;pagerStr="|<<"+pagerStr;};if((t+1)*p>>";pagerStr+=">>|";};if(rc==0)pagerStr="没有数据。";pager.innerHTML=pagerStr;};function pagerAdapter(type,sortId,page){switch(type){case 1:getBlog(sortId,page);break;case 2:getTopicList(page);break;case 3:getAdminCommentList(page);break;case 4:getAdminTrackbackList(page);break;default:break;}};var rssAutoFeed=null;function setRssLink(sortId){var head=document.getElementsByTagName("head")[0];if(!rssAutoFeed){rssAutoFeed=$se("link");rssAutoFeed.rel="alternate";rssAutoFeed.type="application/rss+xml";rssAutoFeed.title="RSS 2.0";rssAutoFeed.href="rss.aspx?c=0";Element.cleanWhitespace(head);head.appendChild(rssAutoFeed);};if(sortId=="admin")sortId="0";$("rssLink").href="rss.aspx?c="+sortId;$("rssLink").target="_blank";if($("m"+sortId))$("imgRss").title="RSS订阅:"+$("m"+sortId).innerHTML;else $("imgRss").title="RSS订阅";};function setStyle(title){var i,links,eflag=false;links=document.getElementsByTagName("link");for(i=0;links[i];i++){if(links[i].getAttribute("rel").indexOf("style")!=-1&&links[i].getAttribute("title")){links[i].disabled=true;if(links[i].getAttribute("title").indexOf(title)!=-1){links[i].disabled=false;eflag=true;}}};if(!eflag){$import("skin/"+title+"/default.css","css",title);$import("skin/"+title+"/admin.css","css",title);setStyle(title);}};var adminScript=false;var adminBil=document.createElement("div");function admin(){if(!checkLoaded("admin",admin,[]))return;scroll(0,0);gbTipBox.setText("正在获取数据,请稍候……","noCloseButton");gbTipBox.show();if(adminScript){hidePager();setCurrentMenu("admin");bil.parentNode.replaceChild(adminBil,bil);bil=adminBil;adminInit(bil);gbTipBox.hide();if(!baflag&&!rh.check("action")){rh.reset();rh.setValue("admin","admin");rh.toHash();};return;};sortFlag=Math.random();var sortFlagTemp=sortFlag;var s=$import("js/admin.js?s="+Math.random(),"js");s.onload=s.onreadystatechange=function(){if(sortFlagTemp!=sortFlag)return;if(this.readyState&&this.readyState=="loading")return;adminScript=true;hidePager();setCurrentMenu("admin");bil.parentNode.replaceChild(adminBil,bil);bil=adminBil;adminInit(bil);gbTipBox.hide();if(!baflag&&!rh.check("action")){rh.reset();rh.setValue("admin","admin");rh.toHash();}};return;} diff --git a/Backup1/mdb/database.cs b/Backup1/mdb/database.cs new file mode 100644 index 0000000..df091d7 Binary files /dev/null and b/Backup1/mdb/database.cs differ diff --git a/Backup1/rss.aspx b/Backup1/rss.aspx new file mode 100644 index 0000000..704fd1c --- /dev/null +++ b/Backup1/rss.aspx @@ -0,0 +1 @@ +<%@ Page language="c#" Codebehind="rss.aspx.cs" AutoEventWireup="false" Inherits="X2Blog.rss" %> diff --git a/Backup1/rss.aspx.cs b/Backup1/rss.aspx.cs new file mode 100644 index 0000000..ff907a0 --- /dev/null +++ b/Backup1/rss.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Web; +using System.Web.SessionState; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace X2Blog +{ + /// + /// rss ��ժҪ˵���� diff --git a/Backup1/rss.aspx.resx b/Backup1/rss.aspx.resx new file mode 100644 index 0000000..a76fe8d --- /dev/null +++ b/Backup1/rss.aspx.resx @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/Backup1/showTopic.aspx b/Backup1/showTopic.aspx new file mode 100644 index 0000000..c491ba1 --- /dev/null +++ b/Backup1/showTopic.aspx @@ -0,0 +1,15 @@ +<%@ Page CodeBehind="showTopic.aspx.cs" Language="c#" AutoEventWireup="false" Inherits="X2Blog.showTopic" enableViewState="False" %> + + + + + <asp:Literal id="lHeadTitle" runat="server" Text="笑笑设计"></asp:Literal> + + + + + + + +
+ diff --git a/Backup1/showTopic.aspx.cs b/Backup1/showTopic.aspx.cs new file mode 100644 index 0000000..f15945d --- /dev/null +++ b/Backup1/showTopic.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Web; +using System.Web.SessionState; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + + +namespace X2Blog +{ + /// diff --git a/Backup1/showTopic.aspx.resx b/Backup1/showTopic.aspx.resx new file mode 100644 index 0000000..a76fe8d --- /dev/null +++ b/Backup1/showTopic.aspx.resx @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/Backup1/skin/microsoft/admin.css b/Backup1/skin/microsoft/admin.css new file mode 100644 index 0000000..497dc33 --- /dev/null +++ b/Backup1/skin/microsoft/admin.css @@ -0,0 +1 @@ +table.sortProperty { margin-left:10px;} diff --git a/Backup1/skin/microsoft/default.css b/Backup1/skin/microsoft/default.css new file mode 100644 index 0000000..0d85bf4 --- /dev/null +++ b/Backup1/skin/microsoft/default.css @@ -0,0 +1,15 @@ +body { text-align:left;margin:0;color:#333;padding:0;font-size:12px;background-color:#f3f3f3;} +div#outerFrame { width:100%;margin-left:0px;margin:0;padding-left:0px;background-color:#fff;} +div#innerFrame { position:absolute;left:0px;right:229px;width:auto;background-color:#fff;} + + +div#left { float:right;width:230px;margin:0px;padding:0;background-color:#f3f3f3;border-top:1px solid #999;border-left:1px solid #999; } +div#left a { color:#333;} +div#left dl.list { margin:0;width:100%;border-bottom:1px solid #999;} +div#left dl.list dt { background-color:transparent;font-weight:bold;color:#222;} +div#left dl.list dd { border:none;padding-left:10px; } +html>body div#innerFrame { right:215px;} + + +dl#menu div.menu ul { list-style:none;margin-left:0;} +dl#menu div.menu ul li { border:1px solid #f3f3f3;cursor:pointer;padding:3px;padding-left:5px;margin-left:0px;width:100%;} diff --git a/Backup1/skin/microsoft/showTopic.css b/Backup1/skin/microsoft/showTopic.css new file mode 100644 index 0000000..5df7377 --- /dev/null +++ b/Backup1/skin/microsoft/showTopic.css @@ -0,0 +1,15 @@ +div#outer_frame { width:800px;margin-top:20px; } +div#inner_frame { margin:10px 30px 0px 20px; } +div.article { margin-left:20px;margin-right:20px; } +dl.list { margin:0 20px; } +dl.list dt { color:#636163;background-color:#efefde; } +dl.list dt a { color:#636163;background-color:#efefde;text-decoration:underline; } +dl.list dt span { margin-right:20px; } +dl.list dd { padding-top:10px;padding-bottom:10px; } + +dl#postComment dt { color:#636163;background-color:#efefde;font-weight:bold; } +dl#postComment dd span { vertical-align:top; } +dl#postComment dd input { width:400px; } +dl#postComment dd input#rememberMe { width:auto;margin-left:5px;} +dl#postComment dd textarea { width:400px;height:200px;margin-right:5px; } +dl#postComment dd input.button { width:60px;font-size:12px;border-bottom-color:#2175bc;border-right-color:#2175bc;} diff --git a/Backup1/skin/pink/admin.css b/Backup1/skin/pink/admin.css new file mode 100644 index 0000000..325c246 --- /dev/null +++ b/Backup1/skin/pink/admin.css @@ -0,0 +1,15 @@ + + +div.adminMenu { border-bottom:4px solid #CE0063;border-top:2px dotted #999;} +div.adminMenu span { border:solid 1px #CE0063;background-color:#fff;} +div.adminMenu span.current { border:solid 1px #CE0063;background-color:#CE0063;color:#fff;} +div.adminLoginBox { border:2px solid #aaa;} +div.adminEditBox ul li.button { background-color:#ddd;} +div.adminEditBox ul li input.button { border:1px solid #666;} +div.adminEditBox ul li span.tip { color:#f00;} +div.adminTopicList ul { border-top:2px dotted #ddd;} +div.adminTopicList ul li.title { color:#CE0063;} +div.adminTopicList ul li.title a { color:#CE0063;} +div.adminTopicList ul li.dateAbout { color:#aaa;} +div.adminTopicList ul li.dateAbout span { border-right:0px dotted #999;} +div.adminTopicList ul li span.title { color:#CE0063;} diff --git a/Backup1/skin/pink/default.css b/Backup1/skin/pink/default.css new file mode 100644 index 0000000..2ff3fc5 --- /dev/null +++ b/Backup1/skin/pink/default.css @@ -0,0 +1,15 @@ +body { background:#CE0063 url("img/bg_pink.gif") repeat-x left top;color:#CE0063} +a:link,a:visited { color:#CE0063} +img#RightTitlePic { display:none;} +div#left { border:0px solid #efefef;margin-left:13px;width:225px;} +div.img_border { background:#fff url("img/point.gif") repeat-y 259px;margin:0;} +div.img_border div.leftBorder { background-image:url("img/frame1/l.gif");} +div.img_border span.header { background:transparent url("img/title.gif") no-repeat 13px top;height:60px;} +div.img_border span.header span.left { background-image:url("img/frame1/lt.gif");background-repeat:repeat-y;text-align:left;} +div.img_border span.header span.right { background-image:url("img/frame1/rt.gif");background-repeat:repeat-y;} +div.img_border span.footer { background-image:url("img/fram2e1/b.gif");height:30px;} +div.img_border span.footer span.left { background-image:url("img/frame1/lb.gif");background-repeat:repeat-y;} +div.img_border span.footer span.right { background-image:url("img/frame1/rb.gif");background-repeat:repeat-y;} +div.img_border div.memo { background-image:url("img/frame1/r.gif");} + +div.ib2 { background:transparent url("img/innerContentBg.jpg") repeat;} diff --git a/Backup1/skin/pink/showTopic.css b/Backup1/skin/pink/showTopic.css new file mode 100644 index 0000000..51619fd --- /dev/null +++ b/Backup1/skin/pink/showTopic.css @@ -0,0 +1,15 @@ +div#outer_frame { width:800px;margin-top:0px; } +div#inner_frame { margin:10px 30px 0px 20px; } +div.article { margin-left:20px;margin-right:20px; } +dl.list { margin:0 20px; } +dl.list dt { color:#636163;background-color:#efefde; } +dl.list dt a { color:#636163;background-color:#efefde;text-decoration:underline; } +dl.list dt span { margin-right:20px; } +dl.list dd { padding-top:10px;padding-bottom:10px; } + +dl#postComment dt { color:#636163;background-color:#efefde;font-weight:bold; } +dl#postComment dd span { vertical-align:top; } +dl#postComment dd input { width:400px; } +dl#postComment dd input#rememberMe { width:auto;margin-left:5px;} +dl#postComment dd textarea { width:400px;height:200px;margin-right:5px; } +dl#postComment dd input.button { width:60px;font-size:12px;border-bottom-color:#2175bc;border-right-color:#2175bc;} diff --git a/Backup1/skin/simple/admin.css b/Backup1/skin/simple/admin.css new file mode 100644 index 0000000..ec700b5 --- /dev/null +++ b/Backup1/skin/simple/admin.css @@ -0,0 +1,4 @@ +div.adminTopicList ul li span.title { width:88%;color:#2175bc;font-weight:bold;} +div.adminTopicList ul li span.edit { width:5%;text-align:right;} +div.adminTopicList ul li span.delete { width:5%;text-align:right;} + diff --git a/Backup1/skin/simple/default.css b/Backup1/skin/simple/default.css new file mode 100644 index 0000000..fa1d58c --- /dev/null +++ b/Backup1/skin/simple/default.css @@ -0,0 +1,15 @@ + +body { color:#333;margin:0;margin-bottom:20px;background-color:#2175bc;} +div#outerFrame { width:800px;margin:0;margin-left:auto;margin-right:auto; + background:#fff url("img/break_line.gif") repeat-y 245px ;border:1px solid #666;} + +div#innerFrame { width:550px;margin:5px 0px 0 0;} +div#left { width:230px;margin-left:3px;padding:0;margin-top:0;margin-right:0;} +div#left dl { margin-left:0px;padding-left:0;margin-top:10px;margin-bottom:0px;} +html>body div#left { margin-left:5px;width:230px;} +html>body div#innerFrame { margin-right:3px;} + + +div.img_border { background-image:none;} +div.img_border div.leftBorder { background-image:none;} +div.img_border span.header { height:192px;background:#fff url("img/title.jpg") no-repeat center top;margin:0;} diff --git a/Backup1/skin/simple/showTopic.css b/Backup1/skin/simple/showTopic.css new file mode 100644 index 0000000..e000ea8 --- /dev/null +++ b/Backup1/skin/simple/showTopic.css @@ -0,0 +1,15 @@ +body { color:#666;margin-bottom:20px;margin:0;margin-bottom:20px;background-color:#2175bc;} +div#outer_frame { width:800px;margin-top:0px;background-color:#fff;border:1px solid #aaa;padding:0; } +div#inner_frame { margin:0;width:780px;padding:0;} +div.article { margin-left:20px;margin-right:10px; } + +div.img_border { background-image:none;} +div.img_border div.leftBorder { background-image:none;} +div.img_border span.header { height:192px;background:#fff url("img/title.jpg") no-repeat center top;margin:0;} +div.img_border span.header span.left { background-image:none;text-align:left;vertical-align:top;} +div.img_border span.header span.right { background-image:none;} +div.img_border span.footer { height:5px;background-image:none;margin:0;} +div.img_border span.footer span.left { background-image:none;} +div.img_border span.footer span.right { background-image:none;} +div.img_border div.memo { background-image:none;} + diff --git a/Backup1/skin/sunnyDiary/admin.css b/Backup1/skin/sunnyDiary/admin.css new file mode 100644 index 0000000..ec700b5 --- /dev/null +++ b/Backup1/skin/sunnyDiary/admin.css @@ -0,0 +1,4 @@ +div.adminTopicList ul li span.title { width:88%;color:#2175bc;font-weight:bold;} +div.adminTopicList ul li span.edit { width:5%;text-align:right;} +div.adminTopicList ul li span.delete { width:5%;text-align:right;} + diff --git a/Backup1/skin/sunnyDiary/default.css b/Backup1/skin/sunnyDiary/default.css new file mode 100644 index 0000000..cb3114e --- /dev/null +++ b/Backup1/skin/sunnyDiary/default.css @@ -0,0 +1,15 @@ + +body { color:#666;margin-bottom:20px;margin:0;margin-bottom:20px;background:#EBF9ED url("img/boddyBg.gif") left top repeat-x;} +div#innerFrame { width:520px;margin:5px 5px 0px 0;z-index:0;} +div#left { width:220px;margin-left:3px;padding:0;} +div#outerFrame { width:800px;margin:0;background:#fff url("img/mainSep.gif") repeat-y 223px ;margin-left:auto;margin-right:auto;} +div#left dl { margin-left:0px;padding-left:0;margin-top:10px;margin-bottom:0px;} +html>body div#left { margin-left:3px;width:220px;} +html>body div#innerFrame { margin-right:7px;} + + + +div.img_border div.leftBorder { background-image:none;} +div.img_border span.header { background-image:none;height:29px;} +div.img_border span.header span.left { background-image:none;} +div.img_border span.header span.right { background-image:none;} diff --git a/Backup1/skin/sunnyDiary/showTopic.css b/Backup1/skin/sunnyDiary/showTopic.css new file mode 100644 index 0000000..c4e4782 --- /dev/null +++ b/Backup1/skin/sunnyDiary/showTopic.css @@ -0,0 +1,15 @@ +body { color:#666;margin-bottom:20px;margin:0;margin-bottom:20px;background:#EBF9ED url("img/boddyBg.gif") left top repeat-x;} +div#outer_frame { width:800px;margin-top:0px;background-color:#fff; } +div#inner_frame { margin:10px 30px 0px 20px; } +div.article { margin-left:20px;margin-right:20px; } +dl.list { margin:0 20px; } +dl.list dt { color:#636163;background-color:#efefde; } +dl.list dt a { color:#636163;background-color:#efefde;text-decoration:underline; } +dl.list dt span { margin-right:20px; } +dl.list dd { padding-top:10px;padding-bottom:10px; } + +dl#postComment dt { color:#636163;background-color:#efefde;font-weight:bold; } +dl#postComment dd span { vertical-align:top; } +dl#postComment dd input { width:400px; } +dl#postComment dd input#rememberMe { width:auto;margin-left:5px;} +dl#postComment dd textarea { width:400px;height:200px;margin-right:5px; } diff --git a/Backup1/skin/wow/admin.css b/Backup1/skin/wow/admin.css new file mode 100644 index 0000000..e39a348 --- /dev/null +++ b/Backup1/skin/wow/admin.css @@ -0,0 +1,15 @@ +select { background-color:#F7F7DE;color:#734129;} +input { border:1px solid #CE9E31;background-color:transparent;color:#734129;} + +div.adminTopicList ul li span.title { width:88%;color:#734129;font-weight:bold;} +div.adminTopicList ul li span.edit { width:5%;text-align:right;} +div.adminTopicList ul li span.delete { width:5%;text-align:right;} + + + +div.adminMenu { border-bottom:4px solid #734129;border-top:2px dotted #999;} +div.adminMenu span { border:solid 1px #734129;background-color:#fff;} +div.adminMenu span.current { border:solid 1px #734129;background-color:#734129;color:#fff;} +div.adminLoginBox { border:2px solid #aaa;} +div.adminEditBox ul li.button { background-color:#ddd;} +div.adminEditBox ul li input.button { border:1px solid #666;} diff --git a/Backup1/skin/wow/default.css b/Backup1/skin/wow/default.css new file mode 100644 index 0000000..26ecc3c --- /dev/null +++ b/Backup1/skin/wow/default.css @@ -0,0 +1,15 @@ + +body { color:#734129;background-image:url("img/mainBg.jpg");margin-bottom:20px;} +div#innerFrame { width:510px;margin:0px 15px 0px 0;} + +div.img_border { background:transparent url("img/contentBg.gif") repeat;} +div.img_border div.leftBorder { background-image:url("img/frame1/l.gif");} +div.img_border span.header { background-image:url("img/frame1/t.gif");height:29px;} +div.img_border span.header span.left { background-image:url("img/frame1/lt.gif");} +div.img_border span.header span.right { background-image:url("img/frame1/rt.gif");} +div.img_border span.footer { background-image:url("img/frame1/b.gif");height:29px;} +div.img_border span.footer span.left { background-image:url("img/frame1/lb.gif");} +div.img_border span.footer span.right { background-image:url("img/frame1/rb.gif");} +div.img_border div.memo { background-image:url("img/frame1/r.gif");} + +div.ib2 { background:transparent url("img/innerContentBg.jpg") repeat;} diff --git a/Backup1/skin/wow/showTopic.css b/Backup1/skin/wow/showTopic.css new file mode 100644 index 0000000..76438d6 --- /dev/null +++ b/Backup1/skin/wow/showTopic.css @@ -0,0 +1,15 @@ + +body { background-image:url("img/mainBg.jpg");margin-bottom:20px;} +a:hover { color:#734129;} +div#outer_frame { width:800px;margin-top:20px; } +div#inner_frame { margin:10px 30px 0px 20px; } +div.article { margin-left:20px;margin-right:20px; } +dl.list { margin:0 20px; } +dl.list dt { color:#636163;background:transparent url("img/contentBg.gif") repeat; } +dl.list dt a { color:#636163;background-color:#efefde;text-decoration:underline; } +dl.list dt span { margin-right:20px; } +dl.list dd { padding-top:10px;padding-bottom:10px; } + +dl#postComment dt { color:#636163;background:transparent url("img/contentBg.gif") repeat;font-weight:bold; } +dl#postComment dd span { vertical-align:top; } +dl#postComment dd input { width:400px;background-color:Transparent; } diff --git a/Backup1/skin/x2style/admin.css b/Backup1/skin/x2style/admin.css new file mode 100644 index 0000000..e69de29 diff --git a/Backup1/skin/x2style/default.css b/Backup1/skin/x2style/default.css new file mode 100644 index 0000000..6898911 --- /dev/null +++ b/Backup1/skin/x2style/default.css @@ -0,0 +1,15 @@ + +div#left { border:0px solid #efefef;} +div.img_border { background:transparent url("img/contentBg.gif") repeat;} +div.img_border div.leftBorder { background-image:url("img/frame1/l.gif");} +div.img_border span.header { background-image:url("img/frame1/t.gif");height:20px;} +div.img_border span.header span.left { background-image:url("img/frame1/lt.gif");} +div.img_border span.header span.right { background-image:url("img/frame1/rt.gif");} +div.img_border span.footer { background-image:url("img/frame1/b.gif");height:30px;} +div.img_border span.footer span.left { background-image:url("img/frame1/lb.gif");} +div.img_border span.footer span.right { background-image:url("img/frame1/rb.gif");} +div.img_border div.memo { background-image:url("img/frame1/r.gif");} + +div.ib2 { background:transparent url("img/innerContentBg.jpg") repeat;} +div.ib2 div.leftBorder { background-image:url("img/frame2/l.gif");} +div.ib2 span.header { background-image:url("img/frame2/t.gif");height:10px;} diff --git a/Backup1/skin/x2style/showTopic.css b/Backup1/skin/x2style/showTopic.css new file mode 100644 index 0000000..5df7377 --- /dev/null +++ b/Backup1/skin/x2style/showTopic.css @@ -0,0 +1,15 @@ +div#outer_frame { width:800px;margin-top:20px; } +div#inner_frame { margin:10px 30px 0px 20px; } +div.article { margin-left:20px;margin-right:20px; } +dl.list { margin:0 20px; } +dl.list dt { color:#636163;background-color:#efefde; } +dl.list dt a { color:#636163;background-color:#efefde;text-decoration:underline; } +dl.list dt span { margin-right:20px; } +dl.list dd { padding-top:10px;padding-bottom:10px; } + +dl#postComment dt { color:#636163;background-color:#efefde;font-weight:bold; } +dl#postComment dd span { vertical-align:top; } +dl#postComment dd input { width:400px; } +dl#postComment dd input#rememberMe { width:auto;margin-left:5px;} +dl#postComment dd textarea { width:400px;height:200px;margin-right:5px; } +dl#postComment dd input.button { width:60px;font-size:12px;border-bottom-color:#2175bc;border-right-color:#2175bc;} diff --git a/Backup1/trackback.aspx b/Backup1/trackback.aspx new file mode 100644 index 0000000..a1cfc14 --- /dev/null +++ b/Backup1/trackback.aspx @@ -0,0 +1,2 @@ +<%@ Page language="c#" Codebehind="trackback.aspx.cs" AutoEventWireup="false" Inherits="X2Blog.trackback" %> + diff --git a/Backup1/trackback.aspx.cs b/Backup1/trackback.aspx.cs new file mode 100644 index 0000000..4949aab --- /dev/null +++ b/Backup1/trackback.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Web; +using System.Web.SessionState; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace X2Blog +{ + /// + /// trackbackҳ�棬blogϵͳtrackback���ӵ�ַʵ�ִ��� diff --git a/Backup1/upload.aspx b/Backup1/upload.aspx new file mode 100644 index 0000000..c436295 --- /dev/null +++ b/Backup1/upload.aspx @@ -0,0 +1,15 @@ +<%@ Page language="c#" Inherits="FredCK.FCKeditorV2.Uploader" AutoEventWireup="false" %> +<%-- + * FCKeditor - The text editor for internet + * Copyright (C) 2003-2005 Frederico Caldeira Knabben + * + * Licensed under the terms of the GNU Lesser General Public License: + * http://www.opensource.org/licenses/lgpl-license.php + * + * For further information visit: + * http://www.fckeditor.net/ + * + * "Support Open Source software. What about a donation today?" + * + * File Name: upload.aspx + * This is the Uploader for ASP.NET. diff --git a/Backup1/x2blog40.csproj b/Backup1/x2blog40.csproj new file mode 100644 index 0000000..58d1c75 --- /dev/null +++ b/Backup1/x2blog40.csproj @@ -0,0 +1,15 @@ + + + + diff --git a/Global.asax.cs b/Global.asax.cs new file mode 100644 index 0000000..b8b1e6b --- /dev/null +++ b/Global.asax.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections; +using System.ComponentModel; +using System.Web; +using System.Web.SessionState; + +namespace x2blog40 +{ + /// + /// Global ��ժҪ˵���� + /// + public class Global : System.Web.HttpApplication + { + /// + /// ���������������� diff --git a/Global.asax.resx b/Global.asax.resx new file mode 100644 index 0000000..a76fe8d --- /dev/null +++ b/Global.asax.resx @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/Readme.htm b/Readme.htm new file mode 100644 index 0000000..3ebabca --- /dev/null +++ b/Readme.htm @@ -0,0 +1,15 @@ + + + + + Readme-X2Blog + + + + + + +

GNU Lesser General Public License

+ +

Version 2.1, February 1999

+
+

Copyright (C) 1991, 1999 Free Software Foundation, Inc. 59 Temple Place, Suite diff --git a/editor/dialog/fck_anchor.html b/editor/dialog/fck_anchor.html new file mode 100644 index 0000000..3892060 --- /dev/null +++ b/editor/dialog/fck_anchor.html @@ -0,0 +1,15 @@ + +");var val=frag.str.substring(4,close);var thisary=frag.ary.length;frag.ary[thisary]=new _comment();frag.ary[thisary].value=val;frag.str=frag.str.substring(close+3,frag.str.length);return frag;};function _tag_cdata(frag){var close=frag.str.indexOf("]]>");var val=frag.str.substring(9,close);var thisary=frag.ary.length;frag.ary[thisary]=new _chardata();frag.ary[thisary].value=val;frag.str=frag.str.substring(close+3,frag.str.length);return frag;};function _attribution(str){var all=new Array();while(1){var eq=str.indexOf("=");if(str.length==0||eq==-1){return all;};var id1=str.indexOf("\'");var id2=str.indexOf("\"");var ids=new Number();var id=new String();if((id1");str=str.substring(close+2,str.length);};var start=str.indexOf("",start)+1;var dp=str.indexOf("[",start);if(dp",start)+2;};str=str.substring(close,str.length);};return str;};function _strip(str){var A=new Array();A=str.split("\n");str=A.join("");A=str.split(" ");str=A.join("");A=str.split("\t");str=A.join("");return str;};function _normalize(str){var A=new Array();A=str.split("\n");str=A.join(" ");A=str.split("\t");str=A.join(" ");return str;};function _entity(str){var A=new Array();A=str.split("<");str=A.join("<");A=str.split(">");str=A.join(">");A=str.split(""");str=A.join("\"");A=str.split("'");str=A.join("\'");A=str.split("&");str=A.join("&");return str;};var Enum=new Object();function escape2(str){return escape(str).replace(/\+/g,"%2b");};function $se(tag){return document.createElement(tag);};function externalLinks(){if(!document.getElementsByTagName)return;var anchors=document.getElementsByTagName("a");for(var i=0;i/g,">").replace(/\"/g,""").replace(/ /g," ").replace(/\t/g," ").replace(/\n/g,"
");};String.prototype.unescapeHTML2=function(){return this.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"\"").replace(/ /g," ").replace(/
/g,"\n");};String.prototype.trim=function(){return this.replace(/^ +/,"").replace(/ +$/,"");};if(!Array.prototype.exist){Array.prototype.exist=function(k){for(var i=0;ithis.length-1)return;var _temp=this[index];for(var i=index;i";this.spanClose.className="close";this.spanClose.onclick=this.hide.bind(this);this.spanInfo=$se("span");this.spanInfo.className="info";this.box.appendChild(this.spanInfo);this.box.appendChild(this.spanClose);this.timeOutPtr=0;if(this.options.padding)this.box.style.padding=this.options.padding;if(this.options.color)this.box.style.color=this.options.color;if(this.options.backgroundColor)this.box.style.backgroundColor=this.options.bgColor;if(this.options.borderWidth)this.box.style.borderWidth="1px";if(this.options.borderStyle)this.box.style.borderStyle="solid";if(this.options.borderColor)this.box.style.borderColor=this.options.borderColor;if(this.options.marginTop)this.box.style.marginTop=this.options.marginTop;if(this.options.marginRight)this.box.style.marginRight=this.options.marginRight;if(this.options.marginLeft)this.box.style.marginLeft=this.options.marginLeft;if(this.options.marginBottom)this.box.style.marginBottom=this.options.marginBottom;if(this.options.textAlign)this.box.style.textAlign=this.options.textAlign;this.hide();if(this.options.delay>0){this.timeOutPtr=window.setTimeout(this.hide,this.options.delay*1000);}},setText:function(msg,noCloseButton){this.text=msg;this.spanInfo.innerHTML=msg;if(noCloseButton){if(this.box.childNodes.length>1)this.spanClose=this.box.removeChild(this.spanClose);}else{this.box.appendChild(this.spanClose);}},removeAfterSeconds:function(delay){if(!this.removed){if(this.timeOutPtr)window.clearTimeout(this.timeOutPtr);this.timeOutPtr=window.setTimeout(this.remove.bind(this),delay*1000);}},hideAfterSeconds:function(delay){if(this.using){if(this.timeOutPtr)window.clearTimeout(this.timeOutPtr);this.timeOutPtr=window.setTimeout(this.hide.bind(this),delay*1000);}},remove:function(){this.removed=true;Element.remove(this.box);},show:function(){this.using=true;Element.show(this.box);},hide:function(){this.using=false;Element.hide(this.box);},clearDelay:function(){if(this.timeOutPtr)window.clearTimeout(this.timeOutPtr);},toggleText:function(msg,delay){this.box.innerHTML=msg;window.setTimeout(this.recoverText.bind(this),delay*1000);},recoverText:function(){this.box.innerHTML=this.text;}};Object.extend(Enum,{DragAndDrop:{State:{NORMAL:0,DRAGING:1},Type:{X:0,Y:1,XY:2}}});var DragAndDrop=new Object();Object.extend(DragAndDrop,{state:Enum.DragAndDrop.State.NORMAL,makeDragAble:function(eventElement,effectElement,newLayer,closeAble){return new DragAndDropHandler(eventElement,effectElement,newLayer,closeAble);},makeContainer:function(container,tagName,detectType,dadHandler){var self=this;var okIndex=lastIndex=-1;var className=lastClassName="boldTop";var sepElement=$se(tagName);Element.addClassName(sepElement,"editSep");this.state=Enum.DragAndDrop.State.NORMAL;Element.cleanWhitespace(container);this.interval=window.setInterval(detect,200);dadHandler.ondrop=function(){window.clearInterval(self.interval);if(-1==okIndex)return;Element.removeClassName(container.childNodes[okIndex],className);var _e=("boldTop"==className)?container.childNodes[okIndex]:container.childNodes[okIndex].nextSibling;container.insertBefore(dadHandler.realEffectElement,_e);};function detect(){if(self.state==Enum.DragAndDrop.State.NORMAL)return;var _x=parseInt(dadHandler.effectElement.style.left.replace(/px/g,""));var _y=parseInt(dadHandler.effectElement.style.top.replace(/px/g,""));var _h=dadHandler.effectElement.offsetHeight;var _w=dadHandler.effectElement.offsetWidth;var _vc=_y+_h/2;var _hc=_x+_w/2;var minSpan=2000;for(var i=0;ispan){minSpan=span;okIndex=i;className=(spanTop=0){Element.removeClassName(container.childNodes[lastIndex],lastClassName);};if(okIndex>=0){Element.addClassName(container.childNodes[okIndex],className);};lastIndex=okIndex;lastClassName=className;}}}});var DragAndDropHandler=Class.create();DragAndDropHandler.prototype={initialize:function(_eventElement,_effectElement,_newLayer,_closeAble){this.realEventElement=this.eventElement=_eventElement;this.realEffectElement=this.effectElement=_effectElement;this.newLayer=_newLayer?true:false;this.closeAble=_closeAble?true:false;this.moveLayer=$se("div");Element.hide(this.moveLayer);document.body.appendChild(this.moveLayer);this.rx=0;this.ry=0;this.img=$se("img");if(_newLayer){this.moveLayer.style.border="1px dotted #666";if(isie()){this.moveLayer.style.backgroundColor="#fff";this.moveLayer.style.filter="alpha(opacity=50)";};this.effectElement=this.moveLayer;};this.tempFuncs=new Object();this.tempFuncs.proccessDrag=this.processDrag.bind(this);this.tempFuncs.drag=this.drag.bind(this);this.tempFuncs.drop=this.drop.bind(this);this.oldCursor=this.eventElement.style.cursor;this.eventElement.style.cursor="move";Event.observe(this.eventElement,"mousedown",this.tempFuncs.drag);if(this.closeAble){this.img.title="删除";this.img.src="img/imgClose.gif";this.img.style.cursor="pointer";this.img.style.marginLeft="15px";var self=this;this.img.onmousedown=function(event){if(!event)event=window.event;window.event.cancelBubble=true;if(event.stopPropagation)event.stopPropagation();};this.img.onclick=function(event){self.realEffectElement.parentNode.removeChild(self.realEffectElement);if(self.onclose)self.onclose();if(!event)event=window.event;event.cancelBubble=true;if(event.stopPropagation)event.stopPropagation();};this.realEventElement.appendChild(this.img);}},drag:function(event){if(this.newLayer){Position.clone(this.realEffectElement,this.moveLayer);Element.show(this.moveLayer);Element.addClassName(this.realEffectElement,"dragBorder");DragAndDrop.makeContainer(this.realEffectElement.parentNode,this.realEffectElement.tagName.toLowerCase(),Enum.DragAndDrop.Type.Y,this);};this.rx=Event.pointerX(event)-this.effectElement.offsetLeft;this.ry=Event.pointerY(event)-this.effectElement.offsetTop;Event.observe(document,"mousemove",this.tempFuncs.proccessDrag);Event.observe(document.body,"selectstart",this.falseFunction);Event.observe(document,"mouseup",this.tempFuncs.drop);DragAndDrop.state=Enum.DragAndDrop.State.DRAGING;if(this.ondrag)this.ondrag();},processDrag:function(event){this.effectElement.style.left=(Event.pointerX(event)-this.rx)+"px";this.effectElement.style.top=(Event.pointerY(event)-this.ry)+"px";},drop:function(){Event.stopObserving(document.body,"selectstart",this.falseFunction);Event.stopObserving(document,"mousemove",this.tempFuncs.proccessDrag);Event.stopObserving(document,"mouseup",this.tempFuncs.drop);if(this.newLayer){Element.hide(this.moveLayer);Element.removeClassName(this.realEffectElement,"dragBorder");};DragAndDrop.state=Enum.DragAndDrop.State.NORMAL;if(this.ondrop){this.ondrop();}},stopDragAble:function(){this.eventElement.style.cursor=this.oldCursor;if(this.closeAble){this.img.parentNode.removeChild(this.img);};Event.stopObserving(this.eventElement,"mousedown",this.tempFuncs.drag);},startDragAble:function(){this.eventElement.style.cursor="move";Event.observe(this.eventElement,"mousedown",this.tempFuncs.drag);},onclose:function(){},falseFunction:function(){return false;}};var photoBox=Class.create();photoBox.prototype={initialize:function(className){this.width=220;this.height=200;this.container=$se("div");if(className)this.container.className=className;this.captionBox=$se("div");this.container.appendChild(this.captionBox);this.captionBox.className="caption";this.listBox=$se("select");this.captionBox.appendChild(this.listBox);this.listBox.onchange=this.albumChange.bind(this);this.tipBox=$se("span");this.captionBox.appendChild(this.tipBox);this.imageBox=$se("table");this.container.appendChild(this.imageBox);this.imageBox.className="imageBox";var tr=this.imageBox.insertRow(0);var td=tr.insertCell(0);td.vAlign="middle";td.algin="center";this.imageBox=td;this.img=$se("img");this.img.alt=this.img.title="No Picture";this.imageBox.appendChild(this.img);this.toolbar=$se("div");this.container.appendChild(this.toolbar);this.generateToolbar();this.groups=new Array();this.images=new Array();this.playIndex=-1;this.delay=3000;this.playing=false;this.effectArray=new Array();this.effectArray.push("BlendTrans(duration=1);");this.effectArray.push("progid:DXImageTransform.Microsoft.Barn();");this.effectArray.push("progid:DXImageTransform.Microsoft.Barn(duration=0.5,motion=in,orientation=horizontal);");this.effectArray.push("progid:DXImageTransform.Microsoft.Blinds()");this.effectArray.push("progid:DXImageTransform.Microsoft.Inset()");this.effectArray.push(" progid:DXImageTransform.Microsoft.Pixelate(enabled=false,duration=0.5,maxSquare=10);");this.effectArray.push("progid:DXImageTransform.Microsoft.RandomDissolve()");this.effectArray.push("BlendTrans(duration=1);");this.effectArray.push("BlendTrans(duration=1);");this.effectArray.push("BlendTrans(duration=1);");this.allowRandom=false;this.autoplay=true;},init:function(){for(var i=0;i0){var opt=new Option();opt.text=title;opt.value=this.groups.length-1;this.listBox.options[this.listBox.length]=opt;}},albumChange:function(){if(0==this.groups.length)return;if(0==this.listBox.length)return;this.images=this.groups[this.listBox.selectedIndex];for(var i=0;i=this.images.length){this.pause();return;};this.showNext();this.playing=true;this.toolbar.firstChild.src="img/button_pause.gif";this.interval=window.setInterval(this.showNext.bind(this),this.delay);},stop:function(){this.toolbar.firstChild.src="img/button_play.gif";this.playIndex=0;this.showSingle(0);window.clearInterval(this.interval);this.playing=false;},pause:function(){this.toolbar.firstChild.src="img/button_play.gif";window.clearInterval(this.interval);this.playing=false;},showNext:function(){this.playIndex++;if(this.playIndex==this.images.length){if(event){};this.playIndex--;this.pause();this.playing=false;return;};this.showSingle(this.playIndex);if(this.playIndex==this.images.length-1){this.toolbar.firstChild.src="img/button_play.gif";this.pause();this.playing=false;}},showPreview:function(){this.playIndex--;if(this.playIndex>=0){this.showSingle(this.playIndex);}else{this.playIndex=0;}},showSingle:function(index){if(index>=this.images.length)return;if("waiting"==this.images[index].state){this.playIndex--;this.setDesc("Loading........");return;};this.playIndex=index;this.tipBox.innerHTML=(index+1)+"/"+this.images.length;var r=parseInt(Math.random()*10000)%10;if(!this.allowRandom)r=0;try{this.img.parentNode.style.filter=this.effectArray[r];this.img.parentNode.filters[0].apply();}catch(e){};if("Full"==this.btnFull.title){this.img.src=this.images[index].info[0];this.setDesc(this.images[index].info[2]);}else{this.img.src=this.images[index].info[1];this.setDesc(this.images[index].info[2]);};this.img.title=this.img.alt=this.images[index].info[2];try{this.img.parentNode.filters[0].play();}catch(e){}},resize:function(){if(this.img.offsetWidth>780){var ht=this.img.offsetHeight*780/this.img.offsetWidth;this.img.style.height=ht+"px";this.img.style.width="780px";}},getBox:function(){return this.container;},setDesc:function(msg){this.description.innerHTML=msg;},generateToolbar:function(){this.toolbar.className="toolbar";var btn=$se("img");setBtnEffect(btn);btn.src="img/button_play.gif";this.toolbar.appendChild(btn);btn.title="play";btn.onclick=this.play.bind(this);btn=$se("img");setBtnEffect(btn);btn.src="img/button_stop.gif";this.toolbar.appendChild(btn);btn.title="stop";btn.onclick=this.stop.bind(this);btn=$se("img");setBtnEffect(btn);btn.src="img/button_back.gif";this.toolbar.appendChild(btn);btn.title="back";btn.onclick=this.showPreview.bind(this);btn=$se("img");setBtnEffect(btn);btn.src="img/button_fw.gif";this.toolbar.appendChild(btn);btn.title="foward";btn.onclick=this.showNext.bind(this);this.description=$se("span");this.toolbar.appendChild(this.description);btn=$se("img");this.btnFull=btn;setBtnEffect(btn);btn.className="full";btn.src="img/button_full.gif";this.toolbar.appendChild(btn);btn.title="Full";btn.onclick=this.toggelFull.bind(this);function setBtnEffect(e){return;try{e.style.filter="alpha(opacity=100);";e.onmouseover=function(){try{this.filters[0].Opacity=70;}catch(e){}};e.onmouseout=function(){try{this.filters[0].Opacity=100;}catch(e){}}}catch(e){}}},setCaption:function(_value){this.captionBox.innerHTML=_value;},toggelFull:function(){if("absolute"==this.container.style.position){if(this.dadHandler)this.dadHandler.stopDragAble();if(true){var ee=document.getElementsByTagName("select");for(var i=0;i/g,">").replace(/\"/g,""").replace(/ /g," ").replace(/\t/g," ").replace(/\n/g,"
");};String.prototype.escapeHTML2=function(){return this.replace(/&/g,"&").replace(//g,">").replace(/\"/g,""").replace(/ /g," ").replace(/\t/g," ").replace(/\n/g,"
");};String.prototype.unescapeHTML2=function(){return this.replace(/</g,"<").replace(/>/g,">").replace(/"/g,"\"").replace(/ /g," ").replace(/&/g,"&");};document.X2Lighter=1;var Lighter=Class.create();Lighter.langs=new Array();Lighter.supportedLanguages=new Array();Lighter.addLanguage=function(_option){Lighter.supportedLanguages.push({objectColor:"#ff0000",lineNumberColor:"#006600",lineNumberSepColor:"#006600",reservedWordColor:"#0000ff",normalWordColor:"#000000",delimiterColor:"#000000",propertyColor:"#008684",methodColor:"#a52a2a",stringColor:"#ff00ff",baseColor:"#000000",commentColor:"#006600"}.extend(_option||{}));Lighter.langs.push(_option.language);};Lighter.prototype={retarray:0,initialize:function(){this.currentWord="";this.currentState="";this.allCode="";this.element=null;this.lan=null;this.language="";if(arguments.length==2){this.element=arguments[0];this.language=arguments[1];}},highlight:function(code){for(var j=0;j");this.currentWord="";this.currentState="";this.allCode=code.replace(/
/ig,"\n").replace(/

/ig,"\n").stripTags().unescapeHTML2();for(var i=0;i");this.result=this.retarray.join("");this.result=this.result.replace(/\n/g,"
");this.result=this.result.replace(/\t/g,"   ");return this.result;},changeToState:function(_state){if(this.currentState!=_state){if(this.currentWord.length>0)this.handleCurrentWord();this.currentState=_state;}},handleCurrentWord:function(){switch(this.currentState){case"word":if(this.lan.reservedWords.exist(this.currentWord)){this.retarray.push(fb1+this.lan.reservedWordColor+fb2+this.currentWord+fb3);}else if(this.lan.objects.exist(this.currentWord)){this.retarray.push(fb1+this.lan.objectColor+fb2+this.currentWord+fb3);}else if(this.lan.properties.exist(this.currentWord)){this.retarray.push(fb1+this.lan.propertyColor+fb2+this.currentWord+fb3);}else if(this.lan.methods.exist(this.currentWord)){this.retarray.push(fb1+this.lan.methodColor+fb2+this.currentWord+fb3);}else if(this.lan.properties.exist(this.currentWord)){this.retarray.push(fb1+this.lan.propertyColor+fb2+this.currentWord+fb3);}else{this.retarray.push(fb1+this.lan.normalWordColor+fb2+this.currentWord+fb3);};break;case"string":this.retarray.push(fb1+this.lan.stringColor+fb2+this.currentWord.escapeHTML2()+fb3);break;case"comment":this.retarray.push(fb1+this.lan.commentColor+fb2+this.currentWord.escapeHTML2()+fb3);break;case"delimiter":this.retarray.push(fb1+this.lan.delimiterColor+fb2+this.currentWord.escapeHTML2()+fb3);break;case"other":this.retarray.push(this.currentWord.escapeHTML2());break;case"lineEnd":this.retarray.push(this.currentWord.escapeHTML2());break;case"end":this.retarray.push(this.currentWord.escapeHTML2());break;default:break;};this.currentState="";this.currentWord="";}};function highLightCode(){var lighter=new Lighter();var cls=document.getElementsByClassName("codeArea");var className="";var lang="";for(var i=0;i490){var ht=imgs[i].offsetHeight*490/imgs[i].offsetWidth;imgs[i].style.height=ht+"px";imgs[i].style.width="490px";}}};function initLoad(){resizeImages();allLoaded=true;};function getSortId(_dl){if(!_dl.className)return"";return _dl.className.split(" ")[1];};function checkLoaded(_key,_method,_arguments){recordAction(_method,_arguments);if(loaded)return true;LoadedEvent[_key]=createFunction(_method,_arguments);return false;};function checkAllLoaded(_key,_method,_arguments){if(loaded)return true;AllLoadedEvent[_key]=createFunction(_method,_arguments);return false;};function createFunction(_method,_arguments,_obj){var obj=_obj;if(!obj)obj=this;return function(){_method.apply(obj,_arguments);}};function recordAction(_method,_arguments,_obj){if(baflag)return;if(currentAction!=null){bafback.push(currentAction);$("imgBack").src="img/back.gif";$("imgBack").style.cursor="pointer";};currentAction=createFunction(_method,_arguments,_obj);baforward.length=0;$("imgForward").src="img/forward_inactive.gif";$("imgForward").style.cursor="normal";};function x2Back(){if(bafback.length==0)return;baflag=true;if(currentAction!=null){baforward.push(currentAction);$("imgForward").src="img/forward.gif";$("imgForward").style.cursor="pointer";};currentAction=bafback.pop();currentAction.apply(this,[]);if(bafback.length==0){$("imgBack").src="img/back_inactive.gif";$("imgBack").style.cursor="normal";};baflag=false;};function x2Forward(){if(baforward.length==0)return;baflag=true;if(currentAction!=null){bafback.push(currentAction);$("imgBack").src="img/back.gif";$("imgBack").style.cursor="pointer";};currentAction=baforward.pop();currentAction.apply(this,[]);if(baforward.length==0){$("imgForward").src="img/forward_inactive.gif";$("imgForward").style.cursor="normal";};baflag=false;};function toggleDl(dt){var e=dt.parentNode;if(Element.hasClassName(e,"dlClose")){Element.removeClassName(e,"dlClose");Element.addClassName(e,"dlOpen");}else{Element.removeClassName(e,"dlOpen");Element.addClassName(e,"dlClose");}};function toggleViewComment(topicId,e){if(!checkLoaded("comment",toggleViewComment,[topicId,e]))return;hideCommentTipBox();var bi=e.parentNode.parentNode;var vcb;if(!vcmap.exist(topicId)){var tempNode=commentListBox.cloneNode(true);bi.parentNode.insertBefore(tempNode,bi.nextSibling);vcmap.push(topicId,tempNode);vcb=tempNode;}else vcb=vcmap.getValue(topicId);var viewTb=getViewTb(bi);if(isTbClose(viewTb)){if(isTbOpen(getPostTb(bi)))togglePostCommentBox(topicId,e);if(isTbOpen(getTbaTb(bi)))toggleTrackbackAddress(topicId,e);if(isTbOpen(getTbsTb(bi)))toggleTrackbacks(topicId,e);genCommentList(topicId);}else{Element.hide(vcb);setTbClose(viewTb);}};function toggleTrackbacks(topicId,e){if(!checkLoaded("comment",toggleTrackbacks,[topicId,e]))return;hideCommentTipBox();var bi=e.parentNode.parentNode;var tbsb;if(!tbsmap.exist(topicId)){var tempNode=commentListBox.cloneNode(true);bi.parentNode.insertBefore(tempNode,bi.nextSibling);tbsmap.push(topicId,tempNode);tbsb=tempNode;}else tbsb=tbsmap.getValue(topicId);var tbsTb=getTbsTb(bi);if(isTbClose(tbsTb)){if(isTbOpen(getPostTb(bi)))togglePostCommentBox(topicId,e);if(isTbOpen(getTbaTb(bi)))toggleTrackbackAddress(topicId,e);if(isTbOpen(getViewTb(bi)))toggleViewComment(topicId,e);genTrackbacks(topicId);}else{Element.hide(tbsb);setTbClose(tbsTb);}};function togglePostCommentBox(topicId,e){if(!checkLoaded("comment",togglePostCommentBox,[topicId,e]))return;hideCommentTipBox();var bi=e.parentNode.parentNode;var pcb;if(!pcmap.exist(topicId)){var tempNode=postCommentBox.cloneNode(true);bi.parentNode.insertBefore(tempNode,bi.nextSibling);pcmap.push(topicId,tempNode);pcb=tempNode;resetPcb(pcb);attachPostEvent(topicId,pcb);}else pcb=pcmap.getValue(topicId);var postTb=getPostTb(bi);if(isTbClose(postTb)){if(isTbOpen(getViewTb(bi)))toggleViewComment(topicId,e);if(isTbOpen(getTbaTb(bi)))toggleTrackbackAddress(topicId,e);if(isTbOpen(getTbsTb(bi)))toggleTrackbacks(topicId,e);Element.show(pcb);setTbOpen(postTb);}else{Element.hide(pcb);setTbClose(postTb);}};function toggleTrackbackAddress(topicId,e){if(!checkLoaded("comment",toggleTrackbackAddress,[topicId,e]))return;hideCommentTipBox();var bi=e.parentNode.parentNode;var tbab;if(!tbamap.exist(topicId)){var tempNode=$se("div");var path=window.location.host.split("/")[0]+window.location.pathname;tempNode.innerHTML="

  • 本文的Trackback地址是:
  • http://"+path.substring(0,path.lastIndexOf('/')+1)+"trackback.aspx?id="+topicId+"
  • 本文的固定地址是:
  • http://"+path+"?tid="+topicId+"
";tempNode.className="trackbackAddress";bi.parentNode.insertBefore(tempNode,bi.nextSibling);tbamap.push(topicId,tempNode);tbab=tempNode;}else tbab=tbamap.getValue(topicId);var tbaTb=getTbaTb(bi);if(isTbClose(tbaTb)){if(isTbOpen(getViewTb(bi)))toggleViewComment(topicId,e);if(isTbOpen(getPostTb(bi)))togglePostCommentBox(topicId,e);if(isTbOpen(getTbsTb(bi)))toggleTrackbacks(topicId,e);Element.show(tbab);setTbOpen(tbaTb);}else{Element.hide(tbab);setTbClose(tbaTb);}};function showCommentTipBox(msg,e,noButton){e.parentNode.insertBefore(commentTipBox.box,e.nextSibling);commentTipBox.show();if(noButton)commentTipBox.setText(msg,"noCloseButton");else commentTipBox.setText(msg);};function hideCommentTipBox(){commentTipBox.hide();};function isTbOpen(tb){return tb.nodeValue.charAt(0)=="-";};function isTbClose(tb){return tb.nodeValue.charAt(0)=="+";};function setTbClose(tb){tb.nodeValue="+"+tb.nodeValue.slice(1,tb.nodeValue.length);};function setTbOpen(tb){tb.nodeValue="-"+tb.nodeValue.slice(1,tb.nodeValue.length);};function getViewTb(e){return e.lastChild.childNodes[0].firstChild;};function getPostTb(e){return e.lastChild.childNodes[1].firstChild;};function getTbaTb(e){return e.lastChild.childNodes[2].firstChild;};function getTbsTb(e){return e.lastChild.childNodes[3].firstChild;};function genCommentList(topicId){var vcb=vcmap.getValue(topicId);var bi=pn(vcb);showCommentTipBox("正在获取数据,请稍候……",bi,"noButton");var option={parameters:"s="+Math.random()+"&oper=getComment&topicId="+topicId,method:"get",onSuccess:function(transport){var rp=transport.responseText;if(/^<(\d+)>/.exec(rp)==null){commentTipBox.setText(rp);commentTipBox.hideAfterSeconds(3);return;};bi.lastChild.childNodes[0].childNodes[1].innerHTML=RegExp.$1;if(RegExp.$1==0){commentTipBox.setText("对不起,本主题暂时还没有评论!");commentTipBox.hideAfterSeconds(3);return;};setTbOpen(getViewTb(bi));vcb.innerHTML=RegExp.rightContext;commentTipBox.hide();Element.show(vcb);},onFailure:function(transport){commentTipBox.setText("数据提交失败,请检查网络或【重试】。");}};var request=new Ajax.Request("ajax.aspx",option);return;};function genTrackbacks(topicId){var tbsb=tbsmap.getValue(topicId);var bi=pn(tbsb);showCommentTipBox("正在获取数据,请稍候……",bi,"noButton");var option={parameters:"s="+Math.random()+"&oper=getTrackbacks&topicId="+topicId,method:"get",onSuccess:function(transport){var rp=transport.responseText;if(/^<(\d+)>/.exec(rp)==null){commentTipBox.setText(rp);commentTipBox.hideAfterSeconds(3);return;};bi.lastChild.childNodes[3].childNodes[1].innerHTML=RegExp.$1;if(RegExp.$1==0){commentTipBox.setText("对不起,本主题暂时还没有Trackback!");commentTipBox.hideAfterSeconds(3);return;};setTbOpen(getTbsTb(bi));tbsb.innerHTML=RegExp.rightContext;commentTipBox.hide();Element.show(tbsb);},onFailure:function(transport){commentTipBox.setText("数据提交失败,请检查网络或【重试】。");}};var request=new Ajax.Request("ajax.aspx",option);return;};function attachPostEvent(topicId,pcb){var iptAuthor=pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-3)].childNodes[1];var check=pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-3)].childNodes[2];var iptUrl=pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-2)].childNodes[1];var taContent=pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-1)].childNodes[1];var btn=pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-1)].childNodes[2];var tipBox=new TipBox("",{});pcb.childNodes[ci(0)].insertBefore(tipBox.box,pcb.childNodes[ci(0)].childNodes[ci(1)]);btn.onclick=function addComment(){if(tipBox.using){tipBox.setText("请不要不要频繁发布信息,谢谢!");return;};if(iptAuthor.value.trim().length==0||taContent.value.trim().length==0){tipBox.setText("署名和内容均不得为空!");tipBox.show();tipBox.hideAfterSeconds(3);tipBox.using=false;return;};if(check.checked){ch.setValue("x2author",iptAuthor.value,1000);ch.setValue("x2url",iptUrl.value,1000);}else{ch.setValue("x2author","",-1);ch.setValue("x2url","",-1);};tipBox.show();tipBox.setText("正在提交评论,请稍候……","noCloseButton");var option={parameters:"author="+escape2(iptAuthor.value)+"&url="+escape2(iptUrl.value)+"&memo="+escape2(taContent.value)+"&topicId="+topicId,method:"post",onSuccess:function(transport){var sortId=0;var response=transport.responseText;if(/^\d{4}-\d{1,2}-\d{1,2}/.test(response)){tipBox.setText("评论已经成功提交,谢谢您的关注!");tipBox.hideAfterSeconds(3);var bi=pn(pcb);var count=bi.childNodes[3].childNodes[0].childNodes[1].innerHTML;count++;bi.childNodes[3].childNodes[0].childNodes[1].innerHTML=count;togglePostCommentBox(topicId,bi.childNodes[3].childNodes[0]);showCommentTipBox("评论已经成功提交,谢谢您的关注!",bi);addCommentToLeft(iptAuthor.value,taContent.value,topicId,sortId);resetPcb(pcb);commentTipBox.hideAfterSeconds(3);}else{tipBox.setText(response);tipBox.hideAfterSeconds(3);}},onFailure:function(transport){tipBox.using=false;tipBox.setText("数据提交失败,请检查网络或重试。");tipBox.hideAfterSeconds(3);}};var request=new Ajax.Request("ajax.aspx?s="+Math.random()+"&oper=addComment",option);}};function resetPcb(pcb){pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-3)].childNodes[1].value=ch.getValue("x2author");pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-2)].childNodes[1].value=ch.getValue("x2url")?ch.getValue("x2url"):"http://";if(ch.getValue("x2author"))pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-3)].childNodes[2].checked=true;pcb.childNodes[ci(0)].childNodes[ci(cc(pcb.childNodes[ci(0)])-1)].childNodes[1].value="";};function pn(e){var n=e.previousSibling;while(n.tagName.toLowerCase()!="dl"){if(!n.previousSibling)return null;n=n.previousSibling;};return n;};function addCommentToLeft(author,content,topicId,sortId){var n=$("newComment");if(!n)return;var str=""+author.escapeHTML2()+":";str+=(""+cutLeft(content,50).escapeHTML2()+"");var dd=document.createElementWithText("dd",str);if(cc(n)>10)n.removeChild(n.childNodes[ci(cc(n)-1)]);if(cc(n)>1)n.insertBefore(dd,n.childNodes[ci(1)]);else n.appendChild(dd);};function postMsg(){if(!checkLoaded("postMsg",postMsg,[]))return;if(msgTipBox.using){msgTipBox.toggleText("请不要不要频繁发布信息,谢谢!",1);return;};if($F("tbAuthor").trim().length==0||$F("tbTitle").trim().length==0||$F("tbContent").trim().length==0||$F("ddlMsgSort")=="0"){msgTipBox.setText("标题,作者,类别,内容不得为空!");msgTipBox.show();msgTipBox.hideAfterSeconds(3);msgTipBox.using=false;return;};if($("cbRememberMe").checked){ch.setValue("x2author",$F("tbAuthor"),1000);ch.setValue("x2url",$F("tbUrl"),1000);}else{ch.setValue("x2author","",-1);ch.setValue("x2url","",-1);};msgTipBox.show();msgTipBox.setText("正在提交留言,请稍候……","noCloseButton");var option={parameters:"author="+escape2($F("tbAuthor"))+"&url="+escape2($F("tbUrl"))+"&title="+escape2($F("tbTitle"))+"&content="+escape2($F("tbContent"))+"&sortId="+$F("ddlMsgSort"),method:"post",onSuccess:function(transport){var response=transport.responseText;if(/^<(\d+)><(\d+)>$/.exec(response)){msgTipBox.setText("留言已经成功提交,谢谢您的关注!");msgTipBox.hideAfterSeconds(3);if(RegExp.$2==1)addMsgToLeft(RegExp.$1,$F("ddlMsgSort"));resetPostMsgBox();}else{msgTipBox.setText(response);msgTipBox.hideAfterSeconds(3);}},onFailure:function(transport){msgTipBox.using=false;msgTipBox.setText("数据提交失败,请检查网络或【重试】。");msgTipBox.hideAfterSeconds(3);}};var request=new Ajax.Request("ajax.aspx?s="+Math.random()+"&oper=addMsg",option);};function addMsgToLeft(topicId,sortId){var n=$("newMsg");if(!n)return;var str=""+$F("tbTitle").escapeHTML2()+"";var dd=document.createElementWithText("dd",str);if(cc(n)>10)n.removeChild(n.childNodes[ci(cc(n)-1)]);if(cc(n)>0)n.insertBefore(dd,n.childNodes[ci(1)]);else n.appendChild(dd);};function resetPostMsgBox(){if(!$("tbAuthor"))return;$("tbAuthor").value=ch.getValue("x2author");$("tbUrl").value=ch.getValue("x2url")?ch.getValue("x2url"):"http://";if(ch.getValue("x2author"))$("cbRememberMe").checked=true;$("tbTitle").value="";$("tbContent").value="";$("ddlMsgSort").selectedIndex=0;};function cutLeft(str,len){if(str.length>len)return str.slice(0,len)+"……";return str;};function getBlog(sortId,p){if(!checkLoaded("gb",getBlog,[sortId,p]))return;sortFlag=Math.random();var sortFlagTemp=sortFlag;gbTipBox.setText("正在获取数据,请稍候……","noCloseButton");gbTipBox.show();var option={parameters:"s="+Math.random()+"&oper=getBlog&sortId="+sortId+"&page="+p,method:"get",onSuccess:function(transport){if(sortFlagTemp!=sortFlag)return;xmlDoc=new X2Doc(transport.responseText);if(xmlDoc.root.attributes["recCount"]=="0"){try{setCurrentMenu(sortId);getBlogList(sortId);gbTipBox.hide();rh.reset();rh.setValue("sid",sortId);rh.setValue("page",p);rh.toHash();}catch(e){gbTipBox.setText("对不起,请求的栏目不存在或者已经被删除。");gbTipBox.show();};return;};setCurrentMenu(sortId);getBlogList(sortId);gbTipBox.hide();if(document.X2Lighter)highLightCode();rh.reset();rh.setValue("sid",sortId);rh.setValue("page",p);rh.toHash();},onFailure:function(transport){if(sortFlagTemp!=sortFlag)return;gbTipBox.using=false;gbTipBox.setText("对不起,获取数据失败,请检查网络或者重试。");}};var request=new Ajax.Request("ajax.aspx",option);} ;function gsb(tid){if(!checkLoaded("gb",gsb,[tid]))return;sortFlag=Math.random();var sortFlagTemp=sortFlag;gbTipBox.setText("正在获取数据,请稍候……","noCloseButton");gbTipBox.show();var option={parameters:"s="+Math.random()+"&oper=getBlog&tid="+tid,method:"get",onSuccess:function(transport){if(sortFlagTemp!=sortFlag)return;xmlDoc=new X2Doc(transport.responseText);if(xmlDoc.root.attributes["recCount"]=="0"){gbTipBox.setText("对不起,请求的主题不存在,或者已经被删除。");gbTipBox.show();return;};var sortId=xmlDoc.root.contents[0].getValue("sortId");setCurrentMenu(sortId);getBlogList(sortId);gbTipBox.hide();rh.reset();rh.setValue("tid",tid);rh.toHash();if(document.X2Lighter)highLightCode();},onFailure:function(transport){if(sortFlagTemp!=sortFlag)return;gbTipBox.using=false;gbTipBox.setText("对不起,获取数据失败,请检查网络或者重试。");}};var request=new Ajax.Request("ajax.aspx",option);};function getBlogList(sortId){var recCount=parseInt(xmlDoc.root.attributes["recCount"]);var pageSize=parseInt(xmlDoc.root.attributes["pageSize"]);var currentPage=parseInt(xmlDoc.root.attributes["currentPage"]);if(pageSize==0)hidePager();else{showPager();genPager(recCount,pageSize,currentPage,sortId);};var tempBil=document.createElement("div");for(var i=0;i7)url=""+author+"";else url=author;span.innerHTML=url;dd.appendChild(span);dl.appendChild(dd);};dd=$se("dd");try{dd.innerHTML=bi.getValue("abstract");}catch(e){try{dd.innerHTML=bi.getValue("abstract").replace("
","").replace("
","【该内容中有错误标记,已经被替换】"+dd.innerHTML;}catch(e){dd.innerHTML="
【该内容中有错误标记,无法正常显示】
";}};Element.addClassName(dd,"content");if(more){var para=document.createElement("p");Element.addClassName(para,"readMore");para.innerHTML="——此篇较长,点击这里查看全文";dd.appendChild(para);};if(link){var para=document.createElement("p");Element.addClassName(para,"readMore");para.innerHTML="——此篇对应一个链接,点击这里查看";dd.appendChild(para);};dl.appendChild(dd);if(allowComment){dd=document.createElement("dd");Element.addClassName(dd,"comment");span=document.createElement("span");Element.addClassName(span,"viewComment");span.appendChild(document.createTextNode("+查看评论 ("));span.appendChild(document.createElementWithText("span",bi.getValue("commentCount")));span.appendChild(document.createTextNode(")"));span.onclick=toggleV(bi.getValue("id"));dd.appendChild(span);span=document.createElement("span");Element.addClassName(span,"viewComment");span.appendChild(document.createTextNode("+发表评论"));span.onclick=toggleP(bi.getValue("id"));dd.appendChild(span);span=document.createElement("span");Element.addClassName(span,"viewComment");span.appendChild(document.createTextNode("+Trackback地址"));span.onclick=_toggleTrackbackAddress(bi.getValue("id"));dd.appendChild(span);span=document.createElement("span");Element.addClassName(span,"viewComment");span.appendChild(document.createTextNode("+Trackbacks ("));span.appendChild(document.createElementWithText("span",bi.getValue("trackbackCount")));span.appendChild(document.createTextNode(")"));span.onclick=_toggleTrackbacks(bi.getValue("id"));dd.appendChild(span);dl.appendChild(dd);};return dl;};function toggleV(id){return function(){toggleViewComment(id,this);}};function toggleP(id){return function(){togglePostCommentBox(id,this);}};function _toggleTrackbackAddress(id){return function(){toggleTrackbackAddress(id,this);}};function _toggleTrackbacks(id){return function(){toggleTrackbacks(id,this);}};function setCurrentMenu(sortId){var _menu=$("ulMenu");for(var i=0;i<_menu.childNodes.length;i++){if(_menu.childNodes[i].id=="m"+sortId)Element.addClassName(_menu.childNodes[i],"current");else Element.removeClassName(_menu.childNodes[i],"current");};setRssLink(sortId);};function hidePager(){Element.hide($("pagerHolder"));};function showPager(){Element.show($("pagerHolder"));} ;function genPager(rc,ps,cp,si,_type){var pager=$("pager");var p=10;var pagerStr="";var tpc=Math.ceil(rc/ps);var t=Math.floor(((cp-1)/p));var i=0;var type=1;if(_type)type=_type;for(i=t*p+1;i<=(t+1)*p&&i<=tpc;i++){if(i==cp)pagerStr+="["+i+"]";else pagerStr+="["+i+"]";};if(t>0){pagerStr="<<"+pagerStr;pagerStr="|<<"+pagerStr;};if((t+1)*p>>";pagerStr+=">>|";};if(rc==0)pagerStr="没有数据。";pager.innerHTML=pagerStr;};function pagerAdapter(type,sortId,page){switch(type){case 1:getBlog(sortId,page);break;case 2:getTopicList(page);break;case 3:getAdminCommentList(page);break;case 4:getAdminTrackbackList(page);break;default:break;}};var rssAutoFeed=null;function setRssLink(sortId){var head=document.getElementsByTagName("head")[0];if(!rssAutoFeed){rssAutoFeed=$se("link");rssAutoFeed.rel="alternate";rssAutoFeed.type="application/rss+xml";rssAutoFeed.title="RSS 2.0";rssAutoFeed.href="rss.aspx?c=0";Element.cleanWhitespace(head);head.appendChild(rssAutoFeed);};if(sortId=="admin")sortId="0";$("rssLink").href="rss.aspx?c="+sortId;$("rssLink").target="_blank";if($("m"+sortId))$("imgRss").title="RSS订阅:"+$("m"+sortId).innerHTML;else $("imgRss").title="RSS订阅";};function setStyle(title){var i,links,eflag=false;links=document.getElementsByTagName("link");for(i=0;links[i];i++){if(links[i].getAttribute("rel").indexOf("style")!=-1&&links[i].getAttribute("title")){links[i].disabled=true;if(links[i].getAttribute("title").indexOf(title)!=-1){links[i].disabled=false;eflag=true;}}};if(!eflag){$import("skin/"+title+"/default.css","css",title);$import("skin/"+title+"/admin.css","css",title);setStyle(title);}};var adminScript=false;var adminBil=document.createElement("div");function admin(){if(!checkLoaded("admin",admin,[]))return;scroll(0,0);gbTipBox.setText("正在获取数据,请稍候……","noCloseButton");gbTipBox.show();if(adminScript){hidePager();setCurrentMenu("admin");bil.parentNode.replaceChild(adminBil,bil);bil=adminBil;adminInit(bil);gbTipBox.hide();if(!baflag&&!rh.check("action")){rh.reset();rh.setValue("admin","admin");rh.toHash();};return;};sortFlag=Math.random();var sortFlagTemp=sortFlag;var s=$import("js/admin.js?s="+Math.random(),"js");s.onload=s.onreadystatechange=function(){if(sortFlagTemp!=sortFlag)return;if(this.readyState&&this.readyState=="loading")return;adminScript=true;hidePager();setCurrentMenu("admin");bil.parentNode.replaceChild(adminBil,bil);bil=adminBil;adminInit(bil);gbTipBox.hide();if(!baflag&&!rh.check("action")){rh.reset();rh.setValue("admin","admin");rh.toHash();}};return;} diff --git a/rss.aspx b/rss.aspx new file mode 100644 index 0000000..704fd1c --- /dev/null +++ b/rss.aspx @@ -0,0 +1 @@ +<%@ Page language="c#" Codebehind="rss.aspx.cs" AutoEventWireup="false" Inherits="X2Blog.rss" %> diff --git a/rss.aspx.cs b/rss.aspx.cs new file mode 100644 index 0000000..ff907a0 --- /dev/null +++ b/rss.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Web; +using System.Web.SessionState; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace X2Blog +{ + /// + /// rss ��ժҪ˵���� diff --git a/rss.aspx.resx b/rss.aspx.resx new file mode 100644 index 0000000..a76fe8d --- /dev/null +++ b/rss.aspx.resx @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/showTopic.aspx b/showTopic.aspx new file mode 100644 index 0000000..c491ba1 --- /dev/null +++ b/showTopic.aspx @@ -0,0 +1,15 @@ +<%@ Page CodeBehind="showTopic.aspx.cs" Language="c#" AutoEventWireup="false" Inherits="X2Blog.showTopic" enableViewState="False" %> + + + + + <asp:Literal id="lHeadTitle" runat="server" Text="笑笑设计"></asp:Literal> + + + + + + + + + diff --git a/showTopic.aspx.cs b/showTopic.aspx.cs new file mode 100644 index 0000000..f15945d --- /dev/null +++ b/showTopic.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Web; +using System.Web.SessionState; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + + +namespace X2Blog +{ + /// diff --git a/showTopic.aspx.resx b/showTopic.aspx.resx new file mode 100644 index 0000000..a76fe8d --- /dev/null +++ b/showTopic.aspx.resx @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/skin/microsoft/admin.css b/skin/microsoft/admin.css new file mode 100644 index 0000000..497dc33 --- /dev/null +++ b/skin/microsoft/admin.css @@ -0,0 +1 @@ +table.sortProperty { margin-left:10px;} diff --git a/skin/microsoft/default.css b/skin/microsoft/default.css new file mode 100644 index 0000000..0d85bf4 --- /dev/null +++ b/skin/microsoft/default.css @@ -0,0 +1,15 @@ +body { text-align:left;margin:0;color:#333;padding:0;font-size:12px;background-color:#f3f3f3;} +div#outerFrame { width:100%;margin-left:0px;margin:0;padding-left:0px;background-color:#fff;} +div#innerFrame { position:absolute;left:0px;right:229px;width:auto;background-color:#fff;} + + +div#left { float:right;width:230px;margin:0px;padding:0;background-color:#f3f3f3;border-top:1px solid #999;border-left:1px solid #999; } +div#left a { color:#333;} +div#left dl.list { margin:0;width:100%;border-bottom:1px solid #999;} +div#left dl.list dt { background-color:transparent;font-weight:bold;color:#222;} +div#left dl.list dd { border:none;padding-left:10px; } +html>body div#innerFrame { right:215px;} + + +dl#menu div.menu ul { list-style:none;margin-left:0;} +dl#menu div.menu ul li { border:1px solid #f3f3f3;cursor:pointer;padding:3px;padding-left:5px;margin-left:0px;width:100%;} diff --git a/skin/microsoft/showTopic.css b/skin/microsoft/showTopic.css new file mode 100644 index 0000000..5df7377 --- /dev/null +++ b/skin/microsoft/showTopic.css @@ -0,0 +1,15 @@ +div#outer_frame { width:800px;margin-top:20px; } +div#inner_frame { margin:10px 30px 0px 20px; } +div.article { margin-left:20px;margin-right:20px; } +dl.list { margin:0 20px; } +dl.list dt { color:#636163;background-color:#efefde; } +dl.list dt a { color:#636163;background-color:#efefde;text-decoration:underline; } +dl.list dt span { margin-right:20px; } +dl.list dd { padding-top:10px;padding-bottom:10px; } + +dl#postComment dt { color:#636163;background-color:#efefde;font-weight:bold; } +dl#postComment dd span { vertical-align:top; } +dl#postComment dd input { width:400px; } +dl#postComment dd input#rememberMe { width:auto;margin-left:5px;} +dl#postComment dd textarea { width:400px;height:200px;margin-right:5px; } +dl#postComment dd input.button { width:60px;font-size:12px;border-bottom-color:#2175bc;border-right-color:#2175bc;} diff --git a/skin/pink/admin.css b/skin/pink/admin.css new file mode 100644 index 0000000..325c246 --- /dev/null +++ b/skin/pink/admin.css @@ -0,0 +1,15 @@ + + +div.adminMenu { border-bottom:4px solid #CE0063;border-top:2px dotted #999;} +div.adminMenu span { border:solid 1px #CE0063;background-color:#fff;} +div.adminMenu span.current { border:solid 1px #CE0063;background-color:#CE0063;color:#fff;} +div.adminLoginBox { border:2px solid #aaa;} +div.adminEditBox ul li.button { background-color:#ddd;} +div.adminEditBox ul li input.button { border:1px solid #666;} +div.adminEditBox ul li span.tip { color:#f00;} +div.adminTopicList ul { border-top:2px dotted #ddd;} +div.adminTopicList ul li.title { color:#CE0063;} +div.adminTopicList ul li.title a { color:#CE0063;} +div.adminTopicList ul li.dateAbout { color:#aaa;} +div.adminTopicList ul li.dateAbout span { border-right:0px dotted #999;} +div.adminTopicList ul li span.title { color:#CE0063;} diff --git a/skin/pink/default.css b/skin/pink/default.css new file mode 100644 index 0000000..2ff3fc5 --- /dev/null +++ b/skin/pink/default.css @@ -0,0 +1,15 @@ +body { background:#CE0063 url("img/bg_pink.gif") repeat-x left top;color:#CE0063} +a:link,a:visited { color:#CE0063} +img#RightTitlePic { display:none;} +div#left { border:0px solid #efefef;margin-left:13px;width:225px;} +div.img_border { background:#fff url("img/point.gif") repeat-y 259px;margin:0;} +div.img_border div.leftBorder { background-image:url("img/frame1/l.gif");} +div.img_border span.header { background:transparent url("img/title.gif") no-repeat 13px top;height:60px;} +div.img_border span.header span.left { background-image:url("img/frame1/lt.gif");background-repeat:repeat-y;text-align:left;} +div.img_border span.header span.right { background-image:url("img/frame1/rt.gif");background-repeat:repeat-y;} +div.img_border span.footer { background-image:url("img/fram2e1/b.gif");height:30px;} +div.img_border span.footer span.left { background-image:url("img/frame1/lb.gif");background-repeat:repeat-y;} +div.img_border span.footer span.right { background-image:url("img/frame1/rb.gif");background-repeat:repeat-y;} +div.img_border div.memo { background-image:url("img/frame1/r.gif");} + +div.ib2 { background:transparent url("img/innerContentBg.jpg") repeat;} diff --git a/skin/pink/showTopic.css b/skin/pink/showTopic.css new file mode 100644 index 0000000..51619fd --- /dev/null +++ b/skin/pink/showTopic.css @@ -0,0 +1,15 @@ +div#outer_frame { width:800px;margin-top:0px; } +div#inner_frame { margin:10px 30px 0px 20px; } +div.article { margin-left:20px;margin-right:20px; } +dl.list { margin:0 20px; } +dl.list dt { color:#636163;background-color:#efefde; } +dl.list dt a { color:#636163;background-color:#efefde;text-decoration:underline; } +dl.list dt span { margin-right:20px; } +dl.list dd { padding-top:10px;padding-bottom:10px; } + +dl#postComment dt { color:#636163;background-color:#efefde;font-weight:bold; } +dl#postComment dd span { vertical-align:top; } +dl#postComment dd input { width:400px; } +dl#postComment dd input#rememberMe { width:auto;margin-left:5px;} +dl#postComment dd textarea { width:400px;height:200px;margin-right:5px; } +dl#postComment dd input.button { width:60px;font-size:12px;border-bottom-color:#2175bc;border-right-color:#2175bc;} diff --git a/skin/simple/admin.css b/skin/simple/admin.css new file mode 100644 index 0000000..ec700b5 --- /dev/null +++ b/skin/simple/admin.css @@ -0,0 +1,4 @@ +div.adminTopicList ul li span.title { width:88%;color:#2175bc;font-weight:bold;} +div.adminTopicList ul li span.edit { width:5%;text-align:right;} +div.adminTopicList ul li span.delete { width:5%;text-align:right;} + diff --git a/skin/simple/default.css b/skin/simple/default.css new file mode 100644 index 0000000..fa1d58c --- /dev/null +++ b/skin/simple/default.css @@ -0,0 +1,15 @@ + +body { color:#333;margin:0;margin-bottom:20px;background-color:#2175bc;} +div#outerFrame { width:800px;margin:0;margin-left:auto;margin-right:auto; + background:#fff url("img/break_line.gif") repeat-y 245px ;border:1px solid #666;} + +div#innerFrame { width:550px;margin:5px 0px 0 0;} +div#left { width:230px;margin-left:3px;padding:0;margin-top:0;margin-right:0;} +div#left dl { margin-left:0px;padding-left:0;margin-top:10px;margin-bottom:0px;} +html>body div#left { margin-left:5px;width:230px;} +html>body div#innerFrame { margin-right:3px;} + + +div.img_border { background-image:none;} +div.img_border div.leftBorder { background-image:none;} +div.img_border span.header { height:192px;background:#fff url("img/title.jpg") no-repeat center top;margin:0;} diff --git a/skin/simple/showTopic.css b/skin/simple/showTopic.css new file mode 100644 index 0000000..e000ea8 --- /dev/null +++ b/skin/simple/showTopic.css @@ -0,0 +1,15 @@ +body { color:#666;margin-bottom:20px;margin:0;margin-bottom:20px;background-color:#2175bc;} +div#outer_frame { width:800px;margin-top:0px;background-color:#fff;border:1px solid #aaa;padding:0; } +div#inner_frame { margin:0;width:780px;padding:0;} +div.article { margin-left:20px;margin-right:10px; } + +div.img_border { background-image:none;} +div.img_border div.leftBorder { background-image:none;} +div.img_border span.header { height:192px;background:#fff url("img/title.jpg") no-repeat center top;margin:0;} +div.img_border span.header span.left { background-image:none;text-align:left;vertical-align:top;} +div.img_border span.header span.right { background-image:none;} +div.img_border span.footer { height:5px;background-image:none;margin:0;} +div.img_border span.footer span.left { background-image:none;} +div.img_border span.footer span.right { background-image:none;} +div.img_border div.memo { background-image:none;} + diff --git a/skin/sunnyDiary/admin.css b/skin/sunnyDiary/admin.css new file mode 100644 index 0000000..ec700b5 --- /dev/null +++ b/skin/sunnyDiary/admin.css @@ -0,0 +1,4 @@ +div.adminTopicList ul li span.title { width:88%;color:#2175bc;font-weight:bold;} +div.adminTopicList ul li span.edit { width:5%;text-align:right;} +div.adminTopicList ul li span.delete { width:5%;text-align:right;} + diff --git a/skin/sunnyDiary/default.css b/skin/sunnyDiary/default.css new file mode 100644 index 0000000..cb3114e --- /dev/null +++ b/skin/sunnyDiary/default.css @@ -0,0 +1,15 @@ + +body { color:#666;margin-bottom:20px;margin:0;margin-bottom:20px;background:#EBF9ED url("img/boddyBg.gif") left top repeat-x;} +div#innerFrame { width:520px;margin:5px 5px 0px 0;z-index:0;} +div#left { width:220px;margin-left:3px;padding:0;} +div#outerFrame { width:800px;margin:0;background:#fff url("img/mainSep.gif") repeat-y 223px ;margin-left:auto;margin-right:auto;} +div#left dl { margin-left:0px;padding-left:0;margin-top:10px;margin-bottom:0px;} +html>body div#left { margin-left:3px;width:220px;} +html>body div#innerFrame { margin-right:7px;} + + + +div.img_border div.leftBorder { background-image:none;} +div.img_border span.header { background-image:none;height:29px;} +div.img_border span.header span.left { background-image:none;} +div.img_border span.header span.right { background-image:none;} diff --git a/skin/sunnyDiary/showTopic.css b/skin/sunnyDiary/showTopic.css new file mode 100644 index 0000000..c4e4782 --- /dev/null +++ b/skin/sunnyDiary/showTopic.css @@ -0,0 +1,15 @@ +body { color:#666;margin-bottom:20px;margin:0;margin-bottom:20px;background:#EBF9ED url("img/boddyBg.gif") left top repeat-x;} +div#outer_frame { width:800px;margin-top:0px;background-color:#fff; } +div#inner_frame { margin:10px 30px 0px 20px; } +div.article { margin-left:20px;margin-right:20px; } +dl.list { margin:0 20px; } +dl.list dt { color:#636163;background-color:#efefde; } +dl.list dt a { color:#636163;background-color:#efefde;text-decoration:underline; } +dl.list dt span { margin-right:20px; } +dl.list dd { padding-top:10px;padding-bottom:10px; } + +dl#postComment dt { color:#636163;background-color:#efefde;font-weight:bold; } +dl#postComment dd span { vertical-align:top; } +dl#postComment dd input { width:400px; } +dl#postComment dd input#rememberMe { width:auto;margin-left:5px;} +dl#postComment dd textarea { width:400px;height:200px;margin-right:5px; } diff --git a/skin/wow/admin.css b/skin/wow/admin.css new file mode 100644 index 0000000..e39a348 --- /dev/null +++ b/skin/wow/admin.css @@ -0,0 +1,15 @@ +select { background-color:#F7F7DE;color:#734129;} +input { border:1px solid #CE9E31;background-color:transparent;color:#734129;} + +div.adminTopicList ul li span.title { width:88%;color:#734129;font-weight:bold;} +div.adminTopicList ul li span.edit { width:5%;text-align:right;} +div.adminTopicList ul li span.delete { width:5%;text-align:right;} + + + +div.adminMenu { border-bottom:4px solid #734129;border-top:2px dotted #999;} +div.adminMenu span { border:solid 1px #734129;background-color:#fff;} +div.adminMenu span.current { border:solid 1px #734129;background-color:#734129;color:#fff;} +div.adminLoginBox { border:2px solid #aaa;} +div.adminEditBox ul li.button { background-color:#ddd;} +div.adminEditBox ul li input.button { border:1px solid #666;} diff --git a/skin/wow/default.css b/skin/wow/default.css new file mode 100644 index 0000000..26ecc3c --- /dev/null +++ b/skin/wow/default.css @@ -0,0 +1,15 @@ + +body { color:#734129;background-image:url("img/mainBg.jpg");margin-bottom:20px;} +div#innerFrame { width:510px;margin:0px 15px 0px 0;} + +div.img_border { background:transparent url("img/contentBg.gif") repeat;} +div.img_border div.leftBorder { background-image:url("img/frame1/l.gif");} +div.img_border span.header { background-image:url("img/frame1/t.gif");height:29px;} +div.img_border span.header span.left { background-image:url("img/frame1/lt.gif");} +div.img_border span.header span.right { background-image:url("img/frame1/rt.gif");} +div.img_border span.footer { background-image:url("img/frame1/b.gif");height:29px;} +div.img_border span.footer span.left { background-image:url("img/frame1/lb.gif");} +div.img_border span.footer span.right { background-image:url("img/frame1/rb.gif");} +div.img_border div.memo { background-image:url("img/frame1/r.gif");} + +div.ib2 { background:transparent url("img/innerContentBg.jpg") repeat;} diff --git a/skin/wow/showTopic.css b/skin/wow/showTopic.css new file mode 100644 index 0000000..76438d6 --- /dev/null +++ b/skin/wow/showTopic.css @@ -0,0 +1,15 @@ + +body { background-image:url("img/mainBg.jpg");margin-bottom:20px;} +a:hover { color:#734129;} +div#outer_frame { width:800px;margin-top:20px; } +div#inner_frame { margin:10px 30px 0px 20px; } +div.article { margin-left:20px;margin-right:20px; } +dl.list { margin:0 20px; } +dl.list dt { color:#636163;background:transparent url("img/contentBg.gif") repeat; } +dl.list dt a { color:#636163;background-color:#efefde;text-decoration:underline; } +dl.list dt span { margin-right:20px; } +dl.list dd { padding-top:10px;padding-bottom:10px; } + +dl#postComment dt { color:#636163;background:transparent url("img/contentBg.gif") repeat;font-weight:bold; } +dl#postComment dd span { vertical-align:top; } +dl#postComment dd input { width:400px;background-color:Transparent; } diff --git a/skin/x2style/admin.css b/skin/x2style/admin.css new file mode 100644 index 0000000..e69de29 diff --git a/skin/x2style/default.css b/skin/x2style/default.css new file mode 100644 index 0000000..6898911 --- /dev/null +++ b/skin/x2style/default.css @@ -0,0 +1,15 @@ + +div#left { border:0px solid #efefef;} +div.img_border { background:transparent url("img/contentBg.gif") repeat;} +div.img_border div.leftBorder { background-image:url("img/frame1/l.gif");} +div.img_border span.header { background-image:url("img/frame1/t.gif");height:20px;} +div.img_border span.header span.left { background-image:url("img/frame1/lt.gif");} +div.img_border span.header span.right { background-image:url("img/frame1/rt.gif");} +div.img_border span.footer { background-image:url("img/frame1/b.gif");height:30px;} +div.img_border span.footer span.left { background-image:url("img/frame1/lb.gif");} +div.img_border span.footer span.right { background-image:url("img/frame1/rb.gif");} +div.img_border div.memo { background-image:url("img/frame1/r.gif");} + +div.ib2 { background:transparent url("img/innerContentBg.jpg") repeat;} +div.ib2 div.leftBorder { background-image:url("img/frame2/l.gif");} +div.ib2 span.header { background-image:url("img/frame2/t.gif");height:10px;} diff --git a/skin/x2style/showTopic.css b/skin/x2style/showTopic.css new file mode 100644 index 0000000..5df7377 --- /dev/null +++ b/skin/x2style/showTopic.css @@ -0,0 +1,15 @@ +div#outer_frame { width:800px;margin-top:20px; } +div#inner_frame { margin:10px 30px 0px 20px; } +div.article { margin-left:20px;margin-right:20px; } +dl.list { margin:0 20px; } +dl.list dt { color:#636163;background-color:#efefde; } +dl.list dt a { color:#636163;background-color:#efefde;text-decoration:underline; } +dl.list dt span { margin-right:20px; } +dl.list dd { padding-top:10px;padding-bottom:10px; } + +dl#postComment dt { color:#636163;background-color:#efefde;font-weight:bold; } +dl#postComment dd span { vertical-align:top; } +dl#postComment dd input { width:400px; } +dl#postComment dd input#rememberMe { width:auto;margin-left:5px;} +dl#postComment dd textarea { width:400px;height:200px;margin-right:5px; } +dl#postComment dd input.button { width:60px;font-size:12px;border-bottom-color:#2175bc;border-right-color:#2175bc;} diff --git a/trackback.aspx b/trackback.aspx new file mode 100644 index 0000000..a1cfc14 --- /dev/null +++ b/trackback.aspx @@ -0,0 +1,2 @@ +<%@ Page language="c#" Codebehind="trackback.aspx.cs" AutoEventWireup="false" Inherits="X2Blog.trackback" %> + diff --git a/trackback.aspx.cs b/trackback.aspx.cs new file mode 100644 index 0000000..4949aab --- /dev/null +++ b/trackback.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Web; +using System.Web.SessionState; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace X2Blog +{ + /// + /// trackbackҳ�棬blogϵͳtrackback���ӵ�ַʵ�ִ��� diff --git a/upload.aspx b/upload.aspx new file mode 100644 index 0000000..c436295 --- /dev/null +++ b/upload.aspx @@ -0,0 +1,15 @@ +<%@ Page language="c#" Inherits="FredCK.FCKeditorV2.Uploader" AutoEventWireup="false" %> +<%-- + * FCKeditor - The text editor for internet + * Copyright (C) 2003-2005 Frederico Caldeira Knabben + * + * Licensed under the terms of the GNU Lesser General Public License: + * http://www.opensource.org/licenses/lgpl-license.php + * + * For further information visit: + * http://www.fckeditor.net/ + * + * "Support Open Source software. What about a donation today?" + * + * File Name: upload.aspx + * This is the Uploader for ASP.NET. diff --git a/x2blog40.csproj b/x2blog40.csproj new file mode 100644 index 0000000..ec83b39 --- /dev/null +++ b/x2blog40.csproj @@ -0,0 +1,15 @@ + + + + 7.10.3077 + 2.0 + {1870DF49-2123-4735-84F9-075C960FEDB1} + {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Debug + AnyCPU + + + x2blog40 + + JScript + Grid