Ergebnis 1 bis 15 von 31

Thema: share-links.biz: Link zum Statusimage bekommen

Baum-Darstellung

  1. #24
    VIP Team
    Registriert
    May 2015
    Beiträge
    1,024
    Gefällt mir!
    862
    Du gefällst: 374
    Ich habe es mal finalisiert. Funktioniert super!

    PHP-Code:
    <?php
    $username 
    'justatest'
    $password 'justatest'
    $loginUrl 'http://share-links.biz/login'
    $sl_unique_link str_replace("http://share-links.biz/_""""http://share-links.biz/_mg1gu7oztmz9"); 
      
    //init curl 
    $ch curl_init(); 
      
    //Set the URL to work with 
    curl_setopt($chCURLOPT_URL$loginUrl); 
      
    // ENABLE HTTP POST 
    curl_setopt($chCURLOPT_POST1); 

    curl_setopt($chCURLOPT_USERAGENT$_SERVER['HTTP_USER_AGENT']); 
      
    //Set the post parameters 
    curl_setopt($chCURLOPT_POSTFIELDS'remember_me=1&user='.$username.'&pass='.$password.'&submit=Login'); 
      
    //Handle cookies for the login 
    curl_setopt($chCURLOPT_COOKIEJAR'cookie.txt'); 

      
    //Setting CURLOPT_RETURNTRANSFER variable to 1 will force cURL 
    //not to print out the results of its query. 
    //Instead, it will return the results as a string return value 
    //from curl_exec() instead of the usual true/false. 
    curl_setopt($chCURLOPT_RETURNTRANSFER1); 
      
    //execute the request (the login) 
    $store curl_exec($ch); 
      
    //the login is now done and you can continue to get the 
    //protected content. 
      
    //set the URL to the protected file 
    curl_setopt($chCURLOPT_URL'http://share-links.biz/manage?search='.$sl_unique_link.'&chkFolder[]=6979733&op=stimg_png&submit=los'); 
      
    //execute the request 
    $content curl_exec($ch); 

    // get the real folder id
    preg_match('/<input type="checkbox" name="chkFolder\[\]" value="(\d+)" class="chkFolder vtext-middle" \/>/'$content$match);

    if(!isset(
    $match[1])) die('could not extract real folder id');

    curl_setopt($chCURLOPT_URL'http://share-links.biz/manage');
    curl_setopt($chCURLOPT_POSTtrue);
    curl_setopt($chCURLOPT_POSTFIELDS, array(
        
        
    'op' => 'stimg_png',
        
    'chkFolder[]' => $match[1]

    ));

    $content curl_exec($ch);

    preg_match('/(http:\/\/stats\.share-links\.biz\/[0-9a-z]+\.png)/i'$content$link);
    if(!isset(
    $link[1])) die('could not extract status image link');
    echo 
    $link[1];

    //save the data to disk 
    //file_put_contents('~/download.zip', $content); 


    #echo $content ;  

    ?>
    Der Account wurde extra für diese Spielerei angelegt!

  2. Diesen Mitgliedern gefällt dieser Beitrag:


Ähnliche Themen

  1. Share-Links.biz gibts da überhaupt Support?
    Von Batista im Forum Daily Talk & Offtopic
    Antworten: 7
    Letzter Beitrag: 24.12.2018, 16:48
  2. Share-Links.biz Status
    Von mottek im Forum IntelligeN
    Antworten: 1
    Letzter Beitrag: 27.06.2018, 12:21
  3. Share-Links 100% CPU Auslastung
    Von Roxithro im Forum Technik / Hardware & Software
    Antworten: 22
    Letzter Beitrag: 16.02.2018, 15:58

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  
SzeneBox.org... im Mittelpunkt der Szene!
© since 2015 szeneBOX.org - All Rights Reserved
Domains: www.szenebox.org