use wrapped database execute function

git-svn-id: file:///home/shish/svn/shimmie2/trunk@129 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2007-05-23 22:19:12 +00:00
parent 6bbe00304b
commit 6c26fa0fc1
11 changed files with 30 additions and 32 deletions

View File

@@ -157,7 +157,7 @@ class ImageIO extends Extension {
}
// actually insert the info
$database->db->Execute(
$database->Execute(
"INSERT INTO images(owner_id, owner_ip, filename, filesize, hash, ext, width, height, posted) ".
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, now())",
array($user->id, $_SERVER['REMOTE_ADDR'], $image->filename, $image->filesize,

View File

@@ -77,7 +77,7 @@ class TagEdit extends Extension {
private function mass_tag_edit($search, $replace) {
// FIXME: deal with collisions
global $database;
$database->db->Execute("UPDATE tags SET tag=? WHERE tag=?", Array($replace, $search));
$database->Execute("UPDATE tags SET tag=? WHERE tag=?", Array($replace, $search));
}
// }}}
// HTML {{{

View File

@@ -156,7 +156,7 @@ class UserPage extends Extension {
$email = isset($_POST['email']) ? $_POST['email'] : null;
// FIXME: send_event()
$database->db->Execute(
$database->Execute(
"INSERT INTO users (name, pass, joindate, email) VALUES (?, ?, now(), ?)",
array($name, $hash, $email));
@@ -209,7 +209,7 @@ class UserPage extends Extension {
// FIXME: send_event()
// FIXME: $duser->set_pass();
$database->db->Execute(
$database->Execute(
"UPDATE users SET pass = ? WHERE id = ?",
array($hash, $id));