summaryrefslogtreecommitdiff
path: root/app/Auth.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-02-16 22:59:03 +0000
committerGreg Roach <fisharebest@gmail.com>2015-02-16 22:59:03 +0000
commit9f712a0dfcd43b3cb2a2c4ed815a4941048e9560 (patch)
treead23e09f04d119c494192910c929f2539a79ce5b /app/Auth.php
parentcccff39494522f07739c22c91af9f52cfe94afed (diff)
downloadwebtrees-9f712a0dfcd43b3cb2a2c4ed815a4941048e9560.tar.gz
webtrees-9f712a0dfcd43b3cb2a2c4ed815a4941048e9560.tar.bz2
webtrees-9f712a0dfcd43b3cb2a2c4ed815a4941048e9560.zip
class Auth should be responsible for checking search engines
Diffstat (limited to 'app/Auth.php')
-rw-r--r--app/Auth.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/Auth.php b/app/Auth.php
index 07b9768328..fb3022101a 100644
--- a/app/Auth.php
+++ b/app/Auth.php
@@ -112,6 +112,17 @@ class Auth {
}
/**
+ * Is the current visitor a search engine? The global is set in session.php
+ *
+ * @return boolean
+ */
+ public static function isSearchEngine() {
+ global $SEARCH_SPIDER;
+
+ return $SEARCH_SPIDER;
+ }
+
+ /**
* The ID of the authenticated user, from the current session.
*
* @return string|null