Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $users = [
- 'openloadAPI' => [
- 'user' => '8ba9b2eb521392ae',
- 'pass' => '77KweVhA'
- ]
- ];
- define('USERAGENT', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36');
- function openloadAPI($link) {
- global $users;
- $user = $users['openloadAPI']['user'];
- $pass = $users['openloadAPI']['pass'];
- $ch = curl_init("https://api.openload.co/1/remotedl/add?login=$user&key=$pass&url=$link");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_USERAGENT, USERAGENT);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- $result = curl_exec($ch);
- return json_decode($result);
- }
- openloadAPI('HERE_LINK_TO_CLONE');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement