/** * Enter description here... * * @param string $dir * @return boolean|string */ function checkShopRoot($dir) { $dir = replaceDirSeparator($dir); if (substr($dir, strlen($dir) - 1, 1) !== DIRECTORY_SEPARATOR) { $dir .= DIRECTORY_SEPARATOR; } if (is_dir($dir . 'app')) { return $dir; } return false; }
" /> </div> <div id="module" class="element"> <!-- <div class="description">Module:<br /><span class="annotation">(e.g. Blog, News, Forum)</span></div> --> <label class="description" for="name">Module:<br /><span class="annotation">(e.g. Blog, News, Forum)</span></label> <input id="name" name="module" class="text" type="text" length="50" value="<?php echo @$_POST['module']; ?> " /> </div> <div id="magento_root_container" class="element"> <!--<div class="description">Magento Root Directory:<br /><span class="annotation">(optional, required for uninstall)</span></div> --> <label class="description" for="magento_root">Magento Root Directory:<br /><span class="annotation">(optional, required for uninstall)</span></label> <input id="magento_root" name="magento_root" class="text" type="text" length="255" value="<?php echo replaceDirSeparator(@$_POST['magento_root']); ?> " /> </div> <div id="interface_container" class="element"> <!-- <div class="description">Design:<br /><span class="annotation">(interface, default is \'default\')</span></div> --> <label class="description" for="interface">Design:<br /><span class="annotation">(interface, default is \'default\')</span></label> <input id="interface" name="interface" class="text" type="text" length="100" value="<?php echo @$_POST['interface']; ?> " /> </div> <div id="theme_container" class="element"> <!-- <div class="description">Design:<br /><span class="annotation">(theme, default is \'default\')</span></div> --> <label class="description" for="theme">Design:<br /><span class="annotation">(theme, default is \'default\')</span></label> <input id="theme" name="theme" class="text" type="text" length="100" value="<?php