ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/BBClone/branches/0.6.1-RC1/constants.php
Revision: 19
Committed: Thu Nov 21 13:14:22 2013 UTC (11 years ago) by matthys
Original Path: trunk/constants.php
File size: 2995 byte(s)
Log Message:
Setup svn keywords correctly.

File Contents

# User Rev Content
1 matthys 18 <?php
2     /* This file is part of BBClone (A PHP based Web Counter on Steroids)
3     *
4 matthys 19 * SVN FILE $Id$
5 matthys 18 *
6     * Copyright (C) 2001-2013, the BBClone Team (see doc/authors.txt for details)
7     *
8     * This program is free software: you can redistribute it and/or modify
9     * it under the terms of the GNU General Public License as published by
10     * the Free Software Foundation, either version 3 of the License, or
11     * (at your option) any later version.
12     *
13     * This program is distributed in the hope that it will be useful,
14     * but WITHOUT ANY WARRANTY; without even the implied warranty of
15     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16     * GNU General Public License for more details.
17     *
18     * See doc/copying.txt for details
19     */
20     */
21    
22     global $BBC_ROOT_PATH, $BBC_VERSION, $BBC_CACHE_PATH, $BBC_CONF_PATH,
23     $BBC_CSS_PATH, $BBC_IMAGES_PATH, $BBC_LANGUAGE_PATH, $BBC_LIB_PATH,
24     $BBC_PLUGIN_PATH, $BBC_IP2EXT_PATH, $BBC_ACCESS_FILE, $BBC_LAST_FILE,
25     $BBC_CONFIG_FILE, $BBC_TIMESTAMP, $BBC_COUNTER_FILES, $BBC_COUNTER_PREFIX,
26     $BBC_COUNTER_SUFFIX, $BBC_LOCK, $BBC_SEP, $BBC_COUNTER_COLUMNS,
27     $BBC_COUNTER_COLUMN_NAMES, $BBC_LOG_PROCESSOR;
28    
29     // BBClone's location relative from where it's been called
30     $BBC_ROOT_PATH = defined("_BBCLONE_DIR") ? _BBCLONE_DIR : "";
31     // BBClone version
32     $BBC_VERSION = "0.6.1";
33     // Directory paths
34     $BBC_CACHE_PATH = $BBC_ROOT_PATH."var/";
35     $BBC_CONF_PATH = $BBC_ROOT_PATH."conf/";
36     $BBC_CSS_PATH = "css/";
37     $BBC_IMAGES_PATH = "images/";
38     $BBC_LANGUAGE_PATH = $BBC_ROOT_PATH."language/";
39     $BBC_LIB_PATH = $BBC_ROOT_PATH."lib/";
40     $BBC_PLUGIN_PATH = $BBC_LIB_PATH."plugin/";
41     $BBC_IP2EXT_PATH = $BBC_ROOT_PATH."ip2ext/";
42     // File paths
43     $BBC_ACCESS_FILE = $BBC_CACHE_PATH."access.php";
44     $BBC_LAST_FILE = $BBC_CACHE_PATH."last.php";
45     $BBC_CONFIG_FILE = $BBC_CONF_PATH."config.php";
46     // Timestamp at run-time
47     $BBC_TIMESTAMP = time();
48     // Amount of counter files
49     $BBC_COUNTER_FILES = 8;
50     // Name of the counter files
51     $BBC_COUNTER_PREFIX = "counter";
52     $BBC_COUNTER_SUFFIX = ".inc";
53     $BBC_LOCK = $BBC_CACHE_PATH.".htalock";
54     // Global separator
55     $BBC_SEP = chr(173);
56     // How many columns they contain
57     $BBC_COUNTER_COLUMNS = 8;
58     // What titles are assigned to them
59     $BBC_COUNTER_COLUMN_NAMES = array("time", "prx_ip", "ip", "dns", "agent", "referer", "uri", "page");
60     // File path Log Processor
61     $BBC_LOG_PROCESSOR = $BBC_ROOT_PATH."log_processor.php";
62    
63     ///////////////////////////////////////////////////////////////////////
64     // Do not touch the stuff below if you have no clue what it's doing! //
65     ///////////////////////////////////////////////////////////////////////
66    
67     // Message handling, needs to be globally available
68     function bbc_msg($item, $state = "r") {
69     return "<div style=\"border: solid 2px red; background-color: yellow; padding: 4px; font-weight: bold;\">Error bbc_msg; item: " . $item . " / state: " . $state . "</div>";
70     }
71    
72     // PHP version number
73     define("_BBC_PHP", substr(str_replace(".", "", PHP_VERSION), 0, 3));
74     ?>

Properties

Name Value
svn:keywords Id