This site helps developers to implement CNL on their own site.
CNL is not a linkcontainer. It is not a method to hide links, but a comfort feature to add links to JDownloader very easily
CNL can be used to add one, or more links to JDownloader very easily. One click sends the links. This makes things very comfortable for the users. To accept links, JDownloader runs a little Webserver on “127.0.0.1 (localhost)”. A POST Request to http://127.0.0.1:9666 can add links and passwords.
CNL2 requires that JDownloader is running.
If this does not work,
With this simple Javascript, you can check and display if JDownloader is running:
<script language="javascript"> var jdownloader=false; </script> <script language="javascript" src="http://127.0.0.1:9666/jdcheck.js"></script> <script language="javascript"> if(jdownloader){ document.write("(JDownloader is currently running)"); }else{ document.write("(JDownloader is NOT running)"); } </script>
This can be done with a simple HTML POST Form:
<html> <FORM ACTION="http://127.0.0.1:9666/flash/addcrypted2" target="hidden" METHOD="POST"> <INPUT TYPE="hidden" NAME="passwords" VALUE="myPassword"> <INPUT TYPE="hidden" NAME="source" VALUE="http://jdownloader.org/spielwiese"> <INPUT TYPE="hidden" NAME="jk" VALUE="function f(){ return '31323334353637383930393837363534';}"> <INPUT TYPE="hidden" NAME="crypted" VALUE="DRurBGEf2ntP7Z0WDkMP8e1ZeK7PswJGeBHCg4zEYXZSE3Qqxsbi5EF1KosgkKQ9SL8qOOUAI+eDPFypAtQS9A=="> <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Add Link to JDownloader"> </FORM>
function base16Encode($arg){ $ret=""; for($i=0;$i<strlen($arg);$i++){ $tmp=ord(substr($arg,$i,1)); $ret.=dechex($tmp); } return $ret; } $key="1234567890987654"; $transmitKey=base16Encode($key); $link="http://rapidshare.com/files/285626259/jDownloader.dmg\r\nhttp://rapidshare.com/files/285622259/jDownloader2.dmg"; $cp = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', 'cbc', ''); @mcrypt_generic_init($cp, $key,$key); $enc = mcrypt_generic($cp, $link); mcrypt_generic_deinit($cp); mcrypt_module_close($cp); $crypted=base64_encode($enc); echo $crypted;
A very bsic, but insecure version of CNL2 is PLain CNL. You Do not need any serverside encryption here.
<FORM ACTION="http://127.0.0.1:9666/flash/add" target="hidden" METHOD="POST"> INPUT TYPE="hidden" NAME="passwords" VALUE="myPassword"> <INPUT TYPE="hidden" NAME="source" VALUE="http://jdownloader.org/spielwiese"> <INPUT TYPE="hidden" NAME="urls" VALUE="http://www.rapidshare.com/files/407970280/RapidShareManager2WindowsSetup.exe"> <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Add Link to JDownloader"> </FORM>
You can pass multiple urls and passwords by seperating them with \r\n
Try it: