/trunk/templates/oops.tpl |
---|
1,5 → 1,5 |
{config_load file=ant.conf section="setup"} |
{include file="header.tpl" title='Ant'} |
{include file="header.tpl"} |
<h2>Упс...</h2> |
/trunk/templates/wizard.tpl |
---|
1,5 → 1,5 |
{config_load file=ant.conf section="setup"} |
{include file="header.tpl" title='Ant'} |
{include file="header.tpl"} |
<div id='ant'> |
{if $status == 0} |
/trunk/templates/classic.tpl |
---|
1,5 → 1,5 |
{config_load file=ant.conf section="setup"} |
{include file="header.tpl" title='Ant'} |
{include file="header.tpl"} |
<div id='ant'> |
{if $status == 0} |
/trunk/templates/header.js.tpl |
---|
4,7 → 4,7 |
<head> |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> |
<title>{$title}</title> |
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://{$feedaddr}"> |
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://{$feedaddr}/feed.php"> |
<link rel="stylesheet" type="text/css" href="./css/ant.css"> |
{$style} |
<script type="text/javascript" src="./js/jquery.js"></script> |
/trunk/templates/modern.tpl |
---|
1,5 → 1,5 |
{config_load file=ant.conf section="setup"} |
{include file="header.js.tpl" title='Ant'} |
{include file="header.js.tpl"} |
{$modern} |
/trunk/templates/index.tpl |
---|
1,5 → 1,5 |
{config_load file=ant.conf section="setup"} |
{include file="header.tpl" title='Ant'} |
{include file="header.tpl"} |
<h1>{$h1}</h1> |
/trunk/templates/signin.tpl |
---|
1,5 → 1,5 |
{config_load file=ant.conf section="setup"} |
{include file="header.tpl" title='Ant'} |
{include file="header.tpl"} |
<div id='signin'> |
<h1>Вход</h1> |
/trunk/templates/admin.tpl |
---|
1,5 → 1,5 |
{config_load file=ant.conf section="setup"} |
{include file="header.tpl" title='Ant'} |
{include file="header.tpl"} |
<h1>Интерфейс администратора</h1> |
/trunk/templates/header.tpl |
---|
4,7 → 4,7 |
<head> |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> |
<title>{$title}</title> |
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://{$feedaddr}"> |
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://{$feedaddr}/feed.php"> |
<link rel="stylesheet" type="text/css" href="./css/ant.css"> |
{$style} |
</head> |
/trunk/lib/core.php |
---|
107,6 → 107,12 |
} |
return $css; |
} |
function getSettings($setting, $dblink) { |
$query =& $dblink->query("SELECT * FROM settings WHERE opt LIKE '".$setting."'"); |
$query->fetchInto($sett, DB_FETCHMODE_ASSOC); |
return stripslashes($sett["optvalue"]); |
} |
} |
?> |
/trunk/oops.php |
---|
37,6 → 37,8 |
$smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])); |
$smarty->assign('error',$errmsg); |
$smarty->assign('antversion',$core->getSetting('version',$db)); |
$smarty->assign('title',$core->getSetting('codename',$db)); |
$smarty->display('oops.tpl'); |
/trunk/classic.php |
---|
26,10 → 26,6 |
$dist = abs(intval($_GET["d"])); |
$vers = abs(intval($_GET["v"])); |
$query =& $db->query("SELECT * FROM settings WHERE opt LIKE 'version'"); |
$query->fetchInto($antv, DB_FETCHMODE_ASSOC); |
$antversion = $antv["optvalue"]; |
$query =& $db->query("SELECT * FROM distribution"); |
while ($query->fetchInto($data, DB_FETCHMODE_ASSOC)) { |
$linux .= "<p><input type='radio' name='d' value='".$data["dist_id"]."'><span class='".stripslashes($data["distua"])."'>".stripslashes($data["distname"])."</span></p>\n"; |
69,7 → 65,8 |
$smarty->assign('linux',$linux); |
$smarty->assign('version',$distvers); |
$smarty->assign('result',$result); |
$smarty->assign('antversion',$antversion); |
$smarty->assign('antversion',$core->getSetting('version',$db)); |
$smarty->assign('title',$core->getSetting('codename',$db)); |
$smarty->assign('interface'," • ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db)); |
$smarty->assign('style',$core->getCSSList($db)); |
/trunk/modern.php |
---|
23,10 → 23,6 |
require_once dirname(__FILE__)."/lib/init.php"; |
$query =& $db->query("SELECT * FROM settings WHERE opt LIKE 'version'"); |
$query->fetchInto($antv, DB_FETCHMODE_ASSOC); |
$antversion = $antv["optvalue"]; |
$scripts = " |
(function($){ |
// очищаем select |
113,7 → 109,8 |
$smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])); |
$smarty->assign('modern',$modern); |
$smarty->assign('scripts',$scripts); |
$smarty->assign('antversion',$antversion); |
$smarty->assign('antversion',$core->getSetting('version',$db)); |
$smarty->assign('title',$core->getSetting('codename',$db)); |
$smarty->assign('interface'," • ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db)); |
$smarty->assign('style',$core->getCSSList($db)); |
/trunk/changelog.php |
---|
26,10 → 26,6 |
$ID = abs(intval($_GET["id"])); |
$skip = abs(intval($_GET["skip"])); |
$query =& $db->query("SELECT * FROM settings WHERE opt LIKE 'version'"); |
$query->fetchInto($antv, DB_FETCHMODE_ASSOC); |
$antversion = stripslashes($antv["optvalue"]); |
if ($ID>0) { |
$query =& $db->query("SELECT * FROM changelog WHERE log_id='$ID'"); |
$query->fetchInto($log, DB_FETCHMODE_ASSOC); |
50,7 → 46,8 |
$smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])); |
$smarty->assign('h1','Изменения'); |
$smarty->assign('result',$result); |
$smarty->assign('antversion',$antversion); |
$smarty->assign('antversion',$core->getSetting('version',$db)); |
$smarty->assign('title',$core->getSetting('codename',$db)); |
$smarty->assign('interface'," • ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db)); |
$smarty->display('index.tpl'); |
/trunk/signin.php |
---|
23,6 → 23,9 |
require_once dirname(__FILE__)."/lib/init.php"; |
$smarty->assign('antversion',$core->getSetting('version',$db)); |
$smarty->assign('title',$core->getSetting('codename',$db)); |
$smarty->display('signin.tpl'); |
?> |
/trunk/admin.php |
---|
10,15 → 10,6 |
// Admin file/interface |
$admin = "./admin.php"; |
$query =& $db->query("SELECT * FROM settings WHERE opt LIKE 'version'"); |
if (PEAR::isError($req)) { |
echo "Error:".$req->getMessage(); |
} |
$query->fetchInto($antv, DB_FETCHMODE_ASSOC); |
$antversion = $antv["optvalue"]; |
switch ($err) { |
case '1': |
$error = "Ошибка ввода пароля: старый пароль неверен!"; |
663,7 → 654,8 |
$smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])); |
$smarty->assign('error',$error); |
$smarty->assign('display',$display); |
$smarty->assign('antversion',$antversion); |
$smarty->assign('antversion',$core->getSetting('version',$db)); |
$smarty->assign('title',$core->getSetting('codename',$db)); |
$smarty->assign('style',$core->getCSSList($db)); |
$smarty->display('admin.tpl'); |
/trunk/telepathy.php |
---|
23,10 → 23,6 |
require_once dirname(__FILE__)."/lib/init.php"; |
$query =& $db->query("SELECT * FROM settings WHERE opt LIKE 'version'"); |
$query->fetchInto($antv, DB_FETCHMODE_ASSOC); |
$antversion = $antv["optvalue"]; |
$info = array(); |
$info = $core->getInfo($_SERVER["HTTP_USER_AGENT"],$db); |
55,7 → 51,8 |
$smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])); |
$smarty->assign('modern',$telepathy); |
$smarty->assign('antversion',$antversion); |
$smarty->assign('antversion',$core->getSetting('version',$db)); |
$smarty->assign('title',$core->getSetting('codename',$db)); |
$smarty->assign('interface'," • ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db)); |
$smarty->display('modern.tpl'); |
/trunk/wizard.php |
---|
32,7 → 32,8 |
$smarty->assign('linux',$linux); |
$smarty->assign('version',$distvers); |
$smarty->assign('result',$result); |
$smarty->assign('antversion',$antversion); |
$smarty->assign('antversion',$core->getSetting('version',$db)); |
$smarty->assign('title',$core->getSetting('codename',$db)); |
$smarty->display('index.tpl'); |