コード例 #1
0
ファイル: profile.php プロジェクト: aliasnash/flirt-web-p
 function index()
 {
     $idu = isset($_SESSION['idu']) ? $_SESSION['idu'] : 0;
     $this->stat->saveStat($idu, "profile/index");
     $model = new Model_Profile();
     $profiles = $model->getProfile($idu);
     if (count($profiles) > 0) {
         $profile = $profiles[0];
     }
     if (!empty($profile)) {
         $photos = $model->getPhotoList($idu);
         $this->template->vars('photos', $photos);
         $this->template->vars('profile', $profile);
         $this->template->view('index', $idu > 0);
     } else {
         unset($_SESSION['idu']);
         header('Location:' . WEB_APP);
     }
 }