Lines Matching refs:p
119 function color($p) { argument
120 $ns = preg_replace('`^(.*\:)[^\:]+$`', '$1', $p);
121 if(isset($this->colors[$p])) return $this->colors[$p];
124 $this->colors[$p] = sprintf('%02X%02X%02X', rand(0, 255), rand(0, 255), rand(0, 255));
125 return $this->colors[$p];
128 function crawl($p, $strip, $from) { argument
129 if(!@is_dir($p)) return;
130 foreach(scandir($p) as $i) {
132 if(is_file($p.'/'.$i)) if(preg_match('`\.changes$`', $i)) {
133 foreach(preg_split('`\n+`', trim(@file_get_contents($p.'/'.$i))) as $l) {
151 if(is_dir($p.'/'.$i)) $this->crawl($p.'/'.$i, $strip, $from);