public $texte;
public $pmin;
public $pmax;
- public $peremption;
+ public $expiration;
public $comment;
public $imgtype;
// }}}
// {{{ constructor
- public function __construct($_titre, $_texte, $_pmin, $_pmax, $_peremption, $_comment, User &$_user, PlUpload &$upload = null)
+ public function __construct($_titre, $_texte, $_pmin, $_pmax, $_expiration, $_comment, User &$_user, PlUpload &$upload = null)
{
parent::__construct($_user, false, 'evts');
$this->titre = $_titre;
$this->texte = $_texte;
$this->pmin = $_pmin;
$this->pmax = $_pmax;
- $this->peremption = $_peremption;
+ $this->expiration = $_expiration;
$this->comment = $_comment;
if ($upload) {
$this->readImage($upload);
$this->texte = Env::v('texte');
$this->pmin = Env::i('promo_min');
$this->pmax = Env::i('promo_max');
- $this->peremption = Env::v('peremption');
+ $this->expiration = Env::v('expiration');
if (@$_FILES['image']['tmp_name']) {
$upload = PlUpload::get($_FILES['image'], S::user()->login(), 'event');
if (!$upload) {
{
if (XDB::execute("INSERT INTO announces
SET uid = {?}, creation_date=NOW(), titre={?}, texte={?},
- peremption={?}, promo_min={?}, promo_max={?}, flags=CONCAT(flags,',valide,wiki')",
+ expiration={?}, promo_min={?}, promo_max={?}, flags=CONCAT(flags,',valide,wiki')",
$this->user->id(), $this->titre, $this->texte,
- $this->peremption, $this->pmin, $this->pmax)) {
+ $this->expiration, $this->pmin, $this->pmax)) {
$eid = XDB::insertId();
if ($this->img) {
XDB::execute("INSERT INTO announce_photos