text stringlengths 29 2.99M |
|---|
<?php
if (! function_exists('content')) {
/**
* Get acf content value, very similiar signature as get_field
* however with dot syntax for safe retrieval.
*
* @param string $key ACF name
* @param string|null $id ACF key, defaults to current post id
* @param boolean $format Return formatted value
* @param mixed $default Default value if value don't exists
*
* @return mixed
*/
function content($key, $id = false, $format = true, $default = null)
{
if (strpos($key, '.') === false) {
$result = get_field($key, $id, $format);
return !empty($result)
? $result
: $default;
}
$fragments = explode('.', $key);
$acfKey = array_shift($fragments);
$acfResult = get_field($acfKey, $id, $format);
if (!is_array($acfResult)) {
return $default;
}
return array_get($acfResult, implode('.', $fragments), $default);
}
}
|
<?php
namespace Kirby\Email;
use Closure;
use Exception;
use Kirby\Toolkit\Properties;
use Kirby\Toolkit\V;
/**
* Wrapper for email libraries
*
* @package Kirby Email
* @author Bastian Allgeier <bastian@getkirby.com>,
* Nico Hoffmann <nico@getkirby.com>
* @link https://getkirby.com
* @copyright Bastian Allgeier GmbH
* @license https://opensource.org/licenses/MIT
*/
class Email
{
use Properties;
/**
* If set to `true`, the debug mode is enabled
* for all emails
*
* @var bool
*/
public static $debug = false;
/**
* Store for sent emails when `Email::$debug`
* is set to `true`
*
* @var array
*/
public static $emails = [];
/**
* @var array|null
*/
protected $attachments;
/**
* @var \Kirby\Email\Body|null
*/
protected $body;
/**
* @var array|null
*/
protected $bcc;
/**
* @var \Closure|null
*/
protected $beforeSend;
/**
* @var array|null
*/
protected $cc;
/**
* @var string|null
*/
protected $from;
/**
* @var string|null
*/
protected $fromName;
/**
* @var string|null
*/
protected $replyTo;
/**
* @var string|null
*/
protected $replyToName;
/**
* @var bool
*/
protected $isSent = false;
/**
* @var string|null
*/
protected $subject;
/**
* @var array|null
*/
protected $to;
/**
* @var array|null
*/
protected $transport;
/**
* Email constructor
*
* @param array $props
* @param bool $debug
*/
public function __construct(array $props = [], bool $debug = false)
{
$this->setProperties($props);
// @codeCoverageIgnoreStart
if (static::$debug === false && $debug === false) {
$this->send();
} elseif (static::$debug === true) {
static::$emails[] = $this;
}
// @codeCoverageIgnoreEnd
}
/**
* Returns the email attachments
*
* @return array
*/
public function attachments(): array
{
return $this->attachments;
}
/**
* Returns the email body
*
* @return \Kirby\Email\Body|null
*/
public function body()
{
return $this->body;
}
/**
* Returns "bcc" recipients
*
* @return array
*/
public function bcc(): array
{
return $this->bcc;
}
/**
* Returns the beforeSend callback closure,
* which has access to the PHPMailer instance
*
* @return \Closure|null
*/
public function beforeSend(): ?Closure
{
return $this->beforeSend;
}
/**
* Returns "cc" recipients
*
* @return array
*/
public function cc(): array
{
return $this->cc;
}
/**
* Returns default transport settings
*
* @return array
*/
protected function defaultTransport(): array
{
return [
'type' => 'mail'
];
}
/**
* Returns the "from" email address
*
* @return string
*/
public function from(): string
{
return $this->from;
}
/**
* Returns the "from" name
*
* @return string|null
*/
public function fromName(): ?string
{
return $this->fromName;
}
/**
* Checks if the email has an HTML body
*
* @return bool
*/
public function isHtml()
{
return $this->body()->html() !== null;
}
/**
* Checks if the email has been sent successfully
*
* @return bool
*/
public function isSent(): bool
{
return $this->isSent;
}
/**
* Returns the "reply to" email address
*
* @return string
*/
public function replyTo(): string
{
return $this->replyTo;
}
/**
* Returns the "reply to" name
*
* @return string|null
*/
public function replyToName(): ?string
{
return $this->replyToName;
}
/**
* Converts single or multiple email addresses to a sanitized format
*
* @param string|array|null $email
* @param bool $multiple
* @return array|mixed|string
* @throws \Exception
*/
protected function resolveEmail($email = null, bool $multiple = true)
{
if ($email === null) {
return $multiple === true ? [] : '';
}
if (is_array($email) === false) {
$email = [$email => null];
}
$result = [];
foreach ($email as $address => $name) {
// convert simple email arrays to associative arrays
if (is_int($address) === true) {
// the value is the address, there is no name
$address = $name;
$result[$address] = null;
} else {
$result[$address] = $name;
}
// ensure that the address is valid
if (V::email($address) === false) {
throw new Exception(sprintf('"%s" is not a valid email address', $address));
}
}
return $multiple === true ? $result : array_keys($result)[0];
}
/**
* Sends the email
*
* @return bool
*/
public function send(): bool
{
return $this->isSent = true;
}
/**
* Sets the email attachments
*
* @param array|null $attachments
* @return self
*/
protected function setAttachments($attachments = null)
{
$this->attachments = $attachments ?? [];
return $this;
}
/**
* Sets the email body
*
* @param string|array $body
* @return self
*/
protected function setBody($body)
{
if (is_string($body) === true) {
$body = ['text' => $body];
}
$this->body = new Body($body);
return $this;
}
/**
* Sets "bcc" recipients
*
* @param string|array|null $bcc
* @return $this
*/
protected function setBcc($bcc = null)
{
$this->bcc = $this->resolveEmail($bcc);
return $this;
}
/**
* Sets the "beforeSend" callback
*
* @param \Closure|null $beforeSend
* @return self
*/
protected function setBeforeSend(?Closure $beforeSend = null)
{
$this->beforeSend = $beforeSend;
return $this;
}
/**
* Sets "cc" recipients
*
* @param string|array|null $cc
* @return self
*/
protected function setCc($cc = null)
{
$this->cc = $this->resolveEmail($cc);
return $this;
}
/**
* Sets the "from" email address
*
* @param string $from
* @return self
*/
protected function setFrom(string $from)
{
$this->from = $this->resolveEmail($from, false);
return $this;
}
/**
* Sets the "from" name
*
* @param string|null $fromName
* @return self
*/
protected function setFromName(string $fromName = null)
{
$this->fromName = $fromName;
return $this;
}
/**
* Sets the "reply to" email address
*
* @param string|null $replyTo
* @return self
*/
protected function setReplyTo(string $replyTo = null)
{
$this->replyTo = $this->resolveEmail($replyTo, false);
return $this;
}
/**
* Sets the "reply to" name
*
* @param string|null $replyToName
* @return self
*/
protected function setReplyToName(string $replyToName = null)
{
$this->replyToName = $replyToName;
return $this;
}
/**
* Sets the email subject
*
* @param string $subject
* @return self
*/
protected function setSubject(string $subject)
{
$this->subject = $subject;
return $this;
}
/**
* Sets the recipients of the email
*
* @param string|array $to
* @return self
*/
protected function setTo($to)
{
$this->to = $this->resolveEmail($to);
return $this;
}
/**
* Sets the email transport settings
*
* @param array|null $transport
* @return self
*/
protected function setTransport($transport = null)
{
$this->transport = $transport;
return $this;
}
/**
* Returns the email subject
*
* @return string
*/
public function subject(): string
{
return $this->subject;
}
/**
* Returns the email recipients
*
* @return array
*/
public function to(): array
{
return $this->to;
}
/**
* Returns the email transports settings
*
* @return array
*/
public function transport(): array
{
return $this->transport ?? $this->defaultTransport();
}
}
|
<?php
/**
* Kima Model Mongo
* @author Steve Vega
*/
namespace Kima\Model;
use Kima\Database;
/**
* Mongo
* Mongo Model Class
*/
class Mongo implements IModel
{
/**
* Gets the table name format for the database
* @param string $table
* @param string $database
* @param string $prefix
* @return string
*/
public function get_table($table, $database = '', $prefix = '');
/**
* Gets the join syntax for the query
* @param string $table
* @param string $key
* @param string $join_key
* @param string $database
* @return string
*/
public function get_join($table, $key, $join_key = '', $database = '');
/**
* Gets the order syntax for the query
* @param string $field
* @param string $order
* @return string
*/
public function get_order($field, $order = 'ASC');
/**
* Prepares the fields for a fetch query
* @param array $fields
* @return string
*/
public function prepare_fetch_fields(array $fields);
/**
* Prepares the fields for a save query
* @param array $fields
* @return string
*/
public function prepare_save_fields(array $fields);
/**
* Prepares query joins
* @param array $joins
* @return string
*/
public function prepare_joins(array $joins);
/**
* Prepares query filters
* @param array $filters
* @return string
*/
public function prepare_filters(array $filters);
/**
* Prepares query grouping
* @param array $group
* @return string
*/
public function prepare_group(array $group);
/**
* Prepares query order values
* @param array $order
* @return string
*/
public function prepare_order(array $order);
/**
* Prepares query limit
* @param $limit
* @param $start
* @return string
*/
public function prepare_limit($limit = 0, $start = 0);
/**
* Gets fetch query
* @param array $params
* @return string
*/
public function get_fetch_query(array $params);
/**
* Gets update query
* @param array $params
* @return string
*/
public function get_update_query(array $params);
/**
* Gets insert/update query
* @param array $params
* @return string
*/
public function get_put_query(array $params);
/**
* Gets delete query
* @param array $params
* @return string
*/
public function get_delete_query(array $params);
}
|
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
//use App\Message;
//use App\User;
class Conversation extends Model
{
protected $fillable = ['first_user_id', 'second_user_id', 'is_accepted'];
public $appends = ['last_message', 'has_unread'];
public function sender()
{
return $this->belongsTo(User::class, 'first_user_id');
}
public function receiver()
{
return $this->belongsTo(User::class, 'second_user_id');
}
public function hasAccepted()
{
foreach($this->messages as $message){
if($message->seen===0 && ($message->user_id !== \Auth::user()->id)) return true;
}
return false;
}
public function getHasUnreadAttribute()
{
foreach($this->messages as $message) {
if($message->seen === 0 && ($message->user_id !== \Auth::user()->id)) return $message->count();
}
return false;
}
public function getLastMessageAttribute()
{
return $this->messages()->orderBy('created_at','DESC')->take(1)->get();
}
public function messages()
{
return $this->hasMany(Message::class);
}
}
|
<?php
return [
'test-00066-03902' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.0; rv:36.0.4) Gecko/20100101 Firefox/36.0.4 anonymized by Abelssoft 550093145',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Windows NT 6.0',
'Platform_Marketingname' => 'Windows Vista',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00066-03903' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.0.3; HTC Sensation XL with Beats Audio X315e Build/IML74K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.81 Mobile Safari/537.36 OPR/28.0.1764.90386',
'properties' => [
'Browser_Name' => 'Opera Mobile',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '28.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.0.3',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Sensation',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'Z710',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03904' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:36.0.4) Gecko/20100101 Firefox/36.0.4 anonymized by Abelssoft 366451000',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00066-03905' => [
'ua' => 'Firefox/36.0.4 (x86 de); anonymized by Abelssoft 414524916',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Windows',
'Platform_Marketingname' => 'Windows',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00066-03906' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; NP06; BRI/2; AskTbAVR-4/5.15.31.57710)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03907' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.0; rv:36.0.4) Gecko/20100101 Firefox/36.0.4 anonymized by Abelssoft 992420593',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Windows NT 6.0',
'Platform_Marketingname' => 'Windows Vista',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00066-03908' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:36.0) Gecko/20100101 Firefox/36.0 anonymized by Abelssoft 1415205956',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00066-03909' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.1.2; de-de; LG-P880 Build/JZO54K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 ACHEETAHI/2100501074',
'properties' => [
'Browser_Name' => 'CM Browser',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Cheetah Mobile',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.1.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00066-03910' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.1.2; B15 Build/JZO54K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.1.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03911' => [
'ua' => 'Mozilla/5.0 (iPad; CPU OS 8_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) GSA/5.0.41735 Mobile/12D508 Safari/600.1.4',
'properties' => [
'Browser_Name' => 'Google App',
'Browser_Type' => 'Application',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '5.0',
'Platform_Codename' => 'iOS',
'Platform_Marketingname' => 'iOS',
'Platform_Version' => '8.2.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'iPad',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'iPad',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00066-03912' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; fi-fi; SAMSUNG GT-I9515 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.5 Chrome/28.0.1500.94 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '1.5',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S4 Value Edition',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I9515',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03913' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.22 anonymized by Abelssoft 988959185',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '39.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03914' => [
'ua' => 'Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9205 Build/KOT49H)',
'properties' => [
'Browser_Name' => 'Dalvik',
'Browser_Type' => 'Application',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Mega 6.3',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I9205',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00066-03915' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0; openframe/31.0.1650.0) like Gecko',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '11.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03916' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 5.0; hu-hu; LG-D855 Build/LRX21R.A1421650137) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/34.0.1847.118 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'G2',
'Device_Maker' => 'LG',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'D855',
'Device_Brand_Name' => 'LG',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03917' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.2.2; Gigaset QV1030 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.34 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03918' => [
'ua' => 'webinatorbot 1.1; +http://www.webinator.de',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'unknown',
'Platform_Marketingname' => 'unknown',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'unknown',
'Platform_Brand_Name' => 'unknown',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => null,
'Device_Pointing_Method' => null,
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00066-03919' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; LG-D620 Build/KOT49I.A1395545709) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.89 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '40.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'D620',
'Device_Maker' => 'LG',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'D620',
'Device_Brand_Name' => 'LG',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03920' => [
'ua' => 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '2.0',
'Platform_Codename' => 'Mac OS X',
'Platform_Marketingname' => 'Mac OS X',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'Macintosh',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Macintosh',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00066-03921' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.4; GT-I9505G Build/KTU84P.S001) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S4',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I9505G',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03922' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.89 Safari/537.36 OPR/28.0.1750.48 (Edition Campaign 48)',
'properties' => [
'Browser_Name' => 'Opera',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '28.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03923' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.4; GT-I9300 Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S III',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I9300',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03924' => [
'ua' => 'Opera/9.80 (Windows NT 6.1; U; en) Presto/2.10.229 Version/11.61',
'properties' => [
'Browser_Name' => 'Opera',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '11.61',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Presto',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Opera Software ASA',
],
],
'test-00066-03925' => [
'ua' => 'Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.6) Gecko/20100625 Firefox/10.0.2 (de) Anonymisiert durch AlMiSoft Browser-Maulkorb 82088199',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '10.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00066-03926' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; Win64; x64; Trident/7.0; .NET4.0E; .NET4.0C; InfoPath.3; ms-office; MSOffice 15)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03927' => [
'ua' => 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 GTB7.0 (.NET CLR 3.5.30729)',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '3.0',
'Platform_Codename' => 'Windows NT 6.0',
'Platform_Marketingname' => 'Windows Vista',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00066-03928' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 9.0; Trident/5.0; Windows 98; Alexa Toolbar; Maxthon; ZangoToolbar 1.0.15)',
'properties' => [
'Browser_Name' => 'Maxthon',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows 98',
'Platform_Marketingname' => 'Windows 98',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03929' => [
'ua' => 'Mozilla/5.0 (compatible; MSIE 9.0; Trident/5.0; Windows 98; MEGAUPLOAD 9.9.37)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '9.0',
'Platform_Codename' => 'Windows 98',
'Platform_Marketingname' => 'Windows 98',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03930' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; HPNTDF; .NET4.0C; BRI/2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0E; MSOffice 12)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03931' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.3; ; ; ;s093e798;hoch)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 5.2',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03932' => [
'ua' => 'Opera/9.80 (Android; Opera Mini/7.5.35613/36.1487; U; de) Presto/2.12.423 Version/12.16',
'properties' => [
'Browser_Name' => 'Opera',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '12.16',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Presto',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Opera Software ASA',
],
],
'test-00066-03933' => [
'ua' => 'Mozilla/5.0 (X11; CrOS x86_64 6812.52.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.60 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '42.0',
'Platform_Codename' => 'ChromeOS',
'Platform_Marketingname' => 'ChromeOS',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03934' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 2.3.3; tr-tr; SAMSUNG GT-I9100/I9100BUKG2 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '2.3.3',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S II',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I9100',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00066-03935' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; HTC One_M8 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One M8',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M8',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03936' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:36.0.4) Gecko/20100101 Firefox/36.0.4 anonymized by Abelssoft 535911286',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00066-03937' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/40.0.2214.94 Safari/537.22 anonymized by Abelssoft 1427657112',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '40.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03938' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; ro-ro; SAMSUNG GT-I9505/I9505XXUGNG8 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.5 Chrome/28.0.1500.94 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '1.5',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S4',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I9505',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03939' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.0; ko-kr; SAMSUNG SM-G900F Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Version/2.1 Chrome/34.0.1847.76 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '2.1',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S5 LTE',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SM-G900F',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03940' => [
'ua' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2353.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '43.0',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03941' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.2.2; GT-I9192 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S4 Mini Duos',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I9192',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03942' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; BTRS100021; GTB7.5; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0E; .NET4.0C; InfoPath.2)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03943' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:36.0) Gecko/20100101 Firefox/36.0 anonymized by Abelssoft 1907506138',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00066-03944' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; InfoPath.3; ms-office; MSOffice 14)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03945' => [
'ua' => 'Mozilla/5.0 (compatible; Image2play/0.1; +http://image2play.com/)',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'unknown',
'Platform_Marketingname' => 'unknown',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'unknown',
'Platform_Brand_Name' => 'unknown',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => null,
'Device_Pointing_Method' => null,
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00066-03946' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.3; .NET4.0C; .NET4.0E; ms-office; MSOffice 14)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03947' => [
'ua' => 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.38 Safari/532.0',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '3.0',
'Platform_Codename' => 'Windows NT 6.0',
'Platform_Marketingname' => 'Windows Vista',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00066-03948' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.22 anonymized by Abelssoft 555453371',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03949' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; BTRS98811; GTB7.5; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; BRI/2; .NET CLR 2.0.50727; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0E)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03950' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.3; ; ; ;s093o149;hoch)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 5.2',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03951' => [
'ua' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.39 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '42.0',
'Platform_Codename' => 'Mac OS X',
'Platform_Marketingname' => 'Mac OS X',
'Platform_Version' => '10.8.5',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'Macintosh',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Macintosh',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03952' => [
'ua' => 'Mozilla/5.0 (X11; Linux x86_64) KHTML/4.14.3 (like Gecko) Konqueror/4.14',
'properties' => [
'Browser_Name' => 'Konqueror',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.14',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00066-03953' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.0.2; XT1068 Build/LXB22.46-28.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.81 Mobile Safari/537.36 OPR/28.0.1764.90386',
'properties' => [
'Browser_Name' => 'Opera Mobile',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '28.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.0.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Moto G Dual SIM (2nd gen)',
'Device_Maker' => 'Motorola',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'XT1068',
'Device_Brand_Name' => 'Motorola',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03954' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36 Vivaldi/1.0.118.19',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '40.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03955' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; IPMS/27200164-15177A05E4E-000000523051; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; MS-RTC LM 8; Tablet PC 2.0; ms-office; MSOffice 14)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03956' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; IPMS/27200164-15177A05E4E-000000523051; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; MS-RTC LM 8; Tablet PC 2.0; ms-office; MSOffice 14),gzip(gfe)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03957' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.1.2; B943 Build/JZO54K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.61 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '42.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.1.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03958' => [
'ua' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/60B4E9',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03959' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.1.2; de-de; ZTE Blade G Build/JZO54K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 ACHEETAHI/2100501074',
'properties' => [
'Browser_Name' => 'CM Browser',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Cheetah Mobile',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.1.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00066-03960' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; ms-office; MSOffice 14)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03961' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; MRA 4.4 (build 01348))',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '5.01',
'Platform_Codename' => 'Windows NT 5.0',
'Platform_Marketingname' => 'Windows 2000',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00066-03962' => [
'ua' => 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20050603 Netscape/8.0.2',
'properties' => [
'Browser_Name' => 'Netscape',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 5.0',
'Platform_Marketingname' => 'Windows 2000',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00066-03963' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.2; rv:36.0) Gecko/20100101 Firefox/36.0 anonymized by Abelssoft 1263557051',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00066-03964' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 4.5; Mac_PowerPC)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.5',
'Platform_Codename' => 'Macintosh',
'Platform_Marketingname' => 'Macintosh',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00066-03965' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; ms-office; MSOffice 14)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03966' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2202.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '40.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03967' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; AskTbAVR-W1/5.12.5.17700; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03968' => [
'ua' => 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.8) Gecko/20100723 SUSE/3.6.8-0.1.1 Firefox/3.6.8',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '3.6',
'Platform_Codename' => 'Suse Linux',
'Platform_Marketingname' => 'Suse Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Suse',
'Platform_Brand_Name' => 'Suse',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00066-03969' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.2.1; hu-hu; Cynus T5 Build/JOP40D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00066-03970' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.4.4; de-de; D5803 Build/23.0.A.2.98) AppleWebKit/537.16 (KHTML, like Gecko) Version/4.0 Mobile Safari/537.16',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Xperia Z3 Compact',
'Device_Maker' => 'Sony',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'D5803',
'Device_Brand_Name' => 'Sony',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00066-03971' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.3; it-it; Galaxy Nexus Build/JWR66Y) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.3.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Nexus',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'Galaxy Nexus',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00066-03972' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.2.2; GT-S7275R Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Ace 3 LTE',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-S7275R',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03973' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.2; rv:36.0.4) Gecko/20100101 Firefox/36.0.4 anonymized by Abelssoft 730273882',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00066-03974' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; nxforms/1.00; .NET CLR 1.1.4322)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '6.0',
'Platform_Codename' => 'Windows NT 5.0',
'Platform_Marketingname' => 'Windows 2000',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00066-03975' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; InfoPath.3)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 5.2',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03976' => [
'ua' => 'Mozilla/5.0 (X11; U; Linux x86_64; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '3.0',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00066-03977' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.112 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '33.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00066-03978' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; eSobiSubscriber 2.0.4.16; MAAR; .NET4.0C; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; AskTbMGX/5.15.15.35882; .NET4.0E)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03979' => [
'ua' => 'Curl/PHP 5.4.39 (http://github.com/shuber/curl)',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'unknown',
'Platform_Marketingname' => 'unknown',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'unknown',
'Platform_Brand_Name' => 'unknown',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => null,
'Device_Pointing_Method' => null,
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00066-03980' => [
'ua' => 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '10.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03981' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MyIE2)',
'properties' => [
'Browser_Name' => 'Maxthon',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00066-03982' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar4.5.3.0)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '6.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00066-03983' => [
'ua' => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/528.10 (KHTML, like Gecko) Chrome/2.0.157.2 Safari/528.10',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '2.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00066-03984' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/4.0; FDM; MSIECrawler; Media Center PC 5.0)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '9.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03985' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/5.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; BOIE9;DEAT)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.0',
'Platform_Marketingname' => 'Windows Vista',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00066-03986' => [
'ua' => 'Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '6.0',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
];
|
<?php
/*
* This file is part of SplashSync Project.
*
* Copyright (C) Splash Sync <www.splashsync.com>
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Splash\Tasking\Tools;
/**
* Description of Timer
*
* @author Sammy Guergachi <sguergachi at gmail.com>
*/
class Timer
{
/**
* Pause Delay When Inactive in Milliseconds
*
* => Default = 50Ms
*
* @var int
*/
const STANDBY_MIN = 50;
/**
* First Step for Stand by Increase
* => Default = 500Ms
*
* @var int
*/
const STANDBY_IDLE = 500;
/**
* Second & Max Step for Stand by Increase
* => Default = 1000Ms
*
* @var float
*/
const STANDBY_MAX = 1E3;
/**
* Pause Delay When Inactive in Miliseconds
*
* => Default = 50Ms
*
* @var int
*/
private static int $standBy = 0;
/**
* MicroTime when Last Task started
*
* @var float
*/
private static float $startedAt = 0.0;
/**
* Execute a Millisecond Pause
*
* @param int $msDelay
*/
public static function msSleep(int $msDelay): void
{
usleep((int) ($msDelay * 1E3));
}
/**
* This Tempo Function is Called when Worker loop was completed without Job Execution.
*
* Each Time We Increase Wait Period Between Two Loops
* => On first Loops => Minimum Pause
* => On next Loops => Pause is increased until a 1 Second
* => Not to overload Proc & SQL Server for nothing!
* => When a task is executed, StandByUs is cleared
*/
public static function idleStandBy(): void
{
//====================================================================//
// Do The Pause
self::msSleep(self::$standBy);
//====================================================================//
// 500 First Ms => Wait 50 Ms More Each Loop
if (self::$standBy < self::STANDBY_IDLE) {
self::$standBy += 25;
}
//====================================================================//
// 500 Ms to 1 Second => Wait 100 Ms More Each Loop
if ((self::STANDBY_IDLE <= self::$standBy) && (self::$standBy < self::STANDBY_MAX)) {
self::$standBy += 2 * self::STANDBY_MIN;
}
}
/**
* Check if Worker is IDLE (Waiting for more than 500Ms).
*
* @return bool
*/
public static function isIdle(): bool
{
return self::$standBy > self::STANDBY_IDLE;
}
/**
* Clear Worker Loop Standby Counter.
*/
public static function clearStandBy(): void
{
self::$standBy = self::STANDBY_MIN;
}
/**
* Store MicroTime when Task Started
*/
public static function start(): void
{
self::$startedAt = microtime(true);
}
/**
* This Tempo Function is Called when Worker Loop was completed with Job Execution.
* Ensure a Minimal Task Time of 50Ms
*/
public static function wipStandBy(): void
{
//====================================================================//
// Evaluate Task Execution delay in Us
$usDelta = round((microtime(true) - self::$startedAt));
//====================================================================//
// Evaluate Remaining Ms to 50Ms
$msPause = self::STANDBY_MIN - ($usDelta * 1E3);
if ($msPause > 0) {
self::msSleep((int) $msPause);
}
}
}
|
<?php
namespace App\Http\Controllers\Admin\Import;
use App\Models\User;
use App\Models\Category;
use App\Models\Product;
use App\Models\ImportData;
use Illuminate\Support\Facades\Hash;
use App\Http\Requests\StoreCsvUploadRequest;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class ImportController extends Controller
{
public function viewUsers()
{
$users = User::all();
return view('admin.importsCsv.users', compact('users'));
}
public function importUsers(StoreCsvUploadRequest $request)
{
// Convertir un string con formato CSV a un array y llamar los elementos
// de la colección
$arrays = collect(array_map('str_getcsv', file($request->file('csvFile')->getRealPath())));
// Obtener los encabezados
$headerRow = $arrays->shift();
foreach ($arrays as $array)
{
$array = array_combine($headerRow, $array);
$insertData = [
'username' => $array['username'],
'name' => $array['name'],
'email' => $array['email'],
'password' => Hash::make($array['password']),
];
ImportData::insertDataUsers($insertData);
}
alert()->success('La información se importó exitosamente.');
return redirect()->back();
}
public function viewCategories()
{
$categories = Category::all();
return view('admin.importsCsv.categories', compact('categories'));
}
public function importCategories()
{
// Validación del archivo
request()->validate([
'csvFile' => 'required|mimes:csv,txt'
]);
// Ruta al archivo
$path = request()->file('csvFile')->getRealPath();
// Ver el contenido del archivo
//$content = file_get_contents($path);
//return str_getcsv($content);
// file() - Devuelve un arreglo con cada una de las filas
$file = file($path);
// array_slice — Extraer una parte de un array o eliminar la primera línea (Encabezados)
//$headerRow = array_slice($file, 1);
// Leer los datos Csv de una matriz
$data = array_map('str_getcsv', $file);
// Quitar un elemento del inicio del array (Encabezados de las columnas)
array_shift($data);
// Imprmir el listado Clave-Valores
// array_walk - Aplicar una función proporcionada por el usuario a cada fila del array
// array_combine — Crea un nuevo array, usando una matriz
// para las claves y otra para sus valores
/* array_walk($data, function(&$headerRow) use($data) {
$headerRow = array_combine($data[0], $headerRow);
});
array_shift($data);
return $data; */
// Recorrer los datos
foreach($data as $row) {
// array_shift — Quitar la fila de los encabezados
// Si el campo único no existe, crear el registro, de lo contrario actualizarlo
Category::updateOrCreate([
'name' => $row[0],
],
[
'name' => $row[0],
'url' => $row[1],
]
);
}
return redirect()->route('import.categories')
->with('success', 'Importado satisfactoriamente!.');
}
public function viewProducts()
{
$products = Product::with('category')->get();
return view('admin.importsCsv.products', compact('products'));
}
public function importProducts()
{
// Validación del archivo
request()->validate([
'csvFile' => 'required|mimes:csv,txt'
]);
// Ruta al archivo
$path = request()->file('csvFile')->getRealPath();
// Aplicar la función de (array_map) convertir el string con formato Csv
// a un arreglo, leer cada línea y devolverlo en un arreglo
$array = array_map('str_getcsv', file($path));
// Quitar los encabezados
array_shift($array); // $headerRow = array_shift($array);
// Recorrer el archivo, verificar si el campo único existe, actualizarlo,
// de lo contrario crearlo
foreach ($array as $row) {
Product::updateOrCreate(
['title' => $row[2]],
[
'title' => $row[2],
'url' => $row[3],
'description' => $row[4],
'category_id' => $this->getCategoryId($row[0], $row[1]),
]
);
}
return redirect()->route('import.relatedTables.products')
->with('success', 'Importado satisfactoriamente!.');
}
public function getCategoryId($categoryName, $categoryUrl)
{
// Buscar la primera coincidencia
$category = Category::where('name', $categoryName)->first();
// Si existe la Categoría, obtener el id, de lo contrario crear el registro
if ($category) {
return $category->id;
}
// Crear las Categorías
$category = new Category();
$category->name = $categoryName;
$category->url = $categoryUrl;
$category->save();
return $category->id;
}
// Importar archivos grandes
// https://daveismyname.blog/laravel-import-large-csv-file
public function importViewCategories()
{
$categories = Category::all();
// Establecer una matriz vacía
$records = [];
// Ruta donde se almacenan los archivos Csv
$path = base_path('public/dataImport/pendingCategories');
// Recorrer cada archivo
foreach (glob($path.'/*.csv') as $file) {
// Abrir el archivo y agregar el número total de líneas a la matriz de registros
$file = new \SplFileObject($file, 'r');
$file->seek(PHP_INT_MAX);
$records[] = $file->key();
}
// Suma todas las teclas de matriz para obtener el total
$toImport = array_sum($records);
return view('admin.importsData.importCategories', compact('toImport', 'categories'));
}
public function importLarge()
{
request()->validate([
'file' => 'required|mimes:csv,txt'
]);
// Ruta al archivo
$path = request()->file('file')->getRealPath();
// file() - Devuelve un arreglo con cada una de las filas
$file = file($path);
// array_slice — Extraer una parte de un array
// Eliminar la primera línea (Encabezados)
$data = array_slice($file, 1);
// array_chunk — Divide un array en fragmentos
// Recorrer el archivo y dividir cada uno en 1000 líneas
$parts = (array_chunk($data, 1000));
$i = 1;
foreach($parts as $line) {
$filename = base_path('public/dataImport/pendingCategories/'.date('y-m-d-H-i-s').$i.'.csv');
// file_put_contents — Escribir datos en un fichero
file_put_contents($filename, $line);
$i++;
}
session()->flash('status', 'En cola para importar.');
return redirect('admin/importView/categories');
}
} |
<?
class ViewAllOrder implements IteratorAggregate {
private $no = 0;
private $relNo = array( 0 );
private $orderNo = array( 0 );
private $depth = 0;
private $currentData = null;
private $data = array();
function __construct() {
}
function getTitleNo() {
return implode( '.', $this->orderNo );
}
function getTree() {
return new MadTree( $this->data );
}
function getData() {
return $this->data;
}
function getCurrent() {
return $this->currentData;
}
function getIterator() {
return new ArrayIterator( $this->data );
}
function add( $title, $page ) {
$orderNo = ++ $this->orderNo[ $this->depth ];
$this->currentData = array(
'no' => $this->no,
'relNo' => $this->relNo[$this->depth],
'titleNo' => $this->getTitleNo(),
'orderNo' => $orderNo,
'title' => $title,
'page' => $page,
);
++ $this->no;
$this->data[] = $this->currentData;
return $this;
}
function in() {
array_push( $this->orderNo, 0 );
array_push( $this->relNo, $this->no );
++ $this->depth;
}
function out() {
array_pop( $this->orderNo );
array_pop( $this->relNo );
-- $this->depth;
}
function __toString() {
$rv = '';
if ( $this->currentData ) {
$rv = $this->getTitleNo() . '. ' . $this->currentData['title'];
}
return $rv;
}
}
|
<?php
declare(strict_types=1);
use DI\ContainerBuilder;
use Monolog\Logger;
return function (ContainerBuilder $containerBuilder) {
$containerBuilder->addDefinitions(
[
'settings' => [
'debug' => env('APP_DEBUG', false),
'displayErrorDetails' => env("DISPLAY_ERROR_DETAILS", false),
'logger' => [
'name' => env('APP_NAME', 'JEXServer'),
'path' => isset($_ENV['docker'])
? 'php://stdout'
: __DIR__.'/../var/logs/app.log',
'level' => Logger::DEBUG,
],
],
'jexserver' => [
'name' => env('JEX_SERVER_NAME', 'JEXServer'),
'description' => env('JEX_SERVER_DESCRIPTION', 'Joomla Extension Update Server'),
'extensions' => explode(',', env('JEX_SERVER_EXTENSIONS', '')),
],
'services' => [
'github' => [
'uri' => env('GITHUB_URI', 'https://api.github.com/'),
'token' => env('GITHUB_TOKEN'),
'account' => env('GITHUB_ACCOUNT'),
],
],
]
);
};
|
<?php
declare(strict_types=1);
namespace ShikimoriAPI;
class ShikimoriAPIAuthException extends ShikimoriAPIException
{
public const INVALID_CLIENT = 'Invalid client';
public const INVALID_CLIENT_SECRET = 'Invalid client secret';
public const INVALID_REFRESH_TOKEN = 'Invalid refresh token';
public function hasInvalidCredentials(): bool
{
return in_array($this->getMessage(), [
self::INVALID_CLIENT,
self::INVALID_CLIENT_SECRET,
]);
}
public function hasInvalidRefreshToken(): bool
{
return $this->getMessage() === self::INVALID_REFRESH_TOKEN;
}
}
|
<?php
namespace Tribe;
use Tribe__Dependency as Dependency;
use Tribe__PUE__Checker;
include codecept_data_dir( 'classes/Dependency/Eventbrite.php' );
include codecept_data_dir( 'classes/Dependency/Filterbar.php' );
include codecept_data_dir( 'classes/Dependency/Pro.php' );
class DependencyTest extends \Codeception\TestCase\WPTestCase {
/**
* @return Dependency
*/
protected function make_instance() {
return new Dependency();
}
/**
* @test
*/
public function should_be_instantiable() {
$this->assertInstanceOf( Dependency::class, $this->make_instance() );
}
public function validClassToPueProvider() {
$data = [
[
'Tribe__Events__Pro__Main',
[
'pue_slug' => 'events-calendar-pro',
'plugin_file' => '/events-calendar-pro/events-calendar-pro.php',
],
'Tribe__Events__Filterbar__View',
[
'pue_slug' => 'tribe-filterbar',
'plugin_file' => '/the-events-calendar-filter-view/the-events-calendar-filter-view.php',
],
'Tribe__Events__Tickets__Eventbrite__Main',
[
'pue_slug' => 'tribe-eventbrite',
'plugin_file' => '/tribe-eventbrite/tribe-eventbrite.php',
],
],
];
return $data;
}
/**
* @test
* @dataProvider validClassToPueProvider
*/
public function should_return_pue_checker_for_main_classes( $class_name, $expected ) {
$dependency = $this->make_instance();
$pue = $dependency->get_pue_from_class( $class_name );
$this->assertInstanceOf( Tribe__PUE__Checker::class, $pue );
$this->assertEquals( $pue->get_slug(), $expected['pue_slug'] );
$this->assertContains( $pue->get_plugin_file(), $expected['plugin_file'] );
}
public function invalidClassToPueProvider() {
$data = [
[
'not_a_class_but_string',
],
[
1,
],
[
[],
],
[
'stdClass',
],
[
'Tribe__Events__PUE_Invalid',
],
];
return $data;
}
/**
* @test
* @dataProvider invalidClassToPueProvider
*/
public function should_not_return_pue_check_for_invalid_classes( $class_name ) {
$dependency = $this->make_instance();
$pue = $dependency->get_pue_from_class( $class_name );
$this->assertFalse( $pue );
}
public function dependency_matrix() {
$one = [
'file_path' => codecept_data_dir( '/dependency/plugins/one/plugin.php' ),
'main_class' => 'Tribe_One',
'version' => '2.0.0',
'classes_req' => [],
'dependencies' => [
'addon-dependencies' => [
'Tribe_Two' => '2.0.0',
'Tribe_Three' => '2.0.0',
'Tribe_Four' => '2.0.0',
],
],
];
$two = [
'file_path' => codecept_data_dir( '/dependency/plugins/two/plugin.php' ),
'main_class' => 'Tribe_Two',
'version' => '2.0.0',
'classes_req' => [],
'dependencies' => [
'parent-dependencies' => [
'Tribe_One' => '2.0.0',
],
],
];
$three = [
'file_path' => codecept_data_dir( '/dependency/plugins/three/plugin.php' ),
'main_class' => 'Tribe_Three',
'version' => '2.0.0',
'classes_req' => [],
'dependencies' => [
'parent-dependencies' => [
'Tribe_One' => '2.0.0',
],
],
];
$four = [
'file_path' => codecept_data_dir( '/dependency/plugins/four/plugin.php' ),
'main_class' => 'Tribe_Four',
'version' => '2.0.0',
'classes_req' => [],
'dependencies' => [
'parent-dependencies' => [
'Tribe_One' => '2.0.0',
],
],
];
$five = [
'file_path' => codecept_data_dir( '/dependency/plugins/five/plugin.php' ),
'main_class' => 'Tribe_Five',
'version' => '2.0.0',
'classes_req' => [],
'dependencies' => [
'parent-dependencies' => [
'Tribe_One' => '2.0.0',
],
'co-dependencies' => [
'Tribe_Two' => '1.0.0',
]
],
];
yield 'All deps ok' => [
[
'one' => array_merge( $one, [
'should_initialize' => true,
'failure_message' => 'Plugin One should activate.',
] ),
'two' => array_merge( $two, [
'should_initialize' => true,
'failure_message' => 'Plugin Two should activate: its version satisfies One\'s requirements.',
] ),
'three' => array_merge( $three, [
'should_initialize' => true,
'failure_message' => 'Plugin Three should activate: its version satisfies One\'s requirements.',
] ),
],
];
yield 'Two version too low' => [
[
'one' => array_merge( $one, [
'should_initialize' => true,
'failure_message' => 'Plugin One should activate.',
] ),
'two' => array_merge( $two, [
'version' => '1.0.0',
'should_initialize' => false,
'failure_message' => 'Plugin Two should not activate: its version is too low.',
] ),
'three' => array_merge( $three, [
'should_initialize' => true,
'failure_message' => 'Plugin Three should activate: its version satisfies One\'s requirements.',
] ),
],
];
yield 'Three version too low' => [
[
'one' => array_merge( $one, [
'should_initialize' => true,
'failure_message' => 'Plugin One should activate.',
] ),
'two' => array_merge( $two, [
'should_initialize' => true,
'failure_message' => 'Plugin Two should activate: its version satisfies One\'s requirements.',
] ),
'three' => array_merge( $three, [
'version' => '1.0.0',
'should_initialize' => false,
'failure_message' => 'Plugin Three should not activate: its version is too low.',
] ),
],
];
yield 'Four version too low' => [
[
'one' => array_merge( $one, [
'should_initialize' => true,
'failure_message' => 'Plugin One should activate.',
] ),
'two' => array_merge( $two, [
'should_initialize' => true,
'failure_message' => 'Plugin Two should activate: its version satisfies One\'s requirements.',
] ),
'three' => array_merge( $three, [
'should_initialize' => true,
'failure_message' => 'Plugin Three should activate: its version satisfies One\'s requirements.',
] ),
'four' => array_merge( $four, [
'version' => '1.0.0',
'should_initialize' => false,
'failure_message' => 'Plugin Four should not activate: its version is too low.',
] ),
],
];
// @todo [BTRIA-585]: Fix the handling of co-dependencies!
// yield 'Two version too low and Five depends on Two.' => [
// [
// 'one' => array_merge( $one, [
// 'should_initialize' => true,
// 'failure_message' => 'Plugin One should activate.',
// ] ),
// 'two' => array_merge( $two, [
// 'version' => '1.0.0',
// 'should_initialize' => false,
// 'failure_message' => 'Plugin Two should not activate: its version is too low.',
// ] ),
// 'three' => array_merge( $three, [
// 'should_initialize' => true,
// 'failure_message' => 'Plugin Three should activate: its version satisfies One\'s requirements.',
// ] ),
// 'five' => array_merge( $five, [
// 'should_initialize' => false,
// 'failure_message' => 'Plugin Five should not activate: it depends on Two.',
// ] ),
// ],
// ];
}
/**
* It should activate other plugins if one is not fulfilling dependencies
*
* @dataProvider dependency_matrix
*/
public function test_activation_matrix( array $mock_plugins ) {
$dependency = new \Tribe__Dependency();
foreach ( $mock_plugins as $mock_plugin ) {
$dependency->register_plugin(
$mock_plugin['file_path'],
$mock_plugin['main_class'],
$mock_plugin['version'],
$mock_plugin['classes_req'],
$mock_plugin['dependencies']
);
}
foreach ( $mock_plugins as $mock_plugin ) {
$check_plugin = $dependency->check_plugin( $mock_plugin['main_class'] );
$this->assertEquals( $mock_plugin['should_initialize'], $check_plugin, $mock_plugin['failure_message'] );
}
}
}
|
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
/*
* Set up locale and locale_prefix if other language is selected
*/
if (in_array(Request::segment(1), Config::get('app.alt_langs'))) {
App::setLocale(Request::segment(1));
Config::set('app.locale_prefix', Request::segment(1));
// Session::set('currency', 'usd');
}
/*
* Set up route patterns - patterns will have to be the same as in translated route for current language
*/
foreach(Lang::get('url') as $k => $v) {
Route::pattern($k, $v);
}
// API
Route::group(['prefix' => 'api'], function() {
Route::resource('branch', 'BranchController');
Route::resource('city', 'CityController');
Route::resource('message', 'ContactController');
Route::resource('country', 'CountryController');
Route::resource('customer', 'CustomerController');
Route::resource('enquiry', 'EnquiryController');
Route::resource('locale', 'LocaleController');
Route::resource('log_customer', 'LogCustomerController');
Route::resource('log_user', 'LogUserController');
Route::resource('notification', 'NotificationController');
Route::resource('page', 'PageController');
Route::resource('page_locale', 'PageLocaleController');
Route::resource('page_meta', 'PageMetaController');
Route::resource('page_term', 'PageTermController');
Route::resource('post', 'PostController');
Route::resource('post_locale', 'PostLocaleController');
Route::resource('post_meta', 'PostMetaController');
Route::resource('post_term', 'PostTermController');
Route::resource('properties', 'PropertyController');
Route::resource('property_locale', 'PropertyLocaleController');
Route::resource('property_meta', 'PropertyMetaController');
Route::resource('property_term', 'PropertyTermController');
Route::resource('province', 'ProvinceController');
Route::resource('role', 'RoleController');
Route::resource('term', 'TermController');
Route::resource('testimony', 'TestimonyController');
Route::resource('user', 'UserController');
Route::resource('wishlist', 'WishlistController');
Route::resource('attachment', 'AttachmentController');
Route::resource('setting', 'SettingController');
Route::get('attachment/get/image', ['as' => 'api.attachment.get.image', 'uses' => 'AttachmentController@getImage']);
Route::post('upload/image', ['as' => 'api.attachment.upload.image', 'uses' => 'AttachmentController@uploadImage']);
Route::post('upload/file', ['as' => 'api.attachment.upload.file', 'uses' => 'AttachmentController@uploadFile']);
Route::post('sellproperty', ['as' => 'sellproperty.store', 'uses' => 'PropertyController@sellProperty']);
Route::post('property/delete/{id}', ['as' => 'api.property.delete', 'uses' => 'PropertyController@delete']);
Route::post('property_meta/thumb', ['as' => 'api.thumb.store', 'uses' => 'PropertyMetaController@thumb']);
});
// Back-End
Route::group(['middleware' => 'auth'], function () {
Route::group(['prefix' => 'admin'], function () {
// dashbord
Route::get('/',['as' => 'admin.home', 'uses' => 'AdminController@dashboard']);
Route::get('dashboard',['as' => 'admin.dashboard', 'uses' => 'AdminController@dashboard']);
// property
Route::get('properties/{term?}',['as' => 'admin.properties', 'uses' => 'AdminController@properties'])->where('term', '(.*)');
// enquiry
Route::get('enquiries/{term?}',['as' => 'admin.enquiries', 'uses' => 'AdminController@enquiries']);
// customer
Route::get('customers/{term?}',['as' => 'admin.customers', 'uses' => 'AdminController@customers']);
// Page
Route::get('pages/{term?}',['as' => 'admin.pages', 'uses' => 'AdminController@pages']);
// Post
Route::get('blog/{term?}',['as' => 'admin.posts', 'uses' => 'AdminController@posts']);
// my-account
Route::get('my-account',['as' => 'admin.my_account', 'uses' => 'AdminController@my_account']);
// accounts
Route::get('accounts',['as' => 'admin.accounts', 'uses' => 'AdminController@accounts']);
// branches
Route::get('branches',['as' => 'admin.branches', 'uses' => 'AdminController@branches']);
// setting
Route::get('settings',['as' => 'admin.setting', 'uses' => 'AdminController@settings']);
// about
Route::get('about',['as' => 'admin.about', 'uses' => 'AdminController@about']);
// PDF Export
Route::group(['prefix' => 'pdf'], function () {
Route::get('property/{id}', ['as' => 'admin.pdf.property', 'uses' => 'PdfController@property']);
});
});
});
// User Auth
Route::controllers([
'auth' => 'Auth\AuthController',
'password' => 'Auth\PasswordController',
]);
// Front-End
Route::group(['prefix' => Config::get('app.locale_prefix')], function() {
Session::set('currency', 'usd');
// customer
Route::get('{login}', ['as' => 'login', 'uses' => 'Auth\AuthController@getCustomerLogin']);
Route::post('{login}',['as' => 'login.attempt', 'uses' => 'Auth\AuthController@postLogin']);
Route::get('{logout}', ['as' => 'logout', 'uses' => 'Auth\AuthController@getLogout']);
Route::get('{register}', ['as' => 'register', 'uses' => 'Auth\AuthController@getCustomerRegister']);
Route::post('{register}',['as' => 'register.store', 'uses' => 'Auth\AuthController@postRegister']);
Route::get('email/{confirm}/{confirmation_code}', [
'as' => 'confirm',
'uses' => 'Auth\AuthController@confirm'
]);
Route::group(['middleware' => 'auth.customer'], function () {
Route::get('/{account}/', ['as' => 'account', 'uses' => 'CustomerController@account']);
Route::get('/{account}/{wishlist}', ['as' => 'account.wishlist', 'uses' => 'PagesController@accountWishlist'])
->where('wishlist', trans('url.wishlist'));
Route::get('/{account}/{setting}', ['as' => 'account.setting', 'uses' => 'PagesController@accountSetting'])
->where('wishlist', trans('url.setting'));
});
// home
Route::get('/',['as' => 'home', 'uses' => 'PageController@home']);
// about
Route::get('{about}',['as' => 'about', 'uses' => 'PageController@about']);
// contact
Route::any('{contact}',['as' => 'contact', 'uses' => 'PageController@contact']);
// testimony
Route::any('{testimonials}',['as' => 'testimonials', 'uses' => 'PageController@testimony']);
// sell_property
Route::get('{sell_property}',['as' => 'sell_property', 'uses' => 'PageController@sellProperty']);
// lawyer_notary
Route::any('{lawyer_notary}',['as' => 'lawyer_notary', 'uses' => 'PageController@lawyerNotary']);
// search
Route::get('{search}/{term?}',['as' => 'search', 'uses' => 'PropertyController@search'])->where('term', '(.*)');
// property
Route::get('{property}/{term?}',['as' => 'property', 'uses' => 'PropertyController@detail'])->where('term', '(.*)');
// post
Route::get('{blog}/{term?}',['as' => 'blog', 'uses' => 'PostController@detail'])->where('term', '(.*)');
// page
Route::get('{page?}',['as' => 'page', 'uses' => 'PageController@index']);
});
Route::group(['middleware' => 'auth'], function () {
Route::group(['prefix' => 'system/ajax'], function () {
Route::group(['prefix' => 'notifications'], function () {
Route::any('insert', 'AnalyticsController@insert');
Route::any('getall', 'AnalyticsController@index');
Route::any('getunread', 'AnalyticsController@getUnread');
});
Route::group(['prefix' => 'blog'], function () {
Route::any('index', 'BlogController@index');
Route::any('create', 'BlogController@create');
Route::get('retrieve/{id}', ['as' => 'id', 'uses' => 'BlogController@retrieve']);
Route::any('delete/{id}', ['as' => 'id', 'uses' => 'BlogController@destroy']);
});
Route::group(['prefix' => 'analytics'], function () {
Route::any('getall', 'AnalyticsController@getData');
});
Route::group(['prefix' => 'customer'], function () {
Route::any('login', 'CustomerController@login');
Route::any('register', 'CustomerController@register');
Route::any('get/{id}', 'CustomerController@show');
Route::any('store', 'CustomerController@store');
Route::any('destroy/{id}', 'CustomerController@destroy');
});
Route::group(['prefix' => 'testimony'], function () {
Route::any('get/{id}', 'CustomerController@showTestimony');
Route::any('store', 'CustomerController@storeTestimony');
Route::any('destroy/{id}', 'CustomerController@destroyTestimony');
});
Route::group(['prefix' => 'message'], function () {
Route::any('destroy/{id}', 'ContactController@destroy');
});
Route::group(['prefix' => 'property'], function () {
Route::any('translate/get/{id}', 'PropertiesController@getTranslate');
Route::any('translate/store', 'PropertiesController@storeTranslate');
Route::any('get/{id}', 'PropertiesController@show');
Route::any('store', 'PropertiesController@store');
Route::any('destroy/{id}', 'PropertiesController@destroy');
Route::any('image/destroy/{id}', 'PropertiesController@destroyImage');
Route::any('data/{category}/{status}/', 'PropertiesController@index');
});
Route::group(['prefix' => 'category'], function () {
Route::any('translate/get/{id}', 'CategoryController@getTranslate');
Route::any('translate/store', 'CategoryController@storeTranslate');
Route::any('get/{id}', 'CategoryController@show');
Route::any('store', 'CategoryController@store');
Route::any('destroy/{id}', 'CategoryController@destroy');
});
Route::group(['prefix' => 'inquiry'], function () {
Route::any('get/{id}', 'InquiryController@show');
Route::any('store', 'InquiryController@store');
Route::any('destroy/{id}', 'InquiryController@destroy');
});
Route::group(['prefix' => 'account'], function () {
Route::any('prepare', 'UserController@invite');
Route::any('store', 'UserController@store');
Route::any('update', 'UserController@update');
Route::any('profile/store', 'UserController@storeProfile');
Route::any('get/{id}', 'UserController@show');
Route::any('destroy/{id}', 'UserController@destroy');
});
Route::group(['prefix' => 'branch'], function () {
Route::any('store', 'BranchController@store');
Route::any('get/{id}', 'BranchController@show');
Route::any('destroy/{id}', 'BranchController@destroy');
});
Route::group(['prefix' => 'settings'], function () {
Route::group(['social' => 'general'], function () {
Route::any('get', 'SystemController@getGeneral');
Route::any('set', 'SystemController@setGeneral');
});
Route::group(['prefix' => 'social'], function () {
Route::any('get', 'SystemController@getSocial');
Route::any('set', 'SystemController@setSocial');
});
Route::group(['prefix' => 'currency'], function () {
Route::any('get', 'SystemController@getExchange');
Route::any('update', 'SystemController@updateExchange');
Route::any('set', 'SystemController@setExchange');
Route::any('auto/{state}', ['as' => 'state', 'uses' => 'SystemController@setExchangeAuto']);
});
Route::any('reindexdata', 'SystemController@reindexData');
Route::any('clearcache', 'SystemController@clearCache');
});
});
});
|
<?php
namespace App\Form;
use App\Entity\Tag;
use App\Entity\Event;
use App\Entity\Tribe;
use App\Repository\TagRepository;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Validator\Constraints\Count;
use Symfony\Component\OptionsResolver\OptionsResolver;
class EventTagType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
// $userTribeId from EventController
$tribe = $options['tribe'];
$builder
->add('tags', EntityType::class, [
'class' => Tag::class,
'query_builder' => function (TagRepository $tr) use ( $tribe ) {
return $tr->createQueryBuilder('t')
->where('t.tribe = :myTribe')
->setParameter('myTribe', $tribe)
;
},
//'choices' => $group->getTags(),
'choice_label' => 'title',
'label' => 'Tagger + de membres dans cet événement',
'expanded' => true,
'multiple' => true,
'constraints' => [
new Count([
'min' => 1,
'minMessage' => 'You must select at least {{ limit }} tags',
])
]
])
;
}
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'data_class' => Event::class,
]);
// Define required parameter 'tribe'
$resolver->setRequired('tribe');
$resolver->setAllowedTypes('tribe', array(Tribe::class, 'int'));
}
}
|
<?php
namespace Core\ShopMarketingBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Core\ShopMarketingBundle\Entity\Groupon;
use Core\ShopMarketingBundle\Form\GrouponType;
/**
* Groupon controller.
*
*/
class GrouponController extends Controller
{
/**
* Lists all Groupon entities.
*
*/
public function indexAction($product, $category = null)
{
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('CoreProductBundle:Product')->find($product);
if (!$entity) {
throw $this->createNotFoundException('Unable to find Product entity.');
}
$entities = $em->getRepository('CoreShopMarketingBundle:Groupon')->getProductGrouponsQueryBuilder($product)->getQuery()->getResult();
return $this->render('CoreShopMarketingBundle:Groupon:index.html.twig', array(
'entities' => $entities,
'category' => $category,
'product' => $entity,
));
}
/**
* Creates a new Groupon entity.
*
*/
public function createAction(Request $request, $product, $category = null)
{
$entity = new Groupon();
$form = $this->createCreateForm($entity, $product, $category);
$form->handleRequest($request);
if ($form->isValid()) {
$em = $this->getDoctrine()->getManager();
$productEntity = $em->getRepository('CoreProductBundle:Product')->find($product);
$entity->setProduct($productEntity);
$entity->recalculate(false);
$em->persist($entity);
$em->flush();
return $this->redirect($this->generateUrl('groupon', array('category' => $category, 'product' => $product)));
}
return $this->render('CoreShopMarketingBundle:Groupon:new.html.twig', array(
'entity' => $entity,
'form' => $form->createView(),
'category' => $category,
'product' => $product,
));
}
/**
* Creates a form to create a Groupon entity.
*
* @param Groupon $entity The entity
*
* @return \Symfony\Component\Form\Form The form
*/
private function createCreateForm(Groupon $entity, $product, $category = null)
{
$form = $this->createForm(new GrouponType(), $entity, array(
'action' => $this->generateUrl('groupon_create', array(
'category' => $category,
'product' => $product,)
),
'method' => 'POST',
));
// $form->add('submit', 'submit', array('label' => 'Create'));
return $form;
}
/**
* Displays a form to create a new Groupon entity.
*
*/
public function newAction($product, $category = null)
{
$entity = new Groupon();
$form = $this->createCreateForm($entity, $product, $category);
return $this->render('CoreShopMarketingBundle:Groupon:new.html.twig', array(
'entity' => $entity,
'form' => $form->createView(),
'category' => $category,
'product' => $product,
));
}
/**
* Finds and displays a Groupon entity.
*
*/
public function showAction($id)
{
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('CoreShopMarketingBundle:Groupon')->find($id);
if (!$entity) {
throw $this->createNotFoundException('Unable to find Groupon entity.');
}
$deleteForm = $this->createDeleteForm($id);
return $this->render('CoreProductBundle:Groupon:show.html.twig', array(
'entity' => $entity,
'delete_form' => $deleteForm->createView(), ));
}
/**
* Displays a form to edit an existing Groupon entity.
*
*/
public function editAction($id, $product, $category = null)
{
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('CoreShopMarketingBundle:Groupon')->find($id);
if (!$entity) {
throw $this->createNotFoundException('Unable to find Groupon entity.');
}
$editForm = $this->createEditForm($entity, $product, $category);
$deleteForm = $this->createDeleteForm($id, $product, $category);
return $this->render('CoreShopMarketingBundle:Groupon:edit.html.twig', array(
'entity' => $entity,
'edit_form' => $editForm->createView(),
'delete_form' => $deleteForm->createView(),
'category' => $category,
'product' => $product,
));
}
/**
* Creates a form to edit a Groupon entity.
*
* @param Groupon $entity The entity
*
* @return \Symfony\Component\Form\Form The form
*/
private function createEditForm(Groupon $entity, $product, $category = null)
{
$form = $this->createForm(new GrouponType(), $entity, array(
'action' => $this->generateUrl('groupon_update', array(
'id' => $entity->getId(),
'category' => $category,
'product' => $product
)),
'method' => 'PUT',
));
//$form->add('submit', 'submit', array('label' => 'Update'));
return $form;
}
/**
* Edits an existing Groupon entity.
*
*/
public function updateAction(Request $request, $id, $product, $category = null)
{
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('CoreShopMarketingBundle:Groupon')->find($id);
if (!$entity) {
throw $this->createNotFoundException('Unable to find Groupon entity.');
}
$deleteForm = $this->createDeleteForm($id, $product, $category);
$editForm = $this->createEditForm($entity, $product, $category);
$editForm->handleRequest($request);
if ($editForm->isValid()) {
$entity->recalculate(false);
$em->flush();
return $this->redirect($this->generateUrl('groupon_edit', array('id' => $id, 'category' => $category, 'product' => $product)));
}
return $this->render('CoreShopMarketingBundle:Groupon:edit.html.twig', array(
'entity' => $entity,
'edit_form' => $editForm->createView(),
'delete_form' => $deleteForm->createView(),
'category' => $category,
'product' => $product,
));
}
/**
* Deletes a Groupon entity.
*
*/
public function deleteAction(Request $request, $id, $ShopMarketing, $category = null)
{
$form = $this->createDeleteForm($id);
$form->handleRequest($request);
if ($form->isValid()) {
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('CoreShopMarketingBundle:Groupon')->find($id);
if (!$entity) {
throw $this->createNotFoundException('Unable to find Groupon entity.');
}
$em->remove($entity);
$em->flush();
}
return $this->redirect($this->generateUrl('groupon', array('category' => $category, 'product' => $product)));
}
/**
* Creates a form to delete a Groupon entity by id.
*
* @param mixed $id The entity id
*
* @return \Symfony\Component\Form\Form The form
*/
private function createDeleteForm($id, $product, $category = null)
{
return $this->createFormBuilder()
->setAction($this->generateUrl('groupon_delete', array(
'id' => $id,
'category' => $category,
'product' => $product
)))
->setMethod('DELETE')
//->add('submit', 'submit', array('label' => 'Delete'))
->getForm()
;
}
}
|
<?php
return [
/*
|--------------------------------------------------------------------------
| Merchant params
|--------------------------------------------------------------------------
|
|
*/
'merchant_id' => '107941',
'secret' => 'sq5f1kxe',
'secret2' => 'd0tb97gn',
/*
|--------------------------------------------------------------------------
| Wallet params
|--------------------------------------------------------------------------
|
|
*/
'wallet_id' => '',
'api_key' => '',
'default_lang' => 'ru',
'default_currency' => '133',
'cashout_currencies' =>[
'FK_WALLET_RUB' => '133',
'QIWI' => '63',
'QIWI_EURO' => '161',
'QIWI_USD' => '123',
'YANDEX_MONEY' => '45',
'QIWI_KZT' => '162',
'VISA_MASTERCARD_RUB' => '94',
'OOOPAY_RUR' => '106',
'OOOPAY_USD' => '87',
'OOOPAY_EUR' => '109',
'WEBMONEY_WMR' => '1',
'WEBMONEY_WMZ' => '2',
'PAYEER_RUB' => '114',
'PERFECT_MONEY_USD' => '64',
'PERFECT_MONEY_EUR' => '69',
'MEGAFON_MOBILE' => '82',
'MTS_MOBILE' => '84',
'TELE2_MOBILE' => '132',
'BEELINE_MOBILE' => '83',
'VISA_MASTERCARD_INT' => '158',
'VISA_UAH_CASHOUT' => '157',
'PAYPAL' => '70',
'ADVCASH_USD' => '136',
'ADVCASH_RUB' => '150'
],
'cashout_currencies_comission' =>[
'FK_WALLET_RUB' => 0,
'QIWI' => 4,
'QIWI_EURO' => 6,
'QIWI_USD' => 6,
'YANDEX_MONEY' => 0,
'QIWI_KZT' => 6,
'VISA_MASTERCARD_RUB' => 4,
'OOOPAY_RUR' => 1,
'OOOPAY_USD' => 1,
'OOOPAY_EUR' => 1,
'WEBMONEY_WMR' => 6,
'WEBMONEY_WMZ' => 8.5,
'PAYEER_RUB' => 4.5,
'PERFECT_MONEY_USD' => 7,
'PERFECT_MONEY_EUR' => 6.5,
'MEGAFON_MOBILE' => 1,
'MTS_MOBILE' => 1,
'TELE2_MOBILE' => 1,
'BEELINE_MOBILE' => 1,
'VISA_MASTERCARD_INT' => 3,
'VISA_UAH_CASHOUT' => 5,
'PAYPAL' => 3.5,
'ADVCASH_USD' => 8,
'ADVCASH_RUB' => 3
],
'include_comission' => true,
'crypto_currencies' => [
'btc',
'ltc',
'eth'
],
/*
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
| Список IP адресов с которых приходит колбек
|
*/
'ip_list' => [
'162.158.92.205',
'162.158.88.125',
'136.243.38.147',
'136.243.38.149',
'136.243.38.150',
'136.243.38.151',
'136.243.38.189',
'88.198.88.98'
],
];
|
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Manager_ReplicaPoolParamsV1Beta1 extends Google_Collection
{
protected $collection_key = 'serviceAccounts';
public $autoRestart;
public $baseInstanceName;
public $canIpForward;
public $description;
protected $disksToAttachType = 'Google_Service_Manager_ExistingDisk';
protected $disksToAttachDataType = 'array';
protected $disksToCreateType = 'Google_Service_Manager_NewDisk';
protected $disksToCreateDataType = 'array';
public $initAction;
public $machineType;
protected $metadataType = 'Google_Service_Manager_Metadata';
protected $metadataDataType = '';
protected $networkInterfacesType = 'Google_Service_Manager_NetworkInterface';
protected $networkInterfacesDataType = 'array';
public $onHostMaintenance;
protected $serviceAccountsType = 'Google_Service_Manager_ServiceAccount';
protected $serviceAccountsDataType = 'array';
protected $tagsType = 'Google_Service_Manager_Tag';
protected $tagsDataType = '';
public $zone;
public function setAutoRestart($autoRestart)
{
$this->autoRestart = $autoRestart;
}
public function getAutoRestart()
{
return $this->autoRestart;
}
public function setBaseInstanceName($baseInstanceName)
{
$this->baseInstanceName = $baseInstanceName;
}
public function getBaseInstanceName()
{
return $this->baseInstanceName;
}
public function setCanIpForward($canIpForward)
{
$this->canIpForward = $canIpForward;
}
public function getCanIpForward()
{
return $this->canIpForward;
}
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setDisksToAttach($disksToAttach)
{
$this->disksToAttach = $disksToAttach;
}
public function getDisksToAttach()
{
return $this->disksToAttach;
}
public function setDisksToCreate($disksToCreate)
{
$this->disksToCreate = $disksToCreate;
}
public function getDisksToCreate()
{
return $this->disksToCreate;
}
public function setInitAction($initAction)
{
$this->initAction = $initAction;
}
public function getInitAction()
{
return $this->initAction;
}
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
public function getMachineType()
{
return $this->machineType;
}
public function setMetadata(Google_Service_Manager_Metadata $metadata)
{
$this->metadata = $metadata;
}
public function getMetadata()
{
return $this->metadata;
}
public function setNetworkInterfaces($networkInterfaces)
{
$this->networkInterfaces = $networkInterfaces;
}
public function getNetworkInterfaces()
{
return $this->networkInterfaces;
}
public function setOnHostMaintenance($onHostMaintenance)
{
$this->onHostMaintenance = $onHostMaintenance;
}
public function getOnHostMaintenance()
{
return $this->onHostMaintenance;
}
public function setServiceAccounts($serviceAccounts)
{
$this->serviceAccounts = $serviceAccounts;
}
public function getServiceAccounts()
{
return $this->serviceAccounts;
}
public function setTags(Google_Service_Manager_Tag $tags)
{
$this->tags = $tags;
}
public function getTags()
{
return $this->tags;
}
public function setZone($zone)
{
$this->zone = $zone;
}
public function getZone()
{
return $this->zone;
}
}
|
<?php
return [
'test-00010-00400' => [
'ua' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.26 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '50.0',
'Platform_Codename' => 'Mac OS X',
'Platform_Marketingname' => 'Mac OS X',
'Platform_Version' => '10.11.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'Macintosh',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Macintosh',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00401' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 6.0.1; en-US; Nexus 5 Build/MMB29S) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/10.9.0.731 U3/0.8.0 Mobile Safari/534.30',
'properties' => [
'Browser_Name' => 'UC Browser',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'UC Web',
'Browser_Modus' => 'unknown',
'Browser_Version' => '10.9',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Nexus 5',
'Device_Maker' => 'LG',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'Nexus 5',
'Device_Brand_Name' => 'Google',
'RenderingEngine_Name' => 'U3',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'UC Web',
],
],
'test-00010-00402' => [
'ua' => 'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; tb-gmx/2.6.6; MASEJS; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 10.0',
'Platform_Marketingname' => 'Windows 10',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00403' => [
'ua' => 'Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; NOKIA; Lumia 820) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Mobile Safari/537.36 Edge/13.10586',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '46.0',
'Platform_Codename' => 'Windows Phone OS',
'Platform_Marketingname' => 'Windows Phone OS',
'Platform_Version' => '10.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Lumia 820',
'Device_Maker' => 'Nokia',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'Lumia 820',
'Device_Brand_Name' => 'Nokia',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00404' => [
'ua' => 'Mozilla/5.0 (Linux; Android 6.0; E6653 Build/32.1.A.1.163; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/48.0.2564.106 Mobile Safari/537.36 ACHEETAHI/2100502036',
'properties' => [
'Browser_Name' => 'CM Browser',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Cheetah Mobile',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Xperia Z5 4G LTE',
'Device_Maker' => 'Sony',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'E6653',
'Device_Brand_Name' => 'Sony',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00405' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0; Mozilla Firefox 38.7.0 - 11712--40',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '38.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00010-00406' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0; WUID=4f0d436b7d030bc7b79c9dffe0c79cc0; WTB=6787) Gecko/20100101 Firefox/31.0',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '31.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00010-00407' => [
'ua' => 'Mozilla/5.0 (Windows NT 10.0; Trident/7.0; yie11; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 10.0',
'Platform_Marketingname' => 'Windows 10',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00408' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:45.0.1) Gecko/20100101 Firefox/45.0.1 anonymized by Abelssoft 1165510401',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '45.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00010-00409' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 6.0; de-de; LG-H815 Build/MRA58K) AppleWebKit/537.16 (KHTML, like Gecko) Version/4.0 Mobile Safari/537.16 Chrome/33.0.0.0',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00410' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.1.1; SurfTab xintron i 10.1 3G Build/LMY47V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/48.0.2564.106 Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.1.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00411' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:44.0.2) Gecko/20100101 Firefox/44.0.2 anonymized by Abelssoft 723182953',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '44.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00010-00412' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.2.2; SGP321 Build/10.3.1.A.2.67) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Xperia Tablet Z LTE',
'Device_Maker' => 'Sony',
'Device_Type' => 'FonePad',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SGP321',
'Device_Brand_Name' => 'Sony',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00413' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.1.1; D5803 Build/23.4.A.1.264; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/48.0.2564.106 Mobile Safari/537.36 ACHEETAHI/2100502038',
'properties' => [
'Browser_Name' => 'CM Browser',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Cheetah Mobile',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.1.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Xperia Z3 Compact',
'Device_Maker' => 'Sony',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'D5803',
'Device_Brand_Name' => 'Sony',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00414' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.1.1; de-de; Transformer Prime TF201 Build/JRO03C) AppleWebKit/537.16 (KHTML, like Gecko) Version/4.0 Safari/537.16 Chrome/33.0.0.0',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.1.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00415' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; thl T6 pro Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36 ACHEETAHI/2100502038',
'properties' => [
'Browser_Name' => 'CM Browser',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Cheetah Mobile',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00416' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.0; SM-G900I Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'SM-G900I',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SM-G900I',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00417' => [
'ua' => 'Mozilla/5.0 (iPad; CPU OS 9_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) GSA/11.0.65374 Mobile/13E233 Safari/600.1.4',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'iOS',
'Platform_Marketingname' => 'iOS',
'Platform_Version' => '9.3.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'iPad',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'iPad',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00010-00418' => [
'ua' => 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36 Vivaldi/1.0.403.24',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '48.0',
'Platform_Codename' => 'Windows NT 10.0',
'Platform_Marketingname' => 'Windows 10',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00419' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:45.0.1) Gecko/20100101 Firefox/45.0.1 anonymized by Abelssoft 1632740159',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '45.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00010-00420' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Win32) Link Commander 4.2',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows',
'Platform_Marketingname' => 'Windows',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00010-00421' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.5; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTbAVR-4/5.15.31.57710)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00422' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; SM-G313HN Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.105 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Trend 2',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SM-G313HN',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00423' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; PRO Q8 PLUS Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00424' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.2.2; LIFETAB_E10312 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.105 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'LifeTab E10312',
'Device_Maker' => 'Medion',
'Device_Type' => 'FonePad',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'LifeTab E10312',
'Device_Brand_Name' => 'Medion',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00425' => [
'ua' => 'Mozilla/5.0 (Linux; Android 6.0.1; GCE x86 phone Build/MMB29W.MZC79) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2689.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '51.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M7',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00426' => [
'ua' => 'Mozilla/5.0 (Linux; Android 6.0.1; GCE x86 phone Build/MMB29W.MZC79) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2690.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '51.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M7',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00427' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; tb-webde/2.6.6; yie10; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00428' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; PMT3377_Wi Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00429' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.0.3; A500 Build/IML74K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.138 Safari/537.36 OPR/22.0.1485.81203',
'properties' => [
'Browser_Name' => 'Opera Mobile',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '22.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.0.3',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00430' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; Trident/7.0; NP07; yie10; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00431' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0 Cyberfox/45.0.2',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '45.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00010-00432' => [
'ua' => 'Mozilla/5.0 (Linux; Android 6.0.1; GCE x86 phone Build/MMB29W.MZC75) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2689.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '51.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M7',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00433' => [
'ua' => 'Mozilla/5.0 (Linux; Android 6.0.1; SM-A500FU Build/MMB29U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy A5 (Europe)',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SM-A500FU',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00434' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.3; GT-I9506 Build/JSS15J) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.3.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S4 LTE+',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I9506',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00435' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.3.1; GT-P5110 Build/JLS36I) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.99 Safari/537.36 OPR/35.0.2070.100283',
'properties' => [
'Browser_Name' => 'Opera Mobile',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '35.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.3.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Tab 2 10.1 WiFi',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-P5110',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00436' => [
'ua' => 'Mozilla/5.0 (X11; CrOS x86_64 14.4.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2689.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '51.0',
'Platform_Codename' => 'ChromeOS',
'Platform_Marketingname' => 'ChromeOS',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00437' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.22 anonymized by Abelssoft 762435235',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '48.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00438' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; Trident/7.0; tb-webde/2.6.6; yie10; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 64,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00439' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.1.2; LT26i Build/6.2.B.1.96) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.1.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Xperia Arc HD',
'Device_Maker' => 'SonyEricsson',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'LT26i',
'Device_Brand_Name' => 'SonyEricsson',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00440' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; D2203 Build/18.4.C.2.12) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36 GSA/5.3.26.19.arm',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Xperia E3',
'Device_Maker' => 'Sony',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'D2203',
'Device_Brand_Name' => 'Sony',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00441' => [
'ua' => 'Mozilla/5.0 (Linux; Android 6.0.1; HTC One A9 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '46.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M7',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00442' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; ASUS_T00N Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'PadFone S',
'Device_Maker' => 'Asus',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'T00N',
'Device_Brand_Name' => 'Asus',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00443' => [
'ua' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; Trident/7.0; Touch; tb-gmx/2.6.3; LCJB; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 64,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 10.0',
'Platform_Marketingname' => 'Windows 10',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00444' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.3; D5503 Build/14.2.A.1.114) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.3.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Xperia Z1 Compact',
'Device_Maker' => 'Sony',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'D5503',
'Device_Brand_Name' => 'Sony',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00445' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36 QQBrowser/9.3.6872.400',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '47.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00446' => [
'ua' => 'Dalvik/1.6.0 (Linux; U; Android 4.4.2; thl T6 pro Build/KOT49H)',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00010-00447' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; LG-D373 Build/KOT49I.A1406608409) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.1599.103 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'L80',
'Device_Maker' => 'LG',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'D373',
'Device_Brand_Name' => 'LG',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00448' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.4; C6833 Build/14.4.A.0.108) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Xperia Z Ultra LTE',
'Device_Maker' => 'Sony',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'C6833',
'Device_Brand_Name' => 'Sony',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00449' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB7.5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00450' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; en-us; 4027D Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00451' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.1; H1 Build/LMY47D) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.1.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00452' => [
'ua' => 'Mozilla/5.0 (iPad; CPU OS 9_3 like Mac OS X) AppleWebKit/601.1.46.101 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3',
'properties' => [
'Browser_Name' => 'Safari',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Apple Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '5.1',
'Platform_Codename' => 'iOS',
'Platform_Marketingname' => 'iOS',
'Platform_Version' => '9.3.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'iPad',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'iPad',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00010-00453' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0; WUID=b07fdc9e86c60af367e12793708ab72e; WTB=3869) Gecko/20100101 Firefox/42.0',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '42.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00010-00454' => [
'ua' => 'Mozilla/5.0 (iPad; U; CPU OS 9_2 like Mac OS X; en-us; iPad2,1) AppleWebKit/534.46 (KHTML, like Gecko) UCBrowser/2.4.0.367 U3/1 Safari/7543.48.3',
'properties' => [
'Browser_Name' => 'UC Browser',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'UC Web',
'Browser_Modus' => 'unknown',
'Browser_Version' => '2.4',
'Platform_Codename' => 'iOS',
'Platform_Marketingname' => 'iOS',
'Platform_Version' => '9.2.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'iPad',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'iPad',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'U3',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'UC Web',
],
],
'test-00010-00455' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.1.1; IEOS_QUAD_10_PRO Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.1.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Ieos Quad 10 Pro',
'Device_Maker' => 'Odys',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'Ieos Quad 10 Pro',
'Device_Brand_Name' => 'Odys',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00456' => [
'ua' => 'Mozilla/5.0 (Windows; U; Windows NT 6.2; de; rv:1.9.2.6) Gecko/20100625 Firefox/45.0.1 (x86 de) Anonymisiert durch AlMiSoft Browser-Maulkorb 36474224',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '45.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00010-00457' => [
'ua' => 'opera/9.80 (windows nt 6.1; u; de-de) presto/2.10.229 version/11.64',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows',
'Platform_Marketingname' => 'Windows',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00010-00458' => [
'ua' => 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 1stBrowser/45.0.2454.152 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Windows NT 10.0',
'Platform_Marketingname' => 'Windows 10',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00459' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.0.2; HTC One_E8 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.0.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M7',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00460' => [
'ua' => 'Mozilla/5.0 (Linux; Android 6.0; HTC One_M8 Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/48.0.2564.106 Mobile Safari/537.36 ACHEETAHI/2100502036',
'properties' => [
'Browser_Name' => 'CM Browser',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Cheetah Mobile',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One M8',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M8',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00461' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; Trident/7.0; S.N.O.W.4; S.N.O.W.4; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00462' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; Anonymisiert durch AlMiSoft Browser-Anonymisierer 61492408) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '42.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00463' => [
'ua' => 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36 Sleipnir/6.1.10',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '47.0',
'Platform_Codename' => 'Windows NT 10.0',
'Platform_Marketingname' => 'Windows 10',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00464' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36 OPR/36.0.2130.32 (Edition Campaign 47)',
'properties' => [
'Browser_Name' => 'Opera',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00465' => [
'ua' => 'Mozilla/5.0 (Linux; Android 6.0.1; Nexus 6P Build/MHC19I) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Nexus 6P',
'Device_Maker' => 'Huawei',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'Nexus 6P',
'Device_Brand_Name' => 'Google',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00466' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.9) Gecko/20100101 Goanna/2.0 Firefox/38.9 PaleMoon/26.0.0',
'properties' => [
'Browser_Name' => 'PaleMoon',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Moonchild Productions',
'Browser_Modus' => 'unknown',
'Browser_Version' => '26.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00010-00467' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.0.2; de-de; 7048X Build/LRX22G)AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/38.0.2125.102 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.0.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00468' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; GWX:RESERVED; MASBJS; Microsoft Outlook 14.0.7167; ms-office; MSOffice 14)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00469' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.1.1; SM-T520 Build/LMY48Y) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.1.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Tab Pro 10.1 WiFi',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SM-T520',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00470' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; BRI/2; MAAR; .NET4.0C; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0E; GWX:RESERVED)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00471' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.2; rv:42.0 ) Gecko/20100101 Firefox/42.0 anonymized by Abelssoft 93583838',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '42.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00010-00472' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; tb-webde/2.3.0; MASMJS; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00473' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36 Vivaldi/1.0.403.24',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '48.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00474' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.0; LG-D855 Build/LRX21R.A1440596518) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.99 Mobile Safari/537.36 OPR/35.0.2070.100283',
'properties' => [
'Browser_Name' => 'Opera Mobile',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '35.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'G2',
'Device_Maker' => 'LG',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'D855',
'Device_Brand_Name' => 'LG',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00475' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; LG-D331 Build/KOT49I.A1413907724) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.95 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '48.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00476' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0E; InfoPath.3; ms-office; MSOffice 15)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00477' => [
'ua' => 'Mozilla/5.0 (AOL 9.7; AOLBuild 4343.1028; AOL 9.0; AOLBuild 4327.5201; Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00478' => [
'ua' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2689.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '51.0',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00479' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0E; InfoPath.3; ms-office)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00480' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.3; ; ; ;s093k992;hoch)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 5.2',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00481' => [
'ua' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) CriOS/46.0.2490.73 Mobile/13E234 Safari/600.1.4',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'iOS',
'Platform_Marketingname' => 'iOS',
'Platform_Version' => '9.3.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'iPhone',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'iPhone',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00010-00482' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:44.0.2) Gecko/20100101 Firefox/44.0.2 anonymized by Abelssoft 22170202',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '44.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00010-00483' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; (gmx/1.0.0.8); (webde/1.1.0.22); .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; (gmx/1.0.0.8))',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00484' => [
'ua' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) GSA/11.1.66360 Mobile/13E234 Safari/600.1.4',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'iOS',
'Platform_Marketingname' => 'iOS',
'Platform_Version' => '9.3.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'iPhone',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'iPhone',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00010-00485' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.1.1; C6833 Build/14.6.A.0.368) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.1.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Xperia Z Ultra LTE',
'Device_Maker' => 'Sony',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'C6833',
'Device_Brand_Name' => 'Sony',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00486' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.3; HUAWEI P7 mini Build/HuaweiP7MiniC150B118) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.3.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Ascend P7 Mini',
'Device_Maker' => 'Huawei',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'P7 Mini',
'Device_Brand_Name' => 'Huawei',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00487' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.2.2; de-de; GT-I9192 Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 Chrome/33.0.0.0',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S4 Mini Duos',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I9192',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00488' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.1; RAINBOW JAM Build/LMY47I; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/49.0.2623.105 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.1.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00489' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.2; rv:43.0 ) Gecko/20100101 Firefox/43.0 anonymized by Abelssoft 919276253',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '43.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00010-00490' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.3; ; ; ;s093a054;hoch)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 5.2',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00010-00491' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; RAINBOW Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36 ACHEETAHI/2100502036',
'properties' => [
'Browser_Name' => 'CM Browser',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Cheetah Mobile',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00492' => [
'ua' => 'Mozilla/5.0 (Linux; Android 6.0; HTC Desire 816 Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Desire 816',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'Desire 816',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00493' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.2; rv:45.0.1) Gecko/20100101 Firefox/45.0.1 anonymized by Abelssoft 1440108267',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '45.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00010-00494' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.1.1; GT-I9195 Build/LMY48W) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.1.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S4 Mini',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I9195',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00495' => [
'ua' => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/46.0.2490.80 Anonymisiert durch AlMiSoft Browser-Anonymisierer 69485562',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '46.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00496' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.1.1; PO-9742 Build/LMY47V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/48.0.2564.106 Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.1.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00497' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.2; rv:45.0 () Gecko/20100101 Firefox/45.0 ( anonymized by Abelssoft 107765697',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '45.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00010-00498' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2683.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '51.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00010-00499' => [
'ua' => 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2689.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '51.0',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
];
|
<?php namespace Financials\Providers;
use Illuminate\Support\Serviceprovider;
class FinancialsServiceProvider extends ServiceProvider {
public function register() {
$this->app->bind('Financials\Repos\RfpRepositoryInterface', 'Financials\Repos\RfpRepository');
$this->app->bind('Financials\Repos\PurchasesRepositoryInterface', 'Financials\Repos\PurchasesRepository');
$this->app->bind('Financials\Repos\RegisterRepositoryInterface', 'Financials\Repos\RegisterRepository');
$this->app->bind('Financials\Repos\CVRepositoryInterface', 'Financials\Repos\CVRepository');
$this->app->bind('Financials\Repos\JournalRepositoryInterface', 'Financials\Repos\JournalRepository');
$this->app->bind('Financials\Repos\GenLedgerRepositoryInterface', 'Financials\Repos\GenLedgerRepository');
$this->app->bind('Financials\Repos\SubLedgerRepositoryInterface', 'Financials\Repos\SubLedgerRepository');
$this->app->bind('Financials\Repos\SupplierRepositoryInterface', 'Financials\Repos\SupplierRepository');
$this->app->bind('Financials\Repos\InvoiceLineRepositoryInterface', 'Financials\Repos\InvoiceLineRepository');
$this->app->bind('Financials\Repos\BankRepositoryInterface', 'Financials\Repos\BankRepository');
$this->app->bind('Financials\Register', function(){
return new \Financials\Repos\RegisterRepository;
});
$this->app->bind('Financials\Rfp', function(){
return new \Financials\Repos\RfpRepository;
});
$this->app->bind('Financials\Coa', function(){
return new \Financials\Repos\CoaRepository;
});
$this->app->bind('Financials\Purchases', function(){
return new \Financials\Repos\PurchasesRepository;
});
$this->app->bind('Financials\Journal', function(){
return new \Financials\Repos\JournalRepository;
});
$this->app->bind('Financials\GenLedger', function(){
return new \Financials\Repos\GenLedgerRepository;
});
$this->app->bind('Financials\SubLedger', function(){
return new \Financials\Repos\SubLedgerRepository;
});
$this->app->bind('Financials\Supplier', function(){
return new \Financials\Repos\SupplierRepository;
});
$this->app->bind('Financials\InvoiceLine', function(){
return new \Financials\Repos\InvoiceLineRepository;
});
$this->app->bind('Financials\Bank', function(){
return new \Financials\Repos\BankRepository;
});
}
} |
<?php
namespace App;
use Webmozart\PathUtil\Path;
/**
* Config
*
* @author kumakura9213
*/
class Config extends \Noodlehaus\Config
{
/**
* Static method for loading a Config instance.
*
* @param string $path
* @return Config
*/
public static function load($path)
{
return new static(Path::join(__DIR__, '..', 'config', $path));
}
}
|
<?php
class Application_Model_Install{
private $installId;
private $dealId;
private $complete;
private $idate;
public function __construct(array $options = null){
if (is_array($options)) {
$this->setOptions($options);
}
}
public function __set($name, $value){
$method = 'set' . $name;
if (('mapper' == $name) || !method_exists($this, $method)) {
throw new Exception('Invalid Variable property');
}
$this->$method($value);
}
public function __get($name){
$method = 'get' . $name;
if (('mapper' == $name) || !method_exists($this, $method)) {
throw new Exception('Invalid Variable property');
}
return $this->$method();
}
public function setOptions(array $options){
$methods = get_class_methods($this);
foreach ($options as $key => $value) {
$method = 'set' . ucfirst($key);
if (in_array($method, $methods)) {
$this->$method($value);
}
}
return $this;
}
public function getInstallId(){ return $this->installId; }
public function setInstallId($_val){ $this->installId = $_val; }
public function getDealId(){ return $this->dealId; }
public function setDealId($_val){ $this->dealId = $_val; }
public function getComplete(){ return $this->complete; }
public function setComplete($_val){ $this->complete = $_val; }
public function getIDate(){ return $this->iDate; }
public function setIDate($_val){ $this->iDate = $_val; }
} //$
|
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::prefix('4dm1n')->namespace('Admin')->middleware('auth:admin')->group(function () {
Route::prefix('kartu-keluarga')->group(function () {
Route::get('/', 'KartuKeluargaController@index')->name('data_kk_index');
Route::get('/add', 'KartuKeluargaController@form_add')->name('data_kk_form_add');
Route::post('/add', 'KartuKeluargaController@store')->name('data_kk_store');
Route::get('/edit/{id}', 'KartuKeluargaController@form_edit')->name('data_kk_form_edit');
Route::get('/restore', 'KartuKeluargaController@indexRestore')->name('data_kk_restore_index');
Route::post('/restore', 'KartuKeluargaController@restore')->name('data_kk_restore');
Route::post('/pindah-penduduk', 'KartuKeluargaController@movePenduduk')->name('kk_pindah_penduduk');
Route::prefix('/edit/{id}')->group(function () {
Route::get('/add-anggota', 'PendudukController@form_add')->name('data_penduduk_add');
Route::post('/add-anggota', 'PendudukController@store')->name('data_penduduk_store');
Route::get('/edit-anggota/{id_anggota}', 'PendudukController@form_edit')->name('data_penduduk_edit');
Route::post('/delete', 'PendudukController@delete')->name('data_penduduk_delete');
Route::post('/update', 'PendudukController@update')->name('data_penduduk_update');
});
Route::post('/edit', 'KartuKeluargaController@update')->name('data_kk_update');
Route::post('/delete', 'KartuKeluargaController@delete')->name('data_kk_delete');
});
Route::get('/queryByNama', 'AnggotaPosyanduController@queryByNama')->name('query.penduduk.base');
Route::get('/queryByNama/{nama}', 'AnggotaPosyanduController@queryByNama');
Route::post('/anggota/store', 'AnggotaPosyanduController@store')->name('anggota_posyandu_store');
Route::post('/anggota/delete', 'AnggotaPosyanduController@delete')->name('anggota_posyandu_delete');
Route::get('/kegiatan_posyandu/{posyandu}', 'KegiatanPosyanduController@detail')->name('kegiatan_posyandu.detail');
Route::get('/kegiatan_posyandu/{id_keg}/{id_pos}', 'KegiatanPosyanduController@edit')->name('kegiatan_posyandu.edit');
Route::post('/kegiatan_posyandu/save/{id}', 'KegiatanPosyanduController@save')->name('kegiatan_posyandu_save');
Route::post('/kegiatan_posyandu/update/{id_keg}', 'KegiatanPosyanduController@update')->name('kegiatan_posyandu_update');
Route::resource('posyandu', 'PosyanduController')->names([
'index' => 'posyandu.index',
'store' => 'posyandu.store',
'edit' => 'posyandu.edit',
'update' => 'posyandu.update',
'destroy' => 'posyandu.destroy'
]);
});
|
<?php
namespace App\Http\Controllers;
use App\Reloj;
use App\Imports\RelojImport;
use Maatwebsite\Excel\Facades\Excel;
use Illuminate\Http\Request;
class relojController extends Controller
{
public function index()
{
$Relojes = $Relojs = Reloj::orderBy('fecha','asc')->orderBy('nombre', 'asc')->get();
return view('Reloj/IndexXml')->with('Relojes',$Relojes);
}
public function importxml(Request $request)
{
$incidencia=null;
$request->validate([
'xml' => 'required|mimes:xml'],
['xml.required' => 'Selecciona Un Documento']
);
$control = simplexml_load_file($request->xml);
$total_empleados=count($control->CONTROL);
for($x=0;$x<$total_empleados;$x++)
{
$nombre = '';
$ap_paterno = '';
$ap_materno = '';
$fecha = $control->CONTROL[$x]->fecha;
$fecha = substr($fecha, 0, 10);
$entrada = $control->CONTROL[$x]->MAE;
$entrada = substr($entrada, 11, 18);
$salida = $control->CONTROL[$x]->MAS;
$salida = substr($salida, 11, 18);
$id = $control->CONTROL[$x]->id;
$RFC = $control->CONTROL[$x]->rfc;
$name = $control->CONTROL[$x]->Nombre;
$RFC = strtoupper($RFC);
$porciones = explode(" ", trim($name));
$total_porciones = sizeof($porciones);
if($total_porciones<3){
$ap_paterno = $porciones[0];
$nombre = $porciones[1];
}elseif($porciones[0]=='DE'){
$ap_paterno = $porciones[0].' '.$porciones[1].' '.$porciones[2];
$ap_materno = $porciones[3];
$nombre = $porciones[4];
}elseif($total_porciones==3){
$ap_paterno = $porciones[0];
$ap_materno = $porciones[1];
$nombre = $porciones[2];
}elseif($total_porciones==4){
$ap_paterno = $porciones[0];
$ap_materno = $porciones[1];
$nombre = $porciones[2].' '.$porciones[3];
}elseif($total_porciones==5){
$ap_paterno = $porciones[0];
$ap_materno = $porciones[1];
$nombre = $porciones[2].' '.$porciones[3].' '.$porciones[4];
}elseif($total_porciones==6){
$ap_paterno = $porciones[0];
$ap_materno = $porciones[1];
$nombre = $porciones[2].' '.$porciones[3].' '.$porciones[4].' '.$porciones[5];
}
$incidenciaentrada = $control->CONTROL[$x]->MAEIT;
$incidenciasalida = $control->CONTROL[$x]->MASIT;
if (strcmp($incidenciaentrada,$incidenciasalida) === 0){
$incidencia = $incidenciasalida;
}else{
$incidencia = 'Entrada: '.$incidenciaentrada.'-'.'Salida: '.$incidenciasalida;
}
Reloj::create([
'RFC' => $RFC,
'nombre' => $nombre,
'ap_materno' => $ap_materno,
'ap_paterno' => $ap_paterno,
'entrada' => $entrada,
'salida' => $salida,
'fecha' => $fecha,
'incidencia' => $incidencia,
]);
}
return back()->with('message','Importación de asistencias completada');
}
}
|
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Outlet extends Base_Controller
{
function __construct()
{
parent::__construct();
$this->page_data = array();
$this->load->model("Outlet_model");
}
function index()
{
$this->page_data["outlet"] = $this->Outlet_model->get_all();
$this->load->view("admin/header", $this->page_data);
$this->load->view("admin/outlet/all");
$this->load->view("admin/footer");
}
function add()
{
if ($_POST) {
$input = $this->input->post();
$error = false;
$data = array(
'outlet' => $input['outlet']
);
$this->Outlet_model->insert($data);
redirect("outlet", "refresh");
}
$this->load->view("admin/header", $this->page_data);
$this->load->view("admin/outlet/add");
$this->load->view("admin/footer");
}
function detail($outlet_id)
{
$where = array(
"outlet_id" => $outlet_id
);
$outlet = $this->Outlet_model->get_where($where);
$this->show_404_if_empty($outlet);
$this->page_data["outlet"] = $outlet[0];
$this->load->view("admin/header", $this->page_data);
$this->load->view("admin/outlet/detail");
$this->load->view("admin/footer");
}
function edit($outlet_id)
{
if ($_POST) {
$input = $this->input->post();
$error = false;
if (!$error) {
$where = array(
'outlet_id' => $outlet_id
);
$data = array(
'outlet' => $input['outlet']
);
$this->Outlet_model->update_where($where, $data);
redirect('outlet/detail/' . $outlet_id, "refresh");
}
}
$where = array(
"outlet_id" => $outlet_id
);
$outlet = $this->Outlet_model->get_where($where);
$this->show_404_if_empty($outlet);
$this->page_data["outlet"] = $outlet[0];
$this->load->view("admin/header", $this->page_data);
$this->load->view("admin/outlet/edit");
$this->load->view("admin/footer");
}
function delete($outlet_id)
{
$this->Outlet_model->soft_delete($outlet_id);
redirect("outlet", "refresh");
}
}
|
<?php
class AvoirMatiere {
private $_matiere;
private $_niveau;
private $_serie;
private $_coef;
private $_ecole;
public function __construct(array $donnees) {
$this->hydrate($donnees);
}
public function hydrate(array $donnees) {
foreach ($donnees as $key => $value) {
$method = 'set'.ucfirst($key);
if (method_exists($this, $method)) {
$this->$method($value);
}
}
}
// GETTERS //
public function matiere() {
return $this->_matiere;
}
public function niveau() {
return $this->_niveau;
}
public function serie() {
return $this->_serie;
}
public function coef() {
return $this->_coef;
}
public function ecole() {
return $this->_ecole;
}
// SETTERS //
public function setMatiere($matiere) {
$this->_matiere = $matiere;
}
public function setNiveau($niveau) {
$this->_niveau = $niveau;
}
public function setSerie($serie) {
$this->_serie = $serie;
}
public function setCoef($coef) {
$this->_coef = $coef;
}
public function setEcole($ecole) {
$this->_ecole = $ecole;
}
}
?> |
<?php
return [
'test-00098-00000' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.2.2; hu-hu; SAMSUNG GT-S7275R/S7275RXXUANC1 Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Version/1.0 Chrome/18.0.1025.308 Mobile Safari/535.19',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '1.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Ace 3 LTE',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-S7275R',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00098-00001' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; ru-ru; SAMSUNG SM-T235 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.5 Chrome/28.0.1500.94 Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '1.5',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Tab 4 7.0 WiFi + LTE',
'Device_Maker' => 'Samsung',
'Device_Type' => 'FonePad',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SM-T235',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00098-00002' => [
'ua' => 'Dalvik/1.6.0 (Linux; U; Android 4.2.2; ONE TOUCH 4033D Build/JDQ39)',
'properties' => [
'Browser_Name' => 'Dalvik',
'Browser_Type' => 'Application',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M7',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00098-00003' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; ar-ae; SAMSUNG SM-G800F Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.6 Chrome/28.0.1500.94 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '1.6',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S5 Mini (Europe)',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SM-G800F',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00098-00004' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 2.2.1; es-es; GT-S5570 Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '2.2.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Mini',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-S5570',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00098-00005' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.4; XT1025 Build/KXC21.5-40) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00098-00006' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.34 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '31.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00098-00007' => [
'ua' => 'Mozilla/5.0 (hp-tablet; Linux; hpwOS/3.0.5; U; en-US) AppleWebKit/534.6 (KHTML, like Gecko) wOSBrowser/234.83 Safari/534.6 TouchPad/1.0',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'webOS',
'Platform_Marketingname' => 'webOS',
'Platform_Version' => '3.0.5',
'Platform_Bits' => 32,
'Platform_Maker' => 'HP',
'Platform_Brand_Name' => 'HP',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'Various',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00098-00008' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.0.4; fr-fr; GT-S5301 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.0.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Pocket Plus',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-S5301',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00098-00009' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.3; G630-U251 Build/HuaweiG630-U251) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '34.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.3.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Ascend G630',
'Device_Maker' => 'Huawei',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'G630-U251',
'Device_Brand_Name' => 'Huawei',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00098-00010' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.1.2; es-es; HUAWEI G525-U00 Build/HuaweiG525-U00) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.1.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Ascend G525',
'Device_Maker' => 'Huawei',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'G525-U00',
'Device_Brand_Name' => 'Huawei',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00098-00011' => [
'ua' => 'Dalvik/1.6.0 (Linux; U; Android 4.0.3; KFOT Build/IML74K)',
'properties' => [
'Browser_Name' => 'Dalvik',
'Browser_Type' => 'Application',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.0.3',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00098-00012' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; LG-D855 Build/KVT49L.A1401987978) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'G2',
'Device_Maker' => 'LG',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'D855',
'Device_Brand_Name' => 'LG',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00098-00013' => [
'ua' => 'Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '5.0',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00098-00014' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.0.4; el-gr; GT-S7562 Build/IMM76I) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.0.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S Duos',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-S7562',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00098-00015' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.2.2; en-au; GT-I9105P Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S II Plus NFC',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I9105P',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00098-00017' => [
'ua' => 'NokiaX3-00/5.0 (11.00) Profile/MIDP-2.1 Configuration/CLDC-1.1 Mozilla/5.0 AppleWebKit/420+ (KHTML, like Gecko) Safari/420+',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Nokia OS',
'Platform_Marketingname' => 'Nokia OS',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Nokia',
'Platform_Brand_Name' => 'Nokia',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00098-00018' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 2.3.6; es-us; GT-S5830M Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '2.3.6',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Ace',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-S5830',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00098-00019' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.1.2; GT-S6310N Build/JZO54K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '34.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.1.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Young',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-S6310N',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00098-00020' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; GT-I8200 Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S3 Mini Value Edition',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I8200',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00098-00021' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.43 Safari/537.31 u01-04',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '26.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00098-00022' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; HTC Desire 610 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '34.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Desire 610',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'Desire 610',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00098-00023' => [
'ua' => 'Dalvik/1.6.0 (Linux; U; Android 4.4.2; HUAWEI MT7-TL10 Build/HuaweiMT7-TL10)',
'properties' => [
'Browser_Name' => 'Dalvik',
'Browser_Type' => 'Application',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Ascend Mate 7',
'Device_Maker' => 'Huawei',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'MT7-TL10',
'Device_Brand_Name' => 'Huawei',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00098-00024' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; cs-cz; SAMSUNG GT-I9195 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.5 Chrome/28.0.1500.94 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '1.5',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S4 Mini',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I9195',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00098-00025' => [
'ua' => 'Dalvik/1.6.0 (Linux; U; Android 4.2.2; HTC One XL Build/JDQ39)',
'properties' => [
'Browser_Name' => 'Dalvik',
'Browser_Type' => 'Application',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One XL',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'PJ83100',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00098-00026' => [
'ua' => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '3.6',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00098-00027' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; en-gb; SAMSUNG SM-G800H Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.6 Chrome/28.0.1500.94 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '1.6',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S5 Mini (USA)',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SM-G800H',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
];
|
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Input;
use App\Match;
class MatchController extends Controller {
public function index() {
return view('index');
}
/**
* Returns a list of matches
*
* TODO it's mocked, make this work :)
*
* @return \Illuminate\Http\JsonResponse
*/
public function matches() {
$matches = Match::all();
return response()->json($matches);
}
/**
* Returns the state of a single match
*
* TODO it's mocked, make this work :)
*
* @param $id
* @return \Illuminate\Http\JsonResponse
*/
public function match($id) {
$match = Match::find($id);
return response()->json($match);
}
/**
* Makes a move in a match
*
* TODO it's mocked, make this work :)
*
* @param $id
* @return \Illuminate\Http\JsonResponse
*/
public function move($id) {
$match= Match::find($id);
$position = Input::get('position');
$board = $match->board;
$board[$position] = $match->next;
$match->board = $board;
$match->winner = $this->isWinner($board) ? $match->next : 0;
$match->next= $match->next==1 ? 2 : 1;
$match->save();
return response()->json($match);
}
/**
* Creates a new match and returns the new list of matches
*
* TODO it's mocked, make this work :)
*
* @return \Illuminate\Http\JsonResponse
*/
public function create() {
$match = new Match;
$match->name = "Match";
$match->next = 1;
$match->winner = 0;
$match->board = [
0, 0, 0,
0, 0, 0,
0, 0, 0,
];
$match->save();
$matches = Match::all();
return response()->json($matches);
}
/**
* Deletes the match and returns the new list of matches
*
* TODO it's mocked, make this work :)
*
* @param $id
* @return \Illuminate\Http\JsonResponse
*/
public function delete($id) {
$match = Match::find($id);
$match->delete();
$matches = Match::all();
return response()->json($matches);
}
/**
* Verify who is the winner
*
* @return boolean
*/
public function isWinner($board){
for($i=0; $i<3; $i++){
if ($this->verifyRow($board[$i], $board[$i+3], $board[$i+6])) {
return true;
}
}
$i = 0;
while($i<=6){
if ($this->verifyRow($board[$i], $board[$i+1], $board[$i+2])){
return true;
}
$i += 3;
}
if ($this->verifyRow($board[0], $board[4], $board[8])){
return true;
}
if ($this->verifyRow($board[2], $board[4], $board[6])){
return true;
}
return false;
}
/**
* Verify if the values are equal to 1 or 2
*
* @return boolean
*/
private function verifyRow($cell1, $cell2, $cell3){
if ($cell1==$cell2 && $cell2==$cell3){
if ($cell1==1 || $cell1==2) {
return true;
} else {
return false;
}
}
}
/**
* Creates a fake array of matches
*
* @return \Illuminate\Support\Collection
*/
private function fakeMatches() {
return collect([
[
'id' => 1,
'name' => 'Match1',
'next' => 2,
'winner' => 1,
'board' => [
1, 0, 2,
0, 1, 2,
0, 2, 1,
],
],
[
'id' => 2,
'name' => 'Match2',
'next' => 1,
'winner' => 0,
'board' => [
1, 0, 2,
0, 1, 2,
0, 0, 0,
],
],
[
'id' => 3,
'name' => 'Match3',
'next' => 1,
'winner' => 0,
'board' => [
1, 0, 2,
0, 1, 2,
0, 2, 0,
],
],
[
'id' => 4,
'name' => 'Match4',
'next' => 2,
'winner' => 0,
'board' => [
0, 0, 0,
0, 0, 0,
0, 0, 0,
],
],
]);
}
} |
<?php
declare(strict_types=1);
/**
* This file is part of YAPEPBase. It was merged from janoszen's Alternate-Class-Repository project.
*
* @copyright 2011 The YAPEP Project All rights reserved.
* @license http://www.opensource.org/licenses/bsd-license.php BSD License
*/
namespace YapepBase\Exception;
/**
* This Exception states, that an invalid type was provided.
*/
class TypeException extends Exception
{
/**
* Constructor
*
* @param mixed $object The object which does not match the required type
* @param string $required The type required
*/
public function __construct($object, $required = '')
{
$type = 'unknown';
switch (\gettype($object)) {
case 'object':
$type = \get_class($object);
break;
default:
$type = \gettype($object);
break;
}
$message = 'Invalid object type: ' . $type;
if ($required) {
$message .= ' expected ' . $required;
}
parent::__construct($message);
}
}
|
<?php
namespace Academe\Contracts\Connection;
interface ConditionGroup
{
/**
* @return Condition[]
*/
public function getConditions();
/**
* @return int
*/
public function getConditionCount();
/**
* @return bool
*/
public function isStrict();
/**
* @return bool
*/
public function isLoose();
}
|
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTableUsers extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('Company', function (Blueprint $table) {
$table->integer('code')->primary('code')->index();
$table->string('name');
$table->text('desc');
$table->timestamps();
});
Schema::create('Department', function (Blueprint $table) {
$table->integer('code')->primary('code')->index();
$table->string('name');
$table->string('section');
$table->text('desc');
$table->timestamps();
});
Schema::create('Position', function (Blueprint $table) {
$table->integer('code')->primary('code')->index();
$table->string('name');
$table->text('desc');
$table->timestamps();
});
Schema::create('Employees', function (Blueprint $table) {
$table->string('nik')->primary('nik')->index();
$table->string('name');
$table->integer('comp')->references('code')->on('Company');
$table->integer('dept')->references('code')->on('Department');
$table->integer('pos')->references('code')->on('Position');
$table->string('ext');
$table->string('phone');
$table->integer('gender');
$table->string('photo');
$table->string('mother');
$table->timestamps();
});
Schema::create('Level_user', function (Blueprint $table) {
$table->integer('code')->primary('code')->index();
$table->string('name');
$table->text('desc');
$table->timestamps();
});
Schema::create('Users', function (Blueprint $table) {
$table->string('email')->primary('email')->index();
$table->string('nik')->foreign('nik')->references('nik')->on('Employees');
$table->string('pass');
$table->integer('level')->foreign('level')->references('code')->on('Level_user');
$table->integer('status')->unsigned()->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('Users');
Schema::dropIfExists('Level_user');
Schema::dropIfExists('Employees');
Schema::dropIfExists('Position');
Schema::dropIfExists('Department');
Schema::dropIfExists('Company');
}
}
|
<?php
class ProgrammeRenderer {
protected $source_url;
protected $programme_uri;
protected $graph;
protected $prog;
protected $master_event;
function __construct( $programme )
{
$this->graph = $programme->g;
$this->prog = $programme;
$this->graph->ns( "prog","http://purl.org/prog/" );
$this->graph->ns( "progx","http://purl.org/prog/testing/" );
$this->graph->ns( "ev","http://purl.org/event/" );
$this->graph->ns( "event","http://purl.org/NET/c4dm/event.owl#" );
$this->graph->ns( "bio","http://purl.org/vocab/bio/0.1/" );
$this->graph->ns( "spatialrelations", "http://data.ordnancesurvey.co.uk/ontology/spatialrelations/" );
$this->graph->ns( "tl", "http://purl.org/NET/c4dm/timeline.owl#" );
$this->master_event = $this->prog->get( "prog:describes","-prog:has_programme" );
foreach( $this->graph->allOfType( "tl:Interval" ) as $interval )
{
if( $interval->has( "tl:start" ) )
{
foreach( $interval->all( "-event:time" ) as $event )
{
if( ! $event->has( "ev:dtstart" ) )
{
$this->graph->addTurtle( '_:', "<".$event->toString()."> <http://purl.org/event/dtstart> \"".$interval->get( "tl:start" )->toString()."\" ." );
}
}
}
if( $interval->has( "tl:end" ) )
{
foreach( $interval->all( "-event:time" ) as $event )
{
if( ! $event->has( "ev:dtend" ) )
{
$this->graph->addTurtle( '_:', "<".$event->toString()."> <http://purl.org/event/dtend> \"".$interval->get( "tl:end" )->toString()."\" ." );
}
}
}
}
}
###############################
# LIST
###############################
function render_list()
{
$events = $this->prog->all( "prog:has_event","prog:has_streamed_event" )->sort( "ev:dtstart" );
$day = "";
$lstart = "";
$output = array();
$output []= "<ul class='programme_list'>";
$started = 0;
foreach( $events as $event )
{
$dtstart = $event->get( "ev:dtstart" )->toString();
$dtend = $event->get( "ev:dtend" )->toString();
$thisday = substr( $dtstart, 0, 10 );
$endday = substr( $dtend, 0, 10 );
$thisstart = substr( $dtstart, 11, 5 );
$endend = substr( $dtend, 11, 5 );
#list( $thisday, $thisstart , $duff ) = preg_split( "/[TZ]/", $event->get( "ev:dtstart" )->toString() );
#list( $duff2, $thisend , $duff ) = preg_split( "/[TZ]/", $event->get( "ev:dtend" )->toString() );
if( $thisday != $day )
{
if( $started ) { $output []= "</ul></li></ul></li>"; }
$started = 1;
$output []= "<li>$thisday";
$output []= "<ul><li>$thisstart<ul>";
$lstart = "";
}
elseif( $thisstart != $lstart )
{
$output []= "</ul></li>";
$output []= "<li>$thisstart<ul>";
}
$lstart = $thisstart;
$day = $thisday;
$output []= "<li>".$event->label()." @ ".$event->get( "ev:located", "event:place" )->label()."</li>";
}
if( $started ) { $output []= "</ul></li></ul></li>"; }
$output []= "</ul>";
return join( '', $output );
}
###############################
# /LIST
###############################
###############################
# ICAL
###############################
function serve_ical()
{
header( "content-type: text/calendar" );
$events = $this->prog->all( "prog:describes","-prog:has_programme", "prog:has_event","prog:has_streamed_event" )->sort( "ev:dtstart" );
print $this->list_to_ical( $events );
}
static function ical_escape($text)
{
$text = strip_tags($text);
$rep_array = array(
'\\' => '\\\\',
',' => '\,',
';' => '\;',
"\r" => '',
"\n" => '\n'
);
$text = str_replace(array_keys($rep_array), array_values($rep_array), $text);
return $text;
}
static function ical_split_long_lines($text)
{
$parts = str_split($text, 70);
$line = array_shift($parts);
foreach ($parts as $part) {
$part = utf8_encode($part);
$line .= "\r\n $part";
}
return $line;
}
protected function list_to_ical( $events )
{
$lines = array(
'BEGIN:VCALENDAR',
'VERSION:2.0',
'X-WR-CALNAME:X123',
'PRODID:-//XMLEVENT//Events//EN',
'X-WR-TIMEZONE:Europe/London',
'CALSCALE:GREGORIAN',
'METHOD:PUBLISH',
'BEGIN:VTIMEZONE',
'TZID:Europe/London',
'BEGIN:DAYLIGHT',
'TZOFFSETFROM:+0000',
'RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU',
'DTSTART:19810329T010000',
'TZNAME:GMT+01:00',
'TZOFFSETTO:+0100',
'END:DAYLIGHT',
'BEGIN:STANDARD',
'TZOFFSETFROM:+0100',
'RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU',
'DTSTART:19961027T020000',
'TZNAME:GMT',
'TZOFFSETTO:+0000',
'END:STANDARD',
'END:VTIMEZONE',
);
foreach( $events as $event )
{
$lines[] = $this->to_ical_vevent( $event );
}
$lines[] = 'END:VCALENDAR';
return implode("\r\n", $lines);
}
protected function to_ical_vevent( $event )
{
$dstart = preg_split( '/[- :TZ]/', $event->get( "ev:dtstart" )->toString() );
$dend = preg_split( '/[- :TZ]/', $event->get( "ev:dtend" )->toString() );
$start_line = "";
$end_line = "";
if( sizeof( $dstart ) >= 5 )
{
$d_format = 'TZID=Europe/London:%04d%02d%02dT%02d%02d%02d';
$start_line = "DTSTART;".sprintf($d_format, $dstart[0],$dstart[1],$dstart[2],$dstart[3],$dstart[4], 0);
$end_line = "DTEND;".sprintf($d_format, $dend[0],$dend[1],$dend[2],$dend[3],$dend[4], 0);
}
if( sizeof( $dstart ) == 3 )
{
$d_format = 'VALUE=DATE:%04d%02d%02d';
$start_line = "DTSTART;".sprintf($d_format, $dstart[0],$dstart[1],$dstart[2] );
$endday = mktime( 0,0,0,$dend[1],$dend[2],$dend[0] );
$end_line = "DTEND;"."VALUE=DATE:".date('Ymd', $endday + 24*60*60 );
}
$title = self::ical_escape($event->label());
$summary = self::ical_split_long_lines("SUMMARY:$title");
#$description = ical_escape($event['cal:description'][0]);
#$description_line = ical_split_long_lines("DESCRIPTION:$description");
$location_line = null;
if( $event->has( "ev:located", "event:place" ) )
{
$location_line = 'LOCATION:' . self::ical_escape($event->get( "ev:located", "event:place" )->label());
}
$lines[] = 'BEGIN:VEVENT';
$lines[] = "UID:".self::ical_escape( $event->toString() );
$lines[] = $start_line;
$lines[] = $end_line;
$lines[] = $summary;
#$lines[] = $description_line;
#$lines[] = 'URL:' . $this->data['url'];
if (!is_null($location_line)) {
$lines[] = $location_line;
}
$lines[] = "END:VEVENT";
return implode("\r\n", $lines);
}
###############################
# /ICAL
###############################
private static function render_calendar_day( $times, $grid_col_widths, $grid, $graph, $date, $opts )
{
$timelist = $times[$date];
ksort( $timelist );
array_pop( $timelist );
$r = "";
$r.= "<table class='programme_table'>";
if( !isset( $grid_col_widths["main"][$date] ) ) # skip if only one col!
{
$r.= "<tr>";
foreach( $grid_col_widths as $col=>$width )
{
if( $col == "timeslot" )
{
$title= "";
}
elseif( $col == "main" )
{
$title= "Event";
}
else
{
$title = $graph->resource( $col )->label();
}
if( isset( $width[$date] ) )
{
$r.= "<td class='programme_stream_title' colspan='".$width[$date]."'>$title</td>";
}
}
$r.= "</tr>";
}
foreach( $timelist as $time=>$null )
{
$r.= "<tr>";
foreach( $grid_col_widths as $col=>$width )
{
$first_col_rendered = 0;
if( !isset( $grid[$col][$date] )) { continue; }
foreach( $grid[$col][$date] as $a=>$v )
{
if( !isset( $v[$time] ) ) { $r.= "<td> </td>"; continue; }
$event = $v[$time];
#if( !isset( $event ) && !$first_col_rendered) { $r.= "<td>x</td>"; }
#if( !isset( $event ) ) { $r.= "<td>$col.$a,$time</td>"; continue; }
if( $event == "FILLED" ) { continue; }
$thing = $event["thing"];
$class=$event["class"];
$start_t = self::dt_to_timet( $thing->get( "ev:dtstart" )->toString() );
$end_t = self::dt_to_timet( $thing->get( "ev:dtend" )->toString() );
if( $end_t > time() && $start_t < time() ) { $class .= ' programme_current'; }
$r.= "<td class='$class' rowspan='".$event["rowspan"]."' colspan='".$event["colspan"]."'>";
if( $end_t > time() && $start_t < time() ) {
$r .= "<div class='programme_now_message'>now</div>";
}
$r.= "<div class='programme_cell_content'>";
if( $thing->has("foaf:page") ) { $r.= '<a href="'.$thing->get("foaf:page")->toString().'">'; }
if( !$thing->has( "rdfs:label" ) && $thing->has( "prog:realises" ) )
{
$r.= $thing->get( "prog:realises" )->label();
}
else
{
$r.= $thing->label();
}
if( $thing->has("foaf:page") ) { $r.= '</a>'; }
if( $thing->has( "progx:timeNote" ) )
{
$r.= "<div style='font-size:90%'>(".$thing->getString( "progx:timeNote" ).")</div>";
}
if( isset( $event["debug"] ) )
{
$r.= "<div><small>Debug: ".$event["debug"]."</small></div>";
}
#$r.=$thing->get("event:place")->label();
if( $thing->has( "event:agent" ) )
{
foreach( $thing->all( "event:agent" ) as $agent )
{
$r.= render_agent( $agent, $opts );
}
}
if( $thing->has( "dct:description", "bibo:abstract" ) )
{
$desc = $thing->get( "dct:description", "bibo:abstract" )->toString();
if( $opts["desc"] == 'show' )
{
$r.='<div class="programme_session_desc">'.$desc.'<div>';
}
#TODO toggle, hover
}
if( $thing->has( "rdfs:seeAlso" ) )
{
$r.="<div class='programme_session_seealso'>See also:<ul>";
foreach( $thing->all( "rdfs:seeAlso" ) as $seealso )
{
$r.="<li>";
$r.="<a href='".$seealso->toString()."'>".$seealso->label()."</a>";
$r.="</li>";
}
$r.="</ul></div>";
}
$loc = $event["thing"]->get( "ev:located", "event:place" );
if( 0&& $loc->has( "geo:lat" ) )
{
$long = $loc->get( "geo:long" )->toString();
$lat = $loc->get( "geo:lat" )->toString();
$r.= " <span style='font-size:80%'>[<a href='http://maps.google.com/maps?q=$lat,$long'>map</a>]</span>";
}
$r.= "</div>\n";
$r.= "</td>\n";
$first_col_rendered = 1;
}
}
$r.= "</tr>\n";
}
$r.= "</table>\n";
return $r;
}
private static function add_to_grid( $thing, $times, &$column, &$column_width, $class )
{
if( !$thing->has( "ev:dtstart" ) ) { return; }
if( !$thing->has( "ev:dtend" ) ) { return; }
$start = self::dt_to_datetime( $thing->get( "ev:dtstart" )->v );
$end = self::dt_to_datetime( $thing->get( "ev:dtend" )->v, true );
# don't render things which start/end on different days
if( $start["date"] != $end["date"] ) { return; }
if( $start["time"] > $end["time"] )
{
error_log( $thing->uri." has start time after end time!" );
return;
}
$slots = array();
if( isset( $times[$start["date"]] ) )
{
foreach( $times[$start["date"]] as $time=>$null )
{
if( $time >= $start["time"] && $time < $end["time"] )
{
$slots []= $time;
}
}
}
$sub_col = 0;
$ok = 0;
while( !$ok )
{
$ok = 1;
foreach( $slots as $slot )
{
if( isset($column[$start["date"]][$sub_col][$slot]) ) { $ok = 0; }
}
if( $ok ) { break; }
$sub_col += 1;
}
if( !isset( $column_width[$start["date"]] ) || $column_width[$start["date"]]<$sub_col+1 )
{
$column_width[$start["date"]] = $sub_col+1;
}
$column[$start["date"]][$sub_col][$start["time"]] = array( "thing"=>$thing, "rowspan"=>sizeof($slots), "colspan"=>1, "class"=>$class );
if( isset( $times[$start["date"]] ) )
{
foreach( $times[$start["date"]] as $time=>$null )
{
if( $time > $start["time"] && $time < $end["time"] )
{
$column[$start["date"]][$sub_col][$time] = "FILLED";
}
}
}
}
private static function add_times( $thing, &$times )
{
if( $thing->has( "ev:dtstart" ) ) { self::add_time( $thing->get( "ev:dtstart" )->v, $times ); }
if( $thing->has( "ev:dtend" ) ) { self::add_time( $thing->get( "ev:dtend" )->v, $times, true ); }
}
private static function dt_to_datetime( $dt, $endtime=false )
{
if( !preg_match( '/^((\d\d\d\d)-(\d\d)-(\d\d))T(\d\d:\d\d(?::\d\d)?)/', $dt, $bits ) ) # ignore timezone
{
error_log( "Bad DateTime: $dt" );
return;
}
if( strlen( $bits[5] ) == 5 ) { $bits[5] .= ":00"; }
if( $bits[5] == '00:00:00' && $endtime )
{
$bits[1] = sprintf( "%04d-%02d-%02d", $bits[2], $bits[3], $bits[4]-1 );
$bits[5] = "24:00:00";
}
$a = array( "date"=>$bits[1], "time"=>$bits[5] );
return $a;
}
private static function add_time( $dt, &$times, $endtime=false )
{
$datetime = self::dt_to_datetime( $dt, $endtime );
if( !isset( $datetime ) )
{
error_log( "Bad DateTime: $dt" );
return;
}
$times[$datetime["date"]][$datetime["time"]] = 1;
}
private static function style()
{
return '
<style>
.programme_table
{
border-collapse: collapse;
}
.programme_session
{
background-color: #fbfdfd;
background-image: url(http://programme.ecs.soton.ac.uk/bluewash.png);
background-repeat: repeat-x;
}
.programme_unstreamed_session
{
background-color: #ffffcc;
}
.programme_timeslot
{
background-color: #ffffff;
background-image: url(http://programme.ecs.soton.ac.uk/greywash.png);
background-repeat: repeat-x;
}
.programme_stream_title, .programme_session, .programme_unstreamed_session, .programme_timeslot
{
border: solid 1px black;
vertical-align: top;
padding: 0px;
}
.programme_stream_title
{
background-color: #cccccc;
background-image: url(http://programme.ecs.soton.ac.uk/greywash.png);
background-repeat: repeat-x;
text-align: center;
padding: 0.5em;
}
.programme_cell_content {
text-align: center;
vertical-align: top;
padding: 0.5em;
}
.programme_session_agent
{
font-size:80%;
margin-top:0.5em;
}
.programme_session_desc
{
text-align: left;
font-size:80%;
margin-top:0.5em;
}
.programme_session_seealso
{
margin-top:0.5em;
}
.programme_session_seealso ul
{
margin-top: 0.1em;
}
.programme_current .programme_cell_content {
}
.programme_now_message
{
text-align: center;
background-color: #fc3;
color: #900;
font-size: 80%;
}
</style>';
}
private static function render_agent($agent,$opts)
{
$r="<div class='programme_session_agent'>";
if( $agent->has("foaf:homepage") )
{
$r.= '<a href="'.$agent->get("foaf:homepage")->toString().'">';
}
$r.= $agent->label();
if( $agent->has("foaf:homepage") )
{
$r.= '</a>';
}
foreach( $agent->all( "-foaf:primaryTopic" ) as $doc )
{
foreach( $doc->all( "rdf:type" ) as $type )
{
if( $type->toString() == 'http://xmlns.com/foaf/0.1/PersonalProfileDocument' )
{
$r .= " [<a href='".$doc->toString()."'>FOAF</a>]";
}
}
}
if( $agent->has("-foaf:member" ) )
{
$list = array();
foreach( $agent->all("-foaf:member") as $org )
{
$item = "";
if( $org->has("foaf:homepage") )
{
$item.= '<a href="'.$org->get("foaf:homepage")->toString().'">';
}
$item.= $org->label();
if( $org->has("foaf:homepage") )
{
$item.= '</a>';
}
$list[]=$item;
}
$r.=" (".join( ", ", $list ).")";
}
if( $agent->has( "bio:biography" ) && $opts["bio"] == "inline")
{
$bio = $agent->get( "bio:biography" );
if( $bio->nodeType() == "http://purl.org/xtypes/Fragment-HTML" )
{
$r.="<div style='text-align:left'>".$bio->toString()."</div>";
}
else
{
$r.="<div style='text-align:left'>".htmlspecialchars($bio->toString())."</div>";
}
}
$r.="</div>";
return $r;
}
private static function dt_to_timet( $dt )
{
if( !preg_match( '/^(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d))?/', $dt, $bits ) ) # ignore timezone
{
error_log( "Bad DateTime: $dt" );
return;
}
if( sizeof( $bits ) == 6 ) { $bits[6] = "00"; }
return mktime( $bits[4], $bits[5], $bits[6], $bits[2], $bits[3], $bits[1] );
}
# opts:
# desc = toggle |
# bio =
function render( $opts = array() )
{
if( !isset($opts["desc"] ) ) { $opts["desc"] = "toggle"; } # show hide hover toggle
# assume everything is in the same timezone!
$times = array();
foreach( $this->prog->all( "prog:has_timeslot" ) as $timeslot )
{
self::add_times( $timeslot, $times );
}
foreach( $this->prog->all( "prog:has_streamed_event" ) as $timeslot )
{
self::add_times( $timeslot, $times );
}
foreach( $this->prog->all( "prog:has_event" ) as $timeslot )
{
self::add_times( $timeslot, $times );
}
# times now contains all the start end times of all events
if( ! $this->prog->has( "prog:has_timeslot" ) )
{
$ttl = "";
foreach( $times as $day=>$daytimes )
{
$list = array_keys( $daytimes );
sort( $list );
for( $i=0;$i<sizeof($list)-1;++$i )
{
$uri = "_#timeslot-$day-".$list[$i];
$ttl.= "<$uri> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/event/TimeSlot> . \n";
if( $i == sizeof($list)-2 )
{
$ttl.= "<$uri> <http://www.w3.org/2000/01/rdf-schema#label> \"".substr($list[$i],0,5)."-".substr($list[$i+1],0,5)."\" .\n";
}
else
{
$ttl.= "<$uri> <http://www.w3.org/2000/01/rdf-schema#label> \"".substr($list[$i],0,5)."\" .\n";
}
$ttl.= "<$uri> <http://purl.org/event/dtstart> \"".$day."T".$list[$i]."Z\" .\n";
$ttl.= "<$uri> <http://purl.org/event/dtend> \"".$day."T".$list[$i+1]."Z\" .\n";
$ttl.= "<".$this->prog->toString()."> <http://purl.org/prog/has_timeslot> <$uri> .\n";
}
}
$this->graph->addTurtle( '_:', $ttl );
}
$grid = array();
$grid_col_widths = array();
foreach( $this->prog->all( "prog:has_timeslot" ) as $timeslot )
{
self::add_to_grid( $timeslot, $times, $grid["timeslot"], $grid_col_widths["timeslot"], "programme_timeslot" );
}
foreach( $this->prog->all( "prog:has_streamed_event" ) as $event )
{
foreach( $this->prog->all( "prog:streamed_by_subject" ) as $subject )
{
$matches = 0;
foreach( $event->all( "dct:subject" ) as $event_subject)
{
if( $event_subject->toString() == $subject->toString() )
{
self::add_to_grid( $event, $times, $grid[$subject->uri], $grid_col_widths[$subject->uri], "programme_session" );
}
}
}
foreach( $this->prog->all( "prog:streamed_by_location" ) as $location )
{
$matches = 0;
foreach( $event->all( "ev:located", "event:place" ) as $event_location)
{
if( $event_location->toString() == $location->toString() )
{
self::add_to_grid( $event, $times, $grid[$location->uri], $grid_col_widths[$location->uri], "programme_session" );
}
}
}
foreach( $this->prog->all( "prog:streamed_by_parent_event" ) as $parent_event )
{
$matches = 0;
foreach( $event->all( "dct:isPartOf" ) as $event_parent_event)
{
if( $event_parent_event->toString() == $parent_event->toString() )
{
self::add_to_grid( $event, $times, $grid[$parent_event->uri], $grid_col_widths[$parent_event->uri], "programme_session" );
}
}
}
}
$datewidth = array();
foreach( $times as $date=>$timedata )
{
$datewidth[$date] = 0;
foreach( $grid as $stream_id => $stream )
{
if( $stream_id == "timeslot" ) { continue; }
if( isset( $stream[$date] ) ) { $datewidth[$date]++; }
}
if( $datewidth[$date] == 0 )
{
$grid["main"][$date] = array( '0'=>array());
$grid_col_widths["main"][$date] = 1;
}
}
# add the non-streamed events
foreach( $this->prog->all( "prog:has_event" ) as $event )
{
$start = dt_to_datetime( $event->get( "ev:dtstart" )->toString() );
$end = dt_to_datetime( $event->get( "ev:dtend" )->toString(), true );
if( !isset( $start ) ) { continue; } # could log in debug/validator mode?)
if( $datewidth[$start["date"]] == 0 )
{
self::add_to_grid( $event, $times, $grid['main'], $grid_col_widths['main'], "programme_session" );
continue;
}
$slots = array();
foreach( $times[$start["date"]] as $time=>$null )
{
if( $time >= $start["time"] && $time < $end["time"] )
{
$slots []= $time;
}
}
$ok = 1;
$cell = array( "thing"=>$event, "colspan"=>0, "rowspan"=>0, "class"=>"programme_unstreamed_session" );
#$column[$start["date"]][$sub_col][$start["time"]] = array( thing=>$thing, rowspan=>sizeof($slots), colspan=>1 );
foreach( $grid as $stream_id => $stream )
{
if( $stream_id == "timeslot" ) { continue; }
if( !isset( $stream[$start["date"]] ) ) { continue; }
foreach( $stream[$start["date"]] as $subcol_id=>$subcol )
{
foreach( $slots as $slot )
{
if( isset($grid[$stream_id][$start["date"]][$subcol_id][$slot]) ) { $ok = 0; break 3; }
if( $cell["rowspan"] == 0 && $cell["colspan"] == 0 )
{
$first_stream_id = $stream_id;
$first_slot = $slot;
$first_subcol_id = $subcol_id;
}
if( $cell["colspan"] == 0 ) { $cell["rowspan"]+=1; }
}
$cell["colspan"]+=1;
}
}
# $ok means that there's no filled slots and we can replace the individual entries in each columnm
# with a full width single cell. Much nicer looking.
if( $ok )
{
foreach( $grid as $stream_id => $stream )
{
if( $stream_id == "timeslot" ) { continue; }
if( !isset( $stream[$start["date"]] ) ) { continue; }
foreach( $stream[$start["date"]] as $subcol_id=>$subcol )
{
foreach( $slots as $slot )
{
$grid[$stream_id][$start["date"]][$subcol_id][$slot] = "FILLED";
}
}
}
$grid[$first_stream_id][$start["date"]][$first_subcol_id][$first_slot] = $cell;
}
else
{
# put them in every column.
$prev_stream_id = "";
$prev_subcol_id = "";
$prev_start_slot = "";
$prev_rows = "";
foreach( $grid as $stream_id => $stream )
{
if( $stream_id == "timeslot" ) { continue; }
if( !isset( $stream[$start["date"]] ) ) { continue; }
foreach( $stream[$start["date"]] as $subcol_id=>$subcol )
{
$slot_i = 0;
while( $slot_i < sizeof( $slots ) )
{
$start_slot = $slots[$slot_i];
$rows = 0;
while( $slot_i < sizeof( $slots ) && !isset( $grid[$stream_id][$start["date"]][$subcol_id][$slots[$slot_i]] ) )
{
$grid[$stream_id][$start["date"]][$subcol_id][$slots[$slot_i]] = "FILLED";
++$slot_i;
++$rows;
}
if( $rows )
{
if( $rows == $prev_rows && $start_slot == $prev_start_slot )
{
$grid[$prev_stream_id][$start["date"]][$prev_subcol_id][$prev_start_slot]["colspan"]++;
}
else
{
$grid[$stream_id][$start["date"]][$subcol_id][$start_slot] = array( "thing"=>$event, "colspan"=>1, "rowspan"=>$rows, "class"=>"programme_unstreamed_session" );
$prev_stream_id = $stream_id;
$prev_subcol_id = $subcol_id;
$prev_start_slot = $start_slot;
}
}
$prev_rows = $rows;
++$slot_i;
}
}
}
}
}
if( isset($opts["date"]) )
{
return self::style().self::render_calendar_day( $times, $grid_col_widths, $grid, $this->graph, $opts["date"], $opts );
}
$title = $this->prog->label();
if( !$this->prog->hasLabel() )
{
$title = "Programme for ".$this->prog->get("prog:describes","-prog:has_programme")->label();
}
$output = array();
$output []= self::style();
$output []= "<h1>$title</h1>";
ksort( $times );
foreach( $times as $date=>$timelist )
{
list($y,$m,$d) = preg_split( '/-/', $date );
$output []= "<h2>".date( "l jS \of F, Y",mktime(0,0,0,$m,$d,$y))."</h2>";
$output []= self::render_calendar_day( $times, $grid_col_widths, $grid, $graph, $date , $opts);
}
$output []= "<p><small>Rendering of programmed data from <a href='$src'>$src</a> in the <a href='http://programme.ecs.soton.ac.uk/1.0/'>Event Programme Ontology</a>.</small></p>";
return join( '', $output );
}
}
|
<?php
use Verkoo\Common\Entities\Customer;
use Verkoo\Common\Entities\Options;
use Verkoo\Common\Entities\Payment;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateOptionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('options', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('cash_customer');
$table->foreign('cash_customer')
->references('id')
->on('customers');
$table->unsignedInteger('payment_id');
$table->foreign('payment_id')
->references('id')
->on('payments');
$table->string('company_name')->nullable();
$table->string('address')->nullable();
$table->string('cif')->nullable();
$table->string('phone')->nullable();
$table->string('default_printer')->nullable();
$table->string('cp')->nullable();
$table->string('city')->nullable();
$table->string('web')->nullable();
$table->boolean('print_ticket_when_cash')->default(0);
$table->boolean('open_drawer_when_cash')->default(1);
$table->boolean('hide_out_of_stock')->default(0);
$table->boolean('show_stock_in_photo')->default(0);
$table->boolean('recount_stock_when_open_cash')->default(0);
$table->boolean('break_down_taxes_in_ticket')->default(0);
$table->unsignedInteger('tax_id');
$table->foreign('tax_id')->references('id')->on('taxes');
$table->integer('pagination')->nullable();
$table->boolean('manage_kitchens')->default(0);
$table->unsignedInteger('default_tpv_serie')->default(1);
$table->boolean('cash_pending_ticket')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('options');
}
}
|
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
/**
* App\Home
*
* @property int $id
* @property string|null $bu1_path
* @property string|null $bu2_path
* @property string $bu
* @method static \Illuminate\Database\Eloquent\Builder|\App\Home newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Home newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Home query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Home whereBu($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Home whereBu1Path($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Home whereBu2Path($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Home whereId($value)
* @mixin \Eloquent
*/
class Home extends Model
{
protected $fillable=[
'bu1_path','bu2_path','bu'
];
public $table = 'home';
public $timestamps = false;
}
|
<?php
/**
* Модель старниц
*
* @author nergal
* @package btlady
*/
abstract class Model_Abstract_Page extends ORM implements Model_Abstract_Interface_Page {
/**
* Алиас для выборки типа из type_pages
* @var string
*/
protected $_type_alias = NULL;
/**
* Имя таблицы
* @var string
*/
protected $_table_name = 'pages';
/**
* Внешние связи "один ко многим"
* @var array
*/
protected $_belongs_to = array(
'section' => array(
'model' => 'section',
'foreign_key' => 'section_id',
),
'type' => array(
'model' => 'pagetype',
'foreign_key' => 'type_id',
),
'user' => array(
'model' => 'user',
'foreign_key' => 'user_id',
),
/* 'pages_sections' => array(
'model' => 'pagessections',
'foreign_key' => 'id',
),*/
);
/**
* Внешние связи "один ко многим"
* @var array
*/
protected $_has_many = array(
'media' => array(
'model' => 'media',
'foreign_key' => 'page_id',
),
'comments' => array(
'model' => 'comment',
'foreign_key' => 'page_id',
),
'views' => array(
'model' => 'view',
'foreign_key' => 'page_id',
),
'tags' => array(
'model' => 'tag',
'foreign_key' => 'page_id',
'through' => 'pages_tags',
),
);
/**
* Подгузка связей
* @var array
*/
protected $_load_with = array(/*'pages_sections',*/'section', 'type');
protected $_foreign_fields = array(
// Integer
'audioversion' => 'int',
'fee' => 'int',
'ip' => 'int',
// DateTime
'date-event' => 'datetime',
// String
'author' => 'string',
'email' => 'string',
'address' => 'string',
'phone' => 'string',
'schedule' => 'string',
'source' => 'string',
// Boolean
'announce' => 'int',
'exclusive' => 'int',
'isadvert' => 'int',
'iscontest' => 'int',
'social_comments' => 'int',
'disable_comments' => 'int',
);
/**
* Создание внутренних запросов модели
* с прикреплённым типом материала
*
* @param integer $type Тип запроса
* @return ORM
*/
protected function _build($type)
{
parent::_build($type);
if ($type == Database::SELECT AND $this->_type_alias !== NULL) {
$this->_db_builder->where('type.alias', '=', $this->_type_alias);
}
return $this;
}
public function __get($variable)
{
$data = parent::__get($variable);
if ($variable == 'body') {
$this->increment_views_count();
// TODO: как-то убрать
$selector = '#(<div id=(?:"|\')block_similar(?:"|\')(?:[^>]*)>)(?P<text>[^<]*)(</div>)#ui';
if (preg_match($selector, $data, $matches)) {
// TODO: сделать связку через ORM
$linked = ORM::factory('pagesimilar', array('page_id' => $this->id, 'single' => 1))->article;
if ($linked->loaded()) {
$link = View::factory()->link($linked);
$var = explode(' - ', $matches['text'], 2);
$var = array_replace($var, array(1 => $link));
$var = implode(' - ', $var);
$data = preg_replace($selector, '<div id="block_similar">'.$var.'</div>', $data);
}
}
} elseif ($variable == 'views_count') {
$cache = Cache::instance('memcache');
$key = array('count_views', $this->id, date('Ymd'));
$key = implode('_', $key);
if ($counts = $cache->get($key)) {
return intVal($counts) + 1;
}
}
return $data;
}
public function __call($method, array $args)
{
if ($method != 'loaded' AND $this->loaded()) {
$exploded = explode('_', strtolower($method));
if (count($exploded) == 3 AND $exploded[2] == 'count') {
$type = $action = NULL;
if (in_array($exploded[0], array('increment', 'decrement'))) {
$action = $exploded[0];
}
if (in_array($exploded[1], array('views', 'comments'))) {
$type = $exploded[1];
}
if ($type !== NULL AND $action !== NULL) {
$key = array('count', $type, $this->id, date('Ymd'));
$key = implode('_', $key);
$default = parent::__get($type.'_count');
$result = Cache::instance('memcache')->$action($key, 1, $default);
parent::set($type.'_count',$result);
if($type == 'comments') {
$this->save();
}
return $result;
}
}
}
return parent::__call($method, $args);
}
public function get_alias()
{
return $this->type->alias;
}
/**
* Выборка материала
*
* @param string $pagename
* @param boolean $show
* @return ORM
*/
public function get_page($pagename, $show = FALSE)
{
$query = $this->where($this->_table_name.'.name_url', '=', $pagename);
if ($show === TRUE) {
$query = $query->where($this->_table_name.'.showhide', '=', 1);
}
return $query->find();
}
/**
* Выборка последнего материала
*
* @param boolean $show Выводить ли показываемые статьи
* @return ORM
*/
public function get_last($show = TRUE)
{
$query = $this->order_by($this->_table_name.'.date', 'desc');
if ($show === TRUE) {
$query = $query
->where($this->_table_name.'.showhide', '=', 1)
->where($this->_table_name.'.date', '<', DB::expr('NOW()'));
}
return $query->find();
}
/**
* Выборка последних материалов
*
* @param boolean $show Выводить ли показываемые статьи
* @param integer $limit количество материаов в выборке
* @return ORM
*/
public function get_lasts($show = TRUE, $limit = 4, $section_id = NULL)
{
$query = $this
->group_by($this->_table_name.'.id')
->order_by($this->_table_name.'.date', 'desc');
if ($show === TRUE) {
$query
->where($this->_table_name.'.showhide', '=', 1)
->where($this->_table_name.'.date', '<', DB::expr('NOW()'))
->where($this->_table_name.'.date', '>', 0);
}
if ($section_id && intVal($section_id) > 0) {
$query->where($this->_table_name.'.section_id', '=', $section_id);
}
$query->limit($limit);
return $query->find_all();
}
/**
* Выборка дерева последних материалов
*
* @param boolean $show Выводить ли показываемые статьи
* @param integer $limit количество материаов в выборке
* @return ORM
*
*/
public function get_tree_lasts($show = TRUE, $limit = 100, $section_id = NULL)
{
$query = $this
->group_by($this->_table_name.'.id')
->order_by($this->_table_name.'.date', 'desc');
if ($show === TRUE) {
$query
->where($this->_table_name.'.showhide', '=', 1)
->where($this->_table_name.'.date', '<', DB::expr('NOW()'))
->where($this->_table_name.'.date', '>', 0);
}
if ($section_id && intVal($section_id) > 0) {
$childs = ORM::factory('section')->get_childs($section_id);
$query
->where_open()
->where($this->_table_name.'.section_id', 'IN', $childs)
->or_where('parent_id', 'IN', $childs)
->where_close();
}
$query->limit($limit);
return $query->find_all();
}
/**
* Выборка последних материалов для RSS
*
* @param integer $limit количество материаов в выборке
* @return ORM
*/
public function get_ya_rss($limit = 100)
{
$query = $this
->where($this->_table_name.'.showhide', '=', 1)
->where($this->_table_name.'.date', '<', DB::expr('NOW()'))
->where($this->_table_name.'.yandex_rss', '=', 1)
->group_by($this->_table_name.'.id')
->order_by($this->_table_name.'.date', 'desc')
->limit($limit);
return $query->find_all();
}
public function get_partner_rss($limit = 100)
{
$query = $this
->where($this->_table_name.'.date', '<', DB::expr('NOW()'))
->where($this->_table_name.'.showhide', '=', 1)
->where($this->_table_name.'.partners_rss', '=', 1)
->group_by($this->_table_name.'.id')
->order_by($this->_table_name.'.date', 'desc')
->limit($limit);
return $query->find_all();
}
public function get_fixed($limit = 3, $with_images = FALSE)
{
$query = $this
->where($this->_table_name.'.date', '<', DB::expr('NOW()'))
->order_by($this->_table_name.'.fix', 'desc')
->order_by($this->_table_name.'.date', 'desc')
->limit($limit);
if ($with_images === TRUE) {
$query->where($this->_table_name.'.photo', 'IS NOT', NULL);
}
return $query->find_all();
}
public function get_recommended($limit = 5, $with_images = FALSE)
{
$query = $this
->where($this->_table_name.'.showhide', '=', 1)
->where($this->_table_name.'.date', '<', DB::expr('NOW()'))
->where($this->_table_name.'.recommended', '=', 1);
if ($with_images === TRUE) {
$query->where($this->_table_name.'.photo', 'IS NOT', NULL);
}
$query
->order_by($this->_table_name.'.date', 'desc')
->limit($limit);
return $query->find_all();
}
/**
* Подсет количества материалов для всего дерева начинающихся с каждой букывы алфавита
*
* @param string $section Имя категории
* @return array
*/
public function get_active_literas($section)
{
$abc_counter = array();
foreach (Kohana::config('abc.ru') as $key => $litera) {
$query = $this
->where($this->_table_name.'.showhide', '=', 1)
->where($this->_table_name.'.date', '<', DB::expr('NOW()'))
->where($this->_table_name.'.title', 'RLIKE', DB::expr('"^[0-9\" \.]*'.$litera.'"'));
$childs = ORM::factory('section')->get_childs($section);
$query->where($this->_table_name.'.section_id', 'IN', $childs);
$litera_count = $query->count_all();
$abc_counter[$key] = $litera_count;
}
return $abc_counter;
}
/**
* Выборка категории для построения пейджинга по литере
*
* @param string $section Имя категории
* @param integer $page Номер страницы
* @param integer $limit Статей на страницу
* @param boolean $count Сделать подсчет
* @param integer $litera Порядковый номер буквицы в алфавите
* @return integer|Database_Result
*/
public function get_tree_by_litera($section, $page = NULL, $limit = 10, $count = FALSE, $litera_num = -1)
{
$abc_array = Kohana::config('abc.ru');
$query = $this->reset();
$query = $this
->where($this->_table_name.'.showhide', '=', 1)
->where($this->_table_name.'.date', '<', DB::expr('NOW()'));
if ($litera_num >= 0)
{
$litera = $abc_array[$litera_num];
$query = $this->where($this->_table_name.'.title', 'RLIKE', DB::expr('"^[0-9\" \.]*'.$litera.'"'));
}
$childs = ORM::factory('section')->get_childs($section);
$query->where($this->_table_name.'.section_id', 'IN', $childs);
if ($count === FALSE) {
if ($page !== NULL) {
$offset = $limit * (intVal($page) - 1);
$query->limit($limit)
->offset($offset);
}
$query->order_by($this->_table_name.'.title');
$data = $query->find_all();
return $data;
} else {
return $query->count_all();
}
}
/**
* Выборка категории для построения пейджинга
*
* @param string $section Имя категории
* @param integer $page Номер страницы
* @param integer $limit Статей на страницу
* @param boolean $count Сделать подсчет
* @return integer|Database_Result
*/
public function get_tree($section, $page = NULL, $limit = 10, $count = FALSE, $order = NULL, $period = NULL)
{
// $pages_sections_table = 'pages_sections';
// $this->_load_with = array('pages_sections','section', 'type');
//$section_table = 'sections';
$this->reset(TRUE);
$query = $this
// ->join($section_table)
// ->on($this->_table_name.'.section_id', '=', $section_table.'.id')
// ->where($section_table.'.showhide', '=', 1)
->where($this->_table_name.'.date', '<', DB::expr('NOW()'))
->where($this->_table_name.'.showhide', '=', 1);
if ($period == 'week') {
$query->where($this->_table_name.'.date', '>', DB::expr('DATE_SUB(CURDATE(), INTERVAL 7 DAY) '));
} elseif ($period == 'month') {
$query->where($this->_table_name.'.date', '>', DB::expr('DATE_SUB(CURDATE(), INTERVAL 31 DAY) '));
}
if ($section == 'all') {
$query
->where($this->_table_name.'.section_id', '>', 300) // исключить старые разделы
->where($this->_table_name.'.section_id', 'NOT IN', array(477, 420, 436)) // исключить разделы
->where($this->_table_name.'.type_id', '=', 2); // только статьи
} else {
$childs = ORM::factory('section')->get_childs($section);
// дублирование
$pages_sections = ORM::factory('pagessections')->get_pages($childs);
if (empty($pages_sections)) {
$query
->where($this->_table_name.'.section_id', 'IN', $childs);
} else {
$query->and_where_open()
->where($this->_table_name.'.section_id', 'IN', $childs)
->or_where($this->_table_name.'.id', 'IN', $pages_sections)
->and_where_close();
}
}
if ($count === FALSE) {
switch ($order) {
case 'views':
$query->order_by('views_count', 'DESC');
break;
case 'comments':
$query->order_by('comments_count', 'DESC');
break;
case 'title':
$query->order_by('title');
break;
default:
$query->order_by('date', 'DESC');
}
if ($page !== NULL) {
$offset = $limit * (intVal($page) - 1);
$query->limit($limit)
->offset($offset);
}
$data = $query->find_all();//die;
return $data;
} else {
return $query->count_all();
}
}
/**
* Подсчет кол-ва статей в выборке
*
* @param string $section Имя категории
* @return integer
*/
public function get_count_tree($section, $period)
{
return $this->get_tree($section, NULL, 10, TRUE, NULL, $period);
}
/**
* Выборка рекоммендованных статей для построения пейджинга
*
* @param integer $page Номер страницы
* @param integer $limit Статей на страницу
* @param boolean $count Сделать подсчет
* @param string $order Порядок сортировки материалов
* @param string $period Период выборки материалов
* @return integer|Database_Result
*/
public function get_tree_recommend($page = NULL, $limit = 10, $count = FALSE, $order = NULL, $period = NULL)
{
$this->reset(TRUE);
$query = $this
->where($this->_table_name.'.showhide', '=', 1)
->where($this->_table_name.'.date', '<', DB::expr('NOW()'))
->where($this->_table_name.'.recommended', '=', 1);
if ($period == 'week') {
$query->where($this->_table_name.'.date', ">", DB::expr('DATE_SUB(CURDATE(), INTERVAL 7 DAY) '));
} elseif ($period == 'month') {
$query->where($this->_table_name.'.date', ">", DB::expr('DATE_SUB(CURDATE(), INTERVAL 31 DAY) '));
}
if ($count === FALSE) {
switch ($order) {
case 'views':
$query->order_by('views_count', 'DESC');
break;
case 'comments':
$query->order_by('comments_count', 'DESC');
break;
case 'title':
$query->order_by('title');
break;
default:
$query->order_by('date', 'DESC');
}
if ($page !== NULL) {
$offset = $limit * (intVal($page) - 1);
$query->limit($limit)
->offset($offset);
}
$data = $query->find_all();
return $data;
} else {
return $query->count_all();
}
}
/**
* Подсчет кол-ва статей в выборке
*
* @param string $period Период выборки материалов
* @return integer
*/
public function get_count_tree_recommend($period)
{
return $this->get_tree_recommend(NULL, 10, TRUE, NULL, $period);
}
/**
* Валидация выбранной статьи
*
* @param string $title Заголовок из адреса
* @param string|integer $category Категория из адреса
* @return boolean|ORM
*/
public function valid($title = NULL, $category = NULL)
{
if ($this->loaded()) {
if ($title !== NULL) {
if (View::factory()->transliterate($this->title) != $title) {
return FALSE;
}
}
if ($category !== NULL) {
// TODO: сделать валидацию категории
}
return $this;
}
return FALSE;
}
/**
* Выборка материалов принадлежащих секции (включая подсекции)
*
* @param integer $section_id
* @param integer $limit
* @return array
*/
public function get_by_section_id($section_id = 304, $limit = 2, $announcing = false) // Здоровье
{
$section_id = (array) $section_id;
$query = $this
->where('pages.showhide', "=", 1)
->where('pages.date', '<', DB::expr('NOW()'))
->and_where('section.id', ">", 300) // отсекаем старые разделы
->and_where_open()
->where('section.id', "IN", $section_id)
->or_where('section.parent_id', "IN", $section_id)
->and_where_close()
->order_by('date', 'DESC')
->limit($limit);
if ($announcing)
{
$query->where('pages.announcing', "=", 1);
}
return $query->find_all();
}
/**
* Выборка для главного блока (TV)
*
* TODO: при наличии нескольких подобных метов -- слить в один
*
* @param integer $offset
* @param integer $limit
* @return array
*/
public function get_last_for_tv_block($offset = 0, $limit = 5)
{
$this->_load_with = array('section', 'type');
$query = $this
->where('parent_id', 'in', array(629,630,631,632,633))
->where('date', '<', DB::expr('NOW()'))
->order_by('fix', 'DESC')
->order_by('date', 'DESC')
->limit($limit)
->offset($offset*$limit);
return $query->find_all();
}
/**
* Выборка top-view материалов
*
* @param integer $type (берем из type_pages)
* @param integer $limit
* @return array
*/
public function get_top_view($limit = 6)
{
$query = $this
->where($this->_table_name.'.showhide', "=", 1)
->where($this->_table_name.'.date', '<', DB::expr('NOW()'))
->where('section.id', ">", 300) // отсекаем старые разделы
->where('date', ">", DB::expr('DATE_SUB(CURDATE(), INTERVAL 7 DAY) ')) // за последнюю неделю
->order_by('views_count', 'DESC')
->limit($limit);
if ($limit > 1) {
return $query->find_all();
} else {
return $query->find();
}
}
/**
* Выборка top-commented материалов
*
* @param integer $type (берем из type_pages)
* @param integer $limit
* @return array
*/
public function get_top_comment($limit = 6)
{
$query = $this
->where($this->_table_name.'.showhide', "=", 1)
->where($this->_table_name.'.date', '<', DB::expr('NOW()'))
->where('section.id', ">", 300) // отсекаем старые разделы
->where('comments_count', ">" , 0)
->where('date', ">", DB::expr('DATE_SUB(CURDATE(), INTERVAL 7 DAY)')) // за последнюю неделю
->order_by('comments_count', 'DESC')
->limit($limit);
if ($limit > 1) {
return $query->find_all();
} else {
return $query->find();
}
}
/**
* Мета-линк для цепочки ORM для выборки видимых материалов
*
* @return ORM
*/
public function visible()
{
return $this->where($this->_table_name.'.showhide', '=', 1);
}
/**
* Выборка только видимых материалов
*
* @return array
*/
public function get_visible()
{
$query = $this->visible();
return $query->find();
}
/**
* Similar pages selection
*
* @param integer $limit
* @return Database_Result
*/
public function get_similar($limit = 5) {
if ($this->loaded()) {
$sql = '
SELECT
`x`.`id`,
`x`.`title`,
`s`.`name_url`,
`tp`.`alias`
FROM
(
(
SELECT
`p`.`id`,
`p`.`title`,
`p`.`type_id`,
`p`.`section_id`,
0
FROM `pages_similar` `ps`
JOIN `pages` `p` ON `p`.`id` = `ps`.`similar_id`
WHERE `ps`.`page_id` = :page_id
) UNION (
SELECT
`p`.`id`,
`p`.`title`,
`p`.`type_id`,
`p`.`section_id`,
COUNT(`p`.`id`)
FROM `pages` `p`
LEFT JOIN `pages_tags` `pt` ON `p`.`id` = `pt`.`page_id`
WHERE
`p`.`showhide` = 1
AND `pt`.`tag_id` = SOME(SELECT `tag_id` FROM `pages_tags` WHERE `page_id` = :page_id)
AND `p`.`id` != :page_id
GROUP BY `p`.`id`
ORDER BY COUNT(`p`.`id`) DESC
LIMIT 5
)
) `x`
JOIN `type_pages` `tp` ON `tp`.`id` = `x`.`type_id`
JOIN `sections` `s` ON `s`.`id` = `x`.`section_id`
LIMIT '.intVal($limit);
$query = DB::query(Database::SELECT, $sql);
$query->param(':page_id', $this->id);
return $query->execute()->as_array();
/*
$result = ORM::factory('page')
->join(array('pages_tags', 'pt'), 'LEFT')
->on('pt.page_id', '=', $this->_table_name.'.id')
->visible()
->where('pt.tag_id', '=', DB::expr('SOME(SELECT tag_id FROM pages_tags WHERE page_id = '.$this->id.')'))
->where($this->_table_name.'.id', '!=', $this->id)
->group_by($this->_table_name.'.id')
->order_by('COUNT("'.$this->_table_name.'.id")', 'DESC')
->limit($limit);
return $result->find_all();
*/
}
throw new Kohana_Exception('Similar method only for loaded objects');
}
/**
* Описание структуры таблицы
*
* @return array
*/
public function rules()
{
return array(
'name_url' => array(
array('min_length', array(':value', 4)),
array('max_length', array(':value', 3000)),
),
'title' => array(
array('not_empty'),
array('min_length', array(':value', 4)),
array('max_length', array(':value', 3000)),
),
'body' => array(
// array('not_empty'),
array('min_length', array(':value', 4)),
array('max_length', array(':value', 80000)),
),
'description' => array(
// array('not_empty'),
array('min_length', array(':value', 4)),
array('max_length', array(':value', 3000)),
),
'date' => array(
array('not_empty'),
array('regex', array(':value', '/^([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9]{2}):([0-9]{2}):([0-9]{2})$/')),
),
'fix' => array(
array('not_empty'),
array('min_length', array(':value', 1)),
array('max_length', array(':value', 1)),
array('regex', array(':value', '/^(1|0)?$/')),
),
'showhide' => array(
array('not_empty'),
array('min_length', array(':value', 1)),
array('max_length', array(':value', 1)),
array('regex', array(':value', '/^(1|0)?$/')),
),
);
}
}
|
<?php
/**
* Created by PhpStorm.
* User: abhi
* Date: 21/5/15
* Time: 5:20 PM
*/
namespace Relaxed\Replicator;
use Doctrine\CouchDB\CouchDBClient;
class ReplicationTask
{
/**
* @var null
*/
protected $repId;
/**
* @var bool
*/
protected $continuous;
/**
* @var string
*/
protected $filter;
/**
* @var bool
*/
protected $createTarget;
/**
* @var array
*/
protected $docIds;
/**
* @var int
*/
protected $heartbeat;
/**
* @var
*/
protected $cancel;
/**
* @var string
*/
protected $style;
/**
* @var int
*/
protected $sinceSeq;
/**
* @param null $repId
* @param bool $continuous
* @param null $filter
* @param bool $createTarget
* @param array $docIds
* @param int $heartbeat
* @param bool $cancel
* @param string $style
* @param int $sinceSeq
*/
public function __construct(
$repId = null,
$continuous = false,
$filter = null,
$createTarget = false,
array $docIds = null,
$heartbeat = 10000,
$cancel = false,
$style = "all_docs",
$sinceSeq = 0
) {
$this->repId = $repId;
$this->continuous = $continuous;
$this->filter = $filter;
$this->createTarget = $createTarget;
$this->docIds = $docIds;
$this->heartbeat = $heartbeat;
$this->cancel = $cancel;
$this->style = $style;
$this->sinceSeq = $sinceSeq;
if ($docIds != null) {
\sort($this->docIds);
if ($filter == null) {
$this->filter = '_doc_ids';
}
elseif ($filter !== '_doc_ids') {
throw new \InvalidArgumentException('If docIds is specified,
the filter should be set as _doc_ids');
}
}
}
/**
* @return mixed
*/
public function getRepId()
{
return $this->repId;
}
/**
* @param mixed $repId
*/
public function setRepId($repId)
{
$this->repId = $repId;
}
/**
* @return bool
*/
public function getContinuous()
{
return $this->continuous;
}
/**
* @param bool $continuous
*/
public function setContinuous($continuous)
{
$this->continuous = $continuous;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* @param string $filter
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return boolean
*/
public function getCreateTarget()
{
return $this->createTarget;
}
/**
* @param boolean $createTarget
*/
public function setCreateTarget($createTarget)
{
$this->createTarget = $createTarget;
}
/**
* @return array
*/
public function getDocIds()
{
return $this->docIds;
}
/**
* @param array $docIds
*/
public function setDocIds($docIds)
{
if ($docIds != null) {
\sort($this->docIds);
if ($this->filter == null) {
$this->filter = '_doc_ids';
}
elseif ($this->filter !== '_doc_ids') {
throw new \InvalidArgumentException('If docIds is specified,
the filter should be set as _doc_ids');
}
}
$this->docIds = $docIds;
}
/**
* @return int
*/
public function getHeartbeat()
{
return $this->heartbeat;
}
/**
* @param int $heartbeat
*/
public function setHeartbeat($heartbeat)
{
$this->heartbeat = $heartbeat;
}
/**
* @return mixed
*/
public function getCancel()
{
return $this->cancel;
}
/**
* @param mixed $cancel
*/
public function setCancel($cancel)
{
$this->cancel = $cancel;
}
/**
* @return mixed
*/
public function getStyle()
{
return $this->style;
}
/**
* @param mixed $style
*/
public function setStyle($style)
{
$this->style = $style;
}
/**
* @return mixed
*/
public function getSinceSeq()
{
return $this->sinceSeq;
}
/**
* @param mixed $sinceSeq
*/
public function setSinceSeq($sinceSeq)
{
$this->sinceSeq = $sinceSeq;
}
} |
<?php
/*
* This file is part of SplashSync Project.
*
* Copyright (C) Splash Sync <www.splashsync.com>
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Splash\Tasking\Services;
use Exception;
use Psr\Log\LoggerInterface;
use Splash\Tasking\Entity\Task;
use Splash\Tasking\Entity\Token;
/**
* Token Management Service
*/
class TokenManager
{
//==============================================================================
// Variables Definition
//==============================================================================
/**
* @var LoggerInterface
*/
private $logger;
/**
* Current Acquired Token
*
* @var null|string
*/
private $currentToken;
//====================================================================//
// CONSTRUCTOR
//====================================================================//
/**
* Class Constructor
*
* @param LoggerInterface $logger
*
* @throws Exception
*/
public function __construct(LoggerInterface $logger)
{
//====================================================================//
// Link to Symfony Logger
$this->logger = $logger;
}
//====================================================================//
// Tasks Tokens Management
//====================================================================//
/**
* Take Lock on a Specific Token
*
* @param Task $task Task Object
*
* @throws Exception
*
* @return bool
*/
public function acquire(Task $task): bool
{
//==============================================================================
// Safety Check - If Task Counter is Over => Close Directly This Task
// This means task was aborted due to a uncached fatal error
if ($task->getTry() > Configuration::getTasksMaxRetry()) {
$task->setFaultStr("Fatal Error: Task Counter is Over!");
$this->logger->notice("Token Manager: Task Counter is Over!");
return false;
}
//==============================================================================
// Check Token is not Empty => Skip
$jobToken = $task->getJobToken();
if (null == $jobToken) {
return true;
}
//==============================================================================
// Check If we have an Active Token
if (!is_null($this->currentToken)) {
//==============================================================================
// Check If Token is Already Took
if ($this->currentToken == $jobToken) {
$this->logger->info('Token Manager: Token Already Took! ('.$this->currentToken.')');
return true;
}
//==============================================================================
// CRITICAL - Release Current Token before Asking for a new one
$this->release();
$this->logger
->error('Token Manager: Token Not Released before Acquiring a New One! ('.$this->currentToken.')');
return true;
}
//==============================================================================
// Try Acquire this Token
$acquiredToken = Configuration::getTokenRepository()->acquire($jobToken);
//==============================================================================
// Check If token is Available
if ($acquiredToken instanceof Token) {
$this->currentToken = $acquiredToken->getName();
$this->logger->info('Token Manager: Token Acquired! ('.$jobToken.')');
return true;
}
//==============================================================================
// Token Rejected
$this->currentToken = null;
$this->logger->info('Token Manager: Token Rejected! ('.$jobToken.')');
return false;
}
/**
* Release Lock on a Specific Token
*
* @throws Exception
*
* @return bool Return True only if Current Token was Released
*/
public function release() : bool
{
//==============================================================================
// Check If we currently have a token
if (is_null($this->currentToken)) {
return false;
}
//==============================================================================
// Release Token
$release = Configuration::getTokenRepository()->release($this->currentToken);
//==============================================================================
// Token Released => Clear Current Token
if (true === $release) {
$this->logger->info('Token Manager: Token Released! ('.$this->currentToken.')');
$this->currentToken = null;
}
return $release;
}
/**
* Validate/Create a Token before insertion of a new Task
*
* @param Task $task
*
* @throws Exception
*
* @return bool
*/
public function validate(Task $task): bool
{
$token = $task->getJobToken();
if (null === $token) {
return true;
}
return Configuration::getTokenRepository()->validate($token);
}
}
|
<?php declare(strict_types=1);
/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Deployer\Documentation;
class DocRecipe
{
/**
* @var string
*/
public $recipeName;
/**
* @var string
*/
public $recipePath;
/**
* @var string
*/
public $comment;
/**
* @var string[]
*/
public $require = [];
/**
* @var DocConfig[]
*/
public $config = [];
/**
* @var DocTask[]
*/
public $tasks = [];
public function __construct(string $recipeName, string $recipePath)
{
$this->recipeName = $recipeName;
$this->recipePath = $recipePath;
}
/**
* @return bool|int
*/
public function parse(string $content)
{
$comment = '';
$desc = '';
$currentTask = null;
$content = str_replace("\r\n", "\n", $content);
$state = 'root';
$lines = explode("\n", $content);
for ($i = 0; $i < count($lines); $i++) {
$line = $lines[$i];
$m = [];
$match = function ($regexp) use ($line, &$m) {
return preg_match("#$regexp#", $line, $m);
};
switch ($state) {
case 'root':
if ($match('^/\*\*?')) {
$state = 'comment';
$comment .= trim_comment($line) . "\n";
break;
}
if ($match('^//')) {
$comment .= trim_comment($line) . "\n";
break;
}
if ($match('^require.+?[\'"](?<recipe>.+?)[\'"]')) {
$this->require[] = dirname($this->recipePath) . $m['recipe'];
break;
}
if ($match('^set\([\'"](?<config_name>[\w_:\-/]+?)[\'"]')) {
$set = new DocConfig();
$set->name = $m['config_name'];
$set->comment = trim($comment);
$comment = '';
$set->recipePath = $this->recipePath;
$set->lineNumber = $i + 1;
if (preg_match('#^set\(.+?,\s(?<value>.+?)\);$#', $line, $m)) {
$set->defaultValue = $m['value'];
}
if (preg_match('#^set\(.+?,\s\[$#', $line, $m)) {
$multiLineArray = "[\n";
$line = $lines[++$i];
while (!preg_match('/^]/', $line)) {
$multiLineArray .= $line . "\n";
$line = $lines[++$i];
}
$multiLineArray .= "]";
$set->defaultValue = $multiLineArray;
}
if (preg_match('/^set\(.+?, function/', $line, $m)) {
$body = [];
$line = $lines[++$i];
while (!preg_match('/^}\);$/', $line)) {
$body[] = trim($line);
var_dump($line);
$line = $lines[++$i];
}
if (count($body) === 1 && preg_match('/throw new/', $body[0])) {
$set->comment .= "\n:::info Required\nThrows exception if not set.\n:::\n";
} else if (count($body) <= 4) {
$set->defaultValue = implode("\n", $body);
} else {
$set->comment .= "\n:::info Autogenerated\nThe value of this configuration is autogenerated on access.\n:::\n";
}
}
$this->config[$set->name] = $set;
break;
}
if ($match('^desc\([\'"](?<desc>.+?)[\'"]\);$')) {
$desc = $m['desc'];
break;
}
if ($match('^task\([\'"](?<task_name>[\w_:-]+?)[\'"],\s\[$')) {
$task = new DocTask();
$task->name = $m['task_name'];
$task->desc = $desc;
$task->comment = trim($comment);
$comment = '';
$task->group = [];
$task->recipePath = $this->recipePath;
$task->lineNumber = $i + 1;
$this->tasks[$task->name] = $task;
$state = 'group_task';
$currentTask = $task;
break;
}
if ($match('^task\([\'"](?<task_name>[\w_:-]+?)[\'"]')) {
$task = new DocTask();
$task->name = $m['task_name'];
$task->desc = $desc;
$task->comment = trim($comment);
$comment = '';
$task->recipePath = $this->recipePath;
$task->lineNumber = $i + 1;
$this->tasks[$task->name] = $task;
break;
}
if ($match('^<\?php')) {
break;
}
if ($match('^namespace Deployer;$')) {
$this->comment = $comment;
break;
}
$desc = '';
$comment = '';
break;
case 'comment':
if ($match('\*/\s*$')) {
$state = 'root';
break;
}
$comment .= trim_comment($line) . "\n";
break;
case 'group_task':
if ($match('^\s+\'(?<task_name>[\w_:-]+?)\',$')) {
$currentTask->group[] = $m['task_name'];
break;
}
$state = 'root';
break;
}
}
return false;
}
}
|
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMediciensStorePharmaceuticalCompanyTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('mediciensStore_pharmCo', function (Blueprint $table) {
$table->primary(['medStore_id', 'pharmCo_id']);
$table->unsignedBigInteger('medStore_id');
$table->unsignedBigInteger('pharmCo_id');
$table->foreign('medStore_id')->references('id')->on('medicines_stores')->onDelete('cascade');
$table->foreign('pharmCo_id')->references('id')->on('pharmaceutical_companies')->onDelete('cascade');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('mediciensStore_PharmaceuticalCompany');
}
}
|
<?php
namespace App\Helpers;
class MailChimp {
private $guzzleClient;
private $apiKey;
private $headers;
private $url;
public function __construct($apiKey) {
$this->apiKey = $apiKey;
// check if key is legit before proceeding
if (!is_string($apiKey)) {
throw new \Exception("API key must be a string");
}
if (strpos($apiKey, '-') === false) {
throw new \Exception("API key $apiKey is invalid");
}
list($key, $dataCenter) = explode('-', $apiKey);
$this->headers = [
'Content-Type' => 'application/json',
'Authorization' => 'Basic ' . base64_encode('user:' . $apiKey),
];
$this->url = 'https://' . $dataCenter . '.api.mailchimp.com/3.0/';
$this->guzzleClient = new \GuzzleHttp\Client();
}
/**
* Make request
*
* @param $method
* @param string $uri
* @param array $data
* @param string $resourceID
* @return mixed
*/
public function request($method, $uri, array $data = []) {
// make the request
$request = new \GuzzleHttp\Psr7\Request($method, $this->url . $uri, $this->headers, json_encode($data));
// return the response
return $this->guzzleClient->send($request)->getBody()->getContents();
}
} |
<?php
namespace CfdiUtils\Validate;
use CfdiUtils\Validate\Contracts\RequireXmlResolverInterface;
use CfdiUtils\Validate\Contracts\RequireXmlStringInterface;
use CfdiUtils\Validate\Contracts\ValidatorInterface;
use CfdiUtils\Validate\Traits\XmlStringPropertyTrait;
use CfdiUtils\XmlResolver\XmlResolverPropertyInterface;
use CfdiUtils\XmlResolver\XmlResolverPropertyTrait;
class Hydrater implements XmlResolverPropertyInterface
{
use XmlResolverPropertyTrait;
use XmlStringPropertyTrait;
public function hydrate(ValidatorInterface $validator)
{
if ($validator instanceof RequireXmlStringInterface) {
$validator->setXmlString($this->getXmlString());
}
if ($this->hasXmlResolver() && $validator instanceof RequireXmlResolverInterface) {
$validator->setXmlResolver($this->getXmlResolver());
}
}
}
|
<?php
return [
'test-00003-01300' => [
'ua' => 'Mozilla/5.0 (Android 4.3; Tablet; rv:46.0.1) Gecko/46.0.1 Firefox/46.0.1',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '46.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.3.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01301' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; Win64; x64; Trident/7.0; tb-1und1/2.6.4; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 64,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01302' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36 OPR/37.0.2178.43 (Edition Campaign 38)',
'properties' => [
'Browser_Name' => 'Opera',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '37.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01303' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MSOffice 12)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01304' => [
'ua' => 'Mozilla/5.0 (Android 4.4.2; Tablet; rv:41.0.2) Gecko/41.0.2 Firefox/41.0.2',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01307' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; SLCC2; Media Center PC 6.0; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; MAMD)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01308' => [
'ua' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; Trident/7.0; Touch; tb-gmx/2.6.7; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 64,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 10.0',
'Platform_Marketingname' => 'Windows 10',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01310' => [
'ua' => 'Mozilla/5.0 (Linux; U;Android 4.4.2; LG-D331 Build/KOT49I.A1413907724) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/34.0.1847.118 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01311' => [
'ua' => 'onesafe%20iOS/3.4.1.4 CFNetwork/758.3.15 Darwin/15.4.0',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'iOS',
'Platform_Marketingname' => 'iOS',
'Platform_Version' => '3.4.1.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'general Apple Device',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Mobile Device',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'general Apple Device',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01312' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; Win64; x64; Trident/7.0; (gmx/1.3.0.0); rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 64,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01313' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 2.3.6; pl-pl; GT-I8160 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '2.3.6',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Ace 2',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I8160',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00003-01315' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; iCafeMedia; QQDownload 667; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01316' => [
'ua' => 'Mozilla/5.0 CommonCrawler Node JGPX6MSAGMSPGL3LNCGLOCT4AWTMJW3KKXYBUUVKSNI72FWVWQO7VTC6YOTO6TC.G.SGKZ7MHAGUWNXIWGKMPX2GS35OLVYBZHUL7KBEUIYVVTU2KW.cdn0.common.crawl.zone',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M7',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01317' => [
'ua' => 'Mozilla/5.0 CommonCrawler Node 637YA44CYNT4Y2GJ7PAA3FNDFFYFUTS26EUPFK2ZCSPX5PR6YURI2S6TVURJ3DC.E.N2OLME76UNGOSZFDK5WPG2ISO44P6T3NBUIP7AASGCORPAQF.cdn0.common.crawl.zone',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M7',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01318' => [
'ua' => 'Mozilla/5.0 CommonCrawler Node 3MSIX5KGWQOQ4JK3C4XSADMFBFS7TC6VOI6GIM5FT6S6XBQFPW5C2YOTBTW6XL4.A.65EPE6AJICPGPMTVSG3C5KYWV3USLRKHJT3LVWLOEYTPLWON.cdn0.common.crawl.zone',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M7',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01319' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; Trident/7.0; tb-webde/2.6.0; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 64,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01320' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB7.5; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; AskTbAVR-4/5.15.26.45268)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01321' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:46.0.1) Gecko/20100101 Firefox/46.0.1 anonymized by Abelssoft 98944063',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '46.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01322' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; thl 4000 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01324' => [
'ua' => 'Dalvik/2.1.0 (Linux; U; Android 5.0.1; LG-H340n Build/LRX21Y)',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.0.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Leon 4G LTE',
'Device_Maker' => 'LG',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'H340N',
'Device_Brand_Name' => 'LG',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01325' => [
'ua' => 'Mozilla/5.0 (Linux; U;Android 4.4.2; LG-D855 Build/KVT49L.A1412084587) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/34.0.1847.118 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'G2',
'Device_Maker' => 'LG',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'D855',
'Device_Brand_Name' => 'LG',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01326' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; HbTools 4.7.3)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '6.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01328' => [
'ua' => 'Mozilla/5.0 (Linux; U;Android 4.4.2; LG-D290 Build/KOT49I.A1452595206) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/34.0.1847.118 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'L Fino',
'Device_Maker' => 'LG',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'D290',
'Device_Brand_Name' => 'LG',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01330' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; Trident/7.0; tb-gmx/2.6.6; (1und1/1.3.0.0); rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 64,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01331' => [
'ua' => 'yacybot (/global; arm Linux 4.4.9-v7+; java 1.8.0_65; Europe/de) http://yacy.net/bot.html',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01332' => [
'ua' => 'Dalvik/2.1.0 (Linux; U; Android 6.0.1; SM-G935F Build/MMB29K)',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S7 Edge (Global)',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SM-G935F',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01333' => [
'ua' => 'Mozilla/5.0 CommonCrawler Node LXJHI4MKLNHWLXULV3DUSACT3TLNVLUUJFDR4WIVSAX4UG3PWWGI4PVYO3A5K4V.L.JINAN64ZU5LG4CWMIWS3C7JYY2TCGO6BGX4GL5H3OUSJGNDR.cdn0.common.crawl.zone',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M7',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01334' => [
'ua' => 'Mozilla/5.0 CommonCrawler Node U7PRBEKCRIDKKKB5PNZ2IXHONBVLQRZAKIW4GTAL77V5PSJXSJEIVGUGBHIYDPG.K.KVSC3XD5GSW35LEIOL3KCCJYOXMPFYK5KQBXRJM3N2LD62PI.cdn0.common.crawl.zone',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M7',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01335' => [
'ua' => 'Mozilla/5.0 (iPad; CPU OS 9_3_2 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13F69',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'iOS',
'Platform_Marketingname' => 'iOS',
'Platform_Version' => '9.3.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'iPad',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'iPad',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00003-01337' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.2; ASU2JS; MSOffice 12)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01338' => [
'ua' => 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0; MASPJS)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '10.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01339' => [
'ua' => 'Mozilla/4.0 (compatible; GoogleToolbar 7.5.7619.1252; Windows 10.0; MSIE 9.11.10240.16384)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '9.11',
'Platform_Codename' => 'Windows NT 10.0',
'Platform_Marketingname' => 'Windows 10',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01340' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20140208 Firefox/24.0 PaleMoon/24.3.2',
'properties' => [
'Browser_Name' => 'PaleMoon',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Moonchild Productions',
'Browser_Modus' => 'unknown',
'Browser_Version' => '24.3',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01341' => [
'ua' => 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322; InfoPath.3)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '9.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01342' => [
'ua' => 'Mozilla/5.0 (Linux; U;Android 4.4.2; LG-D290 Build/KOT49I.A1407754707) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/34.0.1847.118 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'L Fino',
'Device_Maker' => 'LG',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'D290',
'Device_Brand_Name' => 'LG',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01343' => [
'ua' => 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008100320 Firefox/2.0.0.5',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '2.0',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01344' => [
'ua' => 'Dalvik/2.1.0 (Linux; U; Android 5.0.1; ALE-L21 Build/HuaweiALE-L21)',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.0.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'P8 Lite',
'Device_Maker' => 'Huawei',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'ALE-L21',
'Device_Brand_Name' => 'Huawei',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01345' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.2; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; HPNTDFJS; Zune 4.7; GWX:DOWNLOADED; GWX:QUALIFIED)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01346' => [
'ua' => 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0; MASMJS)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '10.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01347' => [
'ua' => 'Mozilla/5.0 CommonCrawler Node 3ARV5Y3HSAAHGCOYMN27AS3TGBBK4A7EFUNM2DZBOZJQFY7M46NII2UZ36NHKEB.H.E36VHR2KTLNSUIF6LNBJA4TYFJNNDHZFP36BRITORYAPSA2R.cdn0.common.crawl.zone',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M7',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01349' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '28.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01350' => [
'ua' => 'Mozilla/5.0 (Linux; U;Android 4.4.2; LG-D331 Build/KOT49I.A1421911913) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/34.0.1847.118 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01351' => [
'ua' => 'python-requests/2.7.0 CPython/2.7.3 Linux/3.8.0-29-generic',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01352' => [
'ua' => 'Mozilla/5.0 (Android 5.0; Mobile; rv:44.0.2) Gecko/44.0.2 Firefox/44.0.2',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '44.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01353' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; BRI/2; GWX:QUALIFIED; ms-office)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01354' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0 IKDhPmJcdw',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01355' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:36.0.1) Gecko/20100101 Firefox/36.0.1 anonymized by Abelssoft 1113806963',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01356' => [
'ua' => 'Unibox/70 CFNetwork/758.4.3 Darwin/15.5.0',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'iOS',
'Platform_Marketingname' => 'iOS',
'Platform_Version' => '9.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'general Apple Device',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Mobile Device',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'general Apple Device',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01357' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2637.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '50.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01358' => [
'ua' => 'BB_Work_Connect/1.0.23370.48 CFNetwork/758.4.3 Darwin/15.5.0',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'iOS',
'Platform_Marketingname' => 'iOS',
'Platform_Version' => '9.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'general Apple Device',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Mobile Device',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'general Apple Device',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01359' => [
'ua' => 'rootlink',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'unknown',
'Platform_Marketingname' => 'unknown',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'unknown',
'Platform_Brand_Name' => 'unknown',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => null,
'Device_Pointing_Method' => null,
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01360' => [
'ua' => 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; fr; rv:1.9.0.3) Gecko/2008092414 Firefox/3.0.3',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '3.0',
'Platform_Codename' => 'Mac OS X',
'Platform_Marketingname' => 'Mac OS X',
'Platform_Version' => '10.5.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'Macintosh',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Macintosh',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01361' => [
'ua' => 'Opera/9.80 (Windows NT 6.2; Win64; x64) Presto/2.12 Version/12.16',
'properties' => [
'Browser_Name' => 'Opera',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '12.16',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Presto',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Opera Software ASA',
],
],
'test-00003-01362' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/33.0.1750.146 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '33.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01364' => [
'ua' => 'Dalvik/2.1.0 (Linux; U; Android 5.1; ZP952 Build/LMY47D)',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.1.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01365' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; chromeframe/16.0.912.63; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01367' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; ms-office)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01369' => [
'ua' => 'Mozilla/5.0 (Android; Mobile; rv:32.0.3) Gecko/32.0.3 Firefox/32.0.3',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '32.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01370' => [
'ua' => 'yacybot (/global; amd64 Linux 3.16.0-4-amd64; java 1.7.0_101; Europe/de) http://yacy.net/bot.html',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01371' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36,gzip(gfe)',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '50.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01372' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322; InfoPath.1)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01373' => [
'ua' => 'Mozilla/5.0 (Linux; Android 6.0.1; SM-G920P Build/MMB29K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.89 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '50.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S6 LTE + CDMA (Sprint)',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SM-G920P',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01374' => [
'ua' => 'cuwhois/1.0 (+http://www.cuwhois.com/)',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'unknown',
'Platform_Marketingname' => 'unknown',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'unknown',
'Platform_Brand_Name' => 'unknown',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => null,
'Device_Pointing_Method' => null,
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01375' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.2.2; Z150 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.89 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '50.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01376' => [
'ua' => 'Wget/1.17.1 (cygwin)',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Cygwin',
'Platform_Marketingname' => 'Cygwin',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'unknown',
'Platform_Brand_Name' => 'unknown',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => null,
'Device_Pointing_Method' => null,
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01377' => [
'ua' => 'Mozilla/5.0 (Windows NT 10.0; Trident/7.0; Touch; MAMD; tb-webde/2.6.6; (webde/1.4.0.0); rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 10.0',
'Platform_Marketingname' => 'Windows 10',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01379' => [
'ua' => 'Mozilla/5.0 CommonCrawler Node B4RI5EDAC3LBZODLX6PW4IRWA66YNRJIPQDCUIHVGU6OLE5UX6IZFF7FXBTZINM.R.A5KOJNFUTDYANOMSCCWKZJRS6DHGCEJU32ZTHCFZ64TXE6XO.cdn0.common.crawl.zone',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M7',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01383' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:36.0.1) Gecko/20100101 Firefox/36.0.1 anonymized by Abelssoft 960427353',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01384' => [
'ua' => 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20060911 SUSE/1.5.0.10-0.2 Firefox/1.5.0.10',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '1.5',
'Platform_Codename' => 'Suse Linux',
'Platform_Marketingname' => 'Suse Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Suse',
'Platform_Brand_Name' => 'Suse',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01385' => [
'ua' => 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.6) Gecko/20060905 Fedora/1.5.0.6-10 Firefox/1.5.0.6 pango-text',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '1.5',
'Platform_Codename' => 'Fedora Linux',
'Platform_Marketingname' => 'Fedora Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Red Hat Inc',
'Platform_Brand_Name' => 'Redhat',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01386' => [
'ua' => 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '1.4',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01387' => [
'ua' => 'Mozilla/5.0 (X11; U; Linux i686; it; rv:1.8) Gecko/20060113 Firefox/1.5',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '1.5',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01388' => [
'ua' => 'Mozilla/5.0 (X11; ; Linux x86_64; rv:1.8.1.6) Gecko/20070802 Firefox',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01389' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.2; rv:45.0.2) Gecko/20100101 Firefox/45.0.2 anonymized by Abelssoft 1823641347',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '45.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01391' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Iron/29.0.1600.1 Chrome/29.0.1600.1 Safari/537.36',
'properties' => [
'Browser_Name' => 'Iron',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '29.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01392' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Win64; x64; Trident/7.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; Microsoft Outlook 14.0.7169; ms-office; MSOffice 14)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01393' => [
'ua' => 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/4.0; GTB7.4; InfoPath.1; SV1; .NET CLR 2.8.52393; WOW64; de-de)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '9.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01394' => [
'ua' => 'Mozilla/5.0 (Linux; Android 6.0.1; HTC Desire 820 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Desire 820',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'Desire 820',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01395' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 DT-Browser/DTB7.027.0010',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '27.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01396' => [
'ua' => 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Win64; x64; Trident/6.0; MASEJS; WebView/1.0)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '10.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01398' => [
'ua' => 'Mozilla/5.0 (Windows NT 5.2; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '33.0',
'Platform_Codename' => 'Windows NT 5.2',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01399' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB7.5; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01400' => [
'ua' => 'Mozilla/5.0 CommonCrawler Node CXE4RC6UNO6JAQHINE7UEWQF2R5HIK4MMN4DPGDRRVZIDQEYXGDCGH4FP2BJH7F.T.B7HBTYNE4C6KNARMUEDZGML6Y6CEQLETO6LJR56LES2U5MPB.cdn0.common.crawl.zone',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M7',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01401' => [
'ua' => 'Dalvik/1.4.0 (Linux; U; Android 2.3.6; GT-I8530 Build/GINGERBREAD)',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '2.3.6',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'GT-I8530',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I8530',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01402' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.1; 5017X Build/LMY47D; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/50.0.2661.86 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.1.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01403' => [
'ua' => 'Mozilla/5.0 CommonCrawler Node KEJFBS4W4QM2MMVPD53FYWQDX5F2AF6YLYB6XR4WYVYO4VPNRDQZXPGB33U6YJG.J.Z4PDZY6PDG3636YLJID72KCR5RALHHBASPI65KOWFFGEFF2B.cdn0.common.crawl.zone',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M7',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01404' => [
'ua' => 'Mozilla/5.0 (Android; Tablet; rv:32.0.3) Gecko/32.0.3 Firefox/32.0.3',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '32.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00003-01405' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; Trident/7.0; Avant Browser; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 64,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01406' => [
'ua' => 'Opera/9.80 (Windows NT 6.1) Presto/2.12 Version/12.14',
'properties' => [
'Browser_Name' => 'Opera',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '12.14',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Presto',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Opera Software ASA',
],
],
'test-00003-01407' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/32.0.1700.107 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '32.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01408' => [
'ua' => 'Dalvik/1.6.0 (Linux; U; Android 4.4.4; HUAWEI Y550-L01 Build/HuaweiY550-L01)',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Ascend Y550',
'Device_Maker' => 'Huawei',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'Y550-L01',
'Device_Brand_Name' => 'Huawei',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01409' => [
'ua' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; Trident/7.0; NP06; tb-webde/2.6.6; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 64,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 10.0',
'Platform_Marketingname' => 'Windows 10',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01410' => [
'ua' => 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Win64; x64; Trident/6.0; MASBJS)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '10.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01411' => [
'ua' => 'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; tb-webde/2.6.6; rv:11.0; GTB7.5) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 10.0',
'Platform_Marketingname' => 'Windows 10',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00003-01415' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; SM-T310 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Tab 3 8.0',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SM-T310',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01416' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '20.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00003-01417' => [
'ua' => 'Mozilla/4.0 (compatible; GoogleToolbar 7.5.7619.1252; Windows 6.3; MSIE 9.11.9600.18321)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '9.11',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01418' => [
'ua' => 'Mozilla/5.0 CommonCrawler Node 5NTEJM544WPT5YMYZPFV4JY4QRUDGFCQQYG5YJGECRUM3GC6JN67GCVHW5IKYZG.B.Z6WCKVO27EEG4H2MVFYEJ3PIMNLTQSO47B4DQED5THSIWQLU.cdn0.common.crawl.zone',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'M7',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00003-01419' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.4; SGP511 Build/23.0.1.A.4.30) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.89 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '50.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Xperia Tablet Z2 WiFi',
'Device_Maker' => 'Sony',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SGP511',
'Device_Brand_Name' => 'Sony',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00003-01420' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '34.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
];
|
<?php
use Illuminate\Database\Seeder;
use Carbon\Carbon;
class ThesesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('theses')->insert([
[
'id' => 1,
'id_prof' => 4,
'title_pol' => 'Przegląd standardów infromatycznych stosowanych w systemach telemechaniki stacji elektroenergetycznych',
'title_ang' => 'A review of ICT standards used in primary and secondary substations',
'description_pol' => null,
'description_ang' => null,
'degree' => 'Master',
'faculties' => 1,
'specialisations'=> '1;5;6',
'is_chosen'=> 'not_chosen',
'created_at' => Carbon::now(),
'updated_at' => null,
],
[
'id' => 2,
'id_prof' => 3,
'title_pol' => 'Aplety Java - użycie i znaczenie',
'title_ang' => 'Java applets - usage and importance',
'description_pol' => null,
'description_ang' => null,
'degree' => 'Engineer',
'faculties' => 1,
'specialisations'=> '1;5;6;8;9',
'is_chosen'=> 'not_chosen',
'created_at' => Carbon::now(),
'updated_at' => null,
],
[
'id' => 3,
'id_prof' => 3,
'title_pol' => 'Aplikacja internetowa napisana w Java 8',
'title_ang' => 'Internet application written in Java 8',
'description_pol' => null,
'description_ang' => null,
'degree' => 'Engineer',
'faculties' => 1,
'specialisations'=> '5;6;8;9',
'is_chosen'=> 'not_chosen',
'created_at' => Carbon::now(),
'updated_at' => null,
],
[
'id' => 4,
'id_prof' => 2,
'title_pol' => 'Porównanie szablonów CSS',
'title_ang' => 'Comparison of CSS frameworks',
'description_pol' => null,
'description_ang' => null,
'degree' => 'Engineer',
'faculties' => 1,
'specialisations'=> '5;6;8;9',
'is_chosen'=> 'not_chosen',
'created_at' => Carbon::now(),
'updated_at' => null,
],
[
'id' => 5,
'id_prof' => 2,
'title_pol' => 'Optymalizacja transportu publicznego w Łodzi',
'title_ang' => 'Optimisation of public transport system in Lodz',
'description_pol' => null,
'description_ang' => null,
'degree' => 'Engineer',
'faculties' => 1,
'specialisations'=> '4',
'is_chosen'=> 'not_chosen',
'created_at' => Carbon::now(),
'updated_at' => null,
],
[
'id' => 6,
'id_prof' => 4,
'title_pol' => 'Program rozpoznający komponenty elektroniczne',
'title_ang' => 'Computer aided system of electrical devices recognition',
'description_pol' => null,
'description_ang' => null,
'degree' => 'Master',
'faculties' => 1,
'specialisations'=> '1;5;6',
'is_chosen'=> 'not_chosen',
'created_at' => Carbon::now(),
'updated_at' => null,
],
[
'id' => 7,
'id_prof' => 4,
'title_pol' => 'Światłowowdy - klasyfikacja oraz obserwacje',
'title_ang' => 'Optical fibers - classification and observations',
'description_pol' => null,
'description_ang' => null,
'degree' => 'Engineer',
'faculties' => 1,
'specialisations'=> '5;6',
'is_chosen'=> 'not_chosen',
'created_at' => Carbon::now(),
'updated_at' => null,
],
[
'id' => 8,
'id_prof' => 2,
'title_pol' => 'Programy komputerowe do śledzenia przepływu energii',
'title_ang' => 'Computer modelling of power flow tracing',
'description_pol' => null,
'description_ang' => null,
'degree' => 'Master',
'faculties' => 1,
'specialisations'=> '1;5;6;8;9',
'is_chosen'=> 'not_chosen',
'created_at' => Carbon::now(),
'updated_at' => null,
],
[
'id' => 9,
'id_prof' => 2,
'title_pol' => 'E-platforma do rezerwacji sall przez profesorów TUL',
'title_ang' => 'E-platform managing class reservations for professors of TUL',
'description_pol' => null,
'description_ang' => null,
'degree' => 'Engineer',
'faculties' => 1,
'specialisations'=> '1;5;6;8;9',
'is_chosen'=> 'not_chosen',
'created_at' => Carbon::now(),
'updated_at' => null,
],
[
'id' => 10,
'id_prof' => 4,
'title_pol' => 'Elastyczne źródła photowoltaiczne',
'title_ang' => 'Elastic photovoltaic sources',
'description_pol' => null,
'description_ang' => null,
'degree' => 'Master',
'faculties' => 1,
'specialisations'=> '1;4;5;6',
'is_chosen'=> 'not_chosen',
'created_at' => Carbon::now(),
'updated_at' => null,
],
[
'id' => 11,
'id_prof' => 5,
'title_pol' => 'Baza danych pojazdów elekrycznych dostępnych na rynku Europejskim',
'title_ang' => 'Database of electrical vehicles on European market',
'description_pol' => null,
'description_ang' => null,
'degree' => 'Engineer',
'faculties' => 1,
'specialisations'=> '1;5;6',
'is_chosen'=> 'not_chosen',
'created_at' => Carbon::now(),
'updated_at' => null,
],
[
'id' => 12,
'id_prof' => 5,
'title_pol' => 'Strona internetowa konferencji naukowej',
'title_ang' => 'Scientific Conference website',
'description_pol' => null,
'description_ang' => null,
'degree' => 'Master',
'faculties' => 1,
'specialisations'=> '1;5;6;8;9',
'is_chosen'=> 'not_chosen',
'created_at' => Carbon::now(),
'updated_at' => null,
],
[
'id' => 13,
'id_prof' => 6,
'title_pol' => 'Sterowanie silnikami synchronicznymi w kolejach dużych prędkości',
'title_ang' => 'Synchronous motor control in high-speed railways',
'description_pol' => null,
'description_ang' => null,
'degree' => 'Master',
'faculties' => 1,
'specialisations'=> '1;5;6;7;8',
'is_chosen'=> 'not_chosen',
'created_at' => Carbon::now(),
'updated_at' => null,
],
[
'id' => 14,
'id_prof' => 6,
'title_pol' => 'Diagnostyka eksploatacyjna pociągu metra',
'title_ang' => 'Subway train exploitation diagnostics',
'description_pol' => null,
'description_ang' => null,
'degree' => 'Engineer',
'faculties' => 1,
'specialisations'=> '1;5;6',
'is_chosen'=> 'not_chosen',
'created_at' => Carbon::now(),
'updated_at' => null,
],
[
'id' => 15,
'id_prof' => 7,
'title_pol' => 'Badanie filtrów przeciwzakłóceniowych',
'title_ang' => 'Electromagnetic interference (EMI) filters testing',
'description_pol' => null,
'description_ang' => null,
'degree' => 'Engineer',
'faculties' => 1,
'specialisations'=> '1;2;3;5;6',
'is_chosen'=> 'not_chosen',
'created_at' => Carbon::now(),
'updated_at' => null,
],
[
'id' => 16,
'id_prof' => 7,
'title_pol' => 'Obliczenia impedancji linii napowietrznych i kablowych',
'title_ang' => 'Impedance calculation of overhead and cable lines',
'description_pol' => null,
'description_ang' => null,
'degree' => 'Master',
'faculties' => 1,
'specialisations'=> '1;2;3;5;6;7',
'is_chosen'=> 'not_chosen',
'created_at' => Carbon::now(),
'updated_at' => null,
]
]);
}
}
|
<?php
class AccessTokenModel {
private $id;
private $colaborador;
private $data;
private $timeout;
private $token;
function getId() {
return $this->id;
}
function getColaborador() {
return $this->colaborador;
}
function getData() {
return $this->data;
}
function getTimeout() {
return $this->timeout;
}
function getToken() {
return $this->token;
}
function setId($id) {
$this->id = $id;
}
function setColaborador(ColaboradorModel $colaborador) {
$this->colaborador = $colaborador;
}
function setData($data) {
$this->data = $data;
}
function setTimeout($timeout) {
$this->timeout = $timeout;
}
function setToken($token) {
$this->token = $token;
}
}
|
<?php
/**
* This is the model class for table "{{education}}".
*
* The followings are the available columns in table '{{education}}':
* @property integer $id
* @property integer $uid
* @property integer $pid
* @property string $college
* @property string $major
* @property integer $degree
* @property integer $start_time
* @property integer $end_time
* @property string $reward
* @property integer $create_time
* @property integer $update_time
* @property integer $status
*/
class Education extends CActiveRecord
{
private $_degreeMap = array(
'0' => 'N/A',
'1' => 'Bachelor',
'2' => 'Master',
'3' => 'Doctor',
);
/**
* @return string the associated database table name
*/
public function tableName()
{
return '{{education}}';
}
/**
* @return array validation rules for model attributes.
*/
public function rules()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
array('uid, pid, college, major, degree, start_time, end_time', 'required'),
array('uid, pid, degree, start_time, end_time, create_time, update_time, status', 'numerical', 'integerOnly'=>true),
array('college', 'length', 'max'=>64),
array('major', 'length', 'max'=>128),
// The following rule is used by search().
// @todo Please remove those attributes that should not be searched.
array('id, uid, pid, start_time, end_time', 'safe', 'on'=>'search'),
);
}
/**
* @return array relational rules.
*/
public function relations()
{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
);
}
/**
* @return array customized attribute labels (name=>label)
*/
public function attributeLabels()
{
return array(
'college' => 'College',
'major' => 'Major',
'degree' => 'Degree',
'start_time' => 'Start Time',
'end_time' => 'End Time',
);
}
/**
* Retrieves a list of models based on the current search/filter conditions.
*
* Typical usecase:
* - Initialize the model fields with values from filter form.
* - Execute this method to get CActiveDataProvider instance which will filter
* models according to data in model fields.
* - Pass data provider to CGridView, CListView or any similar widget.
*
* @return CActiveDataProvider the data provider that can return the models
* based on the search/filter conditions.
*/
public function search()
{
// @todo Please modify the following code to remove attributes that should not be searched.
$criteria=new CDbCriteria;
$criteria->compare('pid',$this->pid);
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
));
}
/**
* Returns the static model of the specified AR class.
* Please note that you should have this exact method in all your CActiveRecord descendants!
* @param string $className active record class name.
* @return UserEducation the static model class
*/
public static function model($className=__CLASS__)
{
return parent::model($className);
}
public function beforeSave(){
if (parent::beforeSave()){
if ($this->isNewRecord){
$this->create_time = $this->update_time = time();
}else{
$this->update_time = time();
}
return true;
}
return false;
}
public function getData($id = null){
if ($id){
$this->findByPk($id);
}
$oData['id'] = $this->id;
$oData['college'] = $this->college;
$oData['major'] = $this->major;
$oData['degree'] = $this->degree;
$oData['degree_name'] = isset($this->_degreeMap[$this->degree]) ?
$this->_degreeMap[$this->degree] : 'N/A';
$oData['start_time'] = strftime("%Y-%m-%d", $this->start_time);
$oData['end_time'] = strftime("%Y-%m-%d", $this->end_time);
$oData['reward'] = $this->reward;
return $oData;
}
}
|
<?php
declare(strict_types=1);
namespace YapepBase\Test\Unit\View\Block;
use YapepBase\Storage\IStorage;
use YapepBase\View\Block\ComponentAbstract;
class ComponentStub extends ComponentAbstract
{
/** @var string */
public $content = 'content';
/** @var int */
public $ttl = 12;
/** @var string */
public $uniqueIdentifier = 'unique';
/** @var IStorage|null */
protected $storage;
public function setStorage(IStorage $storage)
{
$this->storage = $storage;
}
protected function renderContent(): void
{
echo $this->content;
}
protected function getStorage(): ?IStorage
{
return $this->storage;
}
protected function getTtlInSeconds(): int
{
return $this->ttl;
}
protected function getUniqueIdentifier(): string
{
return $this->uniqueIdentifier;
}
}
|
<?php
namespace Tests\Feature\User;
use Tests\TestCase;
use App\Model\{Coordination, Management};
use Illuminate\Foundation\Testing\RefreshDatabase;
class CreateCoordinationModuleTest extends TestCase
{
use RefreshDatabase;
/** @test */
function it_loads_the_create_coordinations_page()
{
$this->get(route('coordination.create'))
->assertStatus(200)
->assertViewIs('coordination.create')
->assertSee(trans('titles.coordination.create'))
->assertSee('Nombre')
->assertSee('Descripción')
->assertSee('Gerencia');
}
/** @test */
function it_create_a_new_coordination()
{
$this->post(route('coordination.store'), $this->getCoordinationData())
->assertRedirect(route('coordinations'));
$this->assertDatabaseHas('coordinations', [
'name' => 'Lineas',
'description' => 'Lineas de producción',
'active' => true
]);
}
/** @test */
function the_name_coordination_is_required()
{
$this->from(route('coordination.create'))
->post(route('coordination.store'), $this->getCoordinationData([
'name' => '',
]))
->assertRedirect(route('coordination.create'))
->assertSessionHasErrors(['name']);
$this->assertDatabaseMissing('coordinations', [
'name' => '',
'description' => 'Lineas de producción',
'active' => true
]);
}
/** @test */
function the_name_of_must_have_more_than_25_characters()
{
$this->from(route('coordination.create'))
->post(route('coordination.store'), $this->getCoordinationData([
'name' => 'hhhhhhhhhhhhhhhhh hhhhhhhhh',
]))
->assertRedirect(route('coordination.create'))
->assertSessionHasErrors(['name']);
$this->assertDatabaseMissing('coordinations', [
'name' => 'hhhhhhhhhhhhhhhhh hhhhhhhhh',
'description' => 'Lineas de producción',
'active' => true
]);
$this->from(route('coordination.create'))
->post(route('coordination.store'), $this->getCoordinationData([
'name' => 'hhhhhhhhhh hhhhhhhhhhhhhh',
]))
->assertRedirect(route('coordinations'));
$this->assertDatabaseHas('coordinations', [
'name' => 'hhhhhhhhhh hhhhhhhhhhhhhh',
'description' => 'Lineas de producción',
'active' => true
]);
}
/** @test */
function the_name_coordination_must_be_unique()
{
factory(Coordination::class)->create([
'name' => 'Lineas',
]);
$this->from(route('coordination.create'))
->post(route('coordination.store'), $this->getCoordinationData([
'name' => 'Lineas',
]))
->assertRedirect(route('coordination.create'))
->assertSessionHasErrors(['name']);
$this->assertSame(1, Coordination::where('name','Lineas')->count());
}
/** @test */
function the_description_coordination_is_required()
{
$this->from(route('coordination.create'))
->post(route('coordination.store'), $this->getCoordinationData([
'description' => '',
]))
->assertRedirect(route('coordination.create'))
->assertSessionHasErrors(['description']);
$this->assertDatabaseMissing('coordinations', [
'name' => 'Lineas',
'description' => '',
'active' => true
]);
}
/** @test */
function the_description_coordination_of_must_have_more_than_50_characters()
{
$this->from(route('coordination.create'))
->post(route('coordination.store'), $this->getCoordinationData([
'description' => 'mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm1',
]))
->assertRedirect(route('coordination.create'))
->assertSessionHasErrors(['description']);
$this->assertDatabaseMissing('coordinations', [
'name' => 'Lineas',
'description' => 'mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm1',
'active' => true
]);
$this->from(route('coordination.create'))
->post(route('coordination.store'), $this->getCoordinationData([
'description' => 'mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm',
]))
->assertRedirect(route('coordinations'));
$this->assertDatabaseHas('coordinations', [
'name' => 'Lineas',
'description' => 'mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm',
'active' => true
]);
}
/** @test */
function the_managenent_id_is_required()
{
$this->from(route('coordination.create'))
->post(route('coordination.store'), [
'name' => 'Dsitribucion',
'description' => 'Actividades logsiticas',
'active' => true,
])
->assertRedirect(route('coordination.create'))
->assertSessionHasErrors(['management']);
$this->assertDatabaseMissing('coordinations', [
'name' => 'Dsitribucion',
'description' => 'Actividades logsiticas',
'active' => true,
]);
}
/** @test */
function the_managenent_id_must_be_valid()
{
$this->from(route('coordination.create'))
->post(route('coordination.store'), $this->getCoordinationData([
'management' => '999',
]))
->assertRedirect(route('coordination.create'))
->assertSessionHasErrors(['management']);
$this->assertDatabaseMissing('coordinations', [
'name' => 'Lineas',
'description' => 'Lineas de producción',
'management_id' => 999,
'active' => true
]);
}
/** @test */
function only_active_management_are_valid()
{
$management = factory(Management::class)->create([
'active' => false,
]);
$this->from(route('coordination.create'))
->post(route('coordination.store'), $this->getCoordinationData([
'management' => $management->id,
]))
->assertRedirect(route('coordination.create'))
->assertSessionHasErrors(['management']);
$this->assertDatabaseMissing('coordinations', [
'name' => 'Lineas',
'description' => 'Lineas de producción',
'management_id' => $management->id,
'active' => true
]);
$management = factory(Management::class)->create();
$this->from(route('coordination.create'))
->post(route('coordination.store'), $this->getCoordinationData([
'management' => $management->id,
]))
->assertRedirect(route('coordinations'));
$this->assertDatabaseHas('coordinations', [
'name' => 'Lineas',
'description' => 'Lineas de producción',
'management_id' => $management->id,
'active' => true
]);
}
} |
<?php defined('SYSPATH') or die('No direct script access.');
class Pagination extends Kohana_Pagination {
function as_array() {
// Automatically hide pagination whenever it is superfluous
if ($this->config['auto_hide'] === true AND $this->total_pages <= 1) {
return array();
}
// Pass on the whole Pagination object
return get_object_vars($this);
}
/**
* Renders the pagination links.
*
* @param mixed string of the view to use, or a Kohana_View object
* @return string pagination output (HTML)
*/
public function render($view = null) {
// Automatically hide pagination whenever it is superfluous
if ($this->config['auto_hide'] === true AND $this->total_pages <= 1) {
return '';
}
if ($view === null) {
// Use the view from config
$view = $this->config['view'];
}
$tpl = \Meerkat\Twig\Twig::from_template($view);
// Pass on the whole Pagination object
//print '<pre>';
//print_r(get_object_vars($this));
//print '</pre>';
return $tpl
->set(get_object_vars($this))
->set('page', $this)
->render();
}
public function url($page = 1) {
// Clean the page number
$page = max(1, (int)$page);
// No page number in URLs to first page
if ($page === 1 AND !$this->config['first_page_in_url']) {
$page = null;
}
switch ($this->config['current_page']['source']) {
case 'query_string':
$uri = Arr::get($this->config, 'uri', Request::current()
->uri());
return URL::site($uri) . URL::query(array($this->config['current_page']['key'] => $page), true);
case 'route':
return URL::site(Request::current()
->uri(array($this->config['current_page']['key'] => $page))) . URL::query();
}
return '#';
}
} |
<?php
require_once 'Zend/Db/Table/Abstract.php';
class Model_Country extends Zend_Db_Table_Abstract {
/**
* The default table name
*/
protected $_name = 'country';
public static function getCountry()
{
$countryModel = new self();
$select = $countryModel->select();
$select->from('country');
return $countryModel->fetchAll($select);
}
public static function getCountryId($name)
{
$countryModel = new self();
$select = $countryModel->select();
$select->from('country');
$select->where('name="'.$name.'"');
return $countryModel->fetchAll($select);
}
//*****************************************************//
// Called CourseController - updateBillingAddress method //
public function addCountry($name)
{
$rowCountry = $this->createRow();
if($rowCountry) {
$rowCountry->name = $name;
$rowCountry->save();
} else {
throw new Zend_Exception("Could not add country");
}
return $rowCountry;
}
} |
<?php
use Faker\Generator as Faker;
use App\Movie;
$factory->define(Movie::class, function (Faker $faker) {
return [
'name' => $faker->name,
'sipnosis'=>$faker->sentence(8),
'iframe'=>"https://www.youtube.com/embed/Bcz-XR3HTMk",
'launching'=>"2019-04-02",
'state'=>rand(0,1),
'file'=>$faker->imageUrl($width=563,$height=692),
'category_id'=>rand(1,20),
];
});
|
<?php
return [
'test-00138-01812' => [
'ua' => 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2891.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '56',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00138-01813' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.1; Archos 50d Helium Build/LMY47O) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.124 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '53',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.1.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00138-01822' => [
'ua' => 'Mozilla/5.0 CommonCrawler Node FXM7MWOBBO4QSS2D3BLBXXSHGZTCVAIJLELLN36O4WWJNGMQPPRV623QP27FC6E.C.B42HW7UBJXJKT27LJPF64DKICLR6P3WMQZ7UBRVJZS6WXNM7.cdn0.common.crawl.zone',
'properties' => [
'Browser_Name' => 'CommonCrawler Node',
'Browser_Type' => 'Bot/Crawler',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'unknown',
'Platform_Marketingname' => 'unknown',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'unknown',
'Platform_Brand_Name' => 'unknown',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => null,
'Device_Pointing_Method' => null,
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00138-01825' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.2; rv:49.0) Gecko/20100101 Firefox/49.0 anonymized by Abelssoft 1845082249',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '49.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00138-01827' => [
'ua' => 'Mozilla/5.0 (Linux; Android 6.0.1; GCE x86 phone Build/MOB31I.MZE89) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2891.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '56',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00138-01828' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; Lenovo A7600-F Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.61 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '54',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00138-01834' => [
'ua' => 'Mozilla/5.0 CommonCrawler Node VLSPZYYY5TA56SN3SBL2VACRG2SY4HT2KUQXYULTTB4RUBUJY5CWTU3DS747YTY.J.M43RM6R5LKJ2E6PSOWSPJZWFVGMIZANKRUISM73M5UHJ74TS.cdn0.common.crawl.zone',
'properties' => [
'Browser_Name' => 'CommonCrawler Node',
'Browser_Type' => 'Bot/Crawler',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'unknown',
'Platform_Marketingname' => 'unknown',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'unknown',
'Platform_Brand_Name' => 'unknown',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => null,
'Device_Pointing_Method' => null,
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
'test-00138-01838' => [
'ua' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.9 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '55',
'Platform_Codename' => 'Windows NT 10.0',
'Platform_Marketingname' => 'Windows 10',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00138-01843' => [
'ua' => 'Mozilla/5.0 (Linux; Android 6.0.1; SAMSUNG SM-N910F/N910FXXU1DPI1 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/4.0 Chrome/44.0.2403.133 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Samsung Browser',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Samsung',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Note 4 (Europe, LTE)',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SM-N910F',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00138-01860' => [
'ua' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2890.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '56',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00138-01869' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MAMD; .NET4.0C; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; AskTbMGX/5.15.25.44892; .NET4.0E; Tablet PC 2.0; MSOffice 12)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00138-01873' => [
'ua' => 'Mozilla/5.0 (Linux; Android 6.0.1; GCE x86 phone Build/MOB31I.MZE89) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2890.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '56',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '6.0.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00138-01894' => [
'ua' => 'Safari/12602.2.14.0.6 CFNetwork/807.1.3 Darwin/16.1.0 (x86_64)',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 64,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'macOS',
'Platform_Marketingname' => 'macOS',
'Platform_Version' => '10.12.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'Macintosh',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Macintosh',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'unknown',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'unknown',
],
],
];
|
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DataTables;
use App\Exports\IndustriExports;
use Maatwebsite\Excel\Facades\Excel;
use Illuminate\Support\Str;
class DashboardController extends Controller
{
public function index(Request $request)
{
$data = \App\Industri::join('jenisproduksi','jenisproduksi.id_industri','=','industri.id_industri')
->join('kelurahans','kelurahans.id','=','industri.kel_id')
->join('tenagakerja','tenagakerja.id_industri','=','industri.id_industri')
->join('badanusaha','badanusaha.id','=','industri.bu_id')
->join('bahanbaku','bahanbaku.id_industri','=','industri.id_industri')
->join('kecamatan','kecamatan.id','=','industri.kec_id')
->where('industri.is_deleted','0')
->get();
$kec = \App\Kecamatan::all();
return view('dashboard.index',compact('data','kec'));
}
public function sorting(Request $request)
{
$produk = $request->produk;
$kecamatan = $request->kecamatan;
$kelurahan = $request->kelurahan;
if($produk != "" && $kecamatan != "" && $kelurahan != ""){
$data = \App\Industri::join('jenisproduksi','jenisproduksi.id_industri','=','industri.id_industri')
->join('badanusaha','badanusaha.id','=','industri.bu_id')
->join('bahanbaku','bahanbaku.id_industri','=','industri.id_industri')
->join('tenagakerja','tenagakerja.id_industri','=','industri.id_industri')
->join('kecamatan','kecamatan.id','=','industri.kec_id')
->join('kelurahans','kelurahans.id','=','industri.kel_id')
->where('industri.is_deleted','0')
->where('jenisproduksi.nama_produk',$produk)
->where('industri.kel_id',$kelurahan)
->where('industri.kec_id',$kecamatan)
->get();
$kec = \App\Kecamatan::all();
return view('dashboard.sorting',compact('data','kec','produk','kelurahan','kecamatan'));
}
if($kecamatan == "" && $kelurahan == ""){
$data = \App\Industri::join('jenisproduksi','jenisproduksi.id_industri','=','industri.id_industri')
->join('badanusaha','badanusaha.id','=','industri.bu_id')
->join('bahanbaku','bahanbaku.id_industri','=','industri.id_industri')
->join('tenagakerja','tenagakerja.id_industri','=','industri.id_industri')
->join('kecamatan','kecamatan.id','=','industri.kec_id')
->join('kelurahans','kelurahans.id','=','industri.kel_id')
->where('industri.is_deleted','0')
->where('jenisproduksi.nama_produk',$produk)
->get();
$kec = \App\Kecamatan::all();
return view('dashboard.sorting',compact('data','kec','produk','kelurahan','kecamatan'));
}
if($produk == "" && $kelurahan == ""){
$data = \App\Industri::join('jenisproduksi','jenisproduksi.id_industri','=','industri.id_industri')
->join('badanusaha','badanusaha.id','=','industri.bu_id')
->join('bahanbaku','bahanbaku.id_industri','=','industri.id_industri')
->join('tenagakerja','tenagakerja.id_industri','=','industri.id_industri')
->join('kecamatan','kecamatan.id','=','industri.kec_id')
->join('kelurahans','kelurahans.id','=','industri.kel_id')
->where('industri.is_deleted','0')
->where('industri.kec_id',$kecamatan)
->get();
$kec = \App\Kecamatan::all();
return view('dashboard.sorting',compact('data','kec','produk','kelurahan','kecamatan'));
}
if($produk == ""){
$data = \App\Industri::join('jenisproduksi','jenisproduksi.id_industri','=','industri.id_industri')
->join('badanusaha','badanusaha.id','=','industri.bu_id')
->join('bahanbaku','bahanbaku.id_industri','=','industri.id_industri')
->join('tenagakerja','tenagakerja.id_industri','=','industri.id_industri')
->join('kecamatan','kecamatan.id','=','industri.kec_id')
->join('kelurahans','kelurahans.id','=','industri.kel_id')
->where('industri.is_deleted','0')
->where('industri.kel_id',$kelurahan)
->where('industri.kec_id',$kecamatan)
->get();
$kec = \App\Kecamatan::all();
return view('dashboard.sorting',compact('data','kec','produk','kelurahan','kecamatan'));
}
}
public function export_excel(Request $request)
{
$produk = $request->produk;
$kecamatan = $request->kecamatan;
$kelurahan = $request->kelurahan;
return Excel::download(new IndustriExports($produk,$kecamatan,$kelurahan), 'industri.xlsx');
}
}
|
<?php
/* esse bloco de código em php verifica se existe a sessão, pois o usuário pode
simplesmente não fazer o login e digitar na barra de endereço do seu navegador
o caminho para a página principal do site (sistema), burlando assim a obrigação
de fazer um login, com isso se ele não estiver feito o login não será
criado a session, então ao verificar que a session não existe a página
redireciona o mesmo para a index.php. */
session_start();
if((!isset ($_SESSION['login']) == true) and (!isset ($_SESSION['senha']) == true))
{
unset($_SESSION['login']);
unset($_SESSION['senha']);
header('location:login.php');
}
$logado = $_SESSION['login'];
?>
<!DOCTYPE html>
<html lang="PT-Br">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<title>Agenda Telefônica</title>
<!-- Bootstrap core CSS -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- CSS PERSONALIZADO -->
<link href="css/style.css" rel="stylesheet">
</head>
<?php
include "config.php";
?>
<body>
<!-- Static navbar -->
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Agenda APS</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="index.php?page=">Início</a></li>
<li><a href="index.php?page=form_contato">Cadastrar</a></li>
<li><a href="index.php?page=listar_contatos&contato=">Listar</a></li>
<li><a href="logout.php?sair=logout">Sair</a></li>
<!-- <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li class="dropdown-header">Nav header</li>
<li><a href="#">Separated link</a></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li> -->
</ul>
<ul class="nav navbar-nav navbar-right">
<form class="navbar-form navbar-left" role="search" name="busca" action="index.php">
<div class="form-group">
<input type="hidden" name="page" value="listar_contatos" />
<input type="text" name="contato" class="form-control" placeholder="Buscar (Nome ou código)">
</div>
<button type="submit" class="btn btn-default">Buscar</button>
</form>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container">
<!-- Main component for a primary marketing message or call to action -->
<?php
$page='';
if( empty($_REQUEST['page'])){
?>
<div class="jumbotron">
<h2><?php echo "Bem vindo(a) ".$logado ?> - Agenda Telefônica!</h2>
<p>Aqui você cadastra os seus contatos e pode realizar buscas a qualquer momento e em qualquer lugar!</p>
</div>
<?php }else{
$pagina = $_REQUEST['page'];
include ($pagina.'.php');
}
?>
</div> <!-- /container -->
<?php
mysqli_close($con);
?>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
</body>
</html>
|
<?php
namespace App\Widgets;
use Arrilot\Widgets\AbstractWidget;
use GuzzleHttp\Client;
use Carbon\Carbon;
class Weather extends AbstractWidget
{
/**
* The configuration array.
*
* @var array
*/
protected $config = [
'use_jquery_for_ajax_calls' => true,
];
/**
* Treat this method as a controller action.
* Return view() or other content to display.
*/
public function placeholder()
{
return "<i class=\"fa fa-spinner fa-spin fa-3x fa-fw\"></i>
<span class=\"sr-only\">Loading...</span>";
}
public function run()
{
$client = new Client();
$key = 'ae300dcfd8fa70066081dd0765e4fc69';
$franqueado = session()->get('franqueado')[0];
$loc = $franqueado->weather_loc;
$request2 = $client->get('https://api.forecast.io/forecast/'. $key . '/' . $loc . '/?lang=pt&units=ca')->getBody();
$obj = json_decode($request2);
setlocale(LC_TIME, 'pt_BR.utf8');
$currentlyTime = Carbon::createFromTimestamp($obj->currently->time)->formatLocalized('%A, %d %B %Y - %H:%M');
return view("widgets.weather", ['config' => $this->config, 'result' => $obj, 'currentlyTime' => $currentlyTime, 'identificador' => $franqueado->identificador]);
}
} |
<?php
/**
* AttributeListAction.class.php
* 商品属性列表
* @author 正侠客 <lookcms@gmail.com>
* @copyright 2012- http://www.dingcms.com http://www.dogocms.com All rights reserved.
* @license http://www.apache.org/licenses/LICENSE-2.0
* @version dogocms 1.0 2012-11-5 11:08
* @package Controller
* @todo
*/
class AttributeListAction extends BaseAction {
/**
* index
* 商品属性列表页
* @access public
* @return array
* @version dogocms 1.0
*/
public function index()
{
$this->display();
}
/**
* newslist
* 信息列表 在执行index之后进行的下一步操作
* @access public
* @return array
* @version dogocms 1.0
*/
public function newslist() {
$id = intval($_GET['id']);
$this->assign('id', $id);
$this->display('list');
}
/**
* add
* 添加信息
* @access public
* @return array
* @version dogocms 1.0
*/
public function add()
{
$id = intval($_GET['id']);
$attr_index = array(
'0' => ' 不需要检索 ',
'1' => ' 关键字检索 ',
'2' => ' 范围检索 '
);
$is_linked = array(
'0' => ' 否 ',
'1' => ' 是 '
);
$attr_type = array(
'0' => ' 唯一属性 ',
'1' => ' 单选属性 ',
'2' => ' 复选属性 '
);
$attr_input_type = array(
'0' => ' 手工录入 ',
'1' => ' 从下面的列表中选择(一行代表一个可选值) ',
'2' => ' 多行文本框 '
);
$this->assign('attr_index', $attr_index);
$this->assign('is_linked', $is_linked);
$this->assign('attr_input_type', $attr_input_type);
$this->assign('attr_type', $attr_type);
$this->assign('id', $id);
$this->display();
}
/**
* edit
* 编辑信息
* @access public
* @return array
* @version dogocms 1.0
*/
public function edit()
{
$m = new AttributeListModel();
$id = intval($_GET['id']);
$condition['id'] = array('eq',$id);
$data = $m->where($condition)->find();
$attr_index = array(
'0' => ' 不需要检索 ',
'1' => ' 关键字检索 ',
'2' => ' 范围检索 '
);
$is_linked = array(
'0' => ' 否 ',
'1' => ' 是 '
);
$attr_type = array(
'0' => ' 唯一属性 ',
'1' => ' 单选属性 ',
'2' => ' 复选属性 '
);
$attr_input_type = array(
'0' => ' 手工录入 ',
'1' => ' 从下面的列表中选择(一行代表一个可选值) ',
'2' => ' 多行文本框 '
);
$this->assign('attr_index', $attr_index);
$this->assign('is_linked', $is_linked);
$this->assign('attr_input_type', $attr_input_type);
$this->assign('attr_type', $attr_type);
$this->assign('radio_attr_index', $data['attr_index']);
$this->assign('radio_is_linked', $data['is_linked']);
$this->assign('radio_attr_input_type', $data['attr_input_type']);
$this->assign('radio_attr_type', $data['attr_type']);
$this->assign('data', $data);
$this->display();
}
/**
* insert
* 插入信息
* @access public
* @return array
* @version dogocms 1.0
*/
public function insert()
{
$m = new AttributeListModel();
$ename = $_POST['attr_name'];
$sort_id = $_POST['sort_id'];
if (empty($ename)) {
$this->dmsg('1', '商品类型名称不能为空!', false, true);
}
if ($sort_id == 0) {
$this->dmsg('1', '请选择所属分类!', false, true);
}
$_POST['attr_index'] = $_POST['attr_index']['0'];
$_POST['is_linked'] = $_POST['is_linked']['0'];
$_POST['attr_input_type'] = $_POST['attr_input_type']['0'];
$_POST['attr_type'] = $_POST['attr_type']['0'];
$_POST['updatetime'] = time();
if ($m->create($_POST)) {
$rs = $m->add();
if ($rs == true) {
$this->dmsg('2', ' 操作成功!', true);
} else {
$this->dmsg('1', '操作失败!', false, true);
}
} else {
$this->dmsg('1', '根据表单提交的POST数据创建数据对象失败!', false, true);
}
}
/**
* update
* 更新信息
* @access public
* @return array
* @version dogocms 1.0
*/
public function update()
{
$m = new AttributeListModel();
$ename = $_POST['attr_name'];
$data['id'] = array('eq', intval($_POST['id']));
$sort_id = $_POST['sort_id'];
if (empty($ename)) {
$this->dmsg('1', '商品类型名称不能为空!', false, true);
}
if ($sort_id == 0) {
$this->dmsg('1', '请选择所属分类!', false, true);
}
$_POST['attr_index'] = $_POST['attr_index']['0'];
$_POST['is_linked'] = $_POST['is_linked']['0'];
$_POST['attr_input_type'] = $_POST['attr_input_type']['0'];
$_POST['attr_type'] = $_POST['attr_type']['0'];
$_POST['updatetime'] = time();
$rs = $m->where($data)->save($_POST);
if ($rs == true) {
$this->dmsg('2', ' 操作成功!', true);
} else {
$this->dmsg('1', '操作失败!', false, true);
}
}
/**
* delete
* 留言删除
* @access public
* @return array
* @version dogocms 1.0
*/
public function delete()
{
$id = intval($_POST['id']);
$m = new AttributeListModel();
$del = $m->where('id=' . $id)->delete();
if ($del == true) {
$this->dmsg('2', '操作成功!', true);
} else {
$this->dmsg('1', '操作失败!', false, true);
}//if
}
/**
* listJsonId
* 取得field信息
* @access public
* @return array
* @version dogocms 1.0
*/
public function listJsonId() {
$m = new AttributeListModel();
import('ORG.Util.Page'); // 导入分页类
$id = intval($_GET['id']);
if ($id != 0) {//id为0时调用全部文档
$condition['sort_id'] = $id;
}
$pageNumber = intval($_POST['page']);
$pageRows = intval($_POST['rows']);
$pageNumber = (($pageNumber == null || $pageNumber == 0) ? 1 : $pageNumber);
$pageRows = (($pageRows == FALSE) ? 10 : $pageRows);
$count = $m->where($condition)->count();
$page = new Page($count, $pageRows);
$firstRow = ($pageNumber - 1) * $pageRows;
$data = $m->where($condition)->limit($firstRow . ',' . $pageRows)->order('id desc')->select();
$array = array();
$array['total'] = $count;
$array['rows'] = $data;
echo json_encode($array);
}
}
?> |
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Models\Donation;
use Illuminate\Http\Request;
class DonationController extends Controller
{
public function getByIdUser( $id )
{
$response = null;
try{
$response = response()->json( Donation::query()->where( 'id_user', $id )->firstOrFail([ 'frequency', 'amount' ])->toArray() );
}
catch ( \Exception $e ){
$response = response()->json(['ok' => false, 'message' => $e->getMessage() ], 421 );
}
return $response;
}
}
|
<?php
/**
* This file is part of the Zephir.
*
* (c) Phalcon Team <team@zephir-lang.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Zephir\Types;
use Zephir\Call;
use Zephir\CompilationContext;
use Zephir\Expression;
use Zephir\Expression\Builder\BuilderFactory;
use Zephir\Types;
class CharType extends AbstractType
{
/**
* {@inheritdoc}
*/
public function getTypeName()
{
return Types::T_CHAR;
}
/**
* Transforms calls to method "toHex" to sprintf('%X') call.
*
* @param object $caller
* @param CompilationContext $compilationContext
* @param Call $call
* @param array $expression
*
* @return bool|mixed|\Zephir\CompiledExpression
*/
public function toHex($caller, CompilationContext $compilationContext, Call $call, array $expression)
{
$exprBuilder = BuilderFactory::getInstance();
$functionCall = $exprBuilder->statements()
->functionCall('zephir_string_to_hex', [$caller])
->setFile($expression['file'])
->setLine($expression['line'])
->setChar($expression['char']);
$expression = new Expression($functionCall->build());
return $expression->compile($compilationContext);
}
}
|
<?php
return [
'emptyMessage' => [
'index' => 'No hay personas en la base de datos',
'trash' => 'No hay personas en la lista negra'
],
// 'fieldsPlaceholder' => [
// 'name' => 'Debe contener una sola palabra',
// 'description' => 'Describa el proyecto (máx. 50 caracteres)',
// ],
// 'state' => [
// 'inactive' => 'Inactivo',
// 'active' => 'Activo'
// ],
// 'errorsValidations' => [
// 'name' => [
// 'required' => 'El nombre es obligatorio.',
// 'nameProject' => 'El nombre debe contener una sola palabra.',
// 'alpha' => 'Permite solo caracteres alfabéticos. [A-z]',
// 'uniqueName' => 'El nombre ":name" ya existe.',
// ],
// 'year' => [
// 'required' => 'El año es obligatorio',
// 'yearBetween' => 'Valido :year ± 1',
// ],
// 'description' => [
// 'max' => 'La descripción no debe ser mayor que 50 caracteres.'
// ],
// 'date' => [
// 'start' => 'inicio',
// 'required' => 'La fecha de :time es obligatoria.',
// 'date_format' => 'Formato valido dd/mm/yyyy',
// 'after' => 'Fecha valida posterior a :time',
// 'before' => 'Fecha valida anterior a :time',
// 'toAfter' => 'Debe ser posterior a la fecha de inicio',
// ]
// ],
]; |
<?php
// Copyright (c) Fusonic GmbH. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for license information.
declare(strict_types=1);
namespace Fusonic\CsvReader\Conversion;
use Fusonic\CsvReader\Exceptions\ValueConversionException;
class IntlValueConverter extends ValueConverter
{
private \NumberFormatter $numberFormatter;
public function __construct(string $locale)
{
$this->numberFormatter = new \NumberFormatter($locale, \NumberFormatter::TYPE_DEFAULT);
}
public function convert(string $value, string $targetType): mixed
{
if ($this->isNullValue($value, $targetType)) {
return null;
}
$targetType = ltrim($targetType, '?');
if ('int' === $targetType) {
return $this->convertInt($value);
}
if ('float' === $targetType) {
return $this->convertFloat($value);
}
return parent::convert($value, $targetType);
}
private function convertInt(string $value): int
{
try {
return (int) $this->numberFormatter->parse($value, \NumberFormatter::TYPE_INT32);
} catch (\Exception $ex) {
throw ValueConversionException::fromValueAndTargetType($value, 'int', $ex);
}
}
private function convertFloat(string $value): float
{
try {
return (float) $this->numberFormatter->parse($value, \NumberFormatter::TYPE_DOUBLE);
} catch (\Exception $ex) {
throw ValueConversionException::fromValueAndTargetType($value, 'float', $ex);
}
}
}
|
<?php
namespace App\Http\Controllers;
use Session;
use Illuminate\Http\Request;
use Illuminate\Pagination\Paginator;
use App\Version;
use App\File;
use App\Http\Requests;
use App\Http\Controllers\Controller;
class FileController extends Controller
{
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index(File $file)
{
$files = $file->paginate(10);
return view('file.index', ['files' => $files]);
}
/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function create()
{
$version = Version::lists('name', 'id');
return view('file.create', ['version' => $version]);
}
/**
* Store a newly created resource in storage.
*
* @param Request $request
* @return Response
*/
public function store(Request $request)
{
$this->validate($request, [
'name' => 'required',
'version_id' => 'required'
]);
$name = $request->input('name');
$version_id = $request->input('version_id');
$file = File::create(['name' => $name, 'version_id' => $version_id] );
Session::flash('flash_message_success', 'File successfully added!');
return redirect('file');
}
/**
* Display the specified resource.
*
* @param int $id
* @return Response
*/
public function show($id)
{
$file = File::findOrFail($id);
return view('file.show', ['file' => $file]);
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return Response
*/
public function edit($id)
{
$file = File::findOrFail($id);
$version = Version::lists('name', 'id');
return view('file.edit', ['file' => $file, 'version' => $version]);
}
/**
* Update the specified resource in storage.
*
* @param Request $request
* @param int $id
* @return Response
*/
public function update(Request $request, $id)
{
$file = File::findOrFail($id);
$this->validate($request, [
'name' => 'required'
]);
$input = $request->all();
$file->fill($input)->save();
Session::flash('flash_message_success', 'File successfully edit!');
return redirect('file');
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
$file = File::findOrFail($id);
$file->delete();
Session::flash('flash_message_success', 'File successfully deleted!');
return redirect('file');
}
}
|
<?php
class App_Router implements Router {
private $services;
/**
* RpcRouter constructor.
*/
public function __construct(){
$this->services = $GLOBALS['services'];
}
/**
* @param $input array
* @return array
*/
private function parseArgv($input) {
$rid = isset($input['rid']) ? $input['rid'] : ''; // request id
$service = isset($input['service']) ? $input['service'] : ''; // request service
$method = isset($input['method']) ? $input['method'] : '';
$args = isset($input['args']) ? $input['args'] : [];
$router = [
'flag' => false,
'file' => '',
'controller' => '',
'action' => '',
'params' => [],
'msg' => ''
];
if(empty($rid)) {
$router['msg'] = 'rid is empty';
return $router;
}
if(empty($service)) {
$router['msg'] = 'service is empty';
return $router;
}
if(empty($method)) {
$router['msg'] = sprintf("'%s' service: '%s' method is empty", $service, $method);
return $router;
}
// service config
if(!array_key_exists($service, $this->services)) {
$router['msg'] = sprintf("'%s' service not exists", $service);
return $router;
}
$config = $this->services[$service];
$interface = isset($config['interface']) ? $config['interface'] : '';
if(empty($interface) || strpos($interface, "/") === false) {
$router['msg'] = sprintf("%s service interface is error", $service);
return $router;
}
// controlelr
$parts = explode("/", $interface);
$parts = array_map(function($v) {
return ucfirst($v);
}, $parts);
// parse success
$router['flag'] = true;
$router['file'] = sprintf('%s_controller.php', $interface); // example: test/index_controller.php
$router['controller'] = sprintf('%s_Controller', implode('_', $parts)); // example: Test_Index_Controller.php
$router['action'] = $method;
$router['params'] = $args;
return $router;
}
/**
* @return array
* $input = ['rid' => 'rid', 'service' => 'test','method' => 'demo','args' => [1,2]];
*/
public function route() {
// parse rpc params
$input_data = file_get_contents('php://input', 'r');
$input = json_decode($input_data, true);
$router = $this->parseArgv($input);
return $router;
}
/**
* @param $config
*/
public function run($config) {
$controller_path = isset($config['controller_path']) ? $config['controller_path'] : '';
$response = [
'ec' => 401,
'em' => "",
'data' => []
];
if(!in_array(php_sapi_name(), ['cgi', 'cgi-fcgi', 'fpm-fcgi'])) {
trigger_error('run mode must is cgi or cgi-fcgi or fpm-fcgi', E_USER_NOTICE);
$response['em'] = 'run mode must is cgi or cgi-fcgi';
exit(json_encode($response));
}
$router = $this->route();
$flag = $router['flag'];
$file = $router['file'];
$controller = $router['controller'];
$action = $router['action'];
$params = $router['params'];
if(!$flag) {
trigger_error('route parse error:' . $router['msg'], E_USER_NOTICE);
$response['em'] = 'route parse error:' . $router['msg'];
exit(json_encode($response));
}
$file_path = $controller_path . $file;
if(!is_file($file_path)) {
trigger_error($file_path . ' file not found', E_USER_NOTICE);
$response['em'] = $file_path . ' file not found';
exit(json_encode($response));
}
require $file_path;
if(!class_exists($controller, false)) {
trigger_error($controller . ' controller not found', E_USER_NOTICE);
$response['em'] = $controller . ' controller not found';
exit(json_encode($response));
}
// reflect
$reflect_class = null;
try {
$reflect_class = new ReflectionClass($controller);
} catch (Exception $e){
trigger_error($controller . ' controller reflect fail:' . $e->getMessage(), E_USER_NOTICE);
$response['em'] = $controller . ' controller reflect fail:' . $e->getMessage();
exit(json_encode($response));
}
if(!$reflect_class->hasMethod($action)) {
trigger_error($controller . ' class not exists method:' . $action, E_USER_NOTICE);
$response['em'] = $controller . ' class not exists method:' . $action;
exit(json_encode($response));
}
$reflect_method = $reflect_class->getMethod($action);
$parameters = $reflect_method->getParameters();
if(count($params) > count($parameters)) {
trigger_error($controller . ' class not exists method:' . $action . ' params count error', E_USER_NOTICE);
$response['em'] = $controller . ' class not exists method:' . $action . ' params count error';
exit(json_encode($response));
}
$controller_obj = new $controller();
$reflect_method->invokeArgs($controller_obj, $params);
}
} |
<?php
declare(strict_types=1);
namespace YapepBase\Response\Exception;
class ResponseSentException extends Exception
{
public function __construct()
{
parent::__construct('Response already sent!');
}
}
|
<?php
namespace Tribe\Events\Importer;
use Symfony\Component\DomCrawler\Image;
use Tribe__Image__Uploader as Image_Uploader;
class Tribe__Image__UploaderTest extends \Codeception\TestCase\WPTestCase {
public function setUp() {
// before
parent::setUp();
// your set up methods here
Image_Uploader::reset_cache();
}
function get_image_url( $extension = 'jpg' ) {
return plugins_url( 'common/tests/_data/images/featured-image.' . $extension, \Tribe__Events__Main::instance()->plugin_file );
}
function get_image_path( $extension = 'jpg' ) {
return codecept_data_dir( 'images/featured-image.' . $extension );
}
public function tearDown() {
// your tear down methods here
// then
parent::tearDown();
}
/**
* @test
* it should be instantiatable
*/
public function it_should_be_instantiatable() {
$this->assertInstanceOf( Image_Uploader::class, new Image_Uploader() );
}
/**
* @test
* it should return false if record does not contain featured image
*/
public function it_should_return_false_if_record_does_not_contain_featured_image() {
$sut = new Image_Uploader( 'some_value' );
$out = $sut->upload_and_get_attachment_id();
$this->assertFalse( $out );
}
/**
* @test
* it should return false when trying to upload non ID and non URL
*/
public function it_should_return_false_when_trying_to_upload_non_id_and_non_url() {
$image_url = 'redneck url';
$sut = new Image_Uploader( $image_url );
$id = $sut->upload_and_get_attachment_id();
$this->assertFalse( $id );
}
/**
* @test
* it should return false when trying to upload non int ID
*/
public function it_should_return_false_when_trying_to_upload_non_int_id() {
$image_url = 33.2;
$sut = new Image_Uploader( $image_url );
$id = $sut->upload_and_get_attachment_id();
$this->assertFalse( $id );
}
/**
* @test
* it should return false when trying to upload non existing URL
*/
public function it_should_return_false_when_trying_to_upload_non_existing_url() {
$image_url = 'http://some-fake/image.jpg';
$sut = new Image_Uploader( $image_url );
$id = $sut->upload_and_get_attachment_id();
$this->assertFalse( $id );
}
/**
* @test
* it should return false when trying to upload non supported file type
*/
public function it_should_return_false_when_trying_to_upload_non_supported_file_type() {
$image_url = $this->get_image_url( 'raw' );
$sut = new Image_Uploader( $image_url );
$id = $sut->upload_and_get_attachment_id();
$this->assertFalse( $id );
}
/**
* @test
* it should return false when trying to upload non existing attachment ID
*/
public function it_should_return_false_when_trying_to_upload_non_existing_attachment_id() {
$sut = new Image_Uploader( 2233 );
$id = $sut->upload_and_get_attachment_id();
$this->assertFalse( $id );
}
/**
* @test
* it should return attachment ID when uploading existing image URL
*/
public function it_should_return_attachment_id_when_uploading_existing_image_url() {
$image_url = $this->get_image_url();
$sut = new Image_Uploader( $image_url );
$id = $sut->upload_and_get_attachment_id();
$this->assertNotFalse( $id );
$this->assertEquals( 'attachment', get_post( $id )->post_type );
}
/**
* @test
* it should return attachment ID when uploading existing attachment ID
*/
public function it_should_return_attachment_id_when_uploading_existing_attachment_id() {
$image_path = $this->get_image_path();
$existing_attachment_id = $this->factory()->attachment->create_upload_object( $image_path );
$sut = new Image_Uploader( $existing_attachment_id );
$id = $sut->upload_and_get_attachment_id();
$this->assertNotFalse( $id );
$this->assertEquals( $existing_attachment_id, $id );
}
/**
* @test
* it should return same ID when referencing a Media Library image by URL
*/
public function it_should_return_same_id_when_referencing_a_media_library_image_by_url() {
$image_path = $this->get_image_path();
$existing_attachment_id = $this->factory()->attachment->create_upload_object( $image_path );
$attachment_post = get_post( $existing_attachment_id );
$attachment_url = $attachment_post->guid;
$sut_1 = new Image_Uploader( $attachment_url );
$id_1 = $sut_1->upload_and_get_attachment_id();
$sut_2 = new Image_Uploader( $attachment_url );
$id_2 = $sut_2->upload_and_get_attachment_id();
$this->assertEquals( $id_1, $id_2 );
}
/**
* @test
* it should return the same ID when referencing the same image by URL twice
*/
public function it_should_return_the_same_id_when_referencing_the_same_image_by_url_twice() {
$image_url = $this->get_image_url();
$sut_1 = new Image_Uploader( $image_url );
$id_1 = $sut_1->upload_and_get_attachment_id();
$sut_2 = new Image_Uploader( $image_url );
$id_2 = $sut_2->upload_and_get_attachment_id();
$this->assertEquals( $id_1, $id_2 );
}
/**
* @test
* it should not insert same image twice in same run
*/
public function it_should_not_insert_same_image_twice_in_same_run() {
$image_url = $this->get_image_url();
$sut = new Image_Uploader( $image_url );
$id_1 = $sut->upload_and_get_attachment_id();
$id_2 = $sut->upload_and_get_attachment_id();
$this->assertEquals( $id_1, $id_2 );
}
/**
* It should allow uploading a file by path
*
* @test
*/
public function it_should_allow_uploading_a_file_by_path() {
$image_path = $this->get_image_path();
$sut = new Image_Uploader( $image_path );
$id_1 = $sut->upload_and_get_attachment_id();
$id_2 = $sut->upload_and_get_attachment_id();
$this->assertEquals( $id_1, $id_2 );
}
}
|
<?php
// Causes the script to die if we are not using an actual endpoint to access it.
if( ! defined( 'ACTIVE_DEPLOY_ENDPOINT' ) || true !== ACTIVE_DEPLOY_ENDPOINT )
die( '<h1>No Access</h1><p>An endpoint needs to be defined to use this file.</p>' );
/**
* The main Deploy class. This is set up for GIT repos.
*
* To create an end point, extend this abstract class and in the new class' constructor
* parse whatever post payload and pass it to parent::construct(). The data passed should
* be an array that is in the following order (note this is right in line with how the
* config arrays are put together).
* 'repo name' => array(
* 'name' => 'repo name', // Required
* 'path' => '/path/to/local/repo/' // Required
* 'branch' => 'the_desired_deploy_branch', // Required
* 'commit' => 'the SHA of the commit', // Optional. The SHA is only used in logging.
* 'remote' => 'git_remote_repo', // Optional. Defaults to 'origin'
* 'post_deploy' => 'callback' // Optional callback function for whatever.
* )
*
* The parent constructor will take care of the rest of the setup and deploy.
*
* @todo move the logging functions to a separate class to separate the functionality.
*/
abstract class Deploy {
/**
* Registered deploy repos
*/
public static $repos = array();
/**
* The name of the file that will be used for logging deployments. Set
* to false to disable logging.
*/
private static $_log_name = 'deployments.log';
/**
* The path to where we wish to store our log file.
*/
private static $_log_path = DEPLOY_LOG_DIR;
/**
* The timestamp format used for logging.
*
* @link http://www.php.net/manual/en/function.date.php
*/
private static $_date_format = 'Y-m-d H:i:sP';
/**
* Registers available repos for deployment
*
* @param array $repo The repo information and the path information for deployment
* @return bool True on success, false on failure.
*/
public static function register_repo( $name, $repo ) {
if ( ! is_string( $name ) )
return false;
if ( ! is_array( $repo ) )
return false;
$required_keys = array( 'path', 'branch', 'repo_name' );
foreach ( $required_keys as $key ) {
if ( ! array_key_exists( $key, $repo ) )
return false;
}
$defaults = array(
'remote' => 'origin',
'post_deploy' => '',
'commit' => '',
);
$repo = array_merge( $defaults, $repo );
self::$repos[ $name ] = $repo;
return self::$repos;
}
/**
* Allows alternate log locations and date formats
*
* @return void.
*/
public static function set( $var, $value ) {
if ( ( 'log_name' === $var || 'date_format' === $var ) && is_string( $value ) )
self::${'_'.$var} = $value;
}
/**
* Whether or not we are ready to deploy
*/
private $_deploy_ready;
/**
* The nickname of the destination we are attempting deployment to.
*/
private $_name;
/**
* The name of the repo we are attempting deployment for.
*/
private $_repo_name;
/**
* The name of the branch to pull from.
*/
private $_branch;
/**
* The name of the remote to pull from.
*/
private $_remote;
/**
* The path to where your website and git repository are located, can be
* a relative or absolute path
*/
private $_path;
/**
* A callback function to call after the deploy has finished.
*/
private $_post_deploy;
/**
* The commit that we are attempting to deploy
*/
private $_commit;
/**
* Sets up the repo information.
*
* @param array $repo The repository info. See class block for docs.
*/
protected function __construct( $name, $repo ) {
$this->_path = realpath( $repo['path'] ) . DIRECTORY_SEPARATOR;
$this->_name = $name;
$available_options = array( 'repo_name', 'branch', 'remote', 'commit', 'post_deploy' );
foreach ( $repo as $option => $value ){
if ( in_array( $option, $available_options ) ){
$this->{'_'.$option} = $value;
}
}
$this->execute();
}
/**
* Writes a message to the log file.
*
* @param string $message The message to write
* @param string $type The type of log message (e.g. INFO, DEBUG, ERROR, etc.)
*/
protected function log( $message, $type = 'INFO' ) {
if ( self::$_log_name ) {
// Set the name of the log file
$filename = self::$_log_path . '/' . rtrim( self::$_log_name, '/' );
if ( ! file_exists( $filename ) ) {
// Create the log file
file_put_contents( $filename, '' );
// Allow anyone to write to log files
chmod( $filename, 0666 );
}
// Write the message into the log file
// Format: time --- type: message
file_put_contents( $filename, date( self::$_date_format ) . ' --- ' . $type . ': ' . $message . PHP_EOL, FILE_APPEND );
}
}
/**
* Executes the necessary commands to deploy the code.
*/
private function execute() {
try {
// $this->log(print_r($this, true));
// Make sure we're in the right directory
chdir( $this->_path);
// Discard any changes to tracked files since our last deploy
exec( 'git reset --hard HEAD', $output );
$this->log('git reset --hard HEAD');
$this->log(json_encode($output));
// Update the local repository
exec( 'git pull ' . $this->_remote . ' ' . $this->_branch, $output );
$this->log('git pull ' . $this->_remote . ' ' . $this->_branch);
$this->log(json_encode($output));
// Secure the .git directory
echo exec( 'chmod -R og-rx .git' );
if ( is_callable( $this->_post_deploy ) )
call_user_func( $this->_post_deploy );
$this->log( '[SHA: ' . $this->_commit . '] Deployment of ' . $this->_repo_name . ' from branch ' . $this->_branch . ' successful' );
echo( '[SHA: ' . $this->_commit . '] Deployment of ' . $this->_repo_name . ' from branch ' . $this->_branch . ' successful' );
} catch ( Exception $e ) {
$this->log( $e, 'ERROR' );
}
}
}
// Registers all of our repos with the Deploy class
foreach ( $repos as $name => $repo )
Deploy::register_repo( $name, $repo );
|
<?php
use Illuminate\Database\Eloquent\SoftDeletingTrait;
class EmpAttendance extends Eloquent
{
use SoftDeletingTrait;
protected $table = 'emp_attendance';
protected $dates=['deleted_at','updated_at'];
public function user()
{
return $this->hasOne('User','id','emp_id');
}
public function emp()
{
return $this->hasOne('Employee','user_id','emp_id');
}
} |
<?php
class Gallery
{
private $images = [];
private $pdo;
public function __construct(PDO $pdo)
{
$this->pdo = $pdo;
}
public function getImages($desc = false, $limit = 999)
{
$order = $desc ? "DESC" : "ASC";
$stmt = $this->pdo->query(
"SELECT name, note, uploaded"
. " FROM image"
. " ORDER BY uploaded"
. " " . $order
. " limit " . $limit);
foreach ($stmt as $row) {
$this->images[] = new Image($row['name'], $row['note'], $row['uploaded']);
}
return $this->images;
}
public function addImage($name, $note = "")
{
$name = $this->pdo->quote($name);
// `note` seem not useful in the context... insert empty string anyway.
$this->pdo->exec("INSERT INTO image (uploaded, name, note) VALUES (now(), $name, '')");
}
} |
<?php
/**
* User: YEMASKY
* Date: 2016/7/23
* Time: 19:17
*/
namespace wise;
class CancellationPolicyAction extends \BaseAction {
protected function check(\HttpRequest $objRequest, \HttpResponse $objResponse) {
}
protected function service(\HttpRequest $objRequest, \HttpResponse $objResponse) {
switch ($objRequest->getAction()) {
case "PolicyAddEdit":
$this->doPolicyAddEdit($objRequest, $objResponse);
break;
default:
$this->doDefault($objRequest, $objResponse);
break;
}
}
protected function doMethod(\HttpRequest $objRequest, \HttpResponse $objResponse) {
// TODO: Implement method() method.
$method = $objRequest->method;
if (!empty($method)) {
$method = 'doMethod' . ucfirst($method);
return $this->$method($objRequest, $objResponse);
}
}
public function invoking(\HttpRequest $objRequest, \HttpResponse $objResponse) {
$this->check($objRequest, $objResponse);
$this->service($objRequest, $objResponse);
}
/**
* 首页显示
*/
protected function doDefault(\HttpRequest $objRequest, \HttpResponse $objResponse) {
$this->setDisplay();
$company_id = LoginServiceImpl::instance()->getLoginInfo()->getCompanyId();
$arrayResult['policyList'] = ChannelServiceImpl::instance()->getCancellationPolicy($company_id);
$objResponse->setResponse('saveAddEditUrl', ModuleServiceImpl::instance()->getEncodeModuleId('CancellationPolicy', 'PolicyAddEdit'));
//赋值
return $objResponse->successResponse(ErrorCodeConfig::$successCode['success'], $arrayResult);
}
protected function doPolicyAddEdit(\HttpRequest $objRequest, \HttpResponse $objResponse) {
$this->setDisplay();
$company_id = LoginServiceImpl::instance()->getLoginInfo()->getCompanyId();
$arrayInput = $objRequest->getInput();
if (isset($arrayInput['policy_id']) && $arrayInput['policy_id'] > 0) {//update
$policy_id = $arrayInput['policy_id'];
unset($arrayInput['policy_id']);
ChannelServiceImpl::instance()->updateCancellationPolicy($company_id, $policy_id, $arrayInput);
$arrayResult['policyList'] = ChannelServiceImpl::instance()->getCancellationPolicy($company_id);
return $objResponse->successResponse(ErrorCodeConfig::$successCode['success'], $arrayResult);
} else {
$result = ChannelServiceImpl::instance()->checkSameCancellationPolicy($company_id, $arrayInput['policy_name'], $arrayInput['policy_en_name']);
if (!$result) {
return $objResponse->errorResponse(ErrorCodeConfig::$errorCode['common']['duplicate_data']['code'], ['policy_name']);
}
$arrayInput['company_id'] = $company_id;
$arrayInput['add_datetime'] = getDateTime();
ChannelServiceImpl::instance()->saveCancellationPolicy($arrayInput);
$arrayResult['policyList'] = ChannelServiceImpl::instance()->getCancellationPolicy($company_id);
return $objResponse->successResponse(ErrorCodeConfig::$successCode['success'], $arrayResult);
}
return $objResponse->errorResponse(ErrorCodeConfig::$errorCode['no_data_update']);
}
} |
<?php
namespace App\Providers;
use App\Repositories\Interfaces\IStudentRepository;
use App\Repositories\Interfaces\ISubjectRepository;
use App\Repositories\StudentRepository;
use App\Repositories\SubjectRepository;
use Illuminate\Support\ServiceProvider;
use App\Student;
class RepositoryServiceProvider extends ServiceProvider
{
/**
* Bind the interface to an implementation repository class
*/
public function register()
{
$this->app->bind(IStudentRepository::class, function ($app) {
return new StudentRepository(Student::class);
});
}
} |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateLinksTable extends Migration
{
public function up()
{
Schema::create('links', function (Blueprint $table) {
$table->bigIncrements('id');
$table->uuid('uuid');
$table->string('url', 1000);
$table->string('host');
$table->string('title', 1000);
$table->string('favicon_url')->nullable();
$table->dateTime('added_at');
$table->uuid('user_uuid')->index();
$table->uuid('stack_uuid')->index();
$table->unsignedBigInteger('stack_id');
$table->foreign('stack_id')->references('id')->on('stacks')->onDelete('cascade');
});
}
}
|
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\BlogCategory;
use App\Blog;
class blogController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
$blogs = Blog::all();
//################### PAGE NAME #########################
$page = "all_blogs";
return view('admin.blog.all_blogs',compact('blogs','page'));
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
//
$parent = Blogcategory::WHERE('parent', 0)->get();
$categories = Blogcategory::all();
//################### PAGE NAME #########################
$page = "add_blog";
//################### ALL SHOPS #########################
return view('admin.blog.add_blog',compact('categories','parent','page'));
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
try{
// SLUG
// To check whether two pieces of content with the same title.
$results = Blog::WHERE('title', $request->input('title'))->get();
$slug = $this->checker_slug($request->input('title'), $old_slug = null,$results);
// END OF SLUG
// IMAGE PROCESSOR
if ($request->hasFile('pic')) {
$image = $request->file('pic');
$image_name = $slug.'.'.$image->getClientOriginalExtension();
$destinationPath = public_path('/blog_images');
$image->move($destinationPath, $image_name);
}else{
$image_name = "";
}
// END IMAGE PROCESSOR
//BING PARAM
$blog = new Blog;
$blog->title = $request->input('title');
$blog->slug = $slug;
$blog->content = $request->input('content');
$blog->pic = $image_name;
$blog->category = $request->input('category');
$blog->tag = $request->input('tag');
$blog->visibility = $request->input('visibility');
$blog->publish = $request->input('publish');
$blog->featured = $request->input('featured');
$blog->author = $request->input('author');
//END BING PARAM
// SAVE
$blog->save();
//
$parent = Blogcategory::WHERE('parent', 0)->get();
$categories = Blogcategory::all();
$success = 'You Have Added a New Blog Successfully .';
//################### PAGE NAME #########################
$page = "add_blog";
return view('admin.blog.add_blog',compact('categories','parent','success','page'));
} catch (\Exception $e) {
return $e->getMessage();
}
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
//
$blog = Blog::find($id);
// $parent = Blogcategory::WHERE('parent', 0)->get();
$categories = Blogcategory::all();
//################### PAGE NAME #########################
$page = "edit_blog";
return view('admin.blog.edit_blog',compact('categories','blog','page'));
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
//
try{
$blog = Blog::find($id);
// SLUG
// To check whether two pieces of content with the same title.
$results = Blog::WHERE('title', $request->input('title'))->get();
$slug = $this->checker_slug($request->input('title'), $blog->slug,$results);
// END OF SLUG
// IMAGE PROCESSOR
if ($request->hasFile('pic')) {
$image = $request->file('pic');
$image_name = $slug.time().'.'.$image->getClientOriginalExtension();
$destinationPath = public_path('/blog_images');
$image->move($destinationPath, $image_name);
$blog->pic = $image_name;
}else{
$image_name = "";
}
// END IMAGE PROCESSOR
//BING PARAM
$blog->title = $request->input('title');
$blog->slug = $slug;
$blog->content = $request->input('content');
$blog->category = $request->input('category');
$blog->tag = $request->input('tag');
$blog->visibility = $request->input('visibility');
$blog->publish = $request->input('publish');
//$blog->publish = now();
$blog->featured = $request->input('featured');
$blog->author = $request->input('author') ;
//END BING PARAM
// SAVE
$blog->save();
//
$blog = Blog::find($id);
$parent = Blogcategory::WHERE('parent', 0)->get();
$categories = Blogcategory::all();
$success = 'You Have Updated a Blog Successfully .';
//################### PAGE NAME #########################
$page = "edit_blog";
return view('admin.blog.edit_blog',compact('categories','parent','success','blog','page'));
} catch (\Exception $e) {
return $e->getMessage();
}
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
try{
$blog = Blog::find($id)->delete();
// AFTER DELETE
$categories = Blogcategory::all();
$success = 'Deleted Succefully .';
//################### PAGE NAME #########################
$page = "all_blogs";
return view('admin.blog.all_blogs',compact('categories','success','page'));
}catch(\Exception $e) {
return $e->getMessage();
}
}
public function checker_slug($name, $old_slug = null,$results){
// To check whether
$q_count = count($results);
$count=1;
if($q_count > 0){
foreach ($results as $key => $result) {
if($q_count > 1 && $key == 0){
$slug_name = $result['title'];
}else{
$slug_name = $result['title']."-".$count++;
}
// convert to slug
$new_slug = str_slug($slug_name);
if($new_slug == $old_slug){
break;
}
}
return $new_slug;
}else{
$new_slug = str_slug($name);
return $new_slug;
}
}
}
|
<?php
declare(strict_types=1);
namespace App\Common\Domain\ValueObject;
abstract class AbstractValueObject implements ValueObjectInterface
{
protected string $value;
public function __construct(string $value)
{
$this->value = $value;
}
public function __toString(): string
{
return $this->value();
}
public function value(): string
{
return $this->value;
}
public function sameValueAs(ValueObjectInterface $other): bool
{
return $this->value() === $other->value();
}
} |
<?php
use Illuminate\Database\Seeder;
class CoursesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('courses')->truncate();
$courses = [
['cod'=>'I1','name' => 'Actividades de Orientación','uc' => '2','semester_id'=>'1','required'=>''],
['cod'=>'I2','name' => 'Inglés I','uc' => '2','semester_id'=>'1','required'=>''],
['cod'=>'I3','name' => 'Metodología de la Inv. I','uc' => '2','semester_id'=>'1','required'=>''],
['cod'=>'I4','name' => 'Matemática I','uc' => '4','semester_id'=>'1','required'=>''],
['cod'=>'I5','name' => 'Lenguaje y comunicación','uc' => '3','semester_id'=>'1','required'=>''],
['cod'=>'I6','name' => 'Educación Fisica y Deporte','uc' => '2','semester_id'=>'1','required'=>''],
['cod'=>'I7','name' => 'Estructuras Discretas I','uc' => '3','semester_id'=>'1','required'=>''],
['cod'=>'I8','name' => 'Introducción a la Ingeniería','uc' => '2','semester_id'=>'2','required'=>''],
['cod'=>'I9','name' => 'Inglés II','uc' => '2','semester_id'=>'2','required'=>'I2'],
['cod'=>'I10','name' => 'Metodología de la Inv. II','uc' => '2','semester_id'=>'2','required'=>'I3'],
['cod'=>'I11','name' => 'Matemática II','uc' => '4','semester_id'=>'2','required'=>'I4'],
['cod'=>'I12','name' => 'Física I','uc' => '3','semester_id'=>'2','required'=>'I4'],
['cod'=>'I13','name' => 'Introducción a la computación','uc' => '2','semester_id'=>'2','required'=>''],
['cod'=>'I14','name' => 'Dibujo','uc' => '2','semester_id'=>'2','required'=>''],
['cod'=>'I15','name' => 'Ingeniería y Sociedad','uc' => '2','semester_id'=>'3','required'=>''],
['cod'=>'I16','name' => 'EstadÍstica I','uc' => '2','semester_id'=>'3','required'=>'I4'],
['cod'=>'I17','name' => 'Matemática III','uc' => '4','semester_id'=>'3','required'=>'I11'],
['cod'=>'I18','name' => 'Álgebra Lineal','uc' => '4','semester_id'=>'3','required'=>'I11'],
['cod'=>'I19','name' => 'Fisica II','uc' => '4','semester_id'=>'3','required'=>'I12,I11'],
['cod'=>'I20','name' => 'Computación para Ingenieros','uc' => '4','semester_id'=>'3','required'=>'I13'],
['cod'=>'I21','name' => 'Matemática IV','uc' => '4','semester_id'=>'4','required'=>'I17'],
['cod'=>'I22','name' => 'Química','uc' => '2','semester_id'=>'4','required'=>''],
['cod'=>'I23','name' => 'Circuitos Eléctricos I','uc' => '3','semester_id'=>'4','semester_id'=>'4','required'=>'I19'],
['cod'=>'I24','name' => 'Programación I','uc' => '4','semester_id'=>'4','required'=>'I20'],
['cod'=>'I25','name' => 'Estructuras Discretas II','uc' => '3','semester_id'=>'4','required'=>'I7'],
['cod'=>'I26','name' => 'Laboratorio de Programación','uc' => '2','semester_id'=>'4','required'=>'I20'],
['cod'=>'I27','name' => 'Análisis Numérico','uc' => '3','semester_id'=>'5','required'=>'I18'],
['cod'=>'I28','name' => 'Análisis de Señales','uc' => '3','semester_id'=>'5','required'=>'I21,I23'],
['cod'=>'I29','name' => 'Circuitos Eléctricos II','uc' => '4','semester_id'=>'5','required'=>'I23'],
['cod'=>'I30','name' => 'Programación II','uc' => '4','semester_id'=>'5','required'=>''],
['cod'=>'I31','name' => 'Estructuras de Datos I','uc' => '3','semester_id'=>'5','required'=>''],
['cod'=>'I32','name' => 'Teoría de Sistemas I','uc' => '2','semester_id'=>'5','required'=>'I26'],
['cod'=>'I33','name' => 'Desarrollo de Emprendedores','uc' => '2','semester_id'=>'6','required'=>''],
['cod'=>'I34','name' => 'Teoría de Control I','uc' => '3','semester_id'=>'6','required'=>'I28'],
['cod'=>'I35','name' => 'Electrónica I','uc' => '4','semester_id'=>'6','required'=>'I23'],
['cod'=>'I36','name' => 'Lógica de computación','uc' => '4','semester_id'=>'6','required'=>'I31'],
['cod'=>'I37','name' => 'Lenguaje de Programación','uc' => '3','semester_id'=>'6','required'=>'I30,I31'],
['cod'=>'I38','name' => 'Estructuras de Datos II','uc' => '3','semester_id'=>'6','required'=>'I31'],
['cod'=>'I39','name' => 'Teoría de Sistemas II','uc' => '2','semester_id'=>'6','required'=>'I32'],
['cod'=>'I40','name' => 'Teoría de Control II','uc' => '3','semester_id'=>'7','required'=>'I34'],
['cod'=>'I41','name' => 'Electrónica II','uc' => '4','semester_id'=>'7','required'=>'I35'],
['cod'=>'I42','name' => 'Circuitos Digitales','uc' => '4','semester_id'=>'7','required'=>'I35'],
['cod'=>'I43','name' => 'Autómatas Lenguajes Formales','uc' => '3','semester_id'=>'7','required'=>'I36'],
['cod'=>'I44','name' => 'Sistemas Operativos','uc' => '3','semester_id'=>'7','required'=>'I38'],
['cod'=>'I45','name' => 'Diseño de Software','uc' => '3','semester_id'=>'7','required'=>'I39'],
['cod'=>'I46','name' => 'Electiva','uc' => '2','semester_id'=>'8','required'=>''],
['cod'=>'I47','name' => 'Higiene y Seguridad Industrial','uc' => '1','semester_id'=>'8','required'=>''],
['cod'=>'I48','name' => 'Laboratorio de Instrument. y Control','uc' => '1','semester_id'=>'8','required'=>'I34'],
['cod'=>'I49','name' => 'Gestión Ambiental','uc' => '2','semester_id'=>'8','required'=>''],
['cod'=>'I50','name' => 'Fund. para el Diseño de Microprocesad.','uc' => '3','semester_id'=>'8','required'=>'I41,I42'],
['cod'=>'I51','name' => 'Inteligencia Artificial','uc' => '4','semester_id'=>'8','required'=>'I43,I45'],
['cod'=>'I52','name' => 'Teleproceso','uc' => '4','semester_id'=>'8','required'=>'I44'],
['cod'=>'I53','name' => 'Análisis de Algoritmo','uc' => '4','semester_id'=>'8','required'=>'I38'],
['cod'=>'I54','name' => 'Electiva','uc' => '2','semester_id'=>'9','required'=>''],
['cod'=>'I55','name' => 'Ejercicio Legal de la Ingeniería','uc' => '1','semester_id'=>'9','required'=>''],
['cod'=>'I56','name' => 'Técnicas de Mantenimiento y Control','uc' => '3','semester_id'=>'9','required'=>'I50'],
['cod'=>'I57','name' => 'Diseño de Microprocesad.','uc' => '3','semester_id'=>'9','required'=>'I50'],
['cod'=>'I58','name' => 'Robótica','uc' => '3','semester_id'=>'9','required'=>'I50'],
['cod'=>'I59','name' => 'Gestión Empresarial','uc' => '1','semester_id'=>'9','required'=>''],
['cod'=>'I60','name' => 'Seminario de Trabajo de Grado','uc' => '3','semester_id'=>'9','required'=>''],
['cod'=>'I61','name' => 'Proyecto','uc' => '2','semester_id'=>'9','required'=>''],
['cod'=>'I62','name' => 'Pasantias','uc' => '4','semester_id'=>'10','required'=>''],
['cod'=>'I63','name' => 'Trabajo de Grado','uc' => '6','semester_id'=>'10','required'=>''],
];
DB::table('courses')->insert($courses);
}
}
|
<?php
return [
'test-00043-01202' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2332.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '43.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01203' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.1; Nexus 7 Build/LMY47D) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.81 Safari/537.36 OPR/28.0.1764.90386',
'properties' => [
'Browser_Name' => 'Opera Mobile',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '28.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.1.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Nexus 7',
'Device_Maker' => 'Asus',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'Nexus 7',
'Device_Brand_Name' => 'Google',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01204' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.0.2; MI 2 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.0.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01205' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; Vodafone Smart 4 Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One S',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'PJ401',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01206' => [
'ua' => 'Mozilla/5.0 (Windows; U; Windows NT 6.1; de) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/41.0.2272.89 Chrome anonymized by Abelssoft 2021633465',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01207' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.3; ME302C Build/JSS15Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.117 Safari/537.36 OPR/24.0.1565.82529',
'properties' => [
'Browser_Name' => 'Opera Mobile',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '24.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.3.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Memo Pad FHD 10',
'Device_Maker' => 'Asus',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'ME302C',
'Device_Brand_Name' => 'Asus',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01208' => [
'ua' => 'Outlook-Express/7.0 (MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; AskTbAVR-4/5.15.26.45268; TmstmpExt)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01209' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; LG-D802 Build/KOT49I.D80220h) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.117 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '37.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'G2',
'Device_Maker' => 'LG',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'D802',
'Device_Brand_Name' => 'LG',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01210' => [
'ua' => 'Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.6) Gecko/20100625 Firefox/37.0.1 (x86 de) Anonymisiert durch AlMiSoft Browser-Anonymisierer 52744717',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '37.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01211' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.4; SM-G901F Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 ACHEETAHI/2100501080',
'properties' => [
'Browser_Name' => 'CM Browser',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Cheetah Mobile',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S5 Plus',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SM-G901F',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01212' => [
'ua' => 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0; BOIE9;ENUSMSCOM; SE 2.X MetaSr 1.0)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '9.0',
'Platform_Codename' => 'Windows NT 6.0',
'Platform_Marketingname' => 'Windows Vista',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01213' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; msn OptimizedIE8;DADK; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01214' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; Tab2A7-10F Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01215' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:37.0) Gecko/20100101 Firefox/37.0 Cyberfox/37.0.1',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '37.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01216' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/5.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET4.0C; .NET CLR 3.0.30729; .NET4.0E; tb-gmx/2.6.0)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.0',
'Platform_Marketingname' => 'Windows Vista',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01217' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; Anonymisiert durch AlMiSoft Browser-Maulkorb 72311847; Trident/7.0; EIE10;DEDEWOL; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01218' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; SM-T330NU Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'SM-T330',
'Device_Maker' => 'Samsung',
'Device_Type' => 'FonePad',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SM-T330',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01219' => [
'ua' => 'Outlook-Express/7.0 (MSIE 7.0; Windows NT 6.1; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; Tablet PC 2.0; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; InfoPath.3; TmstmpExt)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01220' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; el-gr; SAMSUNG GT-I9505/I9505XXUGNG8 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.5 Chrome/28.0.1500.94 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '1.5',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S4',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I9505',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01221' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.4; SM-G850F Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.81 Mobile Safari/537.36 OPR/28.0.1764.90386',
'properties' => [
'Browser_Name' => 'Opera Mobile',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '28.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Alpha (Europe)',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'SM-G850F',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01222' => [
'ua' => 'Mozilla/5.0 (Linux; Android 5.0.1; GT-I9505 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/37.0.0.0 Mobile Safari/537.36 ACHEETAHI/2100501080',
'properties' => [
'Browser_Name' => 'CM Browser',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Cheetah Mobile',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '5.0.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S4',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I9505',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01223' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0; WUID=e4b963dc0607104393fbc170e3c9ce4d; WTB=23890) Gecko/20100101 Firefox/31.0',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '31.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01224' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:36.0.4) Gecko/20100101 Firefox/36.0.4 anonymized by Abelssoft 1320620715',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01225' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; Trident/7.0; MAMD; tb-gmx/1.9.0; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01226' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.2; rv:37.0.1) Gecko/20100101 Firefox/37.0.1 anonymized by Abelssoft 1302809334',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '37.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01227' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; tb-webde/2.6.1; MATMJS; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01228' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 8.0; Win32; GMX); BTRS129482; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.30618; .NET CLR 3.5.30729; OfficeLiveConnector.1.5; OfficeLivePatch.1.3)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 6.0',
'Platform_Marketingname' => 'Windows Vista',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01229' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:38.0 () Gecko/20100101 Firefox/38.0 ( anonymized by Abelssoft 587614724',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '38.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01230' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36 OPR/28.0.1750.51 (Edition Campaign 46)',
'properties' => [
'Browser_Name' => 'Opera',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '28.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01231' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:25.0; WUID=1874a7e3b638d8521ff761cbf561662f; WTB=6787) Gecko/20100101 Firefox/25.0',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '25.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01232' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:36.0 () Gecko/20100101 Firefox/36.0 ( anonymized by Abelssoft 377171451',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01233' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:37.0 () Gecko/20100101 Firefox/37.0 ( anonymized by Abelssoft 1664901512',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '37.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01234' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:37.0.1) Gecko/20100101 Firefox/37.0.1 anonymized by Abelssoft 1440108267',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '37.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01235' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 UBrowser/4.0.4985.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '38.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01236' => [
'ua' => 'Tablet-PC-4.1-Mozilla/5.0 (Linux; U; Android 4.1.1; ro-ro; ADM8000KP_A Build/JRO03H) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.1.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00043-01237' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:37.0.1) Gecko/20100101 Firefox/37.0.1 anonymized by Abelssoft 1309900264',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '37.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01238' => [
'ua' => 'Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.6) Gecko/20100625 Firefox/30.0 (de) Anonymisiert durch AlMiSoft Browser-Anonymisierer 32562157',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '30.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01239' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.2; rv:24.0) Gecko/20140105 Firefox/24.0 K-Meleon/74.0',
'properties' => [
'Browser_Name' => 'K-Meleon',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '74.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01240' => [
'ua' => 'Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB7.1',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '3.6',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01241' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.2; .NET4.0E; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; Tablet PC 2.0; MSOffice 12)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01242' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; Trident/8.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; MSOffice 12)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01243' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; AskTbFXTV5/5.15.15.35882)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01244' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; BRI/2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0E; InfoPath.3; Microsoft Outlook 15.0.4701; ms-office; MSOffice 15)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01245' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; AskTbAVR-4/5.15.11.30498; .NET4.0E)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01246' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SV1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; Tablet PC 2.0; InfoPath.3)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01247' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.2.2; de-de; PAD 9719QR Build/PAD 9719QR) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30 ACHEETAHI/2100501080',
'properties' => [
'Browser_Name' => 'CM Browser',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Cheetah Mobile',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00043-01248' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; BRI/2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; .NET4.0E)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01249' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; NEO-X7-mini Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01250' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; OfficeLiveConnector.1.5; OfficeLivePatch.1.3)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 6.0',
'Platform_Marketingname' => 'Windows Vista',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01251' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 2.3.4; hu-hu; SonyEricssonLT15i Build/4.0.2.A.0.62) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '2.3.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Xperia Arc',
'Device_Maker' => 'SonyEricsson',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'LT15i',
'Device_Brand_Name' => 'SonyEricsson',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00043-01252' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.2.2; es-es; GT-P5100 Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Tab 2 10.1',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-P5100',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00043-01253' => [
'ua' => 'Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5',
'properties' => [
'Browser_Name' => 'Thunderbird',
'Browser_Type' => 'Email Client',
'Browser_Bits' => 64,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '17.0',
'Platform_Codename' => 'Linux',
'Platform_Marketingname' => 'Linux',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Linux Foundation',
'Platform_Brand_Name' => 'Linux Foundation',
'Device_Name' => 'Linux Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Linux Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01254' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.4; SM-E500F Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01255' => [
'ua' => 'Opera/9.80 (Android; Opera Mini/28.0.1764/36.1556; U; de) Presto/2.12.423 Version/12.16',
'properties' => [
'Browser_Name' => 'Opera',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '12.16',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Presto',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Opera Software ASA',
],
],
'test-00043-01256' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; Anonymisiert durch AlMiSoft Browser-Maulkorb 71730407; Trident/7.0; TOnlineIE11A; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01257' => [
'ua' => 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.2 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '43.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01258' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.52 Safari/537.36 OPR/15.0.1147.130',
'properties' => [
'Browser_Name' => 'Opera',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '15.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01259' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3; Tablet PC 2.0; ADOK; LIZOK)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01260' => [
'ua' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 8_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12D508 [FBAN/MessengerForiOS;FBAV/24.0.0.12.11;FBBV/8317579;FBDV/iPhone6,2;FBMD/iPhone;FBSN/iPhone OS;FBSV/8.2;FBSS/2; FBCR/o2-de;FBID/phone;FBLC/tr_TR;FBOP/5]',
'properties' => [
'Browser_Name' => 'Facebook App',
'Browser_Type' => 'Application',
'Browser_Bits' => 32,
'Browser_Maker' => 'Facebook',
'Browser_Modus' => 'unknown',
'Browser_Version' => '24.0',
'Platform_Codename' => 'iOS',
'Platform_Marketingname' => 'iOS',
'Platform_Version' => '8.2.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'iPhone',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'iPhone',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00043-01261' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.4; One X Build/KTU84Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'One X',
'Device_Maker' => 'HTC',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'PJ83100',
'Device_Brand_Name' => 'HTC',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01262' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 2.3.4; hu-hu; GT-I9100 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '2.3.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy S II',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-I9100',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00043-01263' => [
'ua' => 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; WOW64; Trident/5.0; apia systemhaus gmbh)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '9.0',
'Platform_Codename' => 'Windows NT 6.0',
'Platform_Marketingname' => 'Windows Vista',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01264' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; DG800 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36 ACHEETAHI/2100501080',
'properties' => [
'Browser_Name' => 'CM Browser',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Cheetah Mobile',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Valencia',
'Device_Maker' => 'Doogee',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'DG800',
'Device_Brand_Name' => 'Doogee',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01265' => [
'ua' => 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; Aalborg Kommune)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '9.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01266' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36 OPR/28.0.1750.51 (Edition Campaign 50)',
'properties' => [
'Browser_Name' => 'Opera',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '28.0',
'Platform_Codename' => 'Windows NT 6.0',
'Platform_Marketingname' => 'Windows Vista',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01267' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.2 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 64,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '43.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01268' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.1.1; TP7-1000DC Build/JRO03H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.1.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01269' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; CONNECT7PRO Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36 ACHEETAHI/2100501080',
'properties' => [
'Browser_Name' => 'CM Browser',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Cheetah Mobile',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Connect 7 Pro',
'Device_Maker' => 'Odys',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'Connect 7 Pro',
'Device_Brand_Name' => 'Odys',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01270' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.2.2; sr-rs; GT-S7580 Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Trend Plus',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-S7580',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00043-01271' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.4.2; pl-pl; LG-D722-Orange Build/D72210e Build/KOT49I.A1416301569) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.1599.103 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01272' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.2.2; ro-ro; PMP5297C_QUAD Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.2.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00043-01273' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; C6833 Build/14.3.A.0.757) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Xperia Z Ultra LTE',
'Device_Maker' => 'Sony',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'C6833',
'Device_Brand_Name' => 'Sony',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01274' => [
'ua' => 'Mozilla/5.0 (iPad; CPU OS 8_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12D508 [FBAN/MessengerForiOS;FBAV/24.0.0.12.11;FBBV/8317579;FBDV/iPad3,6;FBMD/iPad;FBSN/iPhone OS;FBSV/8.2;FBSS/2; FBCR/T-Mobile.pl;FBID/tablet;FBLC/pl_PL;FBOP/1]',
'properties' => [
'Browser_Name' => 'Facebook App',
'Browser_Type' => 'Application',
'Browser_Bits' => 32,
'Browser_Maker' => 'Facebook',
'Browser_Modus' => 'unknown',
'Browser_Version' => '24.0',
'Platform_Codename' => 'iOS',
'Platform_Marketingname' => 'iOS',
'Platform_Version' => '8.2.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'iPad',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'iPad',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00043-01275' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; tb-webde/2.6.1; TOnlineIE11A; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.3',
'Platform_Marketingname' => 'Windows 8.1',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01276' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01277' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.76 Safari/537.36 u01-04',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01278' => [
'ua' => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.36 Safari/534.7',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00043-01279' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:36.0) Gecko/20100101 Firefox/36.0 anonymized by Abelssoft 1602477623',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01280' => [
'ua' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.68 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '42.0',
'Platform_Codename' => 'Mac OS X',
'Platform_Marketingname' => 'Mac OS X',
'Platform_Version' => '10.9.5',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'Macintosh',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Macintosh',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01281' => [
'ua' => 'Mozilla/5.0 (iPad; CPU OS 8_0_2 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) GSA/3.2.0.25255 Mobile/12A405 Safari/8536.25',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'iOS',
'Platform_Marketingname' => 'iOS',
'Platform_Version' => '8.0.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'iPad',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'iPad',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00043-01282' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 4.1.1; pt-pt; miTab GENIUS Build/JRO03C) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30',
'properties' => [
'Browser_Name' => 'Android',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.1.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00043-01283' => [
'ua' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Mac OS X',
'Platform_Marketingname' => 'Mac OS X',
'Platform_Version' => '10.8.3',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'Macintosh',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Macintosh',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01284' => [
'ua' => 'Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.2.18) Gecko/20110614 YFF35 Firefox/3.6.18 ( .NET CLR 3.5.30729; .NET4.0E)',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '3.6',
'Platform_Codename' => 'Windows NT 6.0',
'Platform_Marketingname' => 'Windows Vista',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01285' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.1.1; IdeaTabA2109A Build/JRO03R) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.1.1',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01286' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.48 Safari/537.36 OPR/18.0.1284.26 (Edition Next)',
'properties' => [
'Browser_Name' => 'Opera',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Opera Software ASA',
'Browser_Modus' => 'unknown',
'Browser_Version' => '18.0',
'Platform_Codename' => 'Windows NT 6.2',
'Platform_Marketingname' => 'Windows 8',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01287' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.0.4; GT-P7510 Build/IMM76D) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.0.4',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'Galaxy Tab 10.1',
'Device_Maker' => 'Samsung',
'Device_Type' => 'Tablet',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'GT-P7510',
'Device_Brand_Name' => 'Samsung',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01288' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; IQ4516 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01289' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0; WUID=7cd28e057b5a83ccedc6a305991682e7; WTB=25302) Gecko/20100101 Firefox/38.0',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '38.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01290' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.3; PMT3277_3G Build/JLS36C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '41.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.3.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01291' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.904.0 Safari/535.7',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '16.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'WebKit',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Apple Inc',
],
],
'test-00043-01292' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01293' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; LG-D290 Build/KOT49I.A1423829747) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.135 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Chrome',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'L Fino',
'Device_Maker' => 'LG',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'D290',
'Device_Brand_Name' => 'LG',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01294' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; Trident/7.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Tablet PC 2.0; .NET4.0C; .NET4.0E; InfoPath.3; IM-2014-043; rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 64,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01295' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; rv:36.0) Gecko/20100101 Firefox/36.0 anonymized by Abelssoft 1845082249',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '36.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01296' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 7.0; AOL 9.0; Windows NT 6.0; Trident/5.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET4.0C; .NET CLR 3.0.30729; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0E; BOIE9;DEDE)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '7.0',
'Platform_Codename' => 'Windows NT 6.0',
'Platform_Marketingname' => 'Windows Vista',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01297' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; tb-gmx/2.6.1; (gmx/1.0.0.8); rv:11.0) like Gecko',
'properties' => [
'Browser_Name' => 'Default Browser',
'Browser_Type' => 'unknown',
'Browser_Bits' => 32,
'Browser_Maker' => 'unknown',
'Browser_Modus' => 'unknown',
'Browser_Version' => '0.0',
'Platform_Codename' => 'Windows NT 6.1',
'Platform_Marketingname' => 'Windows 7',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 64,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01298' => [
'ua' => 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; InfoPath.3; AskTbAVR-4/5.15.31.57710)',
'properties' => [
'Browser_Name' => 'Internet Explorer',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Microsoft Corporation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '8.0',
'Platform_Codename' => 'Windows NT 5.1',
'Platform_Marketingname' => 'Windows XP',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Trident',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Microsoft Corporation',
],
],
'test-00043-01299' => [
'ua' => 'Mozilla/5.0 (Windows NT 6.0; rv:32.0) Gecko/20100101 Firefox/32.0 Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons Facicons',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '32.0',
'Platform_Codename' => 'Windows NT 6.0',
'Platform_Marketingname' => 'Windows Vista',
'Platform_Version' => '0.0.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Microsoft Corporation',
'Platform_Brand_Name' => 'Microsoft',
'Device_Name' => 'Windows Desktop',
'Device_Maker' => 'unknown',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Windows Desktop',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
'test-00043-01300' => [
'ua' => 'Mozilla/5.0 (Linux; Android 4.4.2; G900 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36',
'properties' => [
'Browser_Name' => 'Android WebView',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Google Inc',
'Browser_Modus' => 'unknown',
'Browser_Version' => '4.0',
'Platform_Codename' => 'Android',
'Platform_Marketingname' => 'Android',
'Platform_Version' => '4.4.2',
'Platform_Bits' => 32,
'Platform_Maker' => 'Google Inc',
'Platform_Brand_Name' => 'Google',
'Device_Name' => 'unknown',
'Device_Maker' => 'unknown',
'Device_Type' => 'unknown',
'Device_Pointing_Method' => 'unknown',
'Device_Dual_Orientation' => true,
'Device_Code_Name' => 'unknown',
'Device_Brand_Name' => 'unknown',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
],
'test-00043-01301' => [
'ua' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; de; rv:1.9.2.26) Gecko/20120128 Firefox/3.6.26',
'properties' => [
'Browser_Name' => 'Firefox',
'Browser_Type' => 'Browser',
'Browser_Bits' => 32,
'Browser_Maker' => 'Mozilla Foundation',
'Browser_Modus' => 'unknown',
'Browser_Version' => '3.6',
'Platform_Codename' => 'Mac OS X',
'Platform_Marketingname' => 'Mac OS X',
'Platform_Version' => '10.5.0',
'Platform_Bits' => 32,
'Platform_Maker' => 'Apple Inc',
'Platform_Brand_Name' => 'Apple',
'Device_Name' => 'Macintosh',
'Device_Maker' => 'Apple Inc',
'Device_Type' => 'Desktop',
'Device_Pointing_Method' => 'mouse',
'Device_Dual_Orientation' => false,
'Device_Code_Name' => 'Macintosh',
'Device_Brand_Name' => 'Apple',
'RenderingEngine_Name' => 'Gecko',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Mozilla Foundation',
],
],
];
|
<?php
declare(strict_types=1);
namespace YapepBase\Test\Unit\View\Block;
use Mockery;
use Mockery\MockInterface;
use YapepBase\Storage\IStorage;
use YapepBase\Storage\Key\IGenerator;
use YapepBase\Test\Unit\TestAbstract;
class ComponentAbstractTest extends TestAbstract
{
/** @var ComponentStub */
protected $component;
/** @var MockInterface */
protected $storage;
/** @var MockInterface */
protected $keyGenerator;
protected function setUp(): void
{
parent::setUp();
$this->component = new ComponentStub();
}
public function testRenderWhenNoStorageSet_shouldJustRender()
{
$this->expectOutputString($this->component->content);
$this->component->render();
}
public function testRenderWhenNotStoredYet_shouldRenderAndStoreOutputBeforeReturning()
{
$this->expectStorageUsed();
$this->expectGetFromStorage(null);
$this->expectSetToStorage();
$this->component->setStorage($this->storage);
$this->expectOutputString($this->component->content);
$this->component->render();
}
public function testRenderWhenStored_shouldReturnWhatStored()
{
$this->expectStorageUsed();
$this->expectGetFromStorage($this->component->content);
$this->component->setStorage($this->storage);
$this->expectOutputString($this->component->content);
$this->component->render();
}
protected function expectStorageUsed()
{
$this->keyGenerator = Mockery::mock(IGenerator::class)
->shouldReceive('setHashing')
->with(true)
->andReturn(Mockery::self())
->getMock()
->shouldReceive('setPrefix')
->with('component_')
->andReturn(Mockery::self())
->getMock()
->shouldReceive('setSuffix')
->with(get_class($this->component))
->andReturn(Mockery::self())
->getMock();
$this->storage = Mockery::mock(IStorage::class)
->shouldReceive('getKeyGenerator')
->andReturn($this->keyGenerator)
->getMock();
}
protected function expectGetFromStorage($expectedResult)
{
$this->storage
->shouldReceive('get')
->once()
->with($this->component->uniqueIdentifier)
->andReturn($expectedResult);
}
protected function expectSetToStorage()
{
$this->storage
->shouldReceive('set')
->once()
->with(
$this->component->uniqueIdentifier,
$this->component->content,
$this->component->ttl
);
}
}
|
<?php
/**
* Usage of api-documentation generator:
* // in a page of your choosing (pages/api/api.php)
* $this->inherit([
* 'api' => new \MyPath\To\Namespace\Api, // should extend \Sky\Api
* 'title' => 'My API Docs', // default: Developer API,
* 'template' => 'my-template-name', // the template alias to (default: website)
* 'config' => [
* 'url' => [
* 'protocol' => 'https',
* 'domain' => 'api.mydomain.com',
* 'url' => '/api/version2'
* ]
* ]
* ]);
*
* Use `@apiDoc` and `@apiParam` do describe your publicly available methods
* in your Api\Resources
*
* @see \Sky\DocParser
* @see \Sky\Api\Documentor
* @see \Sky\Api
* @see \Sky\Api\Resource
*/
include_once 'lib/markdown/markdown.php';
$template = $template ?: 'html5';
$title = $title ?: 'Developer API';
$this->css[] = '/lib/codemirror/lib/codemirror.css';
$this->js = array_merge($this->js, array(
'/lib/codemirror/lib/codemirror.js',
'/lib/codemirror/lib/util/runmode.js',
'/lib/codemirror/mode/xml/xml.js',
'/lib/codemirror/mode/javascript/javascript.js',
'/lib/codemirror/mode/clike/clike.js',
'/lib/codemirror/mode/php/php.js'
));
if (!$api) {
throw new Exception('Must Pass An API Object to this inherited page.');
}
$keys = array('protocol', 'domain', 'url');
$url_prefix = rtrim(vsprintf(
'%s://%s%s',
array_filter(array_map(function($k) use($config) {
return $config['url'][$k];
}, $keys))
), '/');
if (!$config || !is_assoc($config) || !$url_prefix) {
throw new Exception(
'Must pass in api configuration array {url: {protocol, domain uri}}'
);
}
$docs = new Sky\Api\Documentor($api);
$qf = $this->queryfolders;
list($resource, $endpoint) = $qf;
$this->title = $qf ? implode('/', $qf) : $title;
if ($resource) {
try {
$method = $docs->getResourceDoc($resource, $endpoint);
$method['url'] = array(
'prefix' => $url_prefix,
'rest' => rtrim(sprintf(
'/%s/%s/%s',
$resource,
$method['aspects'] || !$endpoint ? 'ID' : $endpoint,
$method['aspects'] ? $endpoint : ''
), '/')
);
$doc = trim(Markdown(\Sky\DocParser::docAsString($method['doc'])));
$method['doc'] = $doc ? array('content' => $doc) : null;
$method['params'] = $method['params']
? array(
'list' => array_map(function($ea) {
$ea['description'] = Markdown(implode(PHP_EOL, $ea['description']));
return $ea;
}, $method['params'])
)
: array();
} catch (\Exception $e) {
include 'pages/404.php';
return;
}
} else {
$method = null;
}
$parsed = $docs->walkResources();
ksort($parsed);
$d = array();
$types = array('general', 'aspects');
foreach ($parsed as $k => $value) {
$d[] = array(
'name' => $k,
'state' => $k == $resource ? 'open' : 'closed', // used for right nav
'info' => call_user_func(function() use($value, $types) {
$data = array(
'construct' => $value['construct']
);
foreach ($types as $type) {
$t = array_values($value[$type]);
if ($t) {
$data[$type] = array('list' => $t);
}
}
return $data;
})
);
$i++;
}
$data = array(
'conf' => $conf,
'page_path' => $this->urlpath,
'title' => $this->title,
'breadcrumb' => mustachify($breadcrumb, 'label', 'uri', 'list'),
'all_docs' => $d ? array('list' => $d) : null,
'api_doc' => Markdown($docs->getApiDoc()),
'method' => $method
);
$this->template($template, 'top');
echo $this->mustache('api.m', $data, $this->incpath . '/mustache');
$this->template($template, 'bottom');
|
<?php
/**
* Template model
*
* Example:
*
* // Loading of template
* $emailTemplate = Mage::getModel('core/email_template')
* ->load(Mage::getStoreConfig('path_to_email_template_id_config'));
* $variables = array(
* 'someObject' => Mage::getSingleton('some_model')
* 'someString' => 'Some string value'
* );
* $emailTemplate->send('some@domain.com', 'Name Of User', $variables);
*
* @method Mage_Core_Model_Resource_Email_Template _getResource()
* @method Mage_Core_Model_Resource_Email_Template getResource()
* @method string getTemplateCode()
* @method Mage_Core_Model_Email_Template setTemplateCode(string $value)
* @method string getTemplateText()
* @method Mage_Core_Model_Email_Template setTemplateText(string $value)
* @method string getTemplateStyles()
* @method Mage_Core_Model_Email_Template setTemplateStyles(string $value)
* @method int getTemplateType()
* @method Mage_Core_Model_Email_Template setTemplateType(int $value)
* @method string getTemplateSubject()
* @method Mage_Core_Model_Email_Template setTemplateSubject(string $value)
* @method string getTemplateSenderName()
* @method Mage_Core_Model_Email_Template setTemplateSenderName(string $value)
* @method string getTemplateSenderEmail()
* @method Mage_Core_Model_Email_Template setTemplateSenderEmail(string $value)
* @method string getAddedAt()
* @method Mage_Core_Model_Email_Template setAddedAt(string $value)
* @method string getModifiedAt()
* @method Mage_Core_Model_Email_Template setModifiedAt(string $value)
* @method string getOrigTemplateCode()
* @method Mage_Core_Model_Email_Template setOrigTemplateCode(string $value)
* @method string getOrigTemplateVariables()
* @method Mage_Core_Model_Email_Template setOrigTemplateVariables(string $value)
*
*/
class TM_Email_Model_Template extends TM_Email_Model_Template_Abstract
{
const CONFIG_DEFAULT_TRANSPORT = 'tm_email/default/transport';
/**
*
* @var string
*/
protected $_queueName = null;
/**
*
* @var Zend_Mail_Transport_Abstract
*/
protected $_transport = null;
/**
*
* @var int
*/
protected $_storeId = null;
/**
*
* @param int $storeId
* @return \TM_Email_Model_Template
*/
public function setStoreId($storeId)
{
$this->_storeId = $storeId;
return $this;
}
/**
*
* @param string $name
* @return \TM_Email_Model_Template
*/
public function setQueueName($name)
{
$this->_queueName = $name;
return $this;
}
// /**
// *
// * @param string $name
// * @return Zend_Queue
// */
// protected function _getQueue()
// {
// $options = array(
// Zend_Queue::NAME => $this->_queueName
// );
//
// $queue = new Zend_Queue(null, $options);
// $adapter = new TM_Email_Model_Queue_Adapter_Db($options);
// $queue->setAdapter($adapter);
//
// return $queue;
// }
/**
*
* @param Zend_Mail_Transport_Abstract $transport
* @return \TM_Email_Model_Template
*/
public function setTransport(Zend_Mail_Transport_Abstract $transport)
{
$this->_transport = $transport;
return $this;
}
/**
*
* @return \Zend_Mail_Transport_Abstract
*/
public function getTransport()
{
if (!$this->_transport instanceof Zend_Mail_Transport_Abstract) {
$config = self::CONFIG_DEFAULT_TRANSPORT;
$transportId = (int) Mage::getStoreConfig($config, $this->_storeId);
$modelTransport = Mage::getModel('tm_email/gateway_transport');
$this->_transport = $modelTransport
->setSenderEmail($this->getSenderEmail())
->getTransport($transportId)
;
Zend_Mail::setDefaultTransport($this->_transport);
}
return $this->_transport;
}
protected function _getReturnPathEmail()
{
$setReturnPath = Mage::getStoreConfig(self::XML_PATH_SENDING_SET_RETURN_PATH, $this->_storeId);
switch ($setReturnPath) {
case 1:
$returnPathEmail = $this->getSenderEmail();
break;
case 2:
$returnPathEmail = Mage::getStoreConfig(self::XML_PATH_SENDING_RETURN_PATH_EMAIL, $this->_storeId);
break;
default:
$returnPathEmail = null;
break;
}
return $returnPathEmail;
}
/**
* Send mail to recipient
*
* @param array|string $email E-mail(s)
* @param array|string|null $name receiver name(s)
* @param array $variables template variables
* @return boolean
**/
public function send($email, $name = null, array $variables = array())
{
if (!$this->isValidForSend()) {
Mage::logException(new Exception('This letter cannot be sent.')); // translation is intentionally omitted
return false;
}
$emails = array_values((array)$email);
$names = is_array($name) ? $name : (array)$name;
$names = array_values($names);
foreach ($emails as $key => $email) {
if (!isset($names[$key])) {
$names[$key] = substr($email, 0, strpos($email, '@'));
}
}
$variables['email'] = reset($emails);
$variables['name'] = reset($names);
$this->setUseAbsoluteLinks(true);
$variables['boundary'] = $boundary = strtoupper(uniqid('--boundary_'));//'--BOUNDARY_TEXT_OF_CHOICE';
$text = $this->getProcessedTemplate($variables, true);
$subject = $this->getProcessedTemplateSubject($variables);
$returnPathEmail = $this->_getReturnPathEmail();
// comment magento core queue logic (AR-18)
// if ($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue) {
// /** @var $emailQueue Mage_Core_Model_Email_Queue */
// $emailQueue = $this->getQueue();
// $emailQueue->setMessageBody($text);
// $emailQueue->setMessageParameters(array(
// 'subject' => $subject,
// 'return_path_email' => $returnPathEmail,
// 'is_plain' => $this->isPlain(),
// 'from_email' => $this->getSenderEmail(),
// 'from_name' => $this->getSenderName(),
// 'reply_to' => $this->getMail()->getReplyTo(),
// 'return_to' => $this->getMail()->getReturnPath(),
// ))
// ->addRecipients($emails, $names, Mage_Core_Model_Email_Queue::EMAIL_TYPE_TO)
// ->addRecipients($this->_bccEmails, array(), Mage_Core_Model_Email_Queue::EMAIL_TYPE_BCC);
// $emailQueue->addMessageToQueue();
// return true;
// }
$mail = $this->getMail();
foreach ($emails as $key => $email) {
$mail->addTo($email, '=?utf-8?B?' . base64_encode($names[$key]) . '?=');
}
// echo($text);
// die;
if($this->isPlain()) {
$mail->setBodyText($text);
} elseif(strpos($text, $boundary)) {
$_text = substr($text, 0, strpos($text, $boundary));
$_html = str_replace($boundary, '', substr($text, strpos($text, $boundary)));
$mail->setBodyText($_text);
$mail->setBodyHTML($_html);
} else {
$mail->setBodyHTML($text);
}
$mail->setSubject('=?utf-8?B?' . base64_encode($subject) . '?=');
$mail->setFrom($this->getSenderEmail(), $this->getSenderName());
try {
$transport = $this->getTransport();
if (method_exists($this, '_beforeSend')) {
$this->_beforeSend($transport, $mail);
}
if (empty($this->_queueName)) {
$mail->send($transport);
} else {
Mage::getModel('tm_email/queue')
->setName($this->_queueName)
->send($mail, $transport)
;
}
$this->_mail = null;
}
catch (Exception $e) {
$this->_mail = null;
Mage::logException($e);
return false;
}
return true;
}
}
|
<?php
declare(strict_types=1);
namespace Docker\API\Model;
class TaskSpecPlacementPreferencesItem extends \ArrayObject
{
/**
* @var array
*/
protected $initialized = [];
public function isInitialized($property): bool
{
return \array_key_exists($property, $this->initialized);
}
/**
* @var TaskSpecPlacementPreferencesItemSpread|null
*/
protected $spread;
public function getSpread(): ?TaskSpecPlacementPreferencesItemSpread
{
return $this->spread;
}
public function setSpread(?TaskSpecPlacementPreferencesItemSpread $spread): self
{
$this->initialized['spread'] = true;
$this->spread = $spread;
return $this;
}
}
|
<?php
namespace RndBox\Bundle\PostBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* RndBox\Bundle\PostBundle\Entity\IdeaWorkers
*
* @ORM\Table(name="idea_workers")
* @ORM\Entity
*/
class IdeaWorkers
{
/**
* @var integer $ideaWorkerId
*
* @ORM\Column(name="idea_worker_id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $ideaWorkerId;
/**
* @var integer $userId
*
* @ORM\Column(name="user_id", type="integer", nullable=true)
*/
private $userId;
/**
* @var datetime $startedDate
*
* @ORM\Column(name="started_date", type="datetime", nullable=true)
*/
private $startedDate;
} |
<?php
declare(strict_types=1);
/**
* This file is part of the Zephir.
*
* (c) Phalcon Team <team@zephir-lang.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Extension\Interfaces;
use PHPUnit\Framework\TestCase;
use Stub\Interfaces\ImplementInt;
use Stub\Interfaces\ImplementInterface;
final class InterfaceMethodSignatureTest extends TestCase
{
public function testImplementInterfaceInMethodSignature(): void
{
$class = new ImplementInt();
$this->assertNull($class->get());
$class->set(1);
$this->assertSame(1, $class->get());
$this->assertSame(1, (new ImplementInterface())->get($class));
}
public function testImplementInterfaceInMethodSignatureInt(): void
{
$this->expectException(\TypeError::class);
$this->expectExceptionMessageMatches('/must be of (the\s)?type int, bool given/');
(new ImplementInt())->set(true);
}
public function testImplementInterfaceInMethodSignatureInterface(): void
{
$this->expectException(\TypeError::class);
$this->expectExceptionMessageMatches(
'/(must be of type|implement interface) Stub\\\\Interfaces\\\\InterfaceInt, bool given/'
);
(new ImplementInterface())->getVoid(true);
}
}
|
<?php
/**
* Enforce at least the following three methods
* @package MIMAS
* @subpackage Service
* @category API
* @version 0.9.0
* @author Petros Diveris <petros.diveris@manchester.ac.uk>
*
* Created by PhpStorm.
* User: pedro
* Date: 02/06/2014
* Time: 14:37
*/
namespace MIMAS\Service;
/**
* Interface RepositoryInterface
* @package MIMAS\Service
*/
interface RepositoryInterface
{
/**
* Find by id or handle
* @param string $id
* @param array $options
* @return mixed
*/
public function findByIdOrHandle($id = '', $options = array());
/**
* Return all rows
* @return mixed
*/
public function all();
/**
* Return as pretty HTML
* @return mixed
*/
public function toHtml();
} |
<?php
namespace IntellivoidAccounts\Managers;
use BasicCalculator\BC;
use IntellivoidAccounts\Abstracts\SearchMethods\AccountSearchMethod;
use IntellivoidAccounts\Exceptions\AccountNotFoundException;
use IntellivoidAccounts\Exceptions\DatabaseException;
use IntellivoidAccounts\Exceptions\InsufficientFundsException;
use IntellivoidAccounts\Exceptions\InvalidAccountStatusException;
use IntellivoidAccounts\Exceptions\InvalidEmailException;
use IntellivoidAccounts\Exceptions\InvalidFundsValueException;
use IntellivoidAccounts\Exceptions\InvalidSearchMethodException;
use IntellivoidAccounts\Exceptions\InvalidUsernameException;
use IntellivoidAccounts\Exceptions\InvalidVendorException;
use IntellivoidAccounts\IntellivoidAccounts;
use IntellivoidAccounts\Objects\Account;
use IntellivoidAccounts\Utilities\Validate;
/**
* Class TransactionManager
* @package IntellivoidAccounts\Managers
*/
class TransactionManager
{
/**
* @var IntellivoidAccounts
*/
private $intellivoidAccounts;
/**
* TransactionManager constructor.
* @param IntellivoidAccounts $intellivoidAccounts
*/
public function __construct(IntellivoidAccounts $intellivoidAccounts)
{
$this->intellivoidAccounts = $intellivoidAccounts;
}
/**
* Adds funds to an account
*
* @param int $account_id
* @param string $vendor
* @param float $amount
* @return bool
* @throws AccountNotFoundException
* @throws DatabaseException
* @throws InvalidFundsValueException
* @throws InvalidSearchMethodException
* @throws InvalidVendorException
* @throws InvalidAccountStatusException
* @throws InvalidEmailException
* @throws InvalidUsernameException
*/
public function addFunds(int $account_id, string $vendor, float $amount): bool
{
if(Validate::vendor($vendor) == false)
{
throw new InvalidVendorException();
}
if($amount < 0)
{
throw new InvalidFundsValueException();
}
$Account = $this->intellivoidAccounts->getAccountManager()->getAccount(AccountSearchMethod::byId, $account_id);
$Account->Configuration->Balance = (float)BC::add($Account->Configuration->Balance, abs($amount), 2);
$this->intellivoidAccounts->getAccountManager()->updateAccount($Account);
$this->intellivoidAccounts->getTransactionRecordManager()->logTransaction(
$Account->ID, $vendor, $amount
);
return True;
}
/**
* Processes a payment from the account
*
* @param int $account_id
* @param string $vendor
* @param float $amount
* @return bool
* @throws AccountNotFoundException
* @throws DatabaseException
* @throws InsufficientFundsException
* @throws InvalidAccountStatusException
* @throws InvalidEmailException
* @throws InvalidFundsValueException
* @throws InvalidSearchMethodException
* @throws InvalidUsernameException
* @throws InvalidVendorException
*/
public function processPayment(int $account_id, string $vendor, float $amount): bool
{
if(Validate::vendor($vendor) == false)
{
throw new InvalidVendorException();
}
if($amount < 0)
{
throw new InvalidFundsValueException();
}
$Account = $this->intellivoidAccounts->getAccountManager()->getAccount(AccountSearchMethod::byId, $account_id);
$Account->Configuration->Balance = (float)BC::sub($Account->Configuration->Balance, abs($amount), 2);
if($Account->Configuration->Balance < 0)
{
throw new InsufficientFundsException();
}
$this->intellivoidAccounts->getAccountManager()->updateAccount($Account);
$this->intellivoidAccounts->getTransactionRecordManager()->logTransaction(
$Account->ID, $vendor, -$amount
);
return True;
}
/**
* Validates if the subtraction operation is valid
*
* @param Account $account
* @param string $vendor
* @param float $amount
* @return bool
* @throws InsufficientFundsException
* @throws InvalidFundsValueException
* @throws InvalidVendorException
*/
public function validateSubOperation(Account $account, string $vendor, float $amount): bool
{
if(Validate::vendor($vendor) == false)
{
throw new InvalidVendorException();
}
if($amount < 0)
{
throw new InvalidFundsValueException();
}
$account->Configuration->Balance = (float)BC::sub($account->Configuration->Balance, abs($amount), 2);
if($account->Configuration->Balance < 0)
{
throw new InsufficientFundsException();
}
return True;
}
/**
* Transfer funds from one account to another
*
* @param int $from_id
* @param int $to_id
* @param float $amount
* @return bool
* @throws AccountNotFoundException
* @throws DatabaseException
* @throws InsufficientFundsException
* @throws InvalidAccountStatusException
* @throws InvalidEmailException
* @throws InvalidFundsValueException
* @throws InvalidSearchMethodException
* @throws InvalidUsernameException
* @throws InvalidVendorException
*/
public function transferFunds(int $from_id, int $to_id, float $amount): bool
{
$from_account = $this->intellivoidAccounts->getAccountManager()->getAccount(
AccountSearchMethod::byId, $from_id
);
$this->validateSubOperation($from_account, $from_account->Username, $amount);
$to_account = $this->intellivoidAccounts->getAccountManager()->getAccount(
AccountSearchMethod::byId, $to_id
);
$this->processPayment($from_id, $to_account->Username, $amount);
$this->addFunds($to_id, $from_account->Username, $amount);
return True;
}
} |
<?php
namespace Celestial\Contracts\Api;
use GuzzleHttp\ClientInterface;
use Psr\Http\Message\ResponseInterface;
interface ApiProviderContract
{
/**
* Переопределяет HTTP-клиента.
*
* @param \GuzzleHttp\ClientInterface $client
*
* @return \Celestial\Api\ApiProvider
*/
public function setClient(ClientInterface $client);
/**
* Возвращает HTTP-клиент.
*
* @return \GuzzleHttp\ClientInterface
*/
public function getClient();
/**
* Возвращает API-токен.
*
* @return string | null
*/
public function token();
/**
* Возвращает полный URL по отношению к базовому.
*
* @param string $url
*
* @return string
*/
public function resolveUrl(string $url);
/**
* Выполняет HTTP-запрос к удаленному сервису.
*
* @param string $method
* @param string $url
* @param array $params = []
*
* @return \Celestial\Api\ApiResponse
*/
public function request(string $method, string $url, array $params = []);
/**
* Трансформирует ответ от сервиса в общий интерфейс.
*
* @param \Psr\Http\Message\ResponseInterface $response
*
* @throws \Celestial\Exceptions\Api\EmptyApiResponseException
* @throws \Celestial\Exceptions\Api\InvalidJsonResponseException
*/
public function transformResponse(ResponseInterface $response);
}
|
<?php
/** The user page side functions **/
function px_verify_show_extra_profile_fields($user) {
$user_id = $user->ID;
$result;
if (isset($_GET['action']) && $_GET['action'] == 'refreshEnvatoData') {
$result = px_verify_refresh_envato_data($user_id);
}else if (isset($_GET['action']) && $_GET['action'] == 'upgradeAqua') {
$result = px_verify_upgrade_aqua($user_id);
}else {
$result = '';
}
?>
<h3>Envato User Information</h3>
<table class="form-table">
<tr>
<th>
<label for="px_envato_purchase_code">Purchase Code</label>
</th>
<td>
<input type="text" name="px_envato_purchase_code" id="px_envato_purchase_code" value="<?php echo esc_attr( get_the_author_meta( 'px_envato_purchase_code', $user_id ) ); ?>" class="regular-text" /><br />
</td>
</tr>
<tr>
<th>
<label for="px_envato_username">Envato Username</label>
</th>
<td>
<input type="text" name="px_envato_username" id="px_envato_username" value="<?php echo esc_attr( get_the_author_meta( 'px_envato_username', $user_id ) ); ?>" class="regular-text" readonly /><br />
</td>
</tr>
<tr>
<th>
<label for="px_envato_purchase_date">Purchase Date</label>
</th>
<td>
<input type="text" name="px_envato_purchase_date" id="px_envato_purchase_date" value="<?php echo esc_attr( get_the_author_meta( 'px_envato_purchase_date', $user_id ) ); ?>" class="regular-text" readonly /><br />
</td>
</tr>
<tr>
<th>
<label for="px_envato_item">Item Name</label>
</th>
<td>
<input type="text" name="px_envato_item" id="px_envato_item" value="<?php echo esc_attr( get_the_author_meta( 'px_envato_item', $user_id ) ); ?>" class="regular-text" readonly /><br />
</td>
</tr>
<tr>
<th>
<label for="px_envato_license">License</label>
</th>
<td>
<input type="text" name="px_envato_license" id="px_envato_license" value="<?php echo esc_attr( get_the_author_meta( 'px_envato_license', $user_id ) ); ?>" class="regular-text" readonly /><br />
</td>
</tr>
<tr>
<th>
<label for="px_envato_support_amount">Support Amount</label>
</th>
<td>
<input type="text" name="px_envato_support_amount" id="px_envato_support_amount" value="<?php echo esc_attr( get_the_author_meta( 'px_envato_support_amount', $user_id ) ); ?>" class="regular-text" readonly /><br />
</td>
</tr>
<tr>
<th>
<label for="px_envato_support_until">Support Until</label>
</th>
<td>
<input type="text" name="px_envato_support_until" id="px_envato_support_until" value="<?php echo esc_attr( get_the_author_meta( 'px_envato_support_until', $user_id ) ); ?>" class="regular-text" readonly /><br />
</td>
</tr>
<tr>
<th>
</th>
<td>
<a href="?user_id=<?php echo $user_id; ?>&action=refreshEnvatoData" class="button" >Refresh Envato Data</a>
<a href="?user_id=<?php echo $user_id; ?>&action=upgradeAqua" class="button" >Upgrade from Aqua Verifier</a>
<?php echo $result; ?>
</td>
</tr>
</table>
<?php
}
// Refresh the Envato Details
function px_verify_refresh_envato_data($user_id) {
$code = get_the_author_meta('px_envato_purchase_code', $user_id);
$verify = px_verify_purchase($code, false);
if( !is_wp_error($verify)) {
update_user_meta( $user_id, 'px_envato_username', $verify['px_envato_username'] );
update_user_meta( $user_id, 'px_envato_purchase_date', $verify['px_envato_purchase_date'] );
update_user_meta( $user_id, 'px_envato_purchase_code', $verify['px_envato_purchase_code'] );
update_user_meta( $user_id, 'px_envato_license', $verify['px_envato_license'] );
update_user_meta( $user_id, 'px_envato_item', $verify['px_envato_item'] );
update_user_meta( $user_id, 'px_envato_support_amount', $verify['px_envato_support_amount'] );
update_user_meta( $user_id, 'px_envato_support_until', $verify['px_envato_support_until'] );
return '<div id="message" class="updated notice is-dismissible"><p><strong>Refreshed successfully!</strong></p></div>';
}else {
$error_string = $verify->get_error_message();
return '<div id="message" class="error notice is-dismissible"><p>' . $error_string . '</p></div>';
}
}
// Upgrade from the Aqua Verifier
function px_verify_upgrade_aqua($user_id) {
if ( count(get_user_meta($user_id, 'purchased_items')) === 0) {
return '<div id="message" class="error notice is-dismissible"><p><strong>Aqua Verifier was not used for this user</strong><br>Enter the purchase code for this user manually</p></div>';
}else {
$data = get_user_meta($user_id, 'purchased_items');
$code = reset($data);
$code = reset($code);
$code = $code['purchase_code'];
$verify = px_verify_purchase($code, false);
if( !is_wp_error($verify)) {
update_user_meta( $user_id, 'px_envato_username', $verify['px_envato_username'] );
update_user_meta( $user_id, 'px_envato_purchase_date', $verify['px_envato_purchase_date'] );
update_user_meta( $user_id, 'px_envato_purchase_code', $verify['px_envato_purchase_code'] );
update_user_meta( $user_id, 'px_envato_license', $verify['px_envato_license'] );
update_user_meta( $user_id, 'px_envato_item', $verify['px_envato_item'] );
update_user_meta( $user_id, 'px_envato_support_amount', $verify['px_envato_support_amount'] );
update_user_meta( $user_id, 'px_envato_support_until', $verify['px_envato_support_until'] );
return '<div id="message" class="updated notice is-dismissible"><p><strong>Upgraded the data from Aqua Verifier!</strong></p></div>';
}else {
$error_string = $verify->get_error_message();
return '<div id="message" class="error notice is-dismissible"><p>' . $error_string . '</p></div>';
}
}
}
function px_verify_save_extra_profile_fields($user_id) {
if (!current_user_can( 'edit_user', $user_id) ) {
return false;
}else {
update_user_meta( $user_id, 'px_envato_username', $_POST['px_envato_username'] );
update_user_meta( $user_id, 'px_envato_purchase_date', $_POST['px_envato_purchase_date'] );
update_user_meta( $user_id, 'px_envato_purchase_code', $_POST['px_envato_purchase_code'] );
update_user_meta( $user_id, 'px_envato_license', $_POST['px_envato_license'] );
update_user_meta( $user_id, 'px_envato_item', $_POST['px_envato_item'] );
update_user_meta( $user_id, 'px_envato_support_amount', $_POST['px_envato_support_amount'] );
update_user_meta( $user_id, 'px_envato_support_until', $_POST['px_envato_support_until'] );
}
}
/** User Table Bulk Functions **/
function px_verifier_bulk_upgrade_footer() {
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('<option>').val('refresh_envato_data').text('Refresh Envato Data').appendTo("select[name='action'], select[name='action2']");
$('<option>').val('upgrade_aqua').text('Upgrade from Aqua Verifier').appendTo("select[name='action'], select[name='action2']");
});
</script>
<?php
}
function px_verifier_bulk_actions() {
$wp_list_table = _get_list_table('WP_Users_List_Table');
$action = $wp_list_table->current_action();
$refreshed = array();
switch($action) {
case 'refresh_envato_data':
echo 'ok';
foreach($userids as $id) {
$result = px_verify_refresh_envato_data($id);
if($result == '<div id="message" class="updated notice is-dismissible"><p><strong>Refreshed successfully!</strong></p></div>') {
$refreshed[$id] = 'updated';
}else {
$result = str_replace('<div id="message" class="error notice is-dismissible"><p>', '', $result);
$result = str_replace('</p></div>', '', $result);
$refreshed[$id] = $result;
}
}
break;
case 'upgrade_aqua':
foreach($userids as $id) {
$result = px_verify_upgrade_aqua($id);
if($result == '<div id="message" class="updated notice is-dismissible"><p><strong>Upgraded the data from Aqua Verifier!</strong></p></div>') {
$refreshed[$id] = 'upgraded';
}else {
$result = str_replace('<div id="message" class="error notice is-dismissible"><p>', '', $result);
$result = str_replace('</p></div>', '', $result);
$refreshed[$id] = $result;
}
}
break;
}
$msg;
foreach($refreshed as $key => $value) {
$msg = '<p><strong>'.$key.':</strong> '.$value.'</p>';
}
var_dump($msg);
$sendback = add_query_arg('px_verifier', $msg, $sendback);
wp_redirect($sendback);
}
function px_verifier_bulk_notice() {
if(isset($_REQUEST['px_verifier'])) {
?>
<div id="message" class="updated notice is-dismissible">
<p><strong>Result:</strong></p>
<?php
echo $_REQUEST['px_verifier'];
?>
</div>
<?php
}else {
echo '-1';
}
}
add_action('show_user_profile', 'px_verify_show_extra_profile_fields', 999);
add_action('edit_user_profile', 'px_verify_show_extra_profile_fields', 999);
add_action('personal_options_update', 'px_verify_save_extra_profile_fields');
add_action('edit_user_profile_update', 'px_verify_save_extra_profile_fields');
add_action('admin_footer-users.php', 'px_verifier_bulk_upgrade_footer');
add_action('admin_action_refactor_forum_roles', 'px_verifier_bulk_actions');
// add_action('admin_notices', 'px_verifier_bulk_notice');
?> |
<?php
/**
* Table_Cell_Value_Int_Model
*
* @package Artatom
* @subpackage Table
* @version 1.0
* @author Konstantin Bondarenko
* @copyright © 2007-2018 Artatom http://www.artatom.ru
*/
class Table_Cell_Value_Int_Model extends Table_Cell_Value_Model
{
/**
* Database table name
* @var string
*/
protected $_tableName = 'table_cell_value_ints';
/**
* Column consist item's name
* @var string
*/
protected $_nameColumn = 'id';
/**
* Belongs to relations
* @var array
*/
protected $_belongsTo = array(
'table_cell' => array(),
'table_column' => array(),
);
/**
* Name of tag
* @var string
*/
protected $_tagName = 'table_cell_value';
/**
* Get preformatted cell value
* @return string used in Table_Row.content()
*/
public function getFormattedValue()
{
return $this->value;
}
} |
<?php
require_once 'PHPUnit/Extensions/SeleniumTestCase.php';
if (!file_exists( dirname(__FILE__) . '/../config/config.php')) {
trigger_error('Please edit the config.php.dist file with your settings and rename to config.php', E_USER_ERROR);
}
require_once dirname(__FILE__) . '/../config/config.php';
class System_BaseTestCase extends PHPUnit_Extensions_SeleniumTestCase
{
protected $config;
protected $wordpressUrl;
static protected $posts = array();
static protected $pages = array();
protected $wordpressQueryLog = null;
static protected $depends = array(); // generic place to throw all dependency information
protected function setUp()
{
$this->config = $config = new Tests_System_Config;
$this->setBrowser($config->browser['browser']);
$this->setBrowserUrl($config->wordpressUrl);
$this->wordpressUrl = $config->wordpressUrl;
if (isset($this->config->localTest)) {
$this->loadWPConstants();
if (defined('SAVEQUERIES') && SAVEQUERIES) {
// get WP query log file
if (defined('QUERY_LOG')) {
$this->wordpressQueryLog = QUERY_LOG;
} else {
$this->wordpressQueryLog = $this->config->wordpressPath .
'wp-content' . DIRECTORY_SEPARATOR . 'queries.log';
}
// remove log before test runs if exists
if (file_exists($this->wordpressQueryLog)) {
unlink($this->wordpressQueryLog);
}
}
}
}
protected function adminLogin()
{
parent::openAndWait($this->wordpressUrl . 'wp-login.php');
$this->waitForTitle('Log In');
// Fill out the form!
$this->type('xpath=//*[@id="user_login"]', $this->config->wordpressAdminUser);
$this->type('xpath=//*[@id="user_pass"]', $this->config->wordpressAdminPass);
// Submit the form!
$this->clickAndWait('xpath=//*[@id="wp-submit"]');
$this->waitForTitle('*');
sleep(3); // try to get around bad auths
}
protected function adminLogout()
{
parent::openAndWait($this->wordpressUrl . 'wp-admin/index.php');
$this->assertTitle('Dashboard');
// Click on the "yes log me out"
$this->clickAndWait('xpath=//*[@id="user_info"]/p/a[2]');
}
protected function createPost()
{
$this->openAndWaitAdmin($this->wordpressUrl . 'wp-admin/post-new.php');
$this->assertTitle('Add New Post');
$title = time() . 'title';
// Fill out the form!
$this->type('xpath=//*[@id="content"]', $title);
$this->type('xpath=//*[@id="title"]', 'Test Content');
// Submit the form!
$this->clickAndWait('xpath=//*[@id="publish"]');
$this->waitForTitle('Edit Post');
// Verify post published
$this->assertTextPresent('exact:Post published.');
// get and return our post id
$id = $this->getAttribute('xpath=//*[@id="post_ID"]@value');
self::$posts[] = $id;
return $id;
}
protected function createPage()
{
$this->openAndWaitAdmin($this->wordpressUrl . 'wp-admin/post-new.php?post_type=page');
$this->assertTitle('Add New Page');
$title = time() . 'title';
// Fill out the form!
$this->type('xpath=//*[@id="content"]', $title);
$this->type('xpath=//*[@id="title"]', 'Test Content');
// Submit the form!
$this->clickAndWait('xpath=//*[@id="publish"]');
$this->waitForTitle('Edit Page');
// Verify post published
$this->assertTextPresent('exact:Page published.');
// get and return our post id
$id = $this->getAttribute('xpath=//*[@id="post_ID"]@value');
self::$pages[] = $id;
return $id;
}
protected function deletePosts()
{
$this->openAndWaitAdmin($this->wordpressUrl . '/wp-admin/edit.php');
$this->waitForTitle('Posts');
foreach(self::$posts as $id) {
$this->click('xpath=//*[@id="post-' . $id . '"]/th/input');
}
$this->select('xpath=//*[@id="posts-filter"]/div[3]/div/select', 'Move to Trash');
$this->clickAndWait('xpath=//*[@id="doaction2"]');
$this->openAndWaitAdmin($this->wordpressUrl . '/wp-admin/edit.php?post_status=trash&post_type=post');
$this->waitForTitle('Posts');
$this->clickAndWait('xpath=//*[@id="delete_all"]');
$this->waitForTitle('Posts');
}
protected function openAndWaitAdmin($url)
{
parent::openAndWait($url);
$this->waitForTitle('*');
$title = $this->getTitle();
// shoot, we've been "reauth" tagged
if (preg_match('/Log In/', $title)) {
sleep(3); // try to get around bad auths
// Fill out the form!
$this->type('xpath=//*[@id="user_login"]', $this->config->wordpressAdminUser);
$this->type('xpath=//*[@id="user_pass"]', $this->config->wordpressAdminPass);
// Submit the form and we'll be redirected
$this->clickAndWait('xpath=//*[@id="wp-submit"]');
$this->waitForTitle('*');
sleep(3); // try to get around bad auths
}
}
protected function tearDown()
{
if (isset($this->config->localTest) && $this->wordpressQueryLog) {
// if valid log move to test suite driver query log
// (grouped into current test being ran)
if (file_exists($this->wordpressQueryLog)
&& is_readable($this->wordpressQueryLog)) {
$log_contents = file_get_contents($this->wordpressQueryLog);
if (!defined('DB_TYPE')) {
define('DB_TYPE', 'mysql');
}
$query_log = $this->config->queryLogPath .
DB_TYPE . '_' . $this->name . '_queries.log';
file_put_contents($query_log, $log_contents);
// remove wp query log to be ready for next test run
unlink($this->wordpressQueryLog);
}
}
}
/**
* Given a first parenthesis ( ...will find its matching closing paren )
*
* @param string $str given string
* @param int $start_pos position of where desired starting paren begins+1
*
* @return int position of matching ending parenthesis
*/
protected function getMatchingParen($str, $start_pos)
{
$count = strlen($str);
$bracket = 1;
for ( $i = $start_pos; $i < $count; $i++ ) {
if ( $str[$i] == '(' ) {
$bracket++;
} elseif ( $str[$i] == ')' ) {
$bracket--;
}
if ( $bracket == 0 ) {
return $i;
}
}
}
/**
* fetch WP Config Constants
*
* load wordpress config constants
* doing this instead of just including the file because
* at the end of the config file in requires wp-settings.php
* which in turn barks errors...
*
* @return void
*/
protected function loadWPConstants()
{
$wp_config = explode("\n", file_get_contents($this->config->wordpressPath . 'wp-config.php'));
foreach ($wp_config as $line) {
if (stripos($line, 'define') === 0) {
$first_paren = strpos($line, '(');
$last_paren = $this->getMatchingParen($line, $first_paren + 1);
$first_comma = strpos($line, ',', $first_paren);
$constant = substr($line, $first_paren + 1, $first_comma - ($first_paren + 1));
$value = substr($line, $first_comma + 1, $last_paren - ($first_comma +1));
$constant = trim(trim($constant), "'");
$value = trim(trim($value), "'");
if (!defined($constant)) {
define($constant, $value);
}
}
}
}
}
|
<?php
/*
* This file is part of the symfony package.
* (c) 2004-2006 Dustin Whittle <dustin.whittle@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* @package symfony.runtime.addon
* @author Dustin Whittle <dustin.whittle@symfony-project.com>
* @version SVN: $Id: sfSwfChart.class.php 1519 2006-06-24 03:44:30Z dwhittle $
*/
function swf_chart($xml_source, $width = 400, $height = 250, $bg_color="#ffffff")
{
$flash_file = _compute_public_path('chart', 'swfcharts', 'swf');
$library_path = dirname($flash_file).DIRECTORY_SEPARATOR;
$movie = $flash_file.'?library_path='.$library_path.'&php_source='.$xml_source;
return '<object type="application/x-shockwave-flash" data="'.$movie.'" width="'.$width.'" height="'.$height.'">
<param name="movie" value="'.$movie.'" />
<param name="quality value="high" />
<param name="bgcolor" value="'.$bg_color.'" />
</object>';
}
?>
|
<?php
use Restserver\Libraries\REST_Controller;
require(APPPATH . 'libraries/REST_Controller.php');
Class Agreement extends REST_Controller{
public function __construct(){
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Methods: GET, OPTIONS, POST, DELETE");
header("Access-Control-Allow-Headers: Content-Type, Content-Length, Accept-Encoding");
parent::__construct(); $this->load->model('AgreementModel'); $this->load->library('form_validation');
}
public function index_get($id = null){
if($id==null)
{
$this->db->select('a.id, us.name as user_name, d.name as dokter_name, a.tanggalJanji as tanggalJanji, rs.name as rumahSakit_name, a.keluhan as keluhan');
$this->db->from('agreement as a');
$this->db->join('users as us', 'us.id = a.id_user');
$this->db->join('dokter as d', 'd.id = a.id_rumahSakit');
$this->db->join('rumahSakit as rs', 'rs.id = a.id_rumahSakit');
}else{
$this->db->select('a.id, us.name as user_name, d.name as dokter_name, a.tanggalJanji as tanggalJanji, rs.name as rumahSakit_name, a.keluhan as keluhan');
$this->db->from('agreement as a');
$this->db->join('users as us', 'us.id = a.id_User');
$this->db->join('dokter as d', 'd.id = a.id_rumahSakit');
$this->db->join('rumahSakit as rs', 'rs.id = a.id_rumahSakit');
$this->db->where('a.id', $id);
}
$query=$this->db->get();
$data=$query->result_array();
return $this->returnData($data, false);
}
public function index_post($id = null){
$validation = $this->form_validation;
$rule = $this->AgreementModel->rules();
if($id == null){
array_push($rule,
[
'field' => 'id_user',
'label' => 'id_user',
'rules' => 'required'
],
[
'field' => 'id_dokter',
'label' => 'id_dokter',
'rules' => 'required'
],
[
'field' => 'id_rumahSakit',
'label' => 'id_rumahSakit',
'rules' => 'required'
]
);
} else{
array_push($rule,
[
'field' => 'id_user',
'label' => 'id_user',
'rules' => 'required'
],
[
'field' => 'id_dokter',
'label' => 'id_dokter',
'rules' => 'required'
],
[
'field' => 'id_rumahSakit',
'label' => 'id_rumahSakit',
'rules' => 'required'
]
);
}
$validation->set_rules($rule);
if (!$validation->run()) {
return $this->returnData($this->form_validation->error_array(), true);
}
$agreement = new AgreementData();
$agreement->id_user = $this->post('id_user');
$agreement->id_dokter = $this->post('id_dokter');
$agreement->tanggalJanji = $this->post('tanggalJanji');
$agreement->id_rumahSakit = $this->post('id_rumahSakit');
$agreement->keluhan = $this->post('keluhan');
if($id == null){
$response = $this->AgreementModel->store($agreement);
}else{
$response = $this->AgreementModel->update($agreement,$id);
}
return $this->returnData($response['msg'], $response['error']);
}
public function index_delete($id = null){
if($id == null){
return $this->returnData('Parameter Id Tidak Ditemukan', true);
}
$response = $this->AgreementModel->destroy($id);
return $this->returnData($response['msg'], $response['error']);
}
public function returnData($msg,$error){
$response['error']=$error;
$response['message']=$msg;
return $this->response($response);
}
}
Class AgreementData{
public $id_user;
public $id_dokter;
public $tanggalJanji;
public $id_rumahSakit;
public $keluhan;
} |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "message".
*
* @property integer $message_id
* @property string $subject
* @property string $message
* @property integer $from_user
* @property integer $to_user
* @property integer $thread_id
* @property string $datetimestamp
* @property integer $read_m
* @property integer $status
*/
class Message extends \yii\db\ActiveRecord
{
public $captcha;
/**
* @inheritdoc
*/
public static function tableName()
{
return 'message';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['message', 'from_user', 'to_user', 'datetimestamp'], 'required'],
[['message'], 'string'],
[['from_user', 'to_user', 'thread_id', 'read_m', 'status'], 'integer'],
[['datetimestamp'], 'safe'],
[['subject'], 'string', 'max' => 30],
[['captcha'], 'captcha', 'on'=>'nonadmin'],
[['captcha'], 'required', 'on'=>'nonadmin'],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'message_id' => 'Message ID',
'subject' => 'Subject',
'message' => 'Message',
'from_user' => 'From User',
'to_user' => 'To User',
'thread_id' => 'Thread ID',
'datetimestamp' => 'Datetimestamp',
'read_m' => 'Read M',
'status' => 'Status',
];
}
/**
* Get excerpt from string
*
* @param String $str String to get an excerpt from
* @param Integer $startPos Position int string to start excerpt from
* @param Integer $maxLength Maximum length the excerpt may be
* @return String excerpt
*/
function getExcerpt($str, $startPos=0, $maxLength=30) {
if(strlen($str) > $maxLength) {
$excerpt = substr($str, $startPos, $maxLength-3);
$lastSpace = strrpos($excerpt, ' ');
$excerpt = substr($excerpt, 0, $lastSpace);
$excerpt .= '...';
} else {
$excerpt = $str;
}
return $excerpt;
}
public function getModels(){
return $this;
}
}
|
<?php
namespace Dime\Server\Traits;
/**
* Renderer
*
* @author Danilo Kuehn <dk@nogo-software.de>
*/
trait Renderer
{
/**
* Render content and status
*
* @param mixed $data
* @param int $status
*/
protected function render($data, $status = 200)
{
$this->app->render('', $data, $status);
}
}
|
<?php
/**
2009.11 新浪云计算
2010.05 SAE 公有云平台开放注册
2011.08 第一个重量级应用案例
2012.03 云商店
2012.07 企业云服务
2014.05 掌上SAE
2014.06 新浪云存储
2014.10 MAE 私有云解决方案
运行环境的一些限制
变相本地读写
不允许绑定端口
限制了一些函数和类
ini_set 使用白名单机制
应用之间的隔离
代码层面的隔离
第一层 PHP Sandbox
第二层 Linux Container
第三层 Apache Sandbox
网络层面的隔离
转发 L7 到 FetchURL
转发 L4 到 SocketProxy
代码的迁移
使用权 stream wrapper 代理本地的文件读写操作
saekv://
saemc://
saestor://
上传的文件需要存储到storage 或者去存储中
使用到 Memcache 的部分只用把连接的 ip:port 任意指定即可
留意应用的错误日志是否有 warning 解决 warning
sae 代码部署原理图
创建应用 (自动初始化) ---> SVN 仓库 ---> 部署代码 svn co & ci
|
代码分发 (Web runtime) 验证
管理员 参与者 观察者 自定义
灵活分配团队成员 管理代码 管理服务 设置配额 设置应用信息权限
自带调优工具
管理后台一键开启
由函数 sae_xhprof_start() 和 sae_xhprof_end() 自行控制调试开关
支持定时任务 异步任务
SAE 提供粒度最低到分钟的分布式定时任务
Cron 的执行是以 HTTP 方式触发的 触发后真正执行的是用户在应用的 HTTP 的回调函数
Cron 服务是分布式环境部署的 具有高可靠性 多点之间相互隔离且同时触发 并且通过分布式锁进行选举并最终由一个健康节点执行
SAE 也提供分布式任务队列服务 用于执行异步的 HTTP 调用方式的任务
提供阻塞度长的顺序队列和并发度高的并发队列
长时间的cron
max_execution_time 不够用怎么办
SAE 将 Cron 和 WebRuntime 进行分离
允许执行 cron 的脚本最长运行30 分钟
SAE 本身提供多层次的底层沙箱机制 保证应用的安全
紧随 PHP 官方的版本 及时更新小版本
应用防火墙
应用防火墙是运行在 SAE 负载均衡处的过滤模块 实现对恶意抓取的行为有效拦截
黑白名单机制
频率 / 流量限制机制
访问速度限制机制
低成本的使用 CDN 服务
一键开启
实现对网站中的静态资源和云存储中的静态文件的加速
只需按正常的方式进行部署 即可将资源部署至 CDN 源站 然后SAE 的 CDN 服务会自动将资源同步至各个节点 随后您的用户在访问资源时 将就近获取 从而获得更好的访问体验
能过 CDN 服务产生的流量相对较使用 会为您节约 30% 左右的流量费
PHP 实现密集型计算
写 PHP 脚本 以进程的方式运行
在多台机器上都运行这个脚本
实现一种机制防止竞争发生 避免计算资源浪费
存在一些缺点
这种调度机制不是很容易部署
很难 控某台机器的某一个进程还在不在
不具有通用性 换一种计算模型还得重头来过
在 SAE 由 PHP 实现密集型的计算
本身实现是无锁的 任务的分配由 Cron 完成 插入到按任务 hash 的 TaskQueue 中
TaskQueue 并发度由 TaskQueue 的总数和单个 TaskQueue 的并发度乘积得出
计算节点无状态 执行结果可以更新到 NoSQL 中或者分表存储可以避免压力
常规的快速上线和回滚方式
通过 RPM 包的方式 给新包和回滚备份包 出问题时立马用旧的包覆盖
通过 git 或者 svn hook 的方式 用代码控制器的方式回滚
其他方式
存在的问题
还是有个操作的时间 有时太紧急会出乱子
造一个测试的环境可能成本巨大 特别是系统的组件很多很多的时候
*/
|
<?php
namespace CM\Bundle\ModelBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* FanPageRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class FanPageRepository extends EntityRepository
{
public function getNames() {
try {
$conn = $this->getEntityManager()->getConnection();
$query = "SELECT fp.name FROM fan_page fp";
$stmt = $conn->executeQuery($query);
$stmt->setFetchMode(\PDO::FETCH_COLUMN, 0);
return $stmt->fetchAll();
} catch(\PDOException $e) {
$conn->rollBack();
}
}
public function getFBIds() {
try {
$conn = $this->getEntityManager()->getConnection();
$query = "SELECT fp.fb_id FROM fan_page fp";
$stmt = $conn->executeQuery($query);
$stmt->setFetchMode(\PDO::FETCH_COLUMN, 0);
return $stmt->fetchAll();
} catch(\PDOException $e) {
$conn->rollBack();
}
}
}
|
<?php
/**
* Created by PhpStorm.
* User: acer
* Date: 07/04/2019
* Time: 04:13 AM
*/
class Settings extends MY_Controller {
function __construct()
{
parent::__construct();
}
function index()
{
$crud = new grocery_CRUD();
$crud->set_table('zgr_menu');
$crud->set_subject('منو');
$crud->columns('menu_title');
$crud->display_as('menu_title','عنوان منو');
$crud->display_as('menu_link','لينك منو');
$crud->unset_clone();
$crud->unset_texteditor('menu_title','menu_link');
$output = $crud->render();
$this->out_view($output);
}
function out_view($output = null) {
$output->title = "منو";
$output->des = "مديريت و بررسي منو ";
$output->timeStamp = $this->jdf->jdate('l, j F Y',time(),'','GMT');
$this->load->view('admin/index',$output);
}
} |
<?php
/**
* 首页控制器
* by Obelisk
*/
namespace app\modules\cn\controllers;
use yii;
use app\modules\cn\models\Content;
use app\modules\cn\models\Login;
use app\modules\cn\models\Collect;
use app\libs\ThinkUController;
class ClassController extends ThinkUController {
public $enableCsrfValidation = false;
public $layout = 'cn';
/**
* 公开课列表页
* @return string
* @Obelisk
*/
public function actionIndex(){
$banner = Content::getContent(['fields' => 'url', 'category' => "269", 'order' => 'c.id desc', 'page'=>1,'pageSize' => 10]);//头条
return $this->render('index',['banner'=>$banner]);
}
/**
* 公开课详情
* @Obelisk
*/
public function actionDetails(){
$id = Yii::$app->request->get('id');
$data = Content::getContent(['fields' => "url,synopsis,time,score,place,description,speaker,keywords",'where' => "c.id = $id"]);
$count = $data[0]['viewCount'];
Content::updateAll(['viewCount' => ($count+1)],"id=$id");
return $this->render('details',['data' => $data,'id' => $id]);
}
/**
* 课程回放
* @Obelisk
*/
public function actionDetailsBack(){
$id = Yii::$app->request->get('id');
$data = Content::getContent(['fields' => "url,synopsis,time,score,place,description,speaker,keywords",'where' => "c.id = $id"]);
// $count = $data[0]['viewCount'];
// Content::updateAll(['viewCount' => ($count+1)],"id=$id");
return $this->render('detailsBack',['data' => $data,'id' => $id]);
}
/**
* 留学公开课列表
* @Obelisk
*/
public function actionAbroad(){
$category = "178,107";
$page = Yii::$app->request->get('page',1);
$data = Content::getContent(['pageStr' =>1,'fields' => "score,speaker,abstract,time,place",'pageSize'=> 10,'category' => $category,'page' => $page]);
$pageStr = $data['pageStr'];
$count = $data['count'];
$total = $data['total'];
unset($data['count']);
unset($data['total']);
unset($data['pageStr']);
return $this->render('list',['count' => $count,'total' => $total,'pageStr' => $pageStr,'data'=>$data,'page' =>$page,'category' => 'syabroad']);
}
/**
* 培训公开课列表
* @return string
* @Obelisk
*/
public function actionCultivate(){
$category = "177,107";
$page = Yii::$app->request->get('page',1);
$data = Content::getContent(['pageStr' =>1,'fields' => "score,speaker,abstract,time,place",'pageSize'=> 10,'category' => $category,'page' => $page]);
$pageStr = $data['pageStr'];
$count = $data['count'];
$total = $data['total'];
unset($data['count']);
unset($data['total']);
unset($data['pageStr']);
return $this->render('cultivate',['count' => $count,'total' => $total,'pageStr' => $pageStr,'data'=>$data,'page' =>$page,'category' => 'syabroad']);
}
/**
* 账号管理
* @return string
* @Obelisk
*/
public function actionManage(){
$userId = Yii::$app->session->get('userId');
if(!$userId){
die('<script>alert("请登录");history.go(-1);</script>');
}
$model = new Login();
$data = $model->findOne($userId);
return $this->render("manage",['data' => $data]);
}
/**
* 账号管理
* @return string
* @Obelisk
*/
public function actionCollect(){
$userId = Yii::$app->session->get('userId');
if(!$userId){
die('<script>alert("请登录");history.go(-1);</script>');
}
$page = Yii::$app->request->get('page',1);
$pageSize = 12;
$model = new Collect();
$data = $model->getCollect($userId,$page,$pageSize,1);
return $this->render("collect",['data' => $data]);
}
} |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
use App\User;
class SellerResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'seller_id' => $this->seller_id,
'shop_name' => $this->shop_name,
'shop_location' => $this->shop_location,
'shop_latitude' => $this->shop_latitude,
'shop_longitude' => $this->shop_longitude,
'shop_logo_image' => "/storage/seller/".$this->shop_logo_image,
'profile_status' => [
'profile_status_id' => $this->profile_status->profile_status_id,
'profile_status_name' => $this->profile_status->profile_status_name
],
'profile_id' => $this->profile_id,
'user' => User::getUserByProfileId($this->profile_id)
];
}
}
|
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\User;
class UserController extends Controller
{
/**
*
* Follow user
*
*/
public function followUser(User $user)
{
if (!$user) {
return redirect()->back()->with('error', 'User does not exist.');
}
$user->followers()->attach(auth()->user()->id);
return redirect()->back()->with('success', 'Successfully followed the user.');
}
/**
*
* Unfollow user
*
*/
public function unFollowUser(User $user)
{
if (!$user) {
return redirect()->back()->with('error', 'User does not exist.');
}
$user->followers()->detach(auth()->user()->id);
return redirect()->back()->with('success', 'Successfully unfollowed the user.');
}
}
|
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "groups".
*
* @property string $id
* @property string $name
* @property string $description
* @property string $adviser_id
* @property string $created_at
* @property string $updated_at
*
* @property Groupmembers[] $groupmembers
*/
class Groups extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'groups';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['name', 'description', 'adviser_id'], 'required'],
[['created_at', 'updated_at'], 'safe'],
[['name', 'description', 'adviser_id'], 'string', 'max' => 191],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'name' => 'Name',
'description' => 'Description',
'adviser_id' => 'Adviser ID',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getGroupmembers()
{
return $this->hasMany(Groupmembers::className(), ['groupid' => 'id']);
}
public function getUser()
{
return $this->hasOne(User::className(), ['id' => 'adviser_id']);
}
public function getUserName() {
return $this->user->name;
}
}
|
<?php
return [
'Name' => '描述',
'Time' => '会员天数时间',
'Money' => '现价',
'Y_money' => '原价',
'Create_time' => '发布时间'
];
|
<?php
class Banner extends Eloquent {
protected $fillable = array(
'gallery_id',
);
public function gallery() {
return $this->hasOne('Gallery', 'id', 'gallery_id');
}
public function scopeWhereId($query, $id) {
return $query->where('id', '=', (int)$id);
}
public function scopeActive($query) {
return $query->where('active', '=', 1);
}
} |
<?php
class Solution {
/**
* @param String $str
* @return Integer
*/
function myAtoi($str) {
$len = strlen($str);
if($len<1){
return 0;
}
$num = "";
$sign = "";
$flag = false;
for($i=0;$i<$len;$i++){
if($str[$i] == " " && $num == "" && $flag == false){
continue;
}
if($sign == "" && $flag == false){
if($str[$i] == "-"){
$sign = "-";
$flag = true;
continue;
}elseif($str[$i] == "+"){
$sign = "+";
$flag = true;
continue;
}
}
if(!is_numeric($str[$i])){
break;
}
$flag = true;
if($str[$i] == 0 && $num == ""){
continue;
}
$num .=$str[$i];
}
if($num == ""){
return 0;
}
if($sign == "-"){
$num = $sign.$num;
}
if($num < -1<<31){
return -1<<31;
}
if($num > (1<<31)-1){
return (1<<31)-1;
}
return $num;
}
}
$a = new Solution();
echo $a->myAtoi(' +0 123');
echo "\r\n";
echo $a->myAtoi(' -12');
echo "\r\n";
echo $a->myAtoi(' 2 -12');
echo "\r\n";
echo $a->myAtoi(' ##2 -12');
echo "\r\n";
echo $a->myAtoi(' -');
echo "\r\n";
echo $a->myAtoi(' -91283472332');
echo "\r\n";
echo $a->myAtoi('+-3');
echo "\r\n";
echo $a->myAtoi('-10000001');
echo "\r\n";
echo $a->myAtoi('-0000001');
echo "\r\n";
echo $a->myAtoi('-+1');
echo "\r\n";
echo $a->myAtoi('420');
echo "\r\n";
echo $a->myAtoi('032');
echo "\r\n";
echo $a->myAtoi('- 234');
echo "\r\n";
echo $a->myAtoi('0-1');
echo "\r\n"; |
<?php
require_once dirname(__FILE__) . '/../config/config.php';
class LogCompare {
protected $_config;
public $files = array();
public function __construct()
{
$this->_config = new Tests_System_Config;
$this->loadLogs();
}
public function loadLogs()
{
$log_dir = $this->_config->queryLogPath;
$files = scandir($log_dir);
foreach ($files as $k => $file) {
if (strrchr($file, '.') !== '.log' || $file == '.' || $file == '..') {
unset($files[$k]);
}
}
$this->files = array_values($files);
}
public function compareLogs($base_driver, $compared_driver, $test = null)
{
$files = array($base_driver => array(), $compared_driver => array());
// organize log files
foreach($this->files as $file) {
if (stripos($file, $base_driver) === 0) {
$files[$base_driver][] = str_replace($base_driver . '_', '', $file);
}
if (stripos($file, $compared_driver) === 0) {
$files[$compared_driver][] = str_replace($compared_driver . '_', '', $file);
}
}
if ($test) {
if (!in_array($test . '_queries.log', $files[$base_driver]) ||
!in_array($test . '_queries.log', $files[$compared_driver])) {
echo "Logs for this test: $test are not available for both drivers\n";
} else {
$file1 = $base_driver . '_' . $test . '_queries.log';
$file2 = $compared_driver . '_' . $test . '_queries.log';
$this->_compare($file1, $file2);
}
} else {
foreach($files[$base_driver] as $test_case) {
if (in_array($test_case, $files[$compared_driver])) {
$file1 = $base_driver . '_' . $test_case;
$file2 = $compared_driver . '_' . $test_case;
$this->_compare($file1, $file2);
} else {
echo "Comparison file for $test_case does not exist\n";
}
}
}
}
protected function _compare($file1, $file2)
{
$fp = fopen($this->_config->queryLogPath . $file1, 'r') or exit("Unable to open file!");
$fp2 = fopen($this->_config->queryLogPath . $file2, 'r') or exit("Unable to open file!");
$ln = 0;
while(!feof($fp) || !feof($fp2)) {
$line = fgets($fp);
$line2 = fgets($fp2);
$ln++;
$data = explode('|~|', $line);
$data2 = explode('|~|', $line2);
/**
* data size is 3, first being SQL QUERY
* second being serialized result set
* third being serialized db errors array
* we know the SQL queries will be different
* so we will first check for errors and compare
* result sets to ensure the translation version is
* working as intended
*/
// check errors
if (isset($data[2]) && isset($data2[2]) && $data[2] != $data2[2]) {
if ($data[2] != '') {
echo $data[0] . "\n";
var_dump(unserialize($data[2]));
echo $file1 . "\n";
}
if ($data2[2] != '') {
echo $data2[0] . "\n";
var_dump(unserialize($data2[2]));
echo $file2 . "\n";
}
}
// check result sets
if (isset($data[1]) && isset($data2[1]) && $data[1] != $data2[1]) {
if (false && $data[1] != '' && $data2[1] != '') {
$result = unserialize($data[1]);
$result2 = unserialize($data2[1]);
$count = count($result);
$count2 = count($result2);
if ($count != $count2) {
echo 'Result Count: ' . $count . "\n";
echo $data[0] . "\n";
echo $file1 . "\n";
echo 'Result Count: ' . $count2 . "\n";
echo $data2[0] . "\n";
echo $file2 . "\n";
echo "----------\n";
}
}
}
}
fclose($fp);
fclose($fp2);
}
}
$argv = $_SERVER['argv'];
array_shift($argv);
$log_compare = new LogCompare();
$log_compare->compareLogs($argv[0], $argv[1]);
|
<?php
namespace IU\REDCapETL;
use PHPUnit\Framework\TestCase;
use IU\PHPCap\ErrorHandlerInterface;
use IU\PHPCap\PhpCapException;
use IU\REDCapETL\TestProject;
/**
* PHPUnit tests for the Logger class.
*/
class LoggerTest extends TestCase
{
private $project;
public function setUp()
{
$apiUrl = 'https://someplace.edu/api/';
$apiToken = '11111111112222222222333333333344';
$this->project = new TestProject($apiUrl, $apiToken);
$this->project->setApp('LoggerTest');
}
public function testConstructor()
{
$logger = new Logger('test-app');
$this->assertNotNull($logger, 'logger not null check');
}
public function testLog()
{
$logMessages = ['Test 1', 'Test 2', 'Test 3'];
$logApps = array_fill(0, count($logMessages), $this->project->getApp());
$logger = new Logger($this->project->getApp());
$logger->setLogProject($this->project);
$logger->setPrintLogging(false);
$logFile = __DIR__.'/../logs/logger-test-log.txt';
$logger->setLogFile($logFile);
$getLogFile = $logger->getLogFile();
$this->assertEquals($logFile, $getLogFile, 'Log file set/get test');
foreach ($logMessages as $logMessage) {
$logger->log($logMessage);
}
# Get the records from the project and check them
$logRecords = $this->project->getAllRecords();
$logRecordMessages = array_column($logRecords, 'message');
$logRecordApps = array_column($logRecords, 'app');
$this->assertEquals($logMessages, $logRecordMessages, 'Log message check');
$this->assertEquals($logApps, $logRecordApps, 'Log app check');
/*
SystemFunctions::setOverrideErrorLog(true);
$this->project->setImportGeneratesException(true);
$logger->log('This is a test.');
$lastErrorLogMessage = SystemFunctions::getLastErrorLogMessage();
$this->assertEquals(
'Logging to project failed: data import error',
$lastErrorLogMessage,
'Import exception check'
);
SystemFunctions::setOverrideErrorLog(false);
*/
}
public function testGetApp()
{
$logger = new Logger($this->project->getApp());
$app = $logger->getApp();
$this->assertEquals($this->project->getApp(), $app, 'get app check');
}
public function testLogEmail()
{
$logger = new Logger($this->project->getApp());
$logger->setPrintLogging(false);
$from = 'redcap-etl@iu.edu';
$to = 'admin1@iu.edu,admin2@iu.edu';
$subject = 'REDCap-ETL Notification';
$logger->setLogEmail($from, $to, $subject);
$getFrom = $logger->getLogFromEmail();
$this->assertEquals($from, $getFrom, 'From e-mail check');
$getTo = $logger->getLogToEmail();
$this->assertEquals($to, $getTo, 'To e-mail check');
$getSubject = $logger->getLogEmailSubject();
$this->assertEquals($subject, $getSubject, 'E-mail subject check');
# Try to reset the from e-mail
$newFrom = 'redcap@iu.edu';
$logger->setLogFromEmail($newFrom);
$getNewFrom = $logger->getLogFromEmail();
$this->assertEquals($newFrom, $getNewFrom, 'From e-mail set/get check');
# Try to reset the to e-mail
$newTo = 'admin@iu.edu';
$logger->setLogToEmail($newTo);
$getNewTo = $logger->getLogToEmail();
$this->assertEquals($newTo, $getNewTo, 'To e-mail set/get check');
#-------------------------------------------
# Test sending e-mails
#-------------------------------------------
SystemFunctions::setOverrideMail(true);
$errorMessage = 'Test error';
$logger->logEmailSummary($errorMessage);
$mailArguments = SystemFunctions::getMailArguments();
list($to, $mailSubject, $message, $additionalHeaders, $addtionalParameters) = array_pop($mailArguments);
$this->assertEquals($newTo, $to, 'To e-mail send check');
$this->assertRegexp('/'.$errorMessage.'/', $message, 'Message send check');
$this->assertEquals($subject, $mailSubject, 'Message send check');
# Test array of to e-mails
$newTo = array('admin1@iu.edu', 'admin2@iu.edu', 'admin3@iu.edu');
$logger->setLogToEmail($newTo);
$logger->logEmailSummary($errorMessage);
$mailArguments = SystemFunctions::getMailArguments();
for ($i = count($newTo) - 1; $i >= 0; $i--) {
list($to, $mailSubject, $message, $additionalHeaders, $addtionalParameters) = array_pop($mailArguments);
$this->assertEquals($newTo[$i], $to, 'Array to e-mails send check '.$i);
}
# Test multiple to e-mails
$multTo = 'admin1@iu.edu,admin2@iu.edu,admin3@iu.edu';
$logger->setLogToEmail($multTo);
$logger->logEmailSummary($errorMessage);
$mailArguments = SystemFunctions::getMailArguments();
for ($i = count($newTo) - 1; $i >= 0; $i--) {
list($to, $mailSubject, $message, $additionalHeaders, $addtionalParameters) = array_pop($mailArguments);
$this->assertEquals($newTo[$i], $to, 'Multiple to e-mails send check '.$i);
}
SystemFunctions::setOverrideMail(false);
}
public function testLogException()
{
$logger = new Logger($this->project->getApp());
$logger->setPrintLogging(false);
$logFile = __DIR__.'/../logs/test-log-exception.txt';
if (file_exists($logFile)) {
unlink($logFile);
}
$logger->setLogFile($logFile);
$message = 'This is an exception log test.';
$code = EtlException::INPUT_ERROR;
$exception = new EtlException($message, $code);
$logger->logException($exception);
# Get only the first line of the file, since it will have the
# error messages. The other lines will contain a stack trace.
$fh = fopen($logFile, 'r');
$logEntry = fgets($fh);
fclose($fh);
# Remove the timestamp and trailing newline
list($date, $time, $logId, $fileMessage) = explode(' ', $logEntry, 4);
$fileMessage = trim($fileMessage);
$this->assertEquals(
$message,
$fileMessage,
'Log exception check'
);
#----------------------------------------------
# Test with error_log
#----------------------------------------------
$logger->setLogFile(null); # turn off file logging
$logFile = __DIR__.'/../logs/test-log-exception-to-error-log.txt';
if (file_exists($logFile)) {
unlink($logFile);
}
#ini_set("log_errors", 1);
#ini_set("error_log", $logFile);
$logger->setLogFile($logFile);
$logger->logException($exception);
# Get only the first line of the file, since it will have the
# error messages. The other lines will contain a stack trace.
$fh = fopen($logFile, 'r');
$logEntry = fgets($fh);
fclose($fh);
list($date, $time, $logId, $fileMessage) = explode(' ', $logEntry, 4);
$fileMessage = preg_replace('/\s+$/', '', $fileMessage);
# Remove the timestamp and trailing newline
#list($timestamp, $fileMessage) = explode('] ', $logEntry);
#$fileMessage = trim($fileMessage);
$this->assertEquals(
$message,
$fileMessage,
'Log exception to error_log check'
);
}
public function testLogPhpCapException()
{
$logger = new Logger($this->project->getApp());
$logger->setPrintLogging(false);
$logFile = __DIR__.'/../logs/test-log-phpcap-exception.txt';
if (file_exists($logFile)) {
unlink($logFile);
}
$logger->setLogFile($logFile);
$phpcapMessage = 'REDCap API error.';
$code = ErrorHandlerInterface::REDCAP_API_ERROR;
$phpcapException = new PhpCapException($phpcapMessage, $code);
$message = 'PHPCap error.';
$code = EtlException::PHPCAP_ERROR;
$exception = new EtlException($message, $code, $phpcapException);
$logger->logException($exception);
$combinedMessage = $message.' - Caused by PHPCap exception: '.$phpcapMessage;
# Get only the first line of the file, since it will have the
# error messages. The other lines will contain a stack trace.
$fh = fopen($logFile, 'r');
$logEntry = fgets($fh);
fclose($fh);
# Remove the timestamp and trailing newline
list($date, $time, $logId, $fileMessage) = explode(' ', $logEntry, 4);
$fileMessage = trim($fileMessage);
$this->assertEquals(
$combinedMessage,
$fileMessage,
'Log exception check'
);
}
}
|
<?php
/*
* This file is part of SplashSync Project.
*
* Copyright (C) Splash Sync <www.splashsync.com>
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Splash\Tasking\Services;
use DateTime;
use Exception;
use Psr\Log\LoggerInterface;
use Splash\Tasking\Entity\Task;
use Splash\Tasking\Entity\Worker;
use Splash\Tasking\Tools\Status;
use Splash\Tasking\Tools\Timer;
/**
* Workers Management Service
*
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
*/
class WorkersManager
{
//==============================================================================
// Variables Definition
//==============================================================================
/**
* @var ProcessManager
*/
protected ProcessManager $process;
/**
* @var LoggerInterface
*/
protected LoggerInterface $logger;
/**
* Worker Object
*
* @var Worker
*/
private Worker $worker;
/**
* Script Max End Date
*
* @var DateTime
*/
private DateTime $endDate;
//====================================================================//
// CONSTRUCTOR
//====================================================================//
/**
* Class Constructor
*
* @param LoggerInterface $logger
* @param ProcessManager $processManager
*
* @throws Exception
*/
public function __construct(
LoggerInterface $logger,
ProcessManager $processManager
) {
//====================================================================//
// Link to Symfony Logger
$this->logger = $logger;
//====================================================================//
// Link to Process Manager
$this->process = $processManager;
//====================================================================//
// Setup End Of Life Date
$this->endDate = $this->getWorkerMaxDate();
}
//==============================================================================
// Worker Operations
//==============================================================================
/**
* Initialize Current Worker Process
*
* @param int $processId Worker Process Id
*
* @SuppressWarnings(PHPMD.ExitExpression)
*
* @throws Exception
*/
public function initialize(int $processId): void
{
//====================================================================//
// Identify Current Worker by Linux Process PID
$worker = Configuration::getWorkerRepository()->findOneByLinuxPid();
//====================================================================//
// If Worker Not Found => Search By Supervisor Process Number
if (null === $worker) {
//====================================================================//
// Search Worker By Process Number
$worker = Configuration::getWorkerRepository()->findOneByProcess($processId);
}
//====================================================================//
// If Worker Doesn't Exists
if (null === $worker) {
//====================================================================//
// Create Worker
$worker = $this->create($processId);
}
//====================================================================//
// Setup End Of Life Date
$this->endDate = $this->getWorkerMaxDate();
//====================================================================//
// Update pID
$this->worker = $worker;
$this->worker->setPid((int) getmypid());
$this->worker->setTask("Boot...");
Configuration::getEntityManager()->flush();
//====================================================================//
// Refresh Worker
$this->refresh(true);
}
/**
* Refresh Status of a Supervisor Process
*
* @param bool $force
*
* @throws Exception
*
* @return Worker
*/
public function refresh(bool $force) : Worker
{
//====================================================================//
// Safety Check
if (!isset($this->worker)) {
throw new Exception("No Current Worker for refresh!!");
}
//====================================================================//
// Update Status is Needed?
if (false === $this->isRefreshNeeded($force)) {
return $this->worker;
}
//====================================================================//
// Reload Worker From DB
Configuration::getEntityManager()->clear();
$worker = Configuration::getWorkerRepository()->findOneByProcess($this->worker->getProcess());
if (null === $worker) {
throw new Exception("Unable to reload Worker from Database");
}
$this->worker = $worker;
//==============================================================================
// Refresh Worker Status
//==============================================================================
//==============================================================================
// Set As Running
$worker->setRunning(true);
//==============================================================================
// Set As Running
$worker->setPid((int) getmypid());
//==============================================================================
// Set Last Seen DateTime to NOW
$worker->setLastSeen(new DateTime());
//==============================================================================
// Set Script Execution Time
Status::resetWatchdog($this->logger);
//==============================================================================
// Set Status as Waiting
$worker->setTask(Timer::isIdle() ? "Working !!" : "Waiting...");
//==============================================================================
// Flush Database
Configuration::getEntityManager()->flush();
//====================================================================//
// Output Refresh Sign
$this->logger->info("Worker Manager: Worker ".$worker->getProcess()." Refreshed in Database");
return $worker;
}
/**
* Verify a Worker Process is running
*
* @param int $processId Worker Local Id
*
* @throws Exception
*
* @return bool
*/
public function isRunning(int $processId): bool
{
//====================================================================//
// Load Local Machine Worker
$worker = Configuration::getWorkerRepository()->findOneByProcess($processId);
//====================================================================//
// Worker Found & Running
if (($worker instanceof Worker) && $worker->isRunning()) {
return true;
}
//====================================================================//
// Worker Found & Running
if (null === $worker) {
$this->logger->info("Worker Manager: Workers Process ".$processId." doesn't Exists");
return false;
}
//====================================================================//
// Worker Is Disabled
if (!$worker->isEnabled()) {
$this->logger->info("Worker Manager: Workers Process ".$processId." is Disabled");
return true;
}
//====================================================================//
// Worker Is Inactive
$this->logger->info("Worker Manager: Workers Process ".$processId." is Inactive");
//====================================================================//
// Worker Not Alive
return false;
}
/**
* Start a Worker Process on Local Machine (Server Node)
*
* @param int $processId Worker Process Id
*
* @return bool
*/
public function start(int $processId) : bool
{
return $this->process->start(ProcessManager::WORKER." ".$processId);
}
/**
* Update Current Worker to Stopped Status
*
* @throws Exception
*/
public function stop() : void
{
//====================================================================//
// Safety Check
if (!isset($this->worker)) {
throw new Exception("No Current Worker Initialized!!");
}
//====================================================================//
// Refresh Supervisor Worker Status (WatchDog)
$this->refresh(true);
//====================================================================//
// Set Status as Stopped
$this->worker->setTask("Stopped");
$this->worker->setRunning(false);
Configuration::getEntityManager()->flush();
//====================================================================//
// Check if Worker is to Restart Automatically
if ($this->worker->isEnabled()) {
//====================================================================//
// Ensure Supervisor is Running
$this->checkSupervisor();
}
//====================================================================//
// User Information
$this->logger->info('End of Worker Process... See you later babe!');
}
/**
* Update Enable Flag of All Available Workers
*
* @param bool $enabled
*
* @throws Exception
*/
public function setupAllWorkers(bool $enabled) : void
{
//====================================================================//
// Clear EntityManager
Configuration::getEntityManager()->clear();
//====================================================================//
// Load List of All Currently Setup Workers
$workers = Configuration::getWorkerRepository()->findAll();
//====================================================================//
// Update All Actives Workers as Disabled
foreach ($workers as $worker) {
//====================================================================//
// Update Worker Status
if ($worker instanceof Worker) {
$worker->setEnabled($enabled);
}
}
//====================================================================//
// Save Changes to Db
Configuration::getEntityManager()->flush();
}
/**
* Count Number of Active Workers
*
* @throws Exception
*
* @return int
*/
public function countActiveWorkers() : int
{
return Configuration::getWorkerRepository()->countActiveWorkers();
}
/**
* Check if Worker Needs To Be Restarted
*
* @param null|int $taskCount Number of Tasks Already Executed
*
* @throws Exception
*
* @return bool
*/
public function isToKill(?int $taskCount): bool
{
//====================================================================//
// Safety Check
if (!isset($this->worker)) {
throw new Exception("No Current Worker Initialized!!");
}
//====================================================================//
// Check Tasks Counter
if (!is_null($taskCount) && ($taskCount >= Configuration::getWorkerMaxTasks())) {
$this->logger->info("Worker Manager: Exit on Worker Tasks Counter (".$taskCount.")");
return true;
}
//====================================================================//
// Check Worker Age
if ($this->endDate < (new DateTime())) {
$this->logger->info("Worker Manager: Exit on Worker TimeOut");
return true;
}
//====================================================================//
// Check Worker Memory Usage
if ((memory_get_usage(true) / 1048576) > $this->getWorkerMaxMemory()) {
$this->logger->info("Worker Manager: Exit on Worker Memory Usage");
return true;
}
//====================================================================//
// Check User requested Worker to Stop
if (false === $this->worker->isEnabled()) {
$this->logger->info("Worker Manager: Exit on User Request, Worker Now Disabled");
return true;
}
//====================================================================//
// Check Worker is Not Alone with this Number
if ($this->process->exists($this->getWorkerCommandName()) > 1) {
$this->logger->warning("Worker Manager: Exit on Duplicate Worker Deleted");
return true;
}
return false;
}
/**
* Set Current Worker Task
*
* @param Task $task Current Worker Task
*
* @throws Exception
*/
public function setCurrentTask(Task $task) : void
{
//====================================================================//
// Safety Check
if (!isset($this->worker)) {
throw new Exception("No Current Worker Initialized!!");
}
$this->worker->setTask($task->getName());
}
//==============================================================================
// Supervisor Verifications
//==============================================================================
/**
* Check All Available Supervisor are Running on All machines
*
* @throws Exception
*
* @return bool
*/
public function checkSupervisor(): bool
{
//====================================================================//
// Check Local Machine Crontab
$this->process->checkCrontab();
//====================================================================//
// Check Local Machine Supervisor
$result = $this->checkLocalSupervisorIsRunning();
//====================================================================//
// Check if MultiServer Mode is Enabled
if (true !== Configuration::isMultiServer()) {
return $result;
}
//====================================================================//
// Retrieve List of All Supervisors
/** @var Worker[] $workers */
$workers = Configuration::getWorkerRepository()->findBy(array("process" => 0));
//====================================================================//
// Check All Supervisors
foreach ($workers as $supervisor) {
$result = $result && $this->checkRemoteSupervisorsAreRunning($supervisor);
}
return $result;
}
//==============================================================================
// PROTECTED - Worker Config Informations
//==============================================================================
/**
* Get Worker Command Type Name
*
* @return string
*/
protected function getWorkerCommandName(): string
{
return ProcessManager::WORKER." ".$this->worker->getProcess();
}
/**
* Get Max Age for Worker (since now)
*
* @throws Exception
*
* @return DateTime
*/
protected function getWorkerMaxDate(): DateTime
{
$this->logger->info("Worker Manager: This Worker will die in ".Configuration::getWorkerMaxAge()." Seconds");
return new DateTime("+".Configuration::getWorkerMaxAge()."Seconds");
}
/**
* Get Max Memory Usage for Worker (in Mb)
*
* @return int
*/
protected function getWorkerMaxMemory(): int
{
return Configuration::getWorkerMaxMemory();
}
/**
* Check if Worker Status is to Refresh
*
* @param bool $force
*
* @throws Exception
*
* @return bool
*/
private function isRefreshNeeded(bool $force) : bool
{
//====================================================================//
// Forced Refresh
if ($force) {
return true;
}
//====================================================================//
// Compute Refresh Limit
$refreshLimit = new DateTime("-".Configuration::getWorkerRefreshDelay()." Seconds");
$lastSeen = $this->worker->getLastSeen();
//====================================================================//
// LastSeen Outdated => Refresh Needed
return ($lastSeen->getTimestamp() < $refreshLimit->getTimestamp());
}
//==============================================================================
// PROTECTED - Worker CRUD
//==============================================================================
/**
* Create a new Worker Object for this Process
*
* @param int $processId Worker Process Id
*
* @return Worker
*/
private function create(int $processId = 0): Worker
{
//====================================================================//
// Load Current Server Infos
$system = posix_uname();
//====================================================================//
// Create Worker Object
$worker = new Worker();
//====================================================================//
// Populate Worker Object
/** @var scalar $serverIp */
$serverIp = filter_input(INPUT_SERVER, "SERVER_ADDR");
$worker->setPid((int) getmypid());
$worker->setProcess($processId);
$worker->setNodeName(is_array($system) ? $system["nodename"] : "Unknown");
$worker->setNodeIp((string) $serverIp);
$worker->setNodeInfos(is_array($system) ? $system["version"] : "0.0.0");
$worker->setLastSeen(new DateTime());
//====================================================================//
// Persist Worker Object to Database
Configuration::getEntityManager()->persist($worker);
Configuration::getEntityManager()->flush();
return $worker;
}
//==============================================================================
// PRIVATE - Supervisor Verifications
//==============================================================================
/**
* Check Supervisor is Running on this machine
* ==> Start a Supervisor Process if needed
*
* @throws Exception
*
* @return bool
*/
private function checkLocalSupervisorIsRunning() : bool
{
//====================================================================//
// Load Local Machine Supervisor
$supervisor = Configuration::getWorkerRepository()->findOneByProcess(0);
//====================================================================//
// Supervisor Exists
if ($supervisor instanceof Worker) {
//====================================================================//
// Supervisor Is Running
if (!$supervisor->isEnabled() || $supervisor->isRunning()) {
//====================================================================//
// YES => Exit
$this->logger->info("Worker Manager: Local Supervisor is Running or Disabled");
return true;
}
}
//====================================================================//
// NO => Start Supervisor Process
$this->logger->notice("Worker Manager: Local Supervisor not Running");
return $this->process->start(ProcessManager::SUPERVISOR);
}
/**
* Check All Available Supervisor are Running on All machines
*
* @param Worker $supervisor
*
* @return bool
*/
private function checkRemoteSupervisorsAreRunning(Worker $supervisor): bool
{
//====================================================================//
// Refresh From DataBase
Configuration::getEntityManager()->refresh($supervisor);
//====================================================================//
// If Supervisor Is NOT Running
if ($supervisor->isRunning() || !Configuration::isMultiServer()) {
return true;
}
//====================================================================//
// Send REST Request to Start
$url = "http://".$supervisor->getNodeIp().Configuration::getMultiServerPath();
//====================================================================//
// Send REST Request to Start
$request = curl_init($url);
if (false === $request) {
return false;
}
curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
curl_setopt($request, CURLOPT_HEADER, 0);
curl_setopt($request, CURLOPT_CONNECTTIMEOUT, 1);
curl_exec($request);
curl_close($request);
return true;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.