PHP #ifdef CollectorFrom this: <?php
#define COPY
class Chat extends BaseControler
{
public function Main()
{
#ifdef COPY
$chat_page = new View('copy');
$chat_page->SetVars(array('copyright' => $this->Copyright()));
$this->html = $chat_page->Get();
$this->Display();
/*#else
$this->html = View('no_copy')::Call();
$this->Display();
*/#endif
}
}
$chat = new Chat();
$chat->Run();
?>To this: <?php
class Chat extends BaseControler
{
public function Main()
{
$chat_page = new View('copy');
$chat_page->SetVars(array('copyright' => $this->Copyright()));
$this->html = $chat_page->Get();
$this->Display();
}
}
$chat = new Chat();
$chat->Run();
?>New in version 2: console: Arguments: help - to show this help.
--input=path_to_directory - input directory for collector.
--output=path_to_directory - create directory and puts files there.
--define=DEFINES - predefined defines.
--exts=php,php4 - file extensions in which to analyze 'ifdef'.
--echo=on - show all, off - don't show files, errors - show only errors.
Example: phpifdef --input=C:\www --output=C:\demo --define=DEMO --echo=errors
|