<?php
/***************************************************************************
- * Copyright (C) 2003-2004 Polytechnique.org *
+ * Copyright (C) 2003-2006 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
function PhotoReq($_uid, $_data, $_stamp=0)
{
- global $globals, $page;
+ global $page;
$this->Validate($_uid, true, 'photo', $_stamp);
function commit()
{
- global $globals;
-
- $globals->xdb->execute('REPLACE INTO photo (uid, attachmime, attach, x, y)
+ XDB::execute('REPLACE INTO photo (uid, attachmime, attach, x, y)
VALUES ({?},{?},{?},{?},{?})',
$this->uid, $this->mimetype, $this->data, $this->x, $this->y);
require_once('notifs.inc.php');