第三方程序维护说明
目录 |
程序管理
GeSHi代码高亮
网站地址。
所做修改:
cp geshi.php /home/deminy/public_html/includes/geshi.php cp geshi/php.php /home/deminy/public_html/includes/geshi_php.php cp geshi/php-brief.php /home/deminy/public_html/includes/geshi_php-brief.php
MediaWiki百科大全
- PHP5 path: /usr/local/php5/bin/php5
- 如何修改管理员密码。
- cron (用于Google Sitemap)。
- 文件更改:
- includes/CoreParserFunctions.php
- comment out this line in function displaytitle() (to show customized title):
"if( $title instanceof Title && $title->getFragment() == && $title->equals( $parser->mTitle ) )"
- comment out this line in function displaytitle() (to show customized title):
- languages/messages/MessagesZh_cn.php
- Add one line at the end
include_once("/home/deminy/public_html/revision/w/MessagesDeminy.php");
- Add one line at the end
- Skin
- skins/CologneBlue.php
基于v1.9.3。v1.11.0与v1.9.3无主要代码变动,但有2处注释变更。 - skins/common/cologneblue.css
基于v1.9.3。v1.11.0 added one section called "Recreating-deleted-page warning and log entries"。
- skins/CologneBlue.php
- LocalSettings.php
- maintenance/generateSitemap.php
将function indexEntry()其中一行改为
"\t\t<loc>http://www.deminy.net/$filename</loc>\n" .
原因:Google Sitemap要求Sitemap使用有效URL(而非相对路径)。
此修改应和/.htaccess中相关URL重写记录结合起来,并且受到/robots.txt相关记录限制。
- includes/CoreParserFunctions.php
- 插件管理
- Cite: here
- Expr: Help:ParserFunctions
- RSS into Wiki
- 文件修改:extensions/rsswiki/SpecialRss2html.php
- 模板位置:http://www.deminy.net/revision/w/extensions/rsswiki/rssfeed.html
Serendipity网志程序
网志地址。
本站s9y网志升级指南
(Instruction: Upgrading Serendipity)
- 备份
- 备份数据库
- 备份程序
- cd public_html
- tar -czvf blog.vxxxxx.200xxxxx.tar.gz blog ,并下载
- cp -R blog blog2
- 升级
- cd blog
- cp .htaccess.upgrade .htaccess
- cd ..
- cp -R ../temp/s9y/xxxxx/* blog/.
- visit http://www.deminy.net/blog/admin ,升级。
- recovery .htaccess
- 检验
- visit http://www.deminy.net/blog/
本站s9y网志清理指南
- error_log文件
包含过多socket超时错误 (由垃圾trackback引起) - 清理表“spamblocklog”。
本站s9y网志模版修改指南
模版采用Brown Paper. 添加如下代码
/* style for blockquotes inserted into posts */
/* copied from carl_contest on 2007-11-10 15:01:36 */
blockquote {
margin: 15px 30px 0 15px;
padding-left: 15px;
border-left: 4px solid #2a5a8a; }
本站s9y英文版网志信息
- 模版:terrafirma。
- 所作修改:将此行注释掉:text-transform:lowercase;
TaskFreak!任务列表
网站地址。当前采用版本:multi-user v0.6.1 (发布于2006-03-23)。
修改步骤
- login.php
add default values for login form; - user_edit.php
delete $objEditItem->update(); to disable user profile update.
对single-user v0.5.1的修改 (历史修改)
- 增加中文utf-8文字 (lg_cn.php);
- 匿名可读不可写;
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
iso-8859-1 to UTF-8 - <title>TaskFreak!</title> => <title>Deminy - 任务列表</title>
- rename index.php to index2.php
- <form name="zappa" action="index.php" method="POST" id="zappa"> => <form name="zappa" action="index2.php" method="POST" id="zappa">
- In file index2.php, replace index.php to index2.php
- create frame-based file index.php, including /index.php as header and read_only.php as main frame.
- delete <div id="menu">
WebCalendar日程安排
网站地址。
2003-09-09 14:12:50所做修改[1]:
Added the following code at the bottom of the load_user_preferences function in includes/functions.php
// addition begins
// This is added by deminy on 2003-09-09 for http://www.deminy.net
if (!empty($_GET[lang]))
{
if ($_GET[lang] == "chn")
$GLOBALS[LANGUAGE] = "Chinese-GB2312";
else if ($_GET[lang] == "eng")
$GLOBALS[LANGUAGE] = "English-US";
setcookie("LANGUAGE", $GLOBALS[LANGUAGE]);
}
else if (!empty($_COOKIE[LANGUAGE]))
$GLOBALS[LANGUAGE] = $_COOKIE[LANGUAGE];
// addition ends
Sabrosus书签程序
对v1.75的修改如下:
- delete files for upgrading: exportar-ini.php and actualizar.php.
- editar.php: remove Byte Order Mark (BOM, which is UTF-8).
- include/lang.php: add $idiomas['zh_CN'] = "中文简体";
- add directory locale/zh_CN and Chinese translation.
- lots of changes in badge.php.
- UTF-8 decode related changes in file include/tags.class.php and editar.php.
- index.php: language translation for search form
本站自Sat 12 Jan 2008 07:04:51 PM EST彻底放弃该系统。
其他程序
PEAR::Images类库
- package: PEAR::Image::Canvas
add one line:
define('IMAGE_CANVAS_SYSTEM_FONT_PATH', $_SERVER["DOCUMENT_ROOT"] . '/includes/fonts/'); - font file location: luna:/usr/openwin/lib/X11/fonts/TrueType
Smarty
cp -R src/Smarty-2.6.18/libs/* /home/deminy/public_html/includes/smarty/.
补充说明
- 有关本站使用的第三方程序的细节说明,可参考文字《本站使用的第三方程序》。有关本站第三方程序更新记录,请参考文字《第三方程序更新记录》。
- 我们将不考虑整合s9y和MediaWiki,原因参考此处。
备注
- ↑ 由于本站不再提供英文版,所以此修改已经过时。2007-05-06 15:47:37