1: | <?php |
2: | declare(strict_types=1); |
3: | /** |
4: | * +------------------------------------------------------------+ |
5: | * | apnscp | |
6: | * +------------------------------------------------------------+ |
7: | * | Copyright (c) Apis Networks | |
8: | * +------------------------------------------------------------+ |
9: | * | Licensed under Artistic License 2.0 | |
10: | * +------------------------------------------------------------+ |
11: | * | Author: Matt Saladna (msaladna@apisnetworks.com) | |
12: | * +------------------------------------------------------------+ |
13: | */ |
14: | |
15: | /** |
16: | * Version control, CVS and subversion |
17: | * |
18: | * @package core |
19: | */ |
20: | class Verco_Module extends Module_Skeleton |
21: | { |
22: | |
23: | protected $exportedFunctions = [ |
24: | '*' => PRIVILEGE_SITE |
25: | ]; |
26: | |
27: | |
28: | /** |
29: | * bool svn_enabled |
30: | * Checks to see if Subversion is enabled for an account |
31: | * |
32: | * @return bool |
33: | */ |
34: | public function svn_enabled(): bool |
35: | { |
36: | return $this->ssh_enabled() && file_exists($this->domain_fs_path() . '/usr/bin/svn'); |
37: | } |
38: | |
39: | |
40: | } |
41: |