You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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