codecamp

uninstall_confirm.php

<?php
/*
* 应用卸载程序示例
* @copyright   Leyun internet Technology(Shanghai)Co.,Ltd
* @license     http://www.dzzoffice.com/licenses/license.txt
* @package     DzzOffice
* @version     DzzOffice 1.1 2014.07.05
* @link        http://www.dzzoffice.com
* @author      zyx(zyx@dzz.cc)
*/

if(!defined('IN_DZZ')) {
        exit('Access Denied');
}
if(!submitcheck('confirmsubmit')){
        $appid=intval($_GET['appid']);
        if(!$app=C::t('app_market')->fetch($appid)){
                exit('Access Denied');
        }
        include template('uninstall_confirm');
}else{
        if($_GET['confirm']=='DELETE'){
                $url=$_GET['adminurl'].'&op=cp&confirm=DELETE&do=uninstall&appid='.intval($_GET['appid']);
                @header("Location: $url");
        }else{
                $url=$_GET['adminurl'].'&op=list&do=available';
                @header("Location: $url");
        }
        
}
uninstall_real.php
dzz_app_test.xml
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

Dzz系统框架

输入数据处理

数据DB层

安全相关

上传组件

评论组件

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }