當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。