/trunk/themes/testtheme/style.css |
---|
Файл удален |
/trunk/themes/default/style.css |
---|
Файл удален |
\ No newline at end of file |
/trunk/templates/header.tpl |
---|
7,7 → 7,6 |
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://{$feedaddr}/feed.php"> |
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="http://{$feedaddr}/feed.php?atom=1"> |
<link rel="stylesheet" type="text/css" href="./css/ant.css"> |
<link rel="stylesheet" type="text/css" href="./themes/{$theme}/style.css"> |
{$style} |
</head> |
<body> |
/trunk/lib/theme.php |
---|
Файл удален |
\ No newline at end of file |
/trunk/lib/init.php |
---|
26,7 → 26,6 |
require dirname(__FILE__)."/Smarty.class.php"; |
require dirname(__FILE__)."/core.php"; |
require dirname(__FILE__)."/security.php"; |
require dirname(__FILE__)."/theme.php"; |
$dsn = "mysql://".$DBuser.":".$DBpass."@".$DBhost."/".$DBname; |
$options = array( |
43,7 → 42,7 |
$core = new Core; |
$secure = new Security; |
$theme = new Theme; |
$smarty = new Smarty; |
$smarty->compile_check = true; |
/trunk/oops.php |
---|
39,7 → 39,6 |
$smarty->assign('error',$errmsg); |
$smarty->assign('antversion',$core->getSetting('version',$db)); |
$smarty->assign('title',$core->getSetting('codename',$db)); |
$smarty->assign('theme',$theme->getThemeName($core,$db)); |
$smarty->display('oops.tpl'); |
/trunk/classic.php |
---|
97,7 → 97,6 |
$smarty->assign('title',$core->getSetting('codename',$db)); |
$smarty->assign('interface'," • <a href='./changelog.php'>Изменения</a> • ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db)); |
$smarty->assign('style',$core->getCSSList($db)); |
$smarty->assign('theme',$theme->getThemeName($core,$db)); |
$smarty->display('classic.tpl'); |
/trunk/modern.php |
---|
136,7 → 136,6 |
$smarty->assign('title',$core->getSetting('codename',$db)); |
$smarty->assign('interface'," • <a href='./changelog.php'>Изменения</a> • ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db)); |
$smarty->assign('style',$core->getCSSList($db)); |
$smarty->assign('theme',$theme->getThemeName($core,$db)); |
$smarty->display('modern.tpl'); |
/trunk/signin.php |
---|
25,7 → 25,6 |
$smarty->assign('antversion',$core->getSetting('version',$db)); |
$smarty->assign('title',$core->getSetting('codename',$db)); |
$smarty->assign('theme',$theme->getThemeName($core,$db)); |
$smarty->display('signin.tpl'); |
/trunk/admin.php |
---|
57,7 → 57,6 |
20 => array ( "title" => $menu_title[2], "item" => "Опции" ), |
21 => array ( "title" => $menu_title[2], "item" => "Интерфейсы" ), |
22 => array ( "title" => $menu_title[2], "item" => "Пароль" ), |
23 => array ( "title" => $menu_title[2], "item" => "Тема" ), |
); |
$menu = " |
77,7 → 76,6 |
<div class='menuitem'><a class='dashed' href='".$admin."?mode=20'>".$menu_item[20]["item"]."</a></div> |
<div class='menuitem'><a class='dashed' href='".$admin."?mode=21'>".$menu_item[21]["item"]."</a></div> |
<div class='menuitem'><a class='dashed' href='".$admin."?mode=22'>".$menu_item[22]["item"]."</a></div> |
<div class='menuitem'><a class='dashed' href='".$admin."?mode=23'>".$menu_item[23]["item"]."</a></div> |
</div> |
<div id='main'> |
"; |
831,30 → 829,7 |
break; |
} |
break; |
case '23': |
// Управление темами |
$display = "<div class='modulename'>".$menu_item[$mode]["title"]." :: <a href='admin.php?mode=".$mode."'>".$menu_item[$mode]["item"]."</a></div>"; |
if (isset($_GET['chtheme'])){ |
$chtheme = $secure->wrapStr($_GET["chtheme"]); |
$theme->SetTheme($chtheme,$db); |
$display.='<p style="color:red;">Тема измененна</p>'; |
} |
$themename = $theme->getThemeName($core,$db); // TODO нарисавать интерфейс поюзабельнее |
$display.= '<b>Текущая тема: '.$themename.'</b><br>'; |
$display.= '<form action="admin.php" method="GET">'; |
$display.= '<input type="hidden" name="mode" value="23">'; |
$display.= '<select name="chtheme">'; |
$dis=$theme->getThemesList(); |
foreach ($dis as $thm){ |
$display.= '<option>'.$thm.'</option>';//TODO add 'selected' to theme |
} |
$display.= '</select><br>'; |
$display.= '<button type="submit">Сменить тему</button>'; |
$display.= '</form>'; |
break; |
// } |
break; |
} |
$display .= "</div></div>"; |
868,8 → 843,6 |
$smarty->assign('antversion',$core->getSetting('version',$db)); |
$smarty->assign('title',$core->getSetting('codename',$db)); |
$smarty->assign('style',$core->getCSSList($db)); |
$smarty->assign('theme',$theme->getThemeName($core,$db)); |
$smarty->display('admin.tpl'); |
?> |
/trunk/telepathy.php |
---|
56,7 → 56,6 |
$smarty->assign('antversion',$core->getSetting('version',$db)); |
$smarty->assign('title',$core->getSetting('codename',$db)); |
$smarty->assign('interface'," • <a href='./changelog.php'>Изменения</a> • ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db)); |
$smarty->assign('theme',$theme->getThemeName($core,$db)); |
$smarty->display('modern.tpl'); |
/trunk/css/ant.css |
---|
78,3 → 78,61 |
font: 10pt tahoma; |
text-indent: 5px; |
} |
a |
{ |
text-decoration: none; |
} |
a.dashed:hover |
{ |
color: #ffffff; |
background-color: #154ead; |
background-image: none; |
background-repeat: repeat; |
background-attachment: scroll; |
background-position: 0% 0%; |
} |
a.dashed |
{ |
border-bottom-width: 1px; |
border-bottom-style: dashed; |
border-bottom-color: #007799; |
} |
body |
{ |
background: #fff url(../img/bg.gif) top left repeat; |
margin:3px; |
} |
img { |
border: 0; |
} |
pre { |
font: 10pt Arial; |
border: 1px solid #000; |
margin: 10px 0; |
padding: 10px; |
background-color: #dcdcdc; |
} |
pre#replist,pre#reps, p#getfile { |
display: none; |
} |
#sourceslist { |
font-family: Arial; |
padding: 1px 3px; |
} |
#steps{ |
font: bold 14px serif; |
margin: 20px auto; |
} |
.sllink{ |
margin-right: 40px; |
margin-top: 10px; |
text-align: right; |
} |