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
|
7
(2) |
8
|
9
(8) |
10
|
11
|
12
|
13
|
14
|
15
|
16
(24) |
17
|
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
27
|
28
(7) |
29
|
30
|
31
|
|
|
|
|
|
|
From: Gero K. <gok...@us...> - 2006-12-28 20:23:48
|
Update of /cvsroot/tutos/tutos/php/bugtracking In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14603/php/bugtracking Modified Files: bug_new.php Log Message: more bughunting and PHP5.2 tests Index: bug_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bugtracking/bug_new.php,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- bug_new.php 25 Nov 2006 08:48:11 -0000 1.26 +++ bug_new.php 28 Dec 2006 20:23:43 -0000 1.27 @@ -95,7 +95,7 @@ } else { $sid = $this->user->id; # initial - if ( $this->obj->parent->id > 0 ) { + if ( is_object($this->obj->parent) && $this->obj->parent->id > 0 ) { if ( $this->obj->parent->getType() == "product" ) { $this->obj->parent->readroles(); /**** @@ -180,7 +180,7 @@ echo "<select id=\"pid\" name=\"pid\">\n"; foreach ($this->obj->plist as $i => $f) { if ($i == -1) continue; - echo "<option value=\"". $i ."\"". ($i == $this->obj->parent->id ? " selected>* ":">") . $lang[$f->getType()] .": ". myentities($f->getFullName()) ."</option>\n"; + echo ' <option value="'. $i .'"'. ( (is_object($this->obj->parent) && ($i == $this->obj->parent->id)) ? ' selected="selected">* ':'>') . $lang[$f->getType()] .": ". myentities($f->getFullName()) ."</option>\n"; } echo "</select>\n"; echo "</td></tr>\n"; |
From: Gero K. <gok...@us...> - 2006-12-28 20:23:48
|
Update of /cvsroot/tutos/tutos/php/auth In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14603/php/auth Modified Files: auth_db.pinc Log Message: more bughunting and PHP5.2 tests Index: auth_db.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/auth/auth_db.pinc,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- auth_db.pinc 13 Jun 2005 19:20:20 -0000 1.5 +++ auth_db.pinc 28 Dec 2006 20:23:43 -0000 1.6 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -48,7 +48,7 @@ function check() { global $current_user,$lang; - $q = "SELECT a.* ,p.*,p.id as u_id FROM ". $this->dbconn->prefix ."addresses a, ". $this->dbconn->prefix ."people p "; + $q = "SELECT a.* ,p.*,p.id as u_id ,p.creator as cr_a, p.creation as cr_t FROM ". $this->dbconn->prefix ."addresses a, ". $this->dbconn->prefix ."people p "; $q .= " WHERE p.login = ". $this->dbconn->String($this->getuname()) ; $q .= " AND p.pw = ". $this->dbconn->Password($this->getpw()) ." AND p.adr_id = a.id"; $result = $this->dbconn->Exec($q); |
From: Gero K. <gok...@us...> - 2006-12-28 20:23:45
|
Update of /cvsroot/tutos/tutos/php/watchlist In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14603/php/watchlist Modified Files: watchlist_overview.php Log Message: more bughunting and PHP5.2 tests Index: watchlist_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/watchlist/watchlist_overview.php,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- watchlist_overview.php 24 Jul 2006 15:34:08 -0000 1.27 +++ watchlist_overview.php 28 Dec 2006 20:23:44 -0000 1.28 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2005 by Gero Kohnert + * Copyright 2001 - 2006 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 @@ -16,8 +16,8 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("watchlist","overview"); - loadmodule("watchlist"); + loadmodules('watchlist','overview'); + loadmodule('watchlist'); loadlayout(); /** @@ -234,7 +234,7 @@ } } - check_dbacl($rhis->dbconn, $this->q, $this->user->id, "obj_id"); + check_dbacl($this->dbconn, $this->q, $this->user->id, "obj_id"); # sorting $this->link2 = $this->link1; |
From: Gero K. <gok...@us...> - 2006-12-28 20:23:45
|
Update of /cvsroot/tutos/tutos In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14603 Modified Files: ToDo Log Message: more bughunting and PHP5.2 tests Index: ToDo =================================================================== RCS file: /cvsroot/tutos/tutos/ToDo,v retrieving revision 1.48 retrieving revision 1.49 diff -u -d -r1.48 -r1.49 --- ToDo 8 Jun 2005 14:32:02 -0000 1.48 +++ ToDo 28 Dec 2006 20:23:43 -0000 1.49 @@ -278,6 +278,8 @@ DONE 200503 A flag to force SSL mode (at least for login) + +use of FCKEditor http://www.fckeditor.net # # # EOF |
From: Gero K. <gok...@us...> - 2006-12-28 20:23:45
|
Update of /cvsroot/tutos/tutos/php In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14603/php Modified Files: appointment.pinc base.pinc location.pinc product_new.php user.pinc Log Message: more bughunting and PHP5.2 tests Index: user.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/user.pinc,v retrieving revision 1.152 retrieving revision 1.153 diff -u -d -r1.152 -r1.153 --- user.pinc 16 Dec 2006 13:08:18 -0000 1.152 +++ user.pinc 28 Dec 2006 20:23:43 -0000 1.153 @@ -234,7 +234,7 @@ } $this->creator = getObject($this->dbconn,$r->get($pos, "cr_a")); - $this->creation = $r->getDateTime($pos, 'cr_t'); + $this->creation = $r->getDateTime($pos, "cr_t"); # # read custom database fields Index: product_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_new.php,v retrieving revision 1.101 retrieving revision 1.102 diff -u -d -r1.101 -r1.102 --- product_new.php 9 Dec 2006 19:44:44 -0000 1.101 +++ product_new.php 28 Dec 2006 20:23:43 -0000 1.102 @@ -332,7 +332,7 @@ $this->obj->set_string_from_arg('desc2','desc2',$lang['ProdDesc2']); $this->obj->set_string_from_arg('description','description',$lang['ProdDesc']); $this->obj->set_string_from_arg('path','path',$lang['ProdPath']); - $this->obj->set_int_from_arg('state','state',$lang['ProdSate']); + $this->obj->set_int_from_arg('state','state',$lang['ProdState']); $this->obj->set_float_from_arg('price','price',$lang['ProdPrice']); $this->obj->set_float_from_arg('cost','cost',$lang['ProdCost']); $this->obj->set_float_from_arg('probability','prob',$lang['ProdProb']); Index: base.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/base.pinc,v retrieving revision 1.94 retrieving revision 1.95 diff -u -d -r1.94 -r1.95 --- base.pinc 16 Dec 2006 13:08:16 -0000 1.94 +++ base.pinc 28 Dec 2006 20:23:43 -0000 1.95 @@ -809,5 +809,13 @@ function getHelpIndex () { return ''; } + + /** + * get the id as a unique identifier + */ + function __toString() { + return $this->id; + } + } ?> \ No newline at end of file Index: appointment.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/appointment.pinc,v retrieving revision 1.197 retrieving revision 1.198 diff -u -d -r1.197 -r1.198 --- appointment.pinc 16 Dec 2006 13:08:16 -0000 1.197 +++ appointment.pinc 28 Dec 2006 20:23:43 -0000 1.198 @@ -140,11 +140,11 @@ unset($f); } # Check Project - if ( array_key_exists($obj->product->id,$uids)) { + if ( is_object($obj->product) && array_key_exists($obj->product->id,$uids)) { return true; } # Visitor - if ( ($obj->visitor != -1) && array_key_exists($obj->visitor->id,$uids)) { + if ( is_object($obj->visitor) && array_key_exists($obj->visitor->id,$uids)) { return true; } # Check Resources Index: location.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/location.pinc,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- location.pinc 25 Nov 2006 14:47:15 -0000 1.86 +++ location.pinc 28 Dec 2006 20:23:43 -0000 1.87 @@ -259,7 +259,7 @@ global $lang; $this->read_ref(); - if ($this->ref != -1) { + if (is_object($this->ref) && ($this->ref->id != -1) ) { return sprintf($this->ref->getFullName()." ".$lang['AdrLocTitle'],$this->lname); } else { return sprintf("??? ".$lang['AdrLocTitle'],$this->lname); |
From: Gero K. <gok...@us...> - 2006-12-28 20:23:45
|
Update of /cvsroot/tutos/tutos/php/db In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14603/php/db Modified Files: db_pg.pinc Log Message: more bughunting and PHP5.2 tests Index: db_pg.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/db/db_pg.pinc,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- db_pg.pinc 16 Dec 2006 13:08:26 -0000 1.33 +++ db_pg.pinc 28 Dec 2006 20:23:44 -0000 1.34 @@ -645,7 +645,7 @@ */ function get($pos,$fld) { if ( empty($this->rs) ) return -1; - $result = pg_result($this->rs, $pos-$this->offset, $fld); + $result = pg_result($this->rs, ( $pos - $this->offset ), $fld); // If DB encoding is UNICODE, decode the result if ($this->encoding == 'UNICODE') { |
From: Gero K. <gok...@us...> - 2006-12-28 20:23:45
|
Update of /cvsroot/tutos/tutos/php/checklist In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14603/php/checklist Modified Files: checklist.pinc Log Message: more bughunting and PHP5.2 tests Index: checklist.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/checklist/checklist.pinc,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- checklist.pinc 16 Dec 2006 13:08:23 -0000 1.29 +++ checklist.pinc 28 Dec 2006 20:23:43 -0000 1.30 @@ -1,7 +1,7 @@ <?php /* * Checklist: Copyright 2002 by Markus Leist under GNU GPL - * TUTOS: Copyright 1999 - 2005 by Gero Kohnert + * TUTOS: Copyright 1999 - 2006 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 @@ -382,7 +382,7 @@ if ( empty($this->link_id) ) return; $this->ref = getObject($this->dbconn,$this->link_id); - if ( $this->ref == -1 ) { + if ( !is_object($this->ref) || $this->ref->id == -1 ) { $this->ref = $this->creator; } return; @@ -527,7 +527,7 @@ if ( $this->class_id > 0 ) { $tmp_cl_class = new checklist( $this->dbconn); $tmp_cl_class = $tmp_cl_class->read( $this->class_id,$tmp_cl_class); - if ($tmp_cl_class == -1) { + if (!is_object($tmp_cl_class) || $tmp_cl_class == -1) { return " "; } $tmp_string = $tmp_cl_class->getLink(); |
From: Gero K. <gok...@us...> - 2006-12-16 13:09:01
|
Update of /cvsroot/tutos/tutos/php/expense In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php/expense Modified Files: expense.pinc expense_ins.php expense_overview.php expense_select.php Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: expense_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/expense/expense_ins.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- expense_ins.php 17 Apr 2005 18:17:01 -0000 1.5 +++ expense_ins.php 16 Dec 2006 13:08:26 -0000 1.6 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert and ECOsoft.net + * Copyright 1999 - 2006 by Gero Kohnert and ECOsoft.net * * 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 @@ -20,8 +20,8 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("expense","ins"); - loadmodule("expense"); + loadmodules('expense','ins'); + loadmodule('expense'); /* Check Input */ $gotourl = "expense/expense_new.php"; @@ -111,7 +111,7 @@ $u->setITax(StripSlashes($_POST['itax'])); $gotourl= addUrlParameter($gotourl,"itax=". UrlEncode($u->itax),true); } - $t_start = new DateTime(); + $t_start = new TUTOS_Date_Time(); $t_start->setDateTimeF("t_start"); if ( ( !$t_start->checkDMY()) || (-1 == $t_start->getTimeStamp() ) ) { $msg .= sprintf($lang['Err0038'],$lang['ExpenseStartTime']) ."<br />"; @@ -119,7 +119,7 @@ $u->setStartTime($t_start); $gotourl= addUrlParameter($gotourl,"t_start=". $t_start->getYYYYMMDDHHMM(),true); } - $t_end = new DateTime(); + $t_end = new TUTOS_Date_Time(); $t_end->setDateTimeF("t_end"); if ( ( !$t_end->checkDMY()) || (-1 == $t_end->getTimeStamp()) ) { $msg .= sprintf($lang['Err0038'],$lang['ExpenseEndTime']) ."<br />"; Index: expense.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/expense/expense.pinc,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- expense.pinc 23 Nov 2006 13:23:13 -0000 1.11 +++ expense.pinc 16 Dec 2006 13:08:26 -0000 1.12 @@ -130,8 +130,8 @@ $this->invoice = ""; $this->city = ""; $this->country = ""; - $this->t_start = new DateTime(); - $this->t_end = new DateTime(); + $this->t_start = new TUTOS_Date_Time(); + $this->t_end = new TUTOS_Date_Time(); $this->tablename = $this->dbconn->prefix ."expenses"; } /** @@ -674,10 +674,10 @@ } else if ($fld == "invoice") { $this->setInvoice($data); } else if ($fld == "t_start") { - $d = new DateTime($data); + $d = new TUTOS_Date_Time($data); $this->setStartTime($d); } else if ($fld == "t_end") { - $d = new DateTime($data); + $d = new TUTOS_Date_Time($data); $this->setEndTime($d); } return; @@ -896,4 +896,4 @@ $r->free(); } } -?> +?> \ No newline at end of file Index: expense_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/expense/expense_overview.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- expense_overview.php 19 Nov 2006 09:26:45 -0000 1.8 +++ expense_overview.php 16 Dec 2006 13:08:26 -0000 1.9 @@ -394,7 +394,7 @@ } # Start Date for search - $from = new DateTime(0); + $from = new TUTOS_Date_Time(0); if ( isset($_GET['fd']) ) { $from->setDateTime($_GET['fd']); } else { @@ -410,7 +410,7 @@ $this->filter['from'] = $from; } # End Date for search - $to = new DateTime(0); + $to = new TUTOS_Date_Time(0); if ( isset($_GET['td']) ) { $to->setDateTime($_GET['td']); } else { @@ -458,4 +458,4 @@ <!-- CVS Info: $Id$ $Author$ ---> +--> \ No newline at end of file Index: expense_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/expense/expense_select.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- expense_select.php 22 Jan 2006 20:19:21 -0000 1.4 +++ expense_select.php 16 Dec 2006 13:08:26 -0000 1.5 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert and ECOsoft.net + * Copyright 1999 - 2006 by Gero Kohnert and ECOsoft.net * * 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 @@ -17,8 +17,8 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("expense","select"); - loadmodule("expense"); + loadmodules('expense','select'); + loadmodule('expense'); loadlayout(); /** @@ -33,7 +33,7 @@ echo "<br /><br />\n"; - echo "<form name=\"expensesearch\" method=\"get\" action=\"expense_overview.php\">\n"; + echo "<form id=\"expensesearch\" name=\"expensesearch\" method=\"get\" action=\"expense_overview.php\">\n"; if ( $this->ext == false ) { $this->addHidden("reftype",0); } @@ -135,8 +135,8 @@ } # Defaults for search - $this->nsfd = new DateTime(0); - $this->nstd = new DateTime(0); + $this->nsfd = new TUTOS_Date_Time(0); + $this->nstd = new TUTOS_Date_Time(0); $this->nsrt = -1; if ( isset($_SESSION['expensesearchfrom']) ) { @@ -172,4 +172,4 @@ $l = new expense_select($current_user); $l->display(); $dbconn->Close(); -?> +?> \ No newline at end of file |
Update of /cvsroot/tutos/tutos/php In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php Modified Files: .htaccess Date.pinc address.pinc address_ins.php admin_show.php admin_sync.php app_ins.php app_overview.php app_select.php appointment.pinc base.pinc calendar.php calendar_day.php calendar_week.php company.pinc custom.pinc database.pinc graph_bars.php history.pinc history_show.php mytutos.php pdf.pinc permission.p3 product.pinc product_ins.php product_overview.php product_select.php res_cal.php task.pinc task_import_csv.php task_import_xml.php task_ins.php task_overview.php task_select.php team.pinc team_ins.php timetrack.pinc timetrack_finish.php timetrack_ins.php timetrack_new.php timetrack_overview.php timetrack_select.php user.pinc webelements.p3 Added Files: notfound.php Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: team_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/team_ins.php,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- team_ins.php 3 Apr 2005 18:31:55 -0000 1.35 +++ team_ins.php 16 Dec 2006 13:08:18 -0000 1.36 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 Index: task_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_select.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- task_select.php 22 Jan 2006 20:20:58 -0000 1.3 +++ task_select.php 16 Dec 2006 13:08:18 -0000 1.4 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2003 - 2005 by Gero Kohnert + * Copyright 2003 - 2006 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 @@ -16,7 +16,7 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("task","select"); + loadmodules('task','select'); loadlayout(); /** @@ -107,8 +107,8 @@ } # Defaults for search - $this->fd = new DateTime(0); - $this->td = new DateTime(0); + $this->fd = new TUTOS_Date_Time(0); + $this->td = new TUTOS_Date_Time(0); if ( isset($_SESSION['tasksearchfrom']) ) { $this->fd->setDateTime($_SESSION['tasksearchfrom']); } Index: timetrack_finish.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/timetrack_finish.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- timetrack_finish.php 19 Nov 2006 17:44:42 -0000 1.8 +++ timetrack_finish.php 16 Dec 2006 13:08:18 -0000 1.9 @@ -35,7 +35,7 @@ if ( $msg == '' ) { # finish the open timetrack - $end = new DateTime(); + $end = new TUTOS_Date_Time(); $tt->setEnd($end); $tt->setWorkDay($end); $tt->setVolume( ($tt->t_end->getTimeStamp() - $tt->t_start->getTimeStamp()) / 3600.0); Index: admin_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/admin_show.php,v retrieving revision 1.83 retrieving revision 1.84 diff -u -d -r1.83 -r1.84 --- admin_show.php 19 Nov 2006 17:44:42 -0000 1.83 +++ admin_show.php 16 Dec 2006 13:08:16 -0000 1.84 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2005 by Gero Kohnert + * Copyright 2001 - 2006 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 @@ -16,7 +16,7 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("admin","show"); + loadmodules('admin','show'); loadlayout(); /** @@ -196,7 +196,7 @@ Function sessions_info() { global $lang,$tutos; - $n = new DateTime(); + $n = new TUTOS_Date_Time(); $ts = $n->getTimeStamp(); $handle = opendir($tutos[sessionpath]); Index: product_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_select.php,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- product_select.php 22 Jan 2006 20:22:26 -0000 1.32 +++ product_select.php 16 Dec 2006 13:08:18 -0000 1.33 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -99,8 +99,8 @@ $this->center = true; # Defaults for search - $this->from = new DateTime(0); - $this->to = new DateTime(0); + $this->from = new TUTOS_Date_Time(0); + $this->to = new TUTOS_Date_Time(0); if ( isset($_SESSION['prodsearchfrom']) ) { $this->from->setDateTime($_SESSION['prodsearchfrom']); Index: admin_sync.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/admin_sync.php,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- admin_sync.php 23 Apr 2005 13:18:18 -0000 1.35 +++ admin_sync.php 16 Dec 2006 13:08:16 -0000 1.36 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2005 by Gero Kohnert + * Copyright 2001 - 2006 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 @@ -15,7 +15,7 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("admin","sync"); + loadmodules('admin','sync'); loadlayout(); /** @@ -98,15 +98,15 @@ $vals .= $pre. $dbconn2->String($fv); $upd .= $dbconn2->String($fv); } else if ( ($ft == "TIMESTAMP") || ($ft == "DATETIME") || ( ($ft == "DATE") && ($r->dbconn->getType() == "Oracle")) ) { - $dt = new DateTime($fv); + $dt = new TUTOS_Date_Time($fv); $vals .= $pre. $dbconn2->DateTime($dt); $upd .= $dbconn2->DateTime($dt); } else if ( $ft == "DATE" ) { - $dt = new DateTime($fv); + $dt = new TUTOS_Date_Time($fv); $vals .= $pre. $dbconn2->Date($dt); $upd .= $dbconn2->Date($dt); } else if ( $ft == "TIMESTAMPTZ" ) { - $dt = new DateTime($fv); + $dt = new TUTOS_Date_Time($fv); $vals .= $pre. $dbconn2->Date($dt); $upd .= $dbconn2->Date($dt); } else if ( eregi("^INT",$ft) || ($ft == "REAL") || eregi("^FLOAT",$ft) || ($ft == "LONG") || ($ft == "NUMBER") ) { @@ -258,7 +258,7 @@ $dbconn2->setSeqID($seq,$f[name]); } - $dbconn1->db->lastsync = new DateTime(); + $dbconn1->db->lastsync = new TUTOS_Date_Time(); $dbconn1->db->save(); } /** @@ -313,7 +313,7 @@ # The sync happens now $dbconn1->db->id = -1; $dbconn1->db->lastid = $seq1; - $dbconn1->db->lastsync = new DateTime(); + $dbconn1->db->lastsync = new TUTOS_Date_Time(); # copy tablename (we need the correct prefix) $dbconn1->db->tablename = $dbconn2->db->tablename; $dbconn1->db->save(); Index: calendar_day.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/calendar_day.php,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- calendar_day.php 11 Aug 2005 07:37:15 -0000 1.36 +++ calendar_day.php 16 Dec 2006 13:08:16 -0000 1.37 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2002-2005 by Gero Kohnert + * Copyright 2002-2006 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 @@ -19,7 +19,7 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("appointment","show"); + loadmodules('appointment','show'); loadlayout(); /** @@ -33,9 +33,9 @@ global $lang,$tutos; $ts = adodb_mktime(12,0,0,substr($this->t,4,2),substr($this->t,6,2),substr($this->t,0,4)); - $from = new DateTime(); - $last_day = new DateTime(); - $next_day = new DateTime(); + $from = new TUTOS_Date_Time(); + $last_day = new TUTOS_Date_Time(); + $next_day = new TUTOS_Date_Time(); $from->setDateTimeTS($ts); Index: task_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_ins.php,v retrieving revision 1.53 retrieving revision 1.54 diff -u -d -r1.53 -r1.54 --- task_ins.php 19 Nov 2006 09:25:06 -0000 1.53 +++ task_ins.php 16 Dec 2006 13:08:18 -0000 1.54 @@ -117,7 +117,7 @@ if ( isset($_POST['pre']) ) { foreach($_POST['pre'] as $i => $f ) { -# echo $i.'-> '.$f."<br />\n"; +# echo $i.'-> '.$f."<br />\n"; $t->tasklinks[$f] = 1; } } @@ -183,14 +183,14 @@ } } - $s_start = new DateTime(0); + $s_start = new TUTOS_Date_Time(0); $s_start->setDateTimeF("s_start"); $gotourl= addUrlParameter($gotourl,"s_start=". $s_start->getYYYYMMDDHHMM(),true); if ( !$s_start->checkDMY(true) ) { $msg .= sprintf($lang['Err0038'],$lang['TaskS_Start']) ."<br />"; } - $s_end = new DateTime(0); + $s_end = new TUTOS_Date_Time(0); $s_end->setDateTimeF("s_end"); $gotourl= addUrlParameter($gotourl,"s_end=". $s_end->getYYYYMMDDHHMM(),true); if ( !$s_end->checkDMY(true) ) { @@ -214,14 +214,14 @@ # First time work done if ( ($t->volume_done == 0) && ($volume_done > 0) ) { - $t->setRStart(new DateTime()); + $t->setRStart(new TUTOS_Date_Time()); } # First time state set to finished if ( ($t->state != TASK_FINISH) && ($state == TASK_FINISH) ) { - $t->setREnd(new DateTime()); + $t->setREnd(new TUTOS_Date_Time()); } if ( ($volume_done > $t->volume_done) && ($state == TASK_FINISH) ) { - $t->setREnd(new DateTime()); + $t->setREnd(new TUTOS_Date_Time()); } $t->setAutoName($autoname); Index: task_import_csv.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_import_csv.php,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- task_import_csv.php 23 Apr 2005 13:18:20 -0000 1.19 +++ task_import_csv.php 16 Dec 2006 13:08:18 -0000 1.20 @@ -27,7 +27,7 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("task","import"); + loadmodules('task','import'); loadlayout(); /** @@ -144,13 +144,13 @@ break; } case "s_start": { - $s_start = new DateTime($this->reformat_date($fields[$j])); + $s_start = new TUTOS_Date_Time($this->reformat_date($fields[$j])); $t->setSStart($s_start); $val = $t->s_start->getYYYYMMDD(); break; } case "s_end": { - $s_end = new DateTime($this->reformat_date($fields[$j])); + $s_end = new TUTOS_Date_Time($this->reformat_date($fields[$j])); $t->setSEnd($s_end); $val = $t->s_end->getYYYYMMDD(); break; Index: history_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/history_show.php,v retrieving revision 1.72 retrieving revision 1.73 diff -u -d -r1.72 -r1.73 --- history_show.php 13 Jun 2005 19:20:16 -0000 1.72 +++ history_show.php 16 Dec 2006 13:08:17 -0000 1.73 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -228,7 +228,7 @@ } # } else if ( $f['field'] == "UserLastSeen" ) { # echo " <td><b> ". (isset( $lang[$f["field"]]) ? $lang[$f["field"]] : $f["field"]) ."</b></td>\n"; -# $b = new DateTime(); +# $b = new TUTOS_Date_Time(); # $b->setDateTime($f["old"]); # echo " <td> ". $b->getDateTime() ."</td>\n"; # $b->setDateTime($f["new"]); @@ -303,7 +303,7 @@ $adr = $adr->read($f["adr_id"],$adr); echo " <td> ". ($adr != -1 ? $adr->getLink() : "") ."</td>\n"; } - $mt = new DateTime(); + $mt = new TUTOS_Date_Time(); $mt->setDateTime($f["m_time"]); echo " <td> ". $mt->getDateTime() ."</td>\n"; echo $this->OverviewRowEnd($line++); Index: history.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/history.pinc,v retrieving revision 1.47 retrieving revision 1.48 diff -u -d -r1.47 -r1.48 --- history.pinc 14 Nov 2006 19:48:12 -0000 1.47 +++ history.pinc 16 Dec 2006 13:08:17 -0000 1.48 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -83,7 +83,7 @@ return; } - $t = new DateTime(); + $t = new TUTOS_Date_Time(); foreach ($obj->modified as $i => $f) { if (!isset($f["field"]) || empty($f["field"]) ) { continue; Index: webelements.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/webelements.p3,v retrieving revision 1.306 retrieving revision 1.307 diff -u -d -r1.306 -r1.307 --- webelements.p3 19 Nov 2006 09:26:44 -0000 1.306 +++ webelements.p3 16 Dec 2006 13:08:18 -0000 1.307 @@ -444,7 +444,7 @@ if ( $t == "object" && method_exists($a,"gettype")) { $t = $a->getType(); } - $msg .= $sep ."<". $t .">".$a; +# $msg .= $sep ."<". gettype($t) .">".$a; $sep = ","; } $msg .= ")"; Index: company.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/company.pinc,v retrieving revision 1.68 retrieving revision 1.69 diff -u -d -r1.68 -r1.69 --- company.pinc 19 Nov 2006 17:44:42 -0000 1.68 +++ company.pinc 16 Dec 2006 13:08:16 -0000 1.69 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -360,11 +360,11 @@ function getHelpIndex () { global $lang; - $r = ""; + $r = ""; $r .= "<h3>". makelink("help.php?p=glossary#company",$lang["Company"],$lang["Company"]) ."</h3><ul>\n"; $r .= "<li>". makelink("help.php?p=company_show",$lang["show"],$lang["show"]) ."</li>\n"; $r .= "</ul>\n"; - echo $r; + echo $r; } } ?> Index: address.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/address.pinc,v retrieving revision 1.119 retrieving revision 1.120 diff -u -d -r1.119 -r1.120 --- address.pinc 24 Jul 2006 15:34:04 -0000 1.119 +++ address.pinc 16 Dec 2006 13:08:16 -0000 1.120 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -29,7 +29,7 @@ $this->init($dbconn); $this->larray = array(); - $this->birthday = new DateTime(0); + $this->birthday = new TUTOS_Date_Time(0); $this->f_name = ""; $this->l_name = ""; $this->m_name = ""; @@ -42,9 +42,9 @@ } $this->rl1 = false; $this->rl2 = false; - if (isset($dbconn)) { + if (isset($dbconn)) { $this->tablename = $this->dbconn->prefix ."addresses"; - } + } $this->user = 0; } @@ -127,7 +127,7 @@ * return a array of possible addresses */ function search_by_name(&$arr,&$user,$name) { - if ( trim($name) == "" ) return; + if ( trim($name) == "" ) return; $q = "SELECT * from ". $user->dbconn->prefix ."addresses WHERE". $user->dbconn->Like ("f_name",$name,"m_name","l_name"); $q .= " OR ". $user->dbconn->Like ("l_name",$name,"f_name","m_name"); @@ -135,13 +135,13 @@ check_dbacl($user->dbconn, $q, $user->id); $r = $user->dbconn->Exec($q); $n = $r->numrows(); - $a = 0; + $a = 0; while ( $a < $n ) { $x = new tutos_address($user->dbconn); $x->read_result($r,$a); - $arr[$x->id] = &$x; -# echo $x->getFullName() ."<br />"; - unset($x); + $arr[$x->id] = &$x; +# echo $x->getFullName() ."<br />"; + unset($x); $a++; } $r->free(); @@ -325,7 +325,7 @@ $e = ""; if ( isset($this->locall) ) { - foreach($this->locall as $i => $f) { + foreach($this->locall as $i => $f) { if ( $f->email_1 != "") { $e = $f->email_1; if ( $f->category == 2 ) { @@ -497,7 +497,7 @@ } else if ($fld == "lastname") { $this->setLName($data); } else if ($fld == "birthday") { - $d = new DateTime($data); + $d = new TUTOS_Date_Time($data); $this->setBirthday($d); } return; @@ -596,13 +596,13 @@ function getHelpIndex () { global $lang; - $r = ""; + $r = ""; $r .= "<h3>". makelink("help.php?p=glossary#address",$lang['Address'],$lang['Address']) ."</h3><ul>\n"; $r .= "<li>". makelink("help.php?p=address_new",$lang["NewEntry"]."/". $lang["Modify"],$lang["NewEntry"]."/". $lang["Modify"]) ."</li>\n"; $r .= "<li>". makelink("help.php?p=address_show",$lang["show"],$lang["show"]) ."</li>\n"; $r .= "<li>". makelink("help.php?p=address_overview",$lang['AddressOverview'],$lang['AddressOverview'])."</li>\n"; $r .= "</ul>\n"; - return $r; + return $r; } } ?> Index: Date.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/Date.pinc,v retrieving revision 1.119 retrieving revision 1.120 diff -u -d -r1.119 -r1.120 --- Date.pinc 9 Dec 2006 19:31:52 -0000 1.119 +++ Date.pinc 16 Dec 2006 13:08:16 -0000 1.120 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -387,12 +387,12 @@ * @package BASE * @module DateTime */ -class DateTime { +class TUTOS_Date_Time { /** * str is whatever a database gives us * -1 = now */ - function DateTime( $str = "-1" ) { + function TUTOS_Date_Time( $str = "-1" ) { global $current_user; $this->notime = 0; Index: res_cal.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/res_cal.php,v retrieving revision 1.41 retrieving revision 1.42 diff -u -d -r1.41 -r1.42 --- res_cal.php 1 May 2005 15:24:37 -0000 1.41 +++ res_cal.php 16 Dec 2006 13:08:18 -0000 1.42 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -256,7 +256,7 @@ # repeating => check every day for ($d = 1; $d <= $cols; $d++) { $t = MkTime(0,0,0,$m,$d,$y); - $day = new DateTime(0); + $day = new TUTOS_Date_Time(0); $day->setDateTimeTS($t); if($app->inside($day)) { $r = find_a_row(&$app,&$xarr,$d,$d); @@ -350,13 +350,13 @@ } } echo $this->OverviewTableEnd(); - echo '<form name="rescal2" id="rescal2" action="res_cal.php">'."\n"; - echo $this->start->enterMonth('s'); - echo $this->start->enterYear('s'); + echo '<form name="rescal2" id="rescal2" action="res_cal.php">'."\n"; + echo $this->start->enterMonth('s'); + echo $this->start->enterYear('s'); echo ' <input type="submit" value="GO" />'."\n"; hiddenFormElements(); echo $this->getHidden(); - echo "</form>\n"; + echo "</form>\n"; } /** * naviagte @@ -423,18 +423,18 @@ # # Start # - if ( isset($_GET['s_y']) && isset($_GET['s_m'])) { - $this->start = new DateTime(sprintf('%04d%02d01',$_GET['s_y'],$_GET['s_m'])); - } else if ( isset($_GET['start']) ) { - $this->start = new DateTime($_GET['start']); + if ( isset($_GET['s_y']) && isset($_GET['s_m'])) { + $this->start = new TUTOS_Date_Time(sprintf('%04d%02d01',$_GET['s_y'],$_GET['s_m'])); + } else if ( isset($_GET['start']) ) { + $this->start = new TUTOS_Date_Time($_GET['start']); } else { $t = MkTime(0,0,0,Date("m"),1,Date("Y")); - $this->start = new DateTime(); + $this->start = new TUTOS_Date_Time(); $this->start->setDateTimeTS($t); } if ( isset($_GET['end']) ) { - $this->end = new DateTime($_GET['end']); + $this->end = new TUTOS_Date_Time($_GET['end']); } else { $t = $this->start->getTimeStamp(); $x = Date("m",$t); @@ -443,7 +443,7 @@ } $t = MkTime(0,0,0,Date("m",$t),Date("d",$t),Date("Y",$t)); $t -= 1; - $this->end = new DateTime(); + $this->end = new TUTOS_Date_Time(); $this->end->setDateTimeTS($t); } # do not add start/end to navigate Index: product_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_overview.php,v retrieving revision 1.114 retrieving revision 1.115 diff -u -d -r1.114 -r1.115 --- product_overview.php 19 Nov 2006 17:44:42 -0000 1.114 +++ product_overview.php 16 Dec 2006 13:08:17 -0000 1.115 @@ -872,7 +872,7 @@ $this->filter['name'] = ""; } # Start Date for search - $from = new DateTime(0); + $from = new TUTOS_Date_Time(0); if ( isset($_GET['fd']) ) { $from->setDateTime($_GET['fd']); } else { @@ -889,7 +889,7 @@ $this->filter['from'] = $from; } # End Date for search - $to = new DateTime(0); + $to = new TUTOS_Date_Time(0); if ( isset($_GET['td']) ) { $to->setDateTime($_GET['td']); } else { Index: timetrack_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/timetrack_new.php,v retrieving revision 1.70 retrieving revision 1.71 diff -u -d -r1.70 -r1.71 --- timetrack_new.php 25 Nov 2006 08:48:10 -0000 1.70 +++ timetrack_new.php 16 Dec 2006 13:08:18 -0000 1.71 @@ -223,7 +223,7 @@ } else { # new stuff if ( $this->mode == 1 ) { - $this->obj->t_start = new DateTime(); + $this->obj->t_start = new TUTOS_Date_Time(); } $this->obj->ref = $this->user; } Index: product.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/product.pinc,v retrieving revision 1.157 retrieving revision 1.158 diff -u -d -r1.157 -r1.158 --- product.pinc 24 Jul 2006 15:34:04 -0000 1.157 +++ product.pinc 16 Dec 2006 13:08:17 -0000 1.158 @@ -120,8 +120,8 @@ for ( $cl = 1;$cl <= $this->classes; $cl++) { $this->cl[$cl] = array(); } - $this->p_start = new DateTime(0); # Estimated Start/Order - $this->p_end = new DateTime(0); # Estimated End + $this->p_start = new TUTOS_Date_Time(0); # Estimated Start/Order + $this->p_end = new TUTOS_Date_Time(0); # Estimated End $this->tsum = array(); $this->invlist = array(); Index: calendar.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/calendar.php,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- calendar.php 24 Jul 2006 15:34:04 -0000 1.87 +++ calendar.php 16 Dec 2006 13:08:16 -0000 1.88 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -58,8 +58,8 @@ echo " <td class=\"week\" width=\"5%\">". menulink($navurl, $wn ."/". $yy, $lang['week'] ." ". $wn ."/". $yy ) ."</td>\n"; /* Select appointments for this day */ - $from = new DateTime(); - $to = new DateTime(); + $from = new TUTOS_Date_Time(); + $to = new TUTOS_Date_Time(); $from->setDateTimeTS($ts - 12 * 3600); $to->setDateTimeTS($ts - 12 * 3600); $to->addDays(7); @@ -74,7 +74,7 @@ $x->readCal($this->user,$from,$to); } - $dd = new DateTime(); + $dd = new TUTOS_Date_Time(); $day = 0; while ( $day < 7 ) { # $d = strftime($lang['DateFormatStr'],$ts); Index: graph_bars.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/graph_bars.php,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- graph_bars.php 29 Apr 2004 15:05:35 -0000 1.25 +++ graph_bars.php 16 Dec 2006 13:08:17 -0000 1.26 @@ -2,6 +2,10 @@ /* * Copyright 1999 - 2004 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 + * Free Software Foundation; version 2 of the License. + * * CVS Info: $Id$ * $Author$ * Index: user.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/user.pinc,v retrieving revision 1.151 retrieving revision 1.152 diff -u -d -r1.151 -r1.152 --- user.pinc 9 Dec 2006 19:44:45 -0000 1.151 +++ user.pinc 16 Dec 2006 13:08:18 -0000 1.152 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -34,7 +34,7 @@ $this->pw = " "; $this->uid = -1; $this->admin = 0; - $this->last_seen = new DateTime(0); + $this->last_seen = new TUTOS_Date_Time(0); $this->last_host = "unknown"; $this->prefteam = 1; $this->theme = $tutos[themes][0]; @@ -487,7 +487,7 @@ } } } - $id = ereg_replace('\[\]','',$name); + $id = ereg_replace('\[\]','',$name); $r = '<select id="'. $id .'" name="'. $name .'" '; if ( $multi > 0 ) { $min = 4; @@ -923,7 +923,7 @@ if ( isset($_SERVER['REMOTE_ADDR']) ) { $lh = $_SERVER['REMOTE_ADDR']; } - $this->setLastSeen(new DateTime()); + $this->setLastSeen(new TUTOS_Date_Time()); $this->setLastHost($lh); $q = new query($this->dbconn); @@ -973,4 +973,4 @@ echo $r; } } -?> +?> \ No newline at end of file Index: timetrack_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/timetrack_overview.php,v retrieving revision 1.99 retrieving revision 1.100 diff -u -d -r1.99 -r1.100 --- timetrack_overview.php 19 Nov 2006 17:44:42 -0000 1.99 +++ timetrack_overview.php 16 Dec 2006 13:08:18 -0000 1.100 @@ -568,7 +568,7 @@ $this->addHidden("name",$_GET['name']); } # Start Date for search - $from = new DateTime(0); + $from = new TUTOS_Date_Time(0); if ( isset($_GET['fd']) ) { $from->setDateTime($_GET['fd']); } else { @@ -584,7 +584,7 @@ $this->addHidden("fd",$from->getYYYYMMDD()); } # End Date for search - $to = new DateTime(0); + $to = new TUTOS_Date_Time(0); if ( isset($_GET['td']) ) { $to->setDateTime($_GET['td']); } else { @@ -594,7 +594,7 @@ $_SESSION['ttsearchto'] = $to->getYYYYMMDD(); } if ( $to->notime != 1 ) { - $td = new DateTime(0); + $td = new TUTOS_Date_Time(0); $td->setDateTimeTS(mktime(0,0,0,$to->month,$to->day + 1,$to->year)); $q .= $pre ."( vtime < ". $this->dbconn->Date($td) .")"; $pre = " AND "; Index: appointment.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/appointment.pinc,v retrieving revision 1.196 retrieving revision 1.197 diff -u -d -r1.196 -r1.197 --- appointment.pinc 25 Jul 2006 11:19:55 -0000 1.196 +++ appointment.pinc 16 Dec 2006 13:08:16 -0000 1.197 @@ -418,8 +418,8 @@ $this->trace = 0; $this->outside = 0; $this->mod_allow = 1; - $this->start = new DateTime(); - $this->end = new DateTime(); + $this->start = new TUTOS_Date_Time(); + $this->end = new TUTOS_Date_Time(); $this->t_ignore = 0; $this->visitor = -1; $this->product = new product($this->dbconn); @@ -482,8 +482,8 @@ } # This should work with different timezones ???? # but we do not exactly know what date !! - $x1 = new DateTime(); - $x2 = new DateTime(); + $x1 = new TUTOS_Date_Time(); + $x2 = new TUTOS_Date_Time(); $x1->setDateTimeTS($this->start->ts_def); $x2->setDateTimeTS($this->end->ts_def); if ( $this->t_ignore == "0" ) { @@ -1026,10 +1026,10 @@ if ($fld == "description") { $this->setDescription($data); } else if ($fld == "start") { - $d = new DateTime($data); + $d = new TUTOS_Date_Time($data); $this->setStartTime($d); } else if ($fld == "end") { - $d = new DateTime($data); + $d = new TUTOS_Date_Time($data); $this->setEndTime($d); # } else if ($fld == "participant") { # $this->setLName($data); @@ -1096,7 +1096,7 @@ $ical .= " :". $this->end->getIcal() ."\n"; } - $dtstamp = new DateTime(); + $dtstamp = new TUTOS_Date_Time(); $ical .= "DTSTAMP\n :". $dtstamp->getIcal() ."\n"; @reset($this->participant); while ( list ($i,$f) = @each ($this->participant) ) { @@ -1446,7 +1446,7 @@ */ function inside (&$o) { $o->setDateTime($o->getYYYYMMDD()); - $d = new DateTime(0); + $d = new TUTOS_Date_Time(0); $d->setDateTimeTS($o->ts_def); $x = $d->getYYYYMMDD(); @@ -1697,7 +1697,7 @@ global $tutos,$lang,$table; $msg = ''; - $d = new DateTime(); + $d = new TUTOS_Date_Time(); $q = 'SELECT * FROM '. $user->dbconn->prefix .$table['appointment1'][name].' WHERE remember > 0 AND remembered = 0'; $r = $user->dbconn->Exec($q); $n = $r->numrows(); @@ -1821,7 +1821,7 @@ $r->free(); - $x = new DateTime(); + $x = new TUTOS_Date_Time(); $x->setDateTimeTS($from->ts); $wd = "'". Date("w",$x->getTimeStamp()) ."'"; Index: custom.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/custom.pinc,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- custom.pinc 20 Nov 2006 18:30:40 -0000 1.10 +++ custom.pinc 16 Dec 2006 13:08:16 -0000 1.11 @@ -225,12 +225,12 @@ $fld = "_fld_".$i; if ($x['ftype'] == "Date") { - $xx = new DateTime(0); + $xx = new TUTOS_Date_Time(0); $xx->setDateTimeF($parsename); $gotourl= addUrlParameter($gotourl,$parsename ."=". $xx->getYYYYMMDD(),true); $obj->setDateField($fld,$xx,$x['lang']); } else if ($x['ftype'] == "DateTime") { - $xx = new DateTime(0); + $xx = new TUTOS_Date_Time(0); $xx->setDateTimeF($parsename); $gotourl= addUrlParameter($gotourl,$parsename ."=". $xx->getYYYYMMDDHHMM(),true); $obj->setDateTimeField($fld,$xx,$x['lang']); @@ -243,7 +243,7 @@ $gotourl= addUrlParameter($gotourl,$parsename ."=". $_POST[$parsename],true); $obj->setIntField($fld,$_POST[$parsename],$x['lang']); } else if ($x[type] == "TS_TYPE") { - $xx = new DateTime(0); + $xx = new TUTOS_Date_Time(0); $xx->setDateTimeF($parsename); $gotourl= addUrlParameter($gotourl,$parsename ."=". $xx->getYYYYMMDD(),true); $obj->setDateTimeField($fld,$xx,$x['lang']); Index: timetrack_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/timetrack_ins.php,v retrieving revision 1.50 retrieving revision 1.51 diff -u -d -r1.50 -r1.51 --- timetrack_ins.php 19 Nov 2006 17:44:42 -0000 1.50 +++ timetrack_ins.php 16 Dec 2006 13:08:18 -0000 1.51 @@ -97,7 +97,7 @@ # Read the Work Day if (isset($_POST['jsc_wd']) || isset($_POST['wd_d'])) { - $wd = new DateTime(0); + $wd = new TUTOS_Date_Time(0); $wd->setDateTimeF('wd',1); if ( !$wd->checkDMY() ) { $msg .= sprintf($lang['Err0038'],$lang['Date']) ."<br />"; @@ -107,7 +107,7 @@ $tt->setWorkday($wd); } if (isset($_POST['jsc_start']) || isset($_POST['start_d'])) { - $start = new DateTime(); + $start = new TUTOS_Date_Time(); $start->setDateTimeF('start',0); if ( !$start->checkDMY() ) { $msg .= sprintf($lang['Err0038'],$lang['AppStart']) ."<br />"; @@ -116,7 +116,7 @@ } $tt->setStart($start); } - $end = new DateTime(); + $end = new TUTOS_Date_Time(); $end->setDateTimeF("end",0); if ( !$end->checkDMY(true) ) { $msg .= sprintf($lang['Err0038'],$lang['AppEnd']) ."<br />"; Index: app_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/app_overview.php,v retrieving revision 1.62 retrieving revision 1.63 diff -u -d -r1.62 -r1.63 --- app_overview.php 25 Jul 2006 11:19:55 -0000 1.62 +++ app_overview.php 16 Dec 2006 13:08:16 -0000 1.63 @@ -1,6 +1,10 @@ <?php /** - * Copyright 1999 - 2004 by Gero Kohnert + * Copyright 1999 - 2006 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 + * Free Software Foundation; version 2 of the License. * * CVS Info: $Id$ * $Author$ @@ -16,7 +20,7 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("appointment","overview"); + loadmodules('appointment','overview'); loadlayout(); /** @@ -259,7 +263,7 @@ $this->addHidden("link_id",$_GET['link_id']); } # Start Date for search - $from = new DateTime(0); + $from = new TUTOS_Date_Time(0); if ( isset($_GET['fd']) ) { $from->setDateTime($_GET['fd']); } else { @@ -276,7 +280,7 @@ $this->filter['from'] = $from; } # End Date for search - $to = new DateTime(0); + $to = new TUTOS_Date_Time(0); if ( isset($_GET['td']) ) { $to->setDateTime($_GET['td']); } else { Index: task_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_overview.php,v retrieving revision 1.81 retrieving revision 1.82 diff -u -d -r1.81 -r1.82 --- task_overview.php 22 Jan 2006 20:20:58 -0000 1.81 +++ task_overview.php 16 Dec 2006 13:08:18 -0000 1.82 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -21,7 +21,7 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("task","overview"); + loadmodules('task','overview'); loadlayout(); /** @@ -32,8 +32,8 @@ * free search */ function select_by_name() { - $this->parent->min_start = new DateTime(); - $this->parent->max_end = new DateTime(0); + $this->parent->min_start = new TUTOS_Date_Time(); + $this->parent->max_end = new TUTOS_Date_Time(0); $this->parent->sum['volume'] = 0.0; $this->parent->sum['volume_done'] = 0.0; $q = "SELECT t.* from ". $this->dbconn->prefix ."tasks t, ". $this->dbconn->prefix ."taskworker w WHERE ("; @@ -156,7 +156,7 @@ if ( isset($_REQUEST['fld']) ) { echo makelink("task_overview.php?id=". $_REQUEST['id'] ."&fld=". $_REQUEST['fld'] ,$lang['TaskViewNormal']); } else { - echo makelink("task_overview.php?id=". $_REQUEST['id'] ,$lang['TaskViewNormal']); + echo makelink("task_overview.php?id=". $_REQUEST['id'] ,$lang['TaskViewNormal']); } } echo ")</td>\n"; @@ -493,8 +493,8 @@ $this->fld = ""; $this->name = $lang['TaskOverview']; - $this->start = new DateTime(0); - $this->end = new DateTime(0); + $this->start = new TUTOS_Date_Time(0); + $this->end = new TUTOS_Date_Time(0); $this->search = ""; $this->state = 0; $this->parent = -1; Index: app_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/app_ins.php,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- app_ins.php 4 Jul 2005 19:05:15 -0000 1.42 +++ app_ins.php 16 Dec 2006 13:08:16 -0000 1.43 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -55,7 +55,7 @@ # Set the Start and End time - $start = new DateTime(); + $start = new TUTOS_Date_Time(); $start->setDateTimeF("start"); if ( ( !$start->checkDMY()) || (-1 == $start->getTimeStamp() ) ) { $msg .= sprintf($lang['Err0038'],$lang['StartDate']) ."<br />"; @@ -64,7 +64,7 @@ $a->setStartTime($start); } - $end = new DateTime(); + $end = new TUTOS_Date_Time(); $end->setDateTimeF("end"); if ( ( !$end->checkDMY()) || (-1 == $end->getTimeStamp()) ) { $msg .= sprintf($lang['Err0038'],$lang['EndDate']) ."<br />"; @@ -86,17 +86,17 @@ if ( isset($_POST['people']) && (count($_POST['people']) > 0)) { foreach ($_POST['people'] as $f) { if ( $f == "" ) { - continue; - } + continue; + } $gotourl= addUrlParameter($gotourl,"people[]=".$f,true); - unset($a->oldparticipant[$f]); // a virtual move to the new list + unset($a->oldparticipant[$f]); // a virtual move to the new list if (!isset($a->participant[$f])) { - // new participant + // new participant $obj = GetObject($dbconn, $f); if ( $obj->id == $f ) { - $a->addParticipant($obj); + $a->addParticipant($obj); } unset($obj); } Index: task_import_xml.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_import_xml.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- task_import_xml.php 14 Nov 2006 19:44:30 -0000 1.1 +++ task_import_xml.php 16 Dec 2006 13:08:18 -0000 1.2 @@ -1,5 +1,6 @@ <?php /** + * Copyright 2006 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 @@ -23,7 +24,7 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("task","import"); + loadmodules('task','import'); loadlayout(); /** @@ -230,12 +231,12 @@ $this->cobj->setName($this->data); } if ( $name == "Start" ) { - $x= new DateTime(0); + $x= new TUTOS_Date_Time(0); $x->setDateTime($this->data); $this->cobj->setSStart($x); } if ( $name == "Finish" ) { - $x= new DateTime(0); + $x= new TUTOS_Date_Time(0); $x->setDateTime($this->data); $this->cobj->setSEnd($x); } Index: pdf.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/pdf.pinc,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- pdf.pinc 24 Feb 2005 19:28:37 -0000 1.6 +++ pdf.pinc 16 Dec 2006 13:08:17 -0000 1.7 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2004 - 2005 by Gero Kohnert + * Copyright 2004 - 2006 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 @@ -86,7 +86,7 @@ if (! $this->footer) return; - $d = new DateTime(); + $d = new TUTOS_Date_Time(); //Position at 1.5 cm from bottom //Arial italic 8 $this->SetFont('Arial','I',8); Index: timetrack_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/timetrack_select.php,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- timetrack_select.php 22 Jan 2006 20:19:20 -0000 1.23 +++ timetrack_select.php 16 Dec 2006 13:08:18 -0000 1.24 @@ -1,6 +1,10 @@ <?php /** - * Copyright 1999 - 2004 by Gero Kohnert + * Copyright 1999 - 2006 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 + * Free Software Foundation; version 2 of the License. * * @modulegroup timetrack * @module timetrack_select @@ -12,7 +16,7 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("timetrack","select"); + loadmodules('timetrack','select'); loadlayout(); /** @@ -101,8 +105,8 @@ } # Defaults for search - $this->fd = new DateTime(0); - $this->td = new DateTime(0); + $this->fd = new TUTOS_Date_Time(0); + $this->td = new TUTOS_Date_Time(0); if ( isset($_SESSION['ttsearchfrom']) ) { $this->fd->setDateTime($_SESSION['ttsearchfrom']); } Index: app_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/app_select.php,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- app_select.php 28 Jan 2006 18:51:02 -0000 1.26 +++ app_select.php 16 Dec 2006 13:08:16 -0000 1.27 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -16,7 +16,7 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("appointment","select"); + loadmodules('appointment','select'); loadlayout(); /** @@ -103,8 +103,8 @@ $this->center = true; # Defaults for search - $this->asfd = new DateTime(0); - $this->astd = new DateTime(0); + $this->asfd = new TUTOS_Date_Time(0); + $this->astd = new TUTOS_Date_Time(0); if ( isset($_SESSION['appsearchfrom']) ) { $this->asfd->setDateTime($_SESSION['appsearchfrom']); Index: product_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_ins.php,v retrieving revision 1.62 retrieving revision 1.63 diff -u -d -r1.62 -r1.63 --- product_ins.php 9 Dec 2006 19:44:44 -0000 1.62 +++ product_ins.php 16 Dec 2006 13:08:17 -0000 1.63 @@ -39,7 +39,7 @@ $template = true; $p->readroles(); $p->readTasks(); - $p->creation = new DateTime(); + $p->creation = new TUTOS_Date_Time(); # get timestamp of beginning $tplstart = mktime( 0, 0, 0, $p->p_start->month, $p->p_start->day, $p->p_start->year ); $gotourl= addurlParameter($gotourl,"tplid=". $_POST['tplid'],true); @@ -141,14 +141,14 @@ $gotourl= addUrlParameter($gotourl,"currency=". UrlEncode(StripSlashes($_POST['currency'])),true); - $pstart = new DateTime(0); + $pstart = new TUTOS_Date_Time(0); $pstart->setDateTimeF("p_start"); $gotourl= addUrlParameter($gotourl,"p_start=". $pstart->getYYYYMMDD(),true); if ( !$pstart->checkDMY(true) ) { $msg .= sprintf($lang['Err0038'],$lang['ProdStart']) ."<br />"; } - $pend = new DateTime(0); + $pend = new TUTOS_Date_Time(0); $pend->setDateTimeF("p_end"); $gotourl= addUrlParameter($gotourl,"p_end=". $pend->getYYYYMMDD(),true); if ( !$pend->checkDMY(true) ) { Index: base.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/base.pinc,v retrieving revision 1.93 retrieving revision 1.94 diff -u -d -r1.93 -r1.94 --- base.pinc 9 Dec 2006 19:44:44 -0000 1.93 +++ base.pinc 16 Dec 2006 13:08:16 -0000 1.94 @@ -65,7 +65,7 @@ $this->id = -1; $this->dbconn = &$dbconn; $this->creator = $current_user; - $this->creation = new DateTime(); + $this->creation = new TUTOS_Date_Time(); $this->acl = array(); $this->modified = array(); $this->history = array(); @@ -103,9 +103,9 @@ $this->$fld = 0.0; } else if ($x[type] == 'TS_TYPE') { if (isset($x['default_today']) && ($x['default_today'] == true) ) { - $this->$fld = new DateTime(); + $this->$fld = new TUTOS_Date_Time(); } else { - $this->$fld = new DateTime(0); + $this->$fld = new TUTOS_Date_Time(0); } } else { $this->$fld = ''; Index: address_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/address_ins.php,v retrieving revision 1.57 retrieving revision 1.58 diff -u -d -r1.57 -r1.58 --- address_ins.php 17 Nov 2006 18:05:33 -0000 1.57 +++ address_ins.php 16 Dec 2006 13:08:16 -0000 1.58 @@ -52,7 +52,7 @@ } - $birthday = new DateTime(0); + $birthday = new TUTOS_Date_Time(0); $birthday->setDateTimeF("birthday",1); Index: team.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/team.pinc,v retrieving revision 1.96 retrieving revision 1.97 diff -u -d -r1.96 -r1.97 --- team.pinc 24 Jul 2006 15:34:07 -0000 1.96 +++ team.pinc 16 Dec 2006 13:08:18 -0000 1.97 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -62,7 +62,7 @@ $obj->id = $id; $obj->name = $lang['everybody']; $obj->owner = $current_user; - $obj->creation = new DateTime(); + $obj->creation = new TUTOS_Date_Time(); while ( $a < $n ) { $obj->ids[$result->get($a, "adr_id")] = 1 ; Index: mytutos.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/mytutos.php,v retrieving revision 1.96 retrieving revision 1.97 diff -u -d -r1.96 -r1.97 --- mytutos.php 19 Nov 2006 09:26:44 -0000 1.96 +++ mytutos.php 16 Dec 2006 13:08:17 -0000 1.97 @@ -48,10 +48,10 @@ $yy = Date("y",$ts); $day = 0; - $dd = new DateTime(); + $dd = new TUTOS_Date_Time(); - $from = new DateTime(); - $to = new DateTime(); + $from = new TUTOS_Date_Time(); + $to = new TUTOS_Date_Time(); $from->setDateTimeTS($ts - 12 * 3600); $to->setDateTimeTS($ts - 12 * 3600); --- NEW FILE: notfound.php --- <?php /** * Copyright 1999 - 2006 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 * Free Software Foundation; version 2 of the License. * */ include_once 'webelements.p3'; include_once 'permission.p3'; check_user(); loadmodules('default','show'); loadlayout(); /** * display a default page */ class notfound extends layout { /** * display the info */ Function info() { echo "<b>\n"; echo "<h1>Sorry TUTOS was not able to find the requested page</h1>"; echo $_SERVER["REQUEST_URI"]; echo "<br /></b>\n"; } /** * prepare */ Function navigate() { global $msg,$lang; } /** * prepare */ Function prepare() { global $msg,$lang; } } $l = new notfound($current_user); $l->display(); $dbconn->Close(); ?> Index: database.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/database.pinc,v retrieving revision 1.57 retrieving revision 1.58 diff -u -d -r1.57 -r1.58 --- database.pinc 22 Jan 2006 20:23:23 -0000 1.57 +++ database.pinc 16 Dec 2006 13:08:17 -0000 1.58 @@ -1,6 +1,6 @@ <?php -/* - * Copyright 2001 - 2005 by Gero Kohnert +/** + * Copyright 2001 - 2006 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 @@ -89,8 +89,8 @@ $this->version = ''; $this->crypt = 0; - $this->lastsync = new Datetime(0); - $this->lastanalyze = new DateTime(0); + $this->lastsync = new TUTOS_Date_Time(0); + $this->lastanalyze = new TUTOS_Date_Time(0); $this->lastid = -1; $this->conn = -1; $this->systemid = ""; @@ -107,9 +107,9 @@ $this->tlist[DB_TYPE_FIREBIRD] = "Firebird"; $this->dbentryexist = false; - if (isset($dbconn->prefix)) { + if (isset($dbconn->prefix)) { $this->tablename = $this->dbconn->prefix . "tutos_dbs"; - } + } } /** * read a database result set @@ -133,9 +133,9 @@ $this->crypt = $r->get($pos, "cryptpw"); $this->prefix = $r->get($pos, "prefix"); $this->systemid = $r->get($pos, "systemid"); - if ($this->systemid == "") { - $this->systemid = CreateGUID(); - } + if ($this->systemid == "") { + $this->systemid = CreateGUID(); + } $this->creator = new tutos_user($this->dbconn); $this->creator = $this->creator->read($r->get($pos, "creator"),$this->creator); @@ -220,7 +220,7 @@ /* --------------------------------------------------------------------------- */ function setAlias($value) { - return $this->setStrField("alias",$value,"AdminDBAlias"); + return $this->setStrField("alias",$value,"AdminDBAlias"); } /* --------------------------------------------------------------------------- */ @@ -598,4 +598,4 @@ ); } } -?> +?> \ No newline at end of file Index: .htaccess =================================================================== RCS file: /cvsroot/tutos/tutos/php/.htaccess,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- .htaccess 8 Jun 2005 14:32:02 -0000 1.10 +++ .htaccess 16 Dec 2006 13:08:16 -0000 1.11 @@ -30,6 +30,4 @@ Deny from all </Files> # Disable display of config files -AddType application/x-httpd-php .pinc - -# ErrorDocument 404 http:/tutosdev/php/notfound.php +AddType application/x-httpd-php .pinc \ No newline at end of file Index: task.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/task.pinc,v retrieving revision 1.174 retrieving revision 1.175 diff -u -d -r1.174 -r1.175 --- task.pinc 19 Nov 2006 09:25:06 -0000 1.174 +++ task.pinc 16 Dec 2006 13:08:18 -0000 1.175 @@ -175,8 +175,8 @@ $recursive = true; } - $obj->max_end = new DateTime(0); - $obj->min_start = new DateTime(0); + $obj->max_end = new TUTOS_Date_Time(0); + $obj->min_start = new TUTOS_Date_Time(0); $obj->sum['volume'] = 0.0; $obj->sum['volume_done'] = 0.0; if ( $obj->getType() == "task") { @@ -291,10 +291,10 @@ $this->volume_todo = -1; $this->worker = array(); $this->tasklinks = array(); - $this->s_start = new DateTime(); - $this->s_end = new DateTime(); - $this->r_start = new DateTime(0); - $this->r_end = new DateTime(0); + $this->s_start = new TUTOS_Date_Time(); + $this->s_end = new TUTOS_Date_Time(); + $this->r_start = new TUTOS_Date_Time(0); + $this->r_end = new TUTOS_Date_Time(0); $this->state = TASK_PRE; $this->diff = 0; $this->milestone = 0; Index: timetrack.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/timetrack.pinc,v retrieving revision 1.80 retrieving revision 1.81 diff -u -d -r1.80 -r1.81 --- timetrack.pinc 22 Jan 2006 20:23:23 -0000 1.80 +++ timetrack.pinc 16 Dec 2006 13:08:18 -0000 1.81 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -92,10 +92,10 @@ $this->volume = 0.0; $this->volume_todo = -1; $this->distance = 0.0; - $this->wday = new DateTime(); - $this->creation = new DateTime(); - $this->t_start = new DateTime(0); - $this->t_end = new DateTime(0); + $this->wday = new TUTOS_Date_Time(); + $this->creation = new TUTOS_Date_Time(); + $this->t_start = new TUTOS_Date_Time(0); + $this->t_end = new TUTOS_Date_Time(0); # number of invoice $this->invoice = -1; $this->currency = $tutos[currencies][0]; @@ -393,7 +393,7 @@ ($this->ref != -1) && ($this->ref->getType() == "task") ) { if ( $this->ref->r_start->notime == 1 ) { - $this->ref->setRStart(new Datetime()); + $this->ref->setRStart(new TUTOS_Date_Time()); } // Task has to be considered running Index: calendar_week.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/calendar_week.php,v retrieving revision 1.50 retrieving revision 1.51 diff -u -d -r1.50 -r1.51 --- calendar_week.php 11 Aug 2005 07:37:15 -0000 1.50 +++ calendar_week.php 16 Dec 2006 13:08:16 -0000 1.51 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2005 by Gero Kohnert + * Copyright 2001 - 2006 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 @@ -73,8 +73,8 @@ echo menulink($url,$this->theme->getImage(right,'list') ,$lang['nextweek']) ."</th>\n"; echo " </tr>\n"; - $from = new DateTime(); - $to = new DateTime(); + $from = new TUTOS_Date_Time(); + $to = new TUTOS_Date_Time(); $from->setDateTimeTS($ts - 12 * 3600); $to->setDateTimeTS($ts - 12 * 3600); $to->addDays(7); @@ -90,7 +90,7 @@ $day = 0; $col = 1; - $dd = new DateTime(); + $dd = new TUTOS_Date_Time(); $navurl = 'calendar_day.php'; foreach ($this->team as $tt) { $navurl = addUrlParameter($navurl,'team[]='.$tt,false); Index: permission.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/permission.p3,v retrieving revision 1.157 retrieving revision 1.158 diff -u -d -r1.157 -r1.158 --- permission.p3 4 Oct 2006 08:56:49 -0000 1.157 +++ permission.p3 16 Dec 2006 13:08:17 -0000 1.158 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -135,7 +135,7 @@ return; } - $now = new DateTime(); + $now = new TUTOS_Date_Time(); $query = "INSERT into ". $dbconn->prefix ."messages (ts,". $dbconn->colname("message") .") values (". $dbconn->DateTime($now) .",". $dbconn->String(substr($msg,0,200)) .")"; $dbconn->Exec($query); } @@ -392,7 +392,7 @@ $auth[0]->login_form($_SERVER['PHP_SELF'],$msg); } - $n = new DateTime(); + $n = new TUTOS_Date_Time(); $diff = $n->getTimestamp() - $current_user->last_seen->getTimestamp(); # logmessage("check_user: still logged in ". $current_user->admin ." $userid:". $current_user->getFullname() . " idle for ". $diff ); # logmessage("check_user: ". $current_user->last_seen->getDateTime() ." " . $n->getDateTime() ); @@ -416,7 +416,7 @@ } $current_user->update($initial_auth); - $n = new DateTime(); + $n = new TUTOS_Date_Time(); $_SESSION['username'] = $current_user->getFullName(); $_SESSION['lastseen'] = $current_user->last_seen->getTimeStamp(); $_SESSION['lasthost'] = $current_user->last_host; |
From: Gero K. <gok...@us...> - 2006-12-16 13:09:01
|
Update of /cvsroot/tutos/tutos/php/fax In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php/fax Modified Files: fax_new.php Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: fax_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/fax/fax_new.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- fax_new.php 19 Jul 2004 19:08:52 -0000 1.2 +++ fax_new.php 16 Dec 2006 13:08:27 -0000 1.3 @@ -1,6 +1,10 @@ <?php -/* - * Copyright 1999 - 2002 by Gero Kohnert +/** + * Copyright 1999 - 2006 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 + * Free Software Foundation; version 2 of the License. */ $tutos['base'] = "../.."; ini_set("include_path",".."); @@ -9,7 +13,7 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("fax","new"); + loadmodules('fax','new'); loadlayout(); /** * display a fax send form @@ -61,7 +65,7 @@ echo $this->DataTableEnd(); hiddenFormElements(); - echo $this->getHidden(); + echo $this->getHidden(); echo "</form>\n"; } /** @@ -86,7 +90,7 @@ if ( isset($_GET['fax']) ) { $this->text = Base64_Decode($_GET['fax']); } else { - $t = new DateTime(); + $t = new TUTOS_Date_Time(); $this->text = $t->getDateTime(); $this->text .= "\n"; $this->text .= "\n"; @@ -109,4 +113,4 @@ <!-- CVS Info: $Id$ $Author$ ---> +--> \ No newline at end of file |
From: Gero K. <gok...@us...> - 2006-12-16 13:09:00
|
Update of /cvsroot/tutos/tutos/php/db In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php/db Modified Files: db.pinc db_mssql.pinc db_mysql.pinc db_oci.pinc db_ora.pinc db_pg.pinc Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: db_oci.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/db/db_oci.pinc,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- db_oci.pinc 4 Jun 2005 20:24:17 -0000 1.29 +++ db_oci.pinc 16 Dec 2006 13:08:26 -0000 1.30 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2002 - 2005 by Gero Kohnert + * Copyright 2002 - 2006 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 @@ -224,7 +224,7 @@ if ( $d->notime == 1) { return "null"; } - $t = new DateTime(); + $t = new TUTOS_Date_Time(); $t->setDateTimeTS($d->ts_def); // set the fields in default TZ $t->ts_def = $t->ts; $x = sprintf("to_Date('%04d-%02d-%02d %02d:%02d:%02d','YYYY-MM-DD HH24:MI:SS')",$t->year,$t->month,$t->day,$t->hour,$t->min,$t->sec); @@ -238,7 +238,7 @@ return "null"; } - $t = new DateTime(); + $t = new TUTOS_Date_Time(); $t->setDateTimeTS($d->ts_def); // set the fields in default TZ $t->ts_def = $t->ts; $x = sprintf("to_Date('%04d-%02d-%02d','YYYY-MM-DD')",$t->year,$t->month,$t->day); @@ -528,7 +528,7 @@ function checkservice() { global $table,$sequence,$tableidx,$tutos; - $now = new DateTime(); + $now = new TUTOS_Date_Time(); $diff = $now->getTimestamp() - $this->db->lastanalyze->getTimeStamp(); # only once a day Index: db_mysql.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/db/db_mysql.pinc,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- db_mysql.pinc 19 Nov 2006 17:44:42 -0000 1.31 +++ db_mysql.pinc 16 Dec 2006 13:08:26 -0000 1.32 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2005 by Gero Kohnert + * Copyright 2001 - 2006 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 @@ -191,7 +191,7 @@ if ( $d->notime == 1) { return "null"; } - $t = new DateTime(); + $t = new TUTOS_Date_Time(); $t->setDateTimeTS($d->ts_def); // set the fields in default TZ $t->ts_def = $t->ts; $x = sprintf ("'%04d-%02d-%02d %02d:%02d:%02d'",$t->year,$t->month,$t->day,$t->hour,$t->min,$t->sec); @@ -205,7 +205,7 @@ return "null"; } - $t = new DateTime(); + $t = new TUTOS_Date_Time(); $t->setDateTimeTS($d->ts_def); // set the fields in default TZ $t->ts_def = $t->ts; $x = sprintf ("'%04d-%02d-%02d'",$t->year,$t->month,$t->day); @@ -516,7 +516,7 @@ function checkservice() { global $table,$sequence,$tableidx,$tutos; - $now = new DateTime(); + $now = new TUTOS_Date_Time(); $diff = $now->getTimestamp() - $this->db->lastanalyze->getTimeStamp(); # only once a day Index: db.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/db/db.pinc,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- db.pinc 23 Apr 2005 13:18:22 -0000 1.11 +++ db.pinc 16 Dec 2006 13:08:23 -0000 1.12 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -188,7 +188,7 @@ * get a result entry as DateTime */ function getDateTime($pos,$fld) { - return new DateTime($this->get($pos,$fld)); + return new TUTOS_Date_Time($this->get($pos,$fld)); } /** * get a result entry as TUTOS object Index: db_pg.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/db/db_pg.pinc,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- db_pg.pinc 14 Sep 2006 10:16:59 -0000 1.32 +++ db_pg.pinc 16 Dec 2006 13:08:26 -0000 1.33 @@ -1,6 +1,6 @@ <?php -/* - * Copyright 2001 - 2005 by Gero Kohnert +/** + * Copyright 2001 - 2006 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 @@ -608,7 +608,7 @@ * method to call from check service */ function checkservice() { - $now = new DateTime(); + $now = new TUTOS_Date_Time(); $diff = $now->getTimestamp() - $this->db->lastanalyze->getTimeStamp(); # only once a day Index: db_ora.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/db/db_ora.pinc,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- db_ora.pinc 4 Jun 2005 20:24:17 -0000 1.28 +++ db_ora.pinc 16 Dec 2006 13:08:26 -0000 1.29 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2005 by Gero Kohnert + * Copyright 2001 - 2006 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 @@ -241,7 +241,7 @@ if ( $d->notime == 1) { return "null"; } - $t = new DateTime(); + $t = new TUTOS_Date_Time(); $t->setDateTimeTS($d->ts_def); // set the fields in default TZ $t->ts_def = $t->ts; $x = sprintf("to_Date('%04d-%02d-%02d %02d:%02d:%02d','YYYY-MM-DD HH24:MI:SS')",$t->year,$t->month,$t->day,$t->hour,$t->min,$t->sec); @@ -255,7 +255,7 @@ return "null"; } - $t = new DateTime(); + $t = new TUTOS_Date_Time(); $t->setDateTimeTS($d->ts_def); // set the fields in default TZ $t->ts_def = $t->ts; $x = sprintf("to_Date('%04d-%02d-%02d','YYYY-MM-DD')",$t->year,$t->month,$t->day); @@ -544,7 +544,7 @@ function checkservice() { global $table,$sequence,$tableidx,$tutos; - $now = new DateTime(); + $now = new TUTOS_Date_Time(); $diff = $now->getTimestamp() - $this->db->lastanalyze->getTimeStamp(); # only once a day Index: db_mssql.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/db/db_mssql.pinc,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- db_mssql.pinc 17 Apr 2005 18:17:01 -0000 1.4 +++ db_mssql.pinc 16 Dec 2006 13:08:24 -0000 1.5 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2005 by Gero Kohnert + * Copyright 2001 - 2006 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 @@ -240,7 +240,7 @@ if ( $d->notime == 1) { return "null"; } - $t = new DateTime(); + $t = new TUTOS_Date_Time(); $t->setDateTimeTS($d->ts_def); // set the fields in default TZ $t->ts_def = $t->ts; $x = sprintf("'%04d-%02d-%02d %02d:%02d:%02d'",$t->year,$t->month,$t->day,$t->hour,$t->min,$t->sec); @@ -254,7 +254,7 @@ return "null"; } - $t = new DateTime(); + $t = new TUTOS_Date_Time(); $t->setDateTimeTS($d->ts_def); // set the fields in default TZ $t->ts_def = $t->ts; $x = sprintf("'%04d-%02d-%02d'",$t->year,$t->month,$t->day); @@ -523,7 +523,7 @@ function checkservice() { global $table,$sequence,$tableidx,$tutos; - $now = new DateTime(); + $now = new TUTOS_Date_Time(); $diff = $now->getTimestamp() - $this->db->lastanalyze->getTimeStamp(); # only once a day |
From: Gero K. <gok...@us...> - 2006-12-16 13:08:56
|
Update of /cvsroot/tutos/tutos/php/bugtracking In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php/bugtracking Modified Files: bug.pinc bug_ins.php bug_overview.php bug_select.php Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: bug.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/bugtracking/bug.pinc,v retrieving revision 1.43 retrieving revision 1.44 diff -u -d -r1.43 -r1.44 --- bug.pinc 23 Nov 2006 09:15:00 -0000 1.43 +++ bug.pinc 16 Dec 2006 13:08:23 -0000 1.44 @@ -130,7 +130,7 @@ $msg = ""; - $now = new DateTime(); + $now = new TUTOS_Date_Time(); $q = new query($this->dbconn); $q->setTable($this->tablename); $this->id = $q->addFV("id",-1,"NEXTID"); @@ -274,8 +274,8 @@ $this->plist = array(); $this->short = ''; $this->medium = ''; - $this->plandate = new DateTime(0); # planned solve date - $this->solvedate = new DateTime(0); # real solvedate + $this->plandate = new TUTOS_Date_Time(0); # planned solve date + $this->solvedate = new TUTOS_Date_Time(0); # real solvedate $this->tablename = $this->dbconn->prefix .$table['bug'][name]; $this->tablename2 = $this->dbconn->prefix .$table['bug2'][name]; @@ -601,9 +601,9 @@ function setState($value) { if ( 1 == $this->setIntField("state",$value,"BugState") ) { if ( $value == BUG_STATE_SOLVED ) { - $this->solvedate = new DateTime(); + $this->solvedate = new TUTOS_Date_Time(); } else if ( $value == BUG_STATE_CLOSED ) { - $this->solvedate = new DateTime(); + $this->solvedate = new TUTOS_Date_Time(); } } return; @@ -745,7 +745,7 @@ if ( ($this->state == BUG_STATE_SOLVED) || ( $this->state == BUG_STATE_CLOSED) ) { $q->addFV("solvedate",$this->solvedate,"DATETIME"); } else { - $this->solvedate = new DateTime(0); + $this->solvedate = new TUTOS_Date_Time(0); $q->addFV("solvedate",$this->solvedate,"DATETIME"); } $q->addFV("plandate",$this->plandate,"DATETIME"); @@ -1070,7 +1070,7 @@ if ( $tutos[bugremember] == 0 ) { return $msg; } - $d = new DateTime(); + $d = new TUTOS_Date_Time(); $q = "SELECT * FROM ". $user->dbconn->prefix ."bugs WHERE state = ".BUG_STATE_OPEN; $r = $user->dbconn->Exec($q); Index: bug_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bugtracking/bug_overview.php,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- bug_overview.php 19 Nov 2006 17:44:42 -0000 1.26 +++ bug_overview.php 16 Dec 2006 13:08:23 -0000 1.27 @@ -388,10 +388,10 @@ echo "</tr>\n"; # Creation Times - $c1 = new DateTime(); - $c2 = new DateTime(); - $t1 = new DateTime(); - $t2 = new DateTime(); + $c1 = new TUTOS_Date_Time(); + $c2 = new TUTOS_Date_Time(); + $t1 = new TUTOS_Date_Time(); + $t2 = new TUTOS_Date_Time(); $c1->setDateTimeTS($cmin); $c2->setDateTimeTS($cmax); $t1->setDateTimeTS($tmin); @@ -782,7 +782,7 @@ $this->addHidden("pid",$pid); } # Start Date for search - $from = new DateTime(0); + $from = new TUTOS_Date_Time(0); if ( isset($_GET['fd']) ) { $from->setDateTime($_GET['fd']); } else { @@ -801,7 +801,7 @@ $this->addHidden("fd",$from->getYYYYMMDD()); } # End Date for search - $to = new DateTime(0); + $to = new TUTOS_Date_Time(0); if ( isset($_GET['td']) ) { $to->setDateTime($_GET['td']); } else { Index: bug_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bugtracking/bug_ins.php,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- bug_ins.php 21 Oct 2006 18:15:13 -0000 1.19 +++ bug_ins.php 16 Dec 2006 13:08:23 -0000 1.20 @@ -27,8 +27,8 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("bugtracking","new"); - loadmodule("bugtracking"); + loadmodules('bugtracking','new'); + loadmodule('bugtracking'); $gotourl = "bug_new.php"; @@ -129,7 +129,7 @@ } } - $plandate = new DateTime(0); + $plandate = new TUTOS_Date_Time(0); $plandate->setDateTimeF("pd"); $gotourl= addUrlParameter($gotourl,"pd=". $plandate->getYYYYMMDD(),true); if ( !$plandate->checkDMY(true) ) { @@ -228,25 +228,25 @@ if ( $b->parent->getType() == "product" ) { $b->setSolver($solver); - /***** + /***** $b->parent->readroles(); if ( count($b->parent->role[PROD_ROLE_MANAGER]) > 0 ) { - $solver = current($b->parent->role[PROD_ROLE_MANAGER]); + $solver = current($b->parent->role[PROD_ROLE_MANAGER]); $b->setSolver($solver); } else if ( count($b->parent->role[PROD_ROLE_MANAGER2]) > 0 ) { - $solver = current($b->parent->role[PROD_ROLE_MANAGER2]); + $solver = current($b->parent->role[PROD_ROLE_MANAGER2]); $b->setSolver($solver); } else { $b->setSolver($current_user); } - ****/ + ****/ } else if ( $b->parent->getType() == "installation" ) { $b->parent->product->readroles(); if ( count($b->parent->product->role[PROD_ROLE_MANAGER]) > 0 ) { - $solver = current($b->parent->product->role[PROD_ROLE_MANAGER]); + $solver = current($b->parent->product->role[PROD_ROLE_MANAGER]); $b->setSolver($solver); } else if ( count($b->parent->product->role[PROD_ROLE_MANAGER2]) > 0 ) { - $solver = current($b->parent->product->role[PROD_ROLE_MANAGER2]); + $solver = current($b->parent->product->role[PROD_ROLE_MANAGER2]); $b->setSolver($solver); } else { $b->setSolver($current_user); Index: bug_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bugtracking/bug_select.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- bug_select.php 22 Jan 2006 20:19:21 -0000 1.7 +++ bug_select.php 16 Dec 2006 13:08:23 -0000 1.8 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -18,8 +18,8 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("bugtracking","select"); - loadmodule("bugtracking"); + loadmodules('bugtracking','select'); + loadmodule('bugtracking'); loadlayout(); /** @@ -34,7 +34,7 @@ echo "<br /><br />\n"; - echo "<form name=\"bugsearch\" method=\"get\" action=\"bug_overview.php\">\n"; + echo "<form name=\"bugsearch\" name=\"bugsearch\" method=\"get\" action=\"bug_overview.php\">\n"; DoubleTableStart(); echo "<tr>\n"; @@ -111,12 +111,12 @@ if ( ! $this->user->feature_ok(usebugtracking,PERM_SEL) ) { $msg .= sprintf($lang['Err0022'],"'". $this->name ."'"); $this->stop = true; - } + } # Defaults for search - $this->from = new DateTime(0); - $this->to = new DateTime(0); - + $this->from = new TUTOS_Date_Time(0); + $this->to = new TUTOS_Date_Time(0); + if ( isset($_SESSION['bugsearchfrom']) ) { $this->from->setDateTime($_SESSION['bugsearchfrom']); } @@ -141,7 +141,7 @@ if ( ! isset($_GET['ext']) ) { $this->ext = 0; } else { - $this->ext = $_GET['ext']; + $this->ext = $_GET['ext']; } if ( $this->user->feature_ok(usebugtracking,PERM_NEW) ) { $x = array( url => "bugtracking/bug_new.php", @@ -150,7 +150,7 @@ category => array("bug","new","obj") ); $this->addMenu($x); - } + } } } @@ -161,4 +161,4 @@ <!-- CVS Info: $Id$ $Author$ ---> +--> \ No newline at end of file |
From: Gero K. <gok...@us...> - 2006-12-16 13:08:55
|
Update of /cvsroot/tutos/tutos/php/checklist In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php/checklist Modified Files: checkfield.pinc checklist.pinc Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: checkfield.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/checklist/checkfield.pinc,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- checkfield.pinc 1 Dec 2005 22:26:18 -0000 1.20 +++ checkfield.pinc 16 Dec 2006 13:08:23 -0000 1.21 @@ -66,8 +66,8 @@ $this->value_t = ""; $this->help_text = ""; $this->modificator = $current_user; - $this->modification = new DateTime(); - $this->deleted = new DateTime(0); + $this->modification = new TUTOS_Date_Time(); + $this->deleted = new TUTOS_Date_Time(0); $this->name = ""; $this->description = ""; } @@ -142,10 +142,10 @@ $this->maxvalue = $r->get($pos, "f_val_max"); $this->pos = $r->get($pos, "f_pos"); $this->value_t = StripSlashes($r->get($pos, "f_val_t")); - $this->creation = new DateTime($r->get($pos, "creation")); + $this->creation = new TUTOS_Date_Time($r->get($pos, "creation")); $this->modificator = $this->modificator->read($r->get($pos, "modificator"),$this->modificator); - $this->modification= new DateTime($r->get($pos, "modification")); - $this->deleted= new DateTime($r->get($pos, "deleted")); + $this->modification= new TUTUOS_Date_Time($r->get($pos, "modification")); + $this->deleted= new TUTOS_Date_Time($r->get($pos, "deleted")); if ( ! $this->pos ) { $this->pos= -1; @@ -168,7 +168,7 @@ $this->modificator = $current_user; unset ( $this->modification); - $this->modification = new DateTime( "-1"); // now + $this->modification = new TUTOS_Date_Time( "-1"); // now } /** * compare checkfields @@ -329,7 +329,7 @@ function del_ok () { return acl_del_ok($this); } - + /** * Return a link to this checkfield */ @@ -424,7 +424,7 @@ $msg = ""; unset ( $this->deleted); - $this->deleted = new DateTime( "-1"); // now + $this->deleted = new TUTOS_Date_Time( "-1"); // now $q = "UPDATE ". $this->tablename ." SET deleted=".$this->dbconn->datetime($this->deleted)." WHERE id = ". $this->id; $this->dbconn->Exec($q); @@ -627,4 +627,4 @@ } } -?> +?> \ No newline at end of file Index: checklist.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/checklist/checklist.pinc,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- checklist.pinc 2 Jan 2006 08:36:25 -0000 1.28 +++ checklist.pinc 16 Dec 2006 13:08:23 -0000 1.29 @@ -139,8 +139,8 @@ $this->checkfields = array(); $this->checkfields_valid = false; $this->modificator = $current_user; - $this->modification = new DateTime(); - $this->deleted = new DateTime(0); + $this->modification = new TUTOS_Date_Time(); + $this->deleted = new TUTOS_Date_Time(0); } /* --------------------------------------------------------------------------- @@ -199,10 +199,10 @@ $this->id = $r->get($pos, "id"); $this->type = $r->get($pos, "cl_type"); $this->class_id = $r->get($pos, "class_id"); - $this->creation = new DateTime($r->get($pos, "creation")); + $this->creation = new TUTOS_Date_Time($r->get($pos, "creation")); $this->modificator = $this->modificator->read($r->get($pos, "modificator"),$this->modificator); - $this->modification= new DateTime($r->get($pos, "modification")); - $this->deleted = new DateTime($r->get($pos, "deleted")); + $this->modification= new TUTOS_Date_Time($r->get($pos, "modification")); + $this->deleted = new TUTOS_Date_Time($r->get($pos, "deleted")); acl_read($this); $g_hash[$this->id] = &$this; @@ -314,7 +314,7 @@ $this->modificator = $current_user; unset ( $this->modification); - $this->modification = new DateTime( "-1"); // now + $this->modification = new TUTOS_Date_Time( "-1"); // now $q = new query($this->dbconn); $q->setTable($this->tablename); @@ -365,7 +365,7 @@ $msg = ""; unset ( $this->deleted); - $this->deleted = new DateTime( "-1"); // now + $this->deleted = new TUTOS_Date_Time( "-1"); // now $q = "UPDATE ". $this->tablename ." SET deleted=".$this->dbconn->datetime($this->deleted)." WHERE id = ". $this->id; $this->dbconn->Exec($q); @@ -575,7 +575,7 @@ @reset ($tmp_cl); while ( list ($i,$f) = @each ($tmp_cl) ) { $cf = new checkfield($this->dbconn); // new checkfield - $cf->creation = new DateTime(); // created now + $cf->creation = new TUTOS_Date_Time(); // created now $cf->fid_in_class = $f->id; // which field-id in class $cf->id = -1; // will save as new object $cf->link_id = $this->id; // reference_id will be id of checklist-__instance__ @@ -613,7 +613,7 @@ $cf = new checkfield($this->dbconn); $cf->read_result($result,$aa); unset( $cf->creation); - $cf->creation = new DateTime(); + $cf->creation = new TUTOS_Date_Time(); $checkfields[$cf->id] = $cf; $aa++; unset($cf); |
From: Gero K. <gok...@us...> - 2006-12-16 13:08:55
|
Update of /cvsroot/tutos/tutos/php/admin In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php/admin Modified Files: scheme.php update.php Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: scheme.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/admin/scheme.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- scheme.php 23 Apr 2005 13:18:22 -0000 1.9 +++ scheme.php 16 Dec 2006 13:08:23 -0000 1.10 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001-2005 by Gero Kohnert + * Copyright 2001-2006 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 @@ -25,7 +25,7 @@ include_once 'mail.pinc'; include_once 'history.pinc'; - loadmodules("admin","install"); + loadmodules('admin','install'); loadlayout(); /** @@ -125,7 +125,7 @@ $adr = new tutos_address($this->obj); $adr->f_name = "Super"; $adr->l_name = "User"; - $adr->birthday = new DateTime(); + $adr->birthday = new TUTOS_Date_Time(); $adr->creator = $adr; $q = "DELETE FROM ". $adr->tablename ." WHERE f_name = ". $adr->dbconn->String($adr->f_name) ." AND l_name = ". $adr->dbconn->String($adr->l_name); Index: update.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/admin/update.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- update.php 16 Jul 2006 11:10:42 -0000 1.9 +++ update.php 16 Dec 2006 13:08:23 -0000 1.10 @@ -141,7 +141,7 @@ $updatefailed = false; echo "<h3>Special update for ". $tutos[version] ." from ". $this->dbc->db->version ."</h3><br />"; - /** + /** $tmpname = 's_start_temp'; if ($this->dbc->renamecolumn($table['task'],"s_start",$tmpname) == -2) { $updatefailed = true; @@ -158,7 +158,7 @@ $updatefailed = true; echo "Column s_start_temp not dropped:<span class=\"warn\">". $this->dbc->lasterror ."</span><br />\n"; } - ***/ + ***/ if ($this->dbc->dropnotnull($table['task'],"s_start") == -1) { $updatefailed = true; echo "Column attribute NOT NULL not dropped:<span class=\"warn\">". $this->dbc->lasterror ."</span><br />\n"; @@ -171,7 +171,7 @@ if ( $updatefailed ) { echo "Update failed<br />\n"; } - } + } # Prior to 1.3.20060701 if ( $oldv < 1320060701 ) { $updatefailed = false; @@ -179,7 +179,7 @@ $tmpname = 'repeat_type'; echo "<h3>".$table['appointment1'][name]."</h3><br />"; if ($this->dbc->dropcolumn($table['appointment1'],$tmpname) == -2) { - } + } if ($this->dbc->renamecolumn($table['appointment1'],"repeat",$tmpname) == -2) { $updatefailed = true; echo "Column not renamed:<span class=\"warn\">". $this->dbc->lasterror ."</span><br />\n"; @@ -187,13 +187,13 @@ if ( $updatefailed ) { echo "Update failed<br />\n"; } - } + } # update missing file links - if ($tutos[usedocmanagement]) { - } + if ($tutos[usedocmanagement]) { + } $this->dbc->db->SetVersion($tutos[version]); - $current_user->dbconn = &$this->dbc; + $current_user->dbconn = &$this->dbc; $this->dbc->db->save(); echo $this->error("If everything works disable this script"); @@ -238,7 +238,7 @@ # read the table definitions of modules foreach ($tutos[modules] as $r => $x) { - if (isset($tutos[modules][$r][file]) && file_exists(dirname($tutos['base'] ."/". $tutos[modules][$r][file]) ."/mtable.pinc") ) { + if (isset($tutos[modules][$r][file]) && file_exists(dirname($tutos['base'] ."/". $tutos[modules][$r][file]) ."/mtable.pinc") ) { @include_once dirname($tutos['base'] ."/". $tutos[modules][$r][file]) ."/mtable.pinc"; } } |
From: Gero K. <gok...@us...> - 2006-12-16 13:08:50
|
Update of /cvsroot/tutos/tutos In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689 Modified Files: apache.conf.in Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: apache.conf.in =================================================================== RCS file: /cvsroot/tutos/tutos/apache.conf.in,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- apache.conf.in 4 Jun 2004 06:07:50 -0000 1.14 +++ apache.conf.in 16 Dec 2006 13:08:16 -0000 1.15 @@ -41,6 +41,7 @@ # # Allow from 127.0.0.1 192.168 Allow from all + ErrorDocument 404 /tutos/php/notfound.php </Directory> # EOF |
From: Gero K. <gok...@us...> - 2006-12-16 13:08:34
|
Update of /cvsroot/tutos/tutos/php/stuff In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php/stuff Modified Files: stuff.pinc stuff_ins.php Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: stuff.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/stuff/stuff.pinc,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- stuff.pinc 23 Nov 2006 08:57:34 -0000 1.5 +++ stuff.pinc 16 Dec 2006 13:08:29 -0000 1.6 @@ -32,7 +32,7 @@ $this->location = ''; $this->price = 0.0; $this->currency = $tutos[currencies][0]; - $this->p_date = new DateTime(0); + $this->p_date = new TUTOS_Date_Time(0); $this->tablename = $this->dbconn->prefix .$table['stuff'][name]; } Index: stuff_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/stuff/stuff_ins.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- stuff_ins.php 23 Nov 2006 08:57:34 -0000 1.6 +++ stuff_ins.php 16 Dec 2006 13:08:29 -0000 1.7 @@ -21,7 +21,7 @@ /* Check if user is allowed to use it */ check_user(); loadmodules('stuff','ins'); - loadmodule("stuff"); + loadmodule('stuff'); $gotourl = "stuff/stuff_new.php"; $msg = ""; @@ -63,7 +63,7 @@ $gotourl = addUrlParameter($gotourl,"invid=". UrlEncode(StripSlashes($_POST['invid'])),true); } - $pdate = new DateTime(0); + $pdate = new TUTOS_Date_Time(0); $pdate->setDateTimeF("p_date"); $gotourl= addUrlParameter($gotourl,"p_date=". $pdate->getYYYYMMDD(),true); if ( !$pdate->checkDMY(true) ) { @@ -101,4 +101,4 @@ * CVS Info: $Id$ * $Author$ */ -?> +?> \ No newline at end of file |
From: Gero K. <gok...@us...> - 2006-12-16 13:08:33
|
Update of /cvsroot/tutos/tutos/php/report-engine/rep_mta In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php/report-engine/rep_mta Modified Files: rep_mta.pinc Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: rep_mta.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/report-engine/rep_mta/rep_mta.pinc,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- rep_mta.pinc 16 Nov 2006 09:25:57 -0000 1.2 +++ rep_mta.pinc 16 Dec 2006 13:08:29 -0000 1.3 @@ -2,6 +2,10 @@ /** * Copyright 2005/2006 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 + * Free Software Foundation; version 2 of the License. + * * * CVS Info: $Id$ * $Author$ @@ -16,8 +20,8 @@ function rep_mta($dbconn,$report) { $this->init($dbconn,$report); $this->obj = -1; - $this->from = new DateTime(0); - $this->to = new DateTime(0); + $this->from = new TUTOS_Date_Time(0); + $this->to = new TUTOS_Date_Time(0); if (isset($_GET['id'])) { $this->obj = getObject($this->dbconn,$_GET['id']); } @@ -100,16 +104,16 @@ $f->readHistory(-1,"m_time",2,-2); $old = -1; foreach ($f->history as $ii => $j) { - $mt = new DateTime(); + $mt = new TUTOS_Date_Time(); $mt->setDateTime($j["m_time"]); # echo "<br>". $f->getFullname() ." ". $j["m_time"] ." --- ".$ii." [". $j["field"]. "] ". $f->history_size; if ($j["field"] == "TaskS_Start") { $datax[] = $mt->getTimestamp(); - $val = new DateTime(); + $val = new TUTOS_Date_Time(); $val->setDateTime($j["new"]); $datay[] = $val->getTimeStamp(); - $old = new DateTime(); + $old = new TUTOS_Date_Time(); $old->setDateTime($j["old"]); } else if ($j["field"] == "created") { @@ -174,7 +178,7 @@ $graph->AddText($txt); unset ($txt); - $x = new DateTime(); + $x = new TUTOS_Date_Time(); $txt=new Text($x->getDateTime()); $txt->Pos(0.5 ,580 - 10 ,"center","bottom"); $txt->SetFont(FF_FONT0,FS_NORMAL); @@ -227,4 +231,4 @@ } -?> +?> \ No newline at end of file |
From: Gero K. <gok...@us...> - 2006-12-16 13:08:31
|
Update of /cvsroot/tutos/tutos/php/report-engine/rep_bug_state_duration In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php/report-engine/rep_bug_state_duration Modified Files: rep_bug_state_duration.pinc Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: rep_bug_state_duration.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/report-engine/rep_bug_state_duration/rep_bug_state_duration.pinc,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- rep_bug_state_duration.pinc 25 Jul 2006 07:15:32 -0000 1.3 +++ rep_bug_state_duration.pinc 16 Dec 2006 13:08:28 -0000 1.4 @@ -2,6 +2,10 @@ /** * Copyright 2005/2006 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 + * Free Software Foundation; version 2 of the License. + * * * CVS Info: $Id$ * $Author$ @@ -13,8 +17,8 @@ $this->init($dbconn,$report); $this->format = "html"; $this->obj = -1; - $this->from = new DateTime(0); - $this->to = new DateTime(0); + $this->from = new TUTOS_Date_Time(0); + $this->to = new TUTOS_Date_Time(0); if (isset($_GET['id'])) { $this->obj = getObject($this->dbconn,$_GET['id']); } @@ -47,7 +51,7 @@ foreach ($bug->history as $i => $j) { if ($j['field'] != "BugState") continue; - $x = new DateTime(); + $x = new TUTOS_Date_Time(); $x->setDateTime($j['m_time']); if ($show_history) { @@ -65,7 +69,7 @@ $r .= $this->layout->DataTableEnd(); } - $x = new DateTime(); + $x = new TUTOS_Date_Time(); # calc the last state only if not CLOSED # if (($lastState != BUG_STATE_CLOSED) && ($lastState != BUG_STATE_SOLVED)) { if ($lastState != BUG_STATE_CLOSED) { @@ -93,7 +97,7 @@ $pre_r = ''; foreach ($this->bugclass as $j) { $r .= $pre_r. $lang['BugClasses'][$j]; - $pre_r = " or "; + $pre_r = " or "; } $r .= "<br />"; @@ -144,7 +148,7 @@ $pre = ''; foreach ($this->bugclass as $j) { $r .= $pre. $lang['BugClasses'][$j]; - $pre = " or "; + $pre = " or "; } $r .= "<br />"; } @@ -204,8 +208,8 @@ $r .= '<option value="'.$i.'">'. $j .'</option>'; } $r .= '</select><br />'; - $from = new DateTime(0); - $to = new DateTime(0); + $from = new TUTOS_Date_Time(0); + $to = new TUTOS_Date_Time(0); $r .= $lang['DateTimeFrom'] .': '. $from->EnterDate("f",1) ."<br />\n"; $r .= $lang['DateTimeTill'] .': '.$to->EnterDate("t",1) ."<br />\n"; return $r; @@ -223,4 +227,4 @@ } -?> +?> \ No newline at end of file |
From: Gero K. <gok...@us...> - 2006-12-16 13:08:31
|
Update of /cvsroot/tutos/tutos/php/report-engine/rep_index In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php/report-engine/rep_index Modified Files: rep_index.pinc Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: rep_index.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/report-engine/rep_index/rep_index.pinc,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- rep_index.pinc 14 Nov 2006 19:45:58 -0000 1.5 +++ rep_index.pinc 16 Dec 2006 13:08:29 -0000 1.6 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2004 - 2005 by Gero Kohnert + * Copyright 2004 - 2006 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 @@ -131,7 +131,7 @@ } - $d = new DateTime(); + $d = new TUTOS_Date_Time(); $pdf->SetFont('Arial','I',8); $pdf->SetY(-15); $pdf->SetX(5); |
From: Gero K. <gok...@us...> - 2006-12-16 13:08:31
|
Update of /cvsroot/tutos/tutos/php/report-engine/rep_group_excel In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php/report-engine/rep_group_excel Modified Files: rep_group_excel.pinc Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: rep_group_excel.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/report-engine/rep_group_excel/rep_group_excel.pinc,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- rep_group_excel.pinc 20 Oct 2006 11:57:10 -0000 1.4 +++ rep_group_excel.pinc 16 Dec 2006 13:08:28 -0000 1.5 @@ -2,6 +2,10 @@ /** * Copyright 2006 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 + * Free Software Foundation; version 2 of the License. + * * * CVS Info: $Id$ * $Author$ @@ -131,9 +135,9 @@ $this->ws[$id]->write_string($row,REP_GROUP_EXCEL_TITLE,$o->title ,$this->format2); $this->ws[$id]->write_string($row,REP_GROUP_EXCEL_FNAME,$o->f_name .' '. $o->m_name ,$this->format2); $this->ws[$id]->write_string($row,REP_GROUP_EXCEL_LNAME,$o->l_name ,$this->format2); - if (is_object($o2->company)) { + if (is_object($o2->company)) { $this->ws[$id]->write_string($row,REP_GROUP_EXCEL_COMPANY,$o2->company->getFullName() ,$this->format2); - } + } } else if ($o->gettype() == "company") { $this->ws[$id]->write_string($row,REP_GROUP_EXCEL_COMPANY,$o->getFullName() ,$this->format2); |
From: Gero K. <gok...@us...> - 2006-12-16 13:08:31
|
Update of /cvsroot/tutos/tutos/php/reminder In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php/reminder Modified Files: reminder.pinc reminder_ins.php Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: reminder.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/reminder/reminder.pinc,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- reminder.pinc 2 Jan 2006 08:36:26 -0000 1.19 +++ reminder.pinc 16 Dec 2006 13:08:28 -0000 1.20 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2004 - 2005 by Gero Kohnert + * Copyright 2004 - 2006 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 @@ -69,7 +69,7 @@ function showReminders(&$user,&$obj,$cols,$rows = 0) { global $tutos, $lang; - $d = new DateTime(); + $d = new TUTOS_Date_Time(); $n = 1; $x = count($obj->list[usereminder]); @@ -125,7 +125,7 @@ $this->link_id = -1; $this->ref = -1; $this->desc = ""; - $this->remind_date = new DateTime(); + $this->remind_date = new TUTOS_Date_Time(); $this->fired_at = null; $this->offset = 0; $this->repeat = 0; @@ -429,7 +429,7 @@ $rdate = $this->ref->birthday; if ($rdate->notime != 1) { # now find the next birthday - $n = new DateTime(); + $n = new TUTOS_Date_Time(); $y = Date("Y"); $x = $y. $this->ref->birthday->getMMDD() ."0000"; if ($n->getYYYYMMDDHHMM() > $x) { @@ -455,7 +455,7 @@ } # Handle Repeat if (is_object($rdate) && ($this->repeat != 0)) { - $n = new DateTime(); + $n = new TUTOS_Date_Time(); $now = $n->getTimeStamp(); $ts = $rdate->getTimeStamp(); while ($ts < $now) { @@ -775,7 +775,7 @@ $msg .= $x->calc_date($x->remind_date); $x->setRemindDate($x->remind_date); } - $x->fired_at = new DateTime(); + $x->fired_at = new TUTOS_Date_Time(); $x->save(); $a++; } Index: reminder_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/reminder/reminder_ins.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- reminder_ins.php 3 Apr 2005 18:32:16 -0000 1.7 +++ reminder_ins.php 16 Dec 2006 13:08:28 -0000 1.8 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2004 - 2005 by Gero Kohnert + * Copyright 2004 - 2006 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 @@ -21,7 +21,7 @@ /* Check if user is allowed to use it */ check_user(); loadmodules('reminder','ins'); - loadmodule("reminder"); + loadmodule('reminder'); $gotourl = "reminder/reminder_new.php"; $msg = ""; @@ -71,7 +71,7 @@ } else { $obj->setOffset(0); } - $r = new DateTime(0); + $r = new TUTOS_Date_Time(0); if($_POST['type'] == 0) { $type = REMINDER_SIMPLE; $r->setDateTimeF("at"); |
From: Gero K. <gok...@us...> - 2006-12-16 13:08:31
|
Update of /cvsroot/tutos/tutos/php/report-engine In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php/report-engine Modified Files: report_show.php Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: report_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/report-engine/report_show.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- report_show.php 2 Jan 2006 08:43:05 -0000 1.4 +++ report_show.php 16 Dec 2006 13:08:28 -0000 1.5 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2004 - 2005 by Gero Kohnert + * Copyright 2004 - 2006 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 |
From: Gero K. <gok...@us...> - 2006-12-16 13:08:31
|
Update of /cvsroot/tutos/tutos/php/note In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php/note Modified Files: note.pinc note_ins.php note_overview.php note_select.php Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: note_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/note/note_overview.php,v retrieving revision 1.43 retrieving revision 1.44 diff -u -d -r1.43 -r1.44 --- note_overview.php 25 Jul 2006 11:19:56 -0000 1.43 +++ note_overview.php 16 Dec 2006 13:08:28 -0000 1.44 @@ -1,6 +1,6 @@ <?php /* - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 by Gero Kohnert * submitted by "Nonn" <nonn at resce.com> * * This program is free software; you can redistribute it and/or modify it @@ -334,7 +334,7 @@ } # Start Date for search - $from = new DateTime(0); + $from = new TUTOS_Date_Time(0); if ( isset($_GET['fd']) ) { $from->setDateTime($_GET['fd']); } else { @@ -350,7 +350,7 @@ $this->filter['from'] = $from; } # End Date for search - $to = new DateTime(0); + $to = new TUTOS_Date_Time(0); if ( isset($_GET['td']) ) { $to->setDateTime($_GET['td']); } else { Index: note_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/note/note_select.php,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- note_select.php 28 Jan 2006 19:35:02 -0000 1.15 +++ note_select.php 16 Dec 2006 13:08:28 -0000 1.16 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 by Gero Kohnert * submitted by "Nonn" <nonn at resce.com> * * This program is free software; you can redistribute it and/or modify it @@ -18,8 +18,8 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("note","select"); - loadmodule("note"); + loadmodules('note','select'); + loadmodule('note'); loadlayout(); /** @@ -34,7 +34,7 @@ echo "<br /><br />\n"; - echo "<form name=\"notesearch\" method=\"get\" action=\"note_overview.php\">\n"; + echo "<form id=\"notesearch\" name=\"notesearch\" method=\"get\" action=\"note_overview.php\">\n"; if ( $this->ext == false ) { $this->addHidden("reftype",0); } @@ -136,8 +136,8 @@ } # Defaults for search - $this->nsfd = new DateTime(0); - $this->nstd = new DateTime(0); + $this->nsfd = new TUTOS_Date_Time(0); + $this->nstd = new TUTOS_Date_Time(0); $this->nsrt = -1; if ( isset($_SESSION['notesearchfrom']) ) { @@ -172,4 +172,4 @@ $l = new note_select($current_user); $l->display(); $dbconn->Close(); -?> +?> \ No newline at end of file Index: note_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/note/note_ins.php,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- note_ins.php 17 Apr 2005 18:17:03 -0000 1.20 +++ note_ins.php 16 Dec 2006 13:08:28 -0000 1.21 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2005 by Gero Kohnert + * Copyright 1999 - 2006 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 @@ -20,8 +20,8 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("note","ins"); - loadmodule("note"); + loadmodules('note','ins'); + loadmodule('note'); /* Check Input */ $gotourl = "note/note_new.php"; @@ -58,7 +58,7 @@ $u->read_reference(); } - $r = new DateTime(0); + $r = new TUTOS_Date_Time(0); $r->setDateTimeF("remember"); $u->setRemember($r); Index: note.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/note/note.pinc,v retrieving revision 1.61 retrieving revision 1.62 diff -u -d -r1.61 -r1.62 --- note.pinc 1 Dec 2005 22:26:21 -0000 1.61 +++ note.pinc 16 Dec 2006 13:08:28 -0000 1.62 @@ -90,7 +90,7 @@ $this->etype = 7; $this->ref = -1; $this->link_id = $current_user->id; - $this->remember = new DateTime(0); + $this->remember = new TUTOS_Date_Time(0); $this->tablename = $this->dbconn->prefix .$table['note'][name]; } /** @@ -549,7 +549,7 @@ global $tutos,$lang; $msg = ""; - $d = new DateTime(); + $d = new TUTOS_Date_Time(); $notemailtxt = "note_remember.proto"; $q = "SELECT * FROM ". $user->dbconn->prefix ."notes WHERE remember < ". $user->dbconn->DateTime($d) ." "; $r = $user->dbconn->Exec($q); @@ -575,7 +575,7 @@ $m->addBody($x->note,"text/plain",$lang['NoteDescription'],"",$x->creator->lg['content_encoding']); $msg .= $m->send(); - $x->remember = new DateTime(0); + $x->remember = new TUTOS_Date_Time(0); $x->save(); $a++; } |
From: Gero K. <gok...@us...> - 2006-12-16 13:08:30
|
Update of /cvsroot/tutos/tutos/php/invoice In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php/invoice Modified Files: invoice.pinc invoice_del.php invoice_ins.php invoice_select.php Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: invoice.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/invoice/invoice.pinc,v retrieving revision 1.56 retrieving revision 1.57 diff -u -d -r1.56 -r1.57 --- invoice.pinc 2 Jan 2006 08:36:26 -0000 1.56 +++ invoice.pinc 16 Dec 2006 13:08:27 -0000 1.57 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2003 - 2005 by Gero Kohnert + * Copyright 2003 - 2006 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 @@ -371,16 +371,16 @@ $this->pos = array(); $this->customer_id = -1; $this->accountant = $current_user->id; - $this->datesent[0] = new DateTime(0); - $this->datedue[0] = new DateTime(0); + $this->datesent[0] = new TUTOS_Date_Time(0); + $this->datedue[0] = new TUTOS_Date_Time(0); - $this->datesent[1] = new DateTime(0); - $this->datedue[1] = new DateTime(0); + $this->datesent[1] = new TUTOS_Date_Time(0); + $this->datedue[1] = new TUTOS_Date_Time(0); - $this->datesent[2] = new DateTime(0); - $this->datedue[2] = new DateTime(0); + $this->datesent[2] = new TUTOS_Date_Time(0); + $this->datedue[2] = new TUTOS_Date_Time(0); - $this->datefinish = new DateTime(0); + $this->datefinish = new TUTOS_Date_Time(0); $this->tablename = $this->dbconn->prefix ."invoice"; $this->tablename2 = $this->dbconn->prefix ."invoice_pos"; @@ -577,7 +577,7 @@ function setState($value) { if ( $this->setIntField("state",$value,"InvoiceState") ){ if ( ($value == INV_STATE_PAYED) || ($value == INV_STATE_CANCELLED) ) { - $this->setDateFinish(new DateTime()); + $this->setDateFinish(new TUTOS_Date_Time()); } } } Index: invoice_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/invoice/invoice_del.php,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- invoice_del.php 28 Jun 2005 04:45:10 -0000 1.15 +++ invoice_del.php 16 Dec 2006 13:08:27 -0000 1.16 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2002 - 2005 by Gero Kohnert + * Copyright 2002 - 2006 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 @@ -62,4 +62,4 @@ * CVS Info: $Id$ * $Author$ */ -?> +?> \ No newline at end of file Index: invoice_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/invoice/invoice_select.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- invoice_select.php 29 Jan 2006 13:44:09 -0000 1.12 +++ invoice_select.php 16 Dec 2006 13:08:27 -0000 1.13 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2002 - 2005 by Gero Kohnert + * Copyright 2002 - 2006 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 @@ -18,8 +18,8 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("invoice","select"); - loadmodule("invoice"); + loadmodules('invoice','select'); + loadmodule('invoice'); loadlayout(); /** @@ -34,7 +34,7 @@ echo "<br /><br />\n"; - echo " <form name=\"invsearch1\" method=\"get\" action=\"invoice_overview.php\">\n"; + echo " <form id=\"invsearch1\" name=\"invsearch1\" method=\"get\" action=\"invoice_overview.php\">\n"; DoubleTableStart(); echo "<tr>\n"; @@ -88,8 +88,8 @@ } # Defaults for search - $this->isfd = new DateTime(0); - $this->istd = new DateTime(0); + $this->isfd = new TUTOS_Date_Time(0); + $this->istd = new TUTOS_Date_Time(0); $this->isst = 0; if ( isset($_SESSION['invsearchfrom']) ) { $this->isfd->setDateTime($_SESSION['invsearchfrom']); @@ -116,4 +116,4 @@ <!-- CVS Info: $Id$ $Author$ ---> +--> \ No newline at end of file Index: invoice_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/invoice/invoice_ins.php,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- invoice_ins.php 9 Dec 2006 19:44:45 -0000 1.20 +++ invoice_ins.php 16 Dec 2006 13:08:27 -0000 1.21 @@ -65,7 +65,7 @@ for ( $x = 0 ; $x < 3 ; $x++ ) { if (!isset($_POST['d'.$x])) { - $d = new DateTime(0); + $d = new TUTOS_Date_Time(0); $d->setDateTimeF("d". $x); $gotourl= addUrlParameter($gotourl,"d".$x."=". $d->getYYYYMMDD() ,true); if ( !$d->checkDMY(true) ) { @@ -76,7 +76,7 @@ } } if (!isset($_POST['s'.$x])) { - $d = new DateTime(0); + $d = new TUTOS_Date_Time(0); $d->setDateTimeF("s". $x); $gotourl= addUrlParameter($gotourl,"s".$x."=". $d->getYYYYMMDD() ,true); if ( !$d->checkDMY(true) ) { |
From: Gero K. <gok...@us...> - 2006-12-16 13:08:30
|
Update of /cvsroot/tutos/tutos/php/rate In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7689/php/rate Modified Files: rate_overview.php rate_select.php Log Message: globally renamed DateTime objects to TUTOS_Date_Time in order to work with PHP 5.2 Index: rate_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/rate/rate_overview.php,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- rate_overview.php 19 Nov 2006 09:26:45 -0000 1.14 +++ rate_overview.php 16 Dec 2006 13:08:28 -0000 1.15 @@ -380,7 +380,7 @@ } # Start Date for search - $from = new DateTime(0); + $from = new TUTOS_Date_Time(0); if ( isset($_GET['fd']) ) { $from->setDateTime($_GET['fd']); } else { @@ -396,7 +396,7 @@ $this->filter['from'] = $from; } # End Date for search - $to = new DateTime(0); + $to = new TUTOS_Date_Time(0); if ( isset($_GET['td']) ) { $to->setDateTime($_GET['td']); } else { @@ -444,4 +444,4 @@ <!-- CVS Info: $Id$ $Author$ ---> +--> \ No newline at end of file Index: rate_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/rate/rate_select.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- rate_select.php 17 Apr 2005 18:53:49 -0000 1.4 +++ rate_select.php 16 Dec 2006 13:08:28 -0000 1.5 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2002 - 2005 by Gero Kohnert + * Copyright 2002 - 2006 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 @@ -17,8 +17,8 @@ /* Check if user is allowed to use it */ check_user(); - loadmodules("rate","select"); - loadmodule("rate"); + loadmodules('rate','select'); + loadmodule('rate'); loadlayout(); /** @@ -33,7 +33,7 @@ echo "<br /><br />\n"; - echo "<form name=\"ratesearch\" method=\"get\" action=\"rate_overview.php\">\n"; + echo "<form id=\"ratesearch\" name=\"ratesearch\" method=\"get\" action=\"rate_overview.php\">\n"; if ( $this->ext == false ) { $this->addHidden("reftype",0); } @@ -126,8 +126,8 @@ } # Defaults for search - $this->rsfd = new DateTime(0); - $this->rstd = new DateTime(0); + $this->rsfd = new TUTOS_Date_Time(0); + $this->rstd = new TUTOS_Date_Time(0); $this->rsrt = -1; if ( isset($_SESSION['ratesearchfrom']) ) { @@ -160,4 +160,4 @@ $l = new rate_select($current_user); $l->display(); $dbconn->Close(); -?> +?> \ No newline at end of file |