Notice (8): Undefined variable: ub [APP/Controller/AppController.php, line 602]Code Context
// finally get the correct version number
$known = array('Version', $ub, 'other');
$u_agent = 'CCBot/2.0 (https://commoncrawl.org/faq/)'
$bname = 'Unknown'
$platform = 'Unknown'
$version = ''
AppController::getBrowser() - APP/Controller/AppController.php, line 602
AppController::beforeFilter() - APP/Controller/AppController.php, line 136
ListformasController::beforeFilter() - APP/Controller/ListformasController.php, line 12
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 243
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 677
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 189
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 111
Notice (8): Undefined variable: ub [APP/Controller/AppController.php, line 614]Code Context //we will have two since we are not using 'other' argument yet
//see if version is before or after the name
if (strripos($u_agent,"Version") < strripos($u_agent,$ub)){
$u_agent = 'CCBot/2.0 (https://commoncrawl.org/faq/)'
$bname = 'Unknown'
$platform = 'Unknown'
$version = ''
$known = array(
(int) 0 => 'Version',
(int) 1 => null,
(int) 2 => 'other'
)
$pattern = '#(?<browser>Version||other)[/ ]+(?<version>[0-9.|a-zA-Z.]*)#'
$matches = array(
(int) 0 => array(
(int) 0 => '/2.0',
(int) 1 => '',
(int) 2 => '//commoncrawl.org',
(int) 3 => '/faq',
(int) 4 => '/'
),
'browser' => array(
(int) 0 => '',
(int) 1 => '',
(int) 2 => '',
(int) 3 => '',
(int) 4 => ''
),
(int) 1 => array(
(int) 0 => '',
(int) 1 => '',
(int) 2 => '',
(int) 3 => '',
(int) 4 => ''
),
'version' => array(
(int) 0 => '2.0',
(int) 1 => '',
(int) 2 => 'commoncrawl.org',
(int) 3 => 'faq',
(int) 4 => ''
),
(int) 2 => array(
(int) 0 => '2.0',
(int) 1 => '',
(int) 2 => 'commoncrawl.org',
(int) 3 => 'faq',
(int) 4 => ''
)
)
$i = (int) 5
AppController::getBrowser() - APP/Controller/AppController.php, line 614
AppController::beforeFilter() - APP/Controller/AppController.php, line 136
ListformasController::beforeFilter() - APP/Controller/ListformasController.php, line 12
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 243
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 677
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 189
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 111