If the content manager is not installed don't require it.
This commit is contained in:
parent
b5fd5e245b
commit
4dd45b61b0
|
|
@ -87,41 +87,43 @@ require_once "resources/require.php";
|
||||||
unset($menu_prep_statement, $menu_result, $menu_row);
|
unset($menu_prep_statement, $menu_result, $menu_row);
|
||||||
|
|
||||||
//get the content
|
//get the content
|
||||||
$sql = "select * from v_rss ";
|
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/content/app_config.php")) {
|
||||||
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
|
$sql = "select * from v_rss ";
|
||||||
$sql .= "and rss_category = 'content' ";
|
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
|
||||||
if (strlen($content) == 0) {
|
$sql .= "and rss_category = 'content' ";
|
||||||
$sql .= "and rss_link = '".$_SERVER["PHP_SELF"]."' ";
|
if (strlen($content) == 0) {
|
||||||
}
|
$sql .= "and rss_link = '".$_SERVER["PHP_SELF"]."' ";
|
||||||
else {
|
|
||||||
$sql .= "and rss_link = '".$content."' ";
|
|
||||||
}
|
|
||||||
$sql .= "and (length(rss_del_date) = 0 ";
|
|
||||||
$sql .= "or rss_del_date is null) ";
|
|
||||||
$sql .= "order by rss_order asc ";
|
|
||||||
$content_prep_statement = $db->prepare(check_sql($sql));
|
|
||||||
$content_prep_statement->execute();
|
|
||||||
$result = $content_prep_statement->fetchAll(PDO::FETCH_NAMED);
|
|
||||||
$page["title"] = '';
|
|
||||||
foreach($content_result as $content_row) {
|
|
||||||
$template_rss_sub_category = $content_row['rss_sub_category'];
|
|
||||||
if (strlen($content_row['rss_group']) == 0) {
|
|
||||||
//content is public
|
|
||||||
$content_from_db = &$content_row['rss_description'];
|
|
||||||
if (strlen($content_row['rss_title']) > 0) {
|
|
||||||
$page["title"] = $content_row['rss_title'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (if_group($content_row[rss_group])) { //viewable only to designated group
|
$sql .= "and rss_link = '".$content."' ";
|
||||||
$content_from_db = &$content_row[rss_description];
|
}
|
||||||
|
$sql .= "and (length(rss_del_date) = 0 ";
|
||||||
|
$sql .= "or rss_del_date is null) ";
|
||||||
|
$sql .= "order by rss_order asc ";
|
||||||
|
$content_prep_statement = $db->prepare(check_sql($sql));
|
||||||
|
$content_prep_statement->execute();
|
||||||
|
$result = $content_prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||||
|
$page["title"] = '';
|
||||||
|
foreach($content_result as $content_row) {
|
||||||
|
$template_rss_sub_category = $content_row['rss_sub_category'];
|
||||||
|
if (strlen($content_row['rss_group']) == 0) {
|
||||||
|
//content is public
|
||||||
|
$content_from_db = &$content_row['rss_description'];
|
||||||
if (strlen($content_row['rss_title']) > 0) {
|
if (strlen($content_row['rss_title']) > 0) {
|
||||||
$page["title"] = $content_row['rss_title'];
|
$page["title"] = $content_row['rss_title'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
else {
|
||||||
} //end foreach
|
if (if_group($content_row[rss_group])) { //viewable only to designated group
|
||||||
unset($sql, $content_result, $content_row);
|
$content_from_db = &$content_row[rss_description];
|
||||||
|
if (strlen($content_row['rss_title']) > 0) {
|
||||||
|
$page["title"] = $content_row['rss_title'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} //end foreach
|
||||||
|
unset($sql, $content_result, $content_row);
|
||||||
|
}
|
||||||
|
|
||||||
//start the output buffer
|
//start the output buffer
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue