[TEP-COMMIT] [CVS catalog] update the language class structure

hpdl-OfajU3CKLf1/[email protected] 24 Nov 2004 15:54:01 -0000
Newsgroups gmane.comp.web.oscommerce.cvs
Message-ID <[email protected]>
<html>
<head>
<style><!--
  body {background-color:#ffffff;}
  .file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
  .pathname {font-family:monospace; float:right;}
  .fileheader {margin-bottom:.5em;}
  .diff {margin:0;}
  .tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
  .tasklist ul {margin-top:0;margin-bottom:0;}
  tr.alt {background-color:#eeeeee}
  #added {background-color:#ddffdd;}
  #addedchars {background-color:#99ff99;font-weight:bolder;}
  tr.alt #added {background-color:#ccf7cc;}
  #removed {background-color:#ffdddd;}
  #removedchars {background-color:#ff9999;font-weight:bolder;}
  tr.alt #removed {background-color:#f7cccc;}
  #info {color:#888888;}
  #context {background-color:#eeeeee;}
  td {padding-left:.3em;padding-right:.3em;}
  tr.head {border-bottom-width:1px;border-bottom-style:solid;}
  tr.head td {padding:0;padding-top:.2em;}
  .task {background-color:#ffff00;}
  .comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
  .error {color:red;}
  hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>catalog/catalog/includes</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt>boxes/<a href="#file1">languages.php</a></tt></td><td align="right" id="added">+4</td><td align="right" id="removed">-10</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/boxes/languages.php?rev=1.17&amp;content-type=text/vnd.viewcvs-markup">1.17</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/boxes/languages.php.diff?r1=1.17&amp;r2=1.18">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/boxes/languages.php?rev=1.18&amp;content-type=text/vnd.viewcvs-markup">1.18</a></td></tr>
<tr class="alt"><td><tt>classes/<a href="#file2">language.php</a></tt></td><td align="right" id="added">+104</td><td align="right" id="removed">-71</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/classes/language.php?rev=1.8&amp;content-type=text/vnd.viewcvs-markup">1.8</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/classes/language.php.diff?r1=1.8&amp;r2=1.9">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/classes/language.php?rev=1.9&amp;content-type=text/vnd.viewcvs-markup">1.9</a></td></tr>
<tr><td><tt>modules/services/<a href="#file3">language.php</a></tt></td><td align="right" id="added">+5</td><td align="right" id="removed">-12</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/modules/services/language.php?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/modules/services/language.php.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/modules/services/language.php?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></td></tr>
<tr><td></td><td align="right" id="added">+113</td><td align="right" id="removed">-93</td><td></td></tr>
</table>
<small id="info">3 modified files</small><br />
<pre class="comment">
update the language class structure

store the selected language in a cookie for 90 days
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog">catalog</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog">catalog</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes">includes</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/boxes">boxes</a><br /></span>
<div class="fileheader"><big><b>languages.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/boxes/languages.php?rev=1.17&amp;content-type=text/vnd.viewcvs-markup">1.17</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/boxes/languages.php.diff?r1=1.17&amp;r2=1.18">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/boxes/languages.php?rev=1.18&amp;content-type=text/vnd.viewcvs-markup">1.18</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.17 -r1.18
--- languages.php	2004/04/13 07:53:42	1.17
+++ languages.php	2004/11/24 15:53:50	1.18
@@ -5,17 +5,12 @@
</small></pre><pre class="diff" id="context">   osCommerce, Open Source E-Commerce Solutions
   http://www.oscommerce.com
 
</pre><pre class="diff" id="removed">-  Copyright (c) 200<span id="removedchars">3</span> osCommerce
</pre><pre class="diff" id="added">+  Copyright (c) 200<span id="addedchars">4</span> osCommerce
</pre><pre class="diff" id="context"> 
   Released under the GNU General Public License
 */
 
</pre><pre class="diff" id="removed">-  if (!isset($lng) || (isset($lng) &amp;&amp; !is_object($lng))) {
-    include(DIR_WS_CLASSES . 'language.php');
-    $lng = new language;
-  }
-
- if (sizeof($lng-&gt;catalog_languages) &gt; 1){
</pre><pre class="diff" id="added">+ if (sizeof($osC_Language-&gt;getAll() &gt; 1)) {
</pre><pre class="diff" id="context"> ?&gt;
 &lt;!-- languages //--&gt;
           &lt;tr&gt;
</pre><pre class="diff"><small id="info">@@ -27,9 +22,8 @@
</small></pre><pre class="diff" id="context">   new infoBoxHeading($info_box_contents, false, false);
 
   $languages_string = '';
</pre><pre class="diff" id="removed">-  reset($lng-&gt;catalog_languages);
-  while (list($key, $value) = each($lng-&gt;catalog_languages)) {
-    $languages_string .= ' &lt;a href="' . tep_href_link(basename($_SERVER['PHP_SELF']), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '"&gt;' . tep_image(DIR_WS_LANGUAGES .  $value['directory'] . '/images/' . $value['image'], $value['name']) . '&lt;/a&gt; ';
</pre><pre class="diff" id="added">+  foreach ($osC_Language-&gt;getAll() as $language) {
+    $languages_string .= ' &lt;a href="' . tep_href_link(basename($_SERVER['PHP_SELF']), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $language['code'], $request_type) . '"&gt;' . tep_image(DIR_WS_LANGUAGES .  $language['directory'] . '/images/' . $language['image'], $language['name']) . '&lt;/a&gt; ';
</pre><pre class="diff" id="context">   }
 
   $info_box_contents = array();
</pre></div>
<hr /><a name="file2" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog">catalog</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog">catalog</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes">includes</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/classes">classes</a><br /></span>
<div class="fileheader"><big><b>language.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/classes/language.php?rev=1.8&amp;content-type=text/vnd.viewcvs-markup">1.8</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/classes/language.php.diff?r1=1.8&amp;r2=1.9">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/classes/language.php?rev=1.9&amp;content-type=text/vnd.viewcvs-markup">1.9</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.8 -r1.9
--- language.php	2004/11/20 02:11:47	1.8
+++ language.php	2004/11/24 15:53:52	1.9
@@ -8,56 +8,21 @@
</small></pre><pre class="diff" id="context">   Copyright (c) 2004 osCommerce
 
   Released under the GNU General Public License
</pre><pre class="diff" id="removed">-
-  browser language detection logic Copyright phpMyAdmin (select_lang.lib.php3 v1.24 04/19/2002)
-                                   Copyright Stephane Garin &lt;[email protected]&gt; (detect_language.php v0.1 04/02/2002)
</pre><pre class="diff" id="context"> */
</pre><pre class="diff" id="added">+
+  class osC_Language {
+
+/* Public variables */
</pre><pre class="diff" id="context"> 
</pre><pre class="diff" id="removed">-  class language {
-    var $languages, $catalog_languages, $browser_languages, $language;
</pre><pre class="diff" id="added">+    var $language;
</pre><pre class="diff" id="context"> 
</pre><pre class="diff" id="removed">-    function language($lng = '') {
-      global $osC_Database;
</pre><pre class="diff" id="added">+/* Private variables */
+    var $_languages = array();
</pre><pre class="diff" id="context"> 
</pre><pre class="diff" id="removed">-      $this-&gt;languages = array('ar' =&gt; 'ar([-_][[:alpha:]]{2})?|arabic',
-                               'bg' =&gt; 'bg|bulgarian',
-                               'br' =&gt; 'pt[-_]br|brazilian portuguese',
-                               'ca' =&gt; 'ca|catalan',
-                               'cs' =&gt; 'cs|czech',
-                               'da' =&gt; 'da|danish',
-                               'de' =&gt; 'de([-_][[:alpha:]]{2})?|german',
-                               'el' =&gt; 'el|greek',
-                               'en' =&gt; 'en([-_][[:alpha:]]{2})?|english',
-                               'es' =&gt; 'es([-_][[:alpha:]]{2})?|spanish',
-                               'et' =&gt; 'et|estonian',
-                               'fi' =&gt; 'fi|finnish',
-                               'fr' =&gt; 'fr([-_][[:alpha:]]{2})?|french',
-                               'gl' =&gt; 'gl|galician',
-                               'he' =&gt; 'he|hebrew',
-                               'hu' =&gt; 'hu|hungarian',
-                               'id' =&gt; 'id|indonesian',
-                               'it' =&gt; 'it|italian',
-                               'ja' =&gt; 'ja|japanese',
-                               'ko' =&gt; 'ko|korean',
-                               'ka' =&gt; 'ka|georgian',
-                               'lt' =&gt; 'lt|lithuanian',
-                               'lv' =&gt; 'lv|latvian',
-                               'nl' =&gt; 'nl([-_][[:alpha:]]{2})?|dutch',
-                               'no' =&gt; 'no|norwegian',
-                               'pl' =&gt; 'pl|polish',
-                               'pt' =&gt; 'pt([-_][[:alpha:]]{2})?|portuguese',
-                               'ro' =&gt; 'ro|romanian',
-                               'ru' =&gt; 'ru|russian',
-                               'sk' =&gt; 'sk|slovak',
-                               'sr' =&gt; 'sr|serbian',
-                               'sv' =&gt; 'sv|swedish',
-                               'th' =&gt; 'th|thai',
-                               'tr' =&gt; 'tr|turkish',
-                               'uk' =&gt; 'uk|ukrainian',
-                               'tw' =&gt; 'zh[-_]tw|chinese traditional',
-                               'zh' =&gt; 'zh|chinese simplified');
</pre><pre class="diff" id="added">+/* Class constructor */
</pre><pre class="diff" id="context"> 
</pre><pre class="diff" id="removed">-      $this-&gt;catalog_languages = array();
</pre><pre class="diff" id="added">+    function osC_Language() {
+      global $osC_Database, $osC_Session;
</pre><pre class="diff" id="context"> 
       $Qlanguages = $osC_Database-&gt;query('select * from :table_languages order by sort_order, name');
       $Qlanguages-&gt;bindTable(':table_languages', TABLE_LANGUAGES);
</pre><pre class="diff"><small id="info">@@ -65,26 +30,33 @@
</small></pre><pre class="diff" id="context">       $Qlanguages-&gt;execute();
 
       while ($Qlanguages-&gt;next()) {
</pre><pre class="diff" id="removed">-        $this-&gt;catalog_languages[$Qlanguages-&gt;value('code')] = array('id' =&gt; $Qlanguages-&gt;valueInt('languages_id'),
-                                                                     'name' =&gt; $Qlanguages-&gt;value('name'),
-                                                                     'code' =&gt; $Qlanguages-&gt;value('code'),
-                                                                     'image' =&gt; $Qlanguages-&gt;value('image'),
-                                                                     'directory' =&gt; $Qlanguages-&gt;value('directory'));
</pre><pre class="diff" id="added">+        $this-&gt;_languages[$Qlanguages-&gt;value('code')] = array('id' =&gt; $Qlanguages-&gt;valueInt('languages_id'),
+                                                              'name' =&gt; $Qlanguages-&gt;value('name'),
+                                                              'code' =&gt; $Qlanguages-&gt;value('code'),
+                                                              'image' =&gt; $Qlanguages-&gt;value('image'),
+                                                              'directory' =&gt; $Qlanguages-&gt;value('directory'));
</pre><pre class="diff" id="context">       }
 
       $Qlanguages-&gt;freeResult();
 
</pre><pre class="diff" id="removed">-      $this-&gt;browser_languages = '';
-      $this-&gt;language = '';
-
-      $this-&gt;set_language($lng);
</pre><pre class="diff" id="added">+      if ($osC_Session-&gt;exists('language')) {
+        $this-&gt;set();
+      } else {
+        $this-&gt;setToBrowser();
+      }
</pre><pre class="diff" id="context">     }
 
</pre><pre class="diff" id="removed">-    function set_language($language) {
</pre><pre class="diff" id="added">+/* Public methods */
+
+    function set($language = '') {
+      if (PHP_VERSION &lt; 4.1) {
+        global $_COOKIE;
+      }
+
</pre><pre class="diff" id="context">       global $osC_Session;
 
       if (empty($language) &amp;&amp; $osC_Session-&gt;exists('language')) {
</pre><pre class="diff" id="removed">-        foreach ($this-&gt;<span id="removedchars">catalog</span>_languages as $l) {
</pre><pre class="diff" id="added">+        foreach ($this-&gt;_languages as $l) {
</pre><pre class="diff" id="context">           if ($l['directory'] == $osC_Session-&gt;value('language')) {
             $language = $l['code'];
             break;
</pre><pre class="diff"><small id="info">@@ -92,37 +64,98 @@
</small></pre><pre class="diff" id="context">         }
       }
 
</pre><pre class="diff" id="removed">-      if (!empty($language) &amp;&amp; $this-&gt;exists($language)) {
-        $this-&gt;language = $this-&gt;get($language);
-      } else {
-        $this-&gt;language = $this-&gt;get(DEFAULT_LANGUAGE);
</pre><pre class="diff" id="added">+      if (empty($language) || ($this-&gt;exists($language) === false)) {
+        $language = DEFAULT_LANGUAGE;
</pre><pre class="diff" id="context">       }
</pre><pre class="diff" id="added">+
+      $this-&gt;language = $this-&gt;get($language);
+
+      if (!isset($_COOKIE['language']) || (isset($_COOKIE['language']) &amp;&amp; ($_COOKIE['language'] != $this-&gt;language['code']))) {
+        tep_setcookie('language', $this-&gt;language['code'], time()+60*60*24*90);
+      }
+
+      if (($osC_Session-&gt;exists('language') === false) || ($osC_Session-&gt;exists('language') &amp;&amp; ($osC_Session-&gt;value('language') != $this-&gt;language['directory']))) {
+        $osC_Session-&gt;set('language', $this-&gt;language['directory']);
+        $osC_Session-&gt;set('languages_id', $this-&gt;language['id']);
+      }
</pre><pre class="diff" id="context">     }
 
</pre><pre class="diff" id="removed">-    function get_browser_language() {
-      $this-&gt;browser_languages = explode(',', getenv('HTTP_ACCEPT_LANGUAGE'));
</pre><pre class="diff" id="added">+    function setToBrowser() {
+      if (PHP_VERSION &lt; 4.1) {
+        global $_COOKIE, $_SERVER;
+      }
+
+      if (isset($_COOKIE['language'])) {
+        if ($this-&gt;exists($_COOKIE['language'])) {
+          $this-&gt;set($_COOKIE['language']);
</pre><pre class="diff" id="context"> 
</pre><pre class="diff" id="removed">-      for ($i=0, $n=sizeof($this-&gt;browser_languages); $i&lt;$n; $i++) {
-        reset($this-&gt;languages);
-        while (list($key, $value) = each($this-&gt;languages)) {
-          if (eregi('^(' . $value . ')(;q=[0-9]\\.[0-9])?$', $this-&gt;browser_languages[$i]) &amp;&amp; isset($this-&gt;catalog_languages[$key])) {
-            $this-&gt;language = $this-&gt;catalog_languages[$key];
-            break 2;
</pre><pre class="diff" id="added">+          return true;
+        }
+      }
+
+      $http_accept_language = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
+
+      $browser_languages = array('ar' =&gt; 'ar([-_][[:alpha:]]{2})?|arabic',
+                                 'bg' =&gt; 'bg|bulgarian',
+                                 'br' =&gt; 'pt[-_]br|brazilian portuguese',
+                                 'ca' =&gt; 'ca|catalan',
+                                 'cs' =&gt; 'cs|czech',
+                                 'da' =&gt; 'da|danish',
+                                 'de' =&gt; 'de([-_][[:alpha:]]{2})?|german',
+                                 'el' =&gt; 'el|greek',
+                                 'en' =&gt; 'en([-_][[:alpha:]]{2})?|english',
+                                 'es' =&gt; 'es([-_][[:alpha:]]{2})?|spanish',
+                                 'et' =&gt; 'et|estonian',
+                                 'fi' =&gt; 'fi|finnish',
+                                 'fr' =&gt; 'fr([-_][[:alpha:]]{2})?|french',
+                                 'gl' =&gt; 'gl|galician',
+                                 'he' =&gt; 'he|hebrew',
+                                 'hu' =&gt; 'hu|hungarian',
+                                 'id' =&gt; 'id|indonesian',
+                                 'it' =&gt; 'it|italian',
+                                 'ja' =&gt; 'ja|japanese',
+                                 'ko' =&gt; 'ko|korean',
+                                 'ka' =&gt; 'ka|georgian',
+                                 'lt' =&gt; 'lt|lithuanian',
+                                 'lv' =&gt; 'lv|latvian',
+                                 'nl' =&gt; 'nl([-_][[:alpha:]]{2})?|dutch',
+                                 'no' =&gt; 'no|norwegian',
+                                 'pl' =&gt; 'pl|polish',
+                                 'pt' =&gt; 'pt([-_][[:alpha:]]{2})?|portuguese',
+                                 'ro' =&gt; 'ro|romanian',
+                                 'ru' =&gt; 'ru|russian',
+                                 'sk' =&gt; 'sk|slovak',
+                                 'sr' =&gt; 'sr|serbian',
+                                 'sv' =&gt; 'sv|swedish',
+                                 'th' =&gt; 'th|thai',
+                                 'tr' =&gt; 'tr|turkish',
+                                 'uk' =&gt; 'uk|ukrainian',
+                                 'tw' =&gt; 'zh[-_]tw|chinese traditional',
+                                 'zh' =&gt; 'zh|chinese simplified');
+
+      foreach ($http_accept_language as $browser_language) {
+        foreach ($browser_languages as $key =&gt; $value) {
+          if (eregi('^(' . $value . ')(;q=[0-9]\\.[0-9])?$', $browser_language) &amp;&amp; $this-&gt;exists($key)) {
+            $this-&gt;set($this-&gt;_languages[$key]);
+
+            return true;
</pre><pre class="diff" id="context">           }
         }
       }
</pre><pre class="diff" id="added">+
+      $this-&gt;set(DEFAULT_LANGUAGE);
</pre><pre class="diff" id="context">     }
 
     function get($language) {
</pre><pre class="diff" id="removed">-      return $this-&gt;<span id="removedchars">catalog</span>_languages[$language];
</pre><pre class="diff" id="added">+      return $this-&gt;_languages[$language];
</pre><pre class="diff" id="context">     }
 
     function getAll() {
</pre><pre class="diff" id="removed">-      return $this-&gt;<span id="removedchars">catalog</span>_languages;
</pre><pre class="diff" id="added">+      return $this-&gt;_languages;
</pre><pre class="diff" id="context">     }
 
     function exists($language) {
</pre><pre class="diff" id="removed">-      if (isset($this-&gt;<span id="removedchars">catalog</span>_languages[$language])) {
</pre><pre class="diff" id="added">+      if (isset($this-&gt;_languages[$language])) {
</pre><pre class="diff" id="context">         return true;
       }
 
</pre></div>
<hr /><a name="file3" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog">catalog</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog">catalog</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes">includes</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/modules">modules</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/modules/services">services</a><br /></span>
<div class="fileheader"><big><b>language.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/modules/services/language.php?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/modules/services/language.php.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/modules/services/language.php?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.2 -r1.3
--- language.php	2004/04/14 23:22:56	1.2
+++ language.php	2004/11/24 15:53:54	1.3
@@ -22,20 +22,13 @@
</small></pre><pre class="diff" id="context">         global $_GET;
       }
 
</pre><pre class="diff" id="removed">-      global $osC_Session, $<span id="removedchars">lng</span>;
</pre><pre class="diff" id="added">+      global $osC_Session, $<span id="addedchars">osC_Language</span>;
</pre><pre class="diff" id="context"> 
</pre><pre class="diff" id="removed">-      if (($osC_Session-&gt;exists('language') == false) || isset($_GET['language'])) {
-        include('includes/classes/language.php');
-        $lng = new language;
</pre><pre class="diff" id="added">+      require('includes/classes/language.php');
+      $osC_Language = new osC_Language();
</pre><pre class="diff" id="context"> 
</pre><pre class="diff" id="removed">-        if (isset($_GET['language']) &amp;&amp; tep_not_null($_GET['language'])) {
-          $lng-&gt;set_language($_GET['language']);
-        } else {
-          $lng-&gt;get_browser_language();
-        }
-
-        $osC_Session-&gt;set('language', $lng-&gt;language['directory']);
-        $osC_Session-&gt;set('languages_id', $lng-&gt;language['id']);
</pre><pre class="diff" id="added">+      if (isset($_GET['language']) &amp;&amp; !empty($_GET['language'])) {
+        $osC_Language-&gt;set($_GET['language']);
</pre><pre class="diff" id="context">       }
 
       require('includes/languages/' . $osC_Session-&gt;value('language') . '.php');
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -&gt; email">CVSspam</a> 0.2.9</small></center>
</body></html>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/