slitaz-dev-tools rev 162

mirror-tools: move all css files/images into slitaz-forge/mf
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 20 12:46:15 2012 +0100 (2012-03-20)
parents d8555182bb67
children 113c2519c444
files mirror-tools/slitaz/mirror/css/favicon.ico mirror-tools/slitaz/mirror/css/pics/development.png mirror-tools/slitaz/mirror/css/pics/logo.png mirror-tools/slitaz/mirror/css/pics/mime/Directory mirror-tools/slitaz/mirror/css/pics/mime/application_octet-stream mirror-tools/slitaz/mirror/css/pics/mime/file_fd mirror-tools/slitaz/mirror/css/pics/mime/file_iso mirror-tools/slitaz/mirror/css/pics/mime/file_md5 mirror-tools/slitaz/mirror/css/pics/mime/file_tar.gz mirror-tools/slitaz/mirror/css/pics/mime/file_tazpkg mirror-tools/slitaz/mirror/css/pics/mime/text_plain mirror-tools/slitaz/mirror/css/pics/network.png mirror-tools/slitaz/mirror/css/pics/website/xhtml10.png mirror-tools/slitaz/mirror/css/slitaz.css mirror-tools/slitaz/mirror/dir-generator.php
line diff
     1.1 Binary file mirror-tools/slitaz/mirror/css/favicon.ico has changed
     2.1 Binary file mirror-tools/slitaz/mirror/css/pics/development.png has changed
     3.1 Binary file mirror-tools/slitaz/mirror/css/pics/logo.png has changed
     4.1 Binary file mirror-tools/slitaz/mirror/css/pics/mime/Directory has changed
     5.1 Binary file mirror-tools/slitaz/mirror/css/pics/mime/application_octet-stream has changed
     6.1 Binary file mirror-tools/slitaz/mirror/css/pics/mime/file_fd has changed
     7.1 Binary file mirror-tools/slitaz/mirror/css/pics/mime/file_iso has changed
     8.1 Binary file mirror-tools/slitaz/mirror/css/pics/mime/file_md5 has changed
     9.1 Binary file mirror-tools/slitaz/mirror/css/pics/mime/file_tar.gz has changed
    10.1 Binary file mirror-tools/slitaz/mirror/css/pics/mime/file_tazpkg has changed
    11.1 Binary file mirror-tools/slitaz/mirror/css/pics/mime/text_plain has changed
    12.1 Binary file mirror-tools/slitaz/mirror/css/pics/network.png has changed
    13.1 Binary file mirror-tools/slitaz/mirror/css/pics/website/xhtml10.png has changed
    14.1 --- a/mirror-tools/slitaz/mirror/css/slitaz.css	Sat Mar 17 15:29:33 2012 +0100
    14.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.3 @@ -1,299 +0,0 @@
    14.4 -/*
    14.5 -	CSS style for SliTaz Network - (C) 2012 SliTaz GNU/Linux
    14.6 -*/
    14.7 -
    14.8 -html {
    14.9 -	min-height:  102%;
   14.10 -}
   14.11 -
   14.12 -body {
   14.13 -	background: #ffffff;
   14.14 -	color: black;
   14.15 -	font: 13px sans-serif, vernada, arial;
   14.16 -	margin: 0;
   14.17 -	min-width: 780px;
   14.18 -	height: 100%;
   14.19 -}
   14.20 -
   14.21 -a { text-decoration: underline; color: #215090; }
   14.22 -a:hover { text-decoration: none; color: blue; }
   14.23 -img { border: 0pt none; vertical-align: middle; }
   14.24 -h2 { color: #444; }
   14.25 -h3 { color: #666; font-size: 140%; }
   14.26 -h4 { color: #888; font-size: 120%; }
   14.27 -pre { 
   14.28 -	background-color: #f8f8f8; 
   14.29 -	border: 1px solid #ddd; 
   14.30 -	padding: 10px;
   14.31 -}
   14.32 -
   14.33 -/* Header */
   14.34 -
   14.35 -#header { 
   14.36 -	height: 40px; 
   14.37 -	background: #351a0a;
   14.38 -}
   14.39 -
   14.40 -#header h1 {
   14.41 -	margin: 0;
   14.42 -	padding: 8px 0 0 42px;
   14.43 -	width: 450px;
   14.44 -}
   14.45 -
   14.46 -#header h1 a, h1 { 
   14.47 -	color: white; 
   14.48 -	text-decoration: none;
   14.49 -	font-size: 20px;
   14.50 -	font-style: italic;
   14.51 -}
   14.52 -
   14.53 -#header h1 a:hover, #network a:hover { 
   14.54 -	color: #d66018;
   14.55 -}
   14.56 -
   14.57 -/* Logo */
   14.58 -
   14.59 -#logo {
   14.60 -	background: url(pics/logo.png) no-repeat left;
   14.61 -	position: absolute;
   14.62 -	float: left;
   14.63 -	left: 0px;
   14.64 -	top: 0px;
   14.65 -	width: 40px;
   14.66 -	height: 40px;
   14.67 -}
   14.68 -
   14.69 -/* SliTaz Network */
   14.70 -
   14.71 -#network { 
   14.72 -	float: right; 
   14.73 -	padding: 10px 5px 0; 
   14.74 -	font-size: 12px;
   14.75 -}
   14.76 -
   14.77 -#network a { padding: 0 6px; }
   14.78 -
   14.79 -/* Block */
   14.80 -
   14.81 -#block { 
   14.82 -	min-height: 150px; 
   14.83 -	background: #d66018; 
   14.84 -	padding: 26px 10% 0px;
   14.85 -	text-align: center;
   14.86 -	color: #333;
   14.87 -	border-bottom: 1px solid #f5f5f5;
   14.88 -}
   14.89 -
   14.90 -#block_info {
   14.91 -	text-align: justify; 
   14.92 -	width: 48%;
   14.93 -	padding: 10px 10px 0 0;
   14.94 -}
   14.95 -
   14.96 -#block a, #network a { 
   14.97 -	color: #fff; 
   14.98 -	font-weight: bold;
   14.99 -	text-decoration: none;
  14.100 -}
  14.101 -
  14.102 -#block h4 {
  14.103 -	color: #351a0a;
  14.104 -	margin: 0px;
  14.105 -	font-weight: bold;
  14.106 -	font-size: 110%;
  14.107 -}
  14.108 -
  14.109 -#block_info p { margin: 6px 0; padding: 0 12px 0 0; }
  14.110 -#block_info a { font-weight: normal; }
  14.111 -#block ul { list-style-type: square; }
  14.112 -#block a:hover { color: #351a0a; }
  14.113 -
  14.114 -/* Navigation */
  14.115 -
  14.116 -#block_nav {
  14.117 -	background: #cc5b17;
  14.118 -	padding: 10px 10px 0;
  14.119 -	text-align: justify;
  14.120 -	width: 48%;
  14.121 -	float: right;
  14.122 -}
  14.123 -
  14.124 -#block_nav ul { 
  14.125 -	list-style-type: none; 
  14.126 -	margin: 6px 0; 
  14.127 -	padding: 0;
  14.128 -}
  14.129 -
  14.130 -#block_nav h4 img { 
  14.131 -	margin: 0 4px 0 0; 
  14.132 -	padding: 0;
  14.133 -}
  14.134 -
  14.135 -/* Languages */
  14.136 -
  14.137 -#lang {
  14.138 -	float: right;
  14.139 -	padding: 6px;
  14.140 -	font-size: 11px;
  14.141 -}
  14.142 -
  14.143 -#lang a {
  14.144 -	text-decoration: none;
  14.145 -	padding: 0 2px;
  14.146 -}
  14.147 -
  14.148 -#lang a:hover {
  14.149 -	text-decoration: underline;
  14.150 -}
  14.151 -
  14.152 -/* Content */
  14.153 -
  14.154 -#content {
  14.155 -	padding: 30px 80px;
  14.156 -	text-align: justify;
  14.157 -}
  14.158 -
  14.159 -.news li {
  14.160 -	list-style-type: square;
  14.161 -	border-bottom: 1px dotted #BEBEBE;
  14.162 -	margin-left: -25px;
  14.163 -	padding: 4px 0px 4px 0px;
  14.164 -}
  14.165 -
  14.166 -.news a, .feed-grid a { text-decoration: none; }
  14.167 -.news p a { text-decoration: underline; }
  14.168 -.news p a:hover { text-decoration: none; }
  14.169 -#twitter { margin: 20px 0; }
  14.170 -#gallery { text-align: center; }
  14.171 -
  14.172 -/* Classes */
  14.173 -
  14.174 -.right_box { width: 48%; float: right; }
  14.175 -.left_box { width: 48%; float: left; }
  14.176 -
  14.177 -.box {
  14.178 -	margin: 20px 60px;
  14.179 -	padding: 12px;
  14.180 -	background: #efefef;
  14.181 -	border: 1px solid #ddd;
  14.182 -}
  14.183 -
  14.184 -.searchbox { 
  14.185 -	margin: 20px 80px; 
  14.186 -	padding: 12px; 
  14.187 -	background: #f8f8f8;
  14.188 -	text-align: center;
  14.189 -	border: 1px solid #ddd;
  14.190 -}
  14.191 -
  14.192 -/* Activity Box */
  14.193 -
  14.194 -.activity { 
  14.195 -	margin: 0 0 20px; 
  14.196 -	background: #eaeaea; 
  14.197 -	padding: 5px 2px 0; 
  14.198 -	border: 1px solid #ddd; 
  14.199 -}
  14.200 -.activity div { padding: 5px 10px; background: #fff; margin-top: 5px; }
  14.201 -.activity p { margin: 0; padding: 5px 10px; font-weight: bold; }
  14.202 -.activity a { text-decoration: none; }
  14.203 -.activity ul { list-style-type: none; 
  14.204 -	margin: 4px 0; padding: 0 4px; line-height: 150%; }
  14.205 -.activity_more { text-align: right;  }
  14.206 -.activity_more a { font-weight: normal; color: #000; padding: 0 4px; }
  14.207 -.activity_more a:hover { text-decoration: underline; }
  14.208 -
  14.209 -.activity span, .news span { 
  14.210 -	color: #666; 
  14.211 -	font-size: 11px; 
  14.212 -	font-weight: normal;
  14.213 -}
  14.214 -
  14.215 -/* Button */
  14.216 -
  14.217 -.button a { 
  14.218 -	background-color: #b64b22;
  14.219 -	color: #ffffff;
  14.220 -	margin-right: 6px;
  14.221 -	padding: 6px 10px;
  14.222 -	font-size: 12px;
  14.223 -	text-decoration: none;
  14.224 -	font-weight: bold;
  14.225 -}
  14.226 -.button a:hover, input[type=submit]:hover { 
  14.227 -	background-color: #a3431f;
  14.228 -	color: #ffffff;
  14.229 -}
  14.230 -
  14.231 -/* Round corner */
  14.232 -
  14.233 -#block_nav, pre, .box, .searchbox, .button a, #twitter, .activity,
  14.234 -.activity div {
  14.235 -	-moz-border-radius: 4px;
  14.236 -	-webkit-border-radius: 4px;
  14.237 -	border-radius: 4px;
  14.238 -}
  14.239 -
  14.240 -/* Transition */
  14.241 -
  14.242 -.box {	
  14.243 -	-webkit-transition-property: background-color;
  14.244 -	-webkit-transition-duration: 2s;
  14.245 -	-moz-transition-property: background-color;
  14.246 -	-moz-transition-duration: 2s;
  14.247 -	transition-property: background-color;
  14.248 -	transition-duration: 2s;
  14.249 -}
  14.250 -
  14.251 -/* Form */
  14.252 -
  14.253 -input[type=submit] {
  14.254 -	border: 1px solid #b64b22;
  14.255 -	background-color: #b64b22;
  14.256 -	color: white;
  14.257 -	font-weight: bold;
  14.258 -	cursor: pointer;
  14.259 -	padding: 4px 10px;
  14.260 -	font-size: 14px;
  14.261 -	margin-left: -5px;
  14.262 -	-webkit-border-top-right-radius: 4px;
  14.263 -	-webkit-border-bottom-right-radius: 4px;
  14.264 -	-moz-border-radius-topright: 4px;
  14.265 -	-moz-border-radius-bottomright: 4px;
  14.266 -	border-top-right-radius: 4px;
  14.267 -	border-bottom-right-radius: 4px;
  14.268 -}
  14.269 -
  14.270 -input[type=submit]:hover { background-color: #a3431f; }
  14.271 -
  14.272 -input[type=text] {
  14.273 -	border: 1px solid #333333;
  14.274 -	padding: 4px;
  14.275 -	height: 17px;
  14.276 -	width: 100%;
  14.277 -	-webkit-border-top-left-radius: 4px;
  14.278 -	-webkit-border-bottom-left-radius: 4px;
  14.279 -	-moz-border-radius-topleft: 4px;
  14.280 -	-moz-border-radius-bottomleft: 4px;
  14.281 -	border-top-left-radius: 4px;
  14.282 -	border-bottom-left-radius: 4px;
  14.283 -}
  14.284 -
  14.285 -/* Footer */
  14.286 -
  14.287 -#footer {
  14.288 -	background: #f1f1f1;
  14.289 -	text-align: center;
  14.290 -	border-top: 1px solid #ddd;
  14.291 -	padding: 40px;
  14.292 -	color: #666;
  14.293 -	clear: both;
  14.294 -	margin-bottom: -2%;
  14.295 -}
  14.296 -
  14.297 -#footer a { color: #666; padding: 0 2px; }
  14.298 -
  14.299 -.year:after {
  14.300 -	/* content: "2007-2012"; */
  14.301 -	content: "2012";
  14.302 -}
    15.1 --- a/mirror-tools/slitaz/mirror/dir-generator.php	Sat Mar 17 15:29:33 2012 +0100
    15.2 +++ b/mirror-tools/slitaz/mirror/dir-generator.php	Tue Mar 20 12:46:15 2012 +0100
    15.3 @@ -158,16 +158,9 @@
    15.4  	<meta name="description" content=">Index of /$vpath" />
    15.5  	<meta name="robots" content="index, nofollow" />
    15.6  	<meta name="author" content="SliTaz Contributors" />
    15.7 -	<link rel="shortcut icon" href="/css/favicon.ico" />
    15.8 -	<link rel="stylesheet" type="text/css" href="/css/slitaz.css" />
    15.9 -	<style type='text/css'>
   15.10 -		div.list { background-color: white; padding-bottom: 14px;}
   15.11 -		table { width: 100% ;}
   15.12 -		th, td { font: 90% monospace; text-align: left;}
   15.13 -		th { font-weight: bold; padding-right: 14px; padding-bottom: 3px;}
   15.14 -		td {padding-right: 14px;}
   15.15 -		td.s, th.s {text-align: right;}
   15.16 -	</style>
   15.17 +	<link rel="shortcut icon" href="http://mf.slitaz.org//favicon.ico" />
   15.18 +	<link rel="stylesheet" type="text/css" href="mf.slitaz.org/css/slitaz.css" />
   15.19 +	<link rel="stylesheet" type="text/css" href="mf.slitaz.org/css/mirror.css" />
   15.20  </head>
   15.21  <body>
   15.22  
   15.23 @@ -176,10 +169,13 @@
   15.24  	<div id="logo"></div>
   15.25  	<div id="network">
   15.26  		<a href="http://www.slitaz.org/">
   15.27 -			<img src="/css/pics/network.png" alt="network.png" /></a>
   15.28 +			<img src="http://mf.slitaz.org/images/home.png" alt="[ Home ]" />
   15.29 +			Home</a>
   15.30  		<a href="http://scn.slitaz.org/">Community</a>
   15.31  		<a href="http://doc.slitaz.org/">Doc</a>
   15.32  		<a href="http://forum.slitaz.org/">Forum</a>
   15.33 +		<a href="http://pro.slitaz.org/">Pro</a>
   15.34 +		<a href="https://slitaz.spreadshirt.net/">Shop</a>
   15.35  		<a href="http://bugs.slitaz.org">Bugs</a>
   15.36  		<a href="http://hg.slitaz.org/">Hg</a>
   15.37  		<a href="http://cook.slitaz.org/">BB</a>
   15.38 @@ -194,24 +190,6 @@
   15.39  		<h4><img src="/css/pics/network.png" alt=".png" />Mirrors</h4>
   15.40  		<div>
   15.41  EOT;
   15.42 -
   15.43 -	// Mirror list
   15.44 -	$mirrors = array();
   15.45 -	$fp = @fopen(dirname($_SERVER["SCRIPT_FILENAME"])."/mirrors","r");
   15.46 -	if ($fp) {
   15.47 -		while (($line = fgets($fp)) !== false) {
   15.48 -			$line = chop($line);
   15.49 -			$url = parse_url($line);
   15.50 -			if ($_SERVER["SERVER_NAME"] == $url['host']) continue;
   15.51 -			$host = explode('.',$url['host']);
   15.52 -			$mirrors[$host[count($host)-2].".".
   15.53 -			         $host[count($host)-1]] = $line;
   15.54 -		}
   15.55 -	}
   15.56 -	fclose($fp);
   15.57 -	foreach($mirrors as $name => $url) {
   15.58 -		echo "<a href=\"$url$vpath\" title=\"$name mirror\">$name</a>\n";
   15.59 -	}
   15.60  	
   15.61  	print <<<EOT
   15.62  		</div>
   15.63 @@ -239,6 +217,30 @@
   15.64  	</div>
   15.65  </div>
   15.66  
   15.67 +<div id="lang">
   15.68 +EOT
   15.69 +
   15.70 +// Mirror list
   15.71 +$mirrors = array();
   15.72 +$fp = @fopen(dirname($_SERVER["SCRIPT_FILENAME"])."/mirrors","r");
   15.73 +if ($fp) {
   15.74 +	while (($line = fgets($fp)) !== false) {
   15.75 +		$line = chop($line);
   15.76 +		$url = parse_url($line);
   15.77 +		if ($_SERVER["SERVER_NAME"] == $url['host']) continue;
   15.78 +		$host = explode('.',$url['host']);
   15.79 +		$mirrors[$host[count($host)-2].".".
   15.80 +		         $host[count($host)-1]] = $line;
   15.81 +	}
   15.82 +}
   15.83 +fclose($fp);
   15.84 +foreach($mirrors as $name => $url) {
   15.85 +	echo "<a href=\"$url$vpath\" title=\"$name mirror\">$name</a>\n";
   15.86 +}
   15.87 +
   15.88 +print <<<EOT
   15.89 +</div>
   15.90 +
   15.91  <!-- Content -->
   15.92  <div id="content">
   15.93