New PHPSessionID function prepared
Took 11 minutes
This commit is contained in:
parent
425f72c9cd
commit
e044cc3c2a
@ -7,4 +7,6 @@ error_reporting(0);
|
|||||||
|
|
||||||
|
|
||||||
require_once 'AudioVideoHandler.php';
|
require_once 'AudioVideoHandler.php';
|
||||||
require_once 'Downloader.php';
|
require_once 'Downloader.php';
|
||||||
|
|
||||||
|
define( 'CURL_PHPSESSID', '' );
|
@ -47,7 +47,12 @@ function main()
|
|||||||
echo "Wrong usage, please use help for help.\n";
|
echo "Wrong usage, please use help for help.\n";
|
||||||
break;
|
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;
|
break;
|
||||||
case 'exit':
|
case 'exit':
|
||||||
echo "Have a nice dayyyy!!\n";
|
echo "Have a nice dayyyy!!\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user