Customizing SMF > Portals, Bridges, and Integrations

Integrate Click'n'Load 2 v2 to protect links in SMF?

(1/1)

daviloco:
Hello,

I come to ask for help: (

What I want is to integrate Click 'n Load v2 of JDownloader to protect download links from my forum.

For wrapping in a the label links to such [* jdown] link here [* / jdown] and to publish the links, these can not be seen, if not the button "add to jdownloader"

I can help?

I leave api jdownloader


--- Code: ---http://jdownloader.org/knowledge/wiki/glossary/cnl2
--- End code ---

Thank you...

K@:
I'm not, entirely, sure what you're asking, mate.

This mod can define custom actions, for you, including BBC tags.

http://custom.simplemachines.org/mods/index.php?mod=331

Would that help you to do what you want?

daviloco:

--- Quote from: K@ on June 24, 2012, 11:58:06 AM ---I'm not, entirely, sure what you're asking, mate.

This mod can define custom actions, for you, including BBC tags.

http://custom.simplemachines.org/mods/index.php?mod=331

Would that help you to do what you want?

--- End quote ---

The truth would be better if you help me to apadaptar this scrip with this mod.
Do not know how.!

bacanzito:

--- Quote from: K@ on June 24, 2012, 11:58:06 AM ---I'm not, entirely, sure what you're asking, mate.

This mod can define custom actions, for you, including BBC tags.

http://custom.simplemachines.org/mods/index.php?mod=331

Would that help you to do what you want?

--- End quote ---

I referred to this [CNL] links [/CNL]  :P


--- Code: ---Check if JDownloader is running

CNL2 requires that JDownloader is running.

Open http://127.0.0.1:9666/flash/
If A “Website” with 'JDownloader' opens, JD is running.
If this does not work,

JD is not running
--- End code ---




--- Quote ---board.jdownloader.org/showthread.php?t=40020
--- End quote ---

crypted AES


--- Quote ---en.wikipedia.org/wiki/Advanced_Encryption_Standard
--- End quote ---


--- Code: ---http://en.wikipedia.org/wiki/Base64
--- End code ---

Post Links to JDownloader

This can be done with a simple HTML POST Form:


--- Code: ---<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>
--- End code ---

passwords: enter the archive password here
source: this is the referer. Enter the Sourceurl for the links. This url will be exported to DLC instead of the plain links
jk: AES Key as Javascript funktion. the f function always has to return the correct key.
crypted: The Crypted URL Text. See PhP section for encryption details.

PHP code



--- Code: ---

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;
--- End code ---



Arantor:
Can't be done without quite a large overhaul to the post display.

Though I'd love to know what use this has.

Navigation

[0] Message Index

Go to full version