/** * スマートフォンかどうかを判別する。 * $_SESSION['pc_disp'] = true の場合はPC表示。 * * @return boolean */ function isSmartphone() { $nu = new Net_UserAgent_Mobile(); // SPでかつPC表示OFFの場合 return $nu->isSmartphone() && !SC_SmartphoneUserAgent_Ex::getSmartphonePcFlag(); }