Lines Matching refs:m
146 } else if (!preg_match('/^USER (\w+)\r\n$/', $buf, $m)) {
150 $user = $m[1];
163 if (!preg_match('/^PASS (\w+)\r\n$/', $buf = fread($s, 100), $m)) {
168 $pass = $m[1];
226 } elseif (preg_match("~^PORT (\d+),(\d+),(\d+),(\d+),(\d+),(\d+)\r\n$~", $buf, $m)) {
227 $host = "$m[1].$m[2].$m[3].$m[4]";
228 $port = ((int)$m[5] << 8) + (int)$m[6];
231 } elseif (preg_match("~^STOR ([\w/.-]+)\r\n$~", $buf, $m)) {
242 $orig = file_get_contents(dirname(__FILE__).'/'.$m[1]);
259 $orig = file_get_contents(dirname(__FILE__).'/'.$m[1]);
270 } elseif (preg_match("~^CWD ([A-Za-z./]+)\r\n$~", $buf, $m)) {
271 change_dir($m[1]);
274 } elseif (preg_match("~^NLST(?: ([A-Za-z./]+))?\r\n$~", $buf, $m)) {
276 if (isset($m[1]) && (($m[1] === 'bogusdir') || ($m[1] === '/bogusdir'))) {
277 fputs($s, "250 $m[1]: No such file or directory\r\n");
282 if (isset($bug39458) && isset($m[1]) && $m[1] === 'emptydir') {
303 if (empty($m[1]) || $m[1] !== 'emptydir') {
310 } elseif (preg_match("~^MKD ([A-Za-z./]+)\r\n$~", $buf, $m)) {
314 fputs($s, "257 \"/path/to/ftproot$cwd$m[1]\" created.\r\n");