MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
+// Prevent register_globals vulnerability
+if (isset($_GET['path_to_root']) || isset($_POST['path_to_root']))
+ die("Restricted access");
include_once($path_to_root . "/lang/installed_languages.inc");
include_once($path_to_root . "/includes/lang/gettext.php");
}
}
-/*
- Test if named function is defined in locale.inc file.
-*/
-function has_locale($fun=null)
-{
- global $path_to_root;
-
- if ($_SESSION['language']->is_locale_file)
- {
- global $path_to_root;
- include_once($path_to_root . "/lang/" .
- $_SESSION['language']->code . "/locale.inc");
-
- if (!isset($fun) || function_exists($fun))
- return true;
- }
- return false;
-}
function _set($key,$value)
{