ok, mam to
<?php
$filepathname = $url_prefix[$pic_row['url_prefix']]. path2url($pic_row['filepath']. $pic_prefix[$mode]. $pic_row['filename']);
}
// Added hack: "&& !isset($pic_row['mode'])" thumb_data filter isn't executed for the fullsize image
if ($mode == 'thumb' && !isset($pic_row['mode'])) { $pic_row['url'] = $filepathname;
$pic_row['mode'] = $mode;
$pic_row = CPGPluginAPI::filter('thumb_data',$pic_row);
} elseif ($mode != 'thumb') {
$pic_row['url'] = $filepathname;
$pic_row['mode'] = $mode;
} else {
$pic_row['url'] = $filepathname;
}
return $pic_row['url'];
}
/**
* cpg_get_default_lang_var()
*
* Return a variable from the default language file
*
* @param $language_var_name
* @param unknown $overide_language
* @return
**/
function& cpg_get_default_lang_var($language_var_name,$overide_language = null) {
if (isset($CONFIG['default_lang'])) { $language = $CONFIG['default_lang'];
} else {
return $$language_var_name;
}
} else {
$language = $overide_language;
}
include('lang/'.$language.'.php'); ----------------------------------------- line 2040 !! To ta linijka!
return $$language_var_name;
}
// Returns a variable from the current language file
// If variable doesn't exists gets value from english_us lang file
/**
* cpg_lang_var()
*
* @param $varname
* @param unknown $index
* @return
**/
function& cpg_lang_var($varname,$index=null) {
$lang_var =& $$varname;
include('lang/english.php');
return $lang_var[$index];
return $lang_var;
} else {
return $lang_var[$index];
}
} else {
include('lang/english.php');
return $lang_var;
}
}
/**
* cpg_debug_output()
*
* defined new debug_output function here in functions.inc.php instead of theme.
php with different function names to avoid incompatibilities with users not updat
ing their themes as required. Advanced info is only output if (GALLERY_ADMIN_MODE == TRUE)
*
**/
function cpg_debug_output()
{
global $USER, $USER_DATA, $META_ALBUM_SET, $ALBUM_SET, $CONFIG, $cpg_time_start, $query_stats, $queries, $lang_cpg_debug_output; $time_end = cpgGetMicroTime();
$time = round($time_end - $cpg_time_start, 3
);
$query_count = count($query_stats);
$debug_underline = '
------------------
';
$debug_separate = '
==========================
';
echo '<form name="debug" action="'.$_SERVER['PHP_SELF'].'">'; starttable('100%', $lang_cpg_debug_output['debug_info'],2);
echo '<tr><td align="center" valign="middle" class="tableh2" width="100">'; echo '<script language="javascript" type="text/javascript"> <!--';
?>
i jak wie ktoś o co może chodzić? :/
następnym razem proszę stosować odpowiedni bbcode /kszychu/