Slashblog
[ class tree: Slashblog ] [ index: Slashblog ] [ all elements ]

Source for file config.php

Documentation is available at config.php

  1. <?php
  2.     /**
  3.     * This file is meant to be run before everything else as the website loads. It contains constants defining paths and filenames, and includes everything the platform needs to work. No other files should be manually loaded on start.
  4.     * 
  5.     * @author Daniel Nordstrom <dnordstrom@mankindorganization.com>
  6.     * @link www.mrnordstrom.com
  7.     */
  8.  
  9.  
  10.     /** 
  11.     * Constants
  12.     *
  13.     * For paths, filenames, static settings etc.
  14.     */
  15.  
  16.     // Admin password
  17.     $password "admin"// Specify your password here.
  18.     define('ADMIN_PASSWORD'md5($password))
  19.  
  20.     // Paths
  21.     define('PATH_DATA'"data/")// Directory where we store data files.
  22.     define('PATH_BASE'"/home/17131/domains/dev.slashblogger.com/html/")// Absolute directory where site is located.
  23.     
  24.     // Filenames
  25.     define('FILE_BLOG_SETTINGS'"blog.txt")// Stores general blog settings, such as it's name and description.
  26.     define('FILE_BLOG_POSTS'"posts.txt")// Stores the posts if we choose to store them as flat-/text-files.
  27.     define('FILE_BLOG_POSTS_XML'"posts.xml")// Stores the posts if we choose to store them as XML-files.
  28.     define('FILE_BLOG_POSTS_RSS'"rss.xml")// Stores the current posts RSS feed.
  29.     
  30.     // Settings
  31.     define('DATA_STORAGE'"XML")// How we store data (FLATFILE or XML)
  32.     
  33.     /**
  34.      * Initialization
  35.      * 
  36.      * To be loaded before anything else.
  37.      */
  38.     
  39.     session_start();
  40.     require_once 'classes/dataitem.class.php';
  41.     require_once 'classes/datacontainer.class.php';
  42.     require_once 'classes/post.class.php';
  43.     require_once 'classes/blog.class.php';
  44. ?>

Documentation generated on Mon, 26 May 2008 19:59:41 +0100 by phpDocumentor 1.4.0