@@ -24,6 +24,7 @@ public static function getHooks() {
2424 self ::$ module .'.reactivate ' => [__CLASS__ , 'getReactivate ' ],
2525 self ::$ module .'.deactivate ' => [__CLASS__ , 'getDeactivate ' ],
2626 self ::$ module .'.terminate ' => [__CLASS__ , 'getTerminate ' ],
27+ 'function.requirements ' => [__CLASS__ , 'getRequirements ' ],
2728 'ui.menu ' => [__CLASS__ , 'getMenu ' ],
2829 ];
2930 }
@@ -493,18 +494,81 @@ function_requirements('has_acl');
493494
494495 public static function getRequirements (GenericEvent $ event ) {
495496 $ loader = $ event ->getSubject ();
496- $ loader ->add_requirement ('crud_cpanel_list ' , '/../vendor/detain/crud/src/crud/crud_cpanel_list.php ' );
497- $ loader ->add_requirement ('crud_reusable_cpanel ' , '/../vendor/detain/crud/src/crud/crud_reusable_cpanel.php ' );
498- $ loader ->add_requirement ('get_cpanel_licenses ' , '/../vendor/detain/myadmin-cpanel-webhosting/src/cpanel.inc.php ' );
499- $ loader ->add_requirement ('get_cpanel_list ' , '/../vendor/detain/myadmin-cpanel-webhosting/src/cpanel.inc.php ' );
500- $ loader ->add_requirement ('cpanel_licenses_list ' , '/../vendor/detain/myadmin-cpanel-webhosting/src/cpanel_licenses_list.php ' );
501- $ loader ->add_requirement ('cpanel_list ' , '/../vendor/detain/myadmin-cpanel-webhosting/src/cpanel_list.php ' );
502- $ loader ->add_requirement ('get_available_cpanel ' , '/../vendor/detain/myadmin-cpanel-webhosting/src/cpanel.inc.php ' );
503- $ loader ->add_requirement ('activate_cpanel ' , '/../vendor/detain/myadmin-cpanel-webhosting/src/cpanel.inc.php ' );
504- $ loader ->add_requirement ('get_reusable_cpanel ' , '/../vendor/detain/myadmin-cpanel-webhosting/src/cpanel.inc.php ' );
505- $ loader ->add_requirement ('reusable_cpanel ' , '/../vendor/detain/myadmin-cpanel-webhosting/src/reusable_cpanel.php ' );
506- $ loader ->add_requirement ('class.Cpanel ' , '/../vendor/detain/cpanel-webhosting/src/Cpanel.php ' );
507- $ loader ->add_requirement ('vps_add_cpanel ' , '/vps/addons/vps_add_cpanel.php ' );
497+ $ loader ->add_requirement ('whm_get_accounts ' , '/webhosting/whmapi.functions.inc.php ' );
498+ $ loader ->add_requirement ('whm_api ' , '/webhosting/whmapi.functions.inc.php ' );
499+ $ loader ->add_requirement ('whm_choose_server ' , '/webhosting/whmapi.functions.inc.php ' );
500+ $ loader ->add_requirement ('whm_createacct ' , '/webhosting/whmapi.functions.inc.php ' );
501+ $ loader ->add_requirement ('whm_passwd ' , '/webhosting/whmapi.functions.inc.php ' );
502+ $ loader ->add_requirement ('whm_limitbw ' , '/webhosting/whmapi.functions.inc.php ' );
503+ $ loader ->add_requirement ('whm_listaccts ' , '/webhosting/whmapi.functions.inc.php ' );
504+ $ loader ->add_requirement ('whm_modifyacct ' , '/webhosting/whmapi.functions.inc.php ' );
505+ $ loader ->add_requirement ('whm_editquota ' , '/webhosting/whmapi.functions.inc.php ' );
506+ $ loader ->add_requirement ('whm_accountsummary ' , '/webhosting/whmapi.functions.inc.php ' );
507+ $ loader ->add_requirement ('whm_suspendacct ' , '/webhosting/whmapi.functions.inc.php ' );
508+ $ loader ->add_requirement ('whm_listsuspended ' , '/webhosting/whmapi.functions.inc.php ' );
509+ $ loader ->add_requirement ('whm_removeacct ' , '/webhosting/whmapi.functions.inc.php ' );
510+ $ loader ->add_requirement ('whm_unsuspendacct ' , '/webhosting/whmapi.functions.inc.php ' );
511+ $ loader ->add_requirement ('whm_changepackage ' , '/webhosting/whmapi.functions.inc.php ' );
512+ $ loader ->add_requirement ('whm_myprivs ' , '/webhosting/whmapi.functions.inc.php ' );
513+ $ loader ->add_requirement ('whm_domainuserdata ' , '/webhosting/whmapi.functions.inc.php ' );
514+ $ loader ->add_requirement ('whm_setsiteip ' , '/webhosting/whmapi.functions.inc.php ' );
515+ $ loader ->add_requirement ('whm_restoreaccount ' , '/webhosting/whmapi.functions.inc.php ' );
516+ $ loader ->add_requirement ('whm_adddns ' , '/webhosting/whmapi.functions.inc.php ' );
517+ $ loader ->add_requirement ('whm_addzonerecord ' , '/webhosting/whmapi.functions.inc.php ' );
518+ $ loader ->add_requirement ('whm_editzonerecord ' , '/webhosting/whmapi.functions.inc.php ' );
519+ $ loader ->add_requirement ('whm_getzonerecord ' , '/webhosting/whmapi.functions.inc.php ' );
520+ $ loader ->add_requirement ('whm_killdns ' , '/webhosting/whmapi.functions.inc.php ' );
521+ $ loader ->add_requirement ('whm_listzones ' , '/webhosting/whmapi.functions.inc.php ' );
522+ $ loader ->add_requirement ('whm_dumpzone ' , '/webhosting/whmapi.functions.inc.php ' );
523+ $ loader ->add_requirement ('whm_lookupnsip ' , '/webhosting/whmapi.functions.inc.php ' );
524+ $ loader ->add_requirement ('whm_removezonerecord ' , '/webhosting/whmapi.functions.inc.php ' );
525+ $ loader ->add_requirement ('whm_resetzone ' , '/webhosting/whmapi.functions.inc.php ' );
526+ $ loader ->add_requirement ('whm_resolvedomainname ' , '/webhosting/whmapi.functions.inc.php ' );
527+ $ loader ->add_requirement ('whm_listmxs ' , '/webhosting/whmapi.functions.inc.php ' );
528+ $ loader ->add_requirement ('whm_savemxs ' , '/webhosting/whmapi.functions.inc.php ' );
529+ $ loader ->add_requirement ('whm_addpkg ' , '/webhosting/whmapi.functions.inc.php ' );
530+ $ loader ->add_requirement ('whm_killpkg ' , '/webhosting/whmapi.functions.inc.php ' );
531+ $ loader ->add_requirement ('whm_editpkg ' , '/webhosting/whmapi.functions.inc.php ' );
532+ $ loader ->add_requirement ('whm_listpkgs ' , '/webhosting/whmapi.functions.inc.php ' );
533+ $ loader ->add_requirement ('whm_getfeaturelist ' , '/webhosting/whmapi.functions.inc.php ' );
534+ $ loader ->add_requirement ('whm_setupreseller ' , '/webhosting/whmapi.functions.inc.php ' );
535+ $ loader ->add_requirement ('whm_saveacllist ' , '/webhosting/whmapi.functions.inc.php ' );
536+ $ loader ->add_requirement ('whm_listacls ' , '/webhosting/whmapi.functions.inc.php ' );
537+ $ loader ->add_requirement ('whm_listresellers ' , '/webhosting/whmapi.functions.inc.php ' );
538+ $ loader ->add_requirement ('whm_resellerstats ' , '/webhosting/whmapi.functions.inc.php ' );
539+ $ loader ->add_requirement ('whm_unsetupreseller ' , '/webhosting/whmapi.functions.inc.php ' );
540+ $ loader ->add_requirement ('whm_setacls ' , '/webhosting/whmapi.functions.inc.php ' );
541+ $ loader ->add_requirement ('whm_terminatereseller ' , '/webhosting/whmapi.functions.inc.php ' );
542+ $ loader ->add_requirement ('whm_setresellerips ' , '/webhosting/whmapi.functions.inc.php ' );
543+ $ loader ->add_requirement ('whm_setresellerlimits ' , '/webhosting/whmapi.functions.inc.php ' );
544+ $ loader ->add_requirement ('whm_setresellermainip ' , '/webhosting/whmapi.functions.inc.php ' );
545+ $ loader ->add_requirement ('whm_setresellerpackagelimit ' , '/webhosting/whmapi.functions.inc.php ' );
546+ $ loader ->add_requirement ('whm_suspendreseller ' , '/webhosting/whmapi.functions.inc.php ' );
547+ $ loader ->add_requirement ('whm_unsuspendreseller ' , '/webhosting/whmapi.functions.inc.php ' );
548+ $ loader ->add_requirement ('whm_acctcounts ' , '/webhosting/whmapi.functions.inc.php ' );
549+ $ loader ->add_requirement ('whm_setresellernameservers ' , '/webhosting/whmapi.functions.inc.php ' );
550+ $ loader ->add_requirement ('whm_gethostname ' , '/webhosting/whmapi.functions.inc.php ' );
551+ $ loader ->add_requirement ('whm_version ' , '/webhosting/whmapi.functions.inc.php ' );
552+ $ loader ->add_requirement ('whm_loadavg ' , '/webhosting/whmapi.functions.inc.php ' );
553+ $ loader ->add_requirement ('whm_getdiskusage ' , '/webhosting/whmapi.functions.inc.php ' );
554+ $ loader ->add_requirement ('whm_systemloadavg ' , '/webhosting/whmapi.functions.inc.php ' );
555+ $ loader ->add_requirement ('whm_getlanglist ' , '/webhosting/whmapi.functions.inc.php ' );
556+ $ loader ->add_requirement ('whm_reboot ' , '/webhosting/whmapi.functions.inc.php ' );
557+ $ loader ->add_requirement ('whm_addip ' , '/webhosting/whmapi.functions.inc.php ' );
558+ $ loader ->add_requirement ('whm_delip ' , '/webhosting/whmapi.functions.inc.php ' );
559+ $ loader ->add_requirement ('whm_listips ' , '/webhosting/whmapi.functions.inc.php ' );
560+ $ loader ->add_requirement ('whm_sethostname ' , '/webhosting/whmapi.functions.inc.php ' );
561+ $ loader ->add_requirement ('whm_setresolvers ' , '/webhosting/whmapi.functions.inc.php ' );
562+ $ loader ->add_requirement ('whm_showbw ' , '/webhosting/whmapi.functions.inc.php ' );
563+ $ loader ->add_requirement ('whm_nvset ' , '/webhosting/whmapi.functions.inc.php ' );
564+ $ loader ->add_requirement ('whm_nvget ' , '/webhosting/whmapi.functions.inc.php ' );
565+ $ loader ->add_requirement ('whm_restartservice ' , '/webhosting/whmapi.functions.inc.php ' );
566+ $ loader ->add_requirement ('whm_servicestatus ' , '/webhosting/whmapi.functions.inc.php ' );
567+ $ loader ->add_requirement ('whm_configureservice ' , '/webhosting/whmapi.functions.inc.php ' );
568+ $ loader ->add_requirement ('whm_fetchsslinfo ' , '/webhosting/whmapi.functions.inc.php ' );
569+ $ loader ->add_requirement ('whm_generatessl ' , '/webhosting/whmapi.functions.inc.php ' );
570+ $ loader ->add_requirement ('whm_installssl ' , '/webhosting/whmapi.functions.inc.php ' );
571+ $ loader ->add_requirement ('whm_listcrts ' , '/webhosting/whmapi.functions.inc.php ' );
508572 }
509573
510574 public static function getSettings (GenericEvent $ event ) {
0 commit comments