PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
plugins
/
vxcash
/
admin
<?php /** * Created by PhpStorm. * User: te * Date: 03.03.2016 * Time: 16:33 */ class Vxcash_Config { /** * @var null|self */ protected static $_instance; /** * @var null|array */ protected static $info; /** * Vxcash_Config constructor. */ private function __construct() {} /** * */ private function __clone() {} /** * @return Vxcash_Config */ public static function getInstance() { if (self::$_instance === null) { self::$_instance = new self; } return self::$_instance; } /** * @return int */ public function getWmid() { return (int) $this->getInfo('wmid', 0); } /** * @return string */ public function getCampaignId() { return $this->getInfo('campaignId', ''); } /** * @return string */ public function getVxCampaignId() { return $this->getInfo('vxCampaignId', $this->getCampaignId()); } /** * @return string */ public function getVxDirectLink() { return $this->getInfo('vxDirectLink', ''); } /** * @return string */ public function getPmCampaignId() { return $this->getInfo('pmCampaignId', $this->getCampaignId()); } /** * @return string */ public function getPornmeDomain() { return 'www.pornme.de'; } /** * @return string */ public function getBasCampaignId() { return $this->getInfo('basCampaignId', $this->getCampaignId()); } /** * @return string */ public function getPornDoeCampaignId() { return ''; } /** * @return string */ public function getResellerCampaignId() { return $this->getInfo('resellerCampaignId', $this->getCampaignId()); } /** * @return string */ public function getBasApiKey() { return $this->getInfo('basApiKey', ''); } /** * @return string */ public function getPornmeApiKey() { return ''; } /** * @return string */ public function getVisitxApiKey() { return $this->getInfo('vxApiKey', ''); } /** * @return int */ public function getPornmeMaxNum() { return 0; } /** * @return int */ public function getPorndoeMaxNum() { return 0; } /** * @return int */ public function getVxMaxNum() { return (int) $this->getInfo('vxMaxNum', 0); } /** * @return int */ public function getVxVideoMaxNum() { return (int) $this->getInfo('vxVideoMaxNum', 0); } /** * @return string */ public function getTwitter() { return $this->getInfo('vxTwitter', ''); } /** * @return string */ public function getFacebook() { return $this->getInfo('vxFacebook', ''); } /** * @return string */ public function getGooglePlus() { return $this->getInfo('vxGooglePlus', ''); } /** * Should * * @return string */ public function getLinkType() { return $this->getInfo('vxLinking', 'direkt'); } /** * @return string */ public function getDePhone() { return $this->getInfo('dePhone', '1'); } /** * @return string */ public function getAuPhone() { return $this->getInfo('auPhone', '1'); } /** * @return string */ public function getChPhone() { return $this->getInfo('chPhone', '1'); } /** * @return string */ public function getDeMobile() { return $this->getInfo('deMobile', '1'); } /** * @return string */ public function getSmartlink() { return $this->getInfo('smartlink', 'soft'); } public function getPopunder() { return $this->getInfo('popunder', '0'); } public function getExitIntent() { return $this->getInfo('exitintent', '0'); } public function getWebpush() { return $this->getInfo('webpush', '0'); } public function getCloseButton() { return $this->getInfo('closebutton', '0'); } public function getExitIntentTitle() { return $this->getInfo('exitintenttitle', 'STOP!'); } public function getExitIntentText() { return $this->getInfo('exitintenttext', 'Wir haben noch andere interessante Seiten für dich!'); } public function getExitIntentLinkText() { return $this->getInfo('exitintentlinktext', 'Jetzt ansehen!'); } /** * @param string $name * @param string $default * * @return mixed */ private function getInfo($name, $default) { $this->loadInfo(); if (isset(self::$info[$name])) { return self::$info[$name]; } return $default; } /** * */ private function loadInfo() { if (self::$info === null) { self::$info = get_option('vxcash'); } } }
[-] index.php
[edit]
[+]
js
[-] class-vxcash-debug-admin.php
[edit]
[-] class-vxcash-visitx-video-admin.php
[edit]
[-] class-vxcash-auto-import-dataprovider.php
[edit]
[-] class-vxcash-config.php
[edit]
[+]
partials
[-] class-vxcash-admin.php
[edit]
[-] class-vxcash-host-category-handler.php
[edit]
[-] class-vxcash-notifier.php
[edit]
[+]
..
[+]
css
[-] class-vxcash-visitx-host-admin.php
[edit]
[-] class-vxcash-visitx-graphql-client.php
[edit]
[-] class-vxcash-pornme-video-admin.php
[edit]
[-] class-vxcash-vx-dataprovider.php
[edit]