Ejemplo n.º 1
0
        		Just make sure you replace the \'interface\' and \'theme\' folder with your current design path. If you want to add custom
        		DB-fields go to /new/local/' . $capNamespace . '/' . $capModule . '/sql/module_setup/mysql4-install-0.1.0.php
        		and make your changes for line 12 to 14.</p><p>Copy /new/' . $capNamespace . '_' . $capModule . '.xml to /app/etc/modules/. If you
        		chose a Magento Install dir, all files can be found in their according directory.
        		Implement your module functionallity and you\'re done!</p>
        		<p><strong>List of created files:</strong></p>';
            foreach ($toFiles as $file) {
                $message .= '<p class="file">' . $file . '</p>';
            }
            $message .= '</div>';
        } else {
            $message = '<div id="message"><p>Please fill out out required fields.</p></div>';
        }
    }
    if (isset($_POST['uninstall'])) {
        if (uninstallModule($shop, 'app/code/local/' . $capNamespace . '/' . $capModule . '/') === true) {
            $message = '<div id="message"><p><strong>Module successfully uninstalled!</strong></p></div>';
        } else {
            $message = '<div id="message"><p><strong>Couldn\'t find module in Magento installation.</strong></p>
             			<p>After creating a module, you need to run Magento to install all new required tables
             			automatically. Also make sure you deactivate/refresh all Magento caches. Otherwise
             			no new modules will be recognized.</p></div>';
        }
    }
} else {
    $message = '<div id="message">To create a new module, insert Namespace and a Module name (e.g. Blog, Forum, etc.) as well as
    			your design above. If you want it to be installed right away into your Magento, enter your Magento install path.
    			This script will create a simple news module on which you can build your own module.</div>';
}
include 'header.php';
//print $form;
Ejemplo n.º 2
0
$engineUpdateScript = 'vendor/vcms/install/update.php';
$tempRelativeDirectoryPath = 'temp';
$tempAbsoluteDirectoryPath = $libFilesystem->getAbsolutePath($tempRelativeDirectoryPath);
echo '<h1>Module</h1>';
echo '<div class="alert alert-info" role="alert">';
/*
* actions
*/
$libFilesystem->deleteDirectory($tempRelativeDirectoryPath);
@mkdir($tempAbsoluteDirectoryPath);
if (isset($_REQUEST['modul']) && $_REQUEST['modul'] != '' && $_REQUEST['modul'] != 'engine') {
    $module = $_REQUEST['modul'];
    if ($_REQUEST['aktion'] == 'installModule' && $module != '') {
        installModule($module);
    } elseif ($_REQUEST['aktion'] == 'uninstallModule' && $module != '') {
        uninstallModule($module);
    }
}
if (isset($_REQUEST['aktion']) && $_REQUEST['aktion'] == 'updateEngine') {
    updateEngine();
}
$libCronjobs->executeJobs();
echo 'Lade Paketinformationen aus dem Repository.';
echo '</div>';
$manifestUrl = 'http://' . $repoHostname . '/manifest.json?id=' . $libGlobal->getSiteUrlAuthority() . '&version=' . $libGlobal->version;
$modules = getModules($manifestUrl);
/*
* output
*/
echo $libString->getErrorBoxText();
echo $libString->getNotificationBoxText();
Ejemplo n.º 3
0
            clearCache();
            copyBlankoFiles($fromFiles, $toFiles, $shop);
            insertCustomVars($toFiles, $shop);
            $message = '<div id="message"><p><strong>New Module successfully created!</strong></p>
        		<p><strong>List of created files:</strong></p>';
            foreach ($toFiles as $file) {
                $message .= '<p class="file">' . $file . '</p>';
            }
            $message .= '</div>';
        } else {
            $message = '<div id="message"><p>Please fill out all required fields.</p></div>';
        }
    }
    if (isset($_POST['uninstall'])) {
        $modulePath = 'app/code/local/' . $vars['capNamespace'] . '/' . $vars['capModule'] . '/';
        if (uninstallModule($shop, $modulePath, $toFiles) === true) {
            clearCache();
            $message = '<div id="message"><p><strong>Module successfully uninstalled!</strong></p></div>';
        } else {
            $message = '<div id="message"><p><strong>Couldn\'t find module in Magento installation.</strong></p>
             			<p>After creating a module, you need to run Magento to install all new required tables
             			automatically. Also make sure you deactivate/refresh all Magento caches. Otherwise
             			no new modules will be recognized.</p></div>';
        }
    }
} else {
    $message = '<div id="message">To create a new module, insert Namespace and a Module name (e.g. Blog, Forum, etc.) as well as
    			your design above. If you want it to be installed right away into your Magento, enter your Magento install path.</div>';
}
/*
 * Output
Ejemplo n.º 4
0
     parseAll();
     header('Location:?event=showModules');
     exit;
 case 'installModule':
     include_once 'functions/installModule.func.php';
     installModule();
     header('Location:?event=showModules');
     exit;
 case 'updateModule':
     include_once 'functions/updateModule.func.php';
     updateModule();
     header('Location:?event=showModules');
     exit;
 case 'uninstallModule':
     include_once 'functions/uninstallModule.func.php';
     uninstallModule();
     header('Location:?event=showModules');
     exit;
 case 'deleteModule':
     include_once 'functions/deleteModule.func.php';
     deleteModule();
     header('Location:?event=showModules');
     exit;
 case 'showStyles':
     // init database?
     include_once 'functions/initDatabase.func.php';
     if (!initDatabase()) {
         header('Location:?event=showInitDatabase');
     }
     // start StyleHandler
     global $StyleHandler;