Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
function plogger_get_picture_filename() {
global $config;
$filename = SmartStripSlashes(basename($GLOBALS["current_picture"]["path"]));
if (intval($config['truncate']) > 0) {
$filename = substr($filename, 0, intval($config['truncate']));
}
return htmlspecialchars($filename);
}
function plogger_get_picture_filename() {
$filename = SmartStripSlashes(basename($GLOBALS["current_picture"]["path"]));
$filename = substr("$filename", 0, 28);
return htmlspecialchars($filename);
}
function plogger_get_picture_filename() {
global $config;
$filename = SmartStripSlashes(basename($GLOBALS['current_picture']['path'])); //get the basename and clean up the text a little
$filename = substr($filename, 0, strrpos($filename, '.')); //remove the file extension
//if the truncate value is set and the filename is longer than the truncate value
//chop it off and add the trailing ellipses
if (intval($config['truncate']) > 0 && isset($filename{ intval($config['truncate'])})) {
$filename = substr($filename, 0, intval($config['truncate'])).'...';
}
return htmlspecialchars($filename);
}
1 to 8 of 8