Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

initial commit

  • Loading branch information...
commit efd960b2d3bd82ecd71b4891dc9565155ddd7a49 0 parents
authored June 06, 2011
3  .gitignore
... ...
@@ -0,0 +1,3 @@
  1
+*.swp
  2
+.*.swp
  3
+config.php
88  Chan.php
... ...
@@ -0,0 +1,88 @@
  1
+<?php
  2
+class Chan {
  3
+	private $db, $get, $post, $site_url;
  4
+
  5
+	public function __construct($db, $site_url = '/', $get = NULL, $post = NULL) {
  6
+		$this->db = $db;
  7
+		$this->get = $get;
  8
+		$this->post = $post;
  9
+		$this->site_url = $site_url;
  10
+
  11
+		if (!empty($this->post)) {
  12
+			$this->db->dorps->insert(array('dorps' => $_POST), array('safe' => true));
  13
+		}
  14
+	}
  15
+
  16
+	public function out() {
  17
+?>
  18
+<!doctype html>
  19
+<html>
  20
+<head>
  21
+<meta name="generator" content="WonkyChan 0.1">
  22
+<title>wonkychan</title>
  23
+<?php echo $this->style(); ?>
  24
+</head>
  25
+<body>
  26
+	<div id="wonky-contained">
  27
+		<?php echo $this->header(); ?>
  28
+		<p>
  29
+			<h1><a href="<?php echo $this->site_url; ?>">Wonkychan</a></h1>
  30
+			<?php echo $this->form(); ?>
  31
+			<?php var_dump(iterator_to_array($this->showDorps())); ?>
  32
+		</p>
  33
+	</div>
  34
+</body>
  35
+</html>
  36
+<?php
  37
+	}
  38
+
  39
+	private function header() {
  40
+?>
  41
+<div class="header">
  42
+<?php print_r($this->get); ?>
  43
+<?php print_r($this->post); ?>
  44
+</div>
  45
+<?php
  46
+	}
  47
+
  48
+	private function form() {
  49
+?>
  50
+<form name="dorp" enctype="multipart/form-data" method="post" action="index.php">
  51
+<textarea id="words" name="words"></textarea>
  52
+<input type="file" name="picture" id="picture" />
  53
+<input type="submit" />
  54
+</form>
  55
+<?
  56
+	}
  57
+
  58
+	private function style() {
  59
+?>
  60
+<link rel="stylesheet" href="blueprint/screen.css" type="text/css" media="screen, projection">
  61
+<link rel="stylesheet" href="blueprint/print.css" type="text/css" media="print"> 
  62
+<!--[if lt IE 8]>
  63
+<link rel="stylesheet" href="blueprint/ie.css" type="text/css" media="screen, projection">
  64
+<![endif]-->
  65
+<style type="text/css">
  66
+	body {
  67
+		background-color: purple;
  68
+	}
  69
+	h1 {
  70
+		color: white;
  71
+	}
  72
+	#wonky-contained {
  73
+		width: 960px;
  74
+		margin: 0px auto 0px auto;
  75
+	}
  76
+	.header, .dorps {
  77
+		background-color: #9ff904;
  78
+		padding: 1em;
  79
+	}
  80
+</style>
  81
+<?php
  82
+	}
  83
+
  84
+	private function showDorps() {
  85
+		return $this->db->dorps->find(array('words'));
  86
+	}
  87
+}
  88
+?>
36  blueprint/ie.css
... ...
@@ -0,0 +1,36 @@
  1
+/* -----------------------------------------------------------------------
  2
+
  3
+
  4
+ Blueprint CSS Framework 1.0.1
  5
+ http://blueprintcss.org
  6
+
  7
+   * Copyright (c) 2007-Present. See LICENSE for more info.
  8
+   * See README for instructions on how to use Blueprint.
  9
+   * For credits and origins, see AUTHORS.
  10
+   * This is a compressed file. See the sources in the 'src' directory.
  11
+
  12
+----------------------------------------------------------------------- */
  13
+
  14
+/* ie.css */
  15
+body {text-align:center;}
  16
+.container {text-align:left;}
  17
+* html .column, * html .span-1, * html .span-2, * html .span-3, * html .span-4, * html .span-5, * html .span-6, * html .span-7, * html .span-8, * html .span-9, * html .span-10, * html .span-11, * html .span-12, * html .span-13, * html .span-14, * html .span-15, * html .span-16, * html .span-17, * html .span-18, * html .span-19, * html .span-20, * html .span-21, * html .span-22, * html .span-23, * html .span-24 {display:inline;overflow-x:hidden;}
  18
+* html legend {margin:0px -8px 16px 0;padding:0;}
  19
+sup {vertical-align:text-top;}
  20
+sub {vertical-align:text-bottom;}
  21
+html>body p code {*white-space:normal;}
  22
+hr {margin:-8px auto 11px;}
  23
+img {-ms-interpolation-mode:bicubic;}
  24
+.clearfix, .container {display:inline-block;}
  25
+* html .clearfix, * html .container {height:1%;}
  26
+fieldset {padding-top:0;}
  27
+legend {margin-top:-0.2em;margin-bottom:1em;margin-left:-0.5em;}
  28
+textarea {overflow:auto;}
  29
+label {vertical-align:middle;position:relative;top:-0.25em;}
  30
+input.text, input.title, textarea {background-color:#fff;border:1px solid #bbb;}
  31
+input.text:focus, input.title:focus {border-color:#666;}
  32
+input.text, input.title, textarea, select {margin:0.5em 0;}
  33
+input.checkbox, input.radio {position:relative;top:.25em;}
  34
+form.inline div, form.inline p {vertical-align:middle;}
  35
+form.inline input.checkbox, form.inline input.radio, form.inline input.button, form.inline button {margin:0.5em 0;}
  36
+button, input.button {position:relative;top:0.25em;}
29  blueprint/print.css
... ...
@@ -0,0 +1,29 @@
  1
+/* -----------------------------------------------------------------------
  2
+
  3
+
  4
+ Blueprint CSS Framework 1.0.1
  5
+ http://blueprintcss.org
  6
+
  7
+   * Copyright (c) 2007-Present. See LICENSE for more info.
  8
+   * See README for instructions on how to use Blueprint.
  9
+   * For credits and origins, see AUTHORS.
  10
+   * This is a compressed file. See the sources in the 'src' directory.
  11
+
  12
+----------------------------------------------------------------------- */
  13
+
  14
+/* print.css */
  15
+body {line-height:1.5;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;color:#000;background:none;font-size:10pt;}
  16
+.container {background:none;}
  17
+hr {background:#ccc;color:#ccc;width:100%;height:2px;margin:2em 0;padding:0;border:none;}
  18
+hr.space {background:#fff;color:#fff;visibility:hidden;}
  19
+h1, h2, h3, h4, h5, h6 {font-family:"Helvetica Neue", Arial, "Lucida Grande", sans-serif;}
  20
+code {font:.9em "Courier New", Monaco, Courier, monospace;}
  21
+a img {border:none;}
  22
+p img.top {margin-top:0;}
  23
+blockquote {margin:1.5em;padding:1em;font-style:italic;font-size:.9em;}
  24
+.small {font-size:.9em;}
  25
+.large {font-size:1.1em;}
  26
+.quiet {color:#999;}
  27
+.hide {display:none;}
  28
+a:link, a:visited {background:transparent;font-weight:700;text-decoration:underline;}
  29
+a:link:after, a:visited:after {content:" (" attr(href) ")";font-size:90%;}
265  blueprint/screen.css
... ...
@@ -0,0 +1,265 @@
  1
+/* -----------------------------------------------------------------------
  2
+
  3
+
  4
+ Blueprint CSS Framework 1.0.1
  5
+ http://blueprintcss.org
  6
+
  7
+   * Copyright (c) 2007-Present. See LICENSE for more info.
  8
+   * See README for instructions on how to use Blueprint.
  9
+   * For credits and origins, see AUTHORS.
  10
+   * This is a compressed file. See the sources in the 'src' directory.
  11
+
  12
+----------------------------------------------------------------------- */
  13
+
  14
+/* reset.css */
  15
+html {margin:0;padding:0;border:0;}
  16
+body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section {margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}
  17
+article, aside, details, figcaption, figure, dialog, footer, header, hgroup, menu, nav, section {display:block;}
  18
+body {line-height:1.5;background:white;}
  19
+table {border-collapse:separate;border-spacing:0;}
  20
+caption, th, td {text-align:left;font-weight:normal;float:none !important;}
  21
+table, th, td {vertical-align:middle;}
  22
+blockquote:before, blockquote:after, q:before, q:after {content:'';}
  23
+blockquote, q {quotes:"" "";}
  24
+a img {border:none;}
  25
+:focus {outline:0;}
  26
+
  27
+/* typography.css */
  28
+html {font-size:100.01%;}
  29
+body {font-size:75%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;}
  30
+h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;}
  31
+h1 {font-size:3em;line-height:1;margin-bottom:0.5em;}
  32
+h2 {font-size:2em;margin-bottom:0.75em;}
  33
+h3 {font-size:1.5em;line-height:1;margin-bottom:1em;}
  34
+h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;}
  35
+h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;}
  36
+h6 {font-size:1em;font-weight:bold;}
  37
+h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;}
  38
+p {margin:0 0 1.5em;}
  39
+.left {float:left !important;}
  40
+p .left {margin:1.5em 1.5em 1.5em 0;padding:0;}
  41
+.right {float:right !important;}
  42
+p .right {margin:1.5em 0 1.5em 1.5em;padding:0;}
  43
+a:focus, a:hover {color:#09f;}
  44
+a {color:#06c;text-decoration:underline;}
  45
+blockquote {margin:1.5em;color:#666;font-style:italic;}
  46
+strong, dfn {font-weight:bold;}
  47
+em, dfn {font-style:italic;}
  48
+sup, sub {line-height:0;}
  49
+abbr, acronym {border-bottom:1px dotted #666;}
  50
+address {margin:0 0 1.5em;font-style:italic;}
  51
+del {color:#666;}
  52
+pre {margin:1.5em 0;white-space:pre;}
  53
+pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;}
  54
+li ul, li ol {margin:0;}
  55
+ul, ol {margin:0 1.5em 1.5em 0;padding-left:1.5em;}
  56
+ul {list-style-type:disc;}
  57
+ol {list-style-type:decimal;}
  58
+dl {margin:0 0 1.5em 0;}
  59
+dl dt {font-weight:bold;}
  60
+dd {margin-left:1.5em;}
  61
+table {margin-bottom:1.4em;width:100%;}
  62
+th {font-weight:bold;}
  63
+thead th {background:#c3d9ff;}
  64
+th, td, caption {padding:4px 10px 4px 5px;}
  65
+tbody tr:nth-child(even) td, tbody tr.even td {background:#e5ecf9;}
  66
+tfoot {font-style:italic;}
  67
+caption {background:#eee;}
  68
+.small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;}
  69
+.large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;}
  70
+.hide {display:none;}
  71
+.quiet {color:#666;}
  72
+.loud {color:#000;}
  73
+.highlight {background:#ff0;}
  74
+.added {background:#060;color:#fff;}
  75
+.removed {background:#900;color:#fff;}
  76
+.first {margin-left:0;padding-left:0;}
  77
+.last {margin-right:0;padding-right:0;}
  78
+.top {margin-top:0;padding-top:0;}
  79
+.bottom {margin-bottom:0;padding-bottom:0;}
  80
+
  81
+/* forms.css */
  82
+label {font-weight:bold;}
  83
+fieldset {padding:0 1.4em 1.4em 1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;}
  84
+legend {font-weight:bold;font-size:1.2em;margin-top:-0.2em;margin-bottom:1em;}
  85
+fieldset, #IE8#HACK {padding-top:1.4em;}
  86
+legend, #IE8#HACK {margin-top:0;margin-bottom:0;}
  87
+input[type=text], input[type=password], input[type=url], input[type=email], input.text, input.title, textarea {background-color:#fff;border:1px solid #bbb;color:#000;}
  88
+input[type=text]:focus, input[type=password]:focus, input[type=url]:focus, input[type=email]:focus, input.text:focus, input.title:focus, textarea:focus {border-color:#666;}
  89
+select {background-color:#fff;border-width:1px;border-style:solid;}
  90
+input[type=text], input[type=password], input[type=url], input[type=email], input.text, input.title, textarea, select {margin:0.5em 0;}
  91
+input.text, input.title {width:300px;padding:5px;}
  92
+input.title {font-size:1.5em;}
  93
+textarea {width:390px;height:250px;padding:5px;}
  94
+form.inline {line-height:3;}
  95
+form.inline p {margin-bottom:0;}
  96
+.error, .alert, .notice, .success, .info {padding:0.8em;margin-bottom:1em;border:2px solid #ddd;}
  97
+.error, .alert {background:#fbe3e4;color:#8a1f11;border-color:#fbc2c4;}
  98
+.notice {background:#fff6bf;color:#514721;border-color:#ffd324;}
  99
+.success {background:#e6efc2;color:#264409;border-color:#c6d880;}
  100
+.info {background:#d5edf8;color:#205791;border-color:#92cae4;}
  101
+.error a, .alert a {color:#8a1f11;}
  102
+.notice a {color:#514721;}
  103
+.success a {color:#264409;}
  104
+.info a {color:#205791;}
  105
+
  106
+/* grid.css */
  107
+.container {width:950px;margin:0 auto;}
  108
+.showgrid {background:url(src/grid.png);}
  109
+.column, .span-1, .span-2, .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-10, .span-11, .span-12, .span-13, .span-14, .span-15, .span-16, .span-17, .span-18, .span-19, .span-20, .span-21, .span-22, .span-23, .span-24 {float:left;margin-right:10px;}
  110
+.last {margin-right:0;}
  111
+.span-1 {width:30px;}
  112
+.span-2 {width:70px;}
  113
+.span-3 {width:110px;}
  114
+.span-4 {width:150px;}
  115
+.span-5 {width:190px;}
  116
+.span-6 {width:230px;}
  117
+.span-7 {width:270px;}
  118
+.span-8 {width:310px;}
  119
+.span-9 {width:350px;}
  120
+.span-10 {width:390px;}
  121
+.span-11 {width:430px;}
  122
+.span-12 {width:470px;}
  123
+.span-13 {width:510px;}
  124
+.span-14 {width:550px;}
  125
+.span-15 {width:590px;}
  126
+.span-16 {width:630px;}
  127
+.span-17 {width:670px;}
  128
+.span-18 {width:710px;}
  129
+.span-19 {width:750px;}
  130
+.span-20 {width:790px;}
  131
+.span-21 {width:830px;}
  132
+.span-22 {width:870px;}
  133
+.span-23 {width:910px;}
  134
+.span-24 {width:950px;margin-right:0;}
  135
+input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 {border-left-width:1px;border-right-width:1px;padding-left:5px;padding-right:5px;}
  136
+input.span-1, textarea.span-1 {width:18px;}
  137
+input.span-2, textarea.span-2 {width:58px;}
  138
+input.span-3, textarea.span-3 {width:98px;}
  139
+input.span-4, textarea.span-4 {width:138px;}
  140
+input.span-5, textarea.span-5 {width:178px;}
  141
+input.span-6, textarea.span-6 {width:218px;}
  142
+input.span-7, textarea.span-7 {width:258px;}
  143
+input.span-8, textarea.span-8 {width:298px;}
  144
+input.span-9, textarea.span-9 {width:338px;}
  145
+input.span-10, textarea.span-10 {width:378px;}
  146
+input.span-11, textarea.span-11 {width:418px;}
  147
+input.span-12, textarea.span-12 {width:458px;}
  148
+input.span-13, textarea.span-13 {width:498px;}
  149
+input.span-14, textarea.span-14 {width:538px;}
  150
+input.span-15, textarea.span-15 {width:578px;}
  151
+input.span-16, textarea.span-16 {width:618px;}
  152
+input.span-17, textarea.span-17 {width:658px;}
  153
+input.span-18, textarea.span-18 {width:698px;}
  154
+input.span-19, textarea.span-19 {width:738px;}
  155
+input.span-20, textarea.span-20 {width:778px;}
  156
+input.span-21, textarea.span-21 {width:818px;}
  157
+input.span-22, textarea.span-22 {width:858px;}
  158
+input.span-23, textarea.span-23 {width:898px;}
  159
+input.span-24, textarea.span-24 {width:938px;}
  160
+.append-1 {padding-right:40px;}
  161
+.append-2 {padding-right:80px;}
  162
+.append-3 {padding-right:120px;}
  163
+.append-4 {padding-right:160px;}
  164
+.append-5 {padding-right:200px;}
  165
+.append-6 {padding-right:240px;}
  166
+.append-7 {padding-right:280px;}
  167
+.append-8 {padding-right:320px;}
  168
+.append-9 {padding-right:360px;}
  169
+.append-10 {padding-right:400px;}
  170
+.append-11 {padding-right:440px;}
  171
+.append-12 {padding-right:480px;}
  172
+.append-13 {padding-right:520px;}
  173
+.append-14 {padding-right:560px;}
  174
+.append-15 {padding-right:600px;}
  175
+.append-16 {padding-right:640px;}
  176
+.append-17 {padding-right:680px;}
  177
+.append-18 {padding-right:720px;}
  178
+.append-19 {padding-right:760px;}
  179
+.append-20 {padding-right:800px;}
  180
+.append-21 {padding-right:840px;}
  181
+.append-22 {padding-right:880px;}
  182
+.append-23 {padding-right:920px;}
  183
+.prepend-1 {padding-left:40px;}
  184
+.prepend-2 {padding-left:80px;}
  185
+.prepend-3 {padding-left:120px;}
  186
+.prepend-4 {padding-left:160px;}
  187
+.prepend-5 {padding-left:200px;}
  188
+.prepend-6 {padding-left:240px;}
  189
+.prepend-7 {padding-left:280px;}
  190
+.prepend-8 {padding-left:320px;}
  191
+.prepend-9 {padding-left:360px;}
  192
+.prepend-10 {padding-left:400px;}
  193
+.prepend-11 {padding-left:440px;}
  194
+.prepend-12 {padding-left:480px;}
  195
+.prepend-13 {padding-left:520px;}
  196
+.prepend-14 {padding-left:560px;}
  197
+.prepend-15 {padding-left:600px;}
  198
+.prepend-16 {padding-left:640px;}
  199
+.prepend-17 {padding-left:680px;}
  200
+.prepend-18 {padding-left:720px;}
  201
+.prepend-19 {padding-left:760px;}
  202
+.prepend-20 {padding-left:800px;}
  203
+.prepend-21 {padding-left:840px;}
  204
+.prepend-22 {padding-left:880px;}
  205
+.prepend-23 {padding-left:920px;}
  206
+.border {padding-right:4px;margin-right:5px;border-right:1px solid #ddd;}
  207
+.colborder {padding-right:24px;margin-right:25px;border-right:1px solid #ddd;}
  208
+.pull-1 {margin-left:-40px;}
  209
+.pull-2 {margin-left:-80px;}
  210
+.pull-3 {margin-left:-120px;}
  211
+.pull-4 {margin-left:-160px;}
  212
+.pull-5 {margin-left:-200px;}
  213
+.pull-6 {margin-left:-240px;}
  214
+.pull-7 {margin-left:-280px;}
  215
+.pull-8 {margin-left:-320px;}
  216
+.pull-9 {margin-left:-360px;}
  217
+.pull-10 {margin-left:-400px;}
  218
+.pull-11 {margin-left:-440px;}
  219
+.pull-12 {margin-left:-480px;}
  220
+.pull-13 {margin-left:-520px;}
  221
+.pull-14 {margin-left:-560px;}
  222
+.pull-15 {margin-left:-600px;}
  223
+.pull-16 {margin-left:-640px;}
  224
+.pull-17 {margin-left:-680px;}
  225
+.pull-18 {margin-left:-720px;}
  226
+.pull-19 {margin-left:-760px;}
  227
+.pull-20 {margin-left:-800px;}
  228
+.pull-21 {margin-left:-840px;}
  229
+.pull-22 {margin-left:-880px;}
  230
+.pull-23 {margin-left:-920px;}
  231
+.pull-24 {margin-left:-960px;}
  232
+.pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float:left;position:relative;}
  233
+.push-1 {margin:0 -40px 1.5em 40px;}
  234
+.push-2 {margin:0 -80px 1.5em 80px;}
  235
+.push-3 {margin:0 -120px 1.5em 120px;}
  236
+.push-4 {margin:0 -160px 1.5em 160px;}
  237
+.push-5 {margin:0 -200px 1.5em 200px;}
  238
+.push-6 {margin:0 -240px 1.5em 240px;}
  239
+.push-7 {margin:0 -280px 1.5em 280px;}
  240
+.push-8 {margin:0 -320px 1.5em 320px;}
  241
+.push-9 {margin:0 -360px 1.5em 360px;}
  242
+.push-10 {margin:0 -400px 1.5em 400px;}
  243
+.push-11 {margin:0 -440px 1.5em 440px;}
  244
+.push-12 {margin:0 -480px 1.5em 480px;}
  245
+.push-13 {margin:0 -520px 1.5em 520px;}
  246
+.push-14 {margin:0 -560px 1.5em 560px;}
  247
+.push-15 {margin:0 -600px 1.5em 600px;}
  248
+.push-16 {margin:0 -640px 1.5em 640px;}
  249
+.push-17 {margin:0 -680px 1.5em 680px;}
  250
+.push-18 {margin:0 -720px 1.5em 720px;}
  251
+.push-19 {margin:0 -760px 1.5em 760px;}
  252
+.push-20 {margin:0 -800px 1.5em 800px;}
  253
+.push-21 {margin:0 -840px 1.5em 840px;}
  254
+.push-22 {margin:0 -880px 1.5em 880px;}
  255
+.push-23 {margin:0 -920px 1.5em 920px;}
  256
+.push-24 {margin:0 -960px 1.5em 960px;}
  257
+.push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float:left;position:relative;}
  258
+div.prepend-top, .prepend-top {margin-top:1.5em;}
  259
+div.append-bottom, .append-bottom {margin-bottom:1.5em;}
  260
+.box {padding:1.5em;margin-bottom:1.5em;background:#e5eCf9;}
  261
+hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:1px;margin:0 0 17px;border:none;}
  262
+hr.space {background:#fff;color:#fff;visibility:hidden;}
  263
+.clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;}
  264
+.clearfix, .container {display:block;}
  265
+.clear {clear:both;}
6  config.example.php
... ...
@@ -0,0 +1,6 @@
  1
+<?php
  2
+define('DB_USER', '');
  3
+define('DB_PASS', '');
  4
+define('DB_NAME', '');
  5
+define('SITE_URL', '');
  6
+?>
11  index.php
... ...
@@ -0,0 +1,11 @@
  1
+<?php
  2
+require('config.php');
  3
+require('Chan.php');
  4
+
  5
+$mongo = new Mongo('mongodb://'.DB_USER.':'.DB_PASS.'@localhost/'.DB_NAME);
  6
+$db = $mongo->selectDB(DB_NAME);
  7
+
  8
+$chan = new Chan($db, SITE_URL, $_GET, $_POST);
  9
+
  10
+$chan->out();
  11
+?>

0 notes on commit efd960b

Please sign in to comment.
Something went wrong with that request. Please try again.