From 2f9bd0b63b1d8a6d6f045424801d38e8e78e6579 Mon Sep 17 00:00:00 2001 From: dignajar Date: Fri, 11 Dec 2015 20:11:53 -0300 Subject: [PATCH] Added seconds to database time, Social fields for user profile --- kernel/boot/init.php | 2 +- kernel/dbusers.class.php | 6 +++++- plugins/about/plugin.php | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/kernel/boot/init.php b/kernel/boot/init.php index 20684580..5f7be501 100644 --- a/kernel/boot/init.php +++ b/kernel/boot/init.php @@ -75,7 +75,7 @@ define('JSON', function_exists('json_encode')); define('CLI_STATUS', 'published'); // Database format date -define('DB_DATE_FORMAT', 'Y-m-d H:i'); +define('DB_DATE_FORMAT', 'Y-m-d H:i:s'); // Date format for Dashboard schedule posts define('SCHEDULED_DATE_FORMAT', 'd M - h:i a'); diff --git a/kernel/dbusers.class.php b/kernel/dbusers.class.php index 569296fe..d9eaf1d0 100644 --- a/kernel/dbusers.class.php +++ b/kernel/dbusers.class.php @@ -12,7 +12,11 @@ class dbUsers extends dbJSON 'email'=> array('inFile'=>false, 'value'=>''), 'registered'=> array('inFile'=>false, 'value'=>'1985-03-15 10:00'), 'tokenEmail'=> array('inFile'=>false, 'value'=>''), - 'tokenEmailTTL'=> array('inFile'=>false, 'value'=>'2009-03-15 14:00') + 'tokenEmailTTL'=> array('inFile'=>false, 'value'=>'2009-03-15 14:00'), + 'twitterUsername'=> array('inFile'=>false, 'value'=>''), + 'facebookUsername'=> array('inFile'=>false, 'value'=>''), + 'googleUsername'=> array('inFile'=>false, 'value'=>''), + 'instagramUsername'=> array('inFile'=>false, 'value'=>'') ); function __construct() diff --git a/plugins/about/plugin.php b/plugins/about/plugin.php index 9168db40..34d2e4ab 100644 --- a/plugins/about/plugin.php +++ b/plugins/about/plugin.php @@ -36,7 +36,7 @@ class pluginAbout extends Plugin { $html = '
'; $html .= '

'.$this->getDbField('label').'

'; $html .= '
'; - $html .= $this->getDbField('text'); + $html .= nl2br($this->getDbField('text')); $html .= '
'; $html .= '
';