projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2006 => 2007 Happy New Year\!
[platal.git]
/
include
/
validations
/
photos.inc.php
diff --git
a/include/validations/photos.inc.php
b/include/validations/photos.inc.php
index
6cab17e
..
41a29b4
100644
(file)
--- a/
include/validations/photos.inc.php
+++ b/
include/validations/photos.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
6
Polytechnique.org *
+ * Copyright (C) 2003-200
7
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-45,6
+45,7
@@
class PhotoReq extends Validate
function PhotoReq($_uid, $_data, $_stamp=0)
{
$this->Validate($_uid, true, 'photo', $_stamp);
function PhotoReq($_uid, $_data, $_stamp=0)
{
$this->Validate($_uid, true, 'photo', $_stamp);
+ $this->_get_image($_data);
}
// }}}
}
// }}}
@@
-54,8
+55,9
@@
class PhotoReq extends Validate
{
global $page;
{
global $page;
+ VarStream::init();
+
// calcul de la taille de l'image
// calcul de la taille de l'image
- require_once dirname(__FILE__).'/../../classes/varstream.php';
$GLOBALS['photoreq'] = $_data;
$image_infos = getimagesize('var://photoreq');
unset ($GLOBALS['photoreq']);
$GLOBALS['photoreq'] = $_data;
$image_infos = getimagesize('var://photoreq');
unset ($GLOBALS['photoreq']);
@@
-113,7
+115,7
@@
class PhotoReq extends Validate
function get_request($uid)
{
function get_request($uid)
{
- return parent::get_request($uid,'photo');
+ return parent::get_
typed_
request($uid,'photo');
}
// }}}
}
// }}}