{php} $ID = XT_CLIPLISTER_ID; $KEY = XT_CLIPLISTER_KEY; #============================================================================== # Änderungen nur in diesem Bereich vornehmen! define('CUST_ID', $ID); # Kundennummer define('CUST_KEY', $KEY); # Crypt-Key #============================================================================== define('CLSERVER','http://mycliplister.com/cliplister/'); define('REQ_BASE_EMBD',CLSERVER . "play/" . CUST_ID . "/"); define('REQ_BASE_PBTN',CLSERVER . "playBtn/" . CUST_ID . "/"); define('tagPbtn',''); define('tagHidden',''); define('tagNotHidden',''); function encrypt($request) { $iv = 'c1191573-clip-07'; $td = mcrypt_module_open("rijndael-128", "", "cbc", $iv); mcrypt_generic_init($td, CUST_KEY, $iv ); $result = bin2hex(mcrypt_generic($td, $request)); mcrypt_generic_deinit($td); mcrypt_module_close($td); return "1".$result; } function cliplister($productKey,$prodKeyType=0,$quality=75,$fsk=16,$lang="##",$refId="") { if( !isset($prodKeyType) ) $prodKeyType=0; if( !isset($quality) ) $quality=75; if( isset($refId) ) $refId = str_replace('-','–',$refId); $seqNum = substr(microtime(),2,5); $reqString = REQ_BASE_PBTN . encrypt($seqNum . "-" . time() . "-" . $productKey . "-" . $prodKeyType . "-" . $quality . "-" . $fsk . "-" .$lang . "-" . $refId ); $html = str_replace("_URL_",$reqString,tagPbtn); $html = str_replace("_PRODUKT_",$productKey,$html); return $html; } function cliplisterEmbed($productKey,$prodKeyType=0,$width=320,$height=260,$quality=75,$hidden=0,$indirect=0,$fsk=16,$lang="##",$refId="") { if( !isset($prodKeyType) ) $prodKeyType=0; if( !isset($quality) ) $quality=75; if( $hidden==0) { $html = tagNotHidden; } else { $html = tagHidden; } if( isset($refId) ) $refId = str_replace('-','–',$refId); $seqNum = substr(microtime(),2,5); $reqString = REQ_BASE_EMBD . encrypt($seqNum . "-" . time() . "-" . $productKey . "-" . $prodKeyType . "-" . $quality . "-" . $fsk . "-" .$lang."-".$refId ); if( $indirect!=0 ) { $reqString = $reqString . "/ind"; } $html = str_replace("_URL_",$reqString,$html); $html = str_replace("_WIDTH_",$width,$html); $html = str_replace("_HEIGHT_",$height,$html); $html = str_replace("_PRODUKT_",$productKey,$html); return $html; } echo ' '; {/php}