任何人都可以在此代码中将 ereg 替换为 preg 值:
$phpAds_config['url_prefix'] = strtolower(eregi_replace("^([a-z]+)/.*$", "\\1://",
$HTTP_SERVER_VARS['SERVER_PROTOCOL'])) . $host .
ereg_replace("/admin/install.php(\?.*)?$", "", $HTTP_SERVER_VARS['PHP_SELF']);
任何人都可以在此代码中将 ereg 替换为 preg 值:
$phpAds_config['url_prefix'] = strtolower(eregi_replace("^([a-z]+)/.*$", "\\1://",
$HTTP_SERVER_VARS['SERVER_PROTOCOL'])) . $host .
ereg_replace("/admin/install.php(\?.*)?$", "", $HTTP_SERVER_VARS['PHP_SELF']);