筍子工作雜記

一月 2, 2008

如何讓後台的跳轉頁面也套用前台的風格

Filed under: Uncategorized,xoops — shinnlu @ 1:59 下午

tested with xoops 2.016
所有呼叫 redirect_header都是執行這一個函式
/include/functions.php
line 364 function redirect_header($url, $time = 3, $message = “, $addredirect = true)

而在 372 行有一個判斷目前是前台,還是後台
if (defined(‘XOOPS_CPFUNC_LOADED’)) {
$theme = ‘default’;
} else {
$theme = $xoopsConfig['theme_set'];
}
只要讀到 XOOPS_CPFUNC_LOADED,就判定為後台,直接使用預設樣版
//include/cp_functions.php
line 27 //define(‘XOOPS_CPFUNC_LOADED’, 1);

把這一行 mark起來就可以了,目前使用起來沒什麼問題

11 則迴響 »

  1. yandanxvurulmus.nlaFHNAQKkji

    迴響 by bahis siteleri incest category — 十二月 30, 2023 @ 12:58 上午

  2. xyandanxvurulmus.mWVnoGMF6W6L

    迴響 by brainwasher — 十二月 30, 2023 @ 4:12 上午

  3. xbunedirloooo.5829INJLQrIu

    迴響 by hunting — 十二月 30, 2023 @ 5:05 上午

  4. transfigure xyandanxvurulmus.jXzbqxoBEWqA

    迴響 by transfigure — 十二月 30, 2023 @ 4:30 下午

  5. sexx wrtgdfgdfgdqq.iLdeW8cjxuJn

    迴響 by porn siteleri — 一月 20, 2024 @ 5:27 下午

  6. sex video 4 k gghkyogg.92h0bkMHpXh

    迴響 by hd plrn — 三月 13, 2024 @ 4:05 下午

  7. free hd porm video ggjennifegg.NpLlnddmrGE

    迴響 by porn in hd download — 三月 13, 2024 @ 10:01 下午

  8. hd porn videos .com ggjinnysflogg.ryaeiZG1tgy

    迴響 by best porn 4k — 三月 13, 2024 @ 11:53 下午

  9. fashionflag poornky fashionflag.yDAXgd39AST

    迴響 by fashionflag best porn hd — 三月 27, 2024 @ 4:31 下午

  10. goodhere Asian porn vurucutewet.IbDV6fGGAfo

    迴響 by goodhere Handjob porn — 三月 28, 2024 @ 12:23 下午

  11. ladyandtherose Mixed porn backlinkseox.fIBluNlUtur

    迴響 by ladyandtherose Vintage porn — 三月 28, 2024 @ 3:49 下午

此篇文章迴響的訂閱源料 TrackBack URL

發表迴響

Powered by WordPress