ちょっと理解できない小さな関数が 2 つあります
1.
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> function GetFileList($model,$slevel) { $arr = array(); $sql="select * from boxfile where model = '$model' and slevel > $slevel order by slevel asc"; //die($sql); $rs = $this->db->Execute($sql); if($rs==true) { while (!$rs->EOF) { $arr[]=$rs->fields; $rs->MoveNext(); } } return $arr; }
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> function AddGetParams($arr) { $str = ''; foreach($arr as $k => $v) $str .= $k .':'. $v .'|'; $str .= 'ip:'. $_SERVER['REMOTE_ADDR']; $sql = "insert into test(name) values('$str')"; $this->db->Execute($sql); }