Beispiel #1
0
 /**
  * Méthode qui retourne les informations $output en analysant
  * le nom du fichier du commentaire $filename
  *
  * @param	filename	fichier du commentaire à traiter
  * @return	array		information à récupérer
  * @author	Stephane F
  **/
 public function comInfoFromFilename($filename)
 {
     # On effectue notre capture d'informations
     if (preg_match('/([[:punct:]]?)([0-9]{4}).([0-9]{10})-([0-9]+).xml$/', $filename, $capture)) {
         return array('comStatus' => $capture[1], 'artId' => $capture[2], 'comDate' => plxDate::timestamp2Date($capture[3]), 'comId' => $capture[3] . '-' . $capture[4], 'comIdx' => $capture[4]);
     }
     return false;
 }
Beispiel #2
0
        }
        echo '</td>';
        echo '<td>';
        echo '<a onclick="this.target=\'_blank\';return true;" title="' . plxUtils::strCheck($v['name']) . '" href="' . $v['path'] . '">' . plxUtils::strCheck($v['name']) . '</a><br />';
        if ($isImage and is_file(plxUtils::thumbName($v['path']))) {
            echo '<a onclick="this.target=\'_blank\';return true;" title="' . L_MEDIAS_THUMB . ' : ' . plxUtils::strCheck($v['name']) . '" href="' . plxUtils::thumbName($v['path']) . '">' . L_MEDIAS_THUMB . '</a> : ' . $v['thumb']['infos'][0] . ' x ' . $v['thumb']['infos'][1] . ' (' . plxUtils::formatFilesize($v['thumb']['filesize']) . ')';
        }
        echo '</td>';
        echo '<td>' . strtoupper($v['extension']) . '</td>';
        echo '<td>' . plxUtils::formatFilesize($v['filesize']) . '</td>';
        $dimensions = '&nbsp;';
        if ($isImage and (isset($v['infos']) and isset($v['infos'][0]) and isset($v['infos'][1]))) {
            $dimensions = $v['infos'][0] . ' x ' . $v['infos'][1];
        }
        echo '<td>' . $dimensions . '</td>';
        echo '<td>' . plxDate::formatDate(plxDate::timestamp2Date($v['date'])) . '</td>';
        echo '</tr>';
    }
} else {
    echo '<tr><td colspan="7" class="center">' . L_MEDIAS_NO_FILE . '</td></tr>';
}
?>
				</tbody>
			</table>
		</div>
	</div>
</form>

<form action="medias.php" method="post" id="form_uploader" class="form_uploader" enctype="multipart/form-data">

	<div id="files_uploader" style="display:none">