Welcome, Guest
Username Password: Remember me

TeraWurflDatabase_MySQL5.php on line 359
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: TeraWurflDatabase_MySQL5.php on line 359

Re: TeraWurflDatabase_MySQL5.php on line 359 12 years, 11 months ago #6627

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
Looks like correct code should read
<?php
defined('_JEXEC') OR die("Restricted access");
$lang =& JFactory::getLanguage();
$lng=substr($lang->getName(),0,2);
$db =& JFactory::getDBO();
require_once './plugins/mobile/terawurfl/TeraWurfl.php';
$width = 0;
try
{
  $wurflObj = new TeraWurfl();
  if($wurflObj->db->connected)
  {
    $wurflObj->getDeviceCapabilitiesFromAgent();
    $width = $wurflObj->getDeviceCapability("resolution_width");
  }
}
catch(Exception $e){}
//...?>


PS. And TeraWurflConfig.php should contain correct settings (db credentials, etc.).
Last Edit: 12 years, 11 months ago by dryabov.

Re: TeraWurflDatabase_MySQL5.php on line 359 12 years, 11 months ago #6640

  • dididounet
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Stupid stupid stupid me !!! forgot that an upgrade writes over the configuration.
OK ignore everything. sorry to waste your time
  • Page:
  • 1
  • 2
Time to create page: 0.11 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.