Hello,
I'm in the process of putting together a script to rebuild my ResourceSpace database after a motherboard failure. I have the original ResourceSpace directories including the config.php and the original scramble key (as well as the 'filestore' directory containing the assets).
I would like to know exactly how a 'filestore' file path (and filename) is generated using the scramble key.
I found the line in include/general.php:
$scramblepath=substr(md5($ref . "_" . $scramble_key),0,15);
I assume $ref is the path to the asset. Could someone please give an example? is this a path pointing to a location within the 'filestore' directory? does it include the original filename of the asset or is the filename not used?
For an asset with a reference ID of 3, I have the following path pointing to its location in the 'filestore':
/var/www/resourcespace/filestore/3_1c7731363e2c53d/3_37f9cb87a14b3bf.mts (this is a .MTS format video file with an original filename of '00882.MTS').
I would like to know specifically how the hashes in the path shown above were generated (i.e. what path information was used to generate the hashes).
Thank you!
Dave