<?php
//==================================================================
//=================include/common.inc.php===========================
//==================================================================
//dirname(__FILE__),返回路径%root%/ads/include
//substr(dirname("file"),0,-8);取得文件的上一级目录,返回%root%/ads,因为/include为8个字符
//定义常量MOD_ROOT,指向模块根目录
define('MOD_ROOT', substr(dirname(__FILE__), 0, -8));
//定义变量$mod为......
阅读全文