From c37eaff26331c49a2c8754f6d49c6145863f47ca Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 24 May 2016 23:05:00 -0700 Subject: require token signatures in zot_refresh, also move channel specific stuff into include/channel.php from include/connections.php --- include/connections.php | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'include/connections.php') diff --git a/include/connections.php b/include/connections.php index d9331f42f..d18383fad 100644 --- a/include/connections.php +++ b/include/connections.php @@ -48,27 +48,6 @@ function abook_self($channel_id) { return(($r) ? $r[0] : array()); } -function channelx_by_nick($nick) { - $r = q("SELECT * FROM channel left join xchan on channel_hash = xchan_hash WHERE channel_address = '%s' and channel_removed = 0 LIMIT 1", - dbesc($nick) - ); - return(($r) ? $r[0] : false); -} - -function channelx_by_hash($hash) { - $r = q("SELECT * FROM channel left join xchan on channel_hash = xchan_hash WHERE channel_hash = '%s' and channel_removed = 0 LIMIT 1", - dbesc($hash) - ); - return(($r) ? $r[0] : false); -} - -function channelx_by_n($id) { - $r = q("SELECT * FROM channel left join xchan on channel_hash = xchan_hash WHERE channel_id = %d and channel_removed = 0 LIMIT 1", - dbesc($id) - ); - return(($r) ? $r[0] : false); -} - function vcard_from_xchan($xchan, $observer = null, $mode = '') { -- cgit v1.2.3