Leaderboard


Popular Content

Showing content with the highest reputation on 09/26/20 in all areas

  1. 1 point
    Тогда еще это добавьте protected function setAdvAbonent($id, $user_id = 0){ if ( $user_id === 0 ) { $user_id = $this->getSessionUserId(); } if ($this->getConfigValue('apps.billing.enable')) { if (file_exists(SITEBILL_DOCUMENT_ROOT . '/apps/tariff/tariff.xml') and $this->getConfigValue('apps.tariff.enable') and file_exists(SITEBILL_DOCUMENT_ROOT . '/apps/billing/billing.xml')) { require_once(SITEBILL_DOCUMENT_ROOT . '/apps/billing/lib/billing.php'); $billing = new Billing(); $billing->setAdvAbonentState($user_id, $id); } } }
  2. 1 point
    Добавьте такой метод туда public function checkAdvAbonent($user_id = 0, $id = 0) { if ( $user_id === 0 ) { $user_id = $this->getSessionUserId(); } if ( file_exists(SITEBILL_DOCUMENT_ROOT . '/apps/billing/lib/billing.php') ) { require_once(SITEBILL_DOCUMENT_ROOT . '/apps/billing/lib/billing.php'); $billing = new Billing(); return $billing->checkAdvAbonent($user_id, $id); } return true; }