"PHP" / Говнокод #3161 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
$fileContent=file_get_contents($this->rootPath.'app/'.$this->interface.$this->handler.$this->p_h.'.php');
            	if (preg_match('/class\s{1,}\b'.$this->handler.$this->p_h.'\b/i', $fileContent,$matches)) {
                    .............
                    if (preg_match('/function\s{1,}\b'.$this->action.$this->p_a.'\b/i', $fileContent,$matches)) {
            			$class=$this->handler.$this->p_h;
				$action=$this->action.$this->p_a;
            			$this->includeClass($class,$action);
                        return;

                     .............

Так мы проверяем наличие медота в классе ((

Запостил: minisot minisot, (Updated )

Комментарии (13) RSS

Добавить комментарий

Из-за тебя ушел bormand, guest!

    А не использовать ли нам bbcode?


    8