// file: logger.php // writes a record to a YY-MM file to record visits // author: Kase // update: 1/3/2019 added getbro date_default_timezone_set('America/Chicago'); $date = date('m/d/Y h:i:s a', time()); $datename = date('y-m', time()); $File = 'logs/'.$datename.".txt"; $debug = 0; // 1=TRUE // ----------------- the below does not need to change $url = @( $_SERVER["HTTPS"] != 'on' ) ? 'http://'.$_SERVER["SERVER_NAME"] : 'https://'.$_SERVER["SERVER_NAME"]; $url .= ( $_SERVER["SERVER_PORT"] !== 80 ) ? ":".$_SERVER["SERVER_PORT"] : ""; $url .= $_SERVER["REQUEST_URI"]; str_replace(array('http://','https://'), '', $url); str_replace(array('HTTP://','HTTPS://'), '', $url); $ua = strtolower($agent ? $agent : $_SERVER['HTTP_USER_AGENT']); $dvc = 'BOT'; if ((stripos($ua,'android')!==false)) { $dvc = 'Android'; } if ((stripos($ua,'iphone')!==false)) { $dvc = 'iPhone'; } if ((stripos($ua,'ipad')!==false)) { $dvc = 'iPad'; } if ((stripos($ua,'windows nt 5.1')!==false)) { $dvc = 'XP'; } if ((stripos($ua,'windows nt 6.1')!==false)) { $dvc = 'Win7'; } if ((stripos($ua,'windows nt 6.3')!==false)) { $dvc = 'Win8'; } if ((stripos($ua,'windows nt 10')!==false)) { $dvc = 'Win10'; } if ((stripos($ua,'linux x86')!==false)) { $dvc = 'Linux'; } if ((stripos($ua,'macintosh')!==false)) { $dvc = 'Macintosh'; } // ---------------------- get browser data include('getbro.php'); $ua=getBrowser(); $device = $ua['name'].' '.$ua['version'].' '.$ua['platform'].' '.$dvc; if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ipaddress=$_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { // check ip is pass from proxy $ipaddress=$_SERVER['HTTP_X_FORWARDED_FOR']; } else { // use the basic one $ipaddress=$_SERVER['REMOTE_ADDR']; } // $dumpstr = unserialize(file_get_contents("http://www.geoplugin.net/php.gp?ip=".$_SERVER["REMOTE_ADDR"])); $region = $dumpstr["geoplugin_region"]; $countryName = $dumpstr["geoplugin_countryName"]; $latitude = $dumpstr["geoplugin_latitude"]; $longitude = $dumpstr["geoplugin_longitude"]; $regionName = $dumpstr["geoplugin_regionName"]; $Handle = fopen($File, 'a'); $Data = $date.",". $ipaddress.",". $url.",". $region.",". $regionName.",". $countryName.",". $latitude.",". $longitude.",". $device."\r\n"; fwrite($Handle, $Data); fclose($Handle); // ------------------------------------------- last visitor $myfile = fopen("lastvisit.txt", "w") or die("Unable to write lastvisit"); $txt = $ipaddress.' '.$region.' '.$countryName; fwrite($myfile, $txt); fclose($myfile); if ($debug=='1') { echo $Data; } ?>
In 1917, Melvin Jones, a 38-year-old Chicago business leader, told members of his local business club they should reach beyond business issues and address the betterment of their communities and the world. Jones' group, the Business Circle of Chicago, agreed and took the name of the "Association of Lions Clubs. Lions Clubs are unique in the world of service organization because we pay all of our own administrative costs so every dollar we raise goes to charity.
Today, Lions International has 46,000 clubs in every corner of the globe with over 1.4 million members. No matter where you go, there’s probably a Lions club nearby.
Nonprofit organizations play a vital role in strengthening democracy, promoting civil liberties, and adding richness and diversity to community life. Over the course of its history, Lions Clubs International has provided a strong, collective voice to inform and influence public policy at the local, state and national level. Lions Clubs International continuously works to highlight issues affecting the community and align public policy initiatives to address civic-social needs. Through advocacy, Lions can inform their elected officials of specific social concerns and help policymakers find specific solutions to persistent problems.