From f1f560452d391e6f1674ec005ddd374ff36e5c5b Mon Sep 17 00:00:00 2001 From: dignajar Date: Sun, 14 Feb 2016 18:53:37 -0300 Subject: [PATCH] Themes updates --- bl-kernel/admin/views/settings-general.php | 9 ++++++ bl-kernel/boot/init.php | 4 +-- bl-kernel/dbsite.class.php | 6 ++++ bl-themes/blogme/php/sidebar.php | 35 +++++++++++++++------- bl-themes/future-imperfect/php/sidebar.php | 29 +++++++++++++++++- 5 files changed, 69 insertions(+), 14 deletions(-) diff --git a/bl-kernel/admin/views/settings-general.php b/bl-kernel/admin/views/settings-general.php index 6724abe5..af3d609e 100644 --- a/bl-kernel/admin/views/settings-general.php +++ b/bl-kernel/admin/views/settings-general.php @@ -73,6 +73,15 @@ HTML::formOpen(array('class'=>'uk-form-horizontal')); 'tip'=>'' )); + HTML::formInputText(array( + 'name'=>'instagram', + 'label'=>'Instagram', + 'value'=>$Site->googlePlus(), + 'class'=>'uk-width-1-2 uk-form-medium', + 'placeholder'=>'https://www.instagram.com/USERNAME', + 'tip'=>'' + )); + HTML::formInputText(array( 'name'=>'github', 'label'=>'Github', diff --git a/bl-kernel/boot/init.php b/bl-kernel/boot/init.php index d754fb61..cb0d7b36 100644 --- a/bl-kernel/boot/init.php +++ b/bl-kernel/boot/init.php @@ -56,8 +56,8 @@ if(!defined('JSON_PRETTY_PRINT')) { define('JSON_PRETTY_PRINT', 128); } -// Alert status ok -define('CHECK_SYMBOLIC_LINKS', FALSE); +// Protecting against Symlink attacks. +define('CHECK_SYMBOLIC_LINKS', TRUE); // Alert status ok define('ALERT_STATUS_OK', 0); diff --git a/bl-kernel/dbsite.class.php b/bl-kernel/dbsite.class.php index d4bdaec7..44604664 100644 --- a/bl-kernel/dbsite.class.php +++ b/bl-kernel/dbsite.class.php @@ -27,6 +27,7 @@ class dbSite extends dbJSON 'twitter'=> array('inFile'=>false, 'value'=>''), 'facebook'=> array('inFile'=>false, 'value'=>''), 'googlePlus'=> array('inFile'=>false, 'value'=>''), + 'instagram'=> array('inFile'=>false, 'value'=>''), 'github'=> array('inFile'=>false, 'value'=>'') ); @@ -115,6 +116,11 @@ class dbSite extends dbJSON return $this->getField('facebook'); } + public function instagram() + { + return $this->getField('instagram'); + } + public function github() { return $this->getField('github'); diff --git a/bl-themes/blogme/php/sidebar.php b/bl-themes/blogme/php/sidebar.php index 0de354fd..61a48606 100644 --- a/bl-themes/blogme/php/sidebar.php +++ b/bl-themes/blogme/php/sidebar.php @@ -11,18 +11,31 @@ \ No newline at end of file diff --git a/bl-themes/future-imperfect/php/sidebar.php b/bl-themes/future-imperfect/php/sidebar.php index 2d262c71..9980a473 100644 --- a/bl-themes/future-imperfect/php/sidebar.php +++ b/bl-themes/future-imperfect/php/sidebar.php @@ -11,5 +11,32 @@ + \ No newline at end of file