芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/network.digitalhubbd.com/layouts/landing_page/custom_page.php
]language_strings"] = ["custom_pages.string_constant" => "string_constant", "AND" => ["language_id" => Registry::load('current_user')->language]]; $where["custom_pages.page_id"] = Registry::load('config')->load_page; $where["custom_pages.disabled"] = 0; $where["LIMIT"] = 1; $custom_page = DB::connect()->select('custom_pages', $join, $columns, $where); if (isset($custom_page[0]) && $custom_page[0]['who_all_can_view_page'] !== 'all') { $who_all_can_view_page = json_decode($custom_page[0]['who_all_can_view_page']); if (!in_array(Registry::load('current_user')->site_role, $who_all_can_view_page)) { $page_accessible = false; } } if (isset($custom_page[0]) && $page_accessible) { $custom_page = $custom_page[0]; $columns = $join = $where = null; $columns = ['language_strings.string_value(page_content)']; $where["language_strings.language_id"] = Registry::load('current_user')->language; $where["language_strings.string_constant"] = 'custom_page_'.Registry::load('config')->load_page.'_content'; $where["LIMIT"] = 1; $page_content = DB::connect()->select('language_strings', $columns, $where); $featured_image = get_image(['from' => 'custom_pages', 'search' => Registry::load('config')->load_page]); if (isset($page_content[0])) { $page_content = $page_content[0]['page_content']; } else { $page_content = ''; } } else { redirect('404'); } ?>