diff options
Diffstat (limited to 'inc/image.inc.php')
-rw-r--r-- | inc/image.inc.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/inc/image.inc.php b/inc/image.inc.php new file mode 100644 index 0000000..2c0ec74 --- /dev/null +++ b/inc/image.inc.php @@ -0,0 +1,14 @@ +<?php + +class Image +{ + + public static function deleteOwnedBy($userid) + { + if ($userid === false || !is_numeric($userid)) + return false; + return Database::exec('DELETE FROM image WHERE ownerid = :userid', array('userid' => $userid)); + } + +} + |