| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/dcb/application/controllers/ |
Upload File : |
<?php
/* * *************************************************************
* Catabatic Technology Pvt. Ltd.
* File Name :IndexController.php
* File Description :Index controller for manage home page
* Created By : Praveen Kumar
* Created Date: 10-September-2014
* ************************************************************* */
class DeviceDetectController extends Zend_Controller_Action {
public function init() {
// $aConfig = $this->getInvokeArg('bootstrap')->getOptions();
// $this->deviceBasePath = $aConfig['deviceBasePath'];
// require_once $this->deviceBasePath.'library/Catabatic/MobileDetect.php';
// $this->mobile_detect = new Catabatic_MobileDetect();
}
public function indexAction() {
//Detect special conditions devices
$iPod = stripos($_SERVER['HTTP_USER_AGENT'], "iPod");
$iPhone = stripos($_SERVER['HTTP_USER_AGENT'], "iPhone");
$iPad = stripos($_SERVER['HTTP_USER_AGENT'], "iPad");
$Android = stripos($_SERVER['HTTP_USER_AGENT'], "Android");
//do something with this information
if ($iPod || $iPhone) {
$url = "https://itunes.apple.com/in/app/dcb-bank-mobile-banking-app/id853661430?mt=8";
} else if ($iPad) {
$url = "https://itunes.apple.com/in/app/dcb-bank-mobile-banking-app/id853661430?mt=8";
} else if ($Android) {
$url = "https://play.google.com/store/apps/details?id=com.dcb";
} else {
$url = "http://www.dcbbank.com/dcb-app-banking";
}
$this->_redirect($url);exit;
}
public function urlAction() {
// echo "echo"; exit;
//Detect special conditions devices
$iPod = stripos($_SERVER['HTTP_USER_AGENT'], "iPod");
$iPhone = stripos($_SERVER['HTTP_USER_AGENT'], "iPhone");
$iPad = stripos($_SERVER['HTTP_USER_AGENT'], "iPad");
$Android = stripos($_SERVER['HTTP_USER_AGENT'], "Android");
//do something with this information
if ($iPod || $iPhone) {
$url = "https://itunes.apple.com/in/app/cippy/id1191324277?mt=8";
} else if ($iPad) {
$url = "https://itunes.apple.com/in/app/cippy/id1191324277?mt=8";
} else if ($Android) {
$url = "https://play.google.com/store/apps/details?id=com.cippy.cippywallet&hl=en";
} else {
$url = "https://play.google.com/store/apps/details?id=com.cippy.cippywallet&hl=en";
}
$this->_redirect($url);exit;
}
public function urlaAction() {
// echo "echo"; exit;
//Detect special conditions devices
$iPod = stripos($_SERVER['HTTP_USER_AGENT'], "iPod");
$iPhone = stripos($_SERVER['HTTP_USER_AGENT'], "iPhone");
$iPad = stripos($_SERVER['HTTP_USER_AGENT'], "iPad");
$Android = stripos($_SERVER['HTTP_USER_AGENT'], "Android");
//do something with this information
if ($iPod || $iPhone) {
$url = "https://itunes.apple.com/in/app/bhim-dcb-bank-upi/id1321797289?mt=8";
} else if ($iPad) {
$url = "https://itunes.apple.com/in/app/bhim-dcb-bank-upi/id1321797289?mt=8";
} else if ($Android) {
$url = "https://play.google.com/store/apps/details?id=com.olive.dcb.upi&hl=en";
} else {
$url = "https://play.google.com/store/apps/details?id=com.olive.dcb.upi&hl=en";
}
$this->_redirect($url);exit;
}
}