当前位置: 首页>>代码示例>>PHP>>正文


PHP check::WindowLocation方法代码示例

本文整理汇总了PHP中check::WindowLocation方法的典型用法代码示例。如果您正苦于以下问题:PHP check::WindowLocation方法的具体用法?PHP check::WindowLocation怎么用?PHP check::WindowLocation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在check的用法示例。


在下文中一共展示了check::WindowLocation方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: str_replace

    }
    if ($_POST['summary'] == '') {
        $_POST['summary'] = check::csubstr(trim(str_replace(" ", " ", str_replace("\r\n", "", strip_tags($_POST['intro'])))), 0, $arrGWeb['db_summary_len']);
    }
    if (is_array($_POST['photo'])) {
        $_POST['thumbnail'] = $_POST['photo'][0]['photo'];
    } else {
        $_POST['thumbnail'] = $_POST['photo'];
    }
    $_POST['photo'] = array_values($_POST['photo']);
    $_POST['video'] = array_values($_POST['video']);
    //print_r($_POST);exit;
    $_POST = array_merge($arrInfo, $_POST);
    $objWebInit->saveInfo($_POST, 1);
    $objWebInit->updateCache($_POST['id'], $_POST['type_id'], $arrMOutput);
    check::WindowLocation('index.php', $_SERVER["QUERY_STRING"]);
}
if (!is_array($arrMType) || empty($arrMType)) {
    $arrMType = $objWebInit->getTypeList();
    $arrMType = $objWebInit->formatTypeList(0, $arrMType);
}
//print_r($arrMYear);
// 输出到模板
$arrMOutput["template_file"] = "admin.html";
$arrMOutput["smarty_assign"]['FileCallPath'] = $objWebInit->arrGPic['FileCallPath'];
$arrMOutput["smarty_assign"]['FileListPicSize'] = $objWebInit->arrGPic['FileListPicSize'];
$arrMOutput["smarty_assign"]['arrData'] = $arrInfo;
$arrMOutput["smarty_assign"]['arrMType'] = $arrMType;
$arrMOutput["smarty_assign"]['arrTypeB'] = $arrMTypeB;
$arrMOutput["smarty_assign"]['action_type'] = "save";
$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['admin_main_dir'] . 'submit.htm';
开发者ID:TiMoChao,项目名称:xingfu,代码行数:31,代码来源:modifyinfo.php

示例2: array_values

    }
    if (is_array($_POST['photo'])) {
        $_POST['thumbnail'] = $_POST['photo'][0]['photo'];
    } else {
        $_POST['thumbnail'] = $_POST['photo'];
    }
    $_POST['photo'] = array_values($_POST['photo']);
    $_POST['video'] = array_values($_POST['video']);
    #自动拆字生成tag
    if (empty($_POST['tag'])) {
        $objSP = new SplitWord();
        $_POST['tag'] = $objSP->SplitRMM($_POST['title'], false);
    }
    $_POST = array_merge($arrInfo, $_POST);
    $objWebInit->saveInfo($_POST, 1);
    $objWebInit->updateCache($_POST['id'], $_POST['type_id'], $arrMOutput);
    check::WindowLocation('index.php', 'page=' . $_GET['page']);
}
if (!is_array($arrMType) || empty($arrMType)) {
    $arrMType = $objWebInit->getTypeList();
    $arrMType = $objWebInit->formatTypeList(0, $arrMType);
}
// 输出到模板
$arrMOutput["template_file"] = "admin.html";
$arrMOutput["smarty_assign"]['FileCallPath'] = $objWebInit->arrGPic['FileCallPath'];
$arrMOutput["smarty_assign"]['FileListPicSize'] = $objWebInit->arrGPic['FileListPicSize'];
$arrMOutput["smarty_assign"]['arrData'] = $arrInfo;
$arrMOutput["smarty_assign"]['arrMType'] = $arrMType;
$arrMOutput["smarty_assign"]['action_type'] = "save";
$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['admin_main_dir'] . 'submit.htm';
$objWebInit->output($arrMOutput);
开发者ID:TiMoChao,项目名称:lc_ad_first,代码行数:31,代码来源:modifyinfo.php

示例3: strrchr

        $_POST['UploadFile'] = $objWebInit->uploadInfoImage($_FILES['UploadFile']);
    }
    //取得图片链接的文件类型
    if (!empty($_POST['UploadFile'])) {
        $Uploadfile = $_POST['UploadFile'];
        $_POST['FileExt'] = strrchr($Uploadfile, ".");
    } else {
        if (!empty($_POST['weblogo'])) {
            $_POST['FileExt'] = strrchr($_POST['weblogo'], ".");
        }
    }
    //清除不要的字段
    unset($_POST['savefilename']);
    $objWebInit->saveInfo($_POST, 0);
    if (!empty($_POST['position'])) {
        $position = $_POST['position'];
        if ($position > 0) {
            $strWhere = "  where pass=1 and deadline_date > now() and position=" . $position;
            $arrData = $objWebInit->getInfoList($strWhere, ' ORDER BY submit_date DESC');
            $objWebInit->creatJS($arrData, $position);
        }
    }
    echo "<script>" . check::WindowLocation('index.php', 'page=' . $_GET['page']) . "</script>";
    exit;
}
// 输出到模板
$arrMOutput["template_file"] = "admin.html";
$arrMOutput["smarty_assign"]['arrPosition'] = $arrMType;
$arrMOutput["smarty_assign"]['FileCallPath'] = $arrGPic['FileCallPath'];
$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['admin_main_dir'] . 'submit.htm';
$objWebInit->output($arrMOutput);
开发者ID:TiMoChao,项目名称:lc_ad_first,代码行数:31,代码来源:addinfo.php

示例4: array

    @(include $strFilename);
    if (empty($_POST['ssl'])) {
        $_POST['ssl'] = 0;
    }
    if (empty($_POST['auth'])) {
        $_POST['auth'] = 0;
    }
    $arrMsmtp[] = array('host' => $_POST['host'], 'port' => $_POST['port'], 'username' => $_POST['username'], 'password' => $_POST['password'], 'ssl' => $_POST['ssl'], 'auth' => (bool) $_POST['auth'], 'replyuname' => $_POST['replyuname'], 'replymail' => $_POST['replymail'], 'email' => $_POST['email'], 'pass' => 1);
    krsort($arrMsmtp);
    $somecontent = '<?php' . "\n" . '$arrMsmtp = ' . var_export($arrMsmtp, true) . ';' . "\n" . '?>';
    // 首先我们要确定文件存在并且可写。
    if (!($handle = fopen($strFilename, 'w'))) {
        check::AlertExit("错误:不能以'写'模式打开文件 {$strFilename} !", -1);
    }
    // 将$somecontent写入到我们打开的文件中。
    if (fwrite($handle, $somecontent) === FALSE) {
        check::AlertExit("错误:不能写入到文件 {$strFilename} !", -1);
    }
    fclose($handle);
    if (empty($_GET['page'])) {
        $page = '';
    } else {
        $page = 'page=' . $_GET['page'];
    }
    check::WindowLocation('index.php', $page);
}
// 输出到模板
$arrMOutput["smarty_assign"]['strNav'] = '新增SMTP邮局';
$arrMOutput["template_file"] = "admin.html";
$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['admin_main_dir'] . 'email/smtp/submit.htm';
$objWebInit->output($arrMOutput);
开发者ID:TiMoChao,项目名称:xingfu,代码行数:31,代码来源:addinfo.php

示例5: unlink

         }
         if (is_file($strOldBFile)) {
             unlink($strOldBFile);
         }
         if (is_file($strOldMFile)) {
             unlink($strOldMFile);
         }
         //unset($arrUserinfo['thumbnail']);
         $arrTemp['thumbnail'] = '';
         $arrTemp['user_id'] = $arrUserinfo['user_id'];
         $objWebInit->updateUser($arrTemp);
         //同步user表
         $arrTemp['recommendflag'] = 0;
         $strTemp = check::getAPIArray($arrTemp);
         check::getAPI('user', 'updateUser', $strTemp);
         check::WindowLocation("?action=edit&id=" . $userid . "");
     } else {
         check::AlertExit('删除失败!', -1);
     }
 }
 $arrTemp = array();
 foreach ($arrGMeta as $k => $v) {
     if ($k != 'index') {
         $arrTemp[$k]['r'] = $v['name'];
         $arrTemp[$k]['w'] = '写';
         $arrTemp[$k]['d'] = '删';
         $arrTemp[$k]['x'] = '执行';
     }
 }
 $arrTemp['siteset']['r'] = '系统设定';
 $arrTemp['pay']['r'] = '在线支付';
开发者ID:TiMoChao,项目名称:xingfu,代码行数:31,代码来源:modifyinfo.php

示例6: unlink

    if ($_FILES['Filedata']['name'] != "") {
        $strOldFile = $arrGPic['FileSavePath'] . 's/' . $_POST['savefilename'];
        if (is_file($strOldFile)) {
            // 缩略图删除
            unlink($strOldFile);
        }
        $strOldFile = $arrGPic['FileSavePath'] . 'b/' . $_POST['savefilename'];
        if (is_file($strOldFile)) {
            // 原文件删除
            unlink($strOldFile);
        }
        $_POST['photo1'] = $objWebInit->uploadInfoImage($_FILES['Filedata'], '', $_POST['FileListPicSize'], $_POST['csize0'], $arrInfo['user_id']);
    } else {
        $_POST['photo1'] = $_POST['savefilename'];
    }
    // 取会员信息
    $arrInfo['photo1'] = $_POST['photo1'];
    //修改状态表明正在申请验证,必须设定为字符串形式
    $arrInfo['pass'] = '0';
    if (!empty($arrInfo)) {
        $objWebInit->saveInfo($arrInfo, 1);
        echo "<script>" . check::WindowLocation('/user/adminu/licence.php') . "</script>";
        exit;
    }
}
$arrInfo = $_SESSION;
// 输出到模板
$arrMOutput["smarty_assign"]['info'] = $arrInfo;
$arrMOutput["smarty_assign"]['FileCallPath'] = $arrGPic['FileCallPath'];
$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['adminu_main_dir'] . 'licence.html';
$objWebInit->output($arrMOutput);
开发者ID:TiMoChao,项目名称:lc_ad_first,代码行数:31,代码来源:licence.php

示例7: move_uploaded_file

    move_uploaded_file($_FILES['logo']['tmp_name'], $strSaveDir);
    $arrTemp = array();
    $arrTemp['cache_url'] = $arrGWeb['cache_url'];
    $arrTemp['cache_dir'] = $arrGSmarty['cache_dir'];
    $arrTemp['compile_dir'] = $arrGSmarty['compile_dir'];
    unset($_POST['okgo']);
    unset($arrGWeb);
    $strFilename = '../../data/webconfig.inc.php';
    include $strFilename;
    $arrGWeb['logo'] = $strLogoPicName;
    $somecontent = '<?php' . "\n" . '$arrGWeb = ' . var_export($arrGWeb, true) . ';' . "\n" . '$arrGMeta = ' . var_export($arrGMeta, true) . ';' . "\n" . '?>';
    if (!($handle = fopen($strFilename, 'w'))) {
        check::AlertExit("错误:不能打开文件 {$strFilename} !", -1);
    }
    // 将$somecontent写入到我们打开的文件中。
    if (fwrite($handle, $somecontent) === FALSE) {
        check::AlertExit("错误:不能写入到文件 {$strFilename} !", -1);
    }
    fclose($handle);
    @set_time_limit(0);
    check::delTreeDirs('../..' . $arrTemp['cache_url'] . '/', false);
    check::delTreeDirs($arrTemp['cache_dir'], false);
    check::delTreeDirs($arrTemp['compile_dir'], false);
    check::Alert("成功地写入到文件 {$strFilename} !");
    check::WindowLocation('logo.php');
}
// 输出到模板
$arrMOutput["smarty_assign"]['strNav'] = '网站信息设置管理';
$arrMOutput["template_file"] = "admin.html";
$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['admin_main_dir'] . 'siteset/logo.htm';
$objWebInit->output($arrMOutput);
开发者ID:TiMoChao,项目名称:xingfu,代码行数:31,代码来源:logo.php

示例8: dirname

    check::AlertExit('对不起,您没有权限访问此页', -1);
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    if (empty($_POST['module_name'])) {
        check::AlertExit("错误:单页名称不能为空!", -1);
    }
    if (empty($_POST['type_title_english'])) {
        check::AlertExit("错误:英文标识名称!", -1);
    }
    if (empty($_POST['intro'])) {
        check::AlertExit("错误:内容不能为空!", -1);
    }
    $objWebInit->saveInfo($_POST, 1, 0);
    //更新smarty缓存文件或纯静态文件
    $objWebInit->updateCache($_POST['type_title_english'], '', $arrMOutput);
    check::WindowLocation('index.php', 'id=' . $_POST['id']);
}
$arrInfo = $objWebInit->getInfo($_GET['id']);
$arrInfo['userurl'] = "<?{url url='/archives/detail.php?name=" . $arrInfo['type_title_english'] . "' cache='1'}?>";
//detree树状图加载
//###############################################################
define('__WEB_ROOT', dirname(__FILE__) . "/../..");
$templateDir = __WEB_ROOT . '/templates/' . $arrGWeb['templates_id'];
$arrTreeFiles = array();
check::mapTreeFiles($templateDir, true);
$arrTreeFiles = str_replace($templateDir . '/', '', $arrTreeFiles);
//过滤类型
$arrFile = array('.html', '.htm', '.js', '.css');
$arrFilesDirs = array();
foreach ($arrTreeFiles as $v) {
    $isContinue = false;
开发者ID:TiMoChao,项目名称:xingfu,代码行数:31,代码来源:modifyinfo.php

示例9: unset

    unset($_POST['year']);
    unset($_POST['month']);
    unset($_POST['day']);
    //会员密码处理
    if (!empty($arrGWeb['user_pass_type'])) {
        $_POST['password'] = check::strEncryption($_POST['password'], $arrGWeb['jamstr']);
    }
    $intID = $objWebInit->saveInfo($_POST, 0, false, true);
    if ($intID) {
        $arrData['user_id'] = $intID;
        $arrData['add_date'] = date('Y-m-d H:i:s');
        $strData = check::getAPIArray($arrData);
        check::getAPI('mcenter', 'updateUser', $strData);
    } else {
        check::AlertExit('注册失败', -1);
    }
    check::WindowLocation($arrGWeb['WEB_ROOT_pre'] . '/mcenter/admin/index.php');
}
$arrTemp = array();
foreach ($arrGMeta as $k => $v) {
    if ($k != 'index') {
        $arrTemp[$k] = $v['name'];
    }
}
// 输出到模板
$arrMOutput["template_file"] = "admin.html";
$arrMOutput["smarty_assign"]['arrGMeta'] = $arrTemp;
$arrMOutput["smarty_assign"]['arrMType'] = $arrMType;
//性别
$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['admin_main_dir'] . 'user_edit.htm';
$objWebInit->output($arrMOutput);
开发者ID:TiMoChao,项目名称:xingfu,代码行数:31,代码来源:addinfo.php

示例10: foreach

        }
    }
    foreach ($arrInfo as $k => $v) {
        if (array_key_exists($k, $_POST)) {
            $arrInfo[$k] = $_POST[$k];
        }
    }
    $intID = $objWebInit->saveInfo($arrInfo, 1);
    if ($intID) {
        $_SESSION['user_id'] = $_SESSION['user_id'];
        $_SESSION['tel'] = empty($_POST['tel']) ? '' : $_POST['tel'];
        $_SESSION['mobile'] = empty($_POST['mobile']) ? '' : $_POST['mobile'];
        $_SESSION['company_cn'] = empty($_POST['company_cn']) ? '' : $_POST['company_cn'];
        $_SESSION['real_name'] = empty($_POST['real_name']) ? '' : $_POST['real_name'];
        $_SESSION['email'] = empty($_POST['email']) ? '' : $_POST['email'];
        $_SESSION['tel'] = empty($_POST['tel']) ? '' : $_POST['tel'];
        $_SESSION['province'] = empty($_POST['province']) ? '' : $_POST['province'];
        $_SESSION['city'] = empty($_POST['city']) ? '' : $_POST['city'];
        $_SESSION['area'] = empty($_POST['area']) ? '' : $_POST['area'];
        $_SESSION['county'] = empty($_POST['county']) ? '' : $_POST['county'];
        $_SESSION['address'] = empty($_POST['address']) ? '' : $_POST['address'];
        $_SESSION['postcode'] = empty($_POST['postcode']) ? '' : $_POST['postcode'];
    }
    check::WindowLocation($arrGWeb['WEB_ROOT_pre'] . '/user/adminu/modify_user.php');
}
// 输出到模板
$arrMOutput["smarty_assign"]['arrData'] = $arrInfo;
$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['adminu_main_dir'] . 'modify_user.html';
//全站公用block
@(include '../../_block.php');
$objWebInit->output($arrMOutput);
开发者ID:TiMoChao,项目名称:lc_ad_first,代码行数:31,代码来源:modify_user.php

示例11: array

    //进行排序
    $arrTmp = array();
    foreach ($navigate_new as $k => $v) {
        $arrTmp[$v['sort'] . '_' . $k] = $v;
    }
    sort($arrTmp);
    $navigate_new = array();
    foreach ($arrTmp as $k => $v) {
        $v['sort'] = $k + 1;
        $navigate_new[$k] = $v;
    }
    $strFilename = '../../data/navigate.inc.php';
    @(include $strFilename);
    $somecontent = '<?php' . "\n" . '$arrGNavigate = ' . var_export($navigate_new, true) . ';' . "\n" . '?>';
    if (!($handle = fopen($strFilename, 'w'))) {
        check::AlertExit("错误:不能打开文件 {$strFilename} !", -1);
    }
    // 将$somecontent写入到我们打开的文件中。
    if (fwrite($handle, $somecontent) === FALSE) {
        check::AlertExit("错误:不能写入到文件 {$strFilename} !", -1);
    }
    fclose($handle);
    check::Alert("成功地写入到文件 {$strFilename} !");
    check::WindowLocation('navigate.php');
}
// 输出到模板
$arrMOutput["smarty_assign"]['strNav'] = '网站导航设置管理';
$arrMOutput["smarty_assign"]['arrGWeb'] = $arrGWeb;
$arrMOutput["template_file"] = "admin.html";
$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['admin_main_dir'] . 'siteset/navigate.htm';
$objWebInit->output($arrMOutput);
开发者ID:TiMoChao,项目名称:xingfu,代码行数:31,代码来源:navigate.php

示例12: unset

    $arrTemp['cache_url'] = $arrGWeb['cache_url'];
    $arrTemp['cache_dir'] = $arrGSmarty['cache_dir'];
    $arrTemp['compile_dir'] = $arrGSmarty['compile_dir'];
    unset($_POST['okgo']);
    unset($arrGWeb);
    $strFilename = '../../data/webconfig.inc.php';
    include $strFilename;
    foreach ($_POST as $k => $v) {
        $arrGWeb[$k] = $v;
    }
    $somecontent = '<?php' . "\n" . '$arrGWeb = ' . var_export($arrGWeb, true) . ';' . "\n" . '$arrGMeta = ' . var_export($arrGMeta, true) . ';' . "\n" . '?>';
    if (!($handle = fopen($strFilename, 'w'))) {
        check::AlertExit("错误:不能打开文件 {$strFilename} !", -1);
    }
    // 将$somecontent写入到我们打开的文件中。
    if (fwrite($handle, $somecontent) === FALSE) {
        check::AlertExit("错误:不能写入到文件 {$strFilename} !", -1);
    }
    fclose($handle);
    @set_time_limit(0);
    check::delTreeDirs('../..' . $arrTemp['cache_url'] . '/', false);
    check::delTreeDirs($arrTemp['cache_dir'], false);
    check::delTreeDirs($arrTemp['compile_dir'], false);
    check::Alert("成功地写入到文件 {$strFilename} !");
    check::WindowLocation('siteset.php');
}
// 输出到模板
$arrMOutput["smarty_assign"]['strNav'] = '网站信息设置管理';
$arrMOutput["template_file"] = "admin.html";
$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['admin_main_dir'] . 'siteset/siteset.htm';
$objWebInit->output($arrMOutput);
开发者ID:TiMoChao,项目名称:xingfu,代码行数:31,代码来源:siteset.php

示例13: unset

            $_POST['photo' . $i] = $objWebInit->uploadInfoImage($_FILES['Filedata' . $num], $num, $_POST['csize' . $i]);
            unset($_POST['csize' . $i]);
        }
        unset($_POST['savefilename' . $i]);
    }
    //生日转换
    $_POST['birthday'] = date('Y-m-d', strtotime($_POST['year'] . '-' . $_POST['month'] . '-' . $_POST['day']));
    unset($_POST['year']);
    unset($_POST['month']);
    unset($_POST['day']);
    //会员信息密码处理
    if (!empty($arrGWeb['user_pass_type'])) {
        $_POST['password'] = check::strEncryption($_POST['password'], $arrGWeb['jamstr']);
    }
    $objWebInit->saveInfo($_POST, 0);
    check::WindowLocation('./index.php', '1');
}
$arrTemp = array();
foreach ($arrGMeta as $k => $v) {
    if ($k != 'index') {
        $arrTemp[$k]['r'] = $v['name'];
        $arrTemp[$k]['w'] = '写';
        $arrTemp[$k]['d'] = '删';
        $arrTemp[$k]['x'] = '执行';
    }
}
$arrTemp['siteset']['r'] = '系统设定';
$arrTemp['pay']['r'] = '在线支付';
$arrTemp['seo']['r'] = 'SEO优化';
$arrTemp['backup']['r'] = '数据备份';
$arrTemp['tools']['r'] = '系统工具';
开发者ID:TiMoChao,项目名称:xingfu,代码行数:31,代码来源:addinfo.php


注:本文中的check::WindowLocation方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。