×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: TEL RED
Added: Dec 4, 2021 5:42 PM
Views: 847
Tags: no tags
  1.        $inicio = curl_exec($curl);
  2.         $regex='|<a.*?href="(.*?)"|';
  3.         preg_match_all($regex,$inicio,$parts);
  4.         $links=$parts[1];
  5.         foreach($links as $link){
  6.             if (strpos($link,'gistrati')== True)
  7.             {
  8.                    header("location:../inicio_marina.html"); //to redirect back to "index.php" after logging out
  9.                     exit();
  10.             }
  11.  
  12.         }
  13.