Esempio n. 1
0
                <div class="grid_12 col">
                    <h3>Post install output</h3>
                    <div class="mgupload_info" style="margin-top: 5px">
                        <?php 
            echo $result["OK"];
            ?>
                    </div>
                </div>
            </div>
        <?php 
        }
        rename($postinst, $postinst . "." . strval(time()));
    }
}
foreach (array("../state", "../conf", "../plugins") as $dirname) {
    if (!FSHelper::isDirWritable($dirname)) {
        $badrights[] = $dirname;
    }
}
if (count($badrights) == 0) {
    $state = Magmi_StateManager::getState();
    if ($state == "running" || isset($_REQUEST["run"]) && $_REQUEST["run"] == "import") {
        require_once "magmi_import_run.php";
    } else {
        Magmi_StateManager::setState("idle", true);
        require_once "magmi_config_setup.php";
        require_once "magmi_profile_config.php";
    }
} else {
    ?>
Esempio n. 2
0
 /**
  * Constructor from a magento directory url
  * 
  * @param unknown $magurl
  *            magento base directory url
  */
 public function __construct($magurl)
 {
     $this->_magdir = $magurl;
     $this->_lasterror = array();
     $this->_exec_mode = FSHelper::getExecMode();
 }
 public function isRunnable()
 {
     return array(FSHelper::getExecMode() != null, "");
 }