feedback.php 806 B

12345678910111213141516171819
  1. <?php
  2. define('IN_WEB', true);
  3. $sid = (isset($_REQUEST['sid']) == false) ? 1 : $_REQUEST['sid'];
  4. $lid = (isset($_REQUEST['lid']) == false) ? 1 : $_REQUEST['lid'];
  5. include_once dirname(__FILE__) . "/../com.php";
  6. $uid = $_REQUEST['uid'] ?? 1;
  7. $type = oo::functions()->uint($_REQUEST['type']);
  8. $desc = oo::functions()->escape($_REQUEST['desc']);
  9. $img = oo::functions()->escape($_REQUEST['img']);
  10. $macid = oo::functions()->escape($_REQUEST['macid']);
  11. $version = oo::functions()->escape($_REQUEST['version']);
  12. $network = oo::functions()->uint($_REQUEST['network']);
  13. $param = array('uid' => $uid, 'sid' => $sid, 'type' => $type, 'desc' => $desc, 'img' => $img, 'macid' => $macid, 'version'=>$version, 'network'=>$network);
  14. $data = oo::commonOprModel('feedback')->usersubmit($param);
  15. die( json_encode($data) );