1
Gestione documenti e download / Re:Download Pdf personali
« il: 20 Set 2012, 12:00:53 »Codice: [Seleziona]
credo che la stringa di codice da modificare sia questa. Quando verifica l'estensione del file ho bisogno che verifichi anche il nome del file, e che questo nome comprenda al suo interno il nome utente dello user joomla.
{//check to see if the file type is forbidden
if (stripos($params->get('efl_forbidden'), JFile::getExt($original[$i])) === false)
{
//remove the file extension and the dot from the filename
$list[$index]['name'] = substr($original[$i], 0, -1*(1+strlen(JFile::getExt($original[$i]))));
//add the extension
$list[$index]['ext'] = JFile::getExt($original[$i]);
//get the stats for the file
$filestats = stat($folder.'/'.$original[$i]);
$list[$index]['size'] = modEasyFolderListingHelper::sizeToText($filestats['size']);
$list[$index]['bytes'] = $filestats['size'];
$list[$index]['date'] = $filestats['mtime'];
$index++;
}
}