aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/about.tpl14
-rw-r--r--view/acl_selectors.php138
-rw-r--r--view/atom_cmnt.tpl21
-rw-r--r--view/atom_item.tpl28
-rw-r--r--view/atom_tomb.tpl3
5 files changed, 0 insertions, 204 deletions
diff --git a/view/about.tpl b/view/about.tpl
deleted file mode 100644
index fa3d49cb7..000000000
--- a/view/about.tpl
+++ /dev/null
@@ -1,14 +0,0 @@
-
-<div id="about-jot-wrapper" >
-<p id="about-jot-desc" >
-Tell us about yourself.
-</p>
-
-<textarea rows="15" cols="72" id="profile-jot-text" name="body" >$about</textarea>
-
-</div>
-<div id="about-jot-submit-wrapper" >
-<input type="submit" id="about-jot-submit" name="submit" value="Submit" />
-</div>
-<div id="profile-jot-end"></div>
-</div>
diff --git a/view/acl_selectors.php b/view/acl_selectors.php
deleted file mode 100644
index 9bbd6bcb4..000000000
--- a/view/acl_selectors.php
+++ /dev/null
@@ -1,138 +0,0 @@
-<?php
-
-
-function group_select($selname,$selclass,$preselected = false,$size = 4) {
-
- $o = '';
-
- $o .= "<select name=\"{$selname}[]\" id=\"$selclass\" class=\"$selclass\" multiple=\"multiple\" size=\"$size\" >\r\n";
-
- $r = q("SELECT * FROM `group` WHERE `deleted` = 0 AND `uid` = %d ORDER BY `name` ASC",
- $_SESSION['uid']
- );
-
- if(count($r)) {
- foreach($r as $rr) {
- if((is_array($preselected)) && in_array($rr['id'], $preselected))
- $selected = " selected=\"selected\" ";
- else
- $selected = '';
-
- $o .= "<option value=\"{$rr['id']}\" $selected >{$rr['name']}</option>\r\n";
- }
-
- }
- $o .= "</select>\r\n";
-
-
- return $o;
-}
-
-
-
-function contact_select($selname, $selclass, $preselected = false, $size = 4, $privmail = false, $celeb = false) {
-
- $o = '';
-
- // When used for private messages, we limit correspondence to mutual friends and the selector
- // to one recipient. By default our selector allows multiple selects amongst all contacts.
-
- $sql_extra = '';
-
- if($privmail || $celeb) {
- $sql_extra = sprintf(" AND `rel` = %d ", intval(REL_BUD));
- }
-
- if($privmail)
- $o .= "<select name=\"$selname\" id=\"$selclass\" class=\"$selclass\" size=\"$size\" >\r\n";
- else
- $o .= "<select name=\"{$selname}[]\" id=\"$selclass\" class=\"$selclass\" multiple=\"multiple\" size=\"$size\" >\r\n";
-
- $r = q("SELECT `id`, `name`, `url`, `network` FROM `contact`
- WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `pending` = 0
- $sql_extra
- ORDER BY `name` ASC ",
- intval(local_user())
- );
-
- if(count($r)) {
- foreach($r as $rr) {
- if((is_array($preselected)) && in_array($rr['id'], $preselected))
- $selected = " selected=\"selected\" ";
- else
- $selected = '';
- if(($privmail) && ($rr['network'] === 'stat'))
- $disabled = ' disabled="true" ' ;
- else
- $disabled = '';
- $o .= "<option value=\"{$rr['id']}\" $selected $disabled title=\"{$rr['url']}\" >{$rr['name']}</option>\r\n";
- }
-
- }
- $o .= "</select>\r\n";
-
-
- return $o;
-}
-
-function fixacl(&$item) {
- $item = intval(str_replace(array('<','>'),array('',''),$item));
-}
-
-function populate_acl($user = null,$celeb = false) {
-
- $allow_cid = $allow_gid = $deny_cid = $deny_gid = false;
-
- if(is_array($user)) {
- $allow_cid = ((strlen($user['allow_cid']))
- ? explode('><', $user['allow_cid']) : array() );
- $allow_gid = ((strlen($user['allow_gid']))
- ? explode('><', $user['allow_gid']) : array() );
- $deny_cid = ((strlen($user['deny_cid']))
- ? explode('><', $user['deny_cid']) : array() );
- $deny_gid = ((strlen($user['deny_gid']))
- ? explode('><', $user['deny_gid']) : array() );
- array_walk($allow_cid,'fixacl');
- array_walk($allow_gid,'fixacl');
- array_walk($deny_cid,'fixacl');
- array_walk($deny_gid,'fixacl');
- }
-
- $o = '';
- $o .= '<div id="acl-wrapper">';
- $o .= '<div id="acl-permit-outer-wrapper">';
- $o .= '<div id="acl-permit-text">' . t('Visible To:') . '</div>';
- $o .= '<div id="acl-permit-text-end"></div>';
- $o .= '<div id="acl-permit-wrapper">';
- $o .= '<div id="group_allow_wrapper">';
- $o .= '<label id="acl-allow-group-label" for="group_allow" >' . t('Groups') . '</label>';
- $o .= group_select('group_allow','group_allow',$allow_gid);
- $o .= '</div>';
- $o .= '<div id="contact_allow_wrapper">';
- $o .= '<label id="acl-allow-contact-label" for="contact_allow" >' . t('Contacts') . '</label>';
- $o .= contact_select('contact_allow','contact_allow',$allow_cid,4,false,$celeb);
- $o .= '</div>';
- $o .= '</div>' . "\r\n";
- $o .= '<div id="acl-allow-end"></div>' . "\r\n";
- $o .= '</div>';
- $o .= '<div id="acl-deny-outer-wrapper">';
- $o .= '<div id="acl-deny-text">' . t('Except For:') . '</div>';
- $o .= '<div id="acl-deny-text-end"></div>';
- $o .= '<div id="acl-deny-wrapper">';
- $o .= '<div id="group_deny_wrapper" >';
- $o .= '<label id="acl-deny-group-label" for="group_deny" >' . t('Groups') . '</label>';
- $o .= group_select('group_deny','group_deny', $deny_gid);
- $o .= '</div>';
- $o .= '<div id="contact_deny_wrapper" >';
- $o .= '<label id="acl-deny-contact-label" for="contact_deny" >' . t('Contacts') . '</label>';
- $o .= contact_select('contact_deny','contact_deny', $deny_cid,4,false, $celeb);
- $o .= '</div>';
- $o .= '</div>' . "\r\n";
- $o .= '<div id="acl-deny-end"></div>' . "\r\n";
- $o .= '</div>';
- $o .= '</div>' . "\r\n";
- $o .= '<div id="acl-wrapper-end"></div>' . "\r\n";
- return $o;
-
-}
-
diff --git a/view/atom_cmnt.tpl b/view/atom_cmnt.tpl
deleted file mode 100644
index b70a6dc4e..000000000
--- a/view/atom_cmnt.tpl
+++ /dev/null
@@ -1,21 +0,0 @@
- <entry>
- <author>
- <name>$name</name>
- <uri>$profile_page</uri>
- <link rel="photo" type="image/jpeg" media:width="80" media:height="80" href="$thumb" />
- <link rel="avatar" type="image/jpeg" media:width="80" media:height="80" href="$thumb" />
- </author>
-
- <thr:in-reply-to ref="$parent_id" />
- <id>$item_id</id>
- <title>$title</title>
- <published>$published</published>
- <updated>$updated</updated>
- <content type="$type" >$content</content>
- <link rel="alternate" href="$alt" />
- <dfrn:comment-allow>$comment_allow</dfrn:comment-allow>
- <as:verb>$verb</as:verb>
- $actobj
- $mentioned
- </entry>
-
diff --git a/view/atom_item.tpl b/view/atom_item.tpl
deleted file mode 100644
index 0d36b579d..000000000
--- a/view/atom_item.tpl
+++ /dev/null
@@ -1,28 +0,0 @@
- <entry>
- <author>
- <name>$name</name>
- <uri>$profile_page</uri>
- <link rel="photo" type="image/jpeg" media:width="80" media:height="80" href="$thumb" />
- <link rel="avatar" type="image/jpeg" media:width="80" media:height="80" href="$thumb" />
- </author>
- <dfrn:owner>
- <name>$owner_name</name>
- <uri>$owner_profile_page</uri>
- <link rel="photo" type="image/jpeg" media:width="80" media:height="80" href="$owner_thumb" />
- <link rel="avatar" type="image/jpeg" media:width="80" media:height="80" href="$owner_thumb" />
- </dfrn:owner>
-
- <id>$item_id</id>
- <title>$title</title>
- <published>$published</published>
- <updated>$updated</updated>
- <content type="$type" >$content</content>
- <link rel="alternate" href="$alt" />
- <dfrn:location>$location</dfrn:location>
- <georss:point>$coord</georss:point>
- <dfrn:comment-allow>$comment_allow</dfrn:comment-allow>
- <as:verb>$verb</as:verb>
- $actobj
- $mentioned
-
- </entry>
diff --git a/view/atom_tomb.tpl b/view/atom_tomb.tpl
deleted file mode 100644
index 99e1b943a..000000000
--- a/view/atom_tomb.tpl
+++ /dev/null
@@ -1,3 +0,0 @@
-
- <at:deleted-entry ref="$id" when="$updated" />
-