Example #1
0
	function uninstPackages($option, $caller, $pkg, $ids)
	{
		if (count($ids)) foreach ($ids as $id) dropPackage($id);
		HTML_facileFormsConf::message(
			$option, $caller, $pkg,
			count($ids).' '.BFText::_('COM_BREEZINGFORMS_INSTALLER_PKGSUNINST'),
			'instpackage'
		);
	} // uninstPackages
Example #2
0
 * MMC 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
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
require_once "modules/pkgs/includes/xmlrpc.php";
require_once "modules/msc/includes/commands_xmlrpc.inc.php";
if (isset($_POST["bconfirm"])) {
    $p_api = $_GET["p_api"];
    $pid = $_GET["pid"];
    $from = $_GET["from"];
    $ret = dropPackage(base64_decode($p_api), base64_decode($pid));
    $expire_result = expire_all_package_commands($ret);
    if (!isXMLRPCError() and $ret != -1) {
        new NotifyWidgetSuccess(_T("The package has been deleted.", "pkgs"));
    }
    if ($ret == -1) {
        new NotifyWidgetFailure(_T("The package failed to delete", "pkgs"));
    }
    $to = "bundleList";
    if ($from) {
        $to = $from;
    }
    header("Location: " . urlStrRedirect("pkgs/pkgs/{$to}", array('p_api' => $p_api)));
    exit;
} else {
    $p_api = $_GET["p_api"];
Example #3
0
	function dropPackage($id)
	{
		if ($this->hasErrors()) return;
		$this->oldscripts = _ff_select(
			"select id, name from #__facileforms_scripts where package =  '$id'"
		);
		$this->oldpieces = _ff_select(
			"select id, name from #__facileforms_pieces where package =  '$id'"
		);
		dropPackage($id); // the one in admin.facileforms.php
	} // dropPackage
 function dropPackage($id)
 {
     if ($this->hasErrors()) {
         return;
     }
     $this->oldscripts = _ff_select("select id, name from #__facileforms_scripts where package =  " . JFactory::getDBO()->Quote($id) . "");
     $this->oldpieces = _ff_select("select id, name from #__facileforms_pieces where package =  " . JFactory::getDBO()->Quote($id) . "");
     dropPackage($id);
     // the one in admin.facileforms.php
 }