View Single Post
  #1  
Old 27.12.2019, 07:26
nacho191 nacho191 is offline
Modem User
 
Join Date: Sep 2019
Posts: 1
Default API Problem since today

Hello, the api stops to works in mi site.
the error says:
Code:
PHP Fatal error:  Call to undefined function mcrypt_module_open() in dlcapi/download_parser.php on line 197
the line 197 its:
Code:
$cp = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', 'cbc', '');
and the entire line its:
Code:
public function create_cnl_link($link_ary)
	{
		$link_str = array();

		foreach($link_ary as $link)
		{
			$link_str = array_merge($link_str, $this->get_links($link));
		}
		
		$link_str = implode("\r\n", $link_str);

		$cp = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', 'cbc', '');
		@mcrypt_generic_init($cp, $this->encrypt_key, $this->encrypt_key);
		$enc = mcrypt_generic($cp, $link_str);   
		mcrypt_generic_deinit($cp);	
		mcrypt_module_close($cp);
		$crypted = base64_encode($enc);

		return $crypted;
	}
Reply With Quote