New PHPSessionID function prepared
Took 11 minutes
This commit is contained in:
parent
425f72c9cd
commit
e044cc3c2a
@ -8,3 +8,5 @@ error_reporting(0);
|
||||
|
||||
require_once 'AudioVideoHandler.php';
|
||||
require_once 'Downloader.php';
|
||||
|
||||
define( 'CURL_PHPSESSID', '' );
|
@ -47,7 +47,12 @@ function main()
|
||||
echo "Wrong usage, please use help for help.\n";
|
||||
break;
|
||||
}
|
||||
echo "Function not completed yet!\n";
|
||||
echo "Setting PHPSessionID...";
|
||||
$file = file_get_contents( './config.inc.php' );
|
||||
$file = str_ireplace( "define( 'CURL_PHPSESSID', '' );", "define( 'CURL_PHPSESSID', '$id' );", $file );
|
||||
file_put_contents( './config.inc.php', $file );
|
||||
echo "OK\n";
|
||||
echo "Please use 'exit' and restart the script to apply the new session id!\n";
|
||||
break;
|
||||
case 'exit':
|
||||
echo "Have a nice dayyyy!!\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user