# HG changeset patch # User Christophe Lincoln # Date 1331170911 -3600 # Node ID 6bdb0d107255eb4ca9af878c77500c6adcaefe43 # Parent fe3608d70cb1e4d7f8c856399d95337a450a9178 Move libs to lib and starz new website all in PHP for 4.0 diff -r fe3608d70cb1 -r 6bdb0d107255 da/index.php --- a/da/index.php Wed Mar 07 01:54:42 2012 +0100 +++ b/da/index.php Thu Mar 08 02:41:51 2012 +0100 @@ -222,7 +222,7 @@

Projekt aktivitet

diff -r fe3608d70cb1 -r 6bdb0d107255 da/mailing-list.html --- a/da/mailing-list.html Wed Mar 07 01:54:42 2012 +0100 +++ b/da/mailing-list.html Thu Mar 08 02:41:51 2012 +0100 @@ -191,7 +191,7 @@

- + diff -r fe3608d70cb1 -r 6bdb0d107255 de/mailing-list.html --- a/de/mailing-list.html Wed Mar 07 01:54:42 2012 +0100 +++ b/de/mailing-list.html Thu Mar 08 02:41:51 2012 +0100 @@ -181,7 +181,7 @@

- + diff -r fe3608d70cb1 -r 6bdb0d107255 en/index.php --- a/en/index.php Wed Mar 07 01:54:42 2012 +0100 +++ b/en/index.php Thu Mar 08 02:41:51 2012 +0100 @@ -269,7 +269,7 @@

Project Activity

diff -r fe3608d70cb1 -r 6bdb0d107255 en/mailing-list.html --- a/en/mailing-list.html Wed Mar 07 01:54:42 2012 +0100 +++ b/en/mailing-list.html Thu Mar 08 02:41:51 2012 +0100 @@ -186,7 +186,7 @@

- + diff -r fe3608d70cb1 -r 6bdb0d107255 es/index.php --- a/es/index.php Wed Mar 07 01:54:42 2012 +0100 +++ b/es/index.php Thu Mar 08 02:41:51 2012 +0100 @@ -208,7 +208,7 @@

Actividad del proyecto

diff -r fe3608d70cb1 -r 6bdb0d107255 es/mailing-list.html --- a/es/mailing-list.html Wed Mar 07 01:54:42 2012 +0100 +++ b/es/mailing-list.html Thu Mar 08 02:41:51 2012 +0100 @@ -181,7 +181,7 @@

- + diff -r fe3608d70cb1 -r 6bdb0d107255 fr/index.php --- a/fr/index.php Wed Mar 07 01:54:42 2012 +0100 +++ b/fr/index.php Thu Mar 08 02:41:51 2012 +0100 @@ -407,7 +407,7 @@

Activité du projet

diff -r fe3608d70cb1 -r 6bdb0d107255 fr/mailing-list.html --- a/fr/mailing-list.html Wed Mar 07 01:54:42 2012 +0100 +++ b/fr/mailing-list.html Thu Mar 08 02:41:51 2012 +0100 @@ -194,7 +194,7 @@

- + diff -r fe3608d70cb1 -r 6bdb0d107255 i18n.php --- a/i18n.php Wed Mar 07 01:54:42 2012 +0100 +++ b/i18n.php Thu Mar 08 02:41:51 2012 +0100 @@ -33,7 +33,7 @@
- +
diff -r fe3608d70cb1 -r 6bdb0d107255 index.php --- a/index.php Wed Mar 07 01:54:42 2012 +0100 +++ b/index.php Thu Mar 08 02:41:51 2012 +0100 @@ -48,7 +48,7 @@
- +
@@ -117,7 +117,7 @@

Project Activity

diff -r fe3608d70cb1 -r 6bdb0d107255 it/index.php --- a/it/index.php Wed Mar 07 01:54:42 2012 +0100 +++ b/it/index.php Thu Mar 08 02:41:51 2012 +0100 @@ -176,7 +176,7 @@

Attività del Progetto

diff -r fe3608d70cb1 -r 6bdb0d107255 it/mailing-list.html --- a/it/mailing-list.html Wed Mar 07 01:54:42 2012 +0100 +++ b/it/mailing-list.html Thu Mar 08 02:41:51 2012 +0100 @@ -188,7 +188,7 @@

- + diff -r fe3608d70cb1 -r 6bdb0d107255 lib/archives.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/archives.php Thu Mar 08 02:41:51 2012 +0100 @@ -0,0 +1,131 @@ + + + + lists.tuxfamily.org/slitaz mailing list + + + + + +'.translate("Archives").' 2007-'.date('Y')."\n"; + +$url = "http://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/"; + +$script = "-e '//!d' "; +$script .= "-e 's|html\"|html\" target=\"_blank\"|g' "; +$script .= "-e 's|href=\"|href=\"$url|g' "; +foreach (array("Archive","View by","Number","Total size", + "Messages count", "Month/Year", + "Thread"," or ","Date") as $word) { + $script .= "-e 's|".$word."|".translate($word)."|' "; +} +system("wget -q -O - $url | sed $script"); +?> + + diff -r fe3608d70cb1 -r 6bdb0d107255 lib/fb/index.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/fb/index.php Thu Mar 08 02:41:51 2012 +0100 @@ -0,0 +1,99 @@ +"; + foreach($x->channel->item as $entry) { + echo " +
  • + " . $entry->title . " +
  • "; + } + echo ""; +} +?> + + + SliTaz SO Canvas + + + + + + + +
    + + +

    SliTaz SO

    +

    + Welcome to the SliTaz Social application for Facebook. +

    + +

    SliTaz on Facebook

    +

    + To let you show your appreciation for the SliTaz project, we have an official + Facebook page + where you can meet us and share stuff about SliTaz. Like the page to help + spread the project! +

    + + + +

    SliTaz on Twitter

    +

    + We have an official Twitter account providing small news about the + project. Twitter posts are relayed on the official Facebook page to + let you follow us from your favorite platform. Twitter news can also + be read on the SliTaz website + which is a central place for all SliTaz activity. You can use this + button to Tweet about the SliTaz website: +

    + + + +

    SliTaz Community Network

    +

    + The SliTaz Community Network aka + SCN is the place + where SliTaz users and contributors share things about the project. We + provide a fully featured social platform with stuff such as Blogs, + Status updates and Artwork. Here are the latest posts on SCN: +

    +
    + \n"; + get_feed("http://scn.slitaz.org/rss.xml"); + echo "

    Latest Status Updates

    \n"; + get_feed("http://scn.slitaz.org/statuses/recent/feed"); + echo "
    \n"; + ?> + + + + diff -r fe3608d70cb1 -r 6bdb0d107255 lib/get-feeds.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/get-feeds.php Thu Mar 08 02:41:51 2012 +0100 @@ -0,0 +1,62 @@ +\n
    \n"; + echo "Missing feed: $cache/$feed\n" . "
    \n"; + } + else { + $content = file_get_contents("$cache/$feed"); + $x = new SimpleXmlElement($content); + $count = 0; + // We look for last item, channel may not have a PubDate* + $up = ($x->channel->item->pubDate); + echo "- Updated: " . substr("$up", 5, 17) . "\n"; + echo "

    \n
    \n
      \n"; + foreach($x->channel->item as $entry) { + $count = $count + 1; + echo "
    • " . + $entry->title . "
    • \n"; + if ($count == $entries) { + break; + } + } + echo "
    \n"; + } +} + +// Read Blog RSS Feed +function get_feed_blog($feed) { + $cache = '/var/cache/slitaz/website'; + $entries = 4; + // have the page displayed even if any xml file + if ( ! file_exists("$cache/$feed")) { + echo "Missing feed: $cache/$feed\n" . "
    \n"; + } + else { + $content = file_get_contents("$cache/$feed"); + $x = new SimpleXmlElement($content); + $count = 0; + // We look for last item, channel may not have a PubDate* + $up = ($x->channel->item->pubDate); + + echo "
      \n"; + foreach($x->channel->item as $entry) { + $count = $count + 1; + echo "
    • " . + $entry->title . "\n"; + echo "- " . substr("$entry->pubDate", 5, 17) . "\n"; + echo "

      $entry->description

      \n
    • "; + if ($count == $entries) { + break; + } + } + echo "
    \n"; + } +} + +?> diff -r fe3608d70cb1 -r 6bdb0d107255 lib/get-feeds.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/get-feeds.sh Thu Mar 08 02:41:51 2012 +0100 @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Get latest commits and feeds to display on the website main page. +# On Tank, this script is executed by cron each hour. +# + +CACHE="/var/cache/slitaz/website" + +# Feeds URL http://scn.slitaz.org/activity/feed/ +SCN_FEED='http://scn.slitaz.org/activity/feed/' +BLOG_FEED='http://scn.slitaz.org/category/news/feed/' +WOK_FEED='http://hg.slitaz.org/wok/rss-log' +FORUM_FEED='http://forum.slitaz.org/rss' + +# Clean cache +mkdir -p $CACHE && cd $CACHE +rm -f *.xml + +# Cache all feeds to save bandwidth (updated by cron) +echo -n "Getting latest rss feeds... " +wget -O scn.xml $SCN_FEED 2>/dev/null +wget -O wok.xml $WOK_FEED 2>/dev/null +wget -O blog.xml $BLOG_FEED 2>/dev/null +#wget -O forum.xml $FORUM_FEED 2>/dev/null +echo "Done" + +exit 0 diff -r fe3608d70cb1 -r 6bdb0d107255 lib/js/slideshow.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/js/slideshow.js Thu Mar 08 02:41:51 2012 +0100 @@ -0,0 +1,57 @@ + +window.addEventListener?window.addEventListener('load',so_init,false):window.attachEvent('onload',so_init); + +var d=document, imgs = new Array(), zInterval = null, current=0, pause=false; + +function so_init() +{ + if(!d.getElementById || !d.createElement)return; + + imgs = d.getElementById('slideshow').getElementsByTagName('img'); + for(i=1;i.99) + { + obj.xOpacity = .99; + return; + } + + obj.style.opacity = obj.xOpacity; + obj.style.MozOpacity = obj.xOpacity; + obj.style.filter = 'alpha(opacity=' + (obj.xOpacity*100) + ')'; + } +} diff -r fe3608d70cb1 -r 6bdb0d107255 lib/random-image.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/random-image.php Thu Mar 08 02:41:51 2012 +0100 @@ -0,0 +1,11 @@ +"; + +?> diff -r fe3608d70cb1 -r 6bdb0d107255 libs/archives.php --- a/libs/archives.php Wed Mar 07 01:54:42 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,131 +0,0 @@ - - - - lists.tuxfamily.org/slitaz mailing list - - - - - -'.translate("Archives").' 2007-'.date('Y')."\n"; - -$url = "http://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/"; - -$script = "-e '/
    /!d' "; -$script .= "-e 's|html\"|html\" target=\"_blank\"|g' "; -$script .= "-e 's|href=\"|href=\"$url|g' "; -foreach (array("Archive","View by","Number","Total size", - "Messages count", "Month/Year", - "Thread"," or ","Date") as $word) { - $script .= "-e 's|".$word."|".translate($word)."|' "; -} -system("wget -q -O - $url | sed $script"); -?> - - diff -r fe3608d70cb1 -r 6bdb0d107255 libs/fb/index.php --- a/libs/fb/index.php Wed Mar 07 01:54:42 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,99 +0,0 @@ -"; - foreach($x->channel->item as $entry) { - echo " -
  • - " . $entry->title . " -
  • "; - } - echo ""; -} -?> - - - SliTaz SO Canvas - - - - - - - -
    - - -

    SliTaz SO

    -

    - Welcome to the SliTaz Social application for Facebook. -

    - -

    SliTaz on Facebook

    -

    - To let you show your appreciation for the SliTaz project, we have an official - Facebook page - where you can meet us and share stuff about SliTaz. Like the page to help - spread the project! -

    - - - -

    SliTaz on Twitter

    -

    - We have an official Twitter account providing small news about the - project. Twitter posts are relayed on the official Facebook page to - let you follow us from your favorite platform. Twitter news can also - be read on the SliTaz website - which is a central place for all SliTaz activity. You can use this - button to Tweet about the SliTaz website: -

    - - - -

    SliTaz Community Network

    -

    - The SliTaz Community Network aka - SCN is the place - where SliTaz users and contributors share things about the project. We - provide a fully featured social platform with stuff such as Blogs, - Status updates and Artwork. Here are the latest posts on SCN: -

    -
    - \n"; - get_feed("http://scn.slitaz.org/rss.xml"); - echo "

    Latest Status Updates

    \n"; - get_feed("http://scn.slitaz.org/statuses/recent/feed"); - echo "
    \n"; - ?> - - - - diff -r fe3608d70cb1 -r 6bdb0d107255 libs/get-feeds.php --- a/libs/get-feeds.php Wed Mar 07 01:54:42 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +0,0 @@ -\n
    \n"; - echo "Missing feed: $cache/$feed\n" . "
    \n"; - } - else { - $content = file_get_contents("$cache/$feed"); - $x = new SimpleXmlElement($content); - $count = 0; - // We look for last item, channel may not have a PubDate* - $up = ($x->channel->item->pubDate); - echo "- Updated: " . substr("$up", 5, 17) . "\n"; - echo "

    \n
    \n
      \n"; - foreach($x->channel->item as $entry) { - $count = $count + 1; - echo "
    • " . - $entry->title . "
    • \n"; - if ($count == $entries) { - break; - } - } - echo "
    \n"; - } -} - -// Read Blog RSS Feed -function get_feed_blog($feed) { - $cache = '/var/cache/slitaz/website'; - $entries = 4; - // have the page displayed even if any xml file - if ( ! file_exists("$cache/$feed")) { - echo "Missing feed: $cache/$feed\n" . "
    \n"; - } - else { - $content = file_get_contents("$cache/$feed"); - $x = new SimpleXmlElement($content); - $count = 0; - // We look for last item, channel may not have a PubDate* - $up = ($x->channel->item->pubDate); - - echo "
      \n"; - foreach($x->channel->item as $entry) { - $count = $count + 1; - echo "
    • " . - $entry->title . "\n"; - echo "- " . substr("$entry->pubDate", 5, 17) . "\n"; - echo "

      $entry->description

      \n
    • "; - if ($count == $entries) { - break; - } - } - echo "
    \n"; - } -} - -?> diff -r fe3608d70cb1 -r 6bdb0d107255 libs/get-feeds.sh --- a/libs/get-feeds.sh Wed Mar 07 01:54:42 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -#!/bin/sh -# -# Get latest commits and feeds to display on the website main page. -# On Tank, this script is executed by cron each hour. -# - -CACHE="/var/cache/slitaz/website" - -# Feeds URL http://scn.slitaz.org/activity/feed/ -SCN_FEED='http://scn.slitaz.org/activity/feed/' -BLOG_FEED='http://scn.slitaz.org/category/news/feed/' -WOK_FEED='http://hg.slitaz.org/wok/rss-log' -FORUM_FEED='http://forum.slitaz.org/rss' - -# Clean cache -mkdir -p $CACHE && cd $CACHE -rm -f *.xml - -# Cache all feeds to save bandwidth (updated by cron) -echo -n "Getting latest rss feeds... " -wget -O scn.xml $SCN_FEED 2>/dev/null -wget -O wok.xml $WOK_FEED 2>/dev/null -wget -O blog.xml $BLOG_FEED 2>/dev/null -#wget -O forum.xml $FORUM_FEED 2>/dev/null -echo "Done" - -exit 0 diff -r fe3608d70cb1 -r 6bdb0d107255 libs/js/slideshow.js --- a/libs/js/slideshow.js Wed Mar 07 01:54:42 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ - -window.addEventListener?window.addEventListener('load',so_init,false):window.attachEvent('onload',so_init); - -var d=document, imgs = new Array(), zInterval = null, current=0, pause=false; - -function so_init() -{ - if(!d.getElementById || !d.createElement)return; - - imgs = d.getElementById('slideshow').getElementsByTagName('img'); - for(i=1;i.99) - { - obj.xOpacity = .99; - return; - } - - obj.style.opacity = obj.xOpacity; - obj.style.MozOpacity = obj.xOpacity; - obj.style.filter = 'alpha(opacity=' + (obj.xOpacity*100) + ')'; - } -} diff -r fe3608d70cb1 -r 6bdb0d107255 libs/random-image.php --- a/libs/random-image.php Wed Mar 07 01:54:42 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -"; - -?> diff -r fe3608d70cb1 -r 6bdb0d107255 netmap.php --- a/netmap.php Wed Mar 07 01:54:42 2012 +0100 +++ b/netmap.php Thu Mar 08 02:41:51 2012 +0100 @@ -33,7 +33,7 @@
    - +
    diff -r fe3608d70cb1 -r 6bdb0d107255 pt/index.php --- a/pt/index.php Wed Mar 07 01:54:42 2012 +0100 +++ b/pt/index.php Thu Mar 08 02:41:51 2012 +0100 @@ -230,7 +230,7 @@

    Atividades do projeto

    diff -r fe3608d70cb1 -r 6bdb0d107255 pt/mailing-list.html --- a/pt/mailing-list.html Wed Mar 07 01:54:42 2012 +0100 +++ b/pt/mailing-list.html Thu Mar 08 02:41:51 2012 +0100 @@ -203,7 +203,7 @@

    - + diff -r fe3608d70cb1 -r 6bdb0d107255 webchat.php --- a/webchat.php Wed Mar 07 01:54:42 2012 +0100 +++ b/webchat.php Thu Mar 08 02:41:51 2012 +0100 @@ -33,7 +33,7 @@
    - +