summaryrefslogtreecommitdiffstats
path: root/inc/image.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2015-03-03 19:01:30 +0100
committerSimon Rettberg2015-03-03 19:01:30 +0100
commitc90c7bfb5d72d327e6fe8fb3a85d852ec1ee94a4 (patch)
tree3d6ed553f0308dbd315b6e43785b55e429ec037b /inc/image.inc.php
parentSecond Commit (diff)
downloadbwlp-webadmin-c90c7bfb5d72d327e6fe8fb3a85d852ec1ee94a4.tar.gz
bwlp-webadmin-c90c7bfb5d72d327e6fe8fb3a85d852ec1ee94a4.tar.xz
bwlp-webadmin-c90c7bfb5d72d327e6fe8fb3a85d852ec1ee94a4.zip
Third Commit
Diffstat (limited to 'inc/image.inc.php')
-rw-r--r--inc/image.inc.php14
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));
+ }
+
+}
+