@@ 1991-1997 (lines=7) @@ | ||
1988 | $oModuleAdminModel = getAdminModel('module'); |
|
1989 | ||
1990 | $langs = $oModuleAdminModel->getLangCode($site_srl, $title); |
|
1991 | if(count($langs)) |
|
1992 | { |
|
1993 | foreach($langs as $key => $val) |
|
1994 | { |
|
1995 | $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)); |
|
1996 | } |
|
1997 | } |
|
1998 | ||
1999 | $langx = $oModuleAdminModel->getLangCode($site_srl, $description); |
|
2000 | if(count($langx)) |
|
@@ 2000-2006 (lines=7) @@ | ||
1997 | } |
|
1998 | ||
1999 | $langx = $oModuleAdminModel->getLangCode($site_srl, $description); |
|
2000 | if(count($langx)) |
|
2001 | { |
|
2002 | foreach($langx as $key => $val) |
|
2003 | { |
|
2004 | $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)); |
|
2005 | } |
|
2006 | } |
|
2007 | ||
2008 | $attribute = sprintf( |
|
2009 | '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" ', |
|
@@ 2078-2090 (lines=13) @@ | ||
2075 | $oModuleAdminModel = getAdminModel('module'); |
|
2076 | $langs = $oModuleAdminModel->getLangCode($site_srl, $title); |
|
2077 | ||
2078 | if(count($langs)) |
|
2079 | { |
|
2080 | foreach($langs as $key => $val) |
|
2081 | { |
|
2082 | $val = htmlspecialchars($val, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); |
|
2083 | $php_header_buff .= sprintf( |
|
2084 | '$_titles[%d]["%s"] = %s; ', |
|
2085 | $category_srl, |
|
2086 | $key, |
|
2087 | var_export(str_replace('"','\\"', $val), true) |
|
2088 | ); |
|
2089 | } |
|
2090 | } |
|
2091 | ||
2092 | $langx = $oModuleAdminModel->getLangCode($site_srl, $description); |
|
2093 | ||
@@ 2094-2106 (lines=13) @@ | ||
2091 | ||
2092 | $langx = $oModuleAdminModel->getLangCode($site_srl, $description); |
|
2093 | ||
2094 | if(count($langx)) |
|
2095 | { |
|
2096 | foreach($langx as $key => $val) |
|
2097 | { |
|
2098 | $val = htmlspecialchars($val, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); |
|
2099 | $php_header_buff .= sprintf( |
|
2100 | '$_descriptions[%d]["%s"] = %s; ', |
|
2101 | $category_srl, |
|
2102 | $key, |
|
2103 | var_export(str_replace('"','\\"', $val), true) |
|
2104 | ); |
|
2105 | } |
|
2106 | } |
|
2107 | ||
2108 | // 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;) |
|
2109 | $attribute = sprintf( |