예제 #1
0
function saveData($sType)
{
    if (@$_SESSION['yzm'] == '') {
        Eerr('提示', '验证码失效');
    }
    //if instr("|"& getFormFieldList() &"|","|yzm|") then
    if (@$_SESSION['yzm'] != @$_POST['yzm']) {
        Eerr('提示', '验证码错误');
    }
    @($_SESSION['yzm'] = '');
    //清空验证码
    //保存文章评论
    if ($sType == 'articlecomment') {
        autoSavePostData('', 'tablecomment', 'tablename||ArticleDetail,adddatetime|now,itemid||' . @$_REQUEST['itemid'] . ',adddatetime,ip||' . getIP());
        aspEcho('提示', '评论提交成功,等待管理员审核');
    } else {
        if ($sType == 'feedback') {
            if (@$_POST['guestname'] == '') {
                Eerr('提示', '姓名为空');
            }
            autoSavePostData('', 'feedback', 'isthrough|numb|0,adddatetime|now,ip||' . getIP() . ',columnid||' . @$_GET['columnid']);
            aspEcho('提示', '反馈提交成功,等待管理员审核');
        } else {
            if ($sType == 'guestbook') {
                if (@$_POST['guestname'] == '') {
                    Eerr('提示', '姓名为空');
                }
                autoSavePostData('', 'guestbook', 'isthrough|numb|0,adddatetime|now,ip||' . getIP() . ',columnid||' . @$_GET['columnid']);
                aspEcho('提示', '留言提交成功,等待管理员审核');
            } else {
                if ($sType == 'articledetail') {
                    autoSavePostData('', 'articledetail', 'title|bodycontent,adddatetime|now,ip||' . getIP());
                    aspEcho('提示', '文章提交成功');
                }
            }
        }
    }
    die;
}
예제 #2
0
function updateField()
{
    $tableName = '';
    $id = '';
    $fieldName = '';
    $fieldvalue = '';
    $fieldNameList = '';
    $url = '';
    $tableName = lCase(@$_REQUEST['actionType']);
    //表名称
    $id = @$_REQUEST['id'];
    //id
    $fieldName = lCase(@$_REQUEST['fieldname']);
    //字段名称
    $fieldvalue = @$_REQUEST['fieldvalue'];
    //字段值
    $fieldNameList = getHandleFieldList($GLOBALS['db_PREFIX'] . $tableName, '字段列表');
    //call echo(fieldname,fieldvalue)
    //call echo("fieldNameList",fieldNameList)
    if (inStr($fieldNameList, ',' . $fieldName . ',') == false) {
        Eerr('出错提示', '表(' . $tableName . ')不存在字段(' . $fieldName . ')');
    } else {
        connexecute('update ' . $GLOBALS['db_PREFIX'] . $tableName . ' set ' . $fieldName . '=' . $fieldvalue . ' where id=' . $id);
    }
    $url = getUrlAddToParam(getThisUrl(), '?act=dispalyManageHandle', 'replace');
    Rw(getMsg1('操作成功,正在返回列表...', $url));
}
예제 #3
0
function scanDomainHomePage()
{
    $url = '';
    $nSetTime = '';
    $isdomain = '';
    $htmlDir = '';
    $txtFilePath = '';
    $homePageList = '';
    $nThis = '';
    $nCount = '';
    $splstr = '';
    $s = '';
    $c = '';
    $website = '';
    $nState = '';
    $isAsp = '';
    $isAspx = '';
    $isPhp = '';
    $isJsp = '';
    $c2 = '';
    $isAsp = 0;
    $isAspx = 0;
    $isPhp = 0;
    $isJsp = 0;
    $nThis = @$_REQUEST['nThis'];
    if ($nThis == '') {
        $nThis = 0;
    } else {
        $nThis = cint($nThis);
    }
    $nSetTime = 3;
    $GLOBALS['conn='] = OpenConn();
    $rsObj = $GLOBALS['conn']->query('select * from ' . $GLOBALS['db_PREFIX'] . 'webdomain where website<>\'\' and homepagelist=\'\' and isdomain=true');
    $nCount = @$_REQUEST['nCount'];
    if ($nCount == '') {
        $nCount = @mysql_num_rows($rsObj);
    }
    while ($rs = $GLOBALS['conn']->fetch_array($rsObj)) {
        $nThis = $nThis + 1;
        aspEcho($nThis . '/' . $nCount, $rs['website']);
        doEvents();
        $htmlDir = '/../网站UrlScan/域名首页/';
        CreateDirFolder($htmlDir);
        $txtFilePath = $htmlDir . '/' . setFileName($rs['website']) . '.txt';
        if (CheckFile($txtFilePath) == true) {
            $c = PHPTrim(getFText($txtFilePath));
            $isAsp = getStrCut($c, 'isAsp=', vbCrlf(), 1);
            $isAspx = getStrCut($c, 'isAspx=', vbCrlf(), 1);
            $isPhp = getStrCut($c, 'isPhp=', vbCrlf(), 1);
            $isJsp = getStrCut($c, 'isJsp=', vbCrlf(), 1);
            aspEcho('类型', '本地');
            $nSetTime = 1;
        } else {
            $website = getWebSite($rs['website']);
            if ($website == '') {
                Eerr('域名为空', $GLOBALS['httpurl']);
            }
            $splstr = array('index.asp', 'index.aspx', 'index.php', 'index.jsp', 'index.htm', 'index.html', 'default.asp', 'default.aspx', 'default.jsp', 'default.htm', 'default.html');
            $c2 = '';
            $homePageList = '';
            foreach ($splstr as $key => $s) {
                $url = $website . $s;
                $nState = getHttpUrlState($url);
                aspEcho($url, $nState . '   (' . getHttpUrlStateAbout($nState) . ')');
                doEvents();
                if (($s == 'index.asp' || $s == 'default.asp') && ($nState == '200' || $nState == '302')) {
                    $isAsp = 1;
                } else {
                    if (($s == 'index.aspx' || $s == 'default.aspx') && ($nState == '200' || $nState == '302')) {
                        $isAspx = 1;
                    } else {
                        if (($s == 'index.php' || $s == 'default.php') && ($nState == '200' || $nState == '302')) {
                            $isPhp = 1;
                        } else {
                            if (($s == 'index.jsp' || $s == 'default.jsp') && ($nState == '200' || $nState == '302')) {
                                $isJsp = 1;
                            }
                        }
                    }
                }
                if ($nState == '200' || $nState == '302') {
                    $homePageList = $homePageList . $s . '|';
                }
                $c2 = $c2 . $s . '=' . $nState . vbCrlf();
            }
            $c = 'isAsp=' . $isAsp . vbCrlf();
            $c = $c . 'isAspx=' . $isAspx . vbCrlf();
            $c = $c . 'isPhp=' . $isPhp . vbCrlf();
            $c = $c . 'isJsp=' . $isJsp . vbCrlf() . $c2;
            if ($homePageList == '') {
                $homePageList = '无';
            }
            createFile($txtFilePath, $c);
            aspEcho('类型', '网络');
        }
        //这样写是给转PHP时方便
        connexecute('update ' . $GLOBALS['db_PREFIX'] . 'webdomain  set isasp=' . $isAsp . ',isaspx=' . $isAspx . ',isphp=' . $isPhp . ',isjsp=' . $isJsp . ',isthrough=false,homepagelist=\'' . $homePageList . '\',updatetime=\'' . now() . '\'  where id=' . $rs['id'] . '');
        $GLOBALS['startTime'] = @$_REQUEST['startTime'];
        if ($GLOBALS['startTime'] == '') {
            $GLOBALS['startTime'] = now();
        }
        Rw(VBRunTimer($GLOBALS['startTime']) . '<hr>');
        $url = getUrlAddToParam(getThisUrl(), '?nThis=' . $nThis . '&nCount=' . $nCount . '&startTime=' . $GLOBALS['startTime'] . '&N=' . getRnd(11), 'replace');
        Rw(jsTiming($url, $nSetTime));
        die;
    }
    aspEcho('操作完成', '<a href=\'?act=dispalyManageHandle&actionType=WebDomain&addsql=order by id desc&lableTitle=网站域名\'>OK,共(' . $nThis . ')条</a>');
}
예제 #4
0
function makeWebHtml($action)
{
    $actionType = '';
    $npagesize = '';
    $npage = '';
    $url = '';
    $addSql = '';
    $sortSql = '';
    $sortFieldName = '';
    $ascOrDesc = '';
    $serchKeyWordName = '';
    $parentid = '';
    //追加于20160716 home
    $actionType = RParam($action, 'actionType');
    $npage = RParam($action, 'npage');
    $npage = getNumber($npage);
    if ($npage == '') {
        $npage = 1;
    } else {
        $npage = CInt($npage);
    }
    //导航
    if ($actionType == 'nav') {
        $GLOBALS['glb_columnType'] = RParam($action, 'columnType');
        $GLOBALS['glb_columnName'] = RParam($action, 'columnName');
        $GLOBALS['glb_columnId'] = RParam($action, 'columnId');
        if ($GLOBALS['glb_columnId'] == '') {
            $GLOBALS['glb_columnId'] = RParam($action, 'id');
        }
        if ($GLOBALS['glb_columnType'] != '') {
            $addSql = 'where columnType=\'' . $GLOBALS['glb_columnType'] . '\'';
        }
        if ($GLOBALS['glb_columnName'] != '') {
            $addSql = getWhereAnd($addSql, 'where columnName=\'' . $GLOBALS['glb_columnName'] . '\'');
        }
        if ($GLOBALS['glb_columnId'] != '') {
            $addSql = getWhereAnd($addSql, 'where id=' . $GLOBALS['glb_columnId'] . '');
        }
        //call echo("addsql",addsql)
        $rsObj = $GLOBALS['conn']->query('Select * from ' . $GLOBALS['db_PREFIX'] . 'webcolumn ' . $addSql);
        if (@mysql_num_rows($rsObj) != 0) {
            $rs = mysql_fetch_array($rsObj);
            $GLOBALS['glb_columnId'] = $rs['id'];
            $GLOBALS['glb_columnName'] = $rs['columnname'];
            $GLOBALS['glb_columnType'] = $rs['columntype'];
            $GLOBALS['glb_bodyContent'] = $rs['bodycontent'];
            $GLOBALS['glb_detailTitle'] = $GLOBALS['glb_columnName'];
            $GLOBALS['glb_flags'] = $rs['flags'];
            $npagesize = $rs['npagesize'];
            //每页显示条数
            $GLOBALS['glb_isonhtml'] = $rs['isonhtml'];
            //是否生成静态网页
            $sortSql = ' ' . $rs['sortsql'];
            //排序SQL
            if ($rs['webtitle'] != '') {
                $GLOBALS['cfg_webTitle'] = $rs['webtitle'];
                //网址标题
            }
            if ($rs['webkeywords'] != '') {
                $GLOBALS['cfg_webKeywords'] = $rs['webkeywords'];
                //网站关键词
            }
            if ($rs['webdescription'] != '') {
                $GLOBALS['cfg_webDescription'] = $rs['webdescription'];
                //网站描述
            }
            if ($GLOBALS['templateName'] == '') {
                if (aspTrim($rs['templatepath']) != '') {
                    $GLOBALS['templateName'] = $rs['templatepath'];
                } else {
                    if ($rs['columntype'] != '首页') {
                        $GLOBALS['templateName'] = getDateilTemplate($rs['id'], 'List');
                    }
                }
            }
        }
        $GLOBALS['glb_columnENType'] = handleColumnType($GLOBALS['glb_columnType']);
        $GLOBALS['glb_url'] = getColumnUrl($GLOBALS['glb_columnName'], 'name');
        //文章类列表
        if (inStr('|产品|新闻|视频|下载|案例|', '|' . $GLOBALS['glb_columnType'] . '|') > 0) {
            $GLOBALS['glb_bodyContent'] = getDetailList($action, defaultListTemplate($GLOBALS['glb_columnType'], $GLOBALS['glb_columnName']), 'ArticleDetail', '栏目列表', '*', $npagesize, $npage, 'where parentid=' . $GLOBALS['glb_columnId'] . $sortSql);
            //留言类列表
        } else {
            if (inStr('|留言|', '|' . $GLOBALS['glb_columnType'] . '|') > 0) {
                $GLOBALS['glb_bodyContent'] = getDetailList($action, defaultListTemplate($GLOBALS['glb_columnType'], $GLOBALS['glb_columnName']), 'GuestBook', '留言列表', '*', $npagesize, $npage, ' where isthrough<>0 ' . $sortSql);
            } else {
                if ($GLOBALS['glb_columnType'] == '文本') {
                    //航行栏目加管理
                    if (@$_REQUEST['gl'] == 'edit') {
                        $GLOBALS['glb_bodyContent'] = '<span>' . $GLOBALS['glb_bodyContent'] . '</span>';
                    }
                    $url = WEB_ADMINURL . '?act=addEditHandle&actionType=WebColumn&lableTitle=网站栏目&nPageSize=10&page=&id=' . $GLOBALS['glb_columnId'] . '&n=' . getRnd(11);
                    $GLOBALS['glb_bodyContent'] = handleDisplayOnlineEditDialog($url, $GLOBALS['glb_bodyContent'], '', 'span');
                }
            }
        }
        //细节
    } else {
        if ($actionType == 'detail') {
            $GLOBALS['glb_locationType'] = 'detail';
            $rsObj = $GLOBALS['conn']->query('Select * from ' . $GLOBALS['db_PREFIX'] . 'articledetail where id=' . RParam($action, 'id'));
            if (@mysql_num_rows($rsObj) != 0) {
                $rs = mysql_fetch_array($rsObj);
                $GLOBALS['glb_columnName'] = getColumnName($rs['parentid']);
                $GLOBALS['glb_detailTitle'] = $rs['title'];
                $GLOBALS['glb_flags'] = $rs['flags'];
                $GLOBALS['glb_isonhtml'] = $rs['isonhtml'];
                //是否生成静态网页
                $GLOBALS['glb_id'] = $rs['id'];
                //文章ID
                if ($GLOBALS['isMakeHtml'] == true) {
                    $GLOBALS['glb_url'] = getHandleRsUrl($rs['filename'], $rs['customaurl'], '/detail/detail' . $rs['id']);
                } else {
                    $GLOBALS['glb_url'] = handleWebUrl('?act=detail&id=' . $rs['id']);
                }
                if ($rs['webtitle'] != '') {
                    $GLOBALS['cfg_webTitle'] = $rs['webtitle'];
                    //网址标题
                }
                if ($rs['webkeywords'] != '') {
                    $GLOBALS['cfg_webKeywords'] = $rs['webkeywords'];
                    //网站关键词
                }
                if ($rs['webdescription'] != '') {
                    $GLOBALS['cfg_webDescription'] = $rs['webdescription'];
                    //网站描述
                }
                //改进20160628
                $sortFieldName = 'id';
                $ascOrDesc = 'asc';
                $addsql = aspTrim(getWebColumnSortSql($rs['parentid']));
                if ($addsql != '') {
                    $sortFieldName = aspTrim(replace(replace(replace($addsql, 'order by', ''), ' desc', ''), ' asc', ''));
                    if (inStr($addsql, ' desc') > 0) {
                        $ascOrDesc = 'desc';
                    }
                }
                $GLOBALS['glb_artitleAuthor'] = $rs['author'];
                $GLOBALS['glb_artitleAdddatetime'] = $rs['adddatetime'];
                $GLOBALS['glb_upArticle'] = upArticle($rs['parentid'], $sortFieldName, $rs[$sortFieldName], $ascOrDesc);
                $GLOBALS['glb_downArticle'] = downArticle($rs['parentid'], $sortFieldName, $rs[$sortFieldName], $ascOrDesc);
                $GLOBALS['glb_aritcleRelatedTags'] = aritcleRelatedTags($rs['relatedtags']);
                $GLOBALS['glb_aritcleSmallImage'] = $rs['smallimage'];
                $GLOBALS['glb_aritcleBigImage'] = $rs['bigimage'];
                //文章内容
                //glb_bodyContent = "<div class=""articleinfowrap"">[$articleinfowrap$]</div>" & rs("bodycontent") & "[$relatedtags$]<ul class=""updownarticlewrap"">[$updownArticle$]</ul>"
                //上一篇文章,下一篇文章
                //glb_bodyContent = Replace(glb_bodyContent, "[$updownArticle$]", upArticle(rs("parentid"), "sortrank", rs("sortrank")) & downArticle(rs("parentid"), "sortrank", rs("sortrank")))
                //glb_bodyContent = Replace(glb_bodyContent, "[$articleinfowrap$]", "来源:" & rs("author") & " &nbsp; 发布时间:" & format_Time(rs("adddatetime"), 1))
                //glb_bodyContent = Replace(glb_bodyContent, "[$relatedtags$]", aritcleRelatedTags(rs("relatedtags")))
                $GLOBALS['glb_bodyContent'] = $rs['bodycontent'];
                //文章详细加控制
                if (@$_REQUEST['gl'] == 'edit') {
                    $GLOBALS['glb_bodyContent'] = '<span>' . $GLOBALS['glb_bodyContent'] . '</span>';
                }
                $url = WEB_ADMINURL . '?act=addEditHandle&actionType=ArticleDetail&lableTitle=分类信息&nPageSize=10&page=&parentid=&id=' . RParam($action, 'id') . '&n=' . getRnd(11);
                $GLOBALS['glb_bodyContent'] = handleDisplayOnlineEditDialog($url, $GLOBALS['glb_bodyContent'], '', 'span');
                if ($GLOBALS['templateName'] == '') {
                    if (aspTrim($rs['templatepath']) != '') {
                        $GLOBALS['templateName'] = $rs['templatepath'];
                    } else {
                        $GLOBALS['templateName'] = getDateilTemplate($rs['parentid'], 'Detail');
                    }
                }
            }
            //单页
        } else {
            if ($actionType == 'onepage') {
                $rsObj = $GLOBALS['conn']->query('Select * from ' . $GLOBALS['db_PREFIX'] . 'onepage where id=' . RParam($action, 'id'));
                if (@mysql_num_rows($rsObj) != 0) {
                    $rs = mysql_fetch_array($rsObj);
                    $GLOBALS['glb_detailTitle'] = $rs['title'];
                    $GLOBALS['glb_isonhtml'] = $rs['isonhtml'];
                    //是否生成静态网页
                    if ($GLOBALS['isMakeHtml'] == true) {
                        $GLOBALS['glb_url'] = getHandleRsUrl($rs['filename'], $rs['customaurl'], '/page/page' . $rs['id']);
                    } else {
                        $GLOBALS['glb_url'] = handleWebUrl('?act=detail&id=' . $rs['id']);
                    }
                    if ($rs['webtitle'] != '') {
                        $GLOBALS['cfg_webTitle'] = $rs['webtitle'];
                        //网址标题
                    }
                    if ($rs['webkeywords'] != '') {
                        $GLOBALS['cfg_webKeywords'] = $rs['webkeywords'];
                        //网站关键词
                    }
                    if ($rs['webdescription'] != '') {
                        $GLOBALS['cfg_webDescription'] = $rs['webdescription'];
                        //网站描述
                    }
                    //内容
                    $GLOBALS['glb_bodyContent'] = $rs['bodycontent'];
                    //文章详细加控制
                    if (@$_REQUEST['gl'] == 'edit') {
                        $GLOBALS['glb_bodyContent'] = '<span>' . $GLOBALS['glb_bodyContent'] . '</span>';
                    }
                    $url = WEB_ADMINURL . '?act=addEditHandle&actionType=ArticleDetail&lableTitle=分类信息&nPageSize=10&page=&parentid=&id=' . RParam($action, 'id') . '&n=' . getRnd(11);
                    $GLOBALS['glb_bodyContent'] = handleDisplayOnlineEditDialog($url, $GLOBALS['glb_bodyContent'], '', 'span');
                    if ($GLOBALS['templateName'] == '') {
                        if (aspTrim($rs['templatepath']) != '') {
                            $GLOBALS['templateName'] = $rs['templatepath'];
                        } else {
                            $GLOBALS['templateName'] = 'Main_Model.html';
                            //call echo(templateName,"templateName")
                        }
                    }
                }
                //搜索
            } else {
                if ($actionType == 'Search') {
                    $GLOBALS['templateName'] = 'Main_Model.html';
                    $serchKeyWordName = @$_REQUEST['keywordname'];
                    $parentid = @$_REQUEST['parentid'];
                    if ($serchKeyWordName == '') {
                        $serchKeyWordName = 'wd';
                    }
                    $GLOBALS['glb_searchKeyWord'] = replace(@$_REQUEST[$serchKeyWordName], '<', '&lt;');
                    $addSql = '';
                    if ($parentid != '') {
                        $addSql = ' where parentid=' . $parentid;
                    }
                    $addSql = getWhereAnd($addSql, ' where title like \'%' . $GLOBALS['glb_searchKeyWord'] . '%\'');
                    $npagesize = 20;
                    //call echo(npagesize, npage)
                    $GLOBALS['glb_bodyContent'] = getDetailList($action, defaultListTemplate($GLOBALS['glb_columnType'], $GLOBALS['glb_columnName']), 'ArticleDetail', '网站栏目', '*', $npagesize, $npage, $addSql);
                    $GLOBALS['positionEndStr'] = ' >> 搜索内容”' . $GLOBALS['glb_searchKeyWord'] . '“';
                    //加载等待
                } else {
                    if ($actionType == 'loading') {
                        rwEnd('页面正在加载中。。。');
                    }
                }
            }
        }
    }
    //模板为空,则用默认首页模板
    if ($GLOBALS['templateName'] == '') {
        $GLOBALS['templateName'] = 'Index_Model.html';
        //默认模板
    }
    //检测当前路径是否有模板
    if (inStr($GLOBALS['templateName'], '/') == false) {
        $GLOBALS['templateName'] = $GLOBALS['cfg_webTemplate'] . '/' . $GLOBALS['templateName'];
    }
    //call echo("templateName",templateName)
    if (CheckFile($GLOBALS['templateName']) == false) {
        Eerr('未找到模板文件', $GLOBALS['templateName']);
    }
    $GLOBALS['code'] = getFText($GLOBALS['templateName']);
    $GLOBALS['code'] = handleAction($GLOBALS['code']);
    //处理动作
    $GLOBALS['code'] = thisPosition($GLOBALS['code']);
    //位置
    $GLOBALS['code'] = replaceGlobleVariable($GLOBALS['code']);
    //替换全局标签
    $GLOBALS['code'] = handleAction($GLOBALS['code']);
    //处理动作    '再来一次,处理数据内容里动作
    $GLOBALS['code'] = handleAction($GLOBALS['code']);
    //处理动作
    $GLOBALS['code'] = handleAction($GLOBALS['code']);
    //处理动作
    $GLOBALS['code'] = thisPosition($GLOBALS['code']);
    //位置
    $GLOBALS['code'] = replaceGlobleVariable($GLOBALS['code']);
    //替换全局标签
    $GLOBALS['code'] = delTemplateMyNote($GLOBALS['code']);
    //删除无用内容
    //格式化HTML
    if (inStr($GLOBALS['cfg_flags'], '|formattinghtml|') > 0) {
        //code = HtmlFormatting(code)        '简单
        $GLOBALS['code'] = handleHtmlFormatting($GLOBALS['code'], false, 0, '删除空行');
        //自定义
        //格式化HTML第二种
    } else {
        if (inStr($GLOBALS['cfg_flags'], '|formattinghtmltow|') > 0) {
            $GLOBALS['code'] = htmlFormatting($GLOBALS['code']);
            //简单
            $GLOBALS['code'] = handleHtmlFormatting($GLOBALS['code'], false, 0, '删除空行');
            //自定义
            //压缩HTML
        } else {
            if (inStr($GLOBALS['cfg_flags'], '|ziphtml|') > 0) {
                $GLOBALS['code'] = zipHTML($GLOBALS['code']);
            }
        }
    }
    //闭合标签
    if (inStr($GLOBALS['cfg_flags'], '|labelclose|') > 0) {
        $GLOBALS['code'] = handleCloseHtml($GLOBALS['code'], true, '');
        //图片自动加alt  "|*|",
    }
    //在线编辑20160127
    if (rq('gl') == 'edit') {
        if (inStr($GLOBALS['code'], '</head>') > 0) {
            if (inStr(lCase($GLOBALS['code']), 'jquery.min.js') == false) {
                $GLOBALS['code'] = replace($GLOBALS['code'], '</head>', '<script src="/Jquery/jquery.Min.js"></script></head>');
            }
            $GLOBALS['code'] = replace($GLOBALS['code'], '</head>', '<script src="/Jquery/Callcontext_menu.js"></script></head>');
        }
        if (inStr($GLOBALS['code'], '<body>') > 0) {
            //Code = Replace(Code,"<body>", "<body onLoad=""ContextMenu.intializeContextMenu()"">")
        }
    }
    //call echo(templateName,templateName)
    $makeWebHtml = $GLOBALS['code'];
    return @$makeWebHtml;
}
예제 #5
0
    font-size: 12px;
}
-->
</style>
<script language="javascript">
function checkDel()
    {
    if(confirm("确认要删除吗?删除后将不可恢复!"))
    return true;
    else
    return false;
}
</script>
<?php 
if (@$_SESSION['adminusername'] == '') {
    Eerr('提示', '未登录,请先登录');
}
$conn = OpenConn();
switch (@$_REQUEST['act']) {
    case 'templateFileList':
        displayTemplateDirDialog(@$_REQUEST['dir']);
        templateFileList(@$_REQUEST['dir']);
        break;
        //模板列表
    //模板列表
    case 'delTemplateFile':
        delTemplateFile(@$_REQUEST['dir'], @$_REQUEST['fileName']);
        displayTemplateDirDialog(@$_REQUEST['dir']);
        templateFileList(@$_REQUEST['dir']);
        break;
        //删除模板文件