Commit 70cb390d authored by Andrey Filippov's avatar Andrey Filippov

added call arguments

parent 8d3e1fea
<?php
$phone_ip= "http://192.168.7.222";
$phone_ip= "192.168.7.222";
$phone_port= "8123";
$phone_url = $phone_ip.":".$phone_port;
$log_file = fopen("/home/eyesis/git/motosat/attic/logs/phone07.log","w");
$log_dir = dirname(get_included_files()[0])."/logs"; // "/home/eyesis/git/motosat/attic/logs/";
$log_name = "phone07.log";
if (isset($_GET["ip"])) { $phone_ip = myfval($_GET["ip"]);}
if (isset($_GET["log_dir"])) { $log_dir = myfval($_GET["log_dir"]);}
if (isset($_GET["log_name"])) { $log_name = myfval($_GET["log_name"]);}
$phone_url = "http://".$phone_ip.":".$phone_port;
$log_file = fopen(trim($log_dir,"/")."/".$log_name,"w");
$ts_l = 14;
$acc_l = 35;
$mag_l = 35;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment