不是 php 处理的。
找到了,在 views/default/global/header_meta.tpl.htm 中都有。
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<meta http-equiv="X-UA-Compatible" content="<?php echo X_UA_COMPATIBLE; ?>" />
<title><?php echo $this->page_title; ?></title>
<meta name="keywords" content="<?php echo $this->_meta_keywords; ?>" />
<meta name="description" content="<?php echo $this->_meta_description; ?>" />
<base href="<?php echo get_setting('base_url');?>/<?php if (get_setting('url_rewrite_enable') != 'Y') { ?><?php echo G_INDEX_SCRIPT; ?><?php } ?>" /><!--[if IE]></base><![endif]-->
<link href="<?php echo G_STATIC_URL; ?>/css/<?php echo $this->template_name; ?>/img/favicon.png?v=<?php echo G_VERSION_BUILD; ?>" rel="shortcut icon" type="image/x-icon" />
<link href="<?php echo G_STATIC_URL; ?>/css/bootstrap.css" rel="stylesheet" type="text/css" />
<?php if (is_array($this->_import_css_files)) { ?>
<?php foreach ($this->_import_css_files AS $import_css) { ?>
<link href="<?php echo $import_css; ?>?v=<?php echo G_VERSION_BUILD; ?>" rel="stylesheet" type="text/css" />
<?php } ?>
<?php } ?>
<?php if ($this->template_name != 'default') { ?>
<link href="<?php echo G_STATIC_URL; ?>/css/<?php echo $this->template_name; ?>/<?php echo $this->template_name; ?>.css" rel="stylesheet" type="text/css" />
<?php } ?>
<?php $post_hash_var_name = strtoupper(md5(time() . $this->userinfo['salt'])); ?>
<script type="text/javascript">
var _<?php echo $post_hash_var_name; ?>='<?php echo new_post_hash(); ?>';
var G_POST_HASH=_<?php echo $post_hash_var_name; ?>;
var G_INDEX_SCRIPT = '<?php if (get_setting('url_rewrite_enable') != 'Y') { ?><?php echo G_INDEX_SCRIPT; ?><?php } ?>';
var G_SITE_NAME = '<?php echo addcslashes(get_setting('site_name'), "'"); ?>';
var G_BASE_URL = '<?php echo get_setting('base_url'); ?><?php if (get_setting('url_rewrite_enable') != 'Y') { ?>/<?php echo rtrim(G_INDEX_SCRIPT, '/'); ?><?php } ?>';
var G_STATIC_URL = '<?php echo G_STATIC_URL; ?>';
var G_UPLOAD_URL = '<?php echo get_setting('upload_url'); ?>';
var G_USER_ID = <?php echo $this->user_id; ?>;
var G_USER_NAME = '<?php echo addcslashes($this->user_info['user_name'], "'"); ?>';
var G_UPLOAD_ENABLE = '<?php echo get_setting('upload_enable'); ?>';
var G_QUICK_PUBLISH_HUMAN_VALID = '<?php if (human_valid('question_valid_hour')) { ?>1<?php } ?>';
var G_UNREAD_NOTIFICATION = 0;
var G_NOTIFICATION_INTERVAL = <?php echo intval(get_setting('unread_flush_interval')) * 1000; ?>;
var G_CAN_CREATE_TOPIC = '<?php echo $this->user_info['permission']['create_topic']; ?>';
</script>
<?php if (is_array($this->_import_js_files)) { ?>
<?php foreach ($this->_import_js_files AS $import_js) { ?>
<script src="<?php echo $import_js; ?>?v=<?php echo G_VERSION_BUILD; ?>" type="text/javascript"></script>
<?php } ?>
<?php } ?>
<!--[if IE 6]>
<script type="text/javascript" src="<?php echo G_STATIC_URL; ?>/js/isIE6.js"></script>
<![endif]-->
<!--[if IE 7]>
<link href="<?php echo G_STATIC_URL; ?>/css/<?php echo $this->template_name; ?>/ie7.css?v=<?php echo G_VERSION_BUILD; ?>" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
阅读全文
收起全文