Gallery: 下载:清除脚本(Cleanup Script):修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
 
第1行: 第1行:
[[category:Downloads]]
[[category:Downloads]]
__NOTOC__
__NOTOC__
=Bharat's Cleanup Script=
=Bharat的清除脚本(Cleanup Script)=
Author: Bharat Mediratta
编写者:Bharat Mediratta


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


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


==Usage==
==用法==
Because Gallery runs as part of the webserver, any files it creates
因为Gallery是作为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
你需要让web服务器修改这些文件的权限
on them so that you have access.  That's what this script is for.
这样你才有访问权。这正是该脚本出现的目的。


Download this file, unzip it and put it on your webserver as cleanup.php<br />
下载此文件,将其解压到web服务器上,也就是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.
该脚本会让该路径下的所有文件变为所有人可写。


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


==Download==
==下载==
[[Media:Cleanup-1.1.zip|Download Cleanup-1.1.zip]]
[[Media:Cleanup-1.1.zip|Download Cleanup-1.1.zip]]

2008年10月11日 (六) 11:29的最新版本


Bharat的清除脚本(Cleanup Script)[ ]

编写者:Bharat Mediratta

描述[ ]

该脚本允许你修改旧相册或g2data目录的权限,以使得你可以删除它们。

兼容性[ ]

Gallery1和Gallery2

用法[ ]

因为Gallery是作为web服务器的一部分运行的,任何其创建的文件 都为web服务器进程所有。如果你想自己修改这些文件的话, 你需要让web服务器修改这些文件的权限 这样你才有访问权。这正是该脚本出现的目的。

下载此文件,将其解压到web服务器上,也就是cleanup.php
用浏览器将其打卡,并输入你相册目录的路径 该脚本会让该路径下的所有文件变为所有人可写。

在此之后,你就可通过FTP客户端程序或shell来手动删除这些文件了。

下载[ ]

Download Cleanup-1.1.zip