=== Magento Edition ===
php -a
php > include '/var/doc/root/public_html/app/Mage.php';
php > echo Mage::getEdition();
Community
php > exit();
=== Magento Version ===
php -a
php > include '/var/doc/root/public_html/app/Mage.php';
php > echo Mage::getVersion();
1.6.2.0
php > exit();
\\
app/etc/local.xml