aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-08-18 23:39:13 +0200
committerKevin Chabowski <kevin@kch42.de>2011-08-18 23:39:13 +0200
commitccf2fe853c2cfe629d92833df0e7abe6be4a7df3 (patch)
tree3e8cf33e396dfecbc856392c1d20a47d9ab80d68
parentd428491020e51495c486c997f176ddcba1efd09c (diff)
downloadratatoeskr-cms-ccf2fe853c2cfe629d92833df0e7abe6be4a7df3.tar.gz
ratatoeskr-cms-ccf2fe853c2cfe629d92833df0e7abe6be4a7df3.tar.bz2
ratatoeskr-cms-ccf2fe853c2cfe629d92833df0e7abe6be4a7df3.zip
Started work on backend...
-rw-r--r--ratatoeskr/backend/main.php25
-rw-r--r--ratatoeskr/main.php5
-rw-r--r--ratatoeskr/templates/systemtemplates/backend_login.html13
3 files changed, 42 insertions, 1 deletions
diff --git a/ratatoeskr/backend/main.php b/ratatoeskr/backend/main.php
index e69de29..e0adbdc 100644
--- a/ratatoeskr/backend/main.php
+++ b/ratatoeskr/backend/main.php
@@ -0,0 +1,25 @@
+<?php
+/*
+ * File: ratatoeskr/backend/main.php
+ * Main file for the backend.
+ *
+ * License:
+ * This file is part of Ratatöskr.
+ * Ratatöskr is licensed unter the MIT / X11 License.
+ * See "ratatoeskr/licenses/ratatoeskr" for more information.
+ */
+
+require_once(dirname(__FILE__) . "/../sys/");
+
+
+
+$backend_subactions = url_action_subactions(array(
+ "_default" => url_action_alias(array("login")),
+ "login" => url_action_simple(function($data)
+ {
+
+ }),
+
+));
+
+?>
diff --git a/ratatoeskr/main.php b/ratatoeskr/main.php
index 8d988da..a543da6 100644
--- a/ratatoeskr/main.php
+++ b/ratatoeskr/main.php
@@ -14,7 +14,7 @@ require_once(dirname(__FILE__) . "/sys/plugin_api.php");
require_once(dirname(__FILE__) . "/sys/models.php");
require_once(dirname(__FILE__) . "/sys/urlprocess.php");
require_once(dirname(__FILE__) . "/frontend.php");
-require_once(dirname(__FILE__) . "/backend.php");
+require_once(dirname(__FILE__) . "/backend/main.php");
function ratatoeskr()
{
@@ -39,6 +39,9 @@ function ratatoeskr()
register_url_handler("_default", "frontend_url_handler");
register_url_handler("backend", $backend_subactions);
register_url_handler("_notfound", "e404handler");
+
+ $urlpath = explode("/", $_GET["action"]);
+ $data = array("rel_path_to_root")
}
?>
diff --git a/ratatoeskr/templates/systemtemplates/backend_login.html b/ratatoeskr/templates/systemtemplates/backend_login.html
new file mode 100644
index 0000000..24738d2
--- /dev/null
+++ b/ratatoeskr/templates/systemtemplates/backend_login.html
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+ <title>Login - Ratatöskr</title>
+ <link rel="stylesheet" href="{$rel_path_to_root}/ratatoeskr/cms_style/login.css" type="text/css" charset="utf-8" />
+</head>
+<body>
+
+</body>
+</html>