CODE STYLE, workflow/engine/methods/setup/ PART 2
FILES: holiday.php holidayNew.php index.php jasper.php language.php language_Ajax.php languages.php languages_Delete.php languages_Export.php languages_Import.php languages_ImportForm.php location.php loginSettings.php loginSettingsAjax.php logo_Delete.php main.php mainAjax.php main_init.php pluginsChange.php pluginsImport.php pluginsImportFile.php pluginsList.php pluginsMain.php pluginsRemove.php pluginsSetup.php pluginsSetupSave.php processHeartBeatAjax.php processHeartBeatConfig.php processHeartBeatSave.php replacementLogo.php
This commit is contained in:
@@ -12,15 +12,14 @@
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -39,20 +38,17 @@ switch ($RBAC->userCanAccess('PM_SETUP_ADVANCE'))
|
||||
break;
|
||||
}*/
|
||||
|
||||
G::LoadClass("plugin");
|
||||
|
||||
|
||||
|
||||
|
||||
G::LoadClass( "plugin" );
|
||||
|
||||
$pluginName = $_REQUEST["pluginUid"];
|
||||
|
||||
if (file_exists(PATH_PLUGINS . $pluginName . ".php")) {
|
||||
$pluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
|
||||
$pluginRegistry->uninstallPlugin($pluginName);
|
||||
|
||||
$pluginRegistry->unSerializeInstance(file_get_contents(PATH_DATA_SITE . "plugin.singleton"));
|
||||
if (file_exists( PATH_PLUGINS . $pluginName . ".php" )) {
|
||||
$pluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
|
||||
$pluginRegistry->uninstallPlugin( $pluginName );
|
||||
|
||||
$pluginRegistry->unSerializeInstance( file_get_contents( PATH_DATA_SITE . "plugin.singleton" ) );
|
||||
}
|
||||
|
||||
echo $pluginName . " " . nl2br(G::LoadTranslation("ID_MSG_REMOVE_PLUGIN_SUCCESS"));
|
||||
echo $pluginName . " " . nl2br( G::LoadTranslation( "ID_MSG_REMOVE_PLUGIN_SUCCESS" ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user