mytinytodo/src/index.php

20 lines
536 B
PHP
Raw Normal View History

2009-08-27 12:48:09 +00:00
<?php
/*
This file is part of myTinyTodo.
(C) Copyright 2009-2010 Max Pozdeev <maxpozdeev@gmail.com>
2009-08-27 12:48:09 +00:00
Licensed under the GNU GPL v3 license. See file COPYRIGHT for details.
*/
2010-02-06 17:35:39 +00:00
require_once('./init.php');
2009-08-27 12:48:09 +00:00
2010-02-06 17:35:39 +00:00
$lang = Lang::instance();
2009-08-27 12:48:09 +00:00
if($lang->rtl()) Config::set('rtl', 1);
if(!is_int(Config::get('firstdayofweek')) || Config::get('firstdayofweek')<0 || Config::get('firstdayofweek')>6) Config::set('firstdayofweek', 1);
2010-02-06 17:35:39 +00:00
define('TEMPLATEPATH', MTTPATH. 'themes/'.Config::get('template').'/');
require(TEMPLATEPATH. 'index.php');
?>