Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | A bit of cleanup |
|---|---|
| Timelines: | family | ancestors | descendants | both | setuid-fossil |
| Files: | files | file ages | folders |
| SHA1: |
c0a2a1dc2c2d6675c81eeb82de1c71d2 |
| User & Date: | rkeene 2020-08-23 19:31:00.728 |
Context
|
2020-08-23
| ||
| 19:41 | Update automated rebuild to use suid fossil Closed-Leaf check-in: 302ba97f86 user: rkeene tags: setuid-fossil | |
| 19:31 | A bit of cleanup check-in: c0a2a1dc2c user: rkeene tags: setuid-fossil | |
| 19:26 | Finished reworking SUID changes check-in: b9a69f3282 user: rkeene tags: setuid-fossil | |
Changes
Changes to nano/db.php.
| ︙ | ︙ | |||
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
public static function execute($sql, $bind = array())
{
$res = self::$_db->prepare($sql);
if ($res === false) {
error_log("Unable to prepare (for execution): {$sql}: " . implode(self::$_db->errorInfo()));
}
if ($res->execute($bind)) {
return true;
}
return false;
}
public static function query($sql, $bind = array())
{
$res = self::$_db->prepare($sql);
if ($res === false) {
error_log("Unable to prepare (for query): {$sql}: " . implode(self::$_db->errorInfo()));
}
if ($res->execute($bind)) {
if ($result = $res->fetchAll(PDO::FETCH_ASSOC)) {
return $result;
}
}
return false;
}
}
Nano_Db::init();
| > > | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
public static function execute($sql, $bind = array())
{
$res = self::$_db->prepare($sql);
if ($res === false) {
error_log("Unable to prepare (for execution): {$sql}: " . implode(self::$_db->errorInfo()));
return false;
}
if ($res->execute($bind)) {
return true;
}
return false;
}
public static function query($sql, $bind = array())
{
$res = self::$_db->prepare($sql);
if ($res === false) {
error_log("Unable to prepare (for query): {$sql}: " . implode(self::$_db->errorInfo()));
return false;
}
if ($res->execute($bind)) {
if ($result = $res->fetchAll(PDO::FETCH_ASSOC)) {
return $result;
}
}
return false;
}
}
Nano_Db::init();
|