diff --git a/.htaccess b/.htaccess index 6d37bc9..b64f5d0 100644 --- a/.htaccess +++ b/.htaccess @@ -1,3 +1,6 @@ RewriteEngine On -RewriteCond %{HTTP_HOST} !^www\.u-vote\.eu$ [NC] -RewriteRule ^(.*)$ http://www.u-vote.eu/$1 [R=301,L] \ No newline at end of file +RewriteRule ^(.*)/fonts/fontawesome-webfont(.*)$ lib/system/lib/font_awesome/lib/fonts/fontawesome-webfont$2 [L] +RewriteRule ^sai$ sai.php$1 [L] + +RewriteRule ^(.*)/files/([^/]+)/([^/]+)$ api.php?call=files&cat=$2&id=$3 [L] +RewriteRule ^cache/([^/]+)/([^/]+)$ api.php?call=cache&id=$1&ident=$2 [L] \ No newline at end of file diff --git a/api.php b/api.php index a404a6c..fa755f9 100644 --- a/api.php +++ b/api.php @@ -1,13 +1,5 @@ html(); \ No newline at end of file +echo (new SYSTEM\SAI\sai_gui())->html(); \ No newline at end of file diff --git a/setup.php b/setup.php index 23ebced..ccb1011 100644 --- a/setup.php +++ b/setup.php @@ -1,12 +1,4 @@ WEBPATH()). \SYSTEM\HTML\html::script(\LIB\lib_bootstrap::js()->WEBPATH()). \SYSTEM\HTML\html::script(\LIB\lib_jqbootstrapvalidation::js()->WEBPATH()). @@ -10,7 +10,7 @@ class default_page extends SYSTEM\PAGE\Page { ''; } - private function css(){ + public static function css(){ return \SYSTEM\HTML\html::link(\LIB\lib_bootstrap::css()->WEBPATH(false)). \SYSTEM\HTML\html::link((new \PPAGE('default_page/css/default_page.css'))->WEBPATH()). \SYSTEM\HTML\html::link(\LIB\lib_font_awesome::css()->WEBPATH(false)); @@ -38,9 +38,9 @@ class default_page extends SYSTEM\PAGE\Page { if(!$_escaped_fragment_){ $vars['js'] = $this->js();} $vars['css'] = $this->css(); - $vars['menu'] = \SYSTEM\SECURITY\Security::isLoggedIn() ? $this->get_menu() : $this->exchange_menu(); - $vars['registerform'] = \SYSTEM\SECURITY\Security::isLoggedIn() ? $this->getloggedinform() : $this->exchange_registerform(); - $vars['loginform'] = \SYSTEM\SECURITY\Security::isLoggedIn() ? $this->exchange_loginform() : $this->getloginform() ; + $vars['menu'] = \SYSTEM\SECURITY\security::isLoggedIn() ? $this->get_menu() : $this->exchange_menu(); + $vars['registerform'] = \SYSTEM\SECURITY\security::isLoggedIn() ? $this->getloggedinform() : $this->exchange_registerform(); + $vars['loginform'] = \SYSTEM\SECURITY\security::isLoggedIn() ? $this->exchange_loginform() : $this->getloginform() ; $vars['frontend_logos'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=files&cat=frontend_logos&id='; $vars = array_merge($vars, \SYSTEM\PAGE\text::tag('uvote')); diff --git a/uvote/page/page_uvote.php b/uvote/page/page_uvote.php index 32e6543..60ba256 100644 --- a/uvote/page/page_uvote.php +++ b/uvote/page/page_uvote.php @@ -1,6 +1,12 @@ html($_escaped_fragment_);} diff --git a/uvote/sai/saimod_uvote_vote_edit/saimod_uvote_vote_edit.php b/uvote/sai/saimod_uvote_vote_edit/saimod_uvote_vote_edit.php index bbc7627..d8e6b65 100644 --- a/uvote/sai/saimod_uvote_vote_edit/saimod_uvote_vote_edit.php +++ b/uvote/sai/saimod_uvote_vote_edit/saimod_uvote_vote_edit.php @@ -1,6 +1,6 @@