aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-08-04 20:03:38 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-08-04 20:03:38 -0700
commitd090033a0aab7197af9dc7f3e2cf21ebdf042b21 (patch)
treedb177b9ce7292b8972a29efcb85f83a3b2dc6470 /include
parent3540ada84ff9c64a0c4f8354cbc69032281907f2 (diff)
downloadvolse-hubzilla-d090033a0aab7197af9dc7f3e2cf21ebdf042b21.tar.gz
volse-hubzilla-d090033a0aab7197af9dc7f3e2cf21ebdf042b21.tar.bz2
volse-hubzilla-d090033a0aab7197af9dc7f3e2cf21ebdf042b21.zip
more photo progress
Diffstat (limited to 'include')
-rw-r--r--include/Photo.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/Photo.php b/include/Photo.php
index 95ccccc88..b8557e7ec 100644
--- a/include/Photo.php
+++ b/include/Photo.php
@@ -167,5 +167,32 @@ class Photo {
}
+
+ public function store($uid, $cid, $rid, $filename, $album, $scale, $profile = 0) {
+
+ $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 )",
+ intval($uid),
+ intval($cid),
+ dbesc($rid),
+ dbesc(datetime_convert()),
+ dbesc(datetime_convert()),
+ dbesc(basename($filename)),
+ dbesc($album),
+ intval($this->height),
+ intval($this->width),
+ dbesc($this->imageString()),
+ intval($scale),
+ intval($profile)
+ );
+ return $r;
+ }
+
+
+
+
+
}}
+