Converted homepage to use SihnonFramework and updated content
This commit is contained in:
4
private/.gitignore
vendored
Normal file
4
private/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# configuration files
|
||||
config.php
|
||||
dbconfig.conf
|
||||
settings.txt
|
||||
92
private/config.php.dist
Normal file
92
private/config.php.dist
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Sihnon Framework Library path
|
||||
*
|
||||
* Specifies the absolute or relative path to the Sihnon Framework library directory, relative to the webui root directory.
|
||||
* Path must end with a trailing slash.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
define('SihnonFramework_Lib', '/usr/lib/sihnon-php-lib/source/lib/');
|
||||
|
||||
/**
|
||||
* Sihnon Library path
|
||||
*
|
||||
* Specifies the absolute or relative path to the Sihnon library directory, relative to the webui root directory.
|
||||
* Path must end with a trailing slash.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
define('Sihnon_Lib', '/usr/lib/homepage/source/lib/');
|
||||
|
||||
/**
|
||||
* Homepage Library path
|
||||
*
|
||||
* Specifies the absolute or relative path to the Homepage library directory, relative to the webui root directory.
|
||||
* Path must end with a trailing slash.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
define('Homepage_Lib', '/usr/lib/homepage/source/lib/');
|
||||
|
||||
/**
|
||||
* Sihnon Database Support
|
||||
*
|
||||
* Specifies whether or not to include database support in the Framework
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
define('Sihnon_DatabaseSupport', true);
|
||||
|
||||
/**
|
||||
* Sihnon Database Configuration
|
||||
*
|
||||
* Specifies the absolute or relative path to the Sihnon database configuration file, required when Database support is enabled.
|
||||
* This is a standard ini type file, containing the config required to connect to the database.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
define('Sihnon_DBConfig', '/etc/homepage/dbconfig.conf');
|
||||
|
||||
/**
|
||||
* Sihnon Config Plugin
|
||||
*
|
||||
* Specifies the plugin to use for configuration value storage.
|
||||
* Options include:
|
||||
* - Database (Requires Database Support to be enabled, and the Sihnon_ConfigTable option set)
|
||||
* - FlatFile (Requires the Sihnon_ConfigFile option set)
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
define('Sihnon_ConfigPlugin', 'FlatFile');
|
||||
|
||||
/**
|
||||
* Sihnon Config Table
|
||||
*
|
||||
* Specifies the name of the database table thats used for storing configuration values
|
||||
* when the Database Config Plugin is used.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
define('Sihnon_ConfigTable', 'settings');
|
||||
|
||||
/**
|
||||
* Sihnon Config File
|
||||
*
|
||||
* Specifies the name of the file used to store configuration values when the FlatFile Config Plugin is used
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
define('Sihnon_ConfigFile', '/etc/homepage/settings.txt');
|
||||
|
||||
/**
|
||||
* Sihnon Development Mode
|
||||
*
|
||||
* Specifies whether or not the Framework should operate in debug mode
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
define('Sihnon_Dev', false);
|
||||
|
||||
?>
|
||||
5
private/dbconfig.conf.dist
Normal file
5
private/dbconfig.conf.dist
Normal file
@@ -0,0 +1,5 @@
|
||||
hostname = localhost
|
||||
username = homepage
|
||||
password = changeme
|
||||
dbname = homepage
|
||||
|
||||
16
private/htaccess.dist
Normal file
16
private/htaccess.dist
Normal file
@@ -0,0 +1,16 @@
|
||||
SetEnv STATUSBOARD_CONFIG /etc/homepage/config.php
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
|
||||
RewriteEngine on
|
||||
RewriteBase /
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(ajax/.*)$ a.php?l=$1 [L]
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.*)$ index.php?l=$1
|
||||
|
||||
</IfModule>
|
||||
35
private/settings.txt.dist
Normal file
35
private/settings.txt.dist
Normal file
@@ -0,0 +1,35 @@
|
||||
[logging.plugins]
|
||||
type="array(string)"
|
||||
value=FlatFile
|
||||
|
||||
[logging.FlatFile]
|
||||
type="array(string)"
|
||||
value=logfile
|
||||
|
||||
[logging.FlatFile.logfile.filename]
|
||||
type=string
|
||||
value=/var/log/homepage/homepage.log
|
||||
|
||||
[logging.FlatFile.logfile.format]
|
||||
type=string
|
||||
value="%timestamp% %hostname%:%pid% %progname%:%shortfile%[%line%] %message%"
|
||||
|
||||
[logging.FlatFile.logfile.severity]
|
||||
type="array(string)"
|
||||
value="debug
|
||||
info
|
||||
warning
|
||||
error"
|
||||
|
||||
[logging.FlatFile.logfile.category]
|
||||
type="array(string)"
|
||||
value="default"
|
||||
|
||||
[cache.base_dir]
|
||||
type=string
|
||||
value=/dev/shm/homepage
|
||||
|
||||
[debug.display_exceptions]
|
||||
type=bool
|
||||
value=1
|
||||
|
||||
Reference in New Issue
Block a user