]> git.quilime.com - clmpr.git/commitdiff
added mysql schema
authorGabriel Dunne <gdunne@quilime.com>
Sun, 20 Nov 2011 04:56:27 +0000 (20:56 -0800)
committerGabriel Dunne <gdunne@quilime.com>
Sun, 20 Nov 2011 04:56:27 +0000 (20:56 -0800)
clmpr.sql [new file with mode: 0644]
index.php

diff --git a/clmpr.sql b/clmpr.sql
new file mode 100644 (file)
index 0000000..cf99eea
--- /dev/null
+++ b/clmpr.sql
@@ -0,0 +1,28 @@
+SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
+
+-- Database: `clmpr`
+
+
+-- Table structure for table `clumps`
+
+CREATE TABLE IF NOT EXISTS `clumps` (
+  `id` int(9) NOT NULL AUTO_INCREMENT,
+  `user_id` int(9) NOT NULL,
+  `title` varchar(255) NOT NULL,
+  `location` varchar(255) NOT NULL,
+  `tags` varchar(255) NOT NULL,
+  `date` datetime NOT NULL,
+  PRIMARY KEY (`id`)
+) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=239 ;
+
+
+-- Table structure for table `users`
+
+CREATE TABLE IF NOT EXISTS `users` (
+  `id` int(9) NOT NULL AUTO_INCREMENT,
+  `user` varchar(255) NOT NULL,
+  `pass` varchar(255) NOT NULL,
+  `created` datetime NOT NULL,
+  PRIMARY KEY (`id`),
+  UNIQUE KEY `user` (`user`)
+) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
index 31d0341e1e7cd3d575f153a9fc6da29e5727eb24..aa3977a0449801635c4e0f578a67b80f63b8663e 100644 (file)
--- a/index.php
+++ b/index.php
     switch($endpoint)
     {
         case 'about' :
-           echo "clmpr is a place to save hyperlinks";
-           echo '<br/>&copy; 2011 <a href="http://quilime.com">quilime</a>';
-       exit;
-            break;
+            include 'head.html';
+            echo "clmpr is a place to save hyperlinks";
+            echo '<br /><a href="https://github.com/quilime/clmpr">source on github</a>';
+            echo '<br />&copy; 2011 <a href="http://quilime.com">quilime</a>';
+            exit;
 
         default :
-
             if ($endpoint != '') {
 
                 $dbh = get_db_connection();