From 34a0d86c926e4e572d2590981ef2d94eee8e1494 Mon Sep 17 00:00:00 2001 From: Batuhan Icoz Date: Thu, 20 Oct 2011 17:51:57 +0300 Subject: [PATCH] added email property --- index.php | 7 ++++--- users/batu.json | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 5c96bc01..b174a6e0 100644 --- a/index.php +++ b/index.php @@ -42,6 +42,9 @@ if (property_exists($user, 'url')) { $holder = '' . $holder . ''; } + if (property_exists($user, 'email')) { + $holder = $holder . ' <' . $user->email . '>'; + } if (property_exists($user, 'format')) { if (strtolower($user->format) == 'txt') { @@ -111,6 +114,4 @@ header('content-type: text/plain'); } -echo $license; - -?> +echo $license; \ No newline at end of file diff --git a/users/batu.json b/users/batu.json index 8551ad4c..3b2307ca 100644 --- a/users/batu.json +++ b/users/batu.json @@ -1,4 +1,5 @@ { "copyright": "Batuhan Icoz, http://batu.me/1", - "url": "http://batu.me/1" + "url": "http://batu.me/1", + "email": "i@batu.me" } \ No newline at end of file