コミットを比較
5 コミット
b069d0c646
...
main
| 作成者 | SHA1 | 日付 | |
|---|---|---|---|
| 2efbeb0072 | |||
| 1b9acbca40 | |||
| 5933855469 | |||
| 8eaa62c88f | |||
| 6509ca1233 |
+2
-2
@@ -11,7 +11,7 @@ $pass = $_GET['pass'];
|
|||||||
$user = User :: find ($id);
|
$user = User :: find ($id);
|
||||||
|
|
||||||
if ($user -> pass === $pass)
|
if ($user -> pass === $pass)
|
||||||
echo implode (',', [$user -> name]);
|
echo implode (',', [1, $user -> name]);
|
||||||
else
|
else
|
||||||
echo 'error';
|
echo '0';
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ require_once './db_connection.php';
|
|||||||
require_once './modules/user.mod.php';
|
require_once './modules/user.mod.php';
|
||||||
|
|
||||||
|
|
||||||
$chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&()*+-./:;<=>?@[]^_`~';
|
$chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
||||||
|
|
||||||
$user = new User;
|
$user = new User;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -17,5 +17,5 @@ if ($user -> inheritance_code === $code)
|
|||||||
$user -> pass]);
|
$user -> pass]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
echo 0;
|
echo '0';
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -22,8 +22,7 @@ User
|
|||||||
id = $id";
|
id = $id";
|
||||||
$result = $GLOBALS['__db_connection'] -> query ($sql)
|
$result = $GLOBALS['__db_connection'] -> query ($sql)
|
||||||
or die ("db_select error $sql");
|
or die ("db_select error $sql");
|
||||||
|
$row = $result -> fetch_array ();
|
||||||
$row = $this -> db -> fetch_array ($result);
|
|
||||||
|
|
||||||
$self = new Self;
|
$self = new Self;
|
||||||
$self -> id = $id;
|
$self -> id = $id;
|
||||||
|
|||||||
新しい課題から参照
ユーザをブロックする