1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel 2022-04-12 07:29:40 -03:00
parent 5145392902
commit 15990fea2b
2 changed files with 13 additions and 6 deletions

View file

@ -1,4 +1,3 @@
<link href="<?php echo getCDN(); ?>view/js/bootstrap3-wysiwyg/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css"/>
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"><?php echo __("Email All Users"); ?></div> <div class="panel-heading"><?php echo __("Email All Users"); ?></div>
<div class="panel-body"> <div class="panel-body">

View file

@ -8007,9 +8007,6 @@ function _ob_start($force=false) {
function _ob_get_clean() { function _ob_get_clean() {
if (!ob_get_level()) {
return '';
}
$content = ob_get_clean(); $content = ob_get_clean();
ob_clean(); ob_clean();
return $content; return $content;
@ -8022,14 +8019,25 @@ function getIncludeFileContent($filePath, $varsArray=array()){
$$key = $value; $$key = $value;
} }
_ob_start(); _ob_start();
if(!ob_get_level()){
_ob_start(true);
}
if(!ob_get_level()){
include $filePath;
return '';
}
$__out = _ob_get_clean(); $__out = _ob_get_clean();
//_ob_start(); //_ob_start();
$basename = basename($filePath); $basename = basename($filePath);
$return = "<!-- {$basename} start -->"; $return = "<!-- {$basename} start -->";
include $filePath; include $filePath;
_ob_start(); _ob_start();
$return .= _ob_get_clean(); $returnOB = _ob_get_clean();
$return .= "<!-- {$basename} end -->"; if(empty($returnOB)){
var_dump(ob_get_level(), $filePath, $varsArray);
exit;
}
$return .= "{$returnOB}<!-- {$basename} end -->";
echo $__out; echo $__out;
return $return; return $return;
} }