onepeople 发表于 2013-2-26 15:29 
不变成变量,,,如何显示出来.......
主要是看你怎么匹配出信息了,你前面不是弄到值了么,
http://amysql-amh.googlecode.com/files/AMProxy-1.0.zip
面板上面是这么匹配的,- $cmd = "amh module AMProxy-1.0 admin cat,$name";
- $cmd = Functions::trim_cmd($cmd);
- $result = trim(shell_exec($cmd), "\n");
- $result = Functions::trim_result($result);
- $list = array(
- 'server_name',
- 'subs_filter_types',
- 'Referer',
- 'Host',
- 'proxy_pass',
- 'echo_before_body',
- 'echo_after_body'
- );
- foreach ($list as $val)
- {
- preg_match("/$val(.*);/", $result, $arr);
- $data[$val] = trim($arr[1]);
- }
- $data['subs_filter_types'] = str_replace(' ', ',', $data['subs_filter_types']);
- $data['AppendHtml_header'] = str_replace("\'", "'", substr($data['echo_before_body'], 1,-1));
- $data['AppendHtml_footer'] = str_replace("\'", "'", substr($data['echo_after_body'], 1,-1));
- Return $data;
复制代码 不知你是遇到什么问题呐。 |