added 'home' extension from bzchan

git-svn-id: file:///home/shish/svn/shimmie2/trunk@165 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2007-06-26 18:01:12 +00:00
parent 3c1916f428
commit 464b5ab4ec
13 changed files with 146 additions and 0 deletions

View File

@ -38,6 +38,17 @@ class AdminUtils extends Extension {
global $database;
$database->execute("UPDATE tags SET tag=lower(tag)");
}
private function check_for_orphanned_images() {
$orphans = array();
foreach(glob("images/*") as $dir) {
foreach(glob("$dir/*") as $file) {
$hash = str_replace("$dir/", "", $file);
if(!$this->db_has_hash($hash)) {
$orphans[] = $hash;
}
}
}
}
// }}}
// admin page HTML {{{
private function build_form() {