init commit

This commit is contained in:
Ulf Gebhardt 2015-10-10 12:30:04 +02:00
parent c43970dfb4
commit d359abb225
29 changed files with 174 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/nbproject/private/

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "lib/system"]
path = lib/system
url = git@mojotrollz.eu:system.git

9
api.php Normal file
View File

@ -0,0 +1,9 @@
<?php
require_once 'lib/autoload.inc'; //SYSTEM Classes
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));
new \SYSTEM\LOG\COUNTER("API was called sucessfully.");

9
index.php Normal file
View File

@ -0,0 +1,9 @@
<?php
require_once 'lib/autoload.inc'; //SYSTEM Classes
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);
new \SYSTEM\LOG\COUNTER("Page was called sucessfully.");

2
lib/autoload.inc Normal file
View File

@ -0,0 +1,2 @@
<?php
require_once dirname(__FILE__).'/system/autoload.inc';

1
lib/system Submodule

@ -0,0 +1 @@
Subproject commit b004c49d8ef8202c23d2e33642819722469bc51f

View File

@ -0,0 +1,7 @@
include.path=${php.global.include.path}
php.version=PHP_56
source.encoding=UTF-8
src.dir=.
tags.asp=false
tags.short=false
web.root=.

9
nbproject/project.xml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.php.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/php-project/1">
<name>yeminy</name>
</data>
</configuration>
</project>

8
sai.php Normal file
View File

@ -0,0 +1,8 @@
<?php
require_once 'lib/autoload.inc'; //SYSTEM Classes
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\saigui())->html();

8
setup.php Normal file
View File

@ -0,0 +1,8 @@
<?php
require_once 'lib/autoload.inc'; //SYSTEM Classes
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();

View File

@ -0,0 +1,3 @@
<?php
class api_yeminy extends \SYSTEM\API\api_system {
}

2
yeminy/api/autoload.inc Normal file
View File

@ -0,0 +1,2 @@
<?php
SYSTEM\autoload::registerFolder(dirname(__FILE__),'');

6
yeminy/autoload.inc Normal file
View File

@ -0,0 +1,6 @@
<?php
require_once dirname(__FILE__).'/path/autoload.inc';
require_once dirname(__FILE__).'/page/autoload.inc';
require_once dirname(__FILE__).'/files/autoload.inc';
require_once dirname(__FILE__).'/api/autoload.inc';
require_once dirname(__FILE__).'/sql/autoload.inc';

View File

@ -0,0 +1,3 @@
<?php
\SYSTEM\autoload::registerFolder(dirname(__FILE__),'');
\SYSTEM\FILES\files::registerFolder(dirname(__FILE__).'/content/','content');

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

7
yeminy/page/autoload.inc Normal file
View File

@ -0,0 +1,7 @@
<?php
\SYSTEM\autoload::registerFolder(dirname(__FILE__),'');
require_once dirname(__FILE__).'/default_page/autoload.inc';
//require_once dirname(__FILE__).'/default_start/autoload.inc';
//require_once dirname(__FILE__).'/default_impressum/autoload.inc';
//require_once dirname(__FILE__).'/default_login/autoload.inc';
//require_once dirname(__FILE__).'/default_serverlist/autoload.inc';

View File

@ -0,0 +1,2 @@
<?php
\SYSTEM\autoload::registerFolder(dirname(__FILE__));

View File

@ -0,0 +1,27 @@
<?php
class default_page extends \SYSTEM\PAGE\Page {
private function js(){
return \SYSTEM\HTML\html::script(\LIB\lib_jquery::js()).
\SYSTEM\HTML\html::script(\LIB\lib_bootstrap::js()).
\SYSTEM\HTML\html::script(\LIB\lib_system::js()).
\SYSTEM\HTML\html::script(\LIB\lib_jqbootstrapvalidation::js()).
\SYSTEM\HTML\html::script(\SYSTEM\WEBPATH(new PPAGE(),'default_page/js/default_page.js'));
}
private function css(){
return \SYSTEM\HTML\html::link(\LIB\lib_bootstrap::css()).
\SYSTEM\HTML\html::link(\LIB\lib_animate::css()).
\SYSTEM\HTML\html::link(\LIB\lib_system::css()).
\SYSTEM\HTML\html::link(\SYSTEM\WEBPATH(new PPAGE(),'default_page/css/default_page.css'));
}
public function html($_escaped_fragment_ = NULL){
$vars = array();
$vars['js'] = '';
if(!$_escaped_fragment_){
$vars['js'] = $this->js();}
$vars['css'] = $this->css();
$vars = array_merge($vars, \SYSTEM\PAGE\text::tag('yeminy'));
return \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/tpl/default_page.tpl'), $vars);
}
}

View File

@ -0,0 +1,3 @@
$(document).ready(function() {
new SYSTEM('./api.php',1,'start');
});

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="${meta_description}">
<meta name="author" content="${meta_author}">
<title>${meta_title}</title>
<link rel="icon" href="./api.php?call=files&amp;cat=content&amp;id=favicon.ico" type="image/x-icon"/>
<style type="text/css">
</style>
${css}
${js}
</head>
<body>
<div class="container">
show me this
</div>
</body>
</html>

View File

@ -0,0 +1,10 @@
<?php
class page_yeminy extends \SYSTEM\API\api_default {
public static function get_apigroup(){
return 1;}
public static function get_class($params = null){
return self::class;}
public static function default_page($_escaped_fragment_ = NULL){
return (new default_page())->html($_escaped_fragment_);}
}

5
yeminy/path/PLIB.php Normal file
View File

@ -0,0 +1,5 @@
<?php
class PLIB extends \SYSTEM\PATH {
public static function getPath(){
return \SYSTEM\C_ROOT.'lib/'.\SYSTEM\C_SUBPATH;}
}

5
yeminy/path/PPAGE.php Normal file
View File

@ -0,0 +1,5 @@
<?php
class PPAGE extends \SYSTEM\PATH {
public static function getPath(){
return \SYSTEM\C_ROOT.'yeminy/page/'.\SYSTEM\C_SUBPATH;}
}

5
yeminy/path/PSAI.php Normal file
View File

@ -0,0 +1,5 @@
<?php
class PSAI extends \SYSTEM\PATH {
public static function getPath(){
return \SYSTEM\C_ROOT.'yeminy/sai/'.\SYSTEM\C_SUBPATH;}
}

5
yeminy/path/PSQL.php Normal file
View File

@ -0,0 +1,5 @@
<?php
class PSQL extends \SYSTEM\PATH {
public static function getPath(){
return \SYSTEM\C_ROOT.'yeminy/sql/'.\SYSTEM\C_SUBPATH;}
}

2
yeminy/path/autoload.inc Normal file
View File

@ -0,0 +1,2 @@
<?php
SYSTEM\autoload::registerFolder(dirname(__FILE__),'');

View File

@ -0,0 +1,8 @@
<?php
namespace SQL;
class DATA_YEMINY extends \SYSTEM\DB\QI {
public static function get_class(){return \get_class();}
public static function files_mysql(){
return array( );
}
}

4
yeminy/sql/autoload.inc Normal file
View File

@ -0,0 +1,4 @@
<?php
\SYSTEM\autoload::registerFolder(dirname(__FILE__),'SQL');
\SYSTEM\SQL\setup::register('SQL\\DATA_YEMINY');