neo working
This commit is contained in:
parent
96916d0225
commit
7dd863bba3
3
.htaccess
Normal file
3
.htaccess
Normal file
@ -0,0 +1,3 @@
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP_HOST} !^www\.
|
||||
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI}$1 [R=301,L]
|
||||
2
api.php
2
api.php
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
require_once 'system/autoload.inc.php'; //SYSTEM Classes
|
||||
require_once 'neopolimatrix/autoload.inc.php'; //Project Classes
|
||||
require_once 'neopolimatrix/autoload.inc'; //Project Classes
|
||||
|
||||
require_once 'config.php';
|
||||
SYSTEM\system::start($neopolimatrix_config);
|
||||
|
||||
35
config.php
35
config.php
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
$neopolimatrix_config = array( array(config_ids::SYS_CONFIG_ERRORREPORTING, E_ALL | E_STRICT),
|
||||
array(config_ids::SYS_CONFIG_PATH_BASEURL, 'http://mojotrollz.eu/web/neopolimatrix'),
|
||||
array(config_ids::SYS_CONFIG_PATH_BASEPATH, '/home/web/webdir/neopolimatrix/'),
|
||||
array(config_ids::SYS_CONFIG_DB_TYPE, SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_TYPE_MYS),
|
||||
array(config_ids::SYS_CONFIG_DB_HOST, '127.0.0.1'),
|
||||
array(config_ids::SYS_CONFIG_DB_PORT, ''),
|
||||
array(config_ids::SYS_CONFIG_DB_USER, 'mojotrolls_mysql'),
|
||||
array(config_ids::SYS_CONFIG_DB_PASSWORD, 'dajsabeaisvd345'),
|
||||
array(config_ids::SYS_CONFIG_DB_DBNAME, 'host_neopolimatrix'),
|
||||
array(config_ids::SYS_SAI_CONFIG_NAVIMG, '/web/system/sai/page/img/logo.png'),//not working, cuz paths are not set yet! \SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/default_page/img/logo.png')),
|
||||
array(config_ids::SYS_SAI_CONFIG_BASEURL, 'http://mojotrollz.eu/web/neopolimatrix/sai.php?'),
|
||||
array(config_ids::SYS_SAI_CONFIG_TITLE, 'Neopolimatrix - Admin Bereich'),
|
||||
array(config_ids::SYS_SAI_CONFIG_COPYRIGHT, '<a href="" target="_blank"></a> © WebCraft Media 2013'),
|
||||
array(config_ids::SYS_CONFIG_PATH_SYSTEMPATHREL, 'system/'),
|
||||
array(config_ids::SYS_CONFIG_LANGS, array('deDE')),
|
||||
array(config_ids::SYS_CONFIG_DEFAULT_LANG, 'deDE'),
|
||||
array(config_ids::WEBCRAFT_BILLING_TOKEN, ''),
|
||||
array(config_ids::SYS_CRON_LOG2SQLITE_PATH, '/home/web/webdir/neopolimatrix/neopolimatrix/files/log/'));
|
||||
$neopolimatrix_config=array(array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_ERRORREPORTING, E_ALL | E_STRICT),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL, 'http://www.mojotrollz.eu/web/Neopolimatrix/'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEPATH, '/home/web/webdir/Neopolimatrix/'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_TYPE, \SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_TYPE_MYS),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_HOST, '127.0.0.1'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_PORT, ''),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_USER, 'mojotrolls_mysql'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_PASSWORD, 'dajsabeaisvd345'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_DBNAME, 'host_neopolimatrix'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_NAVIMG, '/web/system/sai/page/img/logo.png'),//not working, cuz paths are not set yet! \SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/default_page/img/logo.png')),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_BASEURL, 'http://www.mojotrollz.eu/web/Neopolimatrix/sai.php?'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_TITLE, 'Neopolimatrix - Admin Bereich'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_COPYRIGHT, '<a href="" target="_blank"></a> © WebCraft Media 2013'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_SYSTEMPATHREL, 'system/'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_LANGS, array('deDE')),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DEFAULT_LANG, 'deDE'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CRON_LOG2SQLITE_PATH, '/home/web/webdir/Neopolimatrix/neopolimatrix/files/log/'));
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
require_once 'system/autoload.inc.php'; //SYSTEM Classes
|
||||
require_once 'neopolimatrix/autoload.inc.php'; //Project Classes
|
||||
require_once 'neopolimatrix/autoload.inc'; //Project Classes
|
||||
|
||||
require_once 'config.php';
|
||||
\SYSTEM\system::start($neopolimatrix_config);
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
<?php
|
||||
|
||||
//keep this
|
||||
require_once dirname(__FILE__).'/path/register_path_classes.php';
|
||||
require_once dirname(__FILE__).'/path/autoload.inc';
|
||||
require_once dirname(__FILE__).'/page/autoload.inc';
|
||||
require_once dirname(__FILE__).'/dbd/autoload.inc.php';
|
||||
require_once dirname(__FILE__).'/files/autoload.inc.php';
|
||||
require_once dirname(__FILE__).'/api/autoload.inc.php';
|
||||
require_once dirname(__FILE__).'/files/autoload.inc';
|
||||
2
neopolimatrix/files/autoload.inc
Normal file
2
neopolimatrix/files/autoload.inc
Normal file
@ -0,0 +1,2 @@
|
||||
<?php
|
||||
//include here
|
||||
0
neopolimatrix/files/log/dummy
Normal file
0
neopolimatrix/files/log/dummy
Normal file
5
neopolimatrix/page/default_page/default_page.php
Normal file
5
neopolimatrix/page/default_page/default_page.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
class default_page extends \SYSTEM\PAGE\Page {
|
||||
public function html(){
|
||||
return 'test';}
|
||||
}
|
||||
@ -1,10 +1,5 @@
|
||||
<?php
|
||||
|
||||
class page_whw extends \SYSTEM\API\api_default {
|
||||
|
||||
class page_neopolimatrix extends \SYSTEM\API\api_default {
|
||||
public static function default_page(){
|
||||
|
||||
return new default_page();
|
||||
}
|
||||
|
||||
return new default_page();}
|
||||
}
|
||||
2
sai.php
2
sai.php
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
require_once 'system/autoload.inc.php'; //SYSTEM Classes
|
||||
require_once 'neopolimatrix/autoload.inc.php'; //Project Classes
|
||||
require_once 'neopolimatrix/autoload.inc'; //Project Classes
|
||||
|
||||
require_once 'config.php'; //Server config
|
||||
SYSTEM\system::start($neopolimatrix_config); //Start System time + config
|
||||
|
||||
2
system
2
system
@ -1 +1 @@
|
||||
Subproject commit 5b3346f6c91644dfd5eb1acf16e5793401d414e2
|
||||
Subproject commit 96078ca1bd00f6750a4a3bf16d84c7d3cc431dfa
|
||||
Loading…
x
Reference in New Issue
Block a user