From: Artem Daniliants Date: Tue, 30 Mar 2010 20:01:12 +0000 (+0300) Subject: Basic skeleton for static website X-Git-Tag: v0.2-RC1~26 X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=commitdiff_plain;h=604af45b2b4093b01dc7669a51d9fd67a4c43ad7 Basic skeleton for static website --- diff --git a/Server/.htaccess b/Server/.htaccess index bffb566..17599f6 100644 --- a/Server/.htaccess +++ b/Server/.htaccess @@ -2,7 +2,7 @@ RewriteEngine On # Installation directory -RewriteBase /projects/misc/speedfreak.git/Server +RewriteBase /api # Protect application and system files from being viewed RewriteRule ^(application|modules|system) - [F,L] diff --git a/Server/application/config/config.php b/Server/application/config/config.php index 112bc27..c6cf696 100644 --- a/Server/application/config/config.php +++ b/Server/application/config/config.php @@ -4,7 +4,7 @@ * then a full URL will be used, eg: http://localhost/kohana/. If it only includes * the path, and a site_protocol is specified, the domain will be auto-detected. */ -$config['site_domain'] = '/projects/misc/speedfreak.git/Server'; +$config['site_domain'] = '/api'; /** * Force a default protocol to be used by the site. If no site_protocol is diff --git a/Server/application/config/database.php b/Server/application/config/database.php index 60de5e4..74f4e0e 100644 --- a/Server/application/config/database.php +++ b/Server/application/config/database.php @@ -31,7 +31,7 @@ $config['default'] = array ( 'type' => 'mysql', 'user' => 'root', - 'pass' => '', + 'pass' => 'root', 'host' => 'localhost', 'port' => FALSE, 'socket' => FALSE, diff --git a/Server/application/controllers/page.php b/Server/application/controllers/page.php new file mode 100644 index 0000000..d47ca8d --- /dev/null +++ b/Server/application/controllers/page.php @@ -0,0 +1,17 @@ +template->content= 'to be replaced'; + } +} \ No newline at end of file diff --git a/Server/application/views/pages/base.php b/Server/application/views/pages/base.php new file mode 100644 index 0000000..fb9b2de --- /dev/null +++ b/Server/application/views/pages/base.php @@ -0,0 +1,15 @@ + + + \ No newline at end of file diff --git a/Server/application/views/pages/tracking.php b/Server/application/views/pages/tracking.php new file mode 100644 index 0000000..0915d1b --- /dev/null +++ b/Server/application/views/pages/tracking.php @@ -0,0 +1,29 @@ + + + + + + + + + \ No newline at end of file