/** * Method permitAccess check access permission * * @param string $page_path # the page path * * @return void */ public static function permitAccess($page_path) { $backyard_pattern = "/^\\/b\\/*/"; if (preg_match($backyard_pattern, $page_path)) { if (!LMAuthHelper::isLogin()) { header("Location: " . SITE_HOST . "/403.php"); exit; } // end if } // end if }
/** * index.php is the /music/index.php content * * PHP version 5 * * @category PHP * @package /music/ * @author Fukuball Lin <*****@*****.**> * @license No Licence * @version Release: <1.0> * @link http://sarasti.cs.nccu.edu.tw */ ?> <div id='song-list-block'> <?php if (LMAuthHelper::isLogin()) { ?> <table width="1000px" class="table table-bordered table-striped"> <thead width="1000px"> <tr width="1000px"> <th width="50px"> id </th> <th width="50px"> 藝人 </th> <th width="100px"> 歌名 </th> <th width="400px"> 歌詞