├── assets ├── ispconfig.ico ├── ispconfig.png ├── codeigniter-ispconfig.png └── ispconfig.css ├── application ├── views │ └── ispconfig │ │ ├── index.html │ │ └── remote_api.php ├── config │ └── ispconfig.php └── controller │ └── Remote_api.php ├── .gitignore ├── README.md └── readme.html /assets/ispconfig.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/natanfelles/codeigniter-ispconfig/master/assets/ispconfig.ico -------------------------------------------------------------------------------- /assets/ispconfig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/natanfelles/codeigniter-ispconfig/master/assets/ispconfig.png -------------------------------------------------------------------------------- /assets/codeigniter-ispconfig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/natanfelles/codeigniter-ispconfig/master/assets/codeigniter-ispconfig.png -------------------------------------------------------------------------------- /application/views/ispconfig/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/config/ispconfig.php: -------------------------------------------------------------------------------- 1 | load->helper('url'); 21 | $this->load->library('ispconfig'); 22 | } 23 | 24 | /** 25 | * Do your tests here 26 | */ 27 | public function index() 28 | { 29 | $data['response'] = $this->ispconfig->client_get(1); 30 | $this->load->view('ispconfig/remote_api', $data); 31 | } 32 | 33 | public function config() 34 | { 35 | $data['response'] = $this->ispconfig->get_config(); 36 | $this->load->view('ispconfig/remote_api', $data); 37 | } 38 | 39 | public function function_list() 40 | { 41 | $data['response'] = $this->ispconfig->get_function_list(); 42 | $this->load->view('ispconfig/remote_api', $data); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /readme.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ISPConfig 3 Remote API 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 |
15 | 18 |
19 | 20 |
21 |

About

22 |

23 | This files enables you to use the ISPConfig 3 Remote API with the CodeIgniter Framework 24 |

25 |

How to use

26 |
    27 |
  1. Put all files inside your project folder
  2. 28 |
  3. Configure the file application/config/ispconfig.php with your preferences
  4. 29 |
  5. Go to your Site Url /remote_api path and see the responses
  6. 30 |
  7. Development tests can be done in application/controllers/Remote_api.php
  8. 31 |
32 |

Contact

33 |

34 | Report bugs and opinion to natanfelles@gmail.com 35 |

36 |
37 | 38 |
39 | ISPConfig Remote API to CodeIgniter by Natan Felles 40 |
41 | 42 |
43 | 44 | 45 | -------------------------------------------------------------------------------- /assets/ispconfig.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: 'Arial', Helvetica, sans-serif; 3 | font-size: 14px; 4 | background: #fff; 5 | color: #666; 6 | margin: 0; 7 | } 8 | 9 | .container { 10 | margin: 5px auto; 11 | width: 800px; 12 | } 13 | 14 | .logo { 15 | background: url("ispconfig.png") no-repeat; 16 | width: 220px; 17 | height: 78px; 18 | float: left; 19 | } 20 | 21 | .pages { 22 | float: left; 23 | width: 580px; 24 | height: 78px; 25 | text-align: right; 26 | } 27 | 28 | .pages ul { 29 | padding-top: 18px; 30 | } 31 | 32 | .pages ul li { 33 | list-style: none; 34 | display: inline; 35 | } 36 | 37 | .pages ul li a { 38 | text-decoration: none; 39 | color: #666; 40 | border: 1px solid #d5d5d5; 41 | background: #f5f5f5; 42 | padding: 5px 12px; 43 | margin-left: 5px; 44 | } 45 | 46 | .pages ul li a:hover { 47 | background: #e5e5e5; 48 | } 49 | 50 | .response { 51 | float: left; 52 | padding: 12px; 53 | width: 774px; 54 | border: 1px solid #d5d5d5; 55 | background: #f5f5f5; 56 | } 57 | 58 | .response h2 { 59 | margin: 0; 60 | } 61 | 62 | .response pre { 63 | font-family: 'Source Code Pro', monospace; 64 | font-size: 12px; 65 | color: #222; 66 | margin: 25px 0 25px 10px; 67 | overflow: auto; 68 | } 69 | 70 | .bottom { 71 | float: left; 72 | width: 100%; 73 | text-align: right; 74 | margin: 18px 0 50px 0; 75 | } 76 | 77 | .bottom a { 78 | text-decoration: none; 79 | color: #666; 80 | } 81 | 82 | .bottom a:hover { 83 | color: #cc141b; 84 | } 85 | -------------------------------------------------------------------------------- /application/views/ispconfig/remote_api.php: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | ISPConfig 3 Remote API 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 |
30 | 35 |
36 | 37 |
38 |

Response:

39 |
40 | Elapsed Time: {elapsed_time} - Memory Usage: {memory_usage} 41 |
42 | 43 |
44 | ISPConfig Remote API to CodeIgniter by Natan Felles 45 |
46 | 47 |
48 | 49 | 50 | --------------------------------------------------------------------------------