eth1 = lan addr1
eth2 = wan addr2
eth4 = dmz
加桥 eth2,eth3
设IP lan addr1
设IP wan addr2
masquerade on wan
masquerade on dmz
ok
more rules
油井
eth1 = lan addr1
eth2 = wan addr2
eth4 = dmz
加桥 eth2,eth3
设IP lan addr1
设IP wan addr2
masquerade on wan
masquerade on dmz
ok
more rules
分类号 id
有下级菜单,则当前项移到id
如果没有下级菜单,则当前项为 id的父级菜单,也就是说显示id的兄弟菜单
赴宴是交际者经常性的活动之一,其中有许多值得注意的礼节。赴宴前,应注意仪表整洁,穿戴大方,最好稍作打扮。忌穿工作服,满脸倦容或一身灰尘。为此,进行一番洗理一番化妆是很有必要的。男士要刮净胡须,如有时间还应理发。注意鞋子是否干净、光亮,袜子是否有臭味,以免临时尴尬。
赴宴要遵守约定的时间,既不要太早,显得急于进餐,也不能迟到。最好事先探询一下,可依据请柬注明的时间,稍微提前一点。如果你与主人关系密切,则不妨早点到达,以帮助主人招待宾客,或做些准备工作。
当你抵达宴请地点时,首先跟主人握手、问候致意。对其他客人,无论相识与否,都要笑脸相迎,点头致意,或握手寒暄,互相问好;对长辈老人,要主动让座请安;对小孩则应多加关照。万一迟到,在你坐下之前,应先向所有客人微笑打招呼,同时说声抱歉。
狗咬伤,不管是疯狗,还是正常狗,都应以最快迅速,就地用大量清水冲洗伤口。
若周围一时无水源,那么可先用人尿代替清水冲洗,然后再设法找水。
冲洗伤口要彻底。狗咬伤的伤口往往是外口小里面深,这就要求冲洗的时候尽可能把伤口扩大,并用力挤压周围软组织,设法把沾污在伤口上狗的唾液和伤口上的血液冲洗干净。
若伤口出血过多,应设法立即上止血带,然后再送医院急救。
记住:不要包扎伤口!
就地、立即、彻底冲洗伤口,是决定抢救成败的关键,
切不可忘了冲洗伤口,或者马马虎虎冲洗一下,甚至涂点红汞包扎好伤口就上医院,这是绝对错误的。
安装好了,注册码也算了
启动,进入控制台,setup 配置网卡 发现一点帮助也没有 help man 都用不了。
只要连上网线。 发现 ether1居然是我的第二张网卡,夹在1和3中间的那张网卡
http://192.168.0.247 访问路由器
下载左边的winbox
写入ip 用户名 admin 密码空
连接成功,看到配置界面,开始学习
$tpl = new c_template();
file://设定目录
$tpl->open_path(“tpl”);
file://打开文件
$tpl->open(“test”);
file://替换全局变量
$tpl->set_var(“HELP”,”测试”);
file://进入S1循环块
$tpl->open_block(“S1″);
for($i=0;$i<3;$i++){
file://复制一个块下面处理
$tpl->dup_block();
file://块内替换
$tpl->set_var(“SEG”,”第”.$i.”段”);
file://进入S11二级块
$tpl->open_block(“S11″);
for($j=0;$j<3;$j++){
file://复制一个二级块,以供处理
$tpl->dup_block();
file://替换二级变量
$tpl->set_var(“NAME”,”$i”);
file://替换二线变量
$tpl->set_var(“VALUE”,”$j”);
}
file://关闭二级块
$tpl->close_block();
}
file://关闭一级块
$tpl->close_block();
$tpl->output();
test.tpl
{HELP}
<!–[{S1}-->
{SEG}<P>
<!--[{S11}-->
{NAME}={VALUE}<BR>
<!--{S11}]–>
</P>
<!–{S1}]–>
class c_template{
var $root;
var $file;
var $content;
var $result;
var $block;
var $bc;
var $buf;
//
file://模板变量初始化
//
function c_template(){
$this->block=array();
$this->bc=array();
}
//
file://输出结果
//
function output(){
print $this->result;
}
//
file://设定打开路径
//
function open_path($path){
if( $path == “” ) return false;
$plen = strlen($path);
$plen –;
if( $path[$plen] != “/” )$path.=”/”;
$this->root = $path;
return true;
}
//
file://打开模板
//
function open($file){
$this->file=$path.$file.”.tpl”;
if( !file_exists($this->file) ){
return false;
}
$fc = file($this->file);
foreach( $fc as $line ){
$this->content .= $line;
}
$this->result=$this->content;
}
//
file://替换某一变量
//
function set_var($name,$value){
$sbc=sizeof($this->bc);
if( $sbc > 0 ){
$sbc–;
$this->bc[$sbc] = str_replace(‘{‘.$name.’}',$value,$this->bc[$sbc]);
}else{
$this->result = str_replace(‘{‘.$name.’}',$value,$this->result);
}
return true;
}
//
file://进入块中处理
//
function open_block($name){
$start=’<!–[{'.$name.'}-->';
$finish='<!--{'.$name.'}]–>’;
if( $this->buf[$name] != “” ){
array_push($this->block,$this->buf[$name]);
array_push($this->bc,”");
return true;
}
$a = strstr($this->content,$start);
if( ! $a ) return false;
$i = strpos($a,$finish);
if( ! $i ) return false;
$i-=strlen($start);
file://$i+=strlen($finish);
$b=substr($a,strlen($start),$i);
file://把样式和内容压进去
array_push($this->block,$b);
array_push($this->bc,”");
$this->buf[$name]=$b;
return true;
}
//
file://加入新的完整块以供处理
//
function dup_block(){
$sbc = sizeof($this->bc);
if( $sbc>0 ){
$sbc–;
$this->bc[$sbc].=$this->block[$sbc];
}
}
//
file://关闭当前块,写入原有的内容
//
function close_block(){
$sbc = sizeof($this->bc);
if( $sbc>0 ){
$sbc–;
$b = array_pop($this->block);
$bc= array_pop($this->bc);
if($sbc==0){
$this->result=str_replace($b,$bc,$this->result);
}else{
$this->bc[($sbc-1)]=str_replace($b,$bc,$this->bc[($sbc-1)]);
}
return true;
}
return false;
}
};