403Webshell
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/library/Catabatic/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/dcb/library/Catabatic/Helper.php
<?php
class Catabatic_Helper
{

    static public function findUrl($cityId, $dealId, $headline)
    {
        $browse = array("_", "~", "'", "@", "#", "$", "%", "^", "&", "*", "/", ";", ",", "|", "(", ")", "/", "\\");
        $page_alias_name = strtolower(str_replace(" ", "-", str_replace($browse, "", substr($headline, 0, 50))));
        $page = $page_alias_name . "-" . "-" . $cityId . ".html";
        return $page;
    }

    static public function getSiteUrl()
    {

        $options = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getOption('bootstrap');

        /*  if (isset($_SERVER["HTTPS"]) == "on") {
            $options["siteUrl"] = str_replace("http", "http", $options["siteUrl"]);
        } */

        return $options["siteUrl"];
    }

    static public function getSiteUrlSecure()
    {
        $options = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getOption('bootstrap');
        return $options["siteUrlSecure"];
    }

    static public function getBaseSecure()
    {
        $options = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getOption('bootstrap');
        return $options["baseSecure"];
    }

    static public function getUserId()
    {
        return Customer_Model_Login::getIdentity()->customer_id;
    }

    static public function getUserName()
    {
        return Customer_Model_Login::getIdentity()->customer_firstname;
    }

    static public function getAdminEmail()
    {
        $options = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getOption('bootstrap');
        return $options["adminEmail"];
    }

    static public function getSuperAdminEmail()
    {
        $options = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getOption('bootstrap');
        return $options["superAdminEmail"];
    }

    static public function getSalesAdminId()
    {
        return Sales_Model_Login::getIdentity()->user_id;
    }

    static public function getSuperAdminId()
    {
        return Admin_Model_Login::getIdentity()->user_id;
    }

    static public function getDefaultCityId()
    {
        $options = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getOption('bootstrap');
        return $options["DefaultCityId"];
    }

    static public function getMailChimpDetails()
    {
        $mailChimp = array();
        $options = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getOption('bootstrap');
        $mailChimp["MailChimpApi"] = $options["MailChimpApi"];
        $mailChimp["MailChimpUniqueId"] = $options["MailChimpUniqueId"];
        return $mailChimp;
    }

    static public function getSupportDetails()
    {
        $support = array();
        $options = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getOption('bootstrap');
        $support["supportMail"] = $options["supportMail"];
        $support["supportUrl"] = $options["supportUrl"];
        return $support;
    }

    static public function getFaqsCounts($PageId)
    {
        $faqsModel = new Admin_Model_Faq();
        $count = $faqsModel->LandingPageFaq($PageId);
        return $count;
    }

    static public function getwhychooseusCounts($PageId)
    {
        $whychooseusModel = new Admin_Model_Whychooseus();
        $count = $whychooseusModel->LandingPagewhychooseus($PageId);
        return $count;
    }

    static public function getBannerCounts($PageId)
    {
        $BannerModel = new Admin_Model_Banner();
        $count = $BannerModel->LandingPageBanner($PageId);
        return $count;
    }

    static public function getDepositratesCounts($PageId)
    {
        $DepositratesModel = new Admin_Model_Depositrates();
        $count = $DepositratesModel->LandingPageDepositrates($PageId);
        return $count;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit