[TEP-COMMIT] [CVS admin] replace calls to the tep_get_languages() function with the new getAll()

hpdl-OfajU3CKLf1/[email protected] 20 Nov 2004 02:16:55 -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>admin/admin</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">categories.php</a></tt></td><td align="right" id="added">+3</td><td align="right" id="removed">-5</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/categories.php?rev=1.158&amp;content-type=text/vnd.viewcvs-markup">1.158</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/categories.php.diff?r1=1.158&amp;r2=1.159">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/categories.php?rev=1.159&amp;content-type=text/vnd.viewcvs-markup">1.159</a></td></tr>
<tr class="alt"><td><tt><a href="#file2">define_language.php</a></tt></td><td align="right" id="added">+4</td><td align="right" id="removed">-5</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/define_language.php?rev=1.19&amp;content-type=text/vnd.viewcvs-markup">1.19</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/define_language.php.diff?r1=1.19&amp;r2=1.20">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/define_language.php?rev=1.20&amp;content-type=text/vnd.viewcvs-markup">1.20</a></td></tr>
<tr><td><tt><a href="#file3">manufacturers.php</a></tt></td><td align="right" id="added">+5</td><td align="right" id="removed">-6</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/manufacturers.php?rev=1.61&amp;content-type=text/vnd.viewcvs-markup">1.61</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/manufacturers.php.diff?r1=1.61&amp;r2=1.62">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/manufacturers.php?rev=1.62&amp;content-type=text/vnd.viewcvs-markup">1.62</a></td></tr>
<tr class="alt"><td><tt><a href="#file4">orders_status.php</a></tt></td><td align="right" id="added">+3</td><td align="right" id="removed">-5</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/orders_status.php?rev=1.24&amp;content-type=text/vnd.viewcvs-markup">1.24</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/orders_status.php.diff?r1=1.24&amp;r2=1.25">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/orders_status.php?rev=1.25&amp;content-type=text/vnd.viewcvs-markup">1.25</a></td></tr>
<tr><td><tt><a href="#file5">products.php</a></tt></td><td align="right" id="added">+5</td><td align="right" id="removed">-6</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/products.php?rev=1.17&amp;content-type=text/vnd.viewcvs-markup">1.17</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/products.php.diff?r1=1.17&amp;r2=1.18">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/products.php?rev=1.18&amp;content-type=text/vnd.viewcvs-markup">1.18</a></td></tr>
<tr class="alt"><td><tt><a href="#file6">products_attributes.php</a></tt></td><td align="right" id="added">+6</td><td align="right" id="removed">-10</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/products_attributes.php?rev=1.56&amp;content-type=text/vnd.viewcvs-markup">1.56</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/products_attributes.php.diff?r1=1.56&amp;r2=1.57">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/products_attributes.php?rev=1.57&amp;content-type=text/vnd.viewcvs-markup">1.57</a></td></tr>
<tr><td><tt><a href="#file7">weight_classes.php</a></tt></td><td align="right" id="added">+4</td><td align="right" id="removed">-6</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/weight_classes.php?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/weight_classes.php.diff?r1=1.3&amp;r2=1.4">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/weight_classes.php?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a></td></tr>
<tr class="alt"><td><tt>includes/<a href="#file8">application_top.php</a></tt></td><td align="right" id="added">+10</td><td align="right" id="removed">-10</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php?rev=1.180&amp;content-type=text/vnd.viewcvs-markup">1.180</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php.diff?r1=1.180&amp;r2=1.181">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php?rev=1.181&amp;content-type=text/vnd.viewcvs-markup">1.181</a></td></tr>
<tr><td><tt>includes/functions/<a href="#file9">general.php</a></tt></td><td></td><td align="right" id="removed">-20</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php?rev=1.175&amp;content-type=text/vnd.viewcvs-markup">1.175</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php.diff?r1=1.175&amp;r2=1.176">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php?rev=1.176&amp;content-type=text/vnd.viewcvs-markup">1.176</a></td></tr>
<tr class="alt"><td><tt>templates/default/<a href="#file10">header.php</a></tt></td><td align="right" id="added">+2</td><td align="right" id="removed">-4</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/default/header.php?rev=1.7&amp;content-type=text/vnd.viewcvs-markup">1.7</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/default/header.php.diff?r1=1.7&amp;r2=1.8">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/default/header.php?rev=1.8&amp;content-type=text/vnd.viewcvs-markup">1.8</a></td></tr>
<tr><td><tt>templates/pages/<a href="#file11">categories.php</a></tt></td><td align="right" id="added">+4</td><td align="right" id="removed">-6</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/categories.php?rev=1.5&amp;content-type=text/vnd.viewcvs-markup">1.5</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/categories.php.diff?r1=1.5&amp;r2=1.6">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/categories.php?rev=1.6&amp;content-type=text/vnd.viewcvs-markup">1.6</a></td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file12">manufacturers.php</a></tt></td><td align="right" id="added">+4</td><td align="right" id="removed">-6</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/manufacturers.php?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/manufacturers.php.diff?r1=1.3&amp;r2=1.4">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/manufacturers.php?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a></td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file13">orders_status.php</a></tt></td><td align="right" id="added">+4</td><td align="right" id="removed">-6</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/orders_status.php?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/orders_status.php.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/orders_status.php?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file14">products_attributes.php</a></tt></td><td align="right" id="added">+5</td><td align="right" id="removed">-7</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_attributes.php?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_attributes.php.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_attributes.php?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file15">products_attributes_listing.php</a></tt></td><td align="right" id="added">+4</td><td align="right" id="removed">-4</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_attributes_listing.php?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_attributes_listing.php.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_attributes_listing.php?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file16">products_edit.php</a></tt></td><td align="right" id="added">+11</td><td align="right" id="removed">-13</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_edit.php?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_edit.php.diff?r1=1.4&amp;r2=1.5">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_edit.php?rev=1.5&amp;content-type=text/vnd.viewcvs-markup">1.5</a></td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file17">products_preview.php</a></tt></td><td align="right" id="added">+8</td><td align="right" id="removed">-10</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_preview.php?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_preview.php.diff?r1=1.4&amp;r2=1.5">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_preview.php?rev=1.5&amp;content-type=text/vnd.viewcvs-markup">1.5</a></td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file18">weight_classes.php</a></tt></td><td align="right" id="added">+4</td><td align="right" id="removed">-6</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/weight_classes.php?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/weight_classes.php.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/weight_classes.php?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></td></tr>
<tr><td></td><td align="right" id="added">+86</td><td align="right" id="removed">-135</td><td></td></tr>
</table>
<small id="info">18 modified files</small><br />
<pre class="comment">
replace calls to the tep_get_languages() function with the new getAll()
language class method
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a><br /></span>
<div class="fileheader"><big><b>categories.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/categories.php?rev=1.158&amp;content-type=text/vnd.viewcvs-markup">1.158</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/categories.php.diff?r1=1.158&amp;r2=1.159">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/categories.php?rev=1.159&amp;content-type=text/vnd.viewcvs-markup">1.159</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.158 -r1.159
--- categories.php	2004/11/07 21:00:29	1.158
+++ categories.php	2004/11/20 02:16:45	1.159
@@ -64,9 +64,7 @@
</small></pre><pre class="diff" id="context">         if ($osC_Database-&gt;isError() === false) {
           $category_id = (isset($_GET['cID']) &amp;&amp; is_numeric($_GET['cID'])) ? $_GET['cID'] : $osC_Database-&gt;nextID();
 
</pre><pre class="diff" id="removed">-          $languages = tep_get_languages();
-
-          foreach ($languages as $l_entry) {
</pre><pre class="diff" id="added">+          foreach ($osC_Language-&gt;getAll() as $language) {
</pre><pre class="diff" id="context">             if (isset($_GET['cID']) &amp;&amp; is_numeric($_GET['cID'])) {
               $Qcd = $osC_Database-&gt;query('update :table_categories_description set categories_name = :categories_name where categories_id = :categories_id and language_id = :language_id');
             } else {
</pre><pre class="diff"><small id="info">@@ -74,8 +72,8 @@
</small></pre><pre class="diff" id="context">             }
             $Qcd-&gt;bindTable(':table_categories_description', TABLE_CATEGORIES_DESCRIPTION);
             $Qcd-&gt;bindInt(':categories_id', $category_id);
</pre><pre class="diff" id="removed">-            $Qcd-&gt;bindInt(':language_id', $l_entry['id']);
-            $Qcd-&gt;bindValue(':categories_name', $_POST['categories_name'][$l_entry['id']]);
</pre><pre class="diff" id="added">+            $Qcd-&gt;bindInt(':language_id', $language['id']);
+            $Qcd-&gt;bindValue(':categories_name', $_POST['categories_name'][$language['id']]);
</pre><pre class="diff" id="context">             $Qcd-&gt;execute();
 
             if ($osC_Database-&gt;isError()) {
</pre></div>
<hr /><a name="file2" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a><br /></span>
<div class="fileheader"><big><b>define_language.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/define_language.php?rev=1.19&amp;content-type=text/vnd.viewcvs-markup">1.19</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/define_language.php.diff?r1=1.19&amp;r2=1.20">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/define_language.php?rev=1.20&amp;content-type=text/vnd.viewcvs-markup">1.20</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.19 -r1.20
--- define_language.php	2004/11/07 21:00:29	1.19
+++ define_language.php	2004/11/20 02:16:45	1.20
@@ -19,15 +19,14 @@
</small></pre><pre class="diff" id="context">   $lng = (isset($_GET['lng']) ? $_GET['lng'] : $osC_Session-&gt;value('language'));
 
   $languages_array = array();
</pre><pre class="diff" id="removed">-  $languages = tep_get_languages();
</pre><pre class="diff" id="context">   $exists = false;
</pre><pre class="diff" id="removed">-  for ($i=0, $n=sizeof($languages); $i&lt;$n; $i++) {
-    if ($languages[$i]['directory'] == $lng) {
</pre><pre class="diff" id="added">+  foreach ($osC_Language-&gt;getAll() as $language) {
+    if ($language['directory'] == $lng) {
</pre><pre class="diff" id="context">       $exists = true;
     }
 
</pre><pre class="diff" id="removed">-    $languages_array[] = array('id' =&gt; $languages[$i]['directory'],
-                               'text' =&gt; $languages[$i]['name']);
</pre><pre class="diff" id="added">+    $languages_array[] = array('id' =&gt; $language['directory'],
+                               'text' =&gt; $language['name']);
</pre><pre class="diff" id="context">   }
 
   if ($exists === false) {
</pre></div>
<hr /><a name="file3" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a><br /></span>
<div class="fileheader"><big><b>manufacturers.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/manufacturers.php?rev=1.61&amp;content-type=text/vnd.viewcvs-markup">1.61</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/manufacturers.php.diff?r1=1.61&amp;r2=1.62">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/manufacturers.php?rev=1.62&amp;content-type=text/vnd.viewcvs-markup">1.62</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.61 -r1.62
--- manufacturers.php	2004/11/07 21:00:30	1.61
+++ manufacturers.php	2004/11/20 02:16:46	1.62
@@ -58,8 +58,7 @@
</small></pre><pre class="diff" id="context">         }
 
         if ($error === false) {
</pre><pre class="diff" id="removed">-          $languages = tep_get_languages();
-          foreach ($languages as $l_entry) {
</pre><pre class="diff" id="added">+          foreach ($osC_Language-&gt;getAll() as $language) {
</pre><pre class="diff" id="context">             if (isset($_GET['mID']) &amp;&amp; is_numeric($_GET['mID'])) {
               $Qurl = $osC_Database-&gt;query('update :table_manufacturers_info set manufacturers_url = :manufacturers_url where manufacturers_id = :manufacturers_id and languages_id = :languages_id');
             } else {
</pre><pre class="diff"><small id="info">@@ -67,8 +66,8 @@
</small></pre><pre class="diff" id="context">             }
             $Qurl-&gt;bindTable(':table_manufacturers_info', TABLE_MANUFACTURERS_INFO);
             $Qurl-&gt;bindInt(':manufacturers_id', $manufacturers_id);
</pre><pre class="diff" id="removed">-            $Qurl-&gt;bindInt(':languages_id', $l_entry['id']);
-            $Qurl-&gt;bindValue(':manufacturers_url', $_POST['manufacturers_url'][$l_entry['id']]);
</pre><pre class="diff" id="added">+            $Qurl-&gt;bindInt(':languages_id', $language['id']);
+            $Qurl-&gt;bindValue(':manufacturers_url', $_POST['manufacturers_url'][$language['id']]);
</pre><pre class="diff" id="context">             $Qurl-&gt;execute();
 
             if ($osC_Database-&gt;isError()) {
</pre><pre class="diff"><small id="info">@@ -81,7 +80,7 @@
</small></pre><pre class="diff" id="context">         if ($error === false) {
           $osC_Database-&gt;commitTransaction();
 
</pre><pre class="diff" id="removed">-          osC_Cache::<span id="removedchars">reset</span>('manufacturers');
</pre><pre class="diff" id="added">+          osC_Cache::<span id="addedchars">clear</span>('manufacturers');
</pre><pre class="diff" id="context"> 
           $osC_MessageStack-&gt;add_session('header', SUCCESS_DB_ROWS_UPDATED, 'success');
         } else {
</pre><pre class="diff"><small id="info">@@ -133,7 +132,7 @@
</small></pre><pre class="diff" id="context">             $Qupdate-&gt;execute();
           }
 
</pre><pre class="diff" id="removed">-          osC_Cache::<span id="removedchars">reset</span>('manufacturers');
</pre><pre class="diff" id="added">+          osC_Cache::<span id="addedchars">clear</span>('manufacturers');
</pre><pre class="diff" id="context"> 
           $osC_MessageStack-&gt;add_session('header', SUCCESS_DB_ROWS_UPDATED, 'success');
         }
</pre></div>
<hr /><a name="file4" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a><br /></span>
<div class="fileheader"><big><b>orders_status.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/orders_status.php?rev=1.24&amp;content-type=text/vnd.viewcvs-markup">1.24</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/orders_status.php.diff?r1=1.24&amp;r2=1.25">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/orders_status.php?rev=1.25&amp;content-type=text/vnd.viewcvs-markup">1.25</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.24 -r1.25
--- orders_status.php	2004/10/28 18:59:50	1.24
+++ orders_status.php	2004/11/20 02:16:46	1.25
@@ -23,8 +23,6 @@
</small></pre><pre class="diff" id="context">   if (!empty($action)) {
     switch ($action) {
       case 'save':
</pre><pre class="diff" id="removed">-        $languages = tep_get_languages();
-
</pre><pre class="diff" id="context">         if (isset($_GET['osID']) &amp;&amp; is_numeric($_GET['osID'])) {
           $orders_status_id = $_GET['osID'];
         } else {
</pre><pre class="diff"><small id="info">@@ -39,7 +37,7 @@
</small></pre><pre class="diff" id="context"> 
         $osC_Database-&gt;startTransaction();
 
</pre><pre class="diff" id="removed">-        foreach ($languages as $l_entry) {
</pre><pre class="diff" id="added">+        foreach ($osC_Language-&gt;getAll() as $language) {
</pre><pre class="diff" id="context">           if (isset($_GET['osID']) &amp;&amp; is_numeric($_GET['osID'])) {
             $Qstatus = $osC_Database-&gt;query('update :table_orders_status set orders_status_name = :orders_status_name where orders_status_id = :orders_status_id and language_id = :language_id');
           } else {
</pre><pre class="diff"><small id="info">@@ -47,8 +45,8 @@
</small></pre><pre class="diff" id="context">           }
           $Qstatus-&gt;bindTable(':table_orders_status', TABLE_ORDERS_STATUS);
           $Qstatus-&gt;bindInt(':orders_status_id', $orders_status_id);
</pre><pre class="diff" id="removed">-          $Qstatus-&gt;bindValue(':orders_status_name', $_POST['orders_status_name'][$l_entry['id']]);
-          $Qstatus-&gt;bindInt(':language_id', $l_entry['id']);
</pre><pre class="diff" id="added">+          $Qstatus-&gt;bindValue(':orders_status_name', $_POST['orders_status_name'][$language['id']]);
+          $Qstatus-&gt;bindInt(':language_id', $language['id']);
</pre><pre class="diff" id="context">           $Qstatus-&gt;execute();
 
           if ($osC_Database-&gt;isError()) {
</pre></div>
<hr /><a name="file5" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a><br /></span>
<div class="fileheader"><big><b>products.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/products.php?rev=1.17&amp;content-type=text/vnd.viewcvs-markup">1.17</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/products.php.diff?r1=1.17&amp;r2=1.18">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/products.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
--- products.php	2004/11/07 21:00:30	1.17
+++ products.php	2004/11/20 02:16:46	1.18
@@ -183,8 +183,7 @@
</small></pre><pre class="diff" id="context">           }
 
           if ($error === false) {
</pre><pre class="diff" id="removed">-            $languages = tep_get_languages();
-            foreach ($languages as $l_entry) {
</pre><pre class="diff" id="added">+            foreach ($osC_Language-&gt;getAll() as $language) {
</pre><pre class="diff" id="context">               if (isset($_GET['pID']) &amp;&amp; is_numeric($_GET['pID'])) {
                 $Qpd = $osC_Database-&gt;query('update :table_products_description set products_name = :products_name, products_description = :products_description, products_url = :products_url where products_id = :products_id and language_id = :language_id');
               } else {
</pre><pre class="diff"><small id="info">@@ -192,10 +191,10 @@
</small></pre><pre class="diff" id="context">               }
               $Qpd-&gt;bindTable(':table_products_description', TABLE_PRODUCTS_DESCRIPTION);
               $Qpd-&gt;bindInt(':products_id', $products_id);
</pre><pre class="diff" id="removed">-              $Qpd-&gt;bindInt(':language_id', $l_entry['id']);
-              $Qpd-&gt;bindValue(':products_name', $_POST['products_name'][$l_entry['id']]);
-              $Qpd-&gt;bindValue(':products_description', $_POST['products_description'][$l_entry['id']]);
-              $Qpd-&gt;bindValue(':products_url', $_POST['products_url'][$l_entry['id']]);
</pre><pre class="diff" id="added">+              $Qpd-&gt;bindInt(':language_id', $language['id']);
+              $Qpd-&gt;bindValue(':products_name', $_POST['products_name'][$language['id']]);
+              $Qpd-&gt;bindValue(':products_description', $_POST['products_description'][$language['id']]);
+              $Qpd-&gt;bindValue(':products_url', $_POST['products_url'][$language['id']]);
</pre><pre class="diff" id="context">               $Qpd-&gt;execute();
 
               if ($osC_Database-&gt;isError()) {
</pre></div>
<hr /><a name="file6" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a><br /></span>
<div class="fileheader"><big><b>products_attributes.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/products_attributes.php?rev=1.56&amp;content-type=text/vnd.viewcvs-markup">1.56</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/products_attributes.php.diff?r1=1.56&amp;r2=1.57">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/products_attributes.php?rev=1.57&amp;content-type=text/vnd.viewcvs-markup">1.57</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.56 -r1.57
--- products_attributes.php	2004/10/28 18:59:51	1.56
+++ products_attributes.php	2004/11/20 02:16:46	1.57
@@ -39,8 +39,6 @@
</small></pre><pre class="diff" id="context"> 
   $selected_box = 'catalog';
 
</pre><pre class="diff" id="removed">-  $languages = tep_get_languages();
-
</pre><pre class="diff" id="context">   $action = (isset($_GET['action']) ? $_GET['action'] : '');
 
   if (!isset($_GET['page']) || (isset($_GET['page']) &amp;&amp; !is_numeric($_GET['page']))) {
</pre><pre class="diff"><small id="info">@@ -56,7 +54,6 @@
</small></pre><pre class="diff" id="context">   if (!empty($action)) {
     switch ($action) {
       case 'saveGroup':
</pre><pre class="diff" id="removed">-        $languages = tep_get_languages();
</pre><pre class="diff" id="context">         $error = false;
 
         if (isset($_GET['paID']) &amp;&amp; is_numeric($_GET['paID'])) {
</pre><pre class="diff"><small id="info">@@ -71,7 +68,7 @@
</small></pre><pre class="diff" id="context"> 
         $osC_Database-&gt;startTransaction();
 
</pre><pre class="diff" id="removed">-        foreach ($languages as $l_entry) {
</pre><pre class="diff" id="added">+        foreach ($osC_Language-&gt;getAll() as $language) {
</pre><pre class="diff" id="context">           if (isset($_GET['paID']) &amp;&amp; is_numeric($_GET['paID'])) {
             $Qgroup = $osC_Database-&gt;query('update :table_products_options set products_options_name = :products_options_name where products_options_id = :products_options_id and language_id = :language_id');
           } else {
</pre><pre class="diff"><small id="info">@@ -79,8 +76,8 @@
</small></pre><pre class="diff" id="context">           }
           $Qgroup-&gt;bindTable(':table_products_options', TABLE_PRODUCTS_OPTIONS);
           $Qgroup-&gt;bindInt(':products_options_id', $group_id);
</pre><pre class="diff" id="removed">-          $Qgroup-&gt;bindValue(':products_options_name', $_POST['group_name'][$l_entry['id']]);
-          $Qgroup-&gt;bindInt(':language_id', $l_entry['id']);
</pre><pre class="diff" id="added">+          $Qgroup-&gt;bindValue(':products_options_name', $_POST['group_name'][$language['id']]);
+          $Qgroup-&gt;bindInt(':language_id', $language['id']);
</pre><pre class="diff" id="context">           $Qgroup-&gt;execute();
 
           if ($osC_Database-&gt;isError()) {
</pre><pre class="diff"><small id="info">@@ -167,7 +164,6 @@
</small></pre><pre class="diff" id="context">   if (!empty($entriesAction)) {
     switch ($entriesAction) {
       case 'saveGroupEntry':
</pre><pre class="diff" id="removed">-        $languages = tep_get_languages();
</pre><pre class="diff" id="context">         $error = false;
 
         if (isset($_GET['paeID']) &amp;&amp; is_numeric($_GET['paeID'])) {
</pre><pre class="diff"><small id="info">@@ -182,7 +178,7 @@
</small></pre><pre class="diff" id="context"> 
         $osC_Database-&gt;startTransaction();
 
</pre><pre class="diff" id="removed">-        foreach ($languages as $l_entry) {
</pre><pre class="diff" id="added">+        foreach ($osC_Language-&gt;getAll() as $language) {
</pre><pre class="diff" id="context">           if (isset($_GET['paeID']) &amp;&amp; is_numeric($_GET['paeID'])) {
             $Qentry = $osC_Database-&gt;query('update :table_products_options_values set products_options_values_name = :products_options_values_name where products_options_values_id = :products_options_values_id and language_id = :language_id');
           } else {
</pre><pre class="diff"><small id="info">@@ -190,8 +186,8 @@
</small></pre><pre class="diff" id="context">           }
           $Qentry-&gt;bindTable(':table_products_options_values', TABLE_PRODUCTS_OPTIONS_VALUES);
           $Qentry-&gt;bindInt(':products_options_values_id', $entry_id);
</pre><pre class="diff" id="removed">-          $Qentry-&gt;bindValue(':products_options_values_name', $_POST['entry_name'][$l_entry['id']]);
-          $Qentry-&gt;bindInt(':language_id', $l_entry['id']);
</pre><pre class="diff" id="added">+          $Qentry-&gt;bindValue(':products_options_values_name', $_POST['entry_name'][$language['id']]);
+          $Qentry-&gt;bindInt(':language_id', $language['id']);
</pre><pre class="diff" id="context">           $Qentry-&gt;execute();
 
           if ($osC_Database-&gt;isError()) {
</pre></div>
<hr /><a name="file7" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a><br /></span>
<div class="fileheader"><big><b>weight_classes.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/weight_classes.php?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/weight_classes.php.diff?r1=1.3&amp;r2=1.4">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/weight_classes.php?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.3 -r1.4
--- weight_classes.php	2004/10/28 18:59:52	1.3
+++ weight_classes.php	2004/11/20 02:16:46	1.4
@@ -23,8 +23,6 @@
</small></pre><pre class="diff" id="context">   if (!empty($action)) {
     switch ($action) {
       case 'save':
</pre><pre class="diff" id="removed">-        $languages = tep_get_languages();
-
</pre><pre class="diff" id="context">         if (isset($_GET['wcID']) &amp;&amp; is_numeric($_GET['wcID'])) {
           $weight_class_id = $_GET['wcID'];
         } else {
</pre><pre class="diff"><small id="info">@@ -39,7 +37,7 @@
</small></pre><pre class="diff" id="context"> 
         $osC_Database-&gt;startTransaction();
 
</pre><pre class="diff" id="removed">-        foreach ($languages as $l_entry) {
</pre><pre class="diff" id="added">+        foreach ($osC_Language-&gt;getAll() as $language) {
</pre><pre class="diff" id="context">           if (isset($_GET['wcID']) &amp;&amp; is_numeric($_GET['wcID'])) {
             $Qwc = $osC_Database-&gt;query('update :table_weight_classes set weight_class_key = :weight_class_key, weight_class_title = :weight_class_title where weight_class_id = :weight_class_id and language_id = :language_id');
           } else {
</pre><pre class="diff"><small id="info">@@ -47,9 +45,9 @@
</small></pre><pre class="diff" id="context">           }
           $Qwc-&gt;bindTable(':table_weight_classes', TABLE_WEIGHT_CLASS);
           $Qwc-&gt;bindInt(':weight_class_id', $weight_class_id);
</pre><pre class="diff" id="removed">-          $Qwc-&gt;bindInt(':language_id', $l_entry['id']);
-          $Qwc-&gt;bindValue(':weight_class_key', $_POST['weight_class_key'][$l_entry['id']]);
-          $Qwc-&gt;bindValue(':weight_class_title', $_POST['weight_class_title'][$l_entry['id']]);
</pre><pre class="diff" id="added">+          $Qwc-&gt;bindInt(':language_id', $language['id']);
+          $Qwc-&gt;bindValue(':weight_class_key', $_POST['weight_class_key'][$language['id']]);
+          $Qwc-&gt;bindValue(':weight_class_title', $_POST['weight_class_title'][$language['id']]);
</pre><pre class="diff" id="context">           $Qwc-&gt;execute();
 
           if ($osC_Database-&gt;isError()) {
</pre></div>
<hr /><a name="file8" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes">includes</a><br /></span>
<div class="fileheader"><big><b>application_top.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php?rev=1.180&amp;content-type=text/vnd.viewcvs-markup">1.180</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php.diff?r1=1.180&amp;r2=1.181">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php?rev=1.181&amp;content-type=text/vnd.viewcvs-markup">1.181</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.180 -r1.181
--- application_top.php	2004/11/07 21:00:34	1.180
+++ application_top.php	2004/11/20 02:16:48	1.181
@@ -91,18 +91,18 @@
</small></pre><pre class="diff" id="context">   $osC_Session-&gt;start();
 
 // set the language
</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 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();
-    }
</pre><pre class="diff" id="added">+  if (isset($_GET['language']) &amp;&amp; !empty($_GET['language'])) {
+    $osC_Language-&gt;set_language($_GET['language']);
+  } elseif ($osC_Session-&gt;exists('language') == false) {
+    $osC_Language-&gt;get_browser_language();
+  }
</pre><pre class="diff" id="context"> 
</pre><pre class="diff" id="removed">-    $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 ( ($osC_Session-&gt;exists('language') == false) || ($osC_Session-&gt;value('language') != $osC_Language-&gt;language['directory']) ) {
+    $osC_Session-&gt;set('language', $osC_Language-&gt;language['directory']);
+    $osC_Session-&gt;set('languages_id', $osC_Language-&gt;language['id']);
</pre><pre class="diff" id="context">   }
 
   require('includes/languages/' . $osC_Session-&gt;value('language') . '.php');
</pre></div>
<hr /><a name="file9" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes">includes</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions">functions</a><br /></span>
<div class="fileheader"><big><b>general.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php?rev=1.175&amp;content-type=text/vnd.viewcvs-markup">1.175</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php.diff?r1=1.175&amp;r2=1.176">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php?rev=1.176&amp;content-type=text/vnd.viewcvs-markup">1.176</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.175 -r1.176
--- general.php	2004/11/07 21:00:36	1.175
+++ general.php	2004/11/20 02:16:48	1.176
@@ -280,26 +280,6 @@
</small></pre><pre class="diff" id="context">     return $pieces[0];
   }
 
</pre><pre class="diff" id="removed">-  function tep_get_languages() {
-    global $osC_Database;
-
-    $languages_array = array();
-
-    $Qlanguages = $osC_Database-&gt;query('select languages_id, name, code, image, directory from :table_languages order by sort_order, name');
-    $Qlanguages-&gt;bindTable(':table_languages', TABLE_LANGUAGES);
-    $Qlanguages-&gt;execute();
-
-    while ($Qlanguages-&gt;next()) {
-      $languages_array[] = 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'));
-    }
-
-    return $languages_array;
-  }
-
</pre><pre class="diff" id="context">   function tep_get_weight_class_title($weight_class_id, $language_id = '') {
     global $osC_Database, $osC_Session;
 
</pre></div>
<hr /><a name="file10" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates">templates</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/default">default</a><br /></span>
<div class="fileheader"><big><b>header.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/default/header.php?rev=1.7&amp;content-type=text/vnd.viewcvs-markup">1.7</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/default/header.php.diff?r1=1.7&amp;r2=1.8">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/default/header.php?rev=1.8&amp;content-type=text/vnd.viewcvs-markup">1.8</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.7 -r1.8
--- header.php	2004/11/07 21:00:45	1.7
+++ header.php	2004/11/20 02:16:49	1.8
@@ -10,8 +10,6 @@
</small></pre><pre class="diff" id="context">   Released under the GNU General Public License
 */
 
</pre><pre class="diff" id="removed">-  $languages = tep_get_languages();
-
</pre><pre class="diff" id="context">   if ($osC_MessageStack-&gt;size('header') &gt; 0) {
     echo $osC_MessageStack-&gt;output('header');
   }
</pre><pre class="diff"><small id="info">@@ -96,8 +94,8 @@
</small></pre><pre class="diff" id="context">        '        ],' . "\n" .
        '        [\'' . tep_image('templates/' . $template . '/images/icons/16x16/locale.png', '', '16', '16') . '\', \'' . addslashes(HEADER_TITLE_LANGUAGES) . '\', null, null, null,' . "\n";
 
</pre><pre class="diff" id="removed">-  foreach ($languages as $l_entry) {
-    echo '            [\'' . tep_image('../includes/languages/' . $l_entry['directory'] . '/images/icon.gif') . '\', \'' . addslashes($l_entry['name']) . '\', \'' . tep_href_link(FILENAME_DEFAULT, 'language=' . $l_entry['code']) . '\', null, null],' . "\n";
</pre><pre class="diff" id="added">+  foreach ($osC_Language-&gt;getAll() as $language) {
+    echo '            [\'' . tep_image('../includes/languages/' . $language['directory'] . '/images/icon.gif') . '\', \'' . addslashes($language['name']) . '\', \'' . tep_href_link(FILENAME_DEFAULT, 'language=' . $language['code']) . '\', null, null],' . "\n";
</pre><pre class="diff" id="context">   }
 
   echo '        ],' . "\n" .
</pre></div>
<hr /><a name="file11" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates">templates</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages">pages</a><br /></span>
<div class="fileheader"><big><b>categories.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/categories.php?rev=1.5&amp;content-type=text/vnd.viewcvs-markup">1.5</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/categories.php.diff?r1=1.5&amp;r2=1.6">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/categories.php?rev=1.6&amp;content-type=text/vnd.viewcvs-markup">1.6</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.5 -r1.6
--- categories.php	2004/11/07 21:00:46	1.5
+++ categories.php	2004/11/20 02:16:49	1.6
@@ -123,9 +123,8 @@
</small></pre><pre class="diff" id="context"> &lt;?php
   echo TEXT_CATEGORIES_NAME;
 
</pre><pre class="diff" id="removed">-  $languages = tep_get_languages();
-  foreach ($languages as $l_entry) {
-    echo '&lt;br&gt;' . tep_image('../includes/languages/' . $l_entry['directory'] . '/images/' . $l_entry['image'], $l_entry['name']) . '&amp;nbsp;' . osc_draw_input_field('categories_name[' . $l_entry['id'] . ']');
</pre><pre class="diff" id="added">+  foreach ($osC_Language-&gt;getAll() as $language) {
+    echo '&lt;br&gt;' . tep_image('../includes/languages/' . $language['directory'] . '/images/' . $language['image'], $language['name']) . '&amp;nbsp;' . osc_draw_input_field('categories_name[' . $language['id'] . ']');
</pre><pre class="diff" id="context">   }
 ?&gt;
     &lt;/p&gt;
</pre><pre class="diff"><small id="info">@@ -193,9 +192,8 @@
</small></pre><pre class="diff" id="context">       $categories_name[$Qcd-&gt;valueInt('language_id')] = $Qcd-&gt;value('categories_name');
     }
 
</pre><pre class="diff" id="removed">-    $languages = tep_get_languages();
-    foreach ($languages as $l_entry) {
-      echo '&lt;br&gt;' . tep_image('../includes/languages/' . $l_entry['directory'] . '/images/' . $l_entry['image'], $l_entry['name']) . '&amp;nbsp;' . osc_draw_input_field('categories_name[' . $l_entry['id'] . ']', (isset($categories_name[$l_entry['id']]) ? $categories_name[$l_entry['id']] : ''));
</pre><pre class="diff" id="added">+    foreach ($osC_Language-&gt;getAll() as $language) {
+      echo '&lt;br&gt;' . tep_image('../includes/languages/' . $language['directory'] . '/images/' . $language['image'], $language['name']) . '&amp;nbsp;' . osc_draw_input_field('categories_name[' . $language['id'] . ']', (isset($categories_name[$language['id']]) ? $categories_name[$language['id']] : ''));
</pre><pre class="diff" id="context">     }
 ?&gt;
     &lt;/p&gt;
</pre></div>
<hr /><a name="file12" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates">templates</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages">pages</a><br /></span>
<div class="fileheader"><big><b>manufacturers.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/manufacturers.php?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/manufacturers.php.diff?r1=1.3&amp;r2=1.4">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/manufacturers.php?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.3 -r1.4
--- manufacturers.php	2004/11/07 21:00:46	1.3
+++ manufacturers.php	2004/11/20 02:16:50	1.4
@@ -92,9 +92,8 @@
</small></pre><pre class="diff" id="context"> &lt;?php
   echo TEXT_MANUFACTURERS_URL;
 
</pre><pre class="diff" id="removed">-  $languages = tep_get_languages();
-  foreach ($languages as $l_entry) {
-    echo '&lt;br&gt;' . tep_image('../includes/languages/' . $l_entry['directory'] . '/images/' . $l_entry['image'], $l_entry['name']) . '&amp;nbsp;' . osc_draw_input_field('manufacturers_url[' . $l_entry['id'] . ']');
</pre><pre class="diff" id="added">+  foreach ($osC_Language-&gt;getAll() as $language) {
+    echo '&lt;br&gt;' . tep_image('../includes/languages/' . $language['directory'] . '/images/' . $language['image'], $language['name']) . '&amp;nbsp;' . osc_draw_input_field('manufacturers_url[' . $language['id'] . ']');
</pre><pre class="diff" id="context">   }
 ?&gt;
     &lt;/p&gt;
</pre><pre class="diff"><small id="info">@@ -122,9 +121,8 @@
</small></pre><pre class="diff" id="context"> &lt;?php
     echo TEXT_MANUFACTURERS_URL;
 
</pre><pre class="diff" id="removed">-    $languages = tep_get_languages();
-    foreach ($languages as $l_entry) {
-      echo '&lt;br&gt;' . tep_image('../includes/languages/' . $l_entry['directory'] . '/images/' . $l_entry['image'], $l_entry['name']) . '&amp;nbsp;' . osc_draw_input_field('manufacturers_url[' . $l_entry['id'] . ']', tep_get_manufacturer_url($mInfo-&gt;manufacturers_id, $l_entry['id']));
</pre><pre class="diff" id="added">+    foreach ($osC_Language-&gt;getAll() as $language) {
+      echo '&lt;br&gt;' . tep_image('../includes/languages/' . $language['directory'] . '/images/' . $language['image'], $language['name']) . '&amp;nbsp;' . osc_draw_input_field('manufacturers_url[' . $language['id'] . ']', tep_get_manufacturer_url($mInfo-&gt;manufacturers_id, $language['id']));
</pre><pre class="diff" id="context">     }
 ?&gt;
     &lt;/p&gt;
</pre></div>
<hr /><a name="file13" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates">templates</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages">pages</a><br /></span>
<div class="fileheader"><big><b>orders_status.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/orders_status.php?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/orders_status.php.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/orders_status.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
--- orders_status.php	2004/11/07 21:00:47	1.2
+++ orders_status.php	2004/11/20 02:16:50	1.3
@@ -86,9 +86,8 @@
</small></pre><pre class="diff" id="context">         &lt;td class="smallText" width="40%"&gt;&lt;?php echo '&lt;b&gt;' . TEXT_INFO_ORDERS_STATUS_NAME . '&lt;/b&gt;'; ?&gt;&lt;/td&gt;
         &lt;td class="smallText" width="60%"&gt;
 &lt;?php
</pre><pre class="diff" id="removed">-  $languages = tep_get_languages();
-  foreach ($languages as $l_entry) {
-    echo tep_image('../includes/languages/' . $l_entry['directory'] . '/images/' . $l_entry['image'], $l_entry['name']) . '&amp;nbsp;' . osc_draw_input_field('orders_status_name[' . $l_entry['id'] . ']') . '&lt;br&gt;';
</pre><pre class="diff" id="added">+  foreach ($osC_Language-&gt;getAll() as $language) {
+    echo tep_image('../includes/languages/' . $language['directory'] . '/images/' . $language['image'], $language['name']) . '&amp;nbsp;' . osc_draw_input_field('orders_status_name[' . $language['id'] . ']') . '&lt;br&gt;';
</pre><pre class="diff" id="context">   }
 ?&gt;
         &lt;/td&gt;
</pre><pre class="diff"><small id="info">@@ -131,9 +130,8 @@
</small></pre><pre class="diff" id="context">       $status_name[$Qsd-&gt;valueInt('language_id')] = $Qsd-&gt;value('orders_status_name');
     }
 
</pre><pre class="diff" id="removed">-    $languages = tep_get_languages();
-    foreach ($languages as $l_entry) {
-      echo tep_image('../includes/languages/' . $l_entry['directory'] . '/images/' . $l_entry['image'], $l_entry['name']) . '&amp;nbsp;' . osc_draw_input_field('orders_status_name[' . $l_entry['id'] . ']', (isset($status_name[$l_entry['id']]) ? $status_name[$l_entry['id']] : '')) . '&lt;br&gt;';
</pre><pre class="diff" id="added">+    foreach ($osC_Language-&gt;getAll() as $language) {
+      echo tep_image('../includes/languages/' . $language['directory'] . '/images/' . $language['image'], $language['name']) . '&amp;nbsp;' . osc_draw_input_field('orders_status_name[' . $language['id'] . ']', (isset($status_name[$language['id']]) ? $status_name[$language['id']] : '')) . '&lt;br&gt;';
</pre><pre class="diff" id="context">     }
 ?&gt;
         &lt;/td&gt;
</pre></div>
<hr /><a name="file14" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates">templates</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages">pages</a><br /></span>
<div class="fileheader"><big><b>products_attributes.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_attributes.php?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_attributes.php.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_attributes.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
--- products_attributes.php	2004/11/07 21:00:47	1.2
+++ products_attributes.php	2004/11/20 02:16:50	1.3
@@ -43,8 +43,6 @@
</small></pre><pre class="diff" id="context"> &lt;?php
       }
 */
</pre><pre class="diff" id="removed">-
-  $languages = tep_get_languages();
</pre><pre class="diff" id="context"> ?&gt;
 
 &lt;h1&gt;&lt;?php echo HEADING_TITLE;?&gt;&lt;/h1&gt;
</pre><pre class="diff"><small id="info">@@ -129,8 +127,8 @@
</small></pre><pre class="diff" id="context">         &lt;td class="smallText" width="40%" valign="top"&gt;&lt;?php echo '&lt;b&gt;' . TEXT_INFO_ATTRIBUTE_GROUP_NAME . '&lt;/b&gt;'; ?&gt;&lt;/td&gt;
         &lt;td class="smallText" width="60%"&gt;
 &lt;?php
</pre><pre class="diff" id="removed">-  foreach ($languages as $l_entry) {
-    echo tep_image('../includes/languages/' . $l_entry['directory'] . '/images/icon.gif', $l_entry['name']) . '&amp;nbsp;' .  osc_draw_input_field('group_name[' . $l_entry['id'] . ']') . '&lt;br&gt;';
</pre><pre class="diff" id="added">+  foreach ($osC_Language-&gt;getAll() as $language) {
+    echo tep_image('../includes/languages/' . $language['directory'] . '/images/icon.gif', $language['name']) . '&amp;nbsp;' .  osc_draw_input_field('group_name[' . $language['id'] . ']') . '&lt;br&gt;';
</pre><pre class="diff" id="context">   }
 ?&gt;
         &lt;/td&gt;
</pre><pre class="diff"><small id="info">@@ -161,7 +159,7 @@
</small></pre><pre class="diff" id="context"> &lt;?php
     $Qgd = $osC_Database-&gt;query('select language_id, products_options_name from :table_products_options where products_options_id = :products_options_id');
     $Qgd-&gt;bindTable(':table_products_options', TABLE_PRODUCTS_OPTIONS);
</pre><pre class="diff" id="removed">-    $Qgd-&gt;bindInt(':products_options_id', $_GET['paID']);
</pre><pre class="diff" id="added">+    $Qgd-&gt;bindInt(':products_options_id', $paInfo-&gt;products_options_id);
</pre><pre class="diff" id="context">     $Qgd-&gt;execute();
 
     $group_names = array();
</pre><pre class="diff"><small id="info">@@ -169,8 +167,8 @@
</small></pre><pre class="diff" id="context">       $group_names[$Qgd-&gt;valueInt('language_id')] = $Qgd-&gt;value('products_options_name');
     }
 
</pre><pre class="diff" id="removed">-    foreach ($languages as $l_entry) {
-      echo tep_image('../includes/languages/' . $l_entry['directory'] . '/images/icon.gif', $l_entry['name']) . '&amp;nbsp;' .  osc_draw_input_field('group_name[' . $l_entry['id'] . ']', (isset($group_names[$l_entry['id']]) ? $group_names[$l_entry['id']] : '')) . '&lt;br&gt;';
</pre><pre class="diff" id="added">+    foreach ($osC_Language-&gt;getAll() as $language) {
+      echo tep_image('../includes/languages/' . $language['directory'] . '/images/icon.gif', $language['name']) . '&amp;nbsp;' .  osc_draw_input_field('group_name[' . $language['id'] . ']', (isset($group_names[$language['id']]) ? $group_names[$language['id']] : '')) . '&lt;br&gt;';
</pre><pre class="diff" id="context">     }
 ?&gt;
         &lt;/td&gt;
</pre></div>
<hr /><a name="file15" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates">templates</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages">pages</a><br /></span>
<div class="fileheader"><big><b>products_attributes_listing.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_attributes_listing.php?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_attributes_listing.php.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_attributes_listing.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
--- products_attributes_listing.php	2004/11/07 21:00:47	1.2
+++ products_attributes_listing.php	2004/11/20 02:16:50	1.3
@@ -88,8 +88,8 @@
</small></pre><pre class="diff" id="context">         &lt;td class="smallText" width="40%" valign="top"&gt;&lt;?php echo '&lt;b&gt;' . TEXT_INFO_ATTRIBUTE_ENTRY_NAME . '&lt;/b&gt;'; ?&gt;&lt;/td&gt;
         &lt;td class="smallText" width="60%"&gt;
 &lt;?php
</pre><pre class="diff" id="removed">-  foreach ($languages as $l_entry) {
-    echo tep_image('../includes/languages/' . $l_entry['directory'] . '/images/icon.gif', $l_entry['name']) . '&amp;nbsp;' .  osc_draw_input_field('entry_name[' . $l_entry['id'] . ']') . '&lt;br&gt;';
</pre><pre class="diff" id="added">+  foreach ($osC_Language-&gt;getAll() as $language) {
+    echo tep_image('../includes/languages/' . $language['directory'] . '/images/icon.gif', $language['name']) . '&amp;nbsp;' .  osc_draw_input_field('entry_name[' . $language['id'] . ']') . '&lt;br&gt;';
</pre><pre class="diff" id="context">   }
 ?&gt;
         &lt;/td&gt;
</pre><pre class="diff"><small id="info">@@ -128,8 +128,8 @@
</small></pre><pre class="diff" id="context">       $entry_names[$Qed-&gt;valueInt('language_id')] = $Qed-&gt;value('products_options_values_name');
     }
 
</pre><pre class="diff" id="removed">-    foreach ($languages as $l_entry) {
-      echo tep_image('../includes/languages/' . $l_entry['directory'] . '/images/icon.gif', $l_entry['name']) . '&amp;nbsp;' .  osc_draw_input_field('entry_name[' . $l_entry['id'] . ']', (isset($entry_names[$l_entry['id']]) ? $entry_names[$l_entry['id']] : '')) . '&lt;br&gt;';
</pre><pre class="diff" id="added">+    foreach ($osC_Language-&gt;getAll() as $language) {
+      echo tep_image('../includes/languages/' . $language['directory'] . '/images/icon.gif', $language['name']) . '&amp;nbsp;' .  osc_draw_input_field('entry_name[' . $language['id'] . ']', (isset($entry_names[$language['id']]) ? $entry_names[$language['id']] : '')) . '&lt;br&gt;';
</pre><pre class="diff" id="context">     }
 ?&gt;
         &lt;/td&gt;
</pre></div>
<hr /><a name="file16" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates">templates</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages">pages</a><br /></span>
<div class="fileheader"><big><b>products_edit.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_edit.php?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_edit.php.diff?r1=1.4&amp;r2=1.5">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_edit.php?rev=1.5&amp;content-type=text/vnd.viewcvs-markup">1.5</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.4 -r1.5
--- products_edit.php	2004/11/07 21:00:48	1.4
+++ products_edit.php	2004/11/20 02:16:50	1.5
@@ -64,8 +64,6 @@
</small></pre><pre class="diff" id="context">                                   'text' =&gt; $Qwc-&gt;value('weight_class_title'));
   }
 
</pre><pre class="diff" id="removed">-  $languages = tep_get_languages();
-
</pre><pre class="diff" id="context">   require('includes/classes/directory_listing.php');
   $osC_Dir_Images = new osC_DirectoryListing('../images');
   $osC_Dir_Images-&gt;setExcludeEntries('CVS');
</pre><pre class="diff"><small id="info">@@ -256,36 +254,36 @@
</small></pre><pre class="diff" id="context">       //--&gt;&lt;/script&gt;
 
 &lt;?php
</pre><pre class="diff" id="removed">-  foreach ($languages as $l_entry) {
</pre><pre class="diff" id="added">+  foreach ($osC_Language-&gt;getAll() as $language) {
</pre><pre class="diff" id="context"> ?&gt;
 
</pre><pre class="diff" id="removed">-      &lt;div class="tab-page" id="tabDescriptionLanguages_&lt;?php echo $l_entry['code']; ?&gt;"&gt;
-        &lt;h2 class="tab"&gt;&lt;?php echo tep_image('../includes/languages/' . $l_entry['directory'] . '/images/' . $l_entry['image'], $l_entry['name']) . '&amp;nbsp;' . $l_entry['name']; ?&gt;&lt;/h2&gt;
</pre><pre class="diff" id="added">+      &lt;div class="tab-page" id="tabDescriptionLanguages_&lt;?php echo $language['code']; ?&gt;"&gt;
+        &lt;h2 class="tab"&gt;&lt;?php echo tep_image('../includes/languages/' . $language['directory'] . '/images/' . $language['image'], $language['name']) . '&amp;nbsp;' . $language['name']; ?&gt;&lt;/h2&gt;
</pre><pre class="diff" id="context"> 
         &lt;script type="text/javascript"&gt;&lt;!--
</pre><pre class="diff" id="removed">-          descriptionTabPane.addTabPage( document.getElementById( "tabDescriptionLanguages_&lt;?php echo $l<span id="removedchars">_entry</span>['code']; ?&gt;" ) );
</pre><pre class="diff" id="added">+          descriptionTabPane.addTabPage( document.getElementById( "tabDescriptionLanguages_&lt;?php echo $l<span id="addedchars">anguage</span>['code']; ?&gt;" ) );
</pre><pre class="diff" id="context">         //--&gt;&lt;/script&gt;
 
         &lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
           &lt;tr&gt;
             &lt;td class="smallText"&gt;&lt;?php echo TEXT_PRODUCTS_NAME; ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="removed">-            &lt;td class="smallText"&gt;&lt;?php echo osc_draw_input_field('products_name[' . $l_entry['id'] . ']', (isset($pInfo) &amp;&amp; is_array($pInfo-&gt;products_name) &amp;&amp; isset($pInfo-&gt;products_name[$l_entry['id']]) ? $pInfo-&gt;products_name[$l_entry['id']] : '')); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="added">+            &lt;td class="smallText"&gt;&lt;?php echo osc_draw_input_field('products_name[' . $language['id'] . ']', (isset($pInfo) &amp;&amp; is_array($pInfo-&gt;products_name) &amp;&amp; isset($pInfo-&gt;products_name[$language['id']]) ? $pInfo-&gt;products_name[$language['id']] : '')); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="context">           &lt;/tr&gt;
           &lt;tr&gt;
             &lt;td class="smallText" valign="top"&gt;&lt;?php echo TEXT_PRODUCTS_DESCRIPTION; ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="removed">-            &lt;td class="smallText"&gt;&lt;?php echo tep_draw_textarea_field('products_description[' . $l_entry['id'] . ']', 'soft', '70', '15', (isset($pInfo) &amp;&amp; is_array($pInfo-&gt;products_description) &amp;&amp; isset($pInfo-&gt;products_description[$l_entry['id']]) ? $pInfo-&gt;products_description[$l_entry['id']] : ''), 'id="fckpd_' . $l_entry['code'] . '" style="width: 100%;"'); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="added">+            &lt;td class="smallText"&gt;&lt;?php echo tep_draw_textarea_field('products_description[' . $language['id'] . ']', 'soft', '70', '15', (isset($pInfo) &amp;&amp; is_array($pInfo-&gt;products_description) &amp;&amp; isset($pInfo-&gt;products_description[$language['id']]) ? $pInfo-&gt;products_description[$language['id']] : ''), 'id="fckpd_' . $language['code'] . '" style="width: 100%;"'); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="context">           &lt;/tr&gt;
           &lt;tr&gt;
             &lt;td class="smallText"&gt;&lt;?php echo TEXT_PRODUCTS_URL; ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="removed">-            &lt;td class="smallText"&gt;&lt;?php echo osc_draw_input_field('products_url[' . $l_entry['id'] . ']', (isset($pInfo) &amp;&amp; is_array($pInfo-&gt;products_url) &amp;&amp; isset($pInfo-&gt;products_url[$l_entry['id']]) ? $pInfo-&gt;products_url[$l_entry['id']] : '')); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="added">+            &lt;td class="smallText"&gt;&lt;?php echo osc_draw_input_field('products_url[' . $language['id'] . ']', (isset($pInfo) &amp;&amp; is_array($pInfo-&gt;products_url) &amp;&amp; isset($pInfo-&gt;products_url[$language['id']]) ? $pInfo-&gt;products_url[$language['id']] : '')); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="context">           &lt;/tr&gt;
         &lt;/table&gt;
 
         &lt;script type="text/javascript"&gt;&lt;!--
</pre><pre class="diff" id="removed">-          var fckpd_&lt;?php echo $l_entry['code']; ?&gt; = new FCKeditor('fckpd_&lt;?php echo $l_entry['code']; ?&gt;');
-          fckpd_&lt;?php echo $l_entry['code']; ?&gt;.BasePath = "&lt;?php echo DIR_WS_CATALOG . 'admin/external/FCKeditor/2.0b1/'; ?&gt;";
-          fckpd_&lt;?php echo $l_entry['code']; ?&gt;.Height = "400";
-          fckpd_&lt;?php echo $l_entry['code']; ?&gt;.ReplaceTextarea();
</pre><pre class="diff" id="added">+          var fckpd_&lt;?php echo $language['code']; ?&gt; = new FCKeditor('fckpd_&lt;?php echo $language['code']; ?&gt;');
+          fckpd_&lt;?php echo $language['code']; ?&gt;.BasePath = "&lt;?php echo DIR_WS_CATALOG . 'admin/external/FCKeditor/2.0b1/'; ?&gt;";
+          fckpd_&lt;?php echo $language['code']; ?&gt;.Height = "400";
+          fckpd_&lt;?php echo $language['code']; ?&gt;.ReplaceTextarea();
</pre><pre class="diff" id="context">         //--&gt;&lt;/script&gt;
       &lt;/div&gt;
 
</pre></div>
<hr /><a name="file17" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates">templates</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages">pages</a><br /></span>
<div class="fileheader"><big><b>products_preview.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_preview.php?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_preview.php.diff?r1=1.4&amp;r2=1.5">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/products_preview.php?rev=1.5&amp;content-type=text/vnd.viewcvs-markup">1.5</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.4 -r1.5
--- products_preview.php	2004/11/07 21:00:48	1.4
+++ products_preview.php	2004/11/20 02:16:50	1.5
@@ -48,8 +48,6 @@
</small></pre><pre class="diff" id="context">     }
   }
 
</pre><pre class="diff" id="removed">-  $languages = tep_get_languages();
-
</pre><pre class="diff" id="context">   echo tep_draw_form('save_product', FILENAME_PRODUCTS, 'cPath=' . $cPath . '&amp;search=' . $_GET['search'] . (isset($_GET['pID']) ? '&amp;pID=' . $_GET['pID'] : '') . '&amp;action=save_product', 'post', 'enctype="multipart/form-data"');
 ?&gt;
 
</pre><pre class="diff"><small id="info">@@ -57,8 +55,8 @@
</small></pre><pre class="diff" id="context">   &lt;tr bgcolor="#fff3e7"&gt;
     &lt;td&gt;
 &lt;?php
</pre><pre class="diff" id="removed">-  foreach ($languages as $l_entry) {
-    echo '&lt;span id="lang_' . $l_entry['code'] . '"' . (($l_entry['directory'] == $osC_Session-&gt;value('language')) ? ' class="highlight"' : '') . '&gt;&lt;a href="javascript:toggleDivBlocks(\'pName_\', \'pName_' . $l_entry['code'] . '\'); toggleClass(\'lang_\', \'lang_' . $l_entry['code'] . '\', \'highlight\', \'span\');"&gt;' . tep_image('../includes/languages/' . $l_entry['directory'] . '/images/' . $l_entry['image'], $l_entry['name']) . '&lt;/a&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;';
</pre><pre class="diff" id="added">+  foreach ($osC_Language-&gt;getAll() as $language) {
+    echo '&lt;span id="lang_' . $language['code'] . '"' . (($language['directory'] == $osC_Session-&gt;value('language')) ? ' class="highlight"' : '') . '&gt;&lt;a href="javascript:toggleDivBlocks(\'pName_\', \'pName_' . $language['code'] . '\'); toggleClass(\'lang_\', \'lang_' . $language['code'] . '\', \'highlight\', \'span\');"&gt;' . tep_image('../includes/languages/' . $language['directory'] . '/images/' . $language['image'], $language['name']) . '&lt;/a&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;';
</pre><pre class="diff" id="context">   }
 ?&gt;
     &lt;/td&gt;
</pre><pre class="diff"><small id="info">@@ -66,22 +64,22 @@
</small></pre><pre class="diff" id="context"> &lt;/table&gt;
 
 &lt;?php
</pre><pre class="diff" id="removed">-  foreach ($languages as $l_entry) {
</pre><pre class="diff" id="added">+  foreach ($osC_Language-&gt;getAll() as $language) {
</pre><pre class="diff" id="context"> ?&gt;
 
</pre><pre class="diff" id="removed">-&lt;div id="pName_&lt;?php echo $l<span id="removedchars">_entry['code'];&nbsp;?&gt;"&nbsp;&lt;?php&nbsp;echo&nbsp;(($l_entry</span>['directory'] != $osC_Session-&gt;value('language')) ? ' style="display: none;"' : ''); ?&gt;&gt;
</pre><pre class="diff" id="added">+&lt;div id="pName_&lt;?php echo $l<span id="addedchars">anguage['code'];&nbsp;?&gt;"&nbsp;&lt;?php&nbsp;echo&nbsp;(($language</span>['directory'] != $osC_Session-&gt;value('language')) ? ' style="display: none;"' : ''); ?&gt;&gt;
</pre><pre class="diff" id="context">   &lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
     &lt;tr&gt;
</pre><pre class="diff" id="removed">-      &lt;td&gt;&lt;h1&gt;&lt;?php echo $pInfo-&gt;products_name[$l<span id="removedchars">_entry</span>['id']]; ?&gt;&lt;/h1&gt;&lt;/td&gt;
</pre><pre class="diff" id="added">+      &lt;td&gt;&lt;h1&gt;&lt;?php echo $pInfo-&gt;products_name[$l<span id="addedchars">anguage</span>['id']]; ?&gt;&lt;/h1&gt;&lt;/td&gt;
</pre><pre class="diff" id="context">       &lt;td align="right"&gt;&lt;h1&gt;&lt;?php echo $osC_Currencies-&gt;format($pInfo-&gt;products_price); ?&gt;&lt;/h1&gt;&lt;/td&gt;
     &lt;/tr&gt;
   &lt;/table&gt;
 
</pre><pre class="diff" id="removed">-  &lt;p class="main"&gt;&lt;?php echo tep_image('../images/' . $products_image_name, $pInfo-&gt;products_name[$l_entry['id']], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . $pInfo-&gt;products_description[$l_entry['id']]; ?&gt;&lt;/p&gt;
</pre><pre class="diff" id="added">+  &lt;p class="main"&gt;&lt;?php echo tep_image('../images/' . $products_image_name, $pInfo-&gt;products_name[$language['id']], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . $pInfo-&gt;products_description[$language['id']]; ?&gt;&lt;/p&gt;
</pre><pre class="diff" id="context"> 
 &lt;?php
</pre><pre class="diff" id="removed">-    if (!empty($pInfo-&gt;products_url[$l_entry['id']])) {
-      echo '&lt;p class="main"&gt;' . sprintf(TEXT_PRODUCT_MORE_INFORMATION, $pInfo-&gt;products_url[$l_entry['id']]) . '&lt;/p&gt;';
</pre><pre class="diff" id="added">+    if (!empty($pInfo-&gt;products_url[$language['id']])) {
+      echo '&lt;p class="main"&gt;' . sprintf(TEXT_PRODUCT_MORE_INFORMATION, $pInfo-&gt;products_url[$language['id']]) . '&lt;/p&gt;';
</pre><pre class="diff" id="context">     }
 ?&gt;
 
</pre></div>
<hr /><a name="file18" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates">templates</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages">pages</a><br /></span>
<div class="fileheader"><big><b>weight_classes.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/weight_classes.php?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/weight_classes.php.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/weight_classes.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
--- weight_classes.php	2004/11/07 21:00:48	1.2
+++ weight_classes.php	2004/11/20 02:16:50	1.3
@@ -88,9 +88,8 @@
</small></pre><pre class="diff" id="context">         &lt;td class="smallText" width="40%"&gt;&lt;?php echo '&lt;b&gt;' . TEXT_INFO_WEIGHT_CLASS_TITLE . '&lt;/b&gt;'; ?&gt;&lt;/td&gt;
         &lt;td class="smallText" width="60%"&gt;
 &lt;?php
</pre><pre class="diff" id="removed">-  $languages = tep_get_languages();
-  foreach ($languages as $l_entry) {
-    echo tep_image('../includes/languages/' . $l_entry['directory'] . '/images/' . $l_entry['image'], $l_entry['name']) . '&amp;nbsp;' . osc_draw_input_field('weight_class_title[' . $l_entry['id'] . ']') . osc_draw_input_field('weight_class_key[' . $l_entry['id'] . ']', '', 'size="4"') . '&lt;br&gt;';
</pre><pre class="diff" id="added">+  foreach ($osC_Language-&gt;getAll() as $language) {
+    echo tep_image('../includes/languages/' . $language['directory'] . '/images/' . $language['image'], $language['name']) . '&amp;nbsp;' . osc_draw_input_field('weight_class_title[' . $language['id'] . ']') . osc_draw_input_field('weight_class_key[' . $language['id'] . ']', '', 'size="4"') . '&lt;br&gt;';
</pre><pre class="diff" id="context">   }
 ?&gt;
         &lt;/td&gt;
</pre><pre class="diff"><small id="info">@@ -154,9 +153,8 @@
</small></pre><pre class="diff" id="context">                                                          'title' =&gt; $Qwc-&gt;value('weight_class_title'));
     }
 
</pre><pre class="diff" id="removed">-    $languages = tep_get_languages();
-    foreach ($languages as $l_entry) {
-      echo tep_image('../includes/languages/' . $l_entry['directory'] . '/images/' . $l_entry['image'], $l_entry['name']) . '&amp;nbsp;' . osc_draw_input_field('weight_class_title[' . $l_entry['id'] . ']', $class_name[$l_entry['id']]['title']) . osc_draw_input_field('weight_class_key[' . $l_entry['id'] . ']', $class_name[$l_entry['id']]['key'], 'size="4"') . '&lt;br&gt;';
</pre><pre class="diff" id="added">+    foreach ($osC_Language-&gt;getAll() as $language) {
+      echo tep_image('../includes/languages/' . $language['directory'] . '/images/' . $language['image'], $language['name']) . '&amp;nbsp;' . osc_draw_input_field('weight_class_title[' . $language['id'] . ']', $class_name[$language['id']]['title']) . osc_draw_input_field('weight_class_key[' . $language['id'] . ']', $class_name[$language['id']]['key'], 'size="4"') . '&lt;br&gt;';
</pre><pre class="diff" id="context">     }
 ?&gt;
         &lt;/td&gt;
</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>


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8