| @@ 499-509 (lines=11) @@ | ||
| 496 | return true; |
|
| 497 | } |
|
| 498 | ||
| 499 | protected function getAppDir($dir = ".") |
|
| 500 | { |
|
| 501 | if (is_dir($dir)) { |
|
| 502 | return realpath($dir); |
|
| 503 | } |
|
| 504 | if (false !== ($app_dir = realpath($dir . '/protected/')) && is_dir($app_dir)) { |
|
| 505 | return $app_dir; |
|
| 506 | } |
|
| 507 | echo '** Unable to find directory "' . $dir . "\".\n"; |
|
| 508 | return false; |
|
| 509 | } |
|
| 510 | ||
| 511 | protected function getXmlFile($app_dir) |
|
| 512 | { |
|
| @@ 713-723 (lines=11) @@ | ||
| 710 | } |
|
| 711 | } |
|
| 712 | ||
| 713 | protected function getAppDir($dir = ".") |
|
| 714 | { |
|
| 715 | if (is_dir($dir)) { |
|
| 716 | return realpath($dir); |
|
| 717 | } |
|
| 718 | if (false !== ($app_dir = realpath($dir . '/protected/')) && is_dir($app_dir)) { |
|
| 719 | return $app_dir; |
|
| 720 | } |
|
| 721 | echo '** Unable to find directory "' . $dir . "\".\n"; |
|
| 722 | return false; |
|
| 723 | } |
|
| 724 | ||
| 725 | protected function getXmlFile($app_dir) |
|
| 726 | { |
|