我有一个 index.php 文件,它根据条件加载(需要)2个不同的文件。
访问此链接将导致;
mysite.com/index.php 将加载 stats.php (require("stats.php");)
访问此链接将导致;
mysite.com/index.php?auth="jgbsbsbasm" 将加载 encry.php ( require("stats_encry.php");
)
完成此代码:
<?php
if(isset($_GET['auth'])) require("stats.php");
else require("stats_encry.php");
?>
这工作正常。现在我的问题是;我在标题中有一个静态的 CSS 文件;
<link rel="stylesheet" href="cv.css">
我现在想要的是分别为 stats.php 加载 cv.css 文件和为 stats_encry.php 加载 cv1.css 文件。
我该怎么做呢?