Show MD5 for local file > Invisionize.eu - IP.Board (IPB) News
Kanał Rss Kanał Rss
Kanał Atom Kanał Atom

Show MD5 for local file

wersja drukowalna wersja Microsoft Word wersja HTML

Sometimes user downloads are interrupted, or otherwise corrupt. This small mod will display the MD5 checksum of a local file in the description area.

File {forum}/admin/applications_addon/ips/downloads/modules_public/display/file.php

Find Line 197:

        $file['file_desc'] = IPSText::getTextClass( 'bbcode' )->preDisplayParse( $file['file_desc'] );


Add after:
        if( $file['file_storagetype'] == 'nonweb' )
        {
            $dlname = $this->ipsclass->vars[ 'idm_localfilepath' ] . "/" . $file['file_filename'];
            $file['file_desc'] .= "MD5 Hash: ";
            $file['file_desc'] .= md5_file( $dlname );
        }

śro, 30 wrzesień 2009

Komentarze:

Brak komentarzy

Imię/Nick:

Adres email:

Strona WWW:

Treść Komentarza: