廣告2


適合宜蘭旅遊的出租套房(土水師的家)
想體驗獨特的藝術空間,感受老闆對每個房間的用心,歡迎來土水師的家。
電話:0918667109 林先生
地址:宜蘭縣礁溪鄉和平路75號
註:記得跟老闆說,"我是阿志的朋友,請給我優惠一點"。

2015年3月4日 星期三

[CodeIgniter]libraries目錄中class內函數互相呼叫

class Myclass {

public function js_alert($str1,$str2='')

echo "<meta http-equiv=Content-Type content=text/html; charset=utf-8>";
if($str2=='')
{echo "<script>alert('$str1');history.go(-1);</script>";exit();}
else
{echo "<script>alert('$str1');location.href='$str2';</script>";exit();}
exit();
}


//後台帳號檢查
public function is_power_check()
{
     @session_start();    
     if(empty($_SESSION['id']))
     {$this->js_alert('請先登入','../manage/login');}
}


}

沒有留言:

張貼留言