|
@@ 1979-1985 (lines=7) @@
|
| 1976 |
|
$oModuleAdminModel = getAdminModel('module'); |
| 1977 |
|
|
| 1978 |
|
$langs = $oModuleAdminModel->getLangCode($site_srl, $title); |
| 1979 |
|
if(count($langs)) |
| 1980 |
|
{ |
| 1981 |
|
foreach($langs as $key => $val) |
| 1982 |
|
{ |
| 1983 |
|
$xml_header_buff .= sprintf('$_titles[%d]["%s"] = %s; ', $category_srl, $key, var_export(str_replace('"','\\"',htmlspecialchars($val, ENT_COMPAT | ENT_HTML401, 'UTF-8', false)), true)); |
| 1984 |
|
} |
| 1985 |
|
} |
| 1986 |
|
|
| 1987 |
|
$langx = $oModuleAdminModel->getLangCode($site_srl, $description); |
| 1988 |
|
if(count($langx)) |
|
@@ 1988-1994 (lines=7) @@
|
| 1985 |
|
} |
| 1986 |
|
|
| 1987 |
|
$langx = $oModuleAdminModel->getLangCode($site_srl, $description); |
| 1988 |
|
if(count($langx)) |
| 1989 |
|
{ |
| 1990 |
|
foreach($langx as $key => $val) |
| 1991 |
|
{ |
| 1992 |
|
$xml_header_buff .= sprintf('$_descriptions[%d]["%s"] = %s; ', $category_srl, $key, var_export(str_replace('"','\\"',htmlspecialchars($val, ENT_COMPAT | ENT_HTML401, 'UTF-8', false)), true)); |
| 1993 |
|
} |
| 1994 |
|
} |
| 1995 |
|
|
| 1996 |
|
$attribute = sprintf( |
| 1997 |
|
'mid="%s" module_srl="%d" node_srl="%d" parent_srl="%d" category_srl="%d" text="<?php echo (%s?($_titles[%d][$lang_type]):"")?>" url=%s expand=%s color=%s description="<?php echo (%s?($_descriptions[%d][$lang_type]):"")?>" document_count="%d" ', |
|
@@ 2066-2078 (lines=13) @@
|
| 2063 |
|
$oModuleAdminModel = getAdminModel('module'); |
| 2064 |
|
$langs = $oModuleAdminModel->getLangCode($site_srl, $title); |
| 2065 |
|
|
| 2066 |
|
if(count($langs)) |
| 2067 |
|
{ |
| 2068 |
|
foreach($langs as $key => $val) |
| 2069 |
|
{ |
| 2070 |
|
$val = htmlspecialchars($val, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); |
| 2071 |
|
$php_header_buff .= sprintf( |
| 2072 |
|
'$_titles[%d]["%s"] = %s; ', |
| 2073 |
|
$category_srl, |
| 2074 |
|
$key, |
| 2075 |
|
var_export(str_replace('"','\\"', $val), true) |
| 2076 |
|
); |
| 2077 |
|
} |
| 2078 |
|
} |
| 2079 |
|
|
| 2080 |
|
$langx = $oModuleAdminModel->getLangCode($site_srl, $description); |
| 2081 |
|
|
|
@@ 2082-2094 (lines=13) @@
|
| 2079 |
|
|
| 2080 |
|
$langx = $oModuleAdminModel->getLangCode($site_srl, $description); |
| 2081 |
|
|
| 2082 |
|
if(count($langx)) |
| 2083 |
|
{ |
| 2084 |
|
foreach($langx as $key => $val) |
| 2085 |
|
{ |
| 2086 |
|
$val = htmlspecialchars($val, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); |
| 2087 |
|
$php_header_buff .= sprintf( |
| 2088 |
|
'$_descriptions[%d]["%s"] = %s; ', |
| 2089 |
|
$category_srl, |
| 2090 |
|
$key, |
| 2091 |
|
var_export(str_replace('"','\\"', $val), true) |
| 2092 |
|
); |
| 2093 |
|
} |
| 2094 |
|
} |
| 2095 |
|
|
| 2096 |
|
// Create attributes(Use the category_srl_list to check whether to belong to the menu's node. It seems to be tricky but fast fast and powerful;) |
| 2097 |
|
$attribute = sprintf( |