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:
@ -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() {
|
||||
|
Reference in New Issue
Block a user