Remove old unused code

This commit is contained in:
FusionPBX
2025-10-18 07:50:26 -06:00
committed by GitHub
parent 7ac3a37a4e
commit 926254e7d0
2 changed files with 1 additions and 46 deletions

View File

@@ -33,9 +33,6 @@
$settings = new settings(['database' => $database, 'domain_uuid' => $domain_uuid, 'user_uuid' => $user_uuid]);
//set variables if not set
//if (!isset($_SESSION["template_content"])) { $_SESSION["template_content"] = null; }
if (!isset($document)) { $document = null; }
if (!isset($v_menu)) { $v_menu = null; }
if (!isset($_SESSION["menu"])) { $_SESSION["menu"] = null; }
if (!isset($_SESSION["username"])) { $_SESSION["username"] = null; }
@@ -46,14 +43,9 @@
$domain_count = count($domains);
//get the output from the buffer
$body = ($content_from_db ?? '').ob_get_contents();
$body = ob_get_contents();
ob_end_clean(); //clean the buffer
//clear the template
//if (!$settings->get('theme', 'cache', false)) {
// $_SESSION["template_content"] = '';
//}
//set a default template
if (empty($_SESSION["template_full_path"])) { //build template if session template has no length
//set the template base path

View File

@@ -79,43 +79,6 @@
$_SESSION["menu_item_parent_uuid"] = $database->select($sql, $parameters, 'column');
unset($sql, $parameters);
//get the content
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/content/app_config.php")) {
$sql = "select * from v_rss ";
$sql .= "where domain_uuid = :domain_uuid ";
$sql .= "and rss_category = 'content' ";
$sql .= "and rss_link = :content ";
$sql .= "and ( ";
$sql .= "length(rss_del_date) = 0 ";
$sql .= "or rss_del_date is null ";
$sql .= ") ";
$sql .= "order by rss_order asc ";
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
$parameters['content'] = empty($content) ? $_SERVER["PHP_SELF"] : $content;
$content_result = $database->select($sql, $parameters, 'all');
if (is_array($content_result) && @sizeof($content_result) != 0) {
foreach($content_result as $content_row) {
$template_rss_sub_category = $content_row['rss_sub_category'];
if (empty($content_row['rss_group'])) {
//content is public
$content_from_db = &$content_row['rss_description'];
if (!empty($content_row['rss_title'])) {
$page["title"] = $content_row['rss_title'];
}
}
else {
if (if_group($content_row[rss_group])) { //viewable only to designated group
$content_from_db = &$content_row[rss_description];
if (!empty($content_row['rss_title'])) {
$page["title"] = $content_row['rss_title'];
}
}
}
}
}
unset($sql, $parameters, $content_result, $content_row);
}
//button css class and styles
$button_icon_class = '';
$button_icon_style = 'padding: 3px;';