From: Michael Tremer Date: Thu, 21 Jan 2010 16:34:05 +0000 (+0100) Subject: Remove old files. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d99a370f427aac94cb39dfb5607cde0f01482e61;p=ipfire.org.git Remove old files. --- diff --git a/www/pages/source.py b/www/pages/source.py deleted file mode 100644 index 4178fa47..00000000 --- a/www/pages/source.py +++ /dev/null @@ -1,91 +0,0 @@ -#!/usr/bin/python - -SOURCE_BASE="/srv/sources" -SOURCE_HASHES="/srv/www/ipfire.org/source/hashes.db" - -SOURCE_URL="http://source.ipfire.org" - -import os -import sha -from pysqlite2 import dbapi2 as sqlite - -import web -import web.elements - -class SourceObject: - def __init__(self, db, file): - self.file = file - self.name = os.path.basename(file) - - if db: - self.db = db - else: - self.db = sqlite.connect(SOURCE_HASHES) - c = self.db.cursor() - c.execute("CREATE TABLE IF NOT EXISTS hashes(file, sha1)") - c.close() - - def data(self): - f = open(self.file, "rb") - data = f.read() - f.close() - return data - - def getHash(self, type="sha1"): - hash = None - c = self.db.cursor() - c.execute("SELECT %s FROM hashes WHERE file = '%s'" % (type, self.name,)) - try: - hash = c.fetchone()[0] - except TypeError: - pass - c.close() - - if not hash: - hash = sha.new(self.data()).hexdigest() - c = self.db.cursor() - c.execute("INSERT INTO hashes(file, sha1) VALUES('%s', '%s')" % \ - (self.name, hash,)) - c.close() - self.db.commit() - return hash - - -class Content(web.Content): - def __init__(self): - web.Content.__init__(self) - - self.dirs = [] - - # Open database - db = sqlite.connect(SOURCE_HASHES) - - for dir, subdirs, files in os.walk(SOURCE_BASE): - if not files: - continue - fileobjects = [] - files.sort() - for file in files: - file = os.path.join(dir, file) - fileobjects.append(SourceObject(db, file)) - self.dirs.append((os.path.basename(dir), fileobjects)) - - def __call__(self, lang): - ret = "" - self.w("

IPFire Source Base

") - for dir, files in self.dirs: - b = web.elements.Box(dir) - b.w("") - ret += b() - return ret - -page = web.Page() -page.content = Content() -page.sidebar = web.elements.DevelopmentSidebar() diff --git a/www/pages/static/__init__.py b/www/pages/static/__init__.py deleted file mode 100644 index 317aa39f..00000000 --- a/www/pages/static/__init__.py +++ /dev/null @@ -1,123 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -import os -from xml.dom.minidom import parseString - -import web -from web.banners import Banners -from web.elements import Box, Releases -from web.news import News - -class Xml(object): - def __init__(self, file): - file = "%s/pages/static/%s.xml" % (os.getcwd(), file,) - f = open(file) - data = f.read() - f.close() - - self.xml = parseString(data).getElementsByTagName("Site")[0] - - def getAttribute(self, node, attr): - return node.getAttribute(attr).strip() - - def getText(self, node): - ret = "" - for i in node.childNodes: - ret += i.data - return ret.encode("utf-8") - - -class Content(Xml): - def __init__(self, file,): - Xml.__init__(self, file) - - def __call__(self, lang="en"): - ret = "" - for paragraphs in self.xml.getElementsByTagName("Paragraphs"): - for paragraph in paragraphs.getElementsByTagName("Paragraph"): - if self.getAttribute(paragraph, "news") == "1": - news = News(int(self.getAttribute(paragraph, "count"))) - ret += news(lang).encode("utf-8") - continue - - # Heading - for heading in paragraph.getElementsByTagName("Heading"): - if self.getAttribute(heading, "lang") == lang or \ - not self.getAttribute(heading, "lang"): - heading = self.getText(heading) - break - - b = Box(heading) - - # Content - for content in paragraph.getElementsByTagName("Content"): - if self.getAttribute(content, "lang") == lang or \ - not self.getAttribute(content, "lang"): - if self.getAttribute(content, "raw") == "1": - s = self.getText(content) - else: - s = "

%s

" % self.getText(content) - b.w(s) - - ret += b() - return ret - - -class Sidebar(Xml): - def __init__(self, file): - Xml.__init__(self, file) - - def __call__(self, lang="en"): - ret = "" - sidebar = self.xml.getElementsByTagName("Sidebar")[0] - for paragraph in sidebar.getElementsByTagName("Paragraph"): - if self.getAttribute(paragraph, "banner") == "1": - b = Banners() - ret += """

%(title)s

- """ % b.random() - continue - elif self.getAttribute(paragraph, "releases") == "1": - r = Releases() - ret += r(lang) - continue - - # Heading - for heading in paragraph.getElementsByTagName("Heading"): - if self.getAttribute(heading, "lang") == lang or \ - not self.getAttribute(heading, "lang"): - heading = self.getText(heading) - break - - ret += "

%s

" % heading - - # Content - for content in paragraph.getElementsByTagName("Content"): - if self.getAttribute(content, "lang") == lang or \ - not self.getAttribute(content, "lang"): - if self.getAttribute(content, "raw") == "1": - s = self.getText(content) - else: - s = "

%s

" % self.getText(content) - ret += s - - return ret - -class Javascript(Xml): - def __init__(self, file): - Xml.__init__(self, file) - - def __call__(self, lang="en"): - ret = "" - scripts = self.xml.getElementsByTagName("Script") - for script in scripts: - ret += self.getText(script) - - return ret - - - -page = web.Page() -page.content = Content(page.site) -page.sidebar = Sidebar(page.site) -page.javascript = Javascript(page.site) diff --git a/www/pages/static/cebit.xml b/www/pages/static/cebit.xml deleted file mode 100644 index 84d55d32..00000000 --- a/www/pages/static/cebit.xml +++ /dev/null @@ -1,182 +0,0 @@ - - - - CeBIT-Special - - - - IPFire on CeBIT 2010 - IPFire auf der CeBIT 2010 - - - ]]> - - - CeBIT 2010 will be here soon, beginning March 2nd and lasting until - March 6th in Hannover, Germany. This year will prove to be a special - one, as IPFire will be represented by its very own booth in - the Open Source Project Lounge. -

- -

- First of all, our very special thanks go out to - Linux New Media AG and - Messegesellschaft, - who offer free booths to selected Open Source - projects. CeBIT (a German acronym for the Center for Office and - Information Technology) is the biggest computer and telecommunications - exhibition in the world. This an excellent chance for IPFire to gain - recognition, get in touch with users and developers, and possibly find - sponsors and forge alliances. -

-

- And, it is also a chance for all of you to meet the members of the - IPFire community in person. - ]]> - 2. bis 6. März 2010 findet die CeBIT in Hannover statt. - Das Besondere in diesem Jahr: IPFire wird mit einem - kleinen Stand in der Open Source Project Lounge auf der Messe vertreten sein. -

- -

- Zuallererst gebührt unser Dank der - Linux New Media AG - und der Messegesellschaft, - welche für ausgewählte OpenSource-Projekte einige kostenlose Stände zur Verfügung stellen. - Die CeBIT ist immernoch die weltgrößte Computer- und Telekommunikationsmesse, - und diese Präsentationsmöglichkeit ist natürlich eine riesige Chance, das Projekt bekannter - zu machen, mehr Nutzer und Entwickler zu erreichen, bzw. Kontakte zu knüpfen und Allianzen - zu schmieden. -

- -

- Ebenfalls erhaltet Ihr die einmalige Chance die Entwickler einmal persönlich kennen zu lernen, - Ideen auszutauschen, und und und... -

]]> -
-
- - Your Donations are Needed! - Spendenaufruf - - - ]]> - - -

- As we strive to represent IPFire as professionally, - we are asking for some extra help to take advantage of this opportunity. - All we ask is a small donation, as every little bit helps. This is a unique - opportunity to gain international recognition for the project, so your - money will be well spent. -

-

- Materials we will be purchasing: -

-

-

    -
  • Posters
  • -
  • Flyers
  • -
  • Discs (pressed)
  • -
  • T-Shirts, etc.
  • -
-

- -

- Our favorite way for a donation is PayPal because - it is fast and easy. If you prefer a bank donation, please send - us a short request - for our bank account number. -

-
-
- - - - -
-
- ]]>
- - -

- Wir möchten jedoch IPFire so professioniell wie möglich präsentieren, daher ergeht - an euch Alle ein Spenden- und Mitmachaufruf.
- Wir möchten diese einmalige Chance nutzen und IPFire noch bekannter machen. -

-

- Spenden müssen nicht unbedingt finanzieller Natur sein. Es wird auch folgendes benötigt: -

- -

-

    -
  • Poster
  • -
  • Flyer
  • -
  • CD-ROMs (bedruckt) in großer Auflage
  • -
  • Textilien mit Aufdruck
  • -
-

- -

- Wegen des einfachen Ablaufs der Spende bevorzugen wir PayPal. - Auf Anfrage - kann eine Überweisung auch per Kontonummer erfolgen. -

-
-
- - - - -
-
- ]]>
-
- - - Sponsors - Sponsoren - - Linux New Media AG - ]]> - -
- - - - CeBIT]]> - -
  • CeBIT 2010
  • -
  • Donation!
  • -
  • Sponsors
  • - - ]]>
    - -
  • CeBIT 2010
  • -
  • Spenden!
  • -
  • Sponsoren
  • - - ]]>
    - -
    - - -
    -
    diff --git a/www/pages/static/development.xml b/www/pages/static/development.xml deleted file mode 100644 index afcd3a78..00000000 --- a/www/pages/static/development.xml +++ /dev/null @@ -1,130 +0,0 @@ - - - - Development - Development - - - - Development - - ]]> - - - These are the development ressources. The neccessary howtos
    - are in the wiki. - ]]>
    - - Hier habt Ihr Zugriff auf alle Ressourcen für die Entwicklung.
    - Die nötigen Howtos entnehmt bitte dem Wiki. - ]]>
    - - There is one early development version at the moment:
    - version 3.0, the next major release, has - reached alpha state. See the roadmap at: - http://wiki.ipfire.org/en/development/3.0. - ]]>
    - Zurzeit gibt eine frühe Entwicklungsversion:
    - Version 3.0, die nächste Major-Version, hat - den Alpha-Status erreicht. Ein Roadmap findet sich unter - http://wiki.ipfire.org/de/development/3.0. - ]]>
    - - Comparison of IPFire to IPCop and Smoothwall on ohloh.net - ]]> - - IPFire im Vergleich mit IPCop und Smoothwall auf ohloh.net - ]]> -
    - - git - git. - Your will find a howto for working with git in our - wiki. -
    - You may also browse the our source code on: http://git.ipfire.org/ - ]]>
    - Git - verwaltet. Ein Howto zum Arbeiten mit Git findet ihr - in unserem Wiki. -
    - Browsen könnt ihr unseren Source-Code unter: http://git.ipfire.org/ - ]]>
    -
    - - source-code - http://source.ipfire.org/.
    - All patches that are used in our distribution are stored in a git repository. - Therefore see "git" on this site. - ]]>
    - http://source.ipfire.org/
    - Alle Patches, die in der Distribution Verwendung finden werden in einem - Git-Repository verwaltet. Siehe dazu Git. - ]]>
    -
    - - bugtracker - bugtracker.
    - It is important for development to create detailed bug reports that - we can work with them fastly. - ]]>
    - Bugtracker findet Ihr bekannte Fehler.
    - Für die Entwicklung ist es wichtig, dass es ausführliche Bug-Reports gibt, - die dann rasch bearbeitet werden können. - ]]>
    -
    - - nightly-builds - - Version 3: ftp://ftp.ipfire.org/pub/nightly-builds/
    - ]]>
    - - Version 3: ftp://ftp.ipfire.org/pub/nightly-builds/
    - ]]>
    -
    -
    - - - Development Zone]]> - - -
  • git
  • -
  • sourcecode
  • -
  • bugtracker
  • -
  • nighty builds
  • - - ]]>
    - -
  • Git
  • -
  • Sourcecode
  • -
  • Bugtracker
  • -
  • Nighty-Builds
  • - - ]]>
    -
    -
    -
    diff --git a/www/pages/static/news.xml b/www/pages/static/news.xml deleted file mode 100644 index fe2fa5fa..00000000 --- a/www/pages/static/news.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - News - - - - IPFire News Archive - IPFire-News-Archiv - - - Additionally, you may subscribe to our - rss feed. - ]]> - - Weiterhin gibt es einen - RSS-Feed, der sich abbonieren - lässt. - ]]> - - - - - - - - - diff --git a/www/pages/static/screenshots.xml b/www/pages/static/screenshots.xml deleted file mode 100644 index ed54c854..00000000 --- a/www/pages/static/screenshots.xml +++ /dev/null @@ -1,196 +0,0 @@ - - - - Screenshots - Screenshots - - - - - ]]> - - Screenshots - - ]]> - - - ]]> - - ]]> - - - System - -     - Home -     - Backup - - ]]> - -     - Startsete -     - Datensicherung - - ]]> - - - Status - -     - Services -     - Network (other) -     - Connections - - ]]> - -     - Dienste -     - Netzwerk (sonstige) -     - Verbindungen - - ]]> - - - - Network - Netzwerk - - -     - DHCP Server - - ]]> - -     - DHCP Server - - ]]> - - - - Services - Dienste - - -     - IPSec -     - Quality of Service - - ]]> - -     - IPSec -     - Quality of Service - - ]]> - - - Firewall - -     - Outgoing Firewall - - ]]> - -     - Ausgehende Firewall - - ]]> - - - IPFire - -     - Pakfire -     - Samba - - ]]> - -     - Pakfire -     - Samba - - ]]> - - - Logs - -     - Fw-Logdgraphs (IP) -     - Proxy Reports - - ]]> - -     - Fw-Logdiagramme (IP) -     - Proxy-Berichte - - ]]> - - - - - - Screenshot list]]> - Screenshotliste]]> - - -
  • System
  • -
  • Status
  • -
  • Network
  • -
  • Services
  • -
  • Firewall
  • -
  • IPFire
  • -
  • Logs
  • - - ]]>
    - -
  • System
  • -
  • Status
  • -
  • Netzwerk
  • -
  • Dienste
  • -
  • Firewall
  • -
  • IPFire
  • -
  • Logs
  • - - ]]>
    - -
    -
    -
    \ No newline at end of file