<?php
// 网站基础配置
$config = array (
  'api' => 
  array (
    'apiurl' => '',
    'skid' => '',
    'skey' => '',
    'stype' => 'md5',
  ),
  'site' => 
  array (
    'name' => '文煞CMS（api版）',
    'description' => '文煞CMS由文煞研发，目的是让你直接调用Zblog数据，独特的api接口CMS，不用直接操作数据库，让你的网站更安全！',
    'keywords' => '文煞CMS,Zblog扩展CMS,文煞CMSapi版',
    'statistics' => '',
    'theme' => 'default',
    'weburl' => 'https://www.wszzw.cn',
    'category_show_count' => 10,
  ),
  'display' => 
  array (
    'index_posts_count' => 15,
    'announcements_count' => 3,
    'category_posts_count' => 15,
    'hot_posts_count' => 10,
    'hot_posts_days' => 30,
    'random_posts_count' => 10,
    'pagination_pages_count' => 6,
  ),
  'cache' => 
  array (
    'enabled' => true,
    'list_time' => 300,
    'random_time' => 10,
    'stats_time' => 300,
    'gzip_cache' => true,
  ),
  'url' => 
  array (
    'rewrite' => true,
    'suffix' => '.html',
    'separator' => '/',
    'rules' => 
    array (
      'category' => 'cate',
      'post' => 'post',
      'author' => 'zz',
      'search' => 'search',
      'page' => 'page',
    ),
  ),
  'security' => 
  array (
    'csrf_protection' => true,
    'xss_protection' => true,
    'sql_injection_protection' => true,
    'cron_allow_ips' => 
    array (
    ),
  ),
  'error' => 
  array (
    'display_errors' => false,
    'log_errors' => false,
    'error_reporting' => '',
  ),
  'performance' => 
  array (
    'gzip_compression' => true,
    'browser_caching' => true,
    'minify_html' => true,
  ),
  'ads' => 
  array (
    'enabled' => false,
    'header' => 
    array (
      'enabled' => false,
      'content' => NULL,
    ),
    'sidebar_top' => 
    array (
      'enabled' => false,
      'content' => NULL,
    ),
    'sidebar_bottom' => 
    array (
      'enabled' => false,
      'content' => NULL,
    ),
    'post_top' => 
    array (
      'enabled' => false,
      'content' => NULL,
    ),
    'post_bottom' => 
    array (
      'enabled' => false,
      'content' => NULL,
    ),
  ),
  'friend_links' => 
  array (
    0 => 
    array (
      'name' => '文煞云',
      'url' => 'https://www.wenshay.cn',
      'description' => '文煞云：免费免备案香港虚拟主机、云服务器20元起！',
      'expire_type' => 'permanent',
      'expire_date' => '',
      'status' => 'active',
      'created_at' => '2025-10-20 23:43:13',
    ),
    1 => 
    array (
      'name' => '文煞站长笔记网',
      'url' => 'https://www.wsbjw.cn/',
      'description' => '文煞站长笔记网是一个喜欢收集建站资料的博客网站。关注文煞站长笔记网分享的网站建设和SEO优化的教程，帮助您快速掌握网站建设和SEO优化的技巧和方法，让您的网站在搜索引擎中脱颖而出。',
      'expire_type' => 'permanent',
      'expire_date' => '',
      'status' => 'active',
      'created_at' => '2025-10-21 14:32:53',
    ),
    2 => 
    array (
      'name' => '文煞免签支付',
      'url' => 'https://www.wsepay.cn/',
      'description' => '只为个人小站长提供免签支付接入',
      'expire_type' => 'permanent',
      'expire_date' => '',
      'status' => 'active',
      'created_at' => '2025-10-21 14:33:49',
    ),
  ),
  'announcements' => 
  array (
    0 => 
    array (
      'title' => '文煞CMS for api 版本正式开源',
      'content' => '由文煞开发得文煞CMS（api版）开源免费使用，要求保留版权信息！',
      'time' => '2025-10-20 22:25:15',
    ),
  ),
  'admin' => 
  array (
    'username' => 'admin',
    'password' => '21232f297a57a5a743894a0e4a801fc3',
    'theme' => 'default',
  ),
  'custom_nav' => 
  array (
    0 => 
    array (
      'name' => '文煞云',
      'url' => 'https://www.wenshay.cn',
      'type' => 'custom',
      'target' => '_self',
      'status' => 'active',
    ),
  ),
  'custom_data' => 
  array (
    'bjtj' => 
    array (
      'name' => '编辑推荐',
      'data_type' => 'specific_posts',
      'data_count' => 5,
      'order' => 'DESC',
      'pages' => 
      array (
        0 => 'index',
        1 => 'category',
        2 => 'post',
        3 => 'search',
      ),
      'position' => 'sidebar',
      'post_ids' => '125,235,155,224',
    ),
  ),
);

// 全局常量定义
define('BASE_PATH', dirname(__FILE__));
define('CACHE_PATH', BASE_PATH . '/cache');
define('TEMPLATE_PATH', BASE_PATH . '/templates/' . $config['site']['theme']);
define('INCLUDE_PATH', BASE_PATH . '/includes');
define('UPLOAD_PATH', BASE_PATH . '/uploads');
define('ADMIN_PATH', BASE_PATH . '/admin');
?>