summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-30 13:43:10 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-30 13:43:10 -0400
commitbf5ae8e69a971b6310641f5a963292a64609d0e8 (patch)
tree73cdf4e079c324f332f02362d52fc846e0286ff3 /lib
parentf8a070394f8d9ba9bd5eab4bcf7eab628ceb852b (diff)
remotesubscribe form
darcs-hash:20080530174310-84dde-1e05966eb48573ced8e73acf3f3b59e7bc4f1170.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/common.php2
-rw-r--r--lib/util.php7
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/common.php b/lib/common.php
index 1954dfc2a..6ff40ab5f 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -17,8 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-/* XXX: break up into separate modules (HTTP, HTML, user, files) */
-
if (!defined('LACONICA')) { exit(1); }
define('AVATAR_PROFILE_SIZE', 96);
diff --git a/lib/util.php b/lib/util.php
index 72876cef7..126801126 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -238,6 +238,13 @@ function common_input($id, $label, $value=NULL) {
common_element_end('p');
}
+function common_hidden($id, $value) {
+ common_element('input', array('name' => $id,
+ 'type' => 'hidden',
+ 'id' => $id,
+ 'value' => $value));
+}
+
function common_password($id, $label) {
common_element_start('p');
common_element('label', array('for' => $id), $label);