public static function getCsrfToken() { $token = Star_Config::get('resources.token'); $ip = Star_Http_Request::getIp(); $user_agent = Star_Http_Request::getHttpAgent(); $temp_array = array($token, $ip, $user_agent); sort($temp_array, SORT_STRING); return md5(implode('', $temp_array)); }