diff --git a/Core/dub/dub.php b/Core/dub/dub.php
deleted file mode 100755
index b012df8..0000000
--- a/Core/dub/dub.php
+++ /dev/null
@@ -1,43 +0,0 @@
-
- * 14.02.14 11:26
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-
-//TODO can be possible to put different objects format: JSON, PHP, yaml, ...
-/**
- * init for all executing in dub system
- *
- * @param $object
- */
-function dub( $object )
-{
-// if( PHP pbject )
-// if( JSON object )
- return $object->make();
-// $object->get();
-}
-
-function dubDebug( $object )
-{
- $object->debug();
-}
-
-function dubDump( $object )
-{
- var_dump(
- $object->make()
- );
-}
-
-function dubAction( $action, $object )
-{
- $action = 'action'.$action;
- $object->$action();
-}
\ No newline at end of file
diff --git a/Core/dub/dubFormat.php b/Core/dub/dubFormat.php
deleted file mode 100644
index 66f6e1f..0000000
--- a/Core/dub/dubFormat.php
+++ /dev/null
@@ -1,14 +0,0 @@
-
- * 15.02.14 23:28
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubFormat {
-
-}
\ No newline at end of file
diff --git a/Core/dub/dubHeader.php b/Core/dub/dubHeader.php
deleted file mode 100755
index fbeb039..0000000
--- a/Core/dub/dubHeader.php
+++ /dev/null
@@ -1,14 +0,0 @@
-
- * 14.02.14 10:52
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubHeader {
-
-}
\ No newline at end of file
diff --git a/Core/dub/dubHeaderMime.php b/Core/dub/dubHeaderMime.php
deleted file mode 100755
index f87103d..0000000
--- a/Core/dub/dubHeaderMime.php
+++ /dev/null
@@ -1,14 +0,0 @@
-
- * 14.02.14 10:53
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubHeaderMime {
-
-}
\ No newline at end of file
diff --git a/Core/dub/dubHttpGet.php b/Core/dub/dubHttpGet.php
deleted file mode 100755
index 14ae7c6..0000000
--- a/Core/dub/dubHttpGet.php
+++ /dev/null
@@ -1,42 +0,0 @@
-
- * 14.02.14 12:17
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubHttpGet extends dubVar
-{
-
- function __construct( $data = null, $child = null )
- {
- parent::__construct($data, $child);
- }
-
- public function isValid( $data )
- {
- if( !empty( $data ) && strlen( $data ) > 2 )
- {
- return true;
- }
- return false;
- }
-
- public function make()
- {
-// var_dump( $_GET, $this->get(), empty($_GET[ $this->get() ]) );
-// return $this->get();
- if( !empty($_GET[ $this->get() ]) )
- {
- $result = $_GET[ $this->get() ];
-// var_dump( $result );
- return $result;
- }
- return false;
- }
-
-}
diff --git a/Core/dub/dubList.php b/Core/dub/dubList.php
deleted file mode 100644
index a490fb2..0000000
--- a/Core/dub/dubList.php
+++ /dev/null
@@ -1,14 +0,0 @@
-
- * 15.02.14 23:23
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubList {
-
-}
\ No newline at end of file
diff --git a/Core/dub/dubPhp.php b/Core/dub/dubPhp.php
deleted file mode 100755
index edc44f8..0000000
--- a/Core/dub/dubPhp.php
+++ /dev/null
@@ -1,111 +0,0 @@
-
- * 14.02.14 11:26
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-
-//TODO can be possible to put different objects format: JSON, PHP, yaml, ...
-class dubPhp extends dubVar
-{
- public $name = null;
-// public $type = 'variable'; getType
- public $data = null;
- public $child = null;
-
-
- function __construct( $data = null, $child = null )
- {
- parent::__construct($data, $child);
- }
-
- public function fromJsonToPhp()
- {
-
- }
-
- public function fromPhpToJson()
- {
-
- }
-
- public function make()
- {
- $obj = $this->getChild();
- return $obj->make();
- }
-
-
- public function testJson()
- {
- $obj = $this->getChild();
-
- $obj = array(
- 'name' => get_class($obj),
-// 'data' => $obj,
- 'child' => $obj
- );
-
-//die;
- echo "\n
".'test obiekt PHP'."
\n";
- var_dump( $obj );
-// convert object => json
- $json = json_encode( $obj );
-
-
- echo "\n".'test obiekt JSON'."
\n";
- echo $json."\n";
-
-// convert json => object
-// $obj = json_decode($json);
-// echo "\n".'test obiekt PHP'."
\n";
-// var_dump( $obj );
- }
-
- public function action()
- {
- $action = null;
- $object = $this->get();
- $action = 'action'.$action;
- $object->$action();
- }
-
- public function dump()
- {
- $object = $this->get();
- var_dump(
- $object->make()
- );
- }
-
- public function debug()
- {
- $object = $this->get();
- var_dump(
- $object->make()
- );
- }
-
- /**
- * @param $var
- * @return bool|dubArray|dubFloat|dubInteger|dubResource|dubString|string
- */
- function getType($var)
- {
- if(is_object($var))
- return get_class($var);
- if(is_null($var))
- return false; //'null';
- if(is_string($var))
- return new dubVarString(); //'string';
-
- //throw new NotImplementedException();
- return 'unknown';
- }
-
-}
\ No newline at end of file
diff --git a/Core/dub/dubRender.php b/Core/dub/dubRender.php
deleted file mode 100755
index e897294..0000000
--- a/Core/dub/dubRender.php
+++ /dev/null
@@ -1,78 +0,0 @@
-
- * 13.02.14 20:20
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubRender
-{
- public $name = null;
-// public $type = 'variable'; getType
- public $data = null;
- public $child = null;
-
-
- /**
- * @param null $data
- * @param null $child
- */
- public function __construct( $data = null, $child = null )
- {
- $this->name = get_class( $this );
- $this->type = $this->getType( $data );
- $this->child = $child;
- $this->set( $data ); // $this->data =
- }
-
- /**
- * @param $data
- * @return bool
- */
- public function isValid( $data )
- {
- if( !empty( $data ) )
- {
- return true;
- }
- return false;
- }
-
- /**
- * @param $data
- * @return bool
- */
- public function set( $data )
- {
- if( $this->isValid( $data ) )
- {
- $this->data = $data;
- return true;
- }
- return false;
- }
-
- /**
- * @return string
- */
- public function get()
- {
- return $this->data;
- }
-
-
- /**
- * @param $var
- * @return bool|dubArray|dubFloat|dubInteger|dubResource|dubString|string
- */
- function getType($var)
- {
-
- return 'unknown';
- }
-
-}
\ No newline at end of file
diff --git a/Core/dub/dubRenderEmmet.php b/Core/dub/dubRenderEmmet.php
deleted file mode 100755
index f8360e9..0000000
--- a/Core/dub/dubRenderEmmet.php
+++ /dev/null
@@ -1,346 +0,0 @@
-
- * 13.02.14 20:20
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-/*
-class dubRenderEmmet extends dubVar
-{
- function __construct( $data = null, $child = null )
- {
- parent::__construct($data, $child);
- }
-
- public function isValid( $data )
- {
- if( !empty( $data ) && strlen( $data ) > 2 )
- {
- return true;
- }
- return false;
- }
-}
-*/
-
-// TODO: if prefix not exist '>' than append to String: 'body>html' char '>'
- // e.g. '>body>html'
- // for detect type of element
-
-// TODO: dubVarString
-// TODO: dubVarStringQuery
-
-/**
- * implementation of emment method to render html files
- * Class dubRenderEmmet
- */
-class dubRenderEmmet extends dubVar
-{
-
- public $data;
- public $elementType;
- public $elementName;
- public $child;
-
- public $separator = array(
- 'tag' => '>',
- 'id' => '#',
- 'class' => '.'
- );
-
-
- function __construct( $data = null, $child = null )
- {
- parent::__construct($data, $child);
-// $this->set$data;
- }
-
- // HAS
-
- /**
- * @param $data
- * @return bool
- */
- function hasTag( $data )
- {
- return ( strstr($data, $this->separator['tag']) !== false || strpos($data, $this->separator['class']) > 0 );
- }
-
- function hasClass( $data )
- {
- return ( strstr($data, $this->separator['class']) !== false && strpos($data, $this->separator['class']) == 0 );
- }
-
- function hasId( $data )
- {
- return ( strstr($data, $this->separator['id']) !== false && strpos($data, $this->separator['id']) == 0 );
- }
-
- function cutFirst( $data )
- {
-
- return ( strstr($data, $this->separator['id']) !== false && strpos($data, $this->separator['id']) == 0 );
- }
-
-
- // GET
-
- /**
- * @param $data
- */
- function getFirstTag( $data )
- {
-
- }
-
- /**
- * @param $data
- */
- function getFirstClass( $data )
- {
-
- }
-
- /**
- * @param $data
- */
- function getFirstId( $data )
- {
-
- }
-
-
- // Element: Type, Name, Separator Position
-
- /**
- * @param $data
- */
- function getFirstElement( $data )
- {
-
- }
-
- /**
- * @param $data
- * @return mixed
- */
- function getTypeOfNextElement( $data )
- {
- $array_elements_position = array();
- $array_elements_position[ strpos($data, $this->separator['tag'] ) ] = 'tag';
- $array_elements_position[ strpos($data, $this->separator['class'] ) ] = 'class';
- $array_elements_position[ strpos($data, $this->separator['id'] ) ] = 'id';
- // remove first occurences char, only postion more than 1
- if( isset($array_elements_position[0]) )
- {
- unset( $array_elements_position[0] );
- }
- return current($array_elements_position);
- }
-
- /**
- * @param $data
- */
- function getNameOfNextElement( $data )
- {
-
- }
-
- /**
- * @param $data
- * @return int|mixed
- */
- function getPositionOfNextElementSeparator( $data )
- {
- // searchind for separators and put info to array
- $array_elements_position = array();
- $array_elements_position[ strpos($data, $this->separator['tag'] ) ] = 'tag';
- $array_elements_position[ strpos($data, $this->separator['class'] ) ] = 'class';
- $array_elements_position[ strpos($data, $this->separator['id'] ) ] = 'id';
-
- // remove first occurences char, only postion more than 1
- if( isset($array_elements_position[0]) )
- {
- unset( $array_elements_position[0] );
- }
-
- // if separators not exist
- if( count($array_elements_position) < 1 )
- {
- return strlen( $data );
- }
-// var_dump($array_elements_position,
-// key($array_elements_position)
-// );
-
- return key($array_elements_position);
- }
-
-
- // PART: nextPart = Part - CurrentElement
- // EG: '>body>p' = 'html>body>p' - 'html';
-
- function getNextPartOfElement( $data )
- {
- $data = substr($data, $this->getPositionOfNextElementSeparator( $data ) );
- return $data;
- }
-
-
-
- // String - Char
- function isFirstCharTag( $data )
- {
- return (strpos($data, $this->separator['tag'] ) === 0);
- }
-
- /**
- * @param $data
- * @return bool
- */
- function isFirstCharClass( $data )
- {
- return ( strpos($data, $this->separator['class'] ) === 0 );
- }
-
- /**
- * @param $data
- * @return bool
- */
- function isFirstCharId( $data )
- {
- return ( strpos($data, $this->separator['id'] ) === 0 );
- }
-
- /**
- * @param $data
- * @return string
- */
- function cutFirstSeparator( $data )
- {
-// var_dump( $data );
- $data = substr($data, 1, $this->getPositionOfNextElementSeparator( $data ) -1);
-// var_dump( $this->getPositionOfNextElementSeparator( $data ), $data );
- return $data;
- //, $separator = null
-/*
- if( $this->isFirstCharTag( $data ) )
- {
- echo 'to tag [' . $data . ']';
- return $data;
- }
- else if( $this->isFirstCharClass( $data ) )
- {
- echo 'to klasa [' . $data . ']';
-
- // cut first char
- $data = substr($data, 1, $this->getPositionOfNextElementSeparator( $data ) -1 );
- echo 'to klasa [' . $data . ']';
- return $data;
- }
- else if( $this->isFirstCharId( $data ) )
- {
- echo 'to id [' . $data . ']';
- return $data;
- }
-*/
- }
-
-
- /**
- * @param $elementType
- */
- function setCurrentElementType( $elementType )
- {
- $this->elementType = $elementType;
- }
-
- /**
- * @param $elementName
- */
- function setCurrentElementName( $elementName )
- {
- $this->elementName = $elementName;
- }
-
-
- /**
- * algorithm for emmett
- *
- * @param $data
- * @return string
- */
- function emmet( $data )
- {
-
- $tag = '';
- $id = '';
- $class = '';
- $next = "\n";
-
- // if has TAG
- if( $this->hasTag( $data ) )
- {
- $strnr = strpos($data, $this->separator['tag'] );
- if( !$strnr )
- {
- $strnr = strpos($data, '.');
- $tag = substr($data, 0, $strnr);
- $data = substr($data, $strnr);
- }
- else
- {
- $tag = substr($data, 0, $strnr);
- $data = substr($data, $strnr + 1);
- }
-
-
- if( $this->hasClass( $data ) )
- {
- $class = $this->cutFirstSeparator( $data );
- $class = ' class="' . $class . '"';
- }
-
-
- if( $this->hasId( $data ) || $this->getTypeOfNextElement( $data ) == 'id' )
- {
- $strnr = strpos($data, $this->separator['id'] );
- $id = substr($data, $strnr + 1);
- $id = ' id="' . $id . '"';
- }
-
- return $next
- .'<' . $tag . $id . $class . '>'
- . $this->emmet( $data )
- . '' . $tag . '>'
- . $next;
- }
-// return $data;
- }
-
-
- /**
- * @return string
- */
- function make()
- {
- $data = $this->emmet( $this->data );
-// var_dump( $data );
- return $data;
- }
-
- /**
- * return value for debug
- */
- function debug()
- {
- echo '';
- }
-
-}
diff --git a/Core/dub/dubSource.php b/Core/dub/dubSource.php
deleted file mode 100755
index 69e5e3c..0000000
--- a/Core/dub/dubSource.php
+++ /dev/null
@@ -1,89 +0,0 @@
-
- * 13.02.14 21:04
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubSource {
-
- public $name = null;
- public $data = null;
- public $child = null;
-
-
- /**
- * @param null $data
- * @param null $child
- */
- public function __construct( $data = null, $child = null )
- {
- $this->name = get_class( $this );
-// $this->type = $this->getType( $data );
- $this->setChild( $data, $child );
- $this->set( $data ); // $this->data =
- }
-
-
- public function getChild()
- {
- return $this->child;
- }
-
- public function setChild( $data = null, $child = null )
- {
- if( empty( $child ) )
- {
- $this->child = $data;
- } else {
- $this->child = $child;
- }
- return true;
- }
-
- /**
- * @param $data
- * @return bool
- */
- public function isValid( $data )
- {
- if( !empty( $data ) )
- {
- return true;
- }
- return false;
- }
-
- /**
- * @param $data
- * @return bool
- */
- public function set( $data )
- {
- if( $this->isValid( $data ) )
- {
- $this->data = $data;
- return true;
- }
- return false;
- }
-
- /**
- * @return string
- */
- public function get()
- {
- return $this->data;
- }
-
-
- function getType($var)
- {
-
- return 'unknown';
- }
-}
\ No newline at end of file
diff --git a/Core/dub/dubSourceDb.php b/Core/dub/dubSourceDb.php
deleted file mode 100755
index 31b179a..0000000
--- a/Core/dub/dubSourceDb.php
+++ /dev/null
@@ -1,72 +0,0 @@
-
- * 13.02.14 21:04
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubSourceDb {
-
- public $name = null;
- public $data = null;
- public $child = null;
-
-
- /**
- * @param null $data
- * @param null $child
- */
- public function __construct( $data = null, $child = null )
- {
- $this->name = get_class( $this );
- $this->type = $this->getType( $data );
- $this->child = $child;
- $this->set( $data ); // $this->data =
- }
-
- /**
- * @param $data
- * @return bool
- */
- public function isValid( $data )
- {
- if( !empty( $data ) )
- {
- return true;
- }
- return false;
- }
-
- /**
- * @param $data
- * @return bool
- */
- public function set( $data )
- {
- if( $this->isValid( $data ) )
- {
- $this->data = $data;
- return true;
- }
- return false;
- }
-
- /**
- * @return string
- */
- public function get()
- {
- return $this->data;
- }
-
-
- function getType($var)
- {
-// mysql, postgresql, oracle
- return 'unknown';
- }
-}
\ No newline at end of file
diff --git a/Core/dub/dubSourceFile.php b/Core/dub/dubSourceFile.php
deleted file mode 100644
index 19f6af7..0000000
--- a/Core/dub/dubSourceFile.php
+++ /dev/null
@@ -1,84 +0,0 @@
-
- * 16.02.14 11:31
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubSourceFile extends dubSource
-{
- function __construct( $data = null, $child = null )
- {
- parent::__construct($data, $child);
- }
-
- function create()
- {
- $data = file_put_contents_utf8( $this->get() );
- return $data;
- }
-
- function read()
- {
- $content = file_get_contents( $this->get() );
- $data = $this->fromListToArray( $content );
- return $data;
- }
-
- function update( $content )
- {
- $content = $this->fromArrayToList( $content );
- $data = file_put_contents( $this->get(), $content );
- return $data;
- }
-
- function updateAppend()
- {
- //$data = file_put_contents_utf8( $this->get );
-// return $data;
- }
-
- function updatePreppend()
- {
- //$data = file_put_contents_utf8( $this->get );
-// return $data;
- }
-
- function delete()
- {
- $data = file_get_contents_utf8( $this->get );
- return $data;
- }
-
-
- function fromArrayToList( $content )
- {
- if( is_array( $content ) )
- {
- $content = implode("\n",$content);
- }
- return $content;
- }
-
- function fromListToArray( $content )
- {
- if( is_string( $content ) )
- {
- $content = explode("\n",$content);
- }
- return $content;
- }
-
-/*
- function make()
- {
- $data = $this->read();
-// var_dump( $data );
- return $data;
- }
- */
-}
\ No newline at end of file
diff --git a/Core/dub/dubSourceFileLoad.php b/Core/dub/dubSourceFileLoad.php
deleted file mode 100644
index 7ce215e..0000000
--- a/Core/dub/dubSourceFileLoad.php
+++ /dev/null
@@ -1,28 +0,0 @@
-
- * 16.02.14 11:31
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubSourceFileLoad extends dubSourceFile
-{
- function __construct( $data = null, $child = null )
- {
- parent::__construct($data, $child);
- }
-
-
-
- function make()
- {
-
- $data = $this->update();
-// var_dump( $data );
- return $data;
- }
-}
\ No newline at end of file
diff --git a/Core/dub/dubSourceFileSave.php b/Core/dub/dubSourceFileSave.php
deleted file mode 100644
index 0bb6e7a..0000000
--- a/Core/dub/dubSourceFileSave.php
+++ /dev/null
@@ -1,59 +0,0 @@
-
- * 16.02.14 11:31
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubSourceFileSave extends dubSourceFile
-{
- function __construct( $data = null, $child = null )
- {
- parent::__construct($data, $child);
- }
-
-
-
- function make()
- {
- $result = array();
-
- if( is_object( $this->get() ) )
- {
- $content = $this->get()->make();
- }
- else
- {
-// $filename = $this->get();
- $content = $this->getChild()->make();
- }
-/*
- if( !is_array( $elements ) )
- {
-// $result = file_get_contents( $elements );
- }
- else
- {
-//
- foreach( $elements as $line )
- {
- $result[] = get_between($line, $start, $end);
- }
-
- }
-// return $result;
-*/
-
-// var_dump( $result, $content );
-// die;
- $result = $this->update( $content );
-
-// var_dump( $result );
-// die;
- return $result;
- }
-}
\ No newline at end of file
diff --git a/Core/dub/dubSourceFilesystem.php b/Core/dub/dubSourceFilesystem.php
deleted file mode 100755
index 251d085..0000000
--- a/Core/dub/dubSourceFilesystem.php
+++ /dev/null
@@ -1,72 +0,0 @@
-
- * 13.02.14 21:04
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubSourceFilesystem {
-
- public $name = null;
- public $data = null;
- public $child = null;
-
-
- /**
- * @param null $data
- * @param null $child
- */
- public function __construct( $data = null, $child = null )
- {
- $this->name = get_class( $this );
- $this->type = $this->getType( $data );
- $this->child = $child;
- $this->set( $data ); // $this->data =
- }
-
- /**
- * @param $data
- * @return bool
- */
- public function isValid( $data )
- {
- if( !empty( $data ) )
- {
- return true;
- }
- return false;
- }
-
- /**
- * @param $data
- * @return bool
- */
- public function set( $data )
- {
- if( $this->isValid( $data ) )
- {
- $this->data = $data;
- return true;
- }
- return false;
- }
-
- /**
- * @return string
- */
- public function get()
- {
- return $this->data;
- }
-
-
- function getType($var)
- {
-
- return 'unknown';
- }
-}
\ No newline at end of file
diff --git a/Core/dub/dubSourceFolder.php b/Core/dub/dubSourceFolder.php
deleted file mode 100755
index cb312f7..0000000
--- a/Core/dub/dubSourceFolder.php
+++ /dev/null
@@ -1,65 +0,0 @@
-
- * 14.02.14 23:03
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubSourceFolder extends dubSource
-{
- function __construct( $data = null, $child = null )
- {
- parent::__construct($data, $child);
- }
-
- function make()
- {
-// if( !is( $this->get() ) )
-// {
-// throw new Exception ("Path ( $this->data ) to Data files is empty
");
-// }
- $filter = '*.*';
- if( !is_array( $this->get() ) )
- {
- $result = $this->getList( $filter );
- }
- else
- {
- die('NOT');
- $result = array();
-
- foreach( $this->get() as $url )
- {
- $result[] = $this->getList( $filter );
- }
-
- }
-// dubt( $result );
-// die;
- return $result;
-
- }
-
-
- public function getList( $filter = '*.*' )
- {
-// $filter = '*.htm';
-
- $directory = $this->get();
- $result = glob($directory ); //$filter
-
- return $result;
- }
-
-
-//foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator('.')) as $filename)
-//{
-//echo "$filename\n";
-//}
-
-
-}
\ No newline at end of file
diff --git a/Core/dub/dubSourceHttp.php b/Core/dub/dubSourceHttp.php
deleted file mode 100755
index 1ec4eee..0000000
--- a/Core/dub/dubSourceHttp.php
+++ /dev/null
@@ -1,54 +0,0 @@
-
- * 14.02.14 17:05
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubSourceHttp extends dubSource
-{
-
- function __construct( $data = null, $child = null )
- {
- parent::__construct($data, $child);
- }
-
- function make()
- {
-// if( !is( $this->get() ) )
-// {
-// throw new Exception ("Path ( $this->data ) to Data files is empty
");
-// }
-
-// dubt( $this->get() );
-// die;
- if( is_object( $this->get() ) )
- {
- $elements = $this->get()->make();
- }
- else
- {
- $elements = $this->get();
- }
-
-
-// dubt( $elements );
- if( !is_array( $elements ) )
- {
- $result = file_get_contents( $elements );
- }
- else
- {
- $result = array();
- foreach( $elements as $url )
- {
- $result[] = file_get_contents( $url );
- }
- }
- return $result;
- }
-}
\ No newline at end of file
diff --git a/Core/dub/dubStream.php b/Core/dub/dubStream.php
deleted file mode 100755
index 510b7af..0000000
--- a/Core/dub/dubStream.php
+++ /dev/null
@@ -1,32 +0,0 @@
-
- * 13.02.14 21:23
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubStream extends dubVar
-{
- function __construct( $data = null, $child = null )
- {
- parent::__construct($data, $child);
- }
-
- public function isValid( $data )
- {
- if( !empty( $data ) && strlen( $data ) > 2 )
- {
- return true;
- }
- return false;
- }
-
- function make ()
- {
-
- }
-}
\ No newline at end of file
diff --git a/Core/dub/dubStreamText.php b/Core/dub/dubStreamText.php
deleted file mode 100755
index ccdb3a3..0000000
--- a/Core/dub/dubStreamText.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
- * 14.02.14 09:43
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubStreamText
-{
- public $data;
- function __construct( $content )
- {
- $this->data = $content;
- }
-
- function make()
- {
-// $size = filesize($file);
- $size = strlen( $this->data );
-// $basename = basename( $file );
- $basename = 'plik.txt';
-
- header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
- header('Content-Description: File Transfer');
- header('Content-Length: ' . $size );
- header('Content-Disposition: attachment; filename=' . $basename);
- header('Content-Type: application/octet-stream');
-// readfile($file);
- print $this->data;
- }
-}
diff --git a/Core/dub/dubTree.php b/Core/dub/dubTree.php
deleted file mode 100644
index d8dff16..0000000
--- a/Core/dub/dubTree.php
+++ /dev/null
@@ -1,14 +0,0 @@
-
- * 15.02.14 23:17
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubTree {
-
-}
\ No newline at end of file
diff --git a/Core/dub/dubVar.php b/Core/dub/dubVar.php
deleted file mode 100755
index 3a06a8b..0000000
--- a/Core/dub/dubVar.php
+++ /dev/null
@@ -1,151 +0,0 @@
-
- * 13.02.14 20:20
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubVar
-{
- public $name = null;
-// public $type = 'variable'; getType
- public $data = null;
- public $child = null;
-
-
- /**
- * @param null $data
- * @param null $child
- */
- public function __construct( $data = null, $child = null )
- {
- $this->name = get_class( $this );
-// $this->type = $this->getType( $data );
- $this->setChild( $data, $child );
- $this->set( $data ); // $this->data =
- }
-
- public function getChild()
- {
- return $this->child;
- }
-
- public function setChild( $data = null, $child = null )
- {
- if( empty( $child ) )
- {
- $this->child = $data;
- } else {
- $this->child = $child;
- }
- return true;
- }
-
- /**
- * @param $data
- * @return bool
- */
- public function isValid( $data )
- {
- if( !empty( $data ) )
- {
- return true;
- }
- return false;
- }
-
- /**
- * @param $data
- * @return bool
- */
- public function set( $data )
- {
-
-// var_dump( $_GET, $data );
-
- if( is_object( $data ) )
- {
- $data = $data->make();
-// var_dump( $data );
-// die('ssss');
- }
-
- if( $this->isValid( $data ) )
- {
- $this->data = $data;
- return true;
- }
- return false;
- }
-
- /**
- * @return string
- */
- public function get()
- {
- return $this->data;
- }
-
-
- public function isHtmlDoc()
- {
-// return preg_match("/<[^<]+>/",$string,$m) != 0;
-
- if ( preg_match('/get() ) ) {
- # Successful match
- return true;
- } else {
- # Match attempt failed
- return false;
- }
- }
-
- public function isHtmlContent()
- {
- preg_match(
- "/<\/?\w+((\s+\w+(\s*=\s*(?:\".*?\"|'.*?'|[^'\">\s]+))?)+\s*|\s*)\/?>/",
- $this->get(),
- $matches);
- if(count($matches)==0)
- {
- return FALSE;
- }
- else
- {
- return TRUE;
- }
- }
-
-
- /**
- * @param $var
- * @return bool|dubArray|dubFloat|dubInteger|dubResource|dubString|string
- */
- function getType($var)
- {
- if(is_object($var))
- return get_class($var);
- if(is_null($var))
- return false; //'null';
- if(is_string($var))
- return new dubVarString(); //'string';
- if(is_array($var))
- return new dubArray(); //'array';
- if(is_int($var))
- return new dubInteger(); //'integer';
- if(is_bool($var))
- return true; //'boolean';
- if(is_float($var))
- return new dubFloat(); //'float';
- if(is_resource($var))
- return new dubResource(); //'resource';
-
-
- //throw new NotImplementedException();
- return 'unknown';
- }
-}
\ No newline at end of file
diff --git a/Core/dub/dubVarHtml.php b/Core/dub/dubVarHtml.php
deleted file mode 100755
index 5404e9b..0000000
--- a/Core/dub/dubVarHtml.php
+++ /dev/null
@@ -1,26 +0,0 @@
-
- * 14.02.14 17:21
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubVarHtml extends dubSource
-{
-
- function __construct( $data = null, $child = null )
- {
- parent::__construct($data, $child);
- }
-
- function make()
- {
- $data = file_get_contents_utf8( $this->data );
-// var_dump( $data );
- return $data;
- }
-}
diff --git a/Core/dub/dubVarHtmlQuery.php b/Core/dub/dubVarHtmlQuery.php
deleted file mode 100755
index c2f98ab..0000000
--- a/Core/dub/dubVarHtmlQuery.php
+++ /dev/null
@@ -1,116 +0,0 @@
-
- * 14.02.14 17:21
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubVarHtmlQuery extends dubVar
-{
-
- function __construct( $data = null, $child = null )
- {
- parent::__construct($data, $child);
- }
-
-
- public function xpath( $query = null, $html_str = null )
- {
-// var_dump( $query );
- $HTML = new DOMDocument(); //'1.0', 'iso-8859-1');
- $HTML->preserveWhiteSpace = false;
-// die;
-// dubt( $html_str );
- $HTML->loadHTML( $html_str );
- $xpath = new DOMXPath( $HTML );
-
- return $xpath->query( $query );
-// $result->length;
- }
-
- // TODO: implementing dubSourceHttp.php
- public function make()
- {
- $html_str = $this->getChild()->make();
-
-// die;
-
-// if( !is_array( $this->get() ) )
- if( !is_array( $html_str ) )
- {
-// dubt( '!is_array');
-// var_dump( $this->get() );
-// die;
- // "//a"
-// $html_str = $this->getChild()->make();
-
- $elements = $this->xpath( $this->get(), $html_str );
-
- $result = array();
- foreach ($elements as $element)
- {
- // get ad url
-// $url = $result->getAttribute;
-// var_dump( $result, $url );
-// var_dump( $element->nodeName );
-
-// $result[] = $element->nodeName;
-// $result[] = $element->nodeValue;
- $result[] = $element->textContent;
-
-// var_dump( $element->nodeValue );
-// var_dump( $element->item(0)->nodeValue );
-
-// $nodes = $element->childNodes;
-// foreach ($nodes as $node) {
-// echo $node->nodeValue. "\n";
-// }
-
-// var_dump( $element->n );
-// var_dump( $element->getAttribute('href') );
-// $result = $element->getAttribute('href');
-// ->nodeValue
- }
-
-// return $result;
-// var_dump( $result );
-
-// return $result->length;
-
-// if( !is_readable( $this->data ) )
-// {
-// throw new Exception ("Path ( $this->data ) to Data files is empty
");
-// }
-// $data = file_get_contents( $this->data );
-// var_dump( $data );
- return $result;
- }
- else
- {
-// dubt( 'is_array');
-// dubt( $html_str );
- $result = array();
-// $data_array = $this->get();
-
- foreach( $html_str as $html_str_val )
- {
-// dubt( $html_str_val );
-
- $elements = $this->xpath( $this->get(), $html_str_val );
- foreach ($elements as $element)
- {
-// dubt( $element->textContent );
- $result[] = $element->textContent;
- }
- }
-// dubt($result);
-// die;
- return $result;
- }
-
- }
-}
\ No newline at end of file
diff --git a/Core/dub/dubVarString.php b/Core/dub/dubVarString.php
deleted file mode 100755
index 94ec24f..0000000
--- a/Core/dub/dubVarString.php
+++ /dev/null
@@ -1,109 +0,0 @@
-
- * 13.02.14 20:19
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubVarString extends dubVar
-{
- function __construct( $data = null, $child = null )
- {
- parent::__construct($data, $child);
- }
-
- public function isValid( $data )
- {
- if( !empty( $data ) && strlen( $data )!==0 )
- {
- return true;
- }
- return false;
- }
-
- public function lowerString( $string = null ) {
- if ( is_numeric($string) ) {
- if ( $string == 1 ) {
- $this->value{0} = mb_strtolower( $this->value{0}, $this->_encode );
- }
-// $this->value = ucfirst( $this->value ); // first letter
- } else if ( $string == 'capitalize') {
- $this->value = ucwords( $this->value ); // first letter in all words
- } else {
- $this->value = mb_strtolower($string, MB_CASE_UPPER, $this->_encode ); // all letter
- }
- return $this;
- }
-
- public function upperString( $string = null ) {
- if ( is_numeric($string) ) {
- if ( $string == 1 ) {
-// $this->value = ucfirst( $this->value ); // first letter
- $this->value{0} = mb_strtoupper( $this->value{0}, $this->_encode );
- }
- } else if ( $string == 'capitalize') {
- $this->value = mb_convert_case( $string, MB_CASE_TITLE, $this->_encode );
-// $this->value = ucwords( $this->value ); // first letter in all words = capitalize
- } else {
-
- $this->value = mb_strtoupper( $string, MB_CASE_UPPER, $this->_encode ); // all letter
- }
- return $this;
- }
-
-
-//$rest = substr("abcdef", 2, -1);
-//$parts = explode("-", $mystring);
-//echo array_pop($parts);
- function startsWith($haystack,$needle)
- {
- $res=FALSE;
- if(mb_strripos($haystack,$needle,0,"utf-8")==0)
- $res= TRUE;
- return $res;
- }
-
- function endsWith($haystack,$needle)
- {
- $res=FALSE;
- $len=mb_strlen($haystack);
- $pos=$len-mb_strlen($needle);
- if(mb_strripos($haystack,$needle,0,"utf-8")==$pos)
- $res= TRUE;
- return $res;
- }
-
- function getStringLeftByLength($utf8string, $length)
- {
- $cutted = mb_substr($utf8string, 0, $length);
- echo 'leftByLength:'.$cutted.' ';
- return $cutted;
- }
-
- function getStringRightByLength($utf8string, $length)
- {
-// echo 'rightByLength:'.$length.' ';
- return mb_substr($utf8string, -$length);
- }
-
- function getPositionLeftByString($utf8string, $str_left)
- {
- $length = mb_strpos($utf8string, $str_left);
- echo 'leftByString:'.$length.' ';
- return leftByLength($utf8string, 0, $length);
- }
-
- function getPositionRightByString($utf8string, $str_right)
- {
- $length = mb_strpos($utf8string, $str_right);
-// echo 'leftByString:'.$length.' ';
- return rightByLength($utf8string, -$length);
- }
-
-
-
-}
\ No newline at end of file
diff --git a/Core/dub/dubVarStringMerge.php b/Core/dub/dubVarStringMerge.php
deleted file mode 100755
index 667a35f..0000000
--- a/Core/dub/dubVarStringMerge.php
+++ /dev/null
@@ -1,127 +0,0 @@
-
- * 15.02.14 00:01
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class dubVarStringMerge extends dubVar
-{
- function __construct( $data = null, $child = null )
- {
- parent::__construct($data, $child);
- }
-
- public function isValid( $data )
- {
- if( is_array( $data ) && count( $data ) > 0 )
- {
- return true;
- }
- return false;
- }
-
- public function getParentParts()
- {
-
- }
-
- public function getCountParts()
- {
- $elements = $this->get();
- $counts = array();
- foreach( $elements as $parts )
- {
- $counts[] = count( $parts );
- }
- sort($counts);
- end($counts);
- $result = current($counts);
-// dubt($result);
- return $result;
- }
-
- public function makeArrayParts()
- {
- $elements = $this->get();
-// dubt( $elements );
-
- $elements_count = $this->getCountParts();
- foreach( $elements as $key => $parts )
- {
- if( !is_array( $parts ) )
- {
- $elements[$key] = array_fill(0, $elements_count, $parts);
- }
- }
- return $elements;
- }
-
-
- function make()
- {
- $elements = $this->makeArrayParts();
-
- $parts_count = count($elements);
- $elements_count = $this->getCountParts();
-
-// dubt( $elements );
-// $elements = $this->get();
-// dubt( $elements );
-
- $elements_result = array();
-//
-
- for( $yy = 0; $yy< $elements_count; $yy++)
- {
-// if( is_array($parts) && count($parts)>0 )
-// {
-// foreach( $elements as $key => $part )
- for( $xx = 0; $xx< $parts_count; $xx++)
- {
- if( !isset($elements_result[ $yy ] ) )
- {
- $elements_result[ $yy ] = '';
- }
-
- if( !isset( $elements[ $xx ][ $yy ] ) )
- {
- $elements[ $xx ][ $yy ] = '';
- }
-
-// var_dump( $xx , $yy , $elements[ $xx ][ $yy ], '
');
-// var_dump( $elements[ $xx ][ $yy ], '
' );
-
- $elements_result[ $yy ] .= $elements[ $xx ][ $yy ];
- }
-// }
- }
-
-// dubt( $elements_result );
- return $elements_result;
-// die;
- if( is_object( $this->get() ) )
- {
- $elements = $this->get()->make();
- }
-
-// dubt( $elements );
- if( !is_array( $elements ) )
- {
- $result = file_get_contents( $elements );
- }
- else
- {
- $result = array();
- foreach( $elements as $url )
- {
- $result[] = file_get_contents( $url );
- }
- }
- return $result;
- }
-}
\ No newline at end of file
diff --git a/Core/dub/dubVarStringSplit.php b/Core/dub/dubVarStringSplit.php
deleted file mode 100644
index 9686c6d..0000000
--- a/Core/dub/dubVarStringSplit.php
+++ /dev/null
@@ -1,170 +0,0 @@
-
- * 15.02.14 21:01
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-function array_map_recursive($callback, $array) {
- foreach ($array as $key => $value) {
- if (is_array($array[$key])) {
- $array[$key] = array_map_recursive($callback, $array[$key]);
- }
- else {
- $array[$key] = call_user_func($callback, $array[$key]);
- }
- }
- return $array;
-}
-
-
-class dubVarStringSplit extends dubVar
-{
- function __construct( $data = null, $child = null )
- {
- parent::__construct($data, $child);
- }
-
- public function isValid( $data )
- {
-// if( !empty( $data ) && strlen( $data ) > 2 )
-// {
- return true;
-// }
-// return false;
- }
-
-
-
- // wytnij do lewej
- public function betweenString( $string = null ) {
-
- }
-
-
-//mb_strrpos — Find position of last occurrence of a string in a string
-
- // wytnij od prawej
- public function rightString( $string = null ) {
- $rigth_with_string = mb_stristr( $this->value, $string, FALSE, $this->_encode );
- $length = mb_strlen($rigth_with_string, $this->_encode);
- $space = mb_strlen($string, $this->_encode);
- $this->value = mb_substr($rigth_with_string, $space, $length - $space, $this->_encode);
- return $this;
- }
-
- public function leftString( $string = null ) {
- $left_with_string = mb_stristr($this->value, $string, TRUE, $this->_encode );
- $length = mb_strlen($left_with_string, $this->_encode);
- $this->value = mb_substr($left_with_string, 0, $length, $this->_encode);
- return $this;
- }
-
-
-
- function insert_substr($str, $pos, $substr) {
- $part1 = substr($str, 0, -$pos);
- $part2 = substr($str, -$pos);
- return $part1.$substr.$part2;
- }
-
- function getBetweenString($input, $start, $end)
- {
- $substr = substr($input, strlen($start)+strpos($input, $start), (strlen($input) - strpos($input, $end))*(-1));
- return $substr;
- }
-
-
- function split()
- {
-// $first = strpos($string, $split_point);
-# retrieve second $split_point positon
- $second = strpos($string, $split_point, $first+strlen($split_point));
-# extract from the second $split_point onwards (with $split_point)
- $substr = substr($string, $second);
- }
-
- function make()
- {
- $result = array();
-
-// if( !is( $this->get() ) )
-// {
-// throw new Exception ("Path ( $this->data ) to Data files is empty
");
-// }
-
-// dubt( $this->get() );
-// die;
- if( is_object( $this->get() ) )
- {
- $elements = $this->get()->make();
- }
- else
- {
- $params = $this->get();
- $elements = $this->getChild();
- }
-
-// dubt( $elements );
-// die;
- if( !is_array( $elements ) )
- {
-// $result = file_get_contents( $elements );
- }
- else
- {
-// $result = array_map_recursive('md7',$elements);
-// var_dump( $params );
-// die;
- if(empty($params['separator-left']))
- {
- $params['separator-left'] = '';
- }
- if(empty($params['separator-right']))
- {
- $params['separator-right'] = '';
- }
-
- $start = $params['separator-left'];
- $end = $params['separator-right'];
-
- foreach( $elements as $line )
- {
- $result[] = get_between($line, $start, $end);
- }
-
- }
- return $result;
- }
-
- function md7( $param )
- {
-
- return $param . '---';
- }
-
-}
-
-
-function get_between($input, $start, $end)
-{
-// $substr = substr($input, strpos($input, $start), ( strlen($input) - strpos($input, $end) ));
-
- //more
-// $substr = substr($input, strlen($start)+strpos($input, $start), (strlen($input) - strpos($input, $end))*(-1));
-
-
- if( !empty($end) )
- {
- // smaller region
- $substr = substr($input, strlen($start)+strrpos($input, $start), (strlen($input) - strrpos($input, $end))*(-1));
-
- } else {
- $substr = substr($input, strlen($start)+strrpos($input, $start) );
- }
- return $substr;
-}
\ No newline at end of file
diff --git a/IDEA.README.md b/IDEA.README.md
deleted file mode 100755
index 2e43ae9..0000000
--- a/IDEA.README.md
+++ /dev/null
@@ -1,21 +0,0 @@
-IDEA:
-
-dub is like object,
-but we use new name for this, beacuse we use object in PHP as Class.
-
-In Dub Framework PHP is special name for this smaller part
-bit, byte, array, class, dub
-
-it is not only object because, you can use "dub" by class to creating many things, e.g.:
-
-
-PL:
-dub to nie jest tylko obiekt, to lokalny inteligenty obiekt.
-dub ma swoją nazwę, typ, wartość.
-
-zasada działani aopiera się o architekturę, która jest budowania z obiektów a nie z klas.
-
-Gdzie możliwa jest duża elastyczność.
-Nie jesteśmy uzależnieni od używania konkretnych formatów, nacisk jest położony na przepływ.
-Ma być wykonany konkretny algorytm.
-
diff --git a/LICENSE b/LICENSE
deleted file mode 100755
index c1d52f3..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014 Tomasz Sapletta
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/Private/dub.functions.php b/Private/dub.functions.php
deleted file mode 100755
index 75ef464..0000000
--- a/Private/dub.functions.php
+++ /dev/null
@@ -1,84 +0,0 @@
-");
- }
-
- if ( !is_readable($path) ) {
- throw new Exception ("For Class ( $pClassName ) File $path not exist
");
- }
- include_once($path);
-}
-
-
-
-function dubt( $data )
-{
- echo '';
-}
-
-
-
-function dubr( $data)
-{
- echo '';
- print_r( $data );
- echo '
';
-}
-
-function dubd( $data)
-{
- echo '';
- var_dump( $data );
- echo '
';
-}
\ No newline at end of file
diff --git a/Private/example.config.php b/Private/example.config.php
deleted file mode 100755
index ceff675..0000000
--- a/Private/example.config.php
+++ /dev/null
@@ -1,94 +0,0 @@
-
- * 14.02.14 11:16
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-
-/**
- * Get dubPHP's Config
- */
-define('DS', DIRECTORY_SEPARATOR);
-
-define('LIB_DIR', 'Core' . DS );
-
-define('ROOT', dirname(__FILE__));
-
-
-
-
-/**
- * Init errors
- */
-
-
-// set the default timezone to use. Available since PHP 5.1
-date_default_timezone_set('UTC');
-
-
-/* Komunikowanie błędów przez PHP. Tabela nazw + ID.
-UWAGA! W przypadku ustalenia kilku opcji na raz phpinfo() zwróci ID o wartosci sumy numerów ID ustalonych opcji.
-
-1 E_ERROR
-2 E_WARNING
-4 E_PARSE
-8 E_NOTICE
-16 E_CORE_ERROR
-32 E_CORE_WARNING
-64 E_COMPILE_ERROR
-128 E_COMPILE_WARNING
-256 E_USER_ERROR
-512 E_USER_WARNING
-1024 E_USER_NOTICE
-6143 E_ALL
-2048 E_STRICT
-4096 E_RECOVERABLE_ERROR
-8192 E_DEPRECATED
-16384 E_USER_DEPRECATED
-*/
-
-//raportowanie wszystkich bledow
-error_reporting(E_ALL);
-
-//Wyświetla tylko błędy i ostrzeżenia
-//ini_set('error_reporting', E_ERROR | E_WARNING);
-ini_set('error_reporting', E_ALL );
-
-//nic nie trafi na wyjscie
-// ini_set('display_errors','Off');
-ini_set('display_errors', 'On');
-
-//wlaczamy logowanie bledow
-ini_set('log_errors','On');
-
-//Ścieżka do pliku logowania
-$path_error_log = '../../Private/system/' . date("Y-m-d") .'.error-php.log';
-ini_set ('error_log', $path_error_log);
-
-
-
-// Nadpisanie php.ini
-ini_set("memory_limit", "512M");
-
-# Maksymalny czas oczekiwania na wykonanie skryptu
-ini_set("max_execution_time", "600");
-ini_set("default_socket_timeout", "600");
-
-// #SessionHandling
-ini_set('session.entropy_length', 16);
-ini_set('session.entropy_file', '/dev/urandom');
-ini_set('session.hash_function', 1);
-ini_set('session.hash_bits_per_character', 6);
-ini_set('session.gc_maxlifetime', 0);
-ini_set('session.gc_probability', 0);
-ini_set('session.cookie_lifetime', 0);
-ini_set('session.cache_expire', 480);
-
-//das();
-
-
diff --git a/Public/example/debug.style.dub.js b/Public/example/debug.style.dub.js
deleted file mode 100755
index 1036f6a..0000000
--- a/Public/example/debug.style.dub.js
+++ /dev/null
@@ -1,61 +0,0 @@
-/**
- * This file is part of the dubphp package.
- *
- * (c) Tom Sapletta
- * 14.02.14 11:07
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-
-// Make special style for different contents:
-// Fatal Error, Warning, Notice
-// Solution for make a nice wiev, when some parts are different
-
-window.onload = function() {
- // color per Fatal error
-// var pretag = document.getElementsByTagName("body");
-// var xx = document.querySelectorAll("b, pre.a");
- var pretag = document.getElementsByTagName("body");
-
-
- var str = pretag[0].innerHTML;
-// console.log( str );
- var isObject = (str.indexOf('object(') > 0);
-// console.log( isObject );
- if( isObject )
- {
- pretag[0].style.whiteSpace='pre';
- pretag[0].style.fontFamily='Courier';
- pretag[0].style.fontSize='10pt';
- }
-
-
- var tag_b = pretag[0].getElementsByTagName('b');
- for (var i = 0; i < tag_b.length; i++)
- {
- var b_value = tag_b[i].innerHTML;
-
- if( b_value === 'Fatal error' || b_value === 'Warning' || b_value === 'Parse error')
- {
- pretag[0].style.backgroundColor='#511';
- pretag[0].style.color='#fee';
- pretag[0].style.whiteSpace='pre';
- pretag[0].style.fontFamily='Courier';
- pretag[0].style.fontSize='10pt';
- }
-
- if( b_value === 'Notice' )
- {
- pretag[0].style.backgroundColor='#00001e';
- pretag[0].style.whiteSpace='pre';
- pretag[0].style.fontFamily='Courier';
- pretag[0].style.fontSize='10pt';
- }
-
- }
-
-
-
-};
diff --git a/Public/example/dubTestAction.php b/Public/example/dubTestAction.php
deleted file mode 100755
index a723b0e..0000000
--- a/Public/example/dubTestAction.php
+++ /dev/null
@@ -1,71 +0,0 @@
-
- * 14.02.14 11:07
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-?>
-
-
-
-p>span.content#cos
-/*
-$var = dubDebug (
- new dubRenderEmmet( // render the HTML from emmet format
- new dubHttpGet('emmet') // get param
- )
- );
-
-echo $var;
-*/
-/*
-var_dump(
- new dubRenderEmmet( // render the HTML from emmet format
- new dubHttpGet('emmet') // get param
- )
-);
-*/
-$dub = new dubPhp(
- new dubRenderEmmet( // render the HTML from emmet format
- new dubHttpGet('emmet') // get param
- )
- );
-
-//$dub
-
-echo $dub->make();
-
-/*
-{
- "dubRenderEmmet":{
- "data":"div>","elementType":null,"elementName":null,"child":{
- "name":"dubHttpGet","data":"emmet","child":"emmet"},"separator":{
- "tag":">","id":"#","class":"."},"name":"dubRenderEmmet"
- }
-}
-*/
-
-
-//var_dump( new dubHttpGet('emmet'), $var );
-/*
-// dub as controller
-$param = 'div>p>span.content#cos';
-dubAction (
- 'html',
- new dubRenderEmmet(
- new dubHttpGet()
- )
-);
-*/
\ No newline at end of file
diff --git a/Public/example/dubTestEmmet.php b/Public/example/dubTestEmmet.php
deleted file mode 100755
index 543df32..0000000
--- a/Public/example/dubTestEmmet.php
+++ /dev/null
@@ -1,46 +0,0 @@
-
- * 14.02.14 11:51
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * loading: config, functions, autorouters
- */
-require 'init.php';
-
-// function dubug - for debugging system with used renderring for emmet
-// Normally the output is object, but when you use dubug - is used debug method
-dubDebug(
- new dubRenderEmmet( 'html>body>p.content#cos' )
-);
-
-// it is equal like below code example
-$object = new dubRenderEmmet( 'html>body>p.content#cos' );
-echo $object->debug();
-
-
-
-// Default way to use dub system.
-// Normally the output is object, but when you use - is used make method
-echo
- dub (
- new dubRenderEmmet( 'div>p>span.content#cos' )
-);
-
-
-// it is equal like below code example
-$object = new dubRenderEmmet( 'div>p>span.content#cos' );
-echo $object->make();
-
-
-// var_dump on object from ->make();
-dubDump (
- new dubRenderEmmet( 'div>p>span.content#cos' )
-);
-
diff --git a/Public/example/dubTestFile.php b/Public/example/dubTestFile.php
deleted file mode 100755
index 6ab52c9..0000000
--- a/Public/example/dubTestFile.php
+++ /dev/null
@@ -1,241 +0,0 @@
-
- * 14.02.14 11:51
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * loading: config, functions, autorouters
- */
-require 'init.php';
-
-
-/*
- * get path
- * read all files in folder
- * read all files, get xpath value
- * make a list with result
- *
- */
-
-/*
-$dub = new dubSourceFolder('/home/neptun/www/curl/company/');
-dubt( $dub->make() );
-*/
-
-/*
-$dub =
- new dubVarHtmlQuery(
- '//div/p/strong/a/@href',
- new dubSourceHttp(
- array(
- 'http://neptun.nep/curl/company/company_275908.htm',
- 'http://neptun.nep/curl/company/company_284207.htm',
- 'http://neptun.nep/curl/company/company_284528.htm'
- )
- )
-);
-*/
-
-/*
-$dub =
- new dubSourceHttp(
- new dubSourceFolder( '/home/neptun/www/curl/company/' )
- );
-*/
-
-/*
-// get from folder list file, than get from html files only link by xpath, make array
-$dub =
- new dubVarHtmlQuery(
- '//div/p/strong/a/@href',
- new dubSourceHttp(
- new dubSourceFolder( '/home/neptun/www/curl/company/' )
- )
- );
-*/
-
-
-$dub =
- new dubSourceFileSave(
- 'page.list.txt',
- new dubVarHtmlQuery(
- '//div/p/strong/a/@href',
- new dubSourceHttp(
- new dubSourceFolder( '/home/neptun/www/curl/company/*.htm' )
- )
- )
- );
-
-$lista_url_wizytowka = $dub->make();
-dubt( $lista_url_wizytowka );
-
-
-die;
-
-
-
-
-/*
-$list_url_email_part1 = array(
- 'dom1', 'dom2', 'dom3', 'dom4', 'dom5', 'dom6', 'dom7'
-);
-
-$list_heading_id = array(
- '11', '22', '33', '44', '55'
-);
-
-$dub =
- new dubVarStringMerge (
- array (
- 'http://',
- $list_url_email_part1,
- '/email_enquiries/new?heading_id=',
- $list_heading_id,
- '&origin=fi'
- )
- );
-
-
-$list_url_email = $dub->make();
-dubt( $list_url_email );
-die;
-*/
-
-
-//$mystring = "150-Adelaide-Street-Brisbane-Cbd-4305";
-
-
-
-
-$str_left = '-';
-$str_right = '?';
-//$right =
-//$rest = mb_substr($utf8string,0,5,'UTF-8');
-/*
-var_dump(
-// leftByLength($utf8string, 6),
-// rightByLength($utf8string, 6),
- $str_left,
- startsWith($utf8string, $str_left)
-// leftByString($utf8string, $str_left)
-// rightByString($utf8string, $str_right),
-// mb_strpos($utf8string, $str_left)
-);
-*/
-//mb_strrpos
-
-
-
-
-//die;
-$dub =
- new dubVarStringSplit (
- //data
- array(
-// 'separator-left' => '',
- 'separator-right' => '?'
- ),
- //callback
- $lista_url_wizytowka
- );
-
-$list_url_email_part1 = $dub->make();
-//dubt( $list_url_email_part1 );
-
-
-$dub =
- new dubVarStringSplit (
- //data
- array(
- 'separator-left' => 'heading_id=',
- 'separator-right' => ''
- ),
- //callback
- $lista_url_wizytowka
- );
-
-$list_heading_id = $dub->make();
-//dubt( $list_heading_id );
-
-
-
-$dub =
- new dubVarStringMerge (
- array (
-// 'http://',
- $list_url_email_part1,
- '/email_enquiries/new?heading_id=',
- $list_heading_id,
- '&origin=fi'
- )
- );
-
-
-$list_url_email = $dub->make();
-
-$list_url_email = implode("\n",$list_url_email);
-file_put_contents('list.txt', $list_url_email);
-
-dubt( $list_url_email );
-
-
-// save array to file
-// - which format?
-// as yaml/csv format.
-// save, add, remove
-
-
-
-
-die;
-
-/*
-$dub =
- new dubVarStringSplit (
- //data
- array(
- 'separator-left' => '?heading_id='
- ),
- //callback
- new dubVarHtmlQuery(
- '//div/p/strong/a/@href',
- new dubSourceHttp(
- new dubSourceFolder( '/home/neptun/www/curl/company/*.htm' )
- )
- )
- );
-
-
-$list_heading_id = $dub->make();
-dubt( $list_heading_id );
-*/
-
-/*
-$dub =
- new dubVarStringSplit (
- //data
- array(
- 'separator-left' => 'http://',
- 'separator-right' => '?'
- ),
- //callback
- new dubVarHtmlQuery( $lista_url_wizytowka )
- );
-
-
-$list_url_email_part1 = $dub->make();
-dubt( $list_url_email_part1 );
-*/
-
-die;
-
-
-//stwórz na dysku zmienną, do której bedziesz sie odnosił
-// dub Source File Data
-
diff --git a/Public/example/dubTestFileOld.php b/Public/example/dubTestFileOld.php
deleted file mode 100755
index 5fce0dd..0000000
--- a/Public/example/dubTestFileOld.php
+++ /dev/null
@@ -1,161 +0,0 @@
-
-
-/*
- Data Class Use
- 1.dane - obiekt
- 2.funkcja - klasa
- 3.sposób wykorzystania - zbiór danych i funkcji
-
- objekt jako reprezentacja - warstwa kontrolera
- w ten sposób można stworzyć prostą aplikację, która będzie budowała z obiektów
-*/
-
-/*
-stworzenie z tablicy plików:
-w zależności od typu get
-
-
-operacje na zbiorach
-
-print
-reduce
-detect
-sortBy
-findByName
-findByValue
-
-*/
-
-require 'init.php';
-
-
-class dubSourceFilesystem
-{
-
- public $data;
- function __construct( $data )
- {
- $this->data = $data;
- }
-
- function make()
- {
- $path = '';
- $content = '';
-// file_put_contents($path, $content);
- }
-}
-
-
-class dubPath
-{
-
- public $data;
- function __construct( $data )
- {
- $this->data = $data;
- }
-
- function make()
- {
-
- }
-}
-
-
-class dubFile
-{
-
- public $data;
- function __construct( $data )
- {
- $this->data = $data;
- }
-
- function make()
- {
-
- }
-}
-
-
-
-dubug(
- new dubRenderEmmet( 'html>body>p.content#cos' )
-);
-
-die;
-// save file
-dub(
- new dubSourceFilesystem('',
- new dubFile(
- new dubPath('filename.html'),
- new dubRenderEmmet( 'html>body>p.content' )
- )
- )
-// new dubStreamText('text w')
-);
-
-// load file
-
-dub(
- new dubSourceFilesystem('',
- new dubFile(
- new dubHeaderMime('html'),
- new dubPath('filename.html'),
- new dubRenderEmmet( 'html>body>p.content' )
- )
- )
-// new dubStreamText('text w')
-);
-
-die;
-
-// $array = json_decode(json_encode($nested_object), true);
-
-/*
-
-dub(
- { 'child' : 'dubSourceFilesystem',
- {
- 'data' : '',
- 'child' : 'dubPath',
- {
- 'data' : 'filename.html',
- 'child' : 'dubFile',
- {
- 'data' : 'filename.html',
- 'child' : 'dubRenderEmmet',
- {
- 'data' : 'html>body>p.content'
- }
- }
- }
- }
- }
-// new dubStreamText('text w')
-);
-
-*/
-
-//var_dump( );
-die;
-
-class Counter
-{
- public $foo;
- protected $bar;
-}
-
-
-
-
-//renderHtml('html>body>p.content')
-?>
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Public/example/dubTestTree.php b/Public/example/dubTestTree.php
deleted file mode 100644
index 6465530..0000000
--- a/Public/example/dubTestTree.php
+++ /dev/null
@@ -1,15 +0,0 @@
-
- * 15.02.14 23:27
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-?>
-
-
- * 14.02.14 17:02
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-?>
-
-
-
-
-make();
-*/
-
-//die;
-
-/*
-$dubVarHtmlQuery = new dubVarHtmlQuery(
- '//div/p/strong/a/@href',
- // new dubQueryXpath('/div/p/strong/a'),
- new dubSourceHttp('http://neptun.nep/curl/company/company_275908.htm')
-);
-dubd( $dubVarHtmlQuery->make() );
-*/
-
-//echo $dubVarHtmlQuery->make();
-
-
-$dub = new dubPhp (
- new dubVarHtmlQuery(
- '//div/p/strong/a/@href',
- new dubSourceHttp('http://neptun.nep/curl/company/company_275908.htm')
- )
- );
-
-
-dubt( $dub->make() );
-
-?>
-
-
\ No newline at end of file
diff --git a/Public/example/index.php b/Public/example/index.php
deleted file mode 100755
index 3872fe3..0000000
--- a/Public/example/index.php
+++ /dev/null
@@ -1,46 +0,0 @@
-
- * 14.02.14 11:07
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-?>
-
-
-
-
- test dub Lib
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Public/example/init.php b/Public/example/init.php
deleted file mode 100755
index 81721e4..0000000
--- a/Public/example/init.php
+++ /dev/null
@@ -1,20 +0,0 @@
-
- * 14.02.14 11:17
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-
-require_once '../../Private/example.config.php';
-require_once '../../Private/dub.functions.php';
-require_once '../../Core/dub/dub.php';
-
-/**
- * init auto loader
- */
-spl_autoload_register("dub_autoload");
\ No newline at end of file
diff --git a/README.md b/README.md
deleted file mode 100755
index 3a88cab..0000000
--- a/README.md
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-http://dubphp.com - libraries for PHP application
-
-librariers:
-- services API
-- database Model DAO
-- converting data
-- helpers for views
-
-
-Przykład
-PHP
-```
-$index = new sourceFile();
-$browser = new sourceBrowser();
-$content = new mimeDocument('html);
-$pattern = new patternEmmet();
-
-$html_content = $pattern->create('html>head+body');
-$content->create( $html_content );
-$browser->create('html_content'); // wyswietl na ekranie lub ...
-$index->create('index.html'); // stwórz plik
-```
-
-efekt działania
-```
-
-
-
-
-```
-inaczej tworząc ten sam efekt w pliku, tworząc w oparciu o zapis
-pozwalający na generowanie w locie (pobiera wszystkie parametry:
-1. metoda
-2. wartość
-3. kolejny obiekt
-
-
-```
-new sourceFile( 'create', 'index.html'
- new mimeDocument( 'create','html'
- new patternEmmet( 'create', 'html>head+body' )
- );
-);
-```
-w powyższym przykładzie, gdy objekt otrzymuje w parametrze obiekt, pobiera z niego dane metodą read();
-
-dzięki czemu w prosty sposób można tworzyć kod, który automatycznie będzie można wykorzystać w innych językach, oparty na prostych wzorcach: CRUD i JS.
-
-Inny sposób na uzysaknie podobnego efektu poprze JS wysyłając ten obiekt do serwera, po zserializowaniu powinien powstać powyższy efekt w postaci zapisanego pliku.
-```
-{
- sourceFile : {
- 'create' : 'index.html',
- mimeDocument : {
- 'create' : 'html',
- patternEmmet : {
- 'create', 'html>head+body'
- }
- }
- }
-}
-```
-w taki sposób będzie tworzona treść na frameworku dubPHP, który będzie powiązany z dubJS,
-
-How to execute
----
-```
-/Public/example/index.php
-```
diff --git a/TODO.md b/TODO.md
deleted file mode 100755
index 7065d1d..0000000
--- a/TODO.md
+++ /dev/null
@@ -1,3 +0,0 @@
-1. Have to update library from local repository
-2. More descriptions, and code with auto descriptions
-3. examples
\ No newline at end of file
diff --git a/images/code.png b/images/code.png
new file mode 100644
index 0000000..eb91cbf
Binary files /dev/null and b/images/code.png differ
diff --git a/images/pattern.png b/images/pattern.png
new file mode 100644
index 0000000..5cb76aa
Binary files /dev/null and b/images/pattern.png differ
diff --git a/images/tar.png b/images/tar.png
new file mode 100644
index 0000000..1cb1bcf
Binary files /dev/null and b/images/tar.png differ
diff --git a/images/top.png b/images/top.png
new file mode 100644
index 0000000..6ab34e5
Binary files /dev/null and b/images/top.png differ
diff --git a/images/zip.png b/images/zip.png
new file mode 100644
index 0000000..08637bb
Binary files /dev/null and b/images/zip.png differ
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..ba29217
--- /dev/null
+++ b/index.html
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Dubphp
+
+
+
+
+
+
+
+
+
+
+
+
dubphp.com - libraries for PHP application
+
+
+
+
+Welcome to dubPHP Pages.
+
+
http://dubphp.com - libraries for PHP application
+
+$ cd your_repo_root/repo_name
+$ git fetch origin
+$ git checkout gh-pages
+
+
+If you're using the GitHub for Mac, simply sync your repository and you'll see the new branch.
+
+
+
+
+
+
+
+
+
+
diff --git a/javascripts/script.js b/javascripts/script.js
new file mode 100644
index 0000000..2f08550
--- /dev/null
+++ b/javascripts/script.js
@@ -0,0 +1,52 @@
+(function($) {
+$(document).ready(function(){
+
+ // putting lines by the pre blocks
+ $("pre").each(function(){
+ var pre = $(this).text().split("\n");
+ var lines = new Array(pre.length+1);
+ for(var i = 0; i < pre.length; i++) {
+ var wrap = Math.floor(pre[i].split("").length / 70)
+ if (pre[i]==""&&i==pre.length-1) {
+ lines.splice(i, 1);
+ } else {
+ lines[i] = i+1;
+ for(var j = 0; j < wrap; j++) {
+ lines[i] += "\n";
+ }
+ }
+ }
+ $(this).before("" + lines.join("\n") + "");
+ });
+
+ var headings = [];
+
+ var collectHeaders = function(){
+ headings.push({"top":$(this).offset().top - 15,"text":$(this).text()});
+ }
+
+ if($(".markdown-body h1").length > 1) $(".markdown-body h1").each(collectHeaders)
+ else if($(".markdown-body h2").length > 1) $(".markdown-body h2").each(collectHeaders)
+ else if($(".markdown-body h3").length > 1) $(".markdown-body h3").each(collectHeaders)
+
+ $(window).scroll(function(){
+ if(headings.length==0) return true;
+ var scrolltop = $(window).scrollTop() || 0;
+ if(headings[0] && scrolltop < headings[0].top) {
+ $(".current-section").css({"opacity":0,"visibility":"hidden"});
+ return false;
+ }
+ $(".current-section").css({"opacity":1,"visibility":"visible"});
+ for(var i in headings) {
+ if(scrolltop >= headings[i].top) {
+ $(".current-section .name").text(headings[i].text);
+ }
+ }
+ });
+
+ $(".current-section a").click(function(){
+ $(window).scrollTop(0);
+ return false;
+ })
+});
+})(jQuery)
\ No newline at end of file
diff --git a/params.json b/params.json
new file mode 100644
index 0000000..dcb86fb
--- /dev/null
+++ b/params.json
@@ -0,0 +1 @@
+{"name":"Dubphp","tagline":"dubphp.com - libraries for PHP application","body":"### Welcome to dubPHP Pages.\r\n\r\nhttp://dubphp.com - libraries for PHP application\r\n\r\n```\r\n$ cd your_repo_root/repo_name\r\n$ git fetch origin\r\n$ git checkout gh-pages\r\n```\r\n\r\nIf you're using the GitHub for Mac, simply sync your repository and you'll see the new branch.\r\n\r\n\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
\ No newline at end of file
diff --git a/stylesheets/pygment_trac.css b/stylesheets/pygment_trac.css
new file mode 100644
index 0000000..c6a6452
--- /dev/null
+++ b/stylesheets/pygment_trac.css
@@ -0,0 +1,69 @@
+.highlight { background: #ffffff; }
+.highlight .c { color: #999988; font-style: italic } /* Comment */
+.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
+.highlight .k { font-weight: bold } /* Keyword */
+.highlight .o { font-weight: bold } /* Operator */
+.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
+.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
+.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
+.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
+.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
+.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #aa0000 } /* Generic.Error */
+.highlight .gh { color: #999999 } /* Generic.Heading */
+.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
+.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #555555 } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */
+.highlight .gt { color: #aa0000 } /* Generic.Traceback */
+.highlight .kc { font-weight: bold } /* Keyword.Constant */
+.highlight .kd { font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #009999 } /* Literal.Number */
+.highlight .s { color: #d14 } /* Literal.String */
+.highlight .na { color: #008080 } /* Name.Attribute */
+.highlight .nb { color: #0086B3 } /* Name.Builtin */
+.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
+.highlight .no { color: #008080 } /* Name.Constant */
+.highlight .ni { color: #800080 } /* Name.Entity */
+.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
+.highlight .nn { color: #555555 } /* Name.Namespace */
+.highlight .nt { color: #000080 } /* Name.Tag */
+.highlight .nv { color: #008080 } /* Name.Variable */
+.highlight .ow { font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mf { color: #009999 } /* Literal.Number.Float */
+.highlight .mh { color: #009999 } /* Literal.Number.Hex */
+.highlight .mi { color: #009999 } /* Literal.Number.Integer */
+.highlight .mo { color: #009999 } /* Literal.Number.Oct */
+.highlight .sb { color: #d14 } /* Literal.String.Backtick */
+.highlight .sc { color: #d14 } /* Literal.String.Char */
+.highlight .sd { color: #d14 } /* Literal.String.Doc */
+.highlight .s2 { color: #d14 } /* Literal.String.Double */
+.highlight .se { color: #d14 } /* Literal.String.Escape */
+.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
+.highlight .si { color: #d14 } /* Literal.String.Interpol */
+.highlight .sx { color: #d14 } /* Literal.String.Other */
+.highlight .sr { color: #009926 } /* Literal.String.Regex */
+.highlight .s1 { color: #d14 } /* Literal.String.Single */
+.highlight .ss { color: #990073 } /* Literal.String.Symbol */
+.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
+.highlight .vc { color: #008080 } /* Name.Variable.Class */
+.highlight .vg { color: #008080 } /* Name.Variable.Global */
+.highlight .vi { color: #008080 } /* Name.Variable.Instance */
+.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
+
+.type-csharp .highlight .k { color: #0000FF }
+.type-csharp .highlight .kt { color: #0000FF }
+.type-csharp .highlight .nf { color: #000000; font-weight: normal }
+.type-csharp .highlight .nc { color: #2B91AF }
+.type-csharp .highlight .nn { color: #000000 }
+.type-csharp .highlight .s { color: #A31515 }
+.type-csharp .highlight .sc { color: #A31515 }
diff --git a/stylesheets/stylesheet.css b/stylesheets/stylesheet.css
new file mode 100644
index 0000000..edde238
--- /dev/null
+++ b/stylesheets/stylesheet.css
@@ -0,0 +1,585 @@
+/* http://meyerweb.com/eric/tools/css/reset/
+ v2.0 | 20110126
+ License: none (public domain)
+*/
+
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+b, u, i, center,
+dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td,
+article, aside, canvas, details, embed,
+figure, figcaption, footer, header, hgroup,
+menu, nav, output, ruby, section, summary,
+time, mark, audio, video {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ font-size: 100%;
+ font: inherit;
+ vertical-align: baseline;
+}
+/* HTML5 display-role reset for older browsers */
+article, aside, details, figcaption, figure,
+footer, header, hgroup, menu, nav, section {
+ display: block;
+}
+body {
+ line-height: 1;
+}
+ol, ul {
+ list-style: none;
+}
+blockquote, q {
+ quotes: none;
+}
+blockquote:before, blockquote:after,
+q:before, q:after {
+ content: '';
+ content: none;
+}
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+
+/* Style */
+
+body {
+ font-size: 15px;
+ font-family: Arial, Arial, Helvetica, sans-serif;
+ line-height: 1.5;
+ background: #D1D1D1;
+}
+
+a {
+ color: #63a52a;
+ text-decoration: none;
+ -webkit-transition: color ease-in-out 0.3s;
+}
+
+a:hover {
+ text-decoration: underline;
+ color: #90D355;
+}
+
+h1.title {
+ margin: 30px 20px 10px;
+ font-size: 60px;
+ font-weight: bold;
+ font-style: italic;
+ font-family:Georgia, serif;
+ text-align: center;
+}
+
+.wrapper {
+ width: 675px;
+ margin: 0 auto;
+}
+
+#container {
+ border: 1px solid #2a2a2a;
+ background: #ddd url(https://github.com/images/pattern.png);
+ box-shadow: 0 0 5px #b1b1b1;
+}
+
+p.tagline {
+ padding: 20px 20px 0;
+ color: #fff;
+ font-size: 17px;
+}
+
+#main {
+ margin-top: 20px;
+ padding: 0 20px 90px;
+ background-color: #fff;
+}
+
+.download-bar {
+ background: #222;
+ border: 5px solid #444;
+ padding: 10px;
+ margin: 0 -35px 20px;
+ position: relative;
+}
+
+.download-bar .inner {
+ overflow: hidden;
+}
+
+.download-bar .watch-fork iframe {
+ display: block;
+ float: left;
+ border-right: 1px solid #ddd;
+ padding-right: 5px;
+}
+.download-bar .watch-fork iframe.last {
+ border-right: 0 none;
+ padding-right: 0;
+ padding-left: 5px;
+ border-left: 1px solid #fff;
+}
+.download-bar .watch-fork {
+ overflow: hidden;
+ float: right;
+ background-color: #eee;
+ padding: 5px;
+ border-radius: 3px;
+}
+
+.download-bar .blc {
+ border: 10px solid black;
+ border-color: transparent transparent black;
+ width: 0;
+ height: 0;
+ display: block;
+ position: absolute;
+ bottom: -15px;
+ left: 0;
+ -moz-transform: rotate(45deg);
+ -webkit-transform: rotate(45deg);
+}
+
+.download-bar .trc {
+ border: 10px solid black;
+ border-color: black transparent transparent;
+ width: 0;
+ height: 0;
+ display: block;
+ position: absolute;
+ top: -15px;
+ right: 0;
+ -moz-transform: rotate(45deg);
+ -webkit-transform: rotate(45deg);
+}
+
+.download-bar .avatar {
+ border: 1px solid black;
+ display: block;
+ padding: 4px;
+ float: left;
+}
+
+.download-bar .avatar img {
+ display: block;
+}
+
+.download-bar a.code {
+ background: transparent url(https://github.com/images/code.png) no-repeat 0 2px;
+ padding-left: 35px;
+ margin-top: 8px;
+ display: block;
+ float: left;
+ text-indent: 0;
+ width: auto;
+ height: auto;
+ opacity: 1;
+ -moz-opacity: 1;
+ filter:alpha(opacity=1);
+}
+
+.current-section {
+ position: fixed;
+ top: 0;
+ left: 50%;
+ width: 693px;
+ margin-left: -352px;
+ background: #222;
+ border: 5px solid #444;
+ color: #fff;
+ opacity: 0;
+ visibility: hidden;
+ -webkit-transition: opacity ease-in-out 0.3s;
+}
+
+.current-section p {
+ padding: 5px 27px;
+ font-size: 24px;
+ font-weight: bold;
+}
+
+.current-section a {
+ float: right;
+ text-indent: -10000px;
+ background: transparent url(https://github.com/images/top.png) no-repeat 0 0;
+ width: 20px;
+ height: 20px;
+ opacity: 0.8;
+ margin-right: 12px;
+ margin-top: 12px;
+ -moz-opacity: 0.8;
+ filter:alpha(opacity=8);
+ -webkit-transition: opacity ease-in-out 0.3s;
+}
+
+.current-section a:hover {
+ opacity: 1;
+ -moz-opacity: 1;
+ filter:alpha(opacity=1);
+}
+
+.current-section a.zip {
+ margin-right: 8px;
+}
+
+a.zip,
+a.zip span {
+ background: transparent url(https://github.com/images/zip.png) no-repeat 0 0;
+ width: 30px;
+ height: 21px;
+ opacity: 0.8;
+ display: inline-block;
+ text-indent: -10000px;
+ -moz-opacity: 0.8;
+ filter:alpha(opacity=8);
+ -webkit-transition: opacity ease-in-out 0.3s;
+}
+
+a.tar,
+a.tar span {
+ background: transparent url(https://github.com/images/tar.png) no-repeat 0 0;
+ width: 30px;
+ height: 21px;
+ opacity: 0.8;
+ display: inline-block;
+ text-indent: -10000px;
+ -moz-opacity: 0.8;
+ filter:alpha(opacity=8);
+ -webkit-transition: opacity ease-in-out 0.3s;
+}
+
+a.code {
+ background: transparent url(https://github.com/images/code.png) no-repeat 0 2px;
+ width: 30px;
+ height: 21px;
+ display: block;
+ opacity: 0.8;
+ display: inline-block;
+ text-indent: -10000px;
+ -moz-opacity: 0.8;
+ filter:alpha(opacity=8);
+ -webkit-transition: opacity ease-in-out 0.3s;
+}
+
+a.zip:hover,
+a.tar:hover,
+a.code:hover {
+ opacity: 1;
+ -moz-opacity: 1;
+ filter:alpha(opacity=1);
+}
+
+a.download-button {
+ border: 1px solid black;
+ border-radius: 3px;
+ display: inline-block;
+ text-indent: 0!important;
+ width: auto;
+ float: right;
+ background: #999; /* for non-css3 browsers */
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#37ADD4', endColorstr='#1B657E'); /* for IE */
+ background: -webkit-gradient(linear, left top, left bottom, from(#37ADD4), to(#1B657E)); /* for webkit browsers */
+ background: -moz-linear-gradient(top, #37ADD4, #1B657E); /* for firefox 3.6+ */
+ height: auto;
+ margin-left: 10px;
+}
+
+a.download-button span {
+ background-position: 10px 5px;
+ width: auto;
+ height: auto;
+ padding: 5px 10px;
+ padding-left: 45px;
+ display: inline-block;
+ text-indent: 0!important;
+ color: #fff;
+}
+
+footer {
+ margin-bottom: 60px;
+ padding-bottom: 60px;
+}
+
+footer .owner {
+ background: #222;
+ border: 5px solid #444;
+ padding: 5px 15px;
+ margin: -67px -10px 35px;
+ color: #d6d6d6;
+}
+
+footer .creds small {
+ float: right;
+ font-size: 10px;
+ text-align: right;
+ margin-left: 15px;
+}
+
+footer .owner .avatar {
+ background-color: #666;
+ display: block;
+ margin: -19px 10px 0 0;
+ width: 60px;
+ float: left;
+}
+
+footer .owner img {
+ display: block;
+ border: 1px solid #2a2a2a;
+ margin: 5px;
+}
+
+footer .owner p {
+ font-family:Georgia, serif;
+}
+
+footer .owner p a {
+ font-size: 16px;
+ font-style: italic;
+}
+
+/* Markdown */
+.markdown-body h1,
+.markdown-body h2,
+.markdown-body h3,
+.markdown-body h4,
+.markdown-body h5,
+.markdown-body h6,
+.markdown-body p,
+.markdown-body pre,
+.markdown-body ul,
+.markdown-body ol,
+.markdown-body dl,
+.markdown-body table,
+.markdown-body blockquote {
+ margin-bottom: 20px;
+}
+
+.markdown-body h1,
+.markdown-body h2,
+.markdown-body h3,
+.markdown-body h4,
+.markdown-body h5,
+.markdown-body h6 {
+ font-weight: bold;
+}
+
+.markdown-body h1 {
+ font-size: 28px;
+}
+
+.markdown-body h2 {
+ font-size: 24px;
+ color: #557398;
+}
+
+.markdown-body h3 {
+ font-size: 20px;
+}
+
+.markdown-body h4 {
+ font-size: 18px;
+}
+
+.markdown-body h5 {
+ font-size: 16px;
+}
+
+.markdown-body pre {
+ padding: 10px 70px 10px 0;
+ margin-left: -20px;
+ margin-right: -20px;
+ font-family: 'Monaco', 'Lucida Console', monospace;
+ font-size: 13px;
+ line-height: 20px;
+ box-shadow: inset 0 0 5px #000;
+ word-wrap: break-word;
+ background-color:#3b3b3b;
+ color: #d6d6d6;
+}
+
+.markdown-body pre.lines {
+ font-size: 12px;
+ margin:0 10px 0 -20px;
+ padding: 10px;
+ float: left;
+ display: block;
+ text-align: right;
+ box-shadow: none;
+ background-color:#2a2a2a;
+ color: #d6d6d6;
+}
+
+.markdown-body ul,
+.markdown-body ol {
+ padding-left: 30px;
+}
+
+.markdown-body ul {
+ list-style-type: disc;
+}
+
+.markdown-body ol {
+ list-style-type: decimal;
+}
+
+.markdown-body li,
+.markdown-body li p,
+.markdown-body dd,
+.markdown-body dd p {
+ margin-bottom: 10px;
+}
+
+.markdown-body li pre,
+.markdown-body li pre.lines,
+.markdown-body dd pre,
+.markdown-body dd pre.lines {
+ margin-left: -35px;
+}
+
+.markdown-body dt {
+ font-weight: bold;
+ font-style: italic;
+}
+
+.markdown-body dd {
+ margin-left: 15px;
+}
+
+.markdown-body table {
+ width: 673px;
+ margin-left: -20px;
+ margin-right: -20px;
+}
+
+.markdown-body tbody {
+ border-top: 2px solid #557398;
+ border-bottom: 2px solid #557398;
+ background-color: #EBEFF4;
+}
+
+.markdown-body table td * {
+ margin: 0;
+}
+
+.markdown-body td {
+ border-right: 1px solid #557398;
+ border-bottom: 1px solid #557398;
+ padding: 5px;
+}
+
+.markdown-body td:first-child,
+.markdown-body th:first-child {
+ width: 30%;
+ padding-left: 20px;
+}
+
+.markdown-body td:last-child {
+ border-right: 0 none;
+}
+
+.markdown-body th {
+ font-size: 18px;
+ font-weight: bold;
+ text-align: left;
+ padding: 5px;
+}
+
+.markdown-body tt {
+ background-color:#3b3b3b;
+ color: #d6d6d6;
+ padding: 2px 3px;
+}
+
+.markdown-body blockquote {
+ font-style: italic;
+ font-family:Georgia, serif;
+ font-size: 17px;
+ border-top: 3px solid #333;
+ border-bottom: 3px solid #333;
+ padding: 10px 20px;
+ padding-left: 50px;
+}
+
+.markdown-body blockquote:before {
+ font-style: italic;
+ font-family: Georgia, serif;
+ font-size: 90px;
+ height: 90px;
+ margin-left: -60px;
+ margin-top: -25px;
+ content: "‟";
+ display: block;
+ float: left;
+}
+
+.markdown-body img {
+ max-width: 100%;
+ @include box-sizing(border-box);
+}
+
+.highlight { background: #ffffff; }
+.highlight .c { color: #999988; font-style: italic } /* Comment */
+.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
+.highlight .k { font-weight: bold } /* Keyword */
+.highlight .o { font-weight: bold } /* Operator */
+.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
+.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
+.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
+.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
+.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
+.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #aa0000 } /* Generic.Error */
+.highlight .gh { color: #999999 } /* Generic.Heading */
+.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
+.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #555555 } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */
+.highlight .gt { color: #aa0000 } /* Generic.Traceback */
+.highlight .kc { font-weight: bold } /* Keyword.Constant */
+.highlight .kd { font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #009999 } /* Literal.Number */
+.highlight .s { color: #d14 } /* Literal.String */
+.highlight .na { color: #008080 } /* Name.Attribute */
+.highlight .nb { color: #0086B3 } /* Name.Builtin */
+.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
+.highlight .no { color: #008080 } /* Name.Constant */
+.highlight .ni { color: #800080 } /* Name.Entity */
+.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
+.highlight .nn { color: #555555 } /* Name.Namespace */
+.highlight .nt { color: #000080 } /* Name.Tag */
+.highlight .nv { color: #008080 } /* Name.Variable */
+.highlight .ow { font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mf { color: #009999 } /* Literal.Number.Float */
+.highlight .mh { color: #009999 } /* Literal.Number.Hex */
+.highlight .mi { color: #009999 } /* Literal.Number.Integer */
+.highlight .mo { color: #009999 } /* Literal.Number.Oct */
+.highlight .sb { color: #d14 } /* Literal.String.Backtick */
+.highlight .sc { color: #d14 } /* Literal.String.Char */
+.highlight .sd { color: #d14 } /* Literal.String.Doc */
+.highlight .s2 { color: #d14 } /* Literal.String.Double */
+.highlight .se { color: #d14 } /* Literal.String.Escape */
+.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
+.highlight .si { color: #d14 } /* Literal.String.Interpol */
+.highlight .sx { color: #d14 } /* Literal.String.Other */
+.highlight .sr { color: #009926 } /* Literal.String.Regex */
+.highlight .s1 { color: #d14 } /* Literal.String.Single */
+.highlight .ss { color: #990073 } /* Literal.String.Symbol */
+.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
+.highlight .vc { color: #008080 } /* Name.Variable.Class */
+.highlight .vg { color: #008080 } /* Name.Variable.Global */
+.highlight .vi { color: #008080 } /* Name.Variable.Instance */
+.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
\ No newline at end of file