PEAK XOOPS - 4-4 in englishin japanese

サードパーティ製モジュールでコアをカスタマイズ

XOOPS検索モジュール

リスト 4-2



if ($_SERVER['SCRIPT_FILENAME'] == XOOPS_ROOT_PATH.'/search.php') {
    header('Location: '.XOOPS_URL.'/modules/search/index.php?'.$_SERVER['QUERY_STRING']);
    exit ;
}

白扇モジュール

リスト 4-4



if ( !defined("XOOPS_MAINFILE_INCLUDED") ) {
    define("XOOPS_MAINFILE_INCLUDED",1);

    // XOOPS Physical Path
    // Physical path to your main XOOPS directory WITHOUT trailing slash
    define('XOOPS_ROOT_PATH', '(インストールディレクトリ)');

    // XOOPS Virtual Path (URL)
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    define('XOOPS_URL', '(サイトURL)');

    // ここから追加
    if ($_SERVER['SCRIPT_FILENAME'] == XOOPS_ROOT_PATH.'/userinfo.php') {
        header('Location: '.XOOPS_URL.'/modules/hakusen/userinfo.php?uid='.intval($_GET['uid']));
        exit ;
    }
    if ($_SERVER['SCRIPT_FILENAME'] == XOOPS_ROOT_PATH.'/edituser.php') {
        header('Location: '.XOOPS_URL.'/modules/hakusen/edituser.php');
        exit ;
    }
    if ($_SERVER['SCRIPT_FILENAME'] == XOOPS_ROOT_PATH.'/register.php') {
        header('Location: '.XOOPS_URL.'/modules/hakusen/register.php');
        exit ;
    }
    // ここまで追加

    if ($_SERVER['SCRIPT_FILENAME'] == XOOPS_ROOT_PATH.'/userinfo.php') {

myAlbum-P イメージマネージャ統合

リスト 4-6



if ($_SERVER['SCRIPT_FILENAME'] == XOOPS_ROOT_PATH.'/imagemanager.php') {
    include XOOPS_ROOT_PATH.'/modules/myalbum0/imagemanager.php' ;
    exit ;
}

Printer friendly
Tell a friend
Votes:155 Average:3.81
Prev
4-3
top of the category
Sourcecodes of "Customizing XOOPS"
Next
4-5
Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!