File tree Expand file tree Collapse file tree 11 files changed +2
-29
lines changed
Expand file tree Collapse file tree 11 files changed +2
-29
lines changed Original file line number Diff line number Diff line change @@ -442,14 +442,12 @@ function ClineSignature()
442442function ClineError ($ msg )
443443{
444444 ob_end_clean ();
445- echo ClineSignature ();
446445 echo "\nError: $ msg \n" ;
447446 exit ;
448447}
449448
450449function clineUsage ($ line = '' )
451450{
452- cl_output (clineSignature ());
453451 cl_output ( 'Usage: ' .$ _SERVER ['SCRIPT_FILENAME ' ]." -p page $ line " .PHP_EOL );
454452}
455453
Original file line number Diff line number Diff line change 66 echo '<p class="information"> ' .$ GLOBALS ['I18N ' ]->get ('Hint: this page also works from commandline ' ).'</p> ' ;
77 $ limit = 10000 ;
88} else {
9- @ob_end_clean ();
10- echo ClineSignature ();
119 //# when on cl, doit immediately
1210 $ _GET ['doit ' ] = 'yes ' ;
1311 //# on commandline handle more
1412 $ limit = 50000 ;
15- ob_start ();
1613}
1714
1815function output ($ message )
Original file line number Diff line number Diff line change 1818
1919 return ;
2020}
21-
22- cl_output (ClineSignature ());
23-
2421$ cronJobs = array (
2522
2623 // at a later stage, these should be added
Original file line number Diff line number Diff line change 5858 if (!$ cline ['l ' ]) {
5959 echo ClineError ('Specify lists to import users to ' );
6060 }
61- echo clineSignature ();
6261
6362 ob_start ();
6463 $ _FILES ['import_file ' ] = array (
Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ function mb_strtolower($string)
182182
183183$ GLOBALS ['require_login ' ] = 1 ; ## this is no longer configurable and should never have been
184184if ($ GLOBALS ['commandline ' ]) {
185+ cl_output (ClineSignature ());
185186 if (!isset ($ _SERVER ['USER ' ]) && count ($ GLOBALS ['commandline_users ' ])) {
186187 clineError ('USER environment variable is not defined, cannot do access check. Please make sure USER is defined. ' );
187188 exit ;
@@ -206,7 +207,6 @@ function mb_strtolower($string)
206207 } elseif (isset ($ cline ['p ' ])) {
207208 $ _GET ['page ' ] = $ cline ['p ' ];
208209 }
209- cl_output ( ClineSignature ());
210210 cl_processtitle ('core- ' .$ _GET ['page ' ]);
211211 } elseif ($ cline ['p ' ] && $ IsCommandlinePlugin ) {
212212 if (empty ($ GLOBALS ['developer_email ' ]) && isset ($ cline ['p ' ]) && !in_array ($ cline ['p ' ],
@@ -216,7 +216,6 @@ function mb_strtolower($string)
216216 } elseif (isset ($ cline ['p ' ])) {
217217 $ _GET ['page ' ] = $ cline ['p ' ];
218218 $ _GET ['pi ' ] = $ cline ['m ' ];
219- cl_output ( ClineSignature ());
220219 cl_processtitle ($ _GET ['pi ' ].'- ' .$ _GET ['page ' ]);
221220 }
222221 } else {
Original file line number Diff line number Diff line change 99
1010 return ;
1111}
12- ob_end_clean ();
13- echo ClineSignature ();
14- ob_start ();
15-
1612$ locale_root = dirname (__FILE__ ).'/locale/ ' ;
1713
1814$ force = isset ($ cline ['f ' ]);
Original file line number Diff line number Diff line change 3030 //# we're in a normal session, so the csrf token should work
3131 verifyCsrfGetToken ();
3232 }
33- } else {
34- ob_end_clean ();
35- echo ClineSignature ();
36- ob_start ();
3733}
3834
3935flush ();
Original file line number Diff line number Diff line change 1919 return ;
2020 }
2121} else {
22- @ob_end_clean ();
23- echo ClineSignature ();
24- ob_start ();
2522 include dirname (__FILE__ ).'/actions/processqueue.php ' ;
2623
2724 return ;
Original file line number Diff line number Diff line change 124124if ($ done ) {
125125 if ($ GLOBALS ['commandline ' ]) {
126126 ob_end_clean ();
127- echo clineSignature ();
128127 echo 'Message with subject ' .$ _POST ['subject ' ].' was sent to ' .$ lists ."\n" ;
129128 exit ;
130129 }
Original file line number Diff line number Diff line change 44 @ob_end_flush ();
55 echo '<p class="information"> ' .s ('This page only works from commandline ' ).'</p> ' ;
66 return ;
7- } else {
8- cl_output (ClineSignature ());
97}
108
119if (isset ($ cline ['f ' ])) {
1412 refreshTlds (false );
1513}
1614$ tlds = explode ('| ' , getConfig ('internet_tlds ' ));
17- cl_output (s ('Now we have %d top level domains ' ,count ($ tlds )));
15+ cl_output (s ('Now we have %d top level domains ' ,count ($ tlds )));
You can’t perform that action at this time.
0 commit comments