setQuery($query); $argplugin = $db->loadObject(); $plugin_installer = new JInstaller; $status = new Status(); $status->status = $status->STATUS_FAIL; if(@$plugin_installer->uninstall('plugin', $argplugin->id)) { $status->status = $status->STATUS_SUCCESS; } $install_status['AlphaRegistration - System'] = $status; // delete all older plugins $query = "DELETE FROM #__plugins WHERE element LIKE 'alpharegistration'"; $db->setQuery( $query ); $db->query(); function com_uninstall() { echo( "AlphaRegistration has been successfully uninstalled." ); } ?>
| '; ?> |
status == $status->STATUS_SUCCESS)? ''.JText::_('Uninstalled').'' : ''.JText::_('NOT Uninstalled').''?>
errmsg) > 0 ) {
foreach ( $status->errmsg as $errmsg ) {
echo ' Error: ' . $errmsg; } } ?> infomsg) > 0 ) { foreach ( $status->infomsg as $infomsg ) { echo ' Info: ' . $infomsg; } } ?> |
|