From f0dac81b089845c31012604493104787ac60e52d Mon Sep 17 00:00:00 2001 From: Abdulrahman Date: Wed, 6 Feb 2019 00:26:50 +0300 Subject: [PATCH] fixes --- includes/mysqli.php | 3 ++- includes/style.php | 11 +++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/includes/mysqli.php b/includes/mysqli.php index 2d9e727..72cfbd5 100755 --- a/includes/mysqli.php +++ b/includes/mysqli.php @@ -435,7 +435,8 @@ class KleejaDatabase { $updating_related = true; } - + + header('HTTP/1.1 500 Internal Server Error'); $error_message = "ERROR IM MYSQL"; $error_message .= ""; $error_message .= '
'; diff --git a/includes/style.php b/includes/style.php index 7b83121..5af9a71 100755 --- a/includes/style.php +++ b/includes/style.php @@ -144,7 +144,7 @@ class kleeja_style '//iU' => 'display("\\2"); ?>', '//iU' => '', '//iU' => '', - '/(|)/i' => '', + '/(|)/i' => '', '/(.*?)<\/ODD\>/is' => " \\2 ", '/(.*?)<\/EVEN>/is' => " \\2 ", '//is' => "", @@ -227,7 +227,14 @@ class kleeja_style */ protected function _vars_callback($matches) { - return ''; + $variable = call_user_func(array('kleeja_style', '_var_callback'), $matches); + + if(strpos($matches[0], '{lang') !== false || strpos($matches[0], '{olang') !== false) + { + return ''; + } + + return ''; }