function bb_php($str){
$str = str_replace("]\n", "]", $str);
$match = array('#\[php\](.*?)\[\/php\]#se');
$replace = array("'<div>'.highlight_string(stripslashes('$1'), true).'</div>'");
return preg_replace($match, $replace, $str);
}
function loadLanguage($type = "main") {
global $xoopsConfig, $xoopsModule;
if ( file_exists(XOOPS_ROOT_PATH."/modules/".$this->getVar('dirname')."/language/".$xoopsConfig['language']."/".$type.".php") ) {
include_once XOOPS_ROOT_PATH."/modules/".$this->getVar('dirname')."/language/".$xoopsConfig['language']."/".$type.".php";
} else {
if ( file_exists(XOOPS_ROOT_PATH."/modules/".$this->getVar('dirname')."/language/english/".$type.".php") ) {
include_once XOOPS_ROOT_PATH."/modules/".$this->getVar('dirname')."/language/english/".$type.".php";
}
}
}
Line 14 function disp_complete_vlweather() {
Line 15 global $xoopsDB, $xoopsUser;
Line 16 //$language = $xoopsConfig['language'];
Line 17 // Include the appropriate language file.
Line 18 //if(file_exists(XOOPS_ROOT_PATH.'/modules/vlweather/language/'.$xoopsConfig['language'].'/main.php')){
Line 19 //include_once(XOOPS_ROOT_PATH.'/modules/vlweather/language/'.$xoopsConfig['language'].'/main.php');
Line 20 //} else {
Line 21 //include_once(XOOPS_ROOT_PATH.'/modules/vlweather/language/english/main.php');
Line 22 //}