tutos-commits Mailing List for TUTOS
Projects / CRM / PLM / Calendar / Tasks / SCRUM / Test / Inventory
Brought to you by:
gokohnert
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(13) |
Aug
(214) |
Sep
(144) |
Oct
(22) |
Nov
(22) |
Dec
(93) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(25) |
Feb
(31) |
Mar
(92) |
Apr
(70) |
May
(103) |
Jun
(130) |
Jul
(265) |
Aug
(325) |
Sep
(233) |
Oct
(244) |
Nov
(261) |
Dec
(157) |
2003 |
Jan
(101) |
Feb
(135) |
Mar
(148) |
Apr
(164) |
May
(53) |
Jun
(116) |
Jul
(149) |
Aug
(126) |
Sep
(45) |
Oct
(109) |
Nov
(36) |
Dec
(61) |
2004 |
Jan
(131) |
Feb
(236) |
Mar
(278) |
Apr
(259) |
May
(92) |
Jun
(110) |
Jul
(150) |
Aug
(64) |
Sep
(141) |
Oct
(141) |
Nov
(146) |
Dec
(65) |
2005 |
Jan
(70) |
Feb
(77) |
Mar
(129) |
Apr
(153) |
May
(161) |
Jun
(63) |
Jul
(42) |
Aug
(16) |
Sep
(30) |
Oct
(3) |
Nov
(8) |
Dec
(40) |
2006 |
Jan
(114) |
Feb
(16) |
Mar
(12) |
Apr
(15) |
May
(4) |
Jun
(9) |
Jul
(69) |
Aug
(27) |
Sep
(12) |
Oct
(80) |
Nov
(62) |
Dec
(41) |
2007 |
Jan
(34) |
Feb
(2) |
Mar
(38) |
Apr
(82) |
May
(61) |
Jun
(37) |
Jul
(16) |
Aug
(64) |
Sep
(7) |
Oct
(52) |
Nov
(18) |
Dec
(28) |
2008 |
Jan
(168) |
Feb
(26) |
Mar
(27) |
Apr
(19) |
May
(10) |
Jun
(58) |
Jul
(58) |
Aug
(91) |
Sep
(14) |
Oct
(23) |
Nov
(56) |
Dec
(38) |
2009 |
Jan
(58) |
Feb
(90) |
Mar
(204) |
Apr
(90) |
May
(27) |
Jun
(177) |
Jul
(116) |
Aug
(53) |
Sep
(42) |
Oct
(120) |
Nov
(51) |
Dec
(58) |
2010 |
Jan
(117) |
Feb
(231) |
Mar
(163) |
Apr
(90) |
May
(40) |
Jun
(139) |
Jul
(49) |
Aug
(118) |
Sep
(25) |
Oct
(80) |
Nov
(102) |
Dec
(99) |
2011 |
Jan
(176) |
Feb
(42) |
Mar
(60) |
Apr
(52) |
May
(30) |
Jun
(29) |
Jul
(27) |
Aug
(16) |
Sep
(51) |
Oct
(70) |
Nov
(63) |
Dec
(58) |
2012 |
Jan
(28) |
Feb
(26) |
Mar
(7) |
Apr
(12) |
May
(41) |
Jun
(61) |
Jul
(59) |
Aug
(38) |
Sep
(30) |
Oct
(28) |
Nov
(14) |
Dec
(31) |
2013 |
Jan
(24) |
Feb
(54) |
Mar
(45) |
Apr
(22) |
May
(35) |
Jun
(8) |
Jul
(18) |
Aug
(38) |
Sep
(11) |
Oct
(8) |
Nov
(19) |
Dec
(20) |
2014 |
Jan
(20) |
Feb
(22) |
Mar
(4) |
Apr
(6) |
May
(13) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(6) |
2015 |
Jan
|
Feb
(1) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
2016 |
Jan
(4) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
(2) |
Aug
(4) |
Sep
(1) |
Oct
(1) |
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(8) |
Aug
(13) |
Sep
(12) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2021 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
|
1
|
2
|
3
|
4
|
5
|
6
(4) |
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
27
|
28
|
29
|
30
|
31
|
|
|
|
|
|
From: <gok...@us...> - 2014-03-06 20:28:15
|
Revision: 1253 http://sourceforge.net/p/tutos/code/1253 Author: gokohnert Date: 2014-03-06 20:28:12 +0000 (Thu, 06 Mar 2014) Log Message: ----------- better crontab Modified Paths: -------------- trunk/php/admin/crontab_maker.php Modified: trunk/php/admin/crontab_maker.php =================================================================== --- trunk/php/admin/crontab_maker.php 2014-03-06 20:18:10 UTC (rev 1252) +++ trunk/php/admin/crontab_maker.php 2014-03-06 20:28:12 UTC (rev 1253) @@ -91,15 +91,6 @@ $rt = ''; $x = array(); @exec('crontab -l',$x,$rt); - if ($rt != 0) { - $r .= '<div class="message">Sorry ! Unable to run crontab on your system.('.$rt.')<br />'; - foreach ($x as $l) { - $r .= $l."<br />"; - } - $r .= '</div>'; - // $r .= $this->DataTableEnd(); - // return $r; - } } else { $r .= '<div class="message">Sorry ! Unable to find crontab on your system.<br />'; $r .= $this->DataTableEnd(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2014-03-06 20:18:13
|
Revision: 1252 http://sourceforge.net/p/tutos/code/1252 Author: gokohnert Date: 2014-03-06 20:18:10 +0000 (Thu, 06 Mar 2014) Log Message: ----------- typo Modified Paths: -------------- trunk/php/admin/crontab_maker.php Modified: trunk/php/admin/crontab_maker.php =================================================================== --- trunk/php/admin/crontab_maker.php 2014-03-06 20:15:35 UTC (rev 1251) +++ trunk/php/admin/crontab_maker.php 2014-03-06 20:18:10 UTC (rev 1252) @@ -86,7 +86,7 @@ $r .= '</tr>'; - $c = $this->check_cmd('Xcrontab'); + $c = $this->check_cmd('crontab'); if ($c != '') { $rt = ''; $x = array(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2014-03-06 20:15:39
|
Revision: 1251 http://sourceforge.net/p/tutos/code/1251 Author: gokohnert Date: 2014-03-06 20:15:35 +0000 (Thu, 06 Mar 2014) Log Message: ----------- updated login layout Modified Paths: -------------- trunk/html/default.css trunk/html/motd_default.html Modified: trunk/html/default.css =================================================================== --- trunk/html/default.css 2014-03-06 20:14:29 UTC (rev 1250) +++ trunk/html/default.css 2014-03-06 20:15:35 UTC (rev 1251) @@ -196,7 +196,7 @@ background-repeat: no-repeat; background-position: center; font-family: monospace; - min-height: 280px; + height: 300px; min-width: 370px; white-space: pre; } Modified: trunk/html/motd_default.html =================================================================== --- trunk/html/motd_default.html 2014-03-06 20:14:29 UTC (rev 1250) +++ trunk/html/motd_default.html 2014-03-06 20:15:35 UTC (rev 1251) @@ -1,6 +1,4 @@ -<!-- $Id$ --> -<!-- This will be read inside of <PRE> </PRE> --> -<h1>Congratulations</h1> +<!-- $Id$ --><!-- This will be read inside of <PRE> </PRE> --><h1>Congratulations</h1> you have managed to install <a href="http://www.tutos.org" target="home">TUTOS</a>. This is the <u>default</u> message of today. @@ -19,5 +17,4 @@ See <a href="http://wiki.tutos.org" target="doku">TUTOS wiki</a> for uptodate documentation. -<a href=" |
From: <gok...@us...> - 2014-03-06 20:14:31
|
Revision: 1250 http://sourceforge.net/p/tutos/code/1250 Author: gokohnert Date: 2014-03-06 20:14:29 +0000 (Thu, 06 Mar 2014) Log Message: ----------- better crontab Modified Paths: -------------- trunk/php/admin/crontab_maker.php Modified: trunk/php/admin/crontab_maker.php =================================================================== --- trunk/php/admin/crontab_maker.php 2014-02-24 08:04:18 UTC (rev 1249) +++ trunk/php/admin/crontab_maker.php 2014-03-06 20:14:29 UTC (rev 1250) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2009 - 2013 by Gero Kohnert + * Copyright 2009 - 2014 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -46,23 +46,29 @@ global $tutos,$msg,$info; $r = ''; + $url = normalize_url(getBaseUrl(true).'../check.php?dbnr='.$_SESSION['dbnr']); - if ($cmd = $this->check_cmd('php')) { - $c = $cmd; - $cmd = '*/5 * * * * cd '.dirname(dirname($_SERVER['SCRIPT_FILENAME'])); + $cmd = "*/5 * * * * \t"; + if ($c = $this->check_cmd('php')) { + $cmd .= 'cd '.dirname(dirname($_SERVER['SCRIPT_FILENAME'])); $cmd .= '; '.$c .' check.php -dbnr '.$_SESSION['dbnr']; - } elseif($cmd = $this->check_cmd('lynx')) { - $cmd = '*/5 * * * * '.$cmd; - $cmd .= ' -accept_all_cookies -dump '.getBaseUrl(true).'check.php?dbnr='.$_SESSION['dbnr']; - } elseif($cmd = $this->check_cmd('wget')) { - $cmd = '*/5 * * * * '.$cmd; - $cmd .= ' -T 10 -O /dev/null --no-check-certificate '.getBaseUrl(true).'check.php?dbnr='.$_SESSION['dbnr']; + } elseif($c = $this->check_cmd('lynx')) { + $cmd .= $c; + $cmd .= ' -accept_all_cookies -dump '.$url; + } elseif($c = $this->check_cmd('wget')) { + $cmd .= $c; + $cmd .= ' -T 10 -O /dev/null --no-check-certificate '.$url; } else { - $r = '<div class="message">No suitable programm found (php/lynx/wget)</div>'; + $r = '<div class="message">No suitable programm to trigger a tutos call was found (php/lynx/wget)</div>'; return $r; } - $cmd .= ' >> '.normalize_url(dirname($_SERVER['SCRIPT_FILENAME']).'/'.$tutos[errlog]); + $cmd .= ' >> '; + if (preg_match('#^/#',$tutos[errlog])) { + $cmd .= normalize_url($tutos[errlog]); + } else { + $cmd .= normalize_url(dirname($_SERVER['SCRIPT_FILENAME']).'/'.$tutos[errlog]); + } $cmd .= ' 2>&1'; $r .= '<form method="POST">'; @@ -73,26 +79,33 @@ $r .= '<tr>'; $r .= '<td colspan="4">'; - $r .= 'In order to enable cyclic (every 5 minutes) checks you should add the following line to your crontab.<br />'; - $r .= '<b>'.$cmd.'</b>'; + $r .= '<p>Before you run the check script for the first time you should do this manually as the first run might take more than 5 minutes.<br/>Just call this url: <a href="'.$url.'" target="_blank">'.$url.'</a> (opens a new window; a relogin to TUTOS might be forced afterwards)<p />'; + $r .= '<p>In order to enable cyclic (every 5 minutes) checks you should add the following line to your crontab.<br />'; + $r .= '<b><pre>'.$cmd.'</pre></b></p>'; $r .= '</td>'; $r .= '</tr>'; - $rt = ''; - $x = array(); - @exec('crontab -l',$x,$rt); - /** - if ($rt != 0) { - $r .= '<div class="message">Sorry ! Unable to find/run crontab on your system.('.$rt.')<br />'; - foreach ($x as $l) { - $r .= $l."<br />"; - } - $r .= '</div>'; - $r .= $this->DataTableEnd(); - return $r; - } - */ + $c = $this->check_cmd('Xcrontab'); + if ($c != '') { + $rt = ''; + $x = array(); + @exec('crontab -l',$x,$rt); + if ($rt != 0) { + $r .= '<div class="message">Sorry ! Unable to run crontab on your system.('.$rt.')<br />'; + foreach ($x as $l) { + $r .= $l."<br />"; + } + $r .= '</div>'; + // $r .= $this->DataTableEnd(); + // return $r; + } + } else { + $r .= '<div class="message">Sorry ! Unable to find crontab on your system.<br />'; + $r .= $this->DataTableEnd(); + return $r; + } + $orig = ''; $found = false; foreach ($x as $l) { @@ -108,10 +121,14 @@ $orig .= "#\n"; $orig .= "# Call TUTOS check script every 5 minutes \n"; $orig .= "# (automatically added on ".Date("d.M.Y H:i:s T").")\n"; + $orig .= "#\n"; + $orig .= "# send possible mails to:\n"; + $orig .= "MAILTO=".getenv('APACHE_RUN_USER'). "\n"; + $orig .= "#\n"; $orig .= $cmd."\n"; + $orig .= "#\n"; } - $r .= "<tr><td colspan=\"4\">\n"; $r .= '<textarea rows="20" cols="'.(10+strlen($cmd)).'" name="crontab">'; $r .= $orig; @@ -155,12 +172,12 @@ $x = ''; @exec('crontab '.$tmpname,$x,$rt); if ($rt != 0) { - $msg .= $this->error('could not run crontab with '.$tmpname); + $msg = addLine($msg,'could not run crontab with '.$tmpname); $this->stop = true; return; } foreach ($x as $l) { - $info .= $l.'<br />'; + $info = addLIne($info,$l); } unlink($tmpname); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |