From a86ae3efc32fb6b1b7874c41f171782b09fa54dc Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Mon, 26 Jul 2021 16:09:51 +0900 Subject: [PATCH] DB IO updates for settings return, Smarty Extended update Update core template main body with better position for overlib init, pagename div id add, remove px from any size call (width) DB IO adds return for config settings, fix db async check to always return boolean only, add had error variable return method Some minor fixes in Smarty Extended for some legacy admin page variables needed. Update Error reporting to be self containing with defines --- www/admin/class_test.smarty.php | 1 + www/configs/config.master.php | 4 +-- www/configs/config.other.php | 2 +- www/includes/templates/admin/main_body.tpl | 10 +++--- www/lib/CoreLibs/DB/IO.php | 37 ++++++++++++++++++++-- www/lib/CoreLibs/Template/SmartyExtend.php | 11 ++++--- www/lib/Error.Handling.php | 28 ++++++++-------- www/lib/autoloader.php | 2 +- 8 files changed, 64 insertions(+), 31 deletions(-) diff --git a/www/admin/class_test.smarty.php b/www/admin/class_test.smarty.php index c82b6bd1..a5eb892a 100644 --- a/www/admin/class_test.smarty.php +++ b/www/admin/class_test.smarty.php @@ -84,6 +84,7 @@ $options = [ ]; $smarty->DATA['drop_down_test'] = $options; +$smarty->DATA['drop_down_test_selected'] = ''; $smarty->DATA['loop_start'] = 2; // require BASE.INCLUDES.'admin_smarty.php'; $smarty->setSmartyVarsAdmin(); diff --git a/www/configs/config.master.php b/www/configs/config.master.php index 923bc2f2..66e7d9bf 100644 --- a/www/configs/config.master.php +++ b/www/configs/config.master.php @@ -133,8 +133,8 @@ define('USE_SCRIPTACULOUS', false); define('USE_JQUERY', true); /************* LAYOUT WIDTHS *************/ -define('PAGE_WIDTH', 800); -define('CONTENT_WIDTH', 800); +define('PAGE_WIDTH', '100%'); +define('CONTENT_WIDTH', '100%'); // the default template name define('MASTER_TEMPLATE_NAME', 'main_body.tpl'); diff --git a/www/configs/config.other.php b/www/configs/config.other.php index 3626b48a..9d0dedaa 100755 --- a/www/configs/config.other.php +++ b/www/configs/config.other.php @@ -10,7 +10,7 @@ declare(strict_types=1); -// DEFINE('SOME_ID', ); +// define('SOME_ID', ); /************* CONVERT *******************/ // this only needed if the external thumbnail create is used diff --git a/www/includes/templates/admin/main_body.tpl b/www/includes/templates/admin/main_body.tpl index 21aac0ba..7a109118 100644 --- a/www/includes/templates/admin/main_body.tpl +++ b/www/includes/templates/admin/main_body.tpl @@ -100,10 +100,10 @@ {/if} - {popup_init src="`$js`/overlib/overlib.js"} -
+{popup_init src="`$js`/overlib/overlib.js"} +