( ! ) Deprecated: Creation of dynamic property CSource::$validImageExtensions is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 42
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0005364248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$spaces is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 43
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0005364248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$ignore is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 44
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0005364248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$secureDir is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 45
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0005364248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$baseDir is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 46
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0005364248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$queryPath is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 47
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0005364248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$suggestedPath is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 48
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0005364248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$realPath is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 49
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0005364248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$pathinfo is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 50
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0005364248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$file is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 66
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0005364248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$extension is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 67
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0005364248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$dir is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 68
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0005364248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$path is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 69
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0005364248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$breadcrumb is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 81
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0005364248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$message is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 85
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0005364248CSource->__construct( $options = ['secure_dir' => '..', 'base_dir' => '..'] ).../source.php:16

( ! ) Deprecated: Creation of dynamic property CSource::$content is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 235
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0011367360CSource->View( ).../source.php:22
30.0018368512CSource->GetFileContent( ).../CSource.php:113

( ! ) Deprecated: Creation of dynamic property CSource::$encoding is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 166
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0011367360CSource->View( ).../source.php:22
30.0018368512CSource->GetFileContent( ).../CSource.php:113
40.0021371352CSource->DetectFileDetails( ).../CSource.php:236

( ! ) Deprecated: Creation of dynamic property CSource::$lineendings is deprecated in /home/saxon/teachers/com/mosstud/www/kod-exempel/oophp-test/Anax-oophp/src/CSource/CSource.php on line 181
Call Stack
#TimeMemoryFunctionLocation
10.0001360224{main}( ).../source.php:0
20.0011367360CSource->View( ).../source.php:22
30.0018368512CSource->GetFileContent( ).../CSource.php:113
40.0021371352CSource->DetectFileDetails( ).../CSource.php:236
Visa källkod | Anax en webbtemplate

Visa källkod

config.php

1 lines UTF-8 Unix (LF)
<?php
/**
 * Config-file for Anax. Change settings here to affect installation.
 *
 */

/**
 * Set the error reporting.
 *
 */
error_reporting(-1);              // Report all type of errors
ini_set('display_errors', 1);     // Display all errors 
ini_set('output_buffering', 0);   // Do not buffer outputs, write directly


/**
 * Define Anax paths.
 *
 */
define('ANAX_INSTALL_PATH', __DIR__ . '/..');
define('ANAX_THEME_PATH', ANAX_INSTALL_PATH . '/theme/render.php');


/**
 * Include bootstrapping functions.
 *
 */
include(ANAX_INSTALL_PATH . '/src/bootstrap.php');


/**
 * Start the session.
 *
 */
session_name(preg_replace('/[^a-z\d]/i', '', __DIR__));
session_start();


/**
 * Create the Anax variable.
 *
 */
$anax = array();


/**
 * Site wide settings.
 *
 */
$anax['lang']         = 'sv';
$anax['title_append'] = ' | Anax en webbtemplate';

$anax['header'] = <<<EOD
<img class='sitelogo' src='img/anax.png' alt='Anax Logo'/>
<span class='sitetitle'>Anax webbtemplate</span>
<span class='siteslogan'>Återanvändbara moduler för webbutveckling med PHP</span>
EOD;

$anax['footer'] = <<<EOD
<footer><span class='sitefooter'>Copyright (c) Mikael Roos (me@mikaelroos.se) | <a href='https://github.com/mosbth/Anax-base'>Anax på GitHub</a> | <a href='http://validator.w3.org/unicorn/check?ucn_uri=referer&amp;ucn_task=conformance'>Unicorn</a></span></footer>
EOD;



/**
 * Theme related settings.
 *
 */
//$anax['stylesheet'] = 'css/style.css';
$anax['stylesheets'] = array('css/style.css');
$anax['favicon']    = 'favicon.ico';



/**
 * Settings for JavaScript.
 *
 */
$anax['modernizr'] = 'js/modernizr.js';
$anax['jquery'] = '//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js';
//$anax['jquery'] = null; // To disable jQuery
$anax['javascript_include'] = array();
//$anax['javascript_include'] = array('js/main.js'); // To add extra javascript files



/**
 * Google analytics.
 *
 */
$anax['google_analytics'] = 'UA-22093351-1'; // Set to null to disable google analytics