mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
28 lines
No EOL
612 B
PHP
28 lines
No EOL
612 B
PHP
<?php
|
|
/*
|
|
This file is part of myTinyTodo.
|
|
(C) Copyright 2009-2010,2020 Max Pozdeev <maxpozdeev@gmail.com>
|
|
Licensed under the GNU GPL v2 license. See file COPYRIGHT for details.
|
|
*/
|
|
|
|
require_once('./init.php');
|
|
|
|
$lang = Lang::instance();
|
|
|
|
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);
|
|
}
|
|
|
|
if (isset($_GET['pda'])) {
|
|
Config::set('mobile', 1);
|
|
}
|
|
|
|
define('TEMPLATEPATH', MTTPATH. 'themes/'. Config::get('template'). '/');
|
|
|
|
require(TEMPLATEPATH. 'index.php');
|
|
|
|
?>
|