
The Blue Music Cloud mounter allows you to freely operate files (folders) in the Blue Music Cloud, and you can obtain direct link downloads, etc.
The general functions are as follows
Browse files (folders) in any directory
Move files in batches
Delete files (folders) in batches
rename folder
new folder
Folder encryption and modification
Straight link of files (①id form, recommended;② file name form)
File upload (considering that the server needs to transfer before uploading, which is inefficient, only the back-end interface is written and is not integrated into the front-end function)
software architecture
PHP >= 5.6
Redis (If you don't need Redis, comment out the initialization function__construct in the Classes/Lanzou.php file: $this-redis =...)
installation tutorial
1. Download the source code
2. Upload the source code to your server
3. Get cookies (executed by browser F12 console):
if(!/ (^|.) woozooo.com$/i.test(document.location.host))
throw new Error ('Please log in to the Blue Play Cloud console to execute this code!');
var copy = function (str) {
var oInput = document.createElement(‘input’);
oInput.value = str;
document.body.appendChild(oInput);
oInput.select();
document.execCommand(“Copy”);
oInput.remove();
alert ('Copy successful');
}
var regex = /(?& lt;=^|;)s*([^=]+)=s*(.+?) s*(?=;|$)/ g,
cookies = {},re;
while(re = regex.exec(document.cookie))
if(re[1] === ‘ylogin’||re[1] === ‘phpdisk_info’)
cookies[re[1]] = re[1]+’=’+re[2]+’;’;
if(! cookies.hasOwnProperty(‘phpdisk_info’))
throw new Error ('Failed to obtain cookies, please confirm that you are logged in to the Blue Soo Cloud console!');
copy(Object.values(cookies).join(‘ ‘));
4. Modify relevant data in the configuration file (config.php)
5. Configure pseudo-static (Nginx, write it with reference to Nginx for other environment pseudo-static):
location / {
if (!- e $request_filename) {
rewrite ^/(d)/([a-zA-Z0-9]+)(. [w]+)?$ /api.php? c=&id= last;
rewrite ^/([a-z0-9]+)(. [w]+|/([^/]+))?$ /api.php? id=&name= last;
}
}
Comments0