Пример #1
0
function ReDtPage($userid, $username)
{
    //操作权限
    CheckLevel($userid, $username, $classid, "changedata");
    GetPlTempPage();
    //评论列表模板
    GetPlJsPage();
    //评论JS模板
    ReCptemp();
    //控制面板模板
    GetSearch();
    //三搜索表单模板
    GetPrintPage();
    //打印模板
    GetDownloadPage();
    //下载地址页面
    ReGbooktemp();
    //留言板模板
    ReLoginIframe();
    //登陆状态模板
    ReSchAlltemp();
    //全站搜索模板
    //操作日志
    insert_dolog("");
    printerror("ReDtPageSuccess", "history.go(-1)");
}
Пример #2
0
<?php

//====================================================
//		FileName:	mod_boxlist.php
//		Summary:	音乐盒列表模块
//		Author:		millken(迷路林肯)
//		LastModifed:2008-9-19
//		copyright (c)2008 millken@gmail.com
//====================================================
if (!defined('OK')) {
    exit('Access Denied');
}
include ROOT_PATH . 'include/media.func.php';
include ROOT_PATH . 'include/box.func.php';
if ($i == 1) {
    die(GetSearch('张学友'));
}
if ($Productid) {
    die(GetSongListByProductids($Productid));
}
if ($lrcurl) {
    die(GetLrc($lrcurl));
}
if ($addsong != '') {
    $content = GetSearch($addsong);
    die($content);
}
$templatefile = 'boxlist.html';
Пример #3
0
function DelClass($classid, $userid, $username)
{
    global $empire, $dbtbpre;
    $classid = (int) $classid;
    if (!$classid) {
        printerror("NotDelClassid", "");
    }
    //操作权限
    CheckLevel($userid, $username, $classid, "class");
    $r = $empire->fetch1("select * from {$dbtbpre}enewsclass where classid='{$classid}'");
    if (empty($r[classid])) {
        printerror("NotClassid", "history.go(-1)");
    }
    DelClass1($classid);
    GetClass();
    GetSearch($r[modid]);
    //返回地址
    if ($_GET['from']) {
        $returnurl = "ListPageClass.php";
    } else {
        $returnurl = "ListClass.php";
    }
    TogNotReClass(1);
    insert_dolog("classid=" . $classid . "<br>classname=" . $r[classname]);
    //操作日志
    printerror("DelClassSuccess", $returnurl);
}
Пример #4
0
function Moreport_ChangeData($portr, $ecms = 0)
{
    global $empire, $dbtbpre, $public_r, $ecms_config;
    $ecms_config['sets']['deftempid'] = $portr['tempgid'];
    if ($ecms == 1) {
        GetPlTempPage();
        //评论列表模板
        GetPlJsPage();
        //评论JS模板
        ReCptemp();
        //控制面板模板
        GetSearch();
        //三搜索表单模板
        GetPrintPage();
        //打印模板
        GetDownloadPage();
        //下载地址页面
        ReGbooktemp();
        //留言板模板
        ReLoginIframe();
        //登陆状态模板
        ReSchAlltemp();
        //全站搜索模板
        //防采集缓存
        $yfile = ECMS_PATH . DASHBOARD . '/data/dbcache/notcj.php';
        $nfile = ECMS_SELFPATH . DASHBOARD . '/data/dbcache/notcj.php';
        @copy($yfile, $nfile);
    } elseif ($ecms == 2) {
        //临时文件目录
        $tmppath = ECMS_SELFPATH . DASHBOARD . '/data/tmp';
        $hand = @opendir($tmppath);
        while ($file = @readdir($hand)) {
            if ($file == '.' || $file == '..' || $file == 'test.txt' || $file == 'index.html' || $file == 'mod' || $file == 'temp' || $file == 'titlepic' || $file == 'cj') {
                continue;
            }
            $filename = $tmppath . '/' . $file;
            if (!is_dir($filename)) {
                DelFiletext($filename);
            }
        }
    } elseif ($ecms == 3) {
        $ypath = ECMS_PATH . 'd/js';
        $npath = ECMS_SELFPATH . 'd/js';
        CopyPath($ypath, $npath);
        $ypath = ECMS_PATH . DASHBOARD . '/data/fc';
        $npath = ECMS_SELFPATH . DASHBOARD . '/data/fc';
        CopyPath($ypath, $npath);
        $ypath = ECMS_PATH . DASHBOARD . '/data/html';
        $npath = ECMS_SELFPATH . DASHBOARD . '/data/html';
        CopyPath($ypath, $npath);
        $ypath = ECMS_PATH . DASHBOARD . '/data/template';
        $npath = ECMS_SELFPATH . DASHBOARD . '/data/template';
        CopyPath($ypath, $npath);
    } elseif ($ecms == 4) {
        if ($portr['mustdt'] || $public_r['indexpagedt']) {
            DelFiletext(ECMS_SELFPATH . 'index' . $public_r['indextype']);
            @copy(ECMS_SELFPATH . DASHBOARD . '/data/template/dtindexpage.txt', ECMS_SELFPATH . 'index.php');
        }
    } else {
        //更新参数设置
        GetConfig(1);
        //更新类别
        GetClass();
        //更新会员组
        GetMemberLevel();
        //更新全站搜索数据表
        GetSearchAllTb();
    }
}
Пример #5
0
    }
    $allface = "document.write(\"<script src='" . $public_r[newsurl] . "e/data/js/addplface.js'></script>\");document.write(\"" . $allface . "\");";
    WriteFiletext_n($filename, $allface);
}
//更新其它数据
if ($ecms == 'ChangeInstallOtherData') {
    //--- 删除缓存文件 ---
    DelListEnews();
    //--- 更新动态页面 ---
    GetPlTempPage();
    //评论列表模板
    GetPlJsPage();
    //评论JS模板
    ReCptemp();
    //控制面板模板
    GetSearch();
    //三搜索表单模板
    GetPrintPage();
    //打印模板
    GetDownloadPage();
    //下载地址页面
    ReGbooktemp();
    //留言板模板
    ReLoginIframe();
    //登陆状态模板
    ReSchAlltemp();
    //全站搜索模板
    //生成首页
    $indextemp = GetIndextemp();
    NewsBq(0, $indextemp, 1, 0);
    //--- 更新反馈表单 ---
Пример #6
0
function ChangeAllModForm($add, $userid, $username)
{
    global $empire, $dbtbpre;
    //验证权限
    CheckLevel($userid, $username, $classid, "changedata");
    $sql = $empire->query("select mid,tid,mtemp,qmtemp,cj from {$dbtbpre}enewsmod");
    while ($r = $empire->fetch($sql)) {
        ChangeMForm($r[mid], $r[tid], $r[mtemp]);
        //更新表单
        ChangeQmForm($r[mid], $r[tid], $r[qmtemp]);
        //更新前台表单
        ChangeMCj($r[mid], $r[tid], $r[cj]);
        //采集表单
        //更新栏目导航
        if ($add['ChangeClass'] == 1) {
            GetSearch($r[mid]);
        }
    }
    //操作日志
    insert_dolog("ChangeClass={$add['ChangeClass']}");
    printerror("ChangeAllModFormSuccess", "history.go(-1)");
}
Пример #7
0
function EditSearchTemp($tempname, $temptext, $userid, $username)
{
    global $empire, $dbtbpre, $public_r;
    if (empty($temptext) || empty($tempname)) {
        printerror("EmptySearchTemp", "history.go(-1)");
    }
    //操作权限
    CheckLevel($userid, $username, $classid, "template");
    $temptext = RepPhpAspJspcode($temptext);
    $tempname = RepPostVar($tempname);
    if ($tempname == "searchtemp") {
        $f = "searchtemp";
        $tname = "searchformtemp";
        $temptype = 'pubsearchtemp';
    } elseif ($tempname == "searchjstemp") {
        $temptext = str_replace("\r\n", "", $temptext);
        $f = "searchjstemp";
        $tname = "searchformjs";
        $temptype = 'pubsearchjstemp';
    } else {
        $temptext = str_replace("\r\n", "", $temptext);
        $f = "searchjstemp1";
        $tname = "searchformjs1";
        $temptype = 'pubsearchjstemp1';
    }
    $gid = (int) $_POST['gid'];
    $sql = $empire->query("update " . GetDoTemptb("enewspubtemp", $gid) . " set " . $f . "='" . eaddslashes2($temptext) . "'");
    //备份模板
    AddEBakTemp($temptype, $gid, 1, '', $temptext, 0, 0, '', 0, 0, '', 0, 0, 0, $userid, $username);
    if ($gid == $public_r['deftempid'] || !$public_r['deftempid'] && ($gid == 1 || $gid == 0)) {
        GetSearch();
    }
    if ($sql) {
        //操作日志
        insert_dolog("temp={$f}&gid={$gid}");
        printerror("EditSearchTempSuccess", "template/EditPublicTemp.php?tname={$tname}&gid={$gid}" . hReturnEcmsHashStrHref2(0) . "#{$tempname}");
    } else {
        printerror("DbError", "history.go(-1)");
    }
}