changeset 14:cebc198276eb owls-0.6

more file moving
author meillo@marmaro.de
date Sun, 27 May 2007 03:01:16 +0200
parents 3e3fa7725abb
children bae203f70c9b
files Config/Owls.css.php Config/Setup.php Owls.css.php Owls.php Setup.php
diffstat 5 files changed, 275 insertions(+), 275 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Config/Owls.css.php	Sun May 27 03:01:16 2007 +0200
@@ -0,0 +1,221 @@
+<?php
+/*########################################################
+######    to modify the look of owls, edit below    ######
+########################################################*/
+
+
+/*
+    color setup
+    use color values according to http://www.w3.org/TR/CSS21/syndata.html#color-units
+    you can assign the set variables too
+*/
+
+  $c_Text             = '#000';
+  $c_Background       = '#999';
+
+  $c_Border           = $c_Text;
+
+  $c_Link             = $c_Text;
+  $c_LinkHover        = '#ff8040';
+  $c_LinkVisited      = '#666';
+
+  $c_Nav              = $c_Link;
+  $c_NavHover         = $c_LinkHover;
+  $c_NavSelected      = '#eee';
+
+  $c_Login            = $c_LinkVisited;
+  $c_Admin            = '#ffff80';
+
+
+/*
+    width of the menu area
+    the unit 'em' is relative to the font-size
+    see: http://www.w3.org/TR/CSS21/syndata.html#length-units
+*/
+
+  $m_NavWidth         = '10em';
+
+
+/*########################################################
+#############    noobs, stop editing here    #############
+########################################################*/
+
+
+
+
+
+
+  header('Content-Type: text/css; charset=utf8');
+
+  // avoid caching    TODO: think about removing, cause it's just for dev
+  header('Expires: Thu, 05 Apr 1984 04:47:00 GMT');
+  header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
+  header('Cache-Control: no-store');
+  header('Pragma: no-cache');
+  echo('/* Anti-Caching: '.microtime()." */\r\n");
+
+?>
+
+
+
+body {
+  font-family: sans-serif;
+  margin: 30px 0;
+  text-align: center;
+  color: <?php echo $c_Text; ?>;
+  background-color: <?php echo $c_Background; ?>;
+}
+
+
+#websiteContainer {
+  width: 760px;
+  margin: 0 auto;
+  text-align: justify;
+}
+
+#banner {
+  display: block;
+  margin: 0 auto;
+}
+
+#content {
+  position: relative;
+  margin-left: <?php echo $m_NavWidth; ?>;
+  padding: 1em;
+}
+
+
+
+/*  uhhh?? is this not needed anymore? are there no borders drawn by default?
+img {
+  border: none;
+}
+*/
+
+
+
+
+
+
+/*  links  */
+a:link {
+  color: <?php echo $c_Link; ?>;
+}
+a:visited {
+  color: <?php echo $c_LinkVisited;?>;
+}
+a:active,
+a:hover {
+  color: <?php echo $c_LinkHover; ?>;
+}
+
+
+
+
+
+
+/*  nav  */
+#nav {
+  list-style: none;
+  float: left;
+  width: <?php echo $m_NavWidth; ?>;
+  padding: 0.5em 2em 1em 0.5em;
+  margin: 2.5em 0 1em 0;
+  font-size: 0.8em;
+}
+
+#nav ul {
+  list-style: none;
+  margin-left: 0;
+  padding-left: 1em;
+/*  border: 1px solid #060; */
+}
+#nav li {
+  padding: 1px;
+  margin: 0;
+/*  border: 1px solid #006; */
+}
+
+#nav a {
+  display: block;
+  text-decoration: none;
+  color: <?php echo $c_Nav; ?>;
+}
+#nav a:link,
+#nav a:visited {
+  text-decoration: none;
+}
+#nav a:active,
+#nav a:hover {
+  color: <?php echo $c_NavHover; ?>;
+  text-decoration: none;
+}
+
+#selected:link,
+#selected:visited {
+  color: <?php echo $c_NavSelected; ?>;
+}
+#nav #selected:hover {
+  color: <?php echo $c_NavHover; ?>;
+}
+
+
+
+
+/*  orphans and broken  */
+li#orphans,
+li#broken {
+  margin-top: 3em;
+  font-style: italic;
+  color: <?php echo $c_Admin; ?>;
+}
+
+
+
+
+/*  login  */
+#loginform input {
+  background-color: transparent;
+  border: none;
+  border-bottom: <?php echo $c_Login; ?> 1px solid;    /* TODO: think about other color */
+  font-size: 0.8em;
+  width: 8em;
+}
+
+
+
+
+
+
+/*  admin controls  */
+.ctrl {
+  position: absolute;
+  right: 0;
+  text-align: right;
+  font-size: 0.8em;
+  color: <?php echo $c_Login; ?>;
+}
+.ctrl a,
+.ctrl a:visited,
+.ctrl a:hover {
+  margin-left: 1em;
+  color: <?php echo $c_Admin; ?>;
+}
+
+
+
+
+
+
+/*  edit form  */
+#edit {
+  margin-top: 1.5em;
+}
+#edit input,
+#edit select,
+#edit textarea {
+  font-family: sans-serif;
+  font-size: 0.8em;
+  border: <?php echo $c_Border; ?> 1px solid;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Config/Setup.php	Sun May 27 03:01:16 2007 +0200
@@ -0,0 +1,52 @@
+<?php
+
+// you can customize the config here
+
+$dbPrefix = 'rem__2_';    // the names of the db-tables will be prefixed with this string
+
+//$modifyProtected = true;    // are guests allowed to modify data? (true or false)
+
+$defaultUser = 'admin';    // useraccount if "modifyProtected = true" above
+$defaultUserPassword = 'admin';    // password for useraccount if "modifyProtected = true" above
+
+
+
+// dont change anything form here on (except you know what you do)
+//##################################################################
+
+  // write db-login-data to textfile
+
+
+  // connect to db and create tables
+  require('../Db.inc.php');
+
+
+  // table 'Owls' for the content data
+  mysql_query("
+    CREATE TABLE IF NOT EXISTS `". $dbPrefix ."Owls` (
+      `id` int(11) NOT NULL auto_increment,
+      `idParent` int(11) default '0',
+      `name` text NOT NULL,
+      `text` longtext NOT NULL,
+      `permission` tinyint(4) NOT NULL default '1',
+      `date` int(11) NOT NULL default '0',
+      PRIMARY KEY  (`id`)
+    )
+  ") or die(mysql_error());
+
+  // insert startup nodes
+  mysql_query("INSERT INTO `". $dbPrefix ."Owls` VALUES (1, 0, 'Index', 'Thanks for using [url=http://prog.marmaro.de/owls/]Owls[/url]!', 0, now())") or die(mysql_error());
+
+
+
+  // login should be managed via text file in future
+  mysql_query("CREATE TABLE IF NOT EXISTS `". $dbPrefix ."User` (
+    `id` int(11) NOT NULL auto_increment,
+    `loginname` tinytext NOT NULL,
+    `password` tinytext NOT NULL,
+    PRIMARY KEY  (`id`)
+  )") or die(mysql_error());
+
+  mysql_query("INSERT INTO `". $dbPrefix ."User` VALUES (1, '". $defaultUser ."', '". md5($defaultUserPassword) ."')") or die(mysql_error());
+
+?>
--- a/Owls.css.php	Sun May 27 02:37:55 2007 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,221 +0,0 @@
-<?php
-/*########################################################
-######    to modify the look of owls, edit below    ######
-########################################################*/
-
-
-/*
-    color setup
-    use color values according to http://www.w3.org/TR/CSS21/syndata.html#color-units
-    you can assign the set variables too
-*/
-
-  $c_Text             = '#000';
-  $c_Background       = '#999';
-
-  $c_Border           = $c_Text;
-
-  $c_Link             = $c_Text;
-  $c_LinkHover        = '#ff8040';
-  $c_LinkVisited      = '#666';
-
-  $c_Nav              = $c_Link;
-  $c_NavHover         = $c_LinkHover;
-  $c_NavSelected      = '#eee';
-
-  $c_Login            = $c_LinkVisited;
-  $c_Admin            = '#ffff80';
-
-
-/*
-    width of the menu area
-    the unit 'em' is relative to the font-size
-    see: http://www.w3.org/TR/CSS21/syndata.html#length-units
-*/
-
-  $m_NavWidth         = '10em';
-
-
-/*########################################################
-#############    noobs, stop editing here    #############
-########################################################*/
-
-
-
-
-
-
-  header('Content-Type: text/css; charset=utf8');
-
-  // avoid caching    TODO: think about removing, cause it's just for dev
-  header('Expires: Thu, 05 Apr 1984 04:47:00 GMT');
-  header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
-  header('Cache-Control: no-store');
-  header('Pragma: no-cache');
-  echo('/* Anti-Caching: '.microtime()." */\r\n");
-
-?>
-
-
-
-body {
-  font-family: sans-serif;
-  margin: 30px 0;
-  text-align: center;
-  color: <?php echo $c_Text; ?>;
-  background-color: <?php echo $c_Background; ?>;
-}
-
-
-#websiteContainer {
-  width: 760px;
-  margin: 0 auto;
-  text-align: justify;
-}
-
-#banner {
-  display: block;
-  margin: 0 auto;
-}
-
-#content {
-  position: relative;
-  margin-left: <?php echo $m_NavWidth; ?>;
-  padding: 1em;
-}
-
-
-
-/*  uhhh?? is this not needed anymore? are there no borders drawn by default?
-img {
-  border: none;
-}
-*/
-
-
-
-
-
-
-/*  links  */
-a:link {
-  color: <?php echo $c_Link; ?>;
-}
-a:visited {
-  color: <?php echo $c_LinkVisited;?>;
-}
-a:active,
-a:hover {
-  color: <?php echo $c_LinkHover; ?>;
-}
-
-
-
-
-
-
-/*  nav  */
-#nav {
-  list-style: none;
-  float: left;
-  width: <?php echo $m_NavWidth; ?>;
-  padding: 0.5em 2em 1em 0.5em;
-  margin: 2.5em 0 1em 0;
-  font-size: 0.8em;
-}
-
-#nav ul {
-  list-style: none;
-  margin-left: 0;
-  padding-left: 1em;
-/*  border: 1px solid #060; */
-}
-#nav li {
-  padding: 1px;
-  margin: 0;
-/*  border: 1px solid #006; */
-}
-
-#nav a {
-  display: block;
-  text-decoration: none;
-  color: <?php echo $c_Nav; ?>;
-}
-#nav a:link,
-#nav a:visited {
-  text-decoration: none;
-}
-#nav a:active,
-#nav a:hover {
-  color: <?php echo $c_NavHover; ?>;
-  text-decoration: none;
-}
-
-#selected:link,
-#selected:visited {
-  color: <?php echo $c_NavSelected; ?>;
-}
-#nav #selected:hover {
-  color: <?php echo $c_NavHover; ?>;
-}
-
-
-
-
-/*  orphans and broken  */
-li#orphans,
-li#broken {
-  margin-top: 3em;
-  font-style: italic;
-  color: <?php echo $c_Admin; ?>;
-}
-
-
-
-
-/*  login  */
-#loginform input {
-  background-color: transparent;
-  border: none;
-  border-bottom: <?php echo $c_Login; ?> 1px solid;    /* TODO: think about other color */
-  font-size: 0.8em;
-  width: 8em;
-}
-
-
-
-
-
-
-/*  admin controls  */
-.ctrl {
-  position: absolute;
-  right: 0;
-  text-align: right;
-  font-size: 0.8em;
-  color: <?php echo $c_Login; ?>;
-}
-.ctrl a,
-.ctrl a:visited,
-.ctrl a:hover {
-  margin-left: 1em;
-  color: <?php echo $c_Admin; ?>;
-}
-
-
-
-
-
-
-/*  edit form  */
-#edit {
-  margin-top: 1.5em;
-}
-#edit input,
-#edit select,
-#edit textarea {
-  font-family: sans-serif;
-  font-size: 0.8em;
-  border: <?php echo $c_Border; ?> 1px solid;
-}
-
--- a/Owls.php	Sun May 27 02:37:55 2007 +0200
+++ b/Owls.php	Sun May 27 03:01:16 2007 +0200
@@ -1,6 +1,6 @@
 <?php
 
-  require_once 'Config.inc.php';
+  require_once 'Config/Config.inc.php';
 
   define('DB_PREFIX', $db_prefix);
   define('TITLE', $title);
@@ -41,7 +41,7 @@
   <title><?php echo htmlentities(TITLE); ?></title>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
   <link rel="shortcut icon" href="favicon.ico" />
-  <link rel="stylesheet" type="text/css" href="Owls.css.php" />
+  <link rel="stylesheet" type="text/css" href="Config/Owls.css.php" />
   <script type="text/javascript">
   <!--
     function sureToDelete(id) {
--- a/Setup.php	Sun May 27 02:37:55 2007 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,52 +0,0 @@
-<?php
-
-// you can customize the config here
-
-$dbPrefix = 'rem__2_';    // the names of the db-tables will be prefixed with this string
-
-//$modifyProtected = true;    // are guests allowed to modify data? (true or false)
-
-$defaultUser = 'admin';    // useraccount if "modifyProtected = true" above
-$defaultUserPassword = 'admin';    // password for useraccount if "modifyProtected = true" above
-
-
-
-// dont change anything form here on (except you know what you do)
-//##################################################################
-
-  // write db-login-data to textfile
-
-
-  // connect to db and create tables
-  require('../Db.inc.php');
-
-
-  // table 'Owls' for the content data
-  mysql_query("
-    CREATE TABLE IF NOT EXISTS `". $dbPrefix ."Owls` (
-      `id` int(11) NOT NULL auto_increment,
-      `idParent` int(11) default '0',
-      `name` text NOT NULL,
-      `text` longtext NOT NULL,
-      `permission` tinyint(4) NOT NULL default '1',
-      `date` int(11) NOT NULL default '0',
-      PRIMARY KEY  (`id`)
-    )
-  ") or die(mysql_error());
-
-  // insert startup nodes
-  mysql_query("INSERT INTO `". $dbPrefix ."Owls` VALUES (1, 0, 'Index', 'Thanks for using [url=http://prog.marmaro.de/owls/]Owls[/url]!', 0, now())") or die(mysql_error());
-
-
-
-  // login should be managed via text file in future
-  mysql_query("CREATE TABLE IF NOT EXISTS `". $dbPrefix ."User` (
-    `id` int(11) NOT NULL auto_increment,
-    `loginname` tinytext NOT NULL,
-    `password` tinytext NOT NULL,
-    PRIMARY KEY  (`id`)
-  )") or die(mysql_error());
-
-  mysql_query("INSERT INTO `". $dbPrefix ."User` VALUES (1, '". $defaultUser ."', '". md5($defaultUserPassword) ."')") or die(mysql_error());
-
-?>