<commit_before><?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: blog.php
| Author: <NAME> (Chan)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once file_exists('maincore.php') ? 'maincore.php' : __DIR__."/../../maincore.php";
if (!db_exists(DB_BLOG)) {
    redirect(BASEDIR."error.php?code=404");
}
require_once THEMES."templates/header.php";
require_once INCLUDES."infusions_include.php";
if (file_exists(INFUSIONS."blog/locale/".LOCALESET."blog.php")) {
    include INFUSIONS."blog/locale/".LOCALESET."blog.php";
} else {
    include INFUSIONS."blog/locale/English/blog.php";
}
require_once INFUSIONS."blog/classes/Functions.php";
require_once INFUSIONS."blog/classes/OpenGraphBlogs.php";
require_once INFUSIONS."blog/templates/blog.php";
require_once INCLUDES."infusions_include.php";

print_p($dear);
$settings = fusion_get_settings();

if ($settings['tinymce_enabled'] == 1) {
    $tinymce_list = array();
    $image_list = makefilelist(IMAGES, ".|..|");
    $image_filter = array('png', 'PNG', 'bmp', 'BMP', 'jpg', 'JPG', 'jpeg', 'gif', 'GIF', 'tiff', 'TIFF');
    foreach ($image_list as $image_name) {
        $image_1 = explode('.', $image_name);
        $last_str = count($image_1) - 1;
        if (in_array($image_1[$last_str], $image_filter)) {
            $tinymce_list[] = array('title' => $image_name, 'value' => IMAGES.$image_name);
        }
    }
    $tinymce_list = json_encode($tinymce_list);
}

$blog_settings = get_settings("blog");
add_to_title($locale['global_200'].\PHPFusion\SiteLinks::get_current_SiteLinks("", "link_name"));
\PHPFusion\BreadCrumbs::getInstance()->addBreadCrumb(['link' => INFUSIONS.'blog/blog.php', 'title' => \PHPFusion\SiteLinks::get_current_SiteLinks("", "link_name")]);
$_GET['cat_id'] = isset($_GET['cat_id']) && isnum($_GET['cat_id']) ? $_GET['cat_id'] : NULL;
$result = NULL;
$info = array(
    'blog_title'            => $locale['blog_1000'],
    'blog_updated'          => '',
    'blog_image'            => '',
    'blog_language'         => LANGUAGE,
    'blog_categories'       => get_blogCatsData(),
    'blog_categories_index' => get_blogCatsIndex(),
    'allowed_filters'       => array(
        'recent'  => $locale['blog_2001'],
        'comment' => $locale['blog_2002'],<commit_msg>Fix Error Logs in permalink<commit_after><?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: blog.php
| Author: <NAME> (Chan)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once file_exists('maincore.php') ? 'maincore.php' : __DIR__."/../../maincore.php";
if (!db_exists(DB_BLOG)) {
    redirect(BASEDIR."error.php?code=404");
}
require_once THEMES."templates/header.php";
require_once INCLUDES."infusions_include.php";
if (file_exists(INFUSIONS."blog/locale/".LOCALESET."blog.php")) {
    include INFUSIONS."blog/locale/".LOCALESET."blog.php";
} else {
    include INFUSIONS."blog/locale/English/blog.php";
}
require_once INFUSIONS."blog/classes/Functions.php";
require_once INFUSIONS."blog/classes/OpenGraphBlogs.php";
require_once INFUSIONS."blog/templates/blog.php";
require_once INCLUDES."infusions_include.php";

$settings = fusion_get_settings();

if ($settings['tinymce_enabled'] == 1) {
    $tinymce_list = array();
    $image_list = makefilelist(IMAGES, ".|..|");
    $image_filter = array('png', 'PNG', 'bmp', 'BMP', 'jpg', 'JPG', 'jpeg', 'gif', 'GIF', 'tiff', 'TIFF');
    foreach ($image_list as $image_name) {
        $image_1 = explode('.', $image_name);
        $last_str = count($image_1) - 1;
        if (in_array($image_1[$last_str], $image_filter)) {
            $tinymce_list[] = array('title' => $image_name, 'value' => IMAGES.$image_name);
        }
    }
    $tinymce_list = json_encode($tinymce_list);
}

$blog_settings = get_settings("blog");
add_to_title($locale['global_200'].\PHPFusion\SiteLinks::get_current_SiteLinks("", "link_name"));
\PHPFusion\BreadCrumbs::getInstance()->addBreadCrumb(['link' => INFUSIONS.'blog/blog.php', 'title' => \PHPFusion\SiteLinks::get_current_SiteLinks("", "link_name")]);
$_GET['cat_id'] = isset($_GET['cat_id']) && isnum($_GET['cat_id']) ? $_GET['cat_id'] : NULL;
$result = NULL;
$info = array(
    'blog_title'            => $locale['blog_1000'],
    'blog_updated'          => '',
    'blog_image'            => '',
    'blog_language'         => LANGUAGE,
    'blog_categories'       => get_blogCatsData(),
    'blog_categories_index' => get_blogCatsIndex(),
    'allowed_filters'       => array(
        'recent'  => $locale['blog_2001'],
        'comment' => $locale['blog_2002'],
{'fraction_non_alphanumeric': 0.24115197779319916, 'fraction_numerical': 0.007980569049271339, 'mean_word_length': 2.981353591160221, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 33, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6402092', 'n_tokens_mistral': 1892, 'n_tokens_neox': 1823, 'n_words': 342}