diff --git a/config.php b/config.php index 6ef1d96..2ebedfd 100644 --- a/config.php +++ b/config.php @@ -8,10 +8,9 @@ $slingit_config=array(array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_ERRORREPORTING array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_USER, 'mojotrolls_mysql'), array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_PASSWORD, 'dajsabeaisvd345'), array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_DBNAME, 'host_slingit'), - array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_NAVIMG, '/web/system/sai/page/img/logo.png'),//not working, cuz paths are not set yet! \SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/default_page/img/logo.png')), - array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_BASEURL, 'http://www.slingit.org/sai.php?'), array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_TITLE, 'Slingit - Admin Bereich'), - array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_COPYRIGHT, ' © WebCraft Media 2013'), + array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_COPYRIGHT, ' © WebCraft Media 2015'), + array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_PROJECT, 'slingit'), array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_SYSTEMPATHREL, 'lib/system/'), array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_LANGS, array('deDE','enUS', 'frFR', 'esES', 'trTR', 'jaJA')), array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DEFAULT_LANG, 'deDE'), diff --git a/index.php b/index.php index 29f4a57..564344d 100644 --- a/index.php +++ b/index.php @@ -9,5 +9,5 @@ require_once 'config.php'; \SYSTEM\system::register_errorhandler_dbwriter(); \SYSTEM\system::register_errorhandler_jsonoutput(); -echo \SYSTEM\API\api::run('\SYSTEM\API\verify', 'page_slingit', array_merge($_POST,$_GET), 1, true, true)->html(); +echo \SYSTEM\API\api::run('\SYSTEM\API\verify', 'page_slingit', array_merge($_POST,$_GET), 1, true, true); new \SYSTEM\LOG\COUNTER("Page was called sucessfully."); \ No newline at end of file diff --git a/slingit/files/img/loader.gif b/slingit/files/img/loader.gif new file mode 100644 index 0000000..d0bce15 Binary files /dev/null and b/slingit/files/img/loader.gif differ diff --git a/slingit/page/default_page/css/default_page.css b/slingit/page/default_page/css/default_page.css index 3eae595..5154dc9 100644 --- a/slingit/page/default_page/css/default_page.css +++ b/slingit/page/default_page/css/default_page.css @@ -14,10 +14,12 @@ body{} #content {} -#footer { +#footer { position: absolute; height: 20px; - bottom: 0; + bottom: 0px; + left: 0; + right: 0; text-align: center; width: 100%; background: whitesmoke; diff --git a/slingit/page/default_page/default_page.php b/slingit/page/default_page/default_page.php index 2da6b9b..1738cd7 100644 --- a/slingit/page/default_page/default_page.php +++ b/slingit/page/default_page/default_page.php @@ -1,29 +1,26 @@ '. ''. - ''. - //''. - //''. - //''. + ''. ''. - ''. - ''; - + ''; } - private function css(){ + private static function css(){ return ''. ''. ''. ''; } - public function html(){ - $vars = array(); - $vars['js'] = $this->js(); - $vars['css'] = $this->css(); + public function html($_escaped_fragment_ = null){ + $vars = array(); + $vars['js'] = ''; + if(!$_escaped_fragment_){ + $vars['js'] = self::js();} + $vars['css'] = self::css(); $vars['PATH_LOCAL_IMG'] = \SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/img/'); return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/tpl/default_page.tpl'), $vars); diff --git a/slingit/page/default_page/js/default_page.js b/slingit/page/default_page/js/default_page.js index fb963ae..eea5eab 100644 --- a/slingit/page/default_page/js/default_page.js +++ b/slingit/page/default_page/js/default_page.js @@ -1,3 +1,7 @@ $(document).ready(function() { new SYSTEM('./api.php',1,'start'); + $('#about').click(function(){ + $('#modal_text').modal('show');}); + $('#impressum').click(function(){ + $('#modal_text').modal('show');}); }); \ No newline at end of file diff --git a/slingit/page/default_page/js/lang_switcher.js b/slingit/page/default_page/js/lang_switcher.js deleted file mode 100644 index 07164fc..0000000 --- a/slingit/page/default_page/js/lang_switcher.js +++ /dev/null @@ -1,30 +0,0 @@ -function switchLocale(locale){ - reloadWithQueryStringVars({"_lang": locale}); -} - -function reloadWithQueryStringVars (queryStringVars) { - var existingQueryVars = location.search ? location.search.substring(1).split("&") : [], - //currentUrl = location.search ? location.href.replace(location.search,"") : location.href, - newQueryVars = {}, - newUrl = "http://www.slingit.org/?_lang="+queryStringVars._lang+"#"; - if(existingQueryVars.length > 0) { - for (var i = 0; i < existingQueryVars.length; i++) { - var pair = existingQueryVars[i].split("="); - newQueryVars[pair[0]] = pair[1]; - } - } - if(queryStringVars) { - for (var queryStringVar in queryStringVars) { - newQueryVars[queryStringVar] = queryStringVars[queryStringVar]; - } - } - if(newQueryVars) { - for (var newQueryVar in newQueryVars) { - newUrl += newQueryVar + "=" + newQueryVars[newQueryVar] + "&"; - } - newUrl = newUrl.substring(0, newUrl.length-1); - window.location.href = newUrl; - } else { - window.location.href = location.href; - } -} diff --git a/slingit/page/default_page/tpl/default_page.tpl b/slingit/page/default_page/tpl/default_page.tpl index 00936d7..9cba726 100644 --- a/slingit/page/default_page/tpl/default_page.tpl +++ b/slingit/page/default_page/tpl/default_page.tpl @@ -2,8 +2,10 @@
- - + + + +