Hi,
what Torrentflux version do you use? The HowTo is for torrentflux TorrentFlux 2.1-b4rt-85, if you want to implement the hack into the usuall Torrentflux use following:
Move Hackmodify
admin.phpSearch:
</table>
<br>
<input type="Submit" value="Update Settings">
Insert before that row this:
<!--// Move Hack -->
<?php include('move_extensionSettings.php'); ?>
Search:
function updateConfigSettings() {
global $cfg;
Insert after that:
// move hack...
include('move_functions.php');
createCategoryFolders();
modify
dir.phpSearch:
// download
if ($cfg["enable_file_download"])
Insert before that row this:
// move hack
include('move_dir_extension.php');
Search again for:
// download
if ($cfg["enable_file_download"])
And intert before that row again this:
// move hack
include('move_dir_extension.php');
modify
config.phpInsert before the last "?>" this:
// include move hack
include('move_const.php');
Copy the following files into the tf folder (all of them are in the move_hack.tar):
move.php
move_const.php
move_dir_extension.php
move_extensionSetting.js
move_extensionSettings.php
move_functions.php
images/_move.gif
================================================================
Rename HackWith this hack is it possible zu rename files/folders in the TF directory.
Install Rename Hack
modify
admin.phpSearch:
</table>
<br>
<input type="Submit" value="Update Settings">
Insert before that row this:
<!--// rename files Hack -->
<?php include('rename_extensionSettings.php'); ?>
modify
dir.phpSearch:
// download
if ($cfg["enable_file_download"])
Insert before that row this:
// move hack
include('rename_dir_extension.php');
Search again for:
// download
if ($cfg["enable_file_download"])
And intert before that row again this:
// move hack
include('rename_dir_extension.php');
modify
config.phpInsert before the last "?>" this:
//include rename hack
include('rename_const.php');
Copy the following files into the tf folder (all of them are in the rename_hack.tar):
renameFolder.php
rename_const.php
rename_dir_extension.php
rename_extensionSettings.php
images/rename.gif
=================================================================
unRAR Hack Password ExtensionThis Hack will only work, if the unRAR Hack is already implemented. So please implement the unRAR Hack before.
Extending the usual UnRAR Hack a Passwordfield for rar files that needs a password
for extraction.
Just enter the right password and hit OK. Thats all then.
modify
uncompress.phpSearch:
$arg4 = $argv[4];
Replace with:
$arg4 = $argv[5];
$arg5 = $argv[4];
Search:
$Command = escapeshellarg($arg4)." x " . escapeshellarg($arg1) . " " . escapeshellarg($arg2);
Replace with:
$Command = escapeshellarg($arg4)." x -p". $arg5 ." ". escapeshellarg($arg1) . " " . escapeshellarg($arg2);
Replace the umcomp.php with the one attached in unRAR_hack.zip.
If someone wants to implement all hacks, just extract the allhacks.zip into your TF folder and add
// include move hack
include('move_const.php');
//include rename hack
include('rename_const.php');
into config.php.
but all these are minors
my problem is this hack is disabled in admin.php and I cant enable it (it'a always grayed out and "enable move files" is set to false and after page reload it gets back to false:/ I cant use ur admin.php because of unrecognized function smthsuperadminlink blah blah. does this code use sql? because I have sqlite not mysql.
My code doesn't use sql. I just use the code from torrentflux.
Which browser do you use? I found a bug in move_extensionSettings.js. The Hack didn't work with the Internet Explorer, but I corrected it. Please replace the file with the one in the attachments.
I hope I could help.