This repository has been archived by the owner on Feb 27, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
コールバックにリダイレクトするのを三段構えに変更 全ユーザー一覧も作ってみた
- Loading branch information
1 parent
87018d4
commit 06d3032
Showing
6 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
include_once ($_SERVER['DOCUMENT_ROOT'] . "/fcMgt4slStage/include/header.php"); | ||
|
||
require_once $_SERVER['DOCUMENT_ROOT'] . "/../undefined/DSN.php"; | ||
try { | ||
$pdo = new PDO ( 'mysql:host=' . $dsn ['host'] . ';dbname=' . $dsn ['dbname'] . ';charset=utf8', $dsn ['user'], $dsn ['pass'], array ( | ||
PDO::ATTR_EMULATE_PREPARES => false, | ||
)); | ||
} catch ( PDOException $e ) { | ||
$logWrite ="unSuccessful データベースの接続中にエラーが発生しました (twitterLoader) | ||
sqlServer : connection unsuccess" . $e->getMessage (); | ||
include($_SERVER['DOCUMENT_ROOT'] . "/fcMgt4slStage/log/logWriter.php"); | ||
exit ("ユーザーデータを取得中にエラーが発生しました。管理者にお問い合わせください。"); | ||
} | ||
|
||
$sql = "SELECT * FROM `fcmgtuser`"; | ||
$stmt=$pdo->prepare($sql); | ||
$res=$stmt->execute(); | ||
|
||
$arr = $stmt->fetchAll(); | ||
echo ' | ||
<p>このサイトに登録している全てのプロデューサーさんです。<br> | ||
取り敢えず作ってみました。<br> | ||
登録順で全件表示されます。<br> | ||
プロフィールを1度も編集したことのないプロデューサーさんは表示されません。</p> | ||
<div style="font-size : 1.2em"> | ||
'; | ||
|
||
|
||
|
||
|
||
foreach ($arr as $value) { | ||
if (!($value['name'] == "")){ | ||
echo '<p><a href="user.php?s=' . $value['shortid'] . '">' . $value['shortid']. '.' . $value['name'] . ' PLv:' . $value['level'] | ||
.'</a><br>' . mb_strimwidth($value['bio'], 0, 60, "...") . '</p>'; | ||
} | ||
} | ||
|
||
echo '</div>'; | ||
|
||
|
||
include ($_SERVER['DOCUMENT_ROOT'] . "/fcMgt4slStage/include/ad.php"); | ||
|
||
include_once ($_SERVER['DOCUMENT_ROOT'] . "/fcMgt4slStage/include/footer.php"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters