From adce88e564f2e9a6c8487bf23762afe1413ed263 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sat, 7 Aug 2010 06:20:27 -0700 Subject: photo editing --- include/Photo.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'include') 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; } -- cgit v1.2.3