exit; en l.161
Il y a 1 fichier trouvé avec l'id 69957 ($_GET[id_fichier]) et le filename a-piece-of-the-action-1977-1080p-amzn-webrip-ddp2-0-x264-abm-srt ($_GET[fichier]) !
Le fichier a télécharger (1-1691019645.srt) existe bien dans le dossier fichiers/1977/24480/, on lance son téléchargement (header("Location: fichiers/1977/24480/1-1691019645.srt));
Et on le renomme avec header('Content-Disposition: attachment; filename="A.Piece.of.the.Action.1977.1080p.AMZN.WEBRip.DDP2.0.x264-ABM.srt"');
Après, on ferme le header avec header("Connection: close");
On cherche donc a rajouté le fichier 1-1691019645.srt (qui se trouve dans le dossier fichiers/1977/24480/) en le renommant A.Piece.of.the.Action.1977.1080p.AMZN.WEBRip.DDP2.0.x264-ABM.srt (l.157)
On arreête le cript et affichons le $debug l.161
&bsp;
Array
(
[id_fichier] => 69957
[film_id] => 24480
[filename] => A.Piece.of.the.Action.1977.1080p.AMZN.WEBRip.DDP2.0.x264-ABM.srt
[fichier] => 1-1691019645.srt
[officiel] => 5
[pseudo] => SubSynchro
[afficher] => 1
[id_film] => 24480
[titre] => A Piece of the Action
[titre_original] => A Piece of the Action
[date] => 1977
[url] => a-piece-of-the-action
[vignette] => a-piece-of-the-action.jpg
[id_release] => 105949
[release] => A.Piece.Of.The.Action.1977.1080p.AMZN.WEBRip.DDP2.0.x264-ABM
[group] => ABM
[nfo] =>
[url_release] => a-piece-of-the-action-1977-1080p-amzn-webrip-ddp2-0-x264-abm
)