projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prepares database for job terms.
[platal.git]
/
bin
/
newsletter.send.php
diff --git
a/bin/newsletter.send.php
b/bin/newsletter.send.php
index
01f47aa
..
7f411c1
100755
(executable)
--- a/
bin/newsletter.send.php
+++ b/
bin/newsletter.send.php
@@
-1,7
+1,7
@@
#!/usr/bin/php5 -q
<?php
/***************************************************************************
#!/usr/bin/php5 -q
<?php
/***************************************************************************
- * Copyright (C) 2003-20
09
Polytechnique.org *
+ * Copyright (C) 2003-20
10
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 *
@@
-20,13
+20,14
@@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-require_once('connect.db.inc.php');
-require_once('plmailer.php');
-require_once('newsletter.inc.php');
+require_once 'connect.db.inc.php';
+require_once 'plmailer.php';
+require_once 'newsletter.inc.php';
+ini_set('memory_limit', '128M');
$opt = getopt('i:h');
$opt = getopt('i:h');
-if(empty($opt['i']) || isset($opt['h'])) {
+if
(empty($opt['i']) || isset($opt['h'])) {
echo <<<EOF
usage: send_nl.php -i nl_id
sends the NewsLetter of id "id"
echo <<<EOF
usage: send_nl.php -i nl_id
sends the NewsLetter of id "id"