Commit: ea7631f9712422058ac2a6731aa9914fa463653e Author: Hannes Magnusson <[email protected]> Wed, 22 Jan 2014 16:56:17 -0800 Parents: 8bb3bdedb0df38d6a4bf2d7b63a599dad757af64 Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=ea7631f9712422058ac2a6731aa9914fa463653e Log: No need to show the tip after we've seen the list Changed paths: M include/layout.inc M ug.php Diff: diff --git a/include/layout.inc b/include/layout.inc index fdbf0fb..ee42acf 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -578,6 +578,14 @@ function get_near_usergroups() if (!myphpnet_showug()) { return false; } + if ($_SERVER["BASE_PAGE"] == "ug.php") { + return false; + } + if (isset($_COOKIE["LAST_UG"]) && $_COOKIE["LAST_UG"] >= $_SERVER["REQUEST_TIME"]) { + if (!isset($_GET["showug"])) { + return false; + } + } $ugs = get_usergroups_in($COUNTRY); $count = count($ugs); diff --git a/ug.php b/ug.php index 4ed412f..a844157 100644 --- a/ug.php +++ b/ug.php @@ -3,6 +3,7 @@ $_SERVER['BASE_PAGE'] = 'ug.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +mirror_setcookie("LAST_UG", $_SERVER["REQUEST_TIME"]+60*60*24, 60*60*24); site_header("Hypertext Preprocessor", array( 'current' => 'community', -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
