编辑“Gallery:下载:清除脚本(Cleanup Script)

跳转至: 导航、​ 搜索
警告:您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您登录创建一个账户,您的编辑将归属于您的用户名,且将享受其他好处。

该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。

最后版本 您的文本
第1行: 第1行:
[[category:Downloads]]
[[category:Downloads]]
__NOTOC__
__NOTOC__
=Bharat的清除脚本(Cleanup Script)=
=Bharat's Cleanup Script=
编写者:Bharat Mediratta
Author: Bharat Mediratta


==描述==
==Description==
该脚本允许你修改旧相册或g2data目录的权限,以使得你可以删除它们。
This script allows you to change the permissions on old album or g2data directories so that you can delete them.


==兼容性==
==Compatibility==
Gallery1和Gallery2
Gallery 1 and Gallery 2


==用法==
==Usage==
因为Gallery是作为web服务器的一部分运行的,任何其创建的文件
Because Gallery runs as part of the webserver, any files it creates
都为web服务器进程所有。如果你想自己修改这些文件的话,
are owned by the webserver process.  If you want to modify those
你需要让web服务器修改这些文件的权限
files yourself, you need to get the webserver to change the permissions
这样你才有访问权。这正是该脚本出现的目的。
on them so that you have access.  That's what this script is for.


下载此文件,将其解压到web服务器上,也就是cleanup.php<br />
Download this file, unzip it and put it on your webserver as cleanup.php<br />
用浏览器将其打卡,并输入你相册目录的路径
Open it in your browser, and enter the path to your albums directory and this script
该脚本会让该路径下的所有文件变为所有人可写。
will make every file in that path (that it can access) writable by everybody.


在此之后,你就可通过FTP客户端程序或shell来手动删除这些文件了。
After that, you should be able to delete the files manually via your FTP client or via the shell.


==下载==
==Download==
[[Media:Cleanup-1.1.zip|Download Cleanup-1.1.zip]]
[[Media:Cleanup-1.1.zip|Download Cleanup-1.1.zip]]
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅Wordpress-mediawiki:版权的细节)。 未经许可,请勿提交受版权保护的作品!
取消 编辑帮助(在新窗口中打开)