diff --git a/cgi-bin/text-to-html-filter-idx.cgi b/cgi-bin/text-to-html-filter-idx.cgi new file mode 100755 index 0000000..497872c --- /dev/null +++ b/cgi-bin/text-to-html-filter-idx.cgi @@ -0,0 +1,34 @@ +#!/bin/bash +echo $header +ext=${file/*.} +range=10000 +filename="/var/www/www.openmamba.org/$file" +filename_check=`readlink -f $filename` +[ "${filename_check:0:27}" = "/mnt/sdc1/ftp/pub/openmamba" ] || exit 0 +filelines=`wc -l $filename | awk '{ print $1 }'` +filepages=`expr $filelines / $range + 1` +if [ "$page" ]; then + [ $page -gt 0 ] || page=1 +else + page=1 +fi +from=`expr \( $page - 1 \) \* $range + 1` +to=`expr $from \+ $range - 1` +nextpage=`expr $page + 1` +prevpage=`expr $page - 1` +[ $from -ge $range ] && echo -n "< " || echo -n "< " +idxsize=20 +[ $page -gt $idxsize ] && idxfrom=`expr $page - $idxsize` || idxfrom=1 +idxto=`expr $idxfrom + $idxsize \* 2` +[ $idxto -le $filepages ] || idxto=$filepages +[ $filepages -gt $idxsize ] && idxst=`expr $page - $idxsize` || idxst=1 +for i in `seq $idxfrom $idxto`; do + if [ $i -eq $page ]; then + echo -n "$i " + else + echo -n "$i " + fi +done +[ $to -lt $filelines ] && echo -n "> " || echo -n "> " +echo +exit 0 diff --git a/cgi-bin/text-to-html-filter.cgi b/cgi-bin/text-to-html-filter.cgi new file mode 100755 index 0000000..44f43e5 --- /dev/null +++ b/cgi-bin/text-to-html-filter.cgi @@ -0,0 +1,24 @@ +#!/bin/bash +echo $header +ext=${file/*.} +range=10000 +filename="/var/www/www.openmamba.org/$file" +filename_check=`readlink -f $filename` +[ "${filename_check:0:27}" = "/mnt/sdc1/ftp/pub/openmamba" ] || exit 0 +if [ "$page" ]; then + [ $page -gt 0 ] || page=1 +else + page=1 +fi +from=`expr \( $page - 1 \) \* $range + 1` +to=`expr $from \+ $range - 1` +if [ "$ext" = "log" -o "$ext" = "spec" -o "$ext" = "patch" -o "$ext" = "diff" ]; then + /bin/sed -n "${from},${to}p" $filename | /bin/sed -e 's|\&|\&|g' \ + -e 's|<|\<|g' \ + -e 's|>|\>|g' \ + -e 's|\([[:alpha:][:digit:]]*\)\@[[:alpha:][:digit:]]*\.[[:alpha:][:digit:]\.]*|\1@...|g' + #'s|\&|\\&|g' -e 's|<|\<|g' -e 's|>|\>|g' -e 's|\([[:alpha:][:digit:]]*\)\@[[:alpha:][:digit:]]*\.[[:alpha:][:digit:]\.]*|\1@...|g' /var/www/www.openmamba.org/$file +else + /bin/sed -n "${from},${to}p" $filename +fi +exit 0 diff --git a/distribution/distromatic.naked.en.html b/distribution/distromatic.naked.en.html index df19f82..ccd0805 100644 --- a/distribution/distromatic.naked.en.html +++ b/distribution/distromatic.naked.en.html @@ -62,7 +62,6 @@ -

diff --git a/distribution/distromatic.naked.html b/distribution/distromatic.naked.html new file mode 100644 index 0000000..d05a67d --- /dev/null +++ b/distribution/distromatic.naked.html @@ -0,0 +1,4 @@ + + + + diff --git a/distribution/distromatic.naked.it.html b/distribution/distromatic.naked.it.html index ed72f69..c5c9bee 100644 --- a/distribution/distromatic.naked.it.html +++ b/distribution/distromatic.naked.it.html @@ -62,9 +62,7 @@ - -
-
[repository] : @@ -81,11 +79,7 @@

- -
-
-
[repository] @@ -100,6 +94,3 @@ [modifiche] - -
diff --git a/distribution/download.en.html b/distribution/download.en.html index 03f99d9..b9dec6f 100644 --- a/distribution/download.en.html +++ b/distribution/download.en.html @@ -1 +1,80 @@ - + + + + + + + + + + + + + + + + +
+
+ + + + + +
download
+
+
+

Thank you for your interest in openmamba. +

openmamba is a "free as in speech" operating system but letting you use the web site and download it is a cost for us. +If you like this project you can help to keep it alive and make it better with your contribution by making a donation. + +

+ +
+ +
+
+ +

Download in progress...

+

Download for will automatically start in a few seconds. +If it doesn't start, please click ">here. +

This file is downloaded from

+

Not registered yet? Please register to get +the best from openmamba services and to be informed on the latest news. + +Sorry, there was an error with the request: invalid file. + +Sorry, there was an error with the request: invalid file. + +

+

+ \ No newline at end of file diff --git a/distribution/download.it.html b/distribution/download.it.html index bbb72eb..d088458 100644 --- a/distribution/download.it.html +++ b/distribution/download.it.html @@ -1 +1,82 @@ + + + + + + + + + + + + + + + + +
+
+ + + + + +
download
+
+
+

Grazie per il tuo interessamento al progetto openmamba. +

openmamba è un sistema libero e gratuito ma per darti la possibilità di usufruire dei servizi di questo sito e del download +mambaSoft deve sostenere delle spese non trascurabili. Se openmamba ti piace puoi aiutare a fare in modo +che continui ad esistere e migliorare attraverso il tuo contributo effettuando una donazione. + +

+ +
+ +
+
+ +

Scaricamento in corso...

+

Il download del file partirà automaticamente entro pochi secondi. Se non dovesse +partire fai click " download>qui. +

Il file viene scaricato dal sito

+

Non ti sei ancora registrato? Registrati per utilizzare al meglio i servizi di +openmamba ed essere sempre informato sulle ultime novità. + +Sorry, there was an error with the request: invalid file. + +Sorry, there was an error with the request: invalid file given. + +

+

+ diff --git a/distribution/images/packages_gr.png b/distribution/images/packages_gr.png new file mode 100644 index 0000000..e098a2e Binary files /dev/null and b/distribution/images/packages_gr.png differ diff --git a/distribution/showfile.naked.en.html b/distribution/showfile.naked.en.html new file mode 100644 index 0000000..c95bf5d --- /dev/null +++ b/distribution/showfile.naked.en.html @@ -0,0 +1,18 @@ + + + + + + + + +

Package

+
Pages: 
+
>DOWNLOAD
+ +
+
+

+
+
+
diff --git a/distribution/showfile.naked.html b/distribution/showfile.naked.html new file mode 100644 index 0000000..ba4d20c --- /dev/null +++ b/distribution/showfile.naked.html @@ -0,0 +1,5 @@ + + + + + diff --git a/distribution/showfile.naked.it.html b/distribution/showfile.naked.it.html new file mode 100644 index 0000000..cf8c58a --- /dev/null +++ b/distribution/showfile.naked.it.html @@ -0,0 +1,18 @@ + + + + +" --> + + + +

Pacchetto

+
Pagine: 
+
>SCARICA
+ +
+
+

+
+
+
diff --git a/functions.php b/functions.php index 88a535a..d035609 100644 --- a/functions.php +++ b/functions.php @@ -223,7 +223,7 @@ function openmamba_webbuild_status_func() { // print "
"; print "

AJAX support is not enabled in your browser. Live page updates will not be available, press Reload to update.

"; print "Loading, please wait..."; - print "";//
"; + print "";//
"; } add_shortcode('openmamba_webbuild_status', 'openmamba_webbuild_status_func'); @@ -240,14 +240,64 @@ function openmamba_distroquery_func() { else $outputlang = "en_US.UTF-8"; - $ret = "

AJAX support is not enabled in your browser. Live page updates will not be available, press Reload to update.

"; - $ret .= "

"; + $ret = "Loading, please wait...
"; $ret .= "
 "; - $ret .= ""; + $ret .= ""; + return $ret; } add_shortcode('openmamba_distroquery', 'openmamba_distroquery_func'); +function openmamba_distromatic_func() { + + $urlargspos = strpos($_SERVER[REQUEST_URI], '?'); + if ($urlargspos > 0) { + $urlargs = substr($_SERVER[REQUEST_URI], $urlargspos + 1); + } + + $outputlang = get_bloginfo("language"); + if (substr($outputlang, 0, 2) == "it") + $outputlang = "it_IT.UTF-8"; + else + $outputlang = "en_US.UTF-8"; + + $ret = "" . "Loading, please wait..." . "
"; + $ret .= ""; + + return $ret; +} +add_shortcode('openmamba_distromatic', 'openmamba_distromatic_func'); + +function openmamba_showfile_func() { + + $urlargspos = strpos($_SERVER[REQUEST_URI], '?'); + if ($urlargspos > 0) { + $urlargs = substr($_SERVER[REQUEST_URI], $urlargspos + 1); + } + + $ret = "" . "Loading, please wait..." . "
"; + $ret .= ""; + + return $ret; +} +add_shortcode('openmamba_showfile', 'openmamba_showfile_func'); + +function openmamba_downloadfile_func() { + + $urlargspos = strpos($_SERVER[REQUEST_URI], '?'); + if ($urlargspos > 0) { + $urlargs = substr($_SERVER[REQUEST_URI], $urlargspos + 1); + parse_str($urlargs, $args); + if ($args['file']) { + $ret = "" . "Starting download of " . basename($args['file']) . ", please wait..." . "

"; + $ret .= ""; + } + } + + return $ret; +} +add_shortcode('openmamba_downloadfile', 'openmamba_downloadfile_func'); + // bbpress tag cloud add_filter('widget_tag_cloud_args','set_number_tags'); function set_number_tags($args) { diff --git a/style.css b/style.css index 10b1b36..2a39119 100644 --- a/style.css +++ b/style.css @@ -239,3 +239,23 @@ div#ag-terms { margin-top:10px; margin-bottom:10px; } + +/* Distromatic */ +span#distromatic table, +span#distromatic table tr, +span#distromatic table td { + + padding:0; + border:0; +} + +span#distromatic table td img { + max-width:initial; + padding: 2px; +} + +span#distromatic table td hr { + margin: 0; + margin-top: 5px; + margin-bottom: 5px; +}