Code by Janith Leanage
This is the 2012 update of Kottu, which gets rid of ugly URLs, loads of bugs and large spaghetti code files :P
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
license.txt for full AGPL license)
(For those who don't get the legal lingo: Basically what we're saying is feel free to copy our code, but please share back any changes or improvements that you make, in the spirit of free software)
This software uses the following external libraries and CSS files:
YUI CSS Reset
Version 3.4.1 (build 4118)
Copyright 2011 Yahoo! Inc. All rights reserved.
Licensed under the BSD License
Simple HTML DOM 1.11 (Rev: 184) Copyright S.C. Chen, John Schlick and Rus Carroll Licensed under The MIT License
./libis the most important folder, and contains the Kottu API, the Kottu back-end, the database connection class, templates class, as well as the SimplePie, Simple HTML DOM and Facebook libraries.
./imgis the images folder, and has the Timthumb file at
./img/index.php. This folder contains the image resources used by Kottu, the icon files, and the Timthumb cache.
./templatescontains all the web, rss and mobile templates, which are filled with data and rendered.
./webcachecontains cached web pages (Kottu cache).
All traffic is directed by
./index.phpfile. Routing and stuff is handled inside that.
./config.phpcontains all the configuration details for Kottu.
How to set up Kottu 2012
kottu2012.sqlin a mySQL server.
Copy the files into the server's webroot, and set up all the values in
Create a Facebook app (to get Facebook share/like information for posts) and copy the app ID and secret into
For our setup at http://kottu.org, we use the following setup. Your needs may vary.
http://basepath/admin/clearcache/secretkeyshould run every hour or so.
http://basepath/admin/spicecalc/secretkeyshould run every 15 minutes or so.
http://basepath/admin/feedget/secretkeyshould run every 5 minutes or so.