bash: nginx: command not found
nginx 安装目录 /usr/local/nginx/sbin/nginx
在用户目录下 touch .bash_profile
,添加PATH:
PATH=$PATH:/usr/local/nginx/sbin
export PATH
刷新 source .bash_profile
此时 which nginx
可以输出正确的路径。
nginx 安装目录 /usr/local/nginx/sbin/nginx
在用户目录下 touch .bash_profile
,添加PATH:
PATH=$PATH:/usr/local/nginx/sbin
export PATH
刷新 source .bash_profile
此时 which nginx
可以输出正确的路径。
<span class="ratbar">
<span style="width:{$ppvod['vod_gold']*10}%;" class="ratbar-item"> </span>
</span>
<strong class="ratbar-num">{$ppvod.vod_gold}</strong>
CSS
.ratbar{width:60px;height:12px;overflow:hidden;display:block;text-indent:-999px;float:left;margin:4px 5px 0 0;background:url(star-min.gif) 0 -20px no-repeat}
.ratbar-item{width:60px;height:12px;overflow:hidden;display:block;text-indent:-999px;float:left;background:url(star-min.gif) 0 0 no-repeat}
.ratbar-num{color:#f30;font-weight:normal}
编辑 /include/mkhtml.func.php
文件第43行,找到:
function makeAllmovie($by='video')
{
global $mainClassObj;
switch ($by){
case 'video':
$templatePath="/templets/".$GLOBALS['cfg_df_style']."/".$GLOBALS['cfg_df_html']."/map.html";
break;
修改为
function makeAllmovie($by='video')
{
global $mainClassObj;
switch ($by){
case 'video':
$templatePath="/templets/".$GLOBALS['cfg_df_style']."/".$GLOBALS['cfg_df_html']."/self_all.html";
break;
继续编辑 /include/mkhtml.func.php
文件第71行,找到:
case 'video':
$allmoviename=sea_ROOT."/allmovie".getfileSuffix();
createTextFile($content,$allmoviename);
return "地图页生成完毕 <a target='_blank' href='../allmovie".getfileSuffix()."'><font color=red>浏览地图页</font></a><br>";
break;
修改为:
case 'video':
$allmoviename=sea_ROOT."/all".getfileSuffix();
createTextFile($content,$allmoviename);
return "地图页生成完毕 <a target='_blank' href='../all".getfileSuffix()."'><font color=red>浏览地图页</font></a><br>";
break;
更新缓存并重新生成即可
编辑文件 /include/common.file.func.php
第3441行和/include/common.redis.func.php
第3446行,找到
function Pinyin($s, $isfirst = false) {
static $pinyins;
首字母和全屏转换:
$isfirst = true //表示首字母
$isfirst = false //表示全拼
增加或修改某个文字的拼音:
丁:ding|
格式为:文字:拼音
注意用 | 分割开
字符过滤:
$s = str_replace('字符','',$s);
注意符号的半角和全角(即英文符号和中文符号)的不同。
字符替换:
$s = str_replace('字符','替换后的字符',$s);
将下面链接中的js文件上传到web目录下,比如ad文件夹下,最好是容易被拦截的。然后在页面增加下面的代码:
<script src="https://www.2dan.cc/usr/uploads/2016/09/adview_pic_cpc_cpm_cpa_guanggao_gg_ads_300x250.js" type="text/javascript"></script>
<script type="text/javascript">
if (typeof(killads)=='undefined'){alert('为了本站的持续发展,请不要屏蔽本站广告');}
</script>
当然 你也可以改良这个代码,比如:
1:隐藏部分网页内容
alert('为了本站的持续发展,请不要屏蔽本站广告,内容将拒绝显示');document.getElementById('divId').style.display = 'none';
2:隐藏全部网页内容
alert('为了本站的持续发展,请不要屏蔽本站广告,内容将拒绝显示');document.body.style.display = 'none';
3:跳转到一个专用的提示页面
alert('为了本站的持续发展,请不要屏蔽本站广告,下面将自动跳转');window.location.href="tishi.html";