2 //INCLUDES, DO ANY ACTIONS, THEN GET OUR DATA
3 include_once("../globals.php");
4 include_once("$srcdir/registry.inc");
5 include_once("$srcdir/sql.inc");
6 include_once("../../library/acl.inc");
7 require_once("language.inc.php");
8 require_once("$srcdir/formdata.inc.php");
10 // Check to see if the lang_custom table exists
11 $test_table = SqlStatement("show tables like 'lang_custom'");
12 if (SqlFetchArray($test_table)) {
13 $enable_custom_language_logging=true;
16 $enable_custom_language_logging=false;
18 /* Note that the table mysql lang_custom is required for this function,
19 which can be accomplished with following script in mysql:
20 CREATE TABLE lang_custom (
21 lang_description varchar(100) NOT NULL default '',
22 lang_code char(2) NOT NULL default '',
23 constant_name varchar(255) NOT NULL default '',
24 definition mediumtext NOT NULL default ''
28 //START OUT OUR PAGE....
32 <?php
html_header_show();?
>
33 <link rel
="stylesheet" href
="<?php echo $css_header;?>" type
="text/css">
34 <script type
="text/javascript" src
="../../library/overlib_mini.js"></script
>
35 <script type
="text/javascript" src
="../../library/calendar.js"></script
>
38 <body
class="body_top">
39 <form name
='translation' id
='translation' method
='get' action
='language.php' onsubmit
="return top.restoreSession()">
40 <input type
='hidden' name
='m' value
='<?php echo strip_escape_custom($_GET['m
']); ?>' />
41 <input type
='hidden' name
='edit' value
='<?php echo strip_escape_custom($_GET['edit
']); ?>' />
42 <span
class="title"><?php
xl('Multi Language Tool','e') ?
></span
>
45 <td
class="small" colspan
='4'>
46 <a href
="?m=definition" onclick
="top.restoreSession()"><?php
xl('Edit definitions','e'); ?
></a
> |
47 <a href
="?m=language" onclick
="top.restoreSession()"><?php
xl('Add Language','e'); ?
></a
> |
48 <a href
="?m=constant" onclick
="top.restoreSession()"><?php
xl('Add Constant','e'); ?
></a
> |
49 <?php
if ($enable_custom_language_logging) { ?
>
50 <a href
="?m=manage" onclick
="top.restoreSession()"><?php
xl('Manage Translations','e'); ?
></a
>
60 include_once('lang_definition.php');
63 include_once('lang_constant.php');
66 include_once('lang_language.php');
69 include_once('lang_manage.php');
74 <BR
><A HREF
="lang.info.html" TARGET
="_blank"><?php
xl('Info','e'); ?
></A
>