//$user_file = "../../../../etc/mysql-user/user5000.ini"; $user_file = "/etc/mysql-user/user5000.ini"; if ($fp_user = fopen($user_file, "r")) { $userName = rtrim(fgets($fp_user)); $password = rtrim(fgets($fp_user)); $database = rtrim(fgets($fp_user)); } else { die("接続設定の読み込みに失敗しました"); } $data = new GuestData($userName, $password, $database); if (mysqli_connect_error()) { die("データベースの接続に失敗しました"); } $sql = "SELECT * FROM `board`"; $result = $data->query($sql); $count = $data->top_count(); $rows = $data->select_all_l("*", "info", 0, $PAGESIZE, "id desc"); ?> <html> <head> <?php echo pagehead($title); ?> <meta name="robots" content="index" /> <meta name="Keywords" content="オンラインRPG,MMORPG,エターナルゾーン,攻略情報,データベース,蛭注意,EZ5000,5分戦闘,五千" /> <meta name="description" content="【オンラインRPG】エターナルゾーンの攻略サイト開発スペース。テスト公開中。" /> <meta name="author" content="Candle" /> </head> <body> <div id="all"> <h1>EZ5000テストサイト</h1>