aboutsummaryrefslogtreecommitdiffstats
path: root/include/Photo.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-08-07 06:20:27 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-08-07 06:20:27 -0700
commitadce88e564f2e9a6c8487bf23762afe1413ed263 (patch)
treeb789d38aad78dd76c3638227af73a9212688731a /include/Photo.php
parentedff5b5289f80be89e4fc6b072ccd84812960349 (diff)
downloadvolse-hubzilla-adce88e564f2e9a6c8487bf23762afe1413ed263.tar.gz
volse-hubzilla-adce88e564f2e9a6c8487bf23762afe1413ed263.tar.bz2
volse-hubzilla-adce88e564f2e9a6c8487bf23762afe1413ed263.zip
photo editing
Diffstat (limited to 'include/Photo.php')
-rw-r--r--include/Photo.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/Photo.php b/include/Photo.php
index b8557e7ec..0f5003a6f 100644
--- a/include/Photo.php
+++ b/include/Photo.php
@@ -168,11 +168,12 @@ class Photo {
- public function store($uid, $cid, $rid, $filename, $album, $scale, $profile = 0) {
+ public function store($uid, $cid, $rid, $filename, $album, $scale,
+ $profile = 0, $allow_cid = '', $allow_gid = '', $deny_cid = '', $deny_gid = '') {
$r = q("INSERT INTO `photo`
- ( `uid`, `contact-id`, `resource-id`, `created`, `edited`, `filename`, `album`, `height`, `width`, `data`, `scale`, `profile` )
- VALUES ( %d, %d, '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', %d, %d )",
+ ( `uid`, `contact-id`, `resource-id`, `created`, `edited`, `filename`, `album`, `height`, `width`, `data`, `scale`, `profile`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid` )
+ VALUES ( %d, %d, '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', %d, %d, '%s', '%s', '%s', '%s' )",
intval($uid),
intval($cid),
dbesc($rid),
@@ -184,7 +185,11 @@ class Photo {
intval($this->width),
dbesc($this->imageString()),
intval($scale),
- intval($profile)
+ intval($profile),
+ dbesc($allow_cid),
+ dbesc($allow_gid),
+ dbesc($deny_cid),
+ dbesc($deny_gid)
);
return $r;
}