/tags/0.9.1/ChangeLog |
---|
Новый файл |
0,0 → 1,0 |
0.9.0 - Initial ant-ng |
/tags/0.9.1/MIT-LICENSE.txt |
---|
Новый файл |
0,0 → 1,20 |
Copyright (c) 2009 Alexander Wolf, http://alex-w.org.ru/p/ant-ng/ |
Permission is hereby granted, free of charge, to any person obtaining |
a copy of this software and associated documentation files (the |
"Software"), to deal in the Software without restriction, including |
without limitation the rights to use, copy, modify, merge, publish, |
distribute, sublicense, and/or sell copies of the Software, and to |
permit persons to whom the Software is furnished to do so, subject to |
the following conditions: |
The above copyright notice and this permission notice shall be |
included in all copies or substantial portions of the Software. |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
/tags/0.9.1/css/core.css |
---|
Новый файл |
0,0 → 1,64 |
body { |
text-align: center; |
background: #f7f7f7 url(../img/bg.gif); |
} |
h2 { |
font: 72pt/72pt Georgia; |
text-align: center; |
margin: 10px 0 10px 0; |
} |
h3 { |
font: 12pt/12pt Georgia; |
text-align: center; |
margin: 0px 0 35px 0; |
} |
table { |
width: 600px; |
margin: 0 auto; |
border-spacing: 0; |
white-space: nowrap; |
} |
table#topmenu { |
border: 0px; |
} |
#topmenu td { |
border: 0px; |
} |
td { |
text-align: center; |
padding: 8px 5px; |
} |
div#content, div#mmenu { |
width: 600px; |
text-align: left; |
margin: 0 auto; |
} |
p#host { |
margin-top: 50px; |
font: 0.6em/1.4em Verdana; |
} |
p#info { |
margin-top: 50px; |
} |
p#design { |
display: none; |
color: #a9a9a9; |
} |
p#design a { |
text-decoration: none; |
color: #a9a9a9; |
} |
/tags/0.9.1/css/style.css |
---|
Новый файл |
0,0 → 1,127 |
/* ant-ng style sheet */ |
.inputbox { |
width: 550px; |
} |
.inputbox label { |
width: 200px; |
display: block; |
float: left; |
text-align: right; |
padding-right: 5px; |
} |
.inputbox input[type="text"], .inputbox .formwrapper { |
width: 320px; |
} |
.inputbox table { |
border: 0; |
width: 540px; |
border-spacing: 0; |
border-collapse: collapse; |
} |
td.td-name { |
width: 200px; |
text-align: right; |
padding-right: 5px; |
} |
.inputbox table input { |
width: 220px; |
} |
img { |
border: 0; |
} |
img#adm-dist-logo { |
border: 1px solid #000; |
background-color: #fff; |
} |
fieldset { |
width: 560px; |
border: 2px solid #000; |
display: block; |
background-color: #dcdcdc; |
} |
fieldset legend { |
padding: 2px 5px; |
margin: 0; |
border: 1px solid #000; |
background-color: #fff; |
} |
div#mmenu fieldset { |
width: 560px; |
border: 3px double #a9a9a9; |
display: block; |
background-color:#fcfcfc; |
} |
div#mmenu fieldset legend { |
padding: 2px 5px; |
margin: 0; |
border: 1px solid #a9a9a9; |
background-color: #fcfcfc; |
} |
.sections, .repository, .inputbox { |
padding: 3px 0; |
} |
div#vdist { |
margin: 10px 0; |
visibility:hidden; |
} |
div#replist { |
visibility:hidden; |
} |
div#replist fieldset { |
margin: 10px 0; |
} |
div#replist input[type="submit"] { |
margin: 0 auto; |
display: block; |
} |
div#regform input { |
width: 300px; |
display: block; |
margin: 10px auto; |
} |
div#regform input[type="submit"] { |
width: 150px; |
} |
div#rmenu { |
width: 250px; |
float: right; |
} |
ul.vfix { |
margin: 0; |
padding-left: 15px; |
} |
a.edit { |
color: green; |
} |
a.delete { |
color:red; |
} |
li.nomarker { |
list-style: none; |
margin-left: -15px; |
padding-left: 0; |
} |
/tags/0.9.1/init.php |
---|
Новый файл |
0,0 → 1,58 |
<?php |
/** |
* |
* Codename: ant-ng - generator of sources.list for apt-distributives |
* http://alex-w.org.ru/p/antng/ |
* |
* Copyright (c) 2009 Alexander Wolf |
* Dual licensed under the MIT and GNU LGPL licenses. |
* http://alex-w.org.ru/p/antng/license |
* |
*/ |
define('ROOT', dirname(__FILE__)); |
require_once ROOT."/lib/config.php"; |
require_once ROOT."/lib/DB.php"; |
require_once ROOT."/lib/template.php"; |
require_once ROOT."/lib/core.php"; |
require_once ROOT."/lib/security.php"; |
$dsn = array( |
'phptype' => 'mysql', |
'username' => DBUSER, |
'password' => DBPASS, |
'hostspec' => DBHOST, |
'database' => DBNAME, |
); |
$options = array( |
'debug' => 2, |
'portability' => 'DB_PORTABILITY_ALL', |
); |
$db =& DB::connect($dsn, $options); |
if (PEAR::isError($db)) { |
die($db->getMessage()); |
} |
$db->setFetchMode(DB_FETCHMODE_ASSOC); |
$query =& $db->query("SET NAMES utf8"); |
$cookie = "asHash"; |
$webroot = "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/"; |
$manager = "./manager.php"; |
$process = "./process.php"; |
$picture = ROOT."/img/d/"; |
$secure = new Security(); |
$core = new Core($db, PREFIX, $secure, $cookie); |
$tmpl = new Template(ROOT."/templates/"); |
$tmpl->assign('host',$webroot); |
$tmpl->assign('header',$core->getEngineAttr('codename')); |
$tmpl->assign('engine',$core->getEngineAttr('codename')." ".$core->getEngineAttr('version')); |
$tmpl->assign('description',$core->getEngineAttr('description')); |
?> |