owls

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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Config/Owls.css.php	Sun May 27 03:01:16 2007 +0200
     1.3 @@ -0,0 +1,221 @@
     1.4 +<?php
     1.5 +/*########################################################
     1.6 +######    to modify the look of owls, edit below    ######
     1.7 +########################################################*/
     1.8 +
     1.9 +
    1.10 +/*
    1.11 +    color setup
    1.12 +    use color values according to http://www.w3.org/TR/CSS21/syndata.html#color-units
    1.13 +    you can assign the set variables too
    1.14 +*/
    1.15 +
    1.16 +  $c_Text             = '#000';
    1.17 +  $c_Background       = '#999';
    1.18 +
    1.19 +  $c_Border           = $c_Text;
    1.20 +
    1.21 +  $c_Link             = $c_Text;
    1.22 +  $c_LinkHover        = '#ff8040';
    1.23 +  $c_LinkVisited      = '#666';
    1.24 +
    1.25 +  $c_Nav              = $c_Link;
    1.26 +  $c_NavHover         = $c_LinkHover;
    1.27 +  $c_NavSelected      = '#eee';
    1.28 +
    1.29 +  $c_Login            = $c_LinkVisited;
    1.30 +  $c_Admin            = '#ffff80';
    1.31 +
    1.32 +
    1.33 +/*
    1.34 +    width of the menu area
    1.35 +    the unit 'em' is relative to the font-size
    1.36 +    see: http://www.w3.org/TR/CSS21/syndata.html#length-units
    1.37 +*/
    1.38 +
    1.39 +  $m_NavWidth         = '10em';
    1.40 +
    1.41 +
    1.42 +/*########################################################
    1.43 +#############    noobs, stop editing here    #############
    1.44 +########################################################*/
    1.45 +
    1.46 +
    1.47 +
    1.48 +
    1.49 +
    1.50 +
    1.51 +  header('Content-Type: text/css; charset=utf8');
    1.52 +
    1.53 +  // avoid caching    TODO: think about removing, cause it's just for dev
    1.54 +  header('Expires: Thu, 05 Apr 1984 04:47:00 GMT');
    1.55 +  header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
    1.56 +  header('Cache-Control: no-store');
    1.57 +  header('Pragma: no-cache');
    1.58 +  echo('/* Anti-Caching: '.microtime()." */\r\n");
    1.59 +
    1.60 +?>
    1.61 +
    1.62 +
    1.63 +
    1.64 +body {
    1.65 +  font-family: sans-serif;
    1.66 +  margin: 30px 0;
    1.67 +  text-align: center;
    1.68 +  color: <?php echo $c_Text; ?>;
    1.69 +  background-color: <?php echo $c_Background; ?>;
    1.70 +}
    1.71 +
    1.72 +
    1.73 +#websiteContainer {
    1.74 +  width: 760px;
    1.75 +  margin: 0 auto;
    1.76 +  text-align: justify;
    1.77 +}
    1.78 +
    1.79 +#banner {
    1.80 +  display: block;
    1.81 +  margin: 0 auto;
    1.82 +}
    1.83 +
    1.84 +#content {
    1.85 +  position: relative;
    1.86 +  margin-left: <?php echo $m_NavWidth; ?>;
    1.87 +  padding: 1em;
    1.88 +}
    1.89 +
    1.90 +
    1.91 +
    1.92 +/*  uhhh?? is this not needed anymore? are there no borders drawn by default?
    1.93 +img {
    1.94 +  border: none;
    1.95 +}
    1.96 +*/
    1.97 +
    1.98 +
    1.99 +
   1.100 +
   1.101 +
   1.102 +
   1.103 +/*  links  */
   1.104 +a:link {
   1.105 +  color: <?php echo $c_Link; ?>;
   1.106 +}
   1.107 +a:visited {
   1.108 +  color: <?php echo $c_LinkVisited;?>;
   1.109 +}
   1.110 +a:active,
   1.111 +a:hover {
   1.112 +  color: <?php echo $c_LinkHover; ?>;
   1.113 +}
   1.114 +
   1.115 +
   1.116 +
   1.117 +
   1.118 +
   1.119 +
   1.120 +/*  nav  */
   1.121 +#nav {
   1.122 +  list-style: none;
   1.123 +  float: left;
   1.124 +  width: <?php echo $m_NavWidth; ?>;
   1.125 +  padding: 0.5em 2em 1em 0.5em;
   1.126 +  margin: 2.5em 0 1em 0;
   1.127 +  font-size: 0.8em;
   1.128 +}
   1.129 +
   1.130 +#nav ul {
   1.131 +  list-style: none;
   1.132 +  margin-left: 0;
   1.133 +  padding-left: 1em;
   1.134 +/*  border: 1px solid #060; */
   1.135 +}
   1.136 +#nav li {
   1.137 +  padding: 1px;
   1.138 +  margin: 0;
   1.139 +/*  border: 1px solid #006; */
   1.140 +}
   1.141 +
   1.142 +#nav a {
   1.143 +  display: block;
   1.144 +  text-decoration: none;
   1.145 +  color: <?php echo $c_Nav; ?>;
   1.146 +}
   1.147 +#nav a:link,
   1.148 +#nav a:visited {
   1.149 +  text-decoration: none;
   1.150 +}
   1.151 +#nav a:active,
   1.152 +#nav a:hover {
   1.153 +  color: <?php echo $c_NavHover; ?>;
   1.154 +  text-decoration: none;
   1.155 +}
   1.156 +
   1.157 +#selected:link,
   1.158 +#selected:visited {
   1.159 +  color: <?php echo $c_NavSelected; ?>;
   1.160 +}
   1.161 +#nav #selected:hover {
   1.162 +  color: <?php echo $c_NavHover; ?>;
   1.163 +}
   1.164 +
   1.165 +
   1.166 +
   1.167 +
   1.168 +/*  orphans and broken  */
   1.169 +li#orphans,
   1.170 +li#broken {
   1.171 +  margin-top: 3em;
   1.172 +  font-style: italic;
   1.173 +  color: <?php echo $c_Admin; ?>;
   1.174 +}
   1.175 +
   1.176 +
   1.177 +
   1.178 +
   1.179 +/*  login  */
   1.180 +#loginform input {
   1.181 +  background-color: transparent;
   1.182 +  border: none;
   1.183 +  border-bottom: <?php echo $c_Login; ?> 1px solid;    /* TODO: think about other color */
   1.184 +  font-size: 0.8em;
   1.185 +  width: 8em;
   1.186 +}
   1.187 +
   1.188 +
   1.189 +
   1.190 +
   1.191 +
   1.192 +
   1.193 +/*  admin controls  */
   1.194 +.ctrl {
   1.195 +  position: absolute;
   1.196 +  right: 0;
   1.197 +  text-align: right;
   1.198 +  font-size: 0.8em;
   1.199 +  color: <?php echo $c_Login; ?>;
   1.200 +}
   1.201 +.ctrl a,
   1.202 +.ctrl a:visited,
   1.203 +.ctrl a:hover {
   1.204 +  margin-left: 1em;
   1.205 +  color: <?php echo $c_Admin; ?>;
   1.206 +}
   1.207 +
   1.208 +
   1.209 +
   1.210 +
   1.211 +
   1.212 +
   1.213 +/*  edit form  */
   1.214 +#edit {
   1.215 +  margin-top: 1.5em;
   1.216 +}
   1.217 +#edit input,
   1.218 +#edit select,
   1.219 +#edit textarea {
   1.220 +  font-family: sans-serif;
   1.221 +  font-size: 0.8em;
   1.222 +  border: <?php echo $c_Border; ?> 1px solid;
   1.223 +}
   1.224 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/Config/Setup.php	Sun May 27 03:01:16 2007 +0200
     2.3 @@ -0,0 +1,52 @@
     2.4 +<?php
     2.5 +
     2.6 +// you can customize the config here
     2.7 +
     2.8 +$dbPrefix = 'rem__2_';    // the names of the db-tables will be prefixed with this string
     2.9 +
    2.10 +//$modifyProtected = true;    // are guests allowed to modify data? (true or false)
    2.11 +
    2.12 +$defaultUser = 'admin';    // useraccount if "modifyProtected = true" above
    2.13 +$defaultUserPassword = 'admin';    // password for useraccount if "modifyProtected = true" above
    2.14 +
    2.15 +
    2.16 +
    2.17 +// dont change anything form here on (except you know what you do)
    2.18 +//##################################################################
    2.19 +
    2.20 +  // write db-login-data to textfile
    2.21 +
    2.22 +
    2.23 +  // connect to db and create tables
    2.24 +  require('../Db.inc.php');
    2.25 +
    2.26 +
    2.27 +  // table 'Owls' for the content data
    2.28 +  mysql_query("
    2.29 +    CREATE TABLE IF NOT EXISTS `". $dbPrefix ."Owls` (
    2.30 +      `id` int(11) NOT NULL auto_increment,
    2.31 +      `idParent` int(11) default '0',
    2.32 +      `name` text NOT NULL,
    2.33 +      `text` longtext NOT NULL,
    2.34 +      `permission` tinyint(4) NOT NULL default '1',
    2.35 +      `date` int(11) NOT NULL default '0',
    2.36 +      PRIMARY KEY  (`id`)
    2.37 +    )
    2.38 +  ") or die(mysql_error());
    2.39 +
    2.40 +  // insert startup nodes
    2.41 +  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());
    2.42 +
    2.43 +
    2.44 +
    2.45 +  // login should be managed via text file in future
    2.46 +  mysql_query("CREATE TABLE IF NOT EXISTS `". $dbPrefix ."User` (
    2.47 +    `id` int(11) NOT NULL auto_increment,
    2.48 +    `loginname` tinytext NOT NULL,
    2.49 +    `password` tinytext NOT NULL,
    2.50 +    PRIMARY KEY  (`id`)
    2.51 +  )") or die(mysql_error());
    2.52 +
    2.53 +  mysql_query("INSERT INTO `". $dbPrefix ."User` VALUES (1, '". $defaultUser ."', '". md5($defaultUserPassword) ."')") or die(mysql_error());
    2.54 +
    2.55 +?>
     3.1 --- a/Owls.css.php	Sun May 27 02:37:55 2007 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,221 +0,0 @@
     3.4 -<?php
     3.5 -/*########################################################
     3.6 -######    to modify the look of owls, edit below    ######
     3.7 -########################################################*/
     3.8 -
     3.9 -
    3.10 -/*
    3.11 -    color setup
    3.12 -    use color values according to http://www.w3.org/TR/CSS21/syndata.html#color-units
    3.13 -    you can assign the set variables too
    3.14 -*/
    3.15 -
    3.16 -  $c_Text             = '#000';
    3.17 -  $c_Background       = '#999';
    3.18 -
    3.19 -  $c_Border           = $c_Text;
    3.20 -
    3.21 -  $c_Link             = $c_Text;
    3.22 -  $c_LinkHover        = '#ff8040';
    3.23 -  $c_LinkVisited      = '#666';
    3.24 -
    3.25 -  $c_Nav              = $c_Link;
    3.26 -  $c_NavHover         = $c_LinkHover;
    3.27 -  $c_NavSelected      = '#eee';
    3.28 -
    3.29 -  $c_Login            = $c_LinkVisited;
    3.30 -  $c_Admin            = '#ffff80';
    3.31 -
    3.32 -
    3.33 -/*
    3.34 -    width of the menu area
    3.35 -    the unit 'em' is relative to the font-size
    3.36 -    see: http://www.w3.org/TR/CSS21/syndata.html#length-units
    3.37 -*/
    3.38 -
    3.39 -  $m_NavWidth         = '10em';
    3.40 -
    3.41 -
    3.42 -/*########################################################
    3.43 -#############    noobs, stop editing here    #############
    3.44 -########################################################*/
    3.45 -
    3.46 -
    3.47 -
    3.48 -
    3.49 -
    3.50 -
    3.51 -  header('Content-Type: text/css; charset=utf8');
    3.52 -
    3.53 -  // avoid caching    TODO: think about removing, cause it's just for dev
    3.54 -  header('Expires: Thu, 05 Apr 1984 04:47:00 GMT');
    3.55 -  header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
    3.56 -  header('Cache-Control: no-store');
    3.57 -  header('Pragma: no-cache');
    3.58 -  echo('/* Anti-Caching: '.microtime()." */\r\n");
    3.59 -
    3.60 -?>
    3.61 -
    3.62 -
    3.63 -
    3.64 -body {
    3.65 -  font-family: sans-serif;
    3.66 -  margin: 30px 0;
    3.67 -  text-align: center;
    3.68 -  color: <?php echo $c_Text; ?>;
    3.69 -  background-color: <?php echo $c_Background; ?>;
    3.70 -}
    3.71 -
    3.72 -
    3.73 -#websiteContainer {
    3.74 -  width: 760px;
    3.75 -  margin: 0 auto;
    3.76 -  text-align: justify;
    3.77 -}
    3.78 -
    3.79 -#banner {
    3.80 -  display: block;
    3.81 -  margin: 0 auto;
    3.82 -}
    3.83 -
    3.84 -#content {
    3.85 -  position: relative;
    3.86 -  margin-left: <?php echo $m_NavWidth; ?>;
    3.87 -  padding: 1em;
    3.88 -}
    3.89 -
    3.90 -
    3.91 -
    3.92 -/*  uhhh?? is this not needed anymore? are there no borders drawn by default?
    3.93 -img {
    3.94 -  border: none;
    3.95 -}
    3.96 -*/
    3.97 -
    3.98 -
    3.99 -
   3.100 -
   3.101 -
   3.102 -
   3.103 -/*  links  */
   3.104 -a:link {
   3.105 -  color: <?php echo $c_Link; ?>;
   3.106 -}
   3.107 -a:visited {
   3.108 -  color: <?php echo $c_LinkVisited;?>;
   3.109 -}
   3.110 -a:active,
   3.111 -a:hover {
   3.112 -  color: <?php echo $c_LinkHover; ?>;
   3.113 -}
   3.114 -
   3.115 -
   3.116 -
   3.117 -
   3.118 -
   3.119 -
   3.120 -/*  nav  */
   3.121 -#nav {
   3.122 -  list-style: none;
   3.123 -  float: left;
   3.124 -  width: <?php echo $m_NavWidth; ?>;
   3.125 -  padding: 0.5em 2em 1em 0.5em;
   3.126 -  margin: 2.5em 0 1em 0;
   3.127 -  font-size: 0.8em;
   3.128 -}
   3.129 -
   3.130 -#nav ul {
   3.131 -  list-style: none;
   3.132 -  margin-left: 0;
   3.133 -  padding-left: 1em;
   3.134 -/*  border: 1px solid #060; */
   3.135 -}
   3.136 -#nav li {
   3.137 -  padding: 1px;
   3.138 -  margin: 0;
   3.139 -/*  border: 1px solid #006; */
   3.140 -}
   3.141 -
   3.142 -#nav a {
   3.143 -  display: block;
   3.144 -  text-decoration: none;
   3.145 -  color: <?php echo $c_Nav; ?>;
   3.146 -}
   3.147 -#nav a:link,
   3.148 -#nav a:visited {
   3.149 -  text-decoration: none;
   3.150 -}
   3.151 -#nav a:active,
   3.152 -#nav a:hover {
   3.153 -  color: <?php echo $c_NavHover; ?>;
   3.154 -  text-decoration: none;
   3.155 -}
   3.156 -
   3.157 -#selected:link,
   3.158 -#selected:visited {
   3.159 -  color: <?php echo $c_NavSelected; ?>;
   3.160 -}
   3.161 -#nav #selected:hover {
   3.162 -  color: <?php echo $c_NavHover; ?>;
   3.163 -}
   3.164 -
   3.165 -
   3.166 -
   3.167 -
   3.168 -/*  orphans and broken  */
   3.169 -li#orphans,
   3.170 -li#broken {
   3.171 -  margin-top: 3em;
   3.172 -  font-style: italic;
   3.173 -  color: <?php echo $c_Admin; ?>;
   3.174 -}
   3.175 -
   3.176 -
   3.177 -
   3.178 -
   3.179 -/*  login  */
   3.180 -#loginform input {
   3.181 -  background-color: transparent;
   3.182 -  border: none;
   3.183 -  border-bottom: <?php echo $c_Login; ?> 1px solid;    /* TODO: think about other color */
   3.184 -  font-size: 0.8em;
   3.185 -  width: 8em;
   3.186 -}
   3.187 -
   3.188 -
   3.189 -
   3.190 -
   3.191 -
   3.192 -
   3.193 -/*  admin controls  */
   3.194 -.ctrl {
   3.195 -  position: absolute;
   3.196 -  right: 0;
   3.197 -  text-align: right;
   3.198 -  font-size: 0.8em;
   3.199 -  color: <?php echo $c_Login; ?>;
   3.200 -}
   3.201 -.ctrl a,
   3.202 -.ctrl a:visited,
   3.203 -.ctrl a:hover {
   3.204 -  margin-left: 1em;
   3.205 -  color: <?php echo $c_Admin; ?>;
   3.206 -}
   3.207 -
   3.208 -
   3.209 -
   3.210 -
   3.211 -
   3.212 -
   3.213 -/*  edit form  */
   3.214 -#edit {
   3.215 -  margin-top: 1.5em;
   3.216 -}
   3.217 -#edit input,
   3.218 -#edit select,
   3.219 -#edit textarea {
   3.220 -  font-family: sans-serif;
   3.221 -  font-size: 0.8em;
   3.222 -  border: <?php echo $c_Border; ?> 1px solid;
   3.223 -}
   3.224 -
     4.1 --- a/Owls.php	Sun May 27 02:37:55 2007 +0200
     4.2 +++ b/Owls.php	Sun May 27 03:01:16 2007 +0200
     4.3 @@ -1,6 +1,6 @@
     4.4  <?php
     4.5  
     4.6 -  require_once 'Config.inc.php';
     4.7 +  require_once 'Config/Config.inc.php';
     4.8  
     4.9    define('DB_PREFIX', $db_prefix);
    4.10    define('TITLE', $title);
    4.11 @@ -41,7 +41,7 @@
    4.12    <title><?php echo htmlentities(TITLE); ?></title>
    4.13    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    4.14    <link rel="shortcut icon" href="favicon.ico" />
    4.15 -  <link rel="stylesheet" type="text/css" href="Owls.css.php" />
    4.16 +  <link rel="stylesheet" type="text/css" href="Config/Owls.css.php" />
    4.17    <script type="text/javascript">
    4.18    <!--
    4.19      function sureToDelete(id) {
     5.1 --- a/Setup.php	Sun May 27 02:37:55 2007 +0200
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,52 +0,0 @@
     5.4 -<?php
     5.5 -
     5.6 -// you can customize the config here
     5.7 -
     5.8 -$dbPrefix = 'rem__2_';    // the names of the db-tables will be prefixed with this string
     5.9 -
    5.10 -//$modifyProtected = true;    // are guests allowed to modify data? (true or false)
    5.11 -
    5.12 -$defaultUser = 'admin';    // useraccount if "modifyProtected = true" above
    5.13 -$defaultUserPassword = 'admin';    // password for useraccount if "modifyProtected = true" above
    5.14 -
    5.15 -
    5.16 -
    5.17 -// dont change anything form here on (except you know what you do)
    5.18 -//##################################################################
    5.19 -
    5.20 -  // write db-login-data to textfile
    5.21 -
    5.22 -
    5.23 -  // connect to db and create tables
    5.24 -  require('../Db.inc.php');
    5.25 -
    5.26 -
    5.27 -  // table 'Owls' for the content data
    5.28 -  mysql_query("
    5.29 -    CREATE TABLE IF NOT EXISTS `". $dbPrefix ."Owls` (
    5.30 -      `id` int(11) NOT NULL auto_increment,
    5.31 -      `idParent` int(11) default '0',
    5.32 -      `name` text NOT NULL,
    5.33 -      `text` longtext NOT NULL,
    5.34 -      `permission` tinyint(4) NOT NULL default '1',
    5.35 -      `date` int(11) NOT NULL default '0',
    5.36 -      PRIMARY KEY  (`id`)
    5.37 -    )
    5.38 -  ") or die(mysql_error());
    5.39 -
    5.40 -  // insert startup nodes
    5.41 -  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());
    5.42 -
    5.43 -
    5.44 -
    5.45 -  // login should be managed via text file in future
    5.46 -  mysql_query("CREATE TABLE IF NOT EXISTS `". $dbPrefix ."User` (
    5.47 -    `id` int(11) NOT NULL auto_increment,
    5.48 -    `loginname` tinytext NOT NULL,
    5.49 -    `password` tinytext NOT NULL,
    5.50 -    PRIMARY KEY  (`id`)
    5.51 -  )") or die(mysql_error());
    5.52 -
    5.53 -  mysql_query("INSERT INTO `". $dbPrefix ."User` VALUES (1, '". $defaultUser ."', '". md5($defaultUserPassword) ."')") or die(mysql_error());
    5.54 -
    5.55 -?>