Follow along with the video below to see how to install our site as a web app on your home screen.
Notă: This feature may not be available in some browsers.
$protocol = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
$curent_url = $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$user_ip = (isset($_SERVER["HTTP_CF_CONNECTING_IP"])?$_SERVER["HTTP_CF_CONNECTING_IP"]:$_SERVER['REMOTE_ADDR']);
$log_content = file_get_contents("visitors_log.txt");
$log_content.= "IP: " . $user_ip . " | Data: " . date("d-M-Y h:i:s"). " | URL: " . $curent_url . "\n";
file_put_contents("visitors_log.txt", $log_content);
Cu placere!Multumesc mult de tot!