contributions/usermanagement.hijackaccount/lib/helpers/hijackaccount.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * A class wrapping some stuff regarding hikacking 00004 */ 00005 class HijackAccount { 00006 const COOKIE_NAME = 'C128A'; 00007 00008 /** 00009 * Returns true, if the current account is hijacked 00010 * 00011 * @return bool 00012 */ 00013 public static function is_hijacked() { 00014 return (Cookie::get_cookie_value(HijackAccount::COOKIE_NAME) !== false); 00015 } 00016 }