updated files to fit to new system
This commit is contained in:
parent
7f46f52e8e
commit
8efc15a5dc
@ -1,3 +1,6 @@
|
|||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteCond %{HTTP_HOST} !^www\.yeminy\.org [NC]
|
RewriteRule ^(.*)/fonts/fontawesome-webfont(.*)$ lib/system/lib/font_awesome/lib/fonts/fontawesome-webfont$2 [L]
|
||||||
RewriteRule ^(.*)$ http://www.yeminy.org/$1 [R=301,L]
|
RewriteRule ^sai$ sai.php$1 [L]
|
||||||
|
|
||||||
|
RewriteRule ^(.*)/files/([^/]+)/([^/]+)$ api.php?call=files&cat=$2&id=$3 [L]
|
||||||
|
RewriteRule ^cache/([^/]+)/([^/]+)$ api.php?call=cache&id=$1&ident=$2 [L]
|
||||||
6
api.php
6
api.php
@ -1,9 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once 'lib/autoload.inc'; //SYSTEM Classes
|
require_once 'index.inc';
|
||||||
require_once 'yeminy/autoload.inc'; //Project Classes
|
|
||||||
require_once '/home/web/web/config/get_config.php';
|
|
||||||
|
|
||||||
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
|
|
||||||
|
|
||||||
echo \SYSTEM\API\api::run('\SYSTEM\API\verify','api_yeminy',array_merge($_POST,$_GET));
|
echo \SYSTEM\API\api::run('\SYSTEM\API\verify','api_yeminy',array_merge($_POST,$_GET));
|
||||||
new \SYSTEM\LOG\COUNTER("API was called sucessfully.");
|
new \SYSTEM\LOG\COUNTER("API was called sucessfully.");
|
||||||
6
index.inc
Normal file
6
index.inc
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?php
|
||||||
|
require_once 'lib/autoload.inc'; // SYSTEM Classes
|
||||||
|
require_once 'yeminy/autoload.inc'; // Project Classes
|
||||||
|
require_once '../../config/get_config.php'; // Config
|
||||||
|
|
||||||
|
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
|
||||||
@ -1,9 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once 'lib/autoload.inc'; //SYSTEM Classes
|
require_once 'index.inc';
|
||||||
require_once 'yeminy/autoload.inc'; //Project Classes
|
|
||||||
require_once '/home/web/web/config/get_config.php';
|
|
||||||
|
|
||||||
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
|
|
||||||
|
|
||||||
echo \SYSTEM\API\api::run('\SYSTEM\API\verify', 'page_yeminy', array_merge($_POST,$_GET), 1, false, true);
|
echo \SYSTEM\API\api::run('\SYSTEM\API\verify', 'page_yeminy', array_merge($_POST,$_GET), 1, false, true);
|
||||||
new \SYSTEM\LOG\COUNTER("Page was called sucessfully.");
|
new \SYSTEM\LOG\COUNTER("Page was called sucessfully.");
|
||||||
8
sai.php
8
sai.php
@ -1,8 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once 'lib/autoload.inc'; //SYSTEM Classes
|
require_once 'index.inc';
|
||||||
require_once 'yeminy/autoload.inc'; //Project Classes
|
|
||||||
require_once '/home/web/web/config/get_config.php';
|
|
||||||
|
|
||||||
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
|
echo (new SYSTEM\SAI\sai_gui())->html();
|
||||||
|
|
||||||
echo (new SYSTEM\SAI\saigui())->html();
|
|
||||||
@ -1,8 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once 'lib/autoload.inc'; //SYSTEM Classes
|
require_once 'index.inc';
|
||||||
require_once 'yeminy/autoload.inc'; //Project Classes
|
|
||||||
require_once '/home/web/web/config/get_config.php';
|
|
||||||
|
|
||||||
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
|
|
||||||
|
|
||||||
echo \SYSTEM\SQL\setup::install();
|
echo \SYSTEM\SQL\setup::install();
|
||||||
@ -1,9 +1,19 @@
|
|||||||
<?php
|
<?php
|
||||||
class default_article extends \SYSTEM\PAGE\Page {
|
class default_article implements \SYSTEM\PAGE\Page {
|
||||||
var $id = null;
|
var $id = null;
|
||||||
public function __construct($id) {
|
public function __construct($id) {
|
||||||
$this->id = $id;}
|
$this->id = $id;}
|
||||||
|
|
||||||
|
public static function title(){
|
||||||
|
return null;}
|
||||||
|
public static function meta(){
|
||||||
|
return array();}
|
||||||
|
|
||||||
|
public static function js(){
|
||||||
|
return array();}
|
||||||
|
public static function css(){
|
||||||
|
return array();}
|
||||||
|
|
||||||
public function html(){
|
public function html(){
|
||||||
return SYSTEM\PAGE\replace::replace(article::full($this->id), \SYSTEM\PAGE\text::tag('time'));
|
return SYSTEM\PAGE\replace::replace(article::full($this->id), \SYSTEM\PAGE\text::tag('time'));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
class default_impressum extends \SYSTEM\PAGE\Page {
|
class default_impressum implements \SYSTEM\PAGE\Page {
|
||||||
|
public static function title(){
|
||||||
|
return null;}
|
||||||
|
public static function meta(){
|
||||||
|
return array();}
|
||||||
|
public static function js(){
|
||||||
|
return array();}
|
||||||
|
public static function css(){
|
||||||
|
return array();}
|
||||||
public function html(){
|
public function html(){
|
||||||
$vars = \SYSTEM\PAGE\text::tag('webcraft');
|
$vars = \SYSTEM\PAGE\text::tag('webcraft');
|
||||||
return SYSTEM\PAGE\replace::replaceFile((new PPAGE('default_impressum/tpl/impressum.tpl'))->SERVERPATH(), $vars);
|
return SYSTEM\PAGE\replace::replaceFile((new PPAGE('default_impressum/tpl/impressum.tpl'))->SERVERPATH(), $vars);
|
||||||
|
|||||||
@ -1,11 +1,23 @@
|
|||||||
<?php
|
<?php
|
||||||
class default_list extends \SYSTEM\PAGE\Page {
|
class default_list implements \SYSTEM\PAGE\Page {
|
||||||
var $tag = null;
|
var $tag = null;
|
||||||
public function __construct($tag = null) {
|
public function __construct($tag = null) {
|
||||||
$this->tag = $tag;}
|
$this->tag = $tag;}
|
||||||
|
|
||||||
|
public static function title(){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
public static function meta(){
|
||||||
|
return array();
|
||||||
|
}
|
||||||
|
|
||||||
public static function js(){
|
public static function js(){
|
||||||
return array( new PPAGE('default_list/js/default_list.js'));}
|
return array( new PPAGE('default_list/js/default_list.js'));}
|
||||||
|
|
||||||
|
public static function css(){
|
||||||
|
return array();
|
||||||
|
}
|
||||||
|
|
||||||
public function html(){
|
public function html(){
|
||||||
$vars = array();
|
$vars = array();
|
||||||
$vars['title'] = $this->tag ? ucfirst($this->tag) : 'Neuheiten';
|
$vars['title'] = $this->tag ? ucfirst($this->tag) : 'Neuheiten';
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
class default_page extends \SYSTEM\PAGE\Page {
|
class default_page implements \SYSTEM\PAGE\DefaultPage {
|
||||||
private function js(){
|
public static function js(){
|
||||||
return \SYSTEM\HTML\html::script(\LIB\lib_jquery::js()->WEBPATH()).
|
return \SYSTEM\HTML\html::script(\LIB\lib_jquery::js()->WEBPATH()).
|
||||||
\SYSTEM\HTML\html::script(\LIB\lib_bootstrap::js()->WEBPATH()).
|
\SYSTEM\HTML\html::script(\LIB\lib_bootstrap::js()->WEBPATH()).
|
||||||
\SYSTEM\HTML\html::script(\LIB\lib_system::js()->WEBPATH()).
|
\SYSTEM\HTML\html::script(\LIB\lib_system::js()->WEBPATH()).
|
||||||
@ -8,7 +8,7 @@ class default_page extends \SYSTEM\PAGE\Page {
|
|||||||
\SYSTEM\HTML\html::script((new PPAGE('default_page/js/default_page.js'))->WEBPATH());
|
\SYSTEM\HTML\html::script((new PPAGE('default_page/js/default_page.js'))->WEBPATH());
|
||||||
}
|
}
|
||||||
|
|
||||||
private function css(){
|
public static function css(){
|
||||||
return \SYSTEM\HTML\html::link(\LIB\lib_bootstrap::css()->WEBPATH()).
|
return \SYSTEM\HTML\html::link(\LIB\lib_bootstrap::css()->WEBPATH()).
|
||||||
\SYSTEM\HTML\html::link(\LIB\lib_animate::css()->WEBPATH()).
|
\SYSTEM\HTML\html::link(\LIB\lib_animate::css()->WEBPATH()).
|
||||||
\SYSTEM\HTML\html::link(\LIB\lib_system::css()->WEBPATH()).
|
\SYSTEM\HTML\html::link(\LIB\lib_system::css()->WEBPATH()).
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user