[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/admin/includes/functions/ -> languages.php (source)

   1  <?php
   2  /*

   3  $Id: languages.php 3 2006-05-27 04:59:07Z user $

   4  

   5    osCMax Power E-Commerce

   6    http://oscdox.com

   7  

   8    Copyright 2006 osCMax2005 osCMax, 2002 osCommerce

   9  

  10    Released under the GNU General Public License

  11  */
  12  
  13    function tep_get_languages_directory($code) {
  14      global $languages_id;
  15  
  16      $language_query = tep_db_query("select languages_id, directory from " . TABLE_LANGUAGES . " where code = '" . tep_db_input($code) . "'");
  17      if (tep_db_num_rows($language_query)) {
  18        $language = tep_db_fetch_array($language_query);
  19        $languages_id = $language['languages_id'];
  20        return $language['directory'];
  21      } else {
  22        return false;
  23      }
  24    }
  25  ?>


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7