3/*-----------------------------------------------------------------------------------*/
5/*-----------------------------------------------------------------------------------*/
7$display_errors = false;
9// Display errors if there are any.
10ini_set('display_errors', $display_errors);
12/*-----------------------------------------------------------------------------------*/
13/* Post Cache ('on' or 'off')
14/*-----------------------------------------------------------------------------------*/
19/*-----------------------------------------------------------------------------------*/
20/* Configuration & Options
21/*-----------------------------------------------------------------------------------*/
23include('./config.php');
25// Definitions from the included configs above.
26define('BLOG_EMAIL', $blog_email);
27define('BLOG_TWITTER', $blog_twitter);
28define('BLOG_URL', $blog_url);
29define('BLOG_TITLE', $blog_title);
30define('META_DESCRIPTION', $meta_description);
31define('INTRO_TITLE', $intro_title);
32define('INTRO_TEXT', $intro_text);
33define('HEADER_INJECT', stripslashes($header_inject));
34define('FOOTER_INJECT', stripslashes($footer_inject));
35define('ACTIVE_TEMPLATE', $template);
37/*-----------------------------------------------------------------------------------*/
38/* Definitions (These Should Be Moved to "Settings")
39/*-----------------------------------------------------------------------------------*/
42$feed_max_items = '10';
43$date_format = 'F jS, Y';
44$error_title = 'Sorry, But That’s Not Here';
45$error_text = 'Really sorry, but what you’re looking for isn’t here. Click the button below to find something else that might interest you.';
47/*-----------------------------------------------------------------------------------*/
49/*-----------------------------------------------------------------------------------*/
51$pagination_on_off = "off"; //Infinite scroll by default?
52define('PAGINATION_ON_OFF', $pagination_on_off);
55define('POSTS_PER_PAGE', $posts_per_page);
57$infinite_scroll = "off"; //Infinite scroll works only if pagination is on.
58define('INFINITE_SCROLL', $infinite_scroll);
60$post_directory = './posts/';
61$cache_directory = './posts/cache/';
63if (glob($post_directory . '*.md') != false)
65 $posts_dir = './posts/';
67 $posts_dir = './dropplets/welcome/';
70// Definitions from the settings above.
71define('POSTS_DIR', $posts_dir);
72define('CACHE_DIR', $cache_directory);
73define('FILE_EXT', '.md');
75/*-----------------------------------------------------------------------------------*/
77/*-----------------------------------------------------------------------------------*/
79//no caching if user is logged in
80if ( $_SESSION['user'] ) {
85if (!file_exists(CACHE_DIR) && ($post_cache != 'off' || $index_cache != 'off')) {
86 mkdir(CACHE_DIR,0755,TRUE);
89/*-----------------------------------------------------------------------------------*/
91/*-----------------------------------------------------------------------------------*/
93// Get the active template directory.
94$template_dir = './templates/' . $template . '/';
95$template_dir_url = $blog_url . 'templates/' . $template . '/';
97// Get the active template files.
98$index_file = $template_dir . 'index.php';
99$post_file = $template_dir . 'post.php';
100$posts_file = $template_dir . 'posts.php';
101$not_found_file = $template_dir . '404.php';
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list