Show sourcecode

The following files exists in this folder. Click to view.

Foogler_blog/

config.php
images/
index.php
pages/
placeholder.php
source.php
src/
stylesheet.css

config.php

47 lines ASCII Windows (CRLF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
//----------------
// config.php
//----------------

//
// Setting for the database connection
//
define('/* <em>DB_HOST,  is removed and hidden for security reasons </em> */ );
define('
/* <em>DB_USER,  is removed and hidden for security reasons </em> */ );
define('/* <em>DB_PASSWORD,  is removed and hidden for security reasons </em> */ );
define('
/* <em>DB_DATABASE,  is removed and hidden for security reasons </em> */ );
//
// The following supports having many databases in one database by using table/view prefix.
//
define('DB_PREFIX''blog_');    // Prefix to use infront of tablename and views

// -------------------------------------------------------------------------------------------
//
// Settings for this website (WS), used as default values in CHTMPLPage.php
//
define('WS_SITELINK''http://suli.se/school_blog/'); // Link to site.
define('WS_TITLE''Foogler Blog');  //The title of the page
define('WS_STYLESHEET''stylesheet.css');      // Default stylesheet of the site.
define('WS_FOOTER''Susanne Lindberg 2011');  // Footer at the end of the page.

// -----------------------------------------------------------------------------
//
// Settings for the template (TP) structure, where are everything?
// Support for storing in directories
//

// Classes, functions, code
define('TP_SOURCEPATH',  dirname(__FILE__) . '/src/'); 
// Pagecontrollers and modules
define('TP_PAGESPATH',  dirname(__FILE__) . '/pages/');  

//
// Define the menu-array, slight workaround using serialize.
//
$wsMenu = Array (
  
'Source code' => 'source.php',
  
'ER-model' => '?p=ER',
  
'Reset the blog' => '?p=install',
);
define('WS_MENU'serialize($wsMenu));    // The menu