Пример #1
0
 public function Is_Enabled()
 {
     if (!DataEngine::CheckPermsKey('ZZZ_COMMERCE_INDEX')) {
         DataEngine::CheckPermsKeyAdd('ZZZ_COMMERCE_INDEX', AXX_MEMBER);
     }
     if (!DataEngine::CheckPermsKey('ZZZ_COMMERCE_MODULES')) {
         DataEngine::CheckPermsKeyAdd('ZZZ_COMMERCE_MODULES', AXX_MEMBER);
     }
     if (!DataEngine::CheckPermsKey('ZZZ_COMMERCE_VENTES')) {
         DataEngine::CheckPermsKeyAdd('ZZZ_COMMERCE_VENTES', AXX_MEMBER);
     }
     if (!DataEngine::CheckPermsKey('ZZZ_COMMERCE_TPL_INSERT')) {
         DataEngine::CheckPermsKeyAdd('ZZZ_COMMERCE_TPL_INSERT', AXX_MEMBER);
     }
     if (!DataEngine::CheckPermsKey('ZZZ_COMMERCE_TPL_EDIT')) {
         DataEngine::CheckPermsKeyAdd('ZZZ_COMMERCE_TPL_EDIT', AXX_MEMBER);
     }
     if (!DataEngine::CheckPermsKey('ZZZ_COMMERCE_TPL_DELETE')) {
         DataEngine::CheckPermsKeyAdd('ZZZ_COMMERCE_TPL_DELETE', AXX_MEMBER);
     }
     if (!DataEngine::CheckPermsKey('ZZZ_COMMERCE_GESTION')) {
         DataEngine::CheckPermsKeyAdd('ZZZ_COMMERCE_GESTION', AXX_MEMBER);
     }
     if (!DataEngine::CheckPermsKey('ZZZ_COMMERCE_STATS')) {
         DataEngine::CheckPermsKeyAdd('ZZZ_COMMERCE_STATS', AXX_MEMBER);
     }
     if (!DataEngine::CheckPermsKey('ZZZ_COMMERCE_PREF')) {
         DataEngine::CheckPermsKeyAdd('ZZZ_COMMERCE_PREF', AXX_MEMBER);
     }
     if (!DataEngine::CheckPermsKey('ZZZ_COMMERCE_IMPORT')) {
         DataEngine::CheckPermsKeyAdd('ZZZ_COMMERCE_IMPORT', AXX_MEMBER);
     }
     return true;
 }