|
@@ -0,0 +1,39 @@
|
|
1
|
+<?php
|
|
2
|
+/**
|
|
3
|
+ * Created by PhpStorm.
|
|
4
|
+ * User: robin
|
|
5
|
+ * Date: 12/11/15
|
|
6
|
+ * Time: 1:08 AM
|
|
7
|
+ */
|
|
8
|
+
|
|
9
|
+namespace App\Http\Controller;
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+use App\Http\Business\OtherBusiness;
|
|
13
|
+use Luticate\Utils\LuBusiness;
|
|
14
|
+use Luticate\Utils\LuController;
|
|
15
|
+
|
|
16
|
+class OtherController extends LuController
|
|
17
|
+{
|
|
18
|
+ /**
|
|
19
|
+ * @return LuBusiness
|
|
20
|
+ */
|
|
21
|
+ protected function getBusiness()
|
|
22
|
+ {
|
|
23
|
+ return new OtherBusiness();
|
|
24
|
+ }
|
|
25
|
+
|
|
26
|
+ public function configApp($name = "", $domain = "", $username = "", $password = "", $https = "true")
|
|
27
|
+ {
|
|
28
|
+ $config = [
|
|
29
|
+ "Name" => strval($name),
|
|
30
|
+ "Domain" => strval($domain),
|
|
31
|
+ "Username" => strval($username),
|
|
32
|
+ "Password" => strval($password),
|
|
33
|
+ "Https" => ($https == "true")
|
|
34
|
+ ];
|
|
35
|
+ header("Location: camotion://autoconfig/?config=" . urlencode(json_encode($config)));
|
|
36
|
+ http_response_code(301);
|
|
37
|
+ exit;
|
|
38
|
+ }
|
|
39
|
+}
|