X-Original-To: pgsql-www-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 4D224D1D69E for ; Fri, 6 Feb 2004 21:07:50 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 02734-01 for ; Fri, 6 Feb 2004 17:07:49 -0400 (AST) Received: from hueymiccailhuitl.mtu.ru (hueytecuilhuitl.mtu.ru [195.34.32.123]) by svr1.postgresql.org (Postfix) with ESMTP id CC26CD1D642 for ; Fri, 6 Feb 2004 17:07:46 -0400 (AST) Received: from cs.msu.su (ppp138-215.dialup.mtu-net.ru [62.118.138.215]) by hueymiccailhuitl.mtu.ru (Postfix) with ESMTP id 66EB1F8759 for ; Sat, 7 Feb 2004 00:07:46 +0300 (MSK) (envelope-from borz_off@cs.msu.su) Message-ID: <40240222.4020707@cs.msu.su> Date: Sat, 07 Feb 2004 00:07:46 +0300 From: Alexey Borzov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: pgsql-www@postgresql.org Subject: finally, attempt on 'portal' changes Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/47 X-Sequence-Number: 3612 Hi! Well, turned out that I had time to flame on this list about the changes needed for 'portal' module, but didn't have time afterwards to actually implement them. :[ Finally managed to hack on the module a bit. The results are here: http://oc.cs.msu.su/pgorg/ (if page generation times look big, the box is a P2-200 :] ) The code can be downloaded: http://oc.cs.msu.su/pgorg.tar.gz Main changes: * All HTML was taken out of the PHP, templates and static pages were moved from database to files * The site now uses the template engine (HTML_Template_Sigma from PEAR) You can view f.e. the "common" template here: http://oc.cs.msu.su/pgorg/template/common.html From my POW, it is a *lot* easier to edit for designers than before. Also note the preparation for gettext usage. There were also some optimizations done to the code, d/l it and see. Stuff left to be done: * Docs * Language handling (pages like index.html.ru) There is also a problem with database schema: all language fields are char(2), but languages in HTTP can be f.e. 'en-us'. If the changes I did are approved, I'd like to get access to the CVS and dev. server to be able to continue the work there.