* @version first release */ # # Variables / Configuration # /** Phpdoc script with full path */ $pdExec = '/usr/bin/phpdoc'; /** where Phpdoc should output documentation */ $pdOutput = '/var/www/mwdoc/'; /** Some more Phpdoc settings */ //$pdOthers = ' -dn \'MediaWiki\' '; $pdOthers .= ' --title \'Mediawiki generated documentation\' -o \'HTML:frames:DOM/earthli\' '; /** Mediawiki location */ $mwPath = '/var/www/mediawiki/'; /** Mediawiki subpaths */ $mwPathI = $mwPath.'includes/'; $mwPathM = $mwPath.'maintenance/'; $mwPathS = $mwPath.'skins/'; $mwBaseFiles = $mwPath.'*php '; /** Variable to get user input */ $input = ''; /** shell command that will be run */ $command = ''; # # Functions # function readaline( $prompt = '') { print $prompt; $fp = fopen( "php://stdin", "r" ); $resp = trim( fgets( $fp, 1024 ) ); fclose( $fp ); return $resp; } # # Main ! # print <<