+ $i->is_active = 1;
+ switch($s) {
+ case 'Lang':
+
+
+ $i->ltype = 'l';
+ $i->applyFilters($_REQUEST, $this->authUser, $this);
+ $this->jdata($i->toTransList('l', implode('_',$lbits)));
+ break;
+
+ case 'Country':
+ $i->ltype = 'c';
+ $i->applyFilters($_REQUEST, $this->authUser, $this);
+ $this->jdata($i->toTransList('c', implode('_',$lbits)));
+
+ break;
+
+ case 'Currency':
+ $i->ltype = 'm';
+ $i->applyFilters($_REQUEST, $this->authUser, $this);
+ $this->jdata($i->toTransList('m', implode('_',$lbits)));
+ break;
+
+ case 'Timezone':
+ $ar = DateTimeZone::listAbbreviations();
+ $ret = array();
+ $tza = array();
+ foreach($ar as $tl => $sar) {
+ foreach($sar as $tz) {
+ $tza[] = $tz['timezone_id'];
+
+ }
+ }
+ $tza= array_unique($tza);
+ sort($tza);
+ foreach($tza as $tz) {
+ //filtering..
+ if (empty($_REQUEST['q']) ||
+ 0 === strcasecmp(
+ substr($tz,0, strlen($_REQUEST['q'])),
+ $_REQUEST['q'])
+ ) {
+ $ret[] = array('tz' => $tz);
+ }
+
+ }
+ $this->jdata($ret);
+
+
+
+
+
+ }
+ if (!empty($_REQUEST['debug'])) {
+ DB_DataObject::debugLevel(1);
+ }