Lines Matching refs:p
117 function color($p) { argument
118 $ns = preg_replace('`^(.*\:)[^\:]+$`', '$1', $p);
119 if(isset($this->colors[$p])) return $this->colors[$p];
122 $this->colors[$p] = sprintf('%02X%02X%02X', rand(0, 255), rand(0, 255), rand(0, 255));
123 return $this->colors[$p];
126 function crawl($p, $strip, $from) { argument
127 if(!@is_dir($p)) return;
128 foreach(scandir($p) as $i) {
130 if(is_file($p.'/'.$i)) if(preg_match('`\.changes$`', $i)) {
131 foreach(preg_split('`\n+`', trim(@file_get_contents($p.'/'.$i))) as $l) {
149 if(is_dir($p.'/'.$i)) $this->crawl($p.'/'.$i, $strip, $from);