Is that any security risk to install the Russian Language Pack for osc2.3.1?
It is found that the PHP close tags in most files of this add-on are missed.
[img]http://forums.oscommerce.com/public/style_emoticons/default/crying.gif[/img]
- osCommerce Support Forum
- → Viewing Profile: yansfung
Latest News: (loading..)
Community Stats
- Group Community Member
- Active Posts 58 (0.02 per day)
- Most Active In General Add-Ons Support (33 posts)
- Profile Views 6,653
- Age Age Unknown
- Birthday Birthday Unknown
-
Real Name
Yan, SY FUNG
-
Gender
Male
-
Location
Hong Kong
-
Interests
Internet Browsing
Topics I've Started
Any Security Risk for PHP Close Tag
19 July 2011, 04:08
CONF Array in Conf.php Double Byte Charater Problem Error
27 March 2011, 11:08
It seems that PHP does not properly allow $CONF array to accept multi lingual characters, such as Chinese characters in the Conf.php file.
Data string at line 47 have to modify or cannot load properly in "jedit".
I have modify apart of the Conf.php code as shown in the following:
.
.
echo "<br />Description=说明,Technical Details=技术细节,Availability=可用性";
//Language Settings
$CONF['defaultLanguage'] = 'en'; //will be taken if no specific language is set or a tab name is not defined in a specific language
$CONF['tabs']['en'][1] = 'Description';
$CONF['tabs']['en'][2] = 'Technical Details';
$CONF['tabs']['en'][3] = 'Availability';
$CONF['tabs']['cn'][1] = '说明';
$CONF['tabs']['cn'][2] = '技术细节';
$CONF['tabs']['cn'][3] = '可用性';
.
.
Then put some codes in the file TabMenuSection.php as shown in the following lines:
171 for($x = 1; $x <= $noOfTabsCalculated; $x++)
172 {
173 echo "<br />The TabName is ".$tabName;
174 $tabName = $this->getTabName($x);
175 echo " Then is ". $tabName;
176 $normalDivTab = '<div id="pronuxTab'.$x.'" class="pronuxTabNo rmal" style="background-color: #'.$this->CONF['tabColor'].'; height: '.$t his->CONF['tabHeight'].'px; width: '.$this->getTabWidth($x).'px;">';
177
The screen prompt for the first "echo" displayed fine. However, Conf.php could not pass the Chinese strings properly to functions of TabMenSection.php.
Can somebody help to drop some helpful pointers which someone else has already addressed/fixed this problem?
Thanks a lot indeed in advance!!
My environment is FC14+LAMP+UTF-8-oSC2.3.1+Eng+Simplified_Chinese.
Data string at line 47 have to modify or cannot load properly in "jedit".
I have modify apart of the Conf.php code as shown in the following:
.
.
echo "<br />Description=说明,Technical Details=技术细节,Availability=可用性";
//Language Settings
$CONF['defaultLanguage'] = 'en'; //will be taken if no specific language is set or a tab name is not defined in a specific language
$CONF['tabs']['en'][1] = 'Description';
$CONF['tabs']['en'][2] = 'Technical Details';
$CONF['tabs']['en'][3] = 'Availability';
$CONF['tabs']['cn'][1] = '说明';
$CONF['tabs']['cn'][2] = '技术细节';
$CONF['tabs']['cn'][3] = '可用性';
.
.
Then put some codes in the file TabMenuSection.php as shown in the following lines:
171 for($x = 1; $x <= $noOfTabsCalculated; $x++)
172 {
173 echo "<br />The TabName is ".$tabName;
174 $tabName = $this->getTabName($x);
175 echo " Then is ". $tabName;
176 $normalDivTab = '<div id="pronuxTab'.$x.'" class="pronuxTabNo rmal" style="background-color: #'.$this->CONF['tabColor'].'; height: '.$t his->CONF['tabHeight'].'px; width: '.$this->getTabWidth($x).'px;">';
177
The screen prompt for the first "echo" displayed fine. However, Conf.php could not pass the Chinese strings properly to functions of TabMenSection.php.
Can somebody help to drop some helpful pointers which someone else has already addressed/fixed this problem?
Thanks a lot indeed in advance!!
My environment is FC14+LAMP+UTF-8-oSC2.3.1+Eng+Simplified_Chinese.
- osCommerce Support Forum
- → Viewing Profile: yansfung
- Forum Rules






Find content
