aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Zot/Verify.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-07 17:56:02 -0700
committerzotlabs <mike@macgirvin.com>2017-09-07 17:56:02 -0700
commit61f339a874784d3181f4c884bab9994ec9200f50 (patch)
treebd8236627c98408d3d0c898286e5adc0faf27336 /Zotlabs/Zot/Verify.php
parent23e774db8ea25ba8eb8d8d5d6731622998534bbc (diff)
downloadvolse-hubzilla-61f339a874784d3181f4c884bab9994ec9200f50.tar.gz
volse-hubzilla-61f339a874784d3181f4c884bab9994ec9200f50.tar.bz2
volse-hubzilla-61f339a874784d3181f4c884bab9994ec9200f50.zip
owa - first commit
Diffstat (limited to 'Zotlabs/Zot/Verify.php')
-rw-r--r--Zotlabs/Zot/Verify.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/Zotlabs/Zot/Verify.php b/Zotlabs/Zot/Verify.php
index 06bd3188c..1f1288aa0 100644
--- a/Zotlabs/Zot/Verify.php
+++ b/Zotlabs/Zot/Verify.php
@@ -31,6 +31,22 @@ class Verify {
return false;
}
+
+ function get_meta($type,$channel_id,$token) {
+ $r = q("select id from verify where vtype = '%s' and channel = %d and token = '%s' limit 1",
+ dbesc($type),
+ intval($channel_id),
+ dbesc($token)
+ );
+ if($r) {
+ q("delete from verify where id = %d",
+ intval($r[0]['id'])
+ );
+ return $r[0]['meta'];
+ }
+ return false;
+ }
+
function purge($type,$interval) {
q("delete from verify where vtype = '%s' and created < %s - INTERVAL %s",
dbesc($type),