Merge branch 'master' of http://git.dirt.kz/igor/Metadata_PHP
This commit is contained in:
@ -54,4 +54,4 @@ if (isset($_REQUEST['id'])) $id = $_REQUEST['id']; else $id = '';
|
||||
|
||||
header ("Content-type: image/gif");
|
||||
imagegif($src);
|
||||
?>
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@ $_CONFIG = array(
|
||||
|
||||
'disabled' => false,
|
||||
'uploadURL' => "upload",
|
||||
'uploadDir' => "O:/www/www.bigfoottrade.kz_old/shop/",
|
||||
'uploadDir' => "O:/www/www.rigor.kz_old/shop/",
|
||||
'theme' => "default",
|
||||
|
||||
'types' => array(
|
||||
|
||||
@ -13,10 +13,10 @@ function getScript($path)
|
||||
//Функция для перевода текста без применения GetText "trt("
|
||||
function trt($text)
|
||||
{
|
||||
global $db;
|
||||
global $db,$Schema;
|
||||
|
||||
$result='';
|
||||
$sql='select translation from main._translations where del=false and language_id='.$_SESSION["LNG"].' and identifier=\''.$text.'\';';
|
||||
$sql='select translation from '.$Schema.'_translations where del=false and language_id='.$_SESSION["LNG"].' and identifier=\''.$text.'\';';
|
||||
//$sql='select translation from main._translations where del=false and language_id=(select id from main._languages where short_name=\''.$_SESSION["LNG"].'\') and identifier=\''.$text.'\';';
|
||||
$res = NULL;
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user