tutos-commits Mailing List for TUTOS (Page 463)
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
|
From: Gero K. <gok...@us...> - 2001-08-09 14:48:16
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv8604/php Modified Files: task.pinc task_ins.php task_new.php task_show.php Log Message: New: Resource Allocation for tasks Index: task.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/task.pinc,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -r1.26 -r1.27 *** task.pinc 2001/08/09 10:53:08 1.26 --- task.pinc 2001/08/09 14:48:13 1.27 *************** *** 403,408 **** @DB_Begin($this->conn,"WORK"); $r = @DB_Exec($this->conn,$q); ! acl_save($this); ! $msg = $msg . history_save($this); @DB_Commit($this->conn,"WORK"); # DB_FreeResult ($r); --- 403,411 ---- @DB_Begin($this->conn,"WORK"); $r = @DB_Exec($this->conn,$q); ! $msg .= acl_save($this); ! $msg .= history_save($this); ! $msg .= resource_save($this); ! ! @DB_Commit($this->conn,"WORK"); # DB_FreeResult ($r); *************** *** 428,432 **** @reset ($this->buglist); while ( list ($i,$f) = @each ($this->buglist) ) { ! $msg = $msg . $f->delete(); } } --- 431,435 ---- @reset ($this->buglist); while ( list ($i,$f) = @each ($this->buglist) ) { ! $msg = $msg . $f->delete(); } } *************** *** 436,440 **** @reset ($this->buglist); while ( list ($i,$f) = @each ($this->filelist) ) { ! $msg = $msg . $f->delete(); } } --- 439,443 ---- @reset ($this->buglist); while ( list ($i,$f) = @each ($this->filelist) ) { ! $msg = $msg . $f->delete(); } } *************** *** 580,583 **** --- 583,593 ---- } /* --------------------------------------------------------------------------- + * Return Info about resources used by this task + */ + function readRes() { + readRes($this); + return; + } + /* --------------------------------------------------------------------------- * Return Info about connected tasks of this task */ *************** *** 608,611 **** --- 618,627 ---- function getType () { return "task"; + } + /* --------------------------------------------------------------------------- + * get the timespan + */ + function getTimespan () { + return $this->s_start->getDate() ." - " . $this->s_end->getDate() ; } /* --------------------------------------------------------------------------- Index: task_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_ins.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** task_ins.php 2001/08/09 10:32:03 1.7 --- task_ins.php 2001/08/09 14:48:13 1.8 *************** *** 12,15 **** --- 12,16 ---- include("mail.pinc"); include("timetrack.pinc"); + include("resource.pinc"); /* Check if user is allowed to use it */ *************** *** 61,64 **** --- 62,76 ---- } + # + # Resources + # + if ( isset($res) && (count($res) > 0)) { + @reset($res); + while ( list ($i,$f) = @each ($res) ) { + $gotourl= addUrlParameter($gotourl,"res[]=".$f ); + } + } else { + $res = array(); + } $s_start = new DateTime(0); *************** *** 101,104 **** --- 113,117 ---- $t->name = $name; $t->desc = $desc; + $t->res = $res; # First time work done Index: task_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_new.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** task_new.php 2001/08/09 10:32:03 1.10 --- task_new.php 2001/08/09 14:48:13 1.11 *************** *** 8,11 **** --- 8,12 ---- include("url.pinc"); include("task.pinc"); + include("resource.pinc"); /* Check if user is allowed to use it */ *************** *** 16,20 **** */ Function info(&$t) { ! global $lang, $current_user; echo "<TABLE BORDER=0 CELLSPACING=0>\n"; --- 17,21 ---- */ Function info(&$t) { ! global $tutos, $lang, $current_user; echo "<TABLE BORDER=0 CELLSPACING=0>\n"; *************** *** 66,70 **** echo " <TR>\n"; ! echo " <TD VALIGN=top ROWSPAN=2><B>". $lang['TaskWorker'] ."</B><FONT COLOR=red>(*)</FONT></TD>\n"; echo " <TD ROWSPAN=2>". $current_user->askPeople("worker",$t->worker->id,0) ."</TD>\n"; showfieldc($lang['TaskVolumeFull']); --- 67,71 ---- echo " <TR>\n"; ! echo " <TD VALIGN=top ROWSPAN=2><B>". $lang['TaskWorker'] ."<FONT COLOR=red>(*)</FONT></B></TD>\n"; echo " <TD ROWSPAN=2>". $current_user->askPeople("worker",$t->worker->id,0) ."</TD>\n"; showfieldc($lang['TaskVolumeFull']); *************** *** 72,75 **** --- 73,77 ---- echo " </TR>\n"; + echo " <TR>\n"; showfieldc($lang['TaskVolumeDone']); *************** *** 77,80 **** --- 79,95 ---- echo " </TR>\n"; + # + # Resources + # + if ( ($current_user->p[useresource] == 1) && ($tutos[useresource] == 1) ) { + echo " <TR>\n"; + showfield($lang['Resources']); + echo " <TD COLSPAN=3>\n"; + echo ResAskUse($t,0,0); + echo " </TD>\n"; + echo " </TR>\n"; + } + + echo " <TR>\n"; showfieldc($lang['TaskS_Start']); *************** *** 108,112 **** */ Function navigate($t) { ! global $lang; echo "<TABLE>"; --- 123,127 ---- */ Function navigate($t) { ! global $lang,$tutos,$current_user; echo "<TABLE>"; *************** *** 119,122 **** --- 134,140 ---- echo makelink("watchlist_overview.php?id=".$t->id,$lang['WatchOverview'],sprintf($lang['WatchOverviewI'],$t->getFullname())) ."<BR>\n"; } + if ( ($current_user->p[useresource] == 1) && ($tutos[useresource] == 1) ) { + echo makelink("resource_overview.php",$lang['Resources'],$lang['Resources']) ."<BR>"; + } echo "</TD></TR>"; *************** *** 137,140 **** --- 155,160 ---- HTML_Header($lang['TaskCreate']); } + $t->readRes(); + if ( isset($name) ) { $t->name = $name; Index: task_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_show.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** task_show.php 2001/08/09 10:32:03 1.7 --- task_show.php 2001/08/09 14:48:13 1.8 *************** *** 12,15 **** --- 12,16 ---- include("history.pinc"); include("timetrack.pinc"); + include("resource.pinc"); /* Check if user is allowed to use it */ *************** *** 89,92 **** --- 90,108 ---- echo " </TR>\n"; + # + # Resources + # + if ( ($current_user->p[useresource] == 1) && ($tutos[useresource] == 1) ) { + $t->readRes(); + if ( count($t->resuselist) > 0 ) { + @reset($t->reslist); + echo "<TR>\n"; + showfield ($lang['Resources']); + echo " <TD VALIGN=top COLSPAN=3>\n"; + showResources($t,0); + echo " </TD>"; + echo "</TR>\n"; + } + } /* Notes */ if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { |
From: Gero K. <gok...@us...> - 2001-08-09 14:47:53
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv8496/php Modified Files: installation.pinc installation_ins.php installation_new.php installation_show.php Log Message: New: Resource Allocation for installations Index: installation.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/installation.pinc,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -r1.23 -r1.24 *** installation.pinc 2001/08/09 10:53:08 1.23 --- installation.pinc 2001/08/09 14:47:50 1.24 *************** *** 8,12 **** * */ - include("product.pinc"); /* --------------------------------------------------------------------------- --- 8,11 ---- *************** *** 332,337 **** @DB_Begin($this->conn,"WORK"); $result = @DB_Exec($this->conn,$q); ! acl_save($this); ! history_save($this); @DB_Commit($this->conn,"WORK"); return $msg; --- 331,338 ---- @DB_Begin($this->conn,"WORK"); $result = @DB_Exec($this->conn,$q); ! $msg .= acl_save($this); ! $msg .= history_save($this); ! $msg .= resource_save($this); ! @DB_Commit($this->conn,"WORK"); return $msg; *************** *** 356,361 **** $q = "UPDATE files SET link_id = ". $this->product->id ." WHERE link_id = ". $this->id; $r = @DB_Exec($this->conn,$q); ! $q = "DELETE FROM notes WHERE link_id = $this->id"; $r = @DB_Exec($this->conn,$q); --- 357,365 ---- $q = "UPDATE files SET link_id = ". $this->product->id ." WHERE link_id = ". $this->id; $r = @DB_Exec($this->conn,$q); + + $q = "DELETE FROM notes WHERE link_id = ". $this->id; + $r = @DB_Exec($this->conn,$q); ! $q = "DELETE FROM res_use WHERE obj_id = ". $this->id; $r = @DB_Exec($this->conn,$q); *************** *** 403,406 **** --- 407,417 ---- function readFiles() { readFiles($this); + return; + } + /* --------------------------------------------------------------------------- + * Return Info about resources used by this installation + */ + function readRes() { + readRes($this); return; } Index: installation_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/installation_ins.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** installation_ins.php 2001/08/09 10:32:03 1.5 --- installation_ins.php 2001/08/09 14:47:50 1.6 *************** *** 8,11 **** --- 8,13 ---- include("installation.pinc"); include("history.pinc"); + include("resource.pinc"); + include("product.pinc"); /* Check if user is allowed to use it */ *************** *** 52,55 **** --- 54,69 ---- $i->salesdate->setDateTimeF("sale"); + # + # Resources + # + if ( isset($res) && (count($res) > 0)) { + @reset($res); + while ( list ($x,$f) = @each ($res) ) { + $gotourl= addUrlParameter($gotourl,"res[]=".$f ); + } + } else { + $res = array(); + } + if ( $msg != "" ) { $gotourl= addUrlParameter($gotourl,"pid=". $pid); *************** *** 60,63 **** --- 74,78 ---- $i->currency = $currency; $i->product->read($pid); + $i->res = $res; if ( isset($iid) ) { Index: installation_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/installation_new.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** installation_new.php 2001/08/09 10:32:03 1.6 --- installation_new.php 2001/08/09 14:47:50 1.7 *************** *** 7,10 **** --- 7,12 ---- include("product.pinc"); include("installation.pinc"); + include("product.pinc"); + include("resource.pinc"); /* Check if user is allowed to use it */ *************** *** 48,52 **** select_from_array_or_input($i,"i",$i->installer,1); echo " </TD>\n"; - showfieldc($lang['atDateTime'],0); echo " <TD>\n"; --- 50,53 ---- *************** *** 54,57 **** --- 55,70 ---- echo "</TD></TR>\n"; + # + # Resources + # + if ( ($current_user->p[useresource] == 1) && ($tutos[useresource] == 1) ) { + echo " <TR>\n"; + showfield($lang['Resources']); + echo " <TD COLSPAN=3>\n"; + echo ResAskUse($i,0,0); + echo " </TD>\n"; + echo " </TR>\n"; + } + echo "<TR>\n"; showfieldc($lang['SoldBy'],0); *************** *** 96,100 **** */ Function navigate($i) { ! global $lang; echo "<TABLE>"; --- 109,113 ---- */ Function navigate($i) { ! global $lang,$tutos,$current_user; echo "<TABLE>"; *************** *** 104,107 **** --- 117,123 ---- echo confirmlink("installation_del.php?id=". $i->id ,$lang['Delete'],sprintf($lang['InstDelI'],$i->name)) ." <BR>"; } + if ( ($current_user->p[useresource] == 1) && ($tutos[useresource] == 1) ) { + echo makelink("resource_overview.php",$lang['Resources'],$lang['Resources']) ."<BR>"; + } echo "</TD></TR>"; *************** *** 118,121 **** --- 134,138 ---- } + $i->readRes(); if ( isset($pid) ) { $i->product->read($pid); Index: installation_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/installation_show.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** installation_show.php 2001/08/09 10:32:03 1.7 --- installation_show.php 2001/08/09 14:47:50 1.8 *************** *** 12,15 **** --- 12,16 ---- include("file.pinc"); include("timetrack.pinc"); + include("resource.pinc"); /* Check if user is allowed to use it */ *************** *** 48,53 **** showfield($lang['atDateTime']); echo " <TD>". $i->instdate->getLinkDate() ."</TD>\n"; ! echo "</TR><TR>\n"; showfield($lang['SoldBy']); if ( $i->seller->id != -1 ) { --- 49,71 ---- showfield($lang['atDateTime']); echo " <TD>". $i->instdate->getLinkDate() ."</TD>\n"; + echo "</TR>\n"; ! # ! # Resources ! # ! if ( ($current_user->p[useresource] == 1) && ($tutos[useresource] == 1) ) { ! $i->readRes(); ! if ( count($i->resuselist) > 0 ) { ! @reset($i->reslist); ! echo "<TR>\n"; ! showfield ($lang['Resources']); ! echo " <TD VALIGN=top COLSPAN=3>\n"; ! showResources($i,0); ! echo " </TD>"; ! echo "</TR>\n"; ! } ! } ! ! echo "<TR>\n"; showfield($lang['SoldBy']); if ( $i->seller->id != -1 ) { |
From: Boris W. <bw...@us...> - 2001-08-09 10:53:12
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv12276 Modified Files: check.php installation.pinc task.pinc Log Message: HTML fix Index: check.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/check.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** check.php 2001/08/09 10:32:03 1.9 --- check.php 2001/08/09 10:53:08 1.10 *************** *** 229,233 **** if ( ($tutos[debug] == 1) && ($msg != "") ) { echo $msg ."<BR>"; ! echo "-->". $current_user->getFullName() ."<BR>"; } DB_Close($conn); --- 229,233 ---- if ( ($tutos[debug] == 1) && ($msg != "") ) { echo $msg ."<BR>"; ! echo "-->". $current_user->getFullName() ."<BR>"; } DB_Close($conn); *************** *** 237,239 **** CVS Info: $Id$ $Author$ ! --> \ No newline at end of file --- 237,239 ---- CVS Info: $Id$ $Author$ ! --> Index: installation.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/installation.pinc,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -r1.22 -r1.23 *** installation.pinc 2001/08/09 10:32:03 1.22 --- installation.pinc 2001/08/09 10:53:08 1.23 *************** *** 41,45 **** echo $f->getLink(); if ( $ext == 1 ) { ! echo " --> ". $f->customer->getLink(); } echo "<BR>\n"; --- 41,45 ---- echo $f->getLink(); if ( $ext == 1 ) { ! echo " --> ". $f->customer->getLink(); } echo "<BR>\n"; Index: task.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/task.pinc,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -r1.25 -r1.26 *** task.pinc 2001/08/09 10:32:03 1.25 --- task.pinc 2001/08/09 10:53:08 1.26 *************** *** 756,760 **** } } else { ! echo " <TD NOWRAP CLASS=". $class ." COLSPAN=3 ALIGN=right>".$lang['TaskStates'][$this->state]." -->". $this->parent->getLink() ."</TD>\n"; } echo " </TR>\n"; --- 756,760 ---- } } else { ! echo " <TD NOWRAP CLASS=". $class ." COLSPAN=3 ALIGN=right>".$lang['TaskStates'][$this->state]." --> ". $this->parent->getLink() ."</TD>\n"; } echo " </TR>\n"; *************** *** 764,766 **** } $includes[task.pinc] = 1; ! ?> \ No newline at end of file --- 764,766 ---- } $includes[task.pinc] = 1; ! ?> |
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv7780 Modified Files: Date.pinc acl.pinc acl_ins.php acl_new.php acl_show.php address.pinc address_ins.php address_new.php address_overview.php address_select.php address_show.php address_tools.p3 admin_show.php adr_ldap_overview.php appointment.pinc bug.pinc bug_del.php bug_ins.php bug_new.php bug_overview.php bug_select.php bug_show.php calendar.php calendar_ins.php calendar_new.php calendar_new_r.php calendar_overview.php calendar_select.php calendar_show.php calendar_vote.php check.php company.pinc company_new.php company_overview.php company_show.php config.pinc db.p3 de.p3 department.pinc department_new.php department_show.php es.p3 fax_ins.php fax_new.php file.pinc file_del.php file_ins.php file_new.php file_overview.php file_show.php fr.p3 graph_bars.php history.pinc history_show.php install.php installation.pinc installation_del.php installation_ins.php installation_new.php installation_overview.php installation_show.php it.p3 location.pinc location_ins.php mail.pinc mail_ins.php mail_new.php mailbox.pinc mailbox_del.php mailbox_new.php mailbox_overview.php mailbox_show.php map_select.php minical.php mytutos.php note.pinc note_del.php note_ins.php note_new.php note_select.php note_show.php permission.p3 product.pinc product_del.php product_ins.php product_new.php product_overview.php product_select.php product_show.php res_cal.php resource.pinc resource_ins.php resource_new.php resource_overview.php resource_show.php scheme.php show_source.php showobject.php sms_new.php task.pinc task_del.php task_ins.php task_new.php task_overview.php task_show.php team.pinc team_del.php team_ins.php team_new.php team_overview.php team_show.php timetrack.pinc timetrack_del.php timetrack_ins.php timetrack_new.php timetrack_overview.php timetrack_select.php tw.p3 url.pinc user.pinc user_del.php user_new.php watchlist_overview.php webelements.p3 zh.p3 Log Message: Removed trailing whitespace Index: Date.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/Date.pinc,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -r1.27 -r1.28 *** Date.pinc 2001/08/08 16:53:21 1.27 --- Date.pinc 2001/08/09 10:32:02 1.28 *************** *** 127,131 **** ); } ! if ($tutos[holiday]['US'] == 1) { $tutos[cal][] = array( --- 127,131 ---- ); } ! if ($tutos[holiday]['US'] == 1) { $tutos[cal][] = array( *************** *** 158,165 **** $wd = Date("D",$t); $month = Date("m",$t); ! /* Yearly Days */ $day = Date("d-m",$t); ! # We need the easter date for some calculation $J = Date("Y",$t); --- 158,165 ---- $wd = Date("D",$t); $month = Date("m",$t); ! /* Yearly Days */ $day = Date("d-m",$t); ! # We need the easter date for some calculation $J = Date("Y",$t); *************** *** 196,200 **** /* Holidays defined by Weekday */ if ( $wd == "Mon" ) { ! if ($tutos[cal][$ii][$ij][Date] == "EASTERMONDAY") { $tp = mktime (0,0,0,$OM,$OT,$J); --- 196,200 ---- /* Holidays defined by Weekday */ if ( $wd == "Mon" ) { ! if ($tutos[cal][$ii][$ij][Date] == "EASTERMONDAY") { $tp = mktime (0,0,0,$OM,$OT,$J); *************** *** 205,209 **** } } ! elseif ($tutos[cal][$ii][$ij][Date] == "WHITMONDAY") { $tp = mktime (0,0,0,$OM,$OT,$J); --- 205,209 ---- } } ! elseif ($tutos[cal][$ii][$ij][Date] == "WHITMONDAY") { $tp = mktime (0,0,0,$OM,$OT,$J); *************** *** 215,247 **** } } ! elseif (($tutos[cal][$ii][$ij][Date] == "MARTINLUTHERKING") && ($month == "01") && ($today['mday'] == nthday(3, $today['wday'], $today['mon'], $today['year'])) ) { $desc .= $tutos[cal][$ii][$ij][Desc].$br; } ! elseif (($tutos[cal][$ii][$ij][Date] == "WASHINGTON") && ($month == "02") && ($today['mday'] == nthday(3, $today['wday'], $today['mon'], $today['year'])) ) { $desc .= $tutos[cal][$ii][$ij][Desc].$br; } ! elseif (($tutos[cal][$ii][$ij][Date] == "MEMORIALDAY") && ($month == "05") && ($today['mday'] == nthday(-1, $today['wday'], $today['mon'], $today['year'])) ) { $desc .= $tutos[cal][$ii][$ij][Desc].$br; } ! elseif (($tutos[cal][$ii][$ij][Date] == "LABORDAY") && ($month == "09") && ($today['mday'] == nthday(1, 1, $today['mon'], $today['year'])) ) { $desc .= $tutos[cal][$ii][$ij][Desc].$br; } ! elseif (($tutos[cal][$ii][$ij][Date] == "COLUMBUSDAY") && ($month == "10") && ($today['mday'] == nthday(2, 1, $today['mon'], $today['year'])) ) { $desc .= $tutos[cal][$ii][$ij][Desc].$br; } ! } elseif ( $wd == "Thu" ) { ! if ($tutos[cal][$ii][$ij][Date] == "ASCENSIONDAY") { $tp = mktime (0,0,0,$OM,$OT,$J); --- 215,247 ---- } } ! elseif (($tutos[cal][$ii][$ij][Date] == "MARTINLUTHERKING") && ($month == "01") && ($today['mday'] == nthday(3, $today['wday'], $today['mon'], $today['year'])) ) { $desc .= $tutos[cal][$ii][$ij][Desc].$br; } ! elseif (($tutos[cal][$ii][$ij][Date] == "WASHINGTON") && ($month == "02") && ($today['mday'] == nthday(3, $today['wday'], $today['mon'], $today['year'])) ) { $desc .= $tutos[cal][$ii][$ij][Desc].$br; } ! elseif (($tutos[cal][$ii][$ij][Date] == "MEMORIALDAY") && ($month == "05") && ($today['mday'] == nthday(-1, $today['wday'], $today['mon'], $today['year'])) ) { $desc .= $tutos[cal][$ii][$ij][Desc].$br; } ! elseif (($tutos[cal][$ii][$ij][Date] == "LABORDAY") && ($month == "09") && ($today['mday'] == nthday(1, 1, $today['mon'], $today['year'])) ) { $desc .= $tutos[cal][$ii][$ij][Desc].$br; } ! elseif (($tutos[cal][$ii][$ij][Date] == "COLUMBUSDAY") && ($month == "10") && ($today['mday'] == nthday(2, 1, $today['mon'], $today['year'])) ) { $desc .= $tutos[cal][$ii][$ij][Desc].$br; } ! } elseif ( $wd == "Thu" ) { ! if ($tutos[cal][$ii][$ij][Date] == "ASCENSIONDAY") { $tp = mktime (0,0,0,$OM,$OT,$J); *************** *** 252,256 **** } } ! elseif ($tutos[cal][$ii][$ij][Date] == "FRONLEICHNAHM") { $tp = mktime (0,0,0,$OM,$OT,$J); --- 252,256 ---- } } ! elseif ($tutos[cal][$ii][$ij][Date] == "FRONLEICHNAHM") { $tp = mktime (0,0,0,$OM,$OT,$J); *************** *** 261,265 **** } } ! elseif (($tutos[cal][$ii][$ij][Date] == "THANKSGIVING") && ($month == "11") && ($today['mday'] == nthday(4, $today['wday'], $today['mon'], $today['year'])) ) { --- 261,265 ---- } } ! elseif (($tutos[cal][$ii][$ij][Date] == "THANKSGIVING") && ($month == "11") && ($today['mday'] == nthday(4, $today['wday'], $today['mon'], $today['year'])) ) { *************** *** 278,282 **** } } ! } elseif ( $wd == "Sun" ) { --- 278,282 ---- } } ! } elseif ( $wd == "Sun" ) { *************** *** 287,291 **** } } ! elseif ($tutos[cal][$ii][$ij][Date] == "WHITSUNDAY") { $tp = mktime (0,0,0,$OM,$OT,$J); --- 287,291 ---- } } ! elseif ($tutos[cal][$ii][$ij][Date] == "WHITSUNDAY") { $tp = mktime (0,0,0,$OM,$OT,$J); *************** *** 296,305 **** } } ! } ! } } ! if ( $desc == "" ) { return array(color => "appday"); --- 296,305 ---- } } ! } ! } } ! if ( $desc == "" ) { return array(color => "appday"); *************** *** 309,313 **** } /* --------------------------------------------------------------------------- ! * Evaluate the Color for day t * t = Date in timestamp format * --- 309,313 ---- } /* --------------------------------------------------------------------------- ! * Evaluate the Color for day t * t = Date in timestamp format * *************** *** 470,476 **** if ( ($this->day < 1) || ($this->month < 1) || ($this->year < 1) ) { ! $this->setNoTime(); } else { ! $this->notime = 0; } # settype($this->day,"integer"); --- 470,476 ---- if ( ($this->day < 1) || ($this->month < 1) || ($this->year < 1) ) { ! $this->setNoTime(); } else { ! $this->notime = 0; } # settype($this->day,"integer"); *************** *** 491,495 **** if ( $this->notime == 1 ) { return 1; ! } if ( $this->day < 1 ) { return 0;} if ( $this->day > 31 ) { return 0;} --- 491,495 ---- if ( $this->notime == 1 ) { return 1; ! } if ( $this->day < 1 ) { return 0;} if ( $this->day > 31 ) { return 0;} Index: acl.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/acl.pinc,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** acl.pinc 2001/02/22 20:57:36 1.10 --- acl.pinc 2001/08/09 10:32:03 1.11 *************** *** 10,14 **** /* --------------------------------------------------------------------------- ! * set the default rights * adr = current_user or so * obj = the object that will get the default rights --- 10,14 ---- /* --------------------------------------------------------------------------- ! * set the default rights * adr = current_user or so * obj = the object that will get the default rights *************** *** 211,215 **** if ( $obj->del_ok() ) { return makelink("acl_new.php?id=". $id ,"<FONT SIZE=-1>(". $lang['permissions'] .")</FONT>",$lang['ACLmod']); ! } return makelink("acl_show.php?id=". $id ,"<FONT SIZE=-1>(". $lang['permissions'] .")</FONT>",$lang['ACLsee']); } --- 211,215 ---- if ( $obj->del_ok() ) { return makelink("acl_new.php?id=". $id ,"<FONT SIZE=-1>(". $lang['permissions'] .")</FONT>",$lang['ACLmod']); ! } return makelink("acl_show.php?id=". $id ,"<FONT SIZE=-1>(". $lang['permissions'] .")</FONT>",$lang['ACLsee']); } Index: acl_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/acl_ins.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** acl_ins.php 2001/04/08 14:56:46 1.4 --- acl_ins.php 2001/08/09 10:32:03 1.5 *************** *** 36,40 **** @reset($r) ; while ( list ($i,$f) = @each ($r) ) { ! acl_raise($obj,$f,$tutos[seeok]); } } --- 36,40 ---- @reset($r) ; while ( list ($i,$f) = @each ($r) ) { ! acl_raise($obj,$f,$tutos[seeok]); } } *************** *** 42,46 **** @reset($m) ; while ( list ($i,$f) = @each ($m) ) { ! acl_raise($obj,$f,$tutos[modok]); } } --- 42,46 ---- @reset($m) ; while ( list ($i,$f) = @each ($m) ) { ! acl_raise($obj,$f,$tutos[modok]); } } *************** *** 48,52 **** @reset($d) ; while ( list ($i,$f) = @each ($d) ) { ! acl_raise($obj,$f,$tutos[delok]); } } --- 48,52 ---- @reset($d) ; while ( list ($i,$f) = @each ($d) ) { ! acl_raise($obj,$f,$tutos[delok]); } } *************** *** 55,59 **** } ! $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); $gotourl = addSessionKey($gotourl); --- 55,59 ---- } ! $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); $gotourl = addSessionKey($gotourl); Index: acl_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/acl_new.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** acl_new.php 2001/05/12 05:54:33 1.7 --- acl_new.php 2001/08/09 10:32:03 1.8 *************** *** 41,45 **** echo " <OPTION value=". $i ." > ". $fn ." </OPTION>\n"; } ! } echo " </SELECT>\n"; } --- 41,45 ---- echo " <OPTION value=". $i ." > ". $fn ." </OPTION>\n"; } ! } echo " </SELECT>\n"; } *************** *** 64,68 **** } } ! echo "<SCRIPT LANGUAGE='JavaScript'>\n"; echo " function deselect (obj,nr) { \n"; --- 64,68 ---- } } ! echo "<SCRIPT LANGUAGE='JavaScript'>\n"; echo " function deselect (obj,nr) { \n"; *************** *** 182,186 **** DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ --- 182,186 ---- DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ Index: acl_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/acl_show.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** acl_show.php 2001/04/08 07:23:19 1.3 --- acl_show.php 2001/08/09 10:32:03 1.4 *************** *** 108,112 **** DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ --- 108,112 ---- DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ Index: address.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/address.pinc,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -r1.34 -r1.35 *** address.pinc 2001/07/21 16:03:33 1.34 --- address.pinc 2001/08/09 10:32:03 1.35 *************** *** 88,92 **** $this = $g_adr[$id]; return; ! } $query = "SELECT * FROM addresses WHERE id = ". $id; $r = DB_Exec($this->conn,$query); --- 88,92 ---- $this = $g_adr[$id]; return; ! } $query = "SELECT * FROM addresses WHERE id = ". $id; $r = DB_Exec($this->conn,$query); *************** *** 157,161 **** $fn =str_replace("'","\'",$fn); ! $this->read_locs_data(); $info = ""; $info = $info. "<HTML>"; --- 157,161 ---- $fn =str_replace("'","\'",$fn); ! $this->read_locs_data(); $info = ""; $info = $info. "<HTML>"; *************** *** 369,373 **** } # ! # To Do bugs / products ... # acl_delete_obj($this); --- 369,373 ---- } # ! # To Do bugs / products ... # acl_delete_obj($this); *************** *** 484,488 **** } else { return 0; ! } } /* --------------------------------------------------------------------------- --- 484,488 ---- } else { return 0; ! } } /* --------------------------------------------------------------------------- *************** *** 491,495 **** */ function getIcard() { ! $this->read_locs_data(); $ical = ""; $ical = $ical . "BEGIN:VCARD\n"; --- 491,495 ---- */ function getIcard() { ! $this->read_locs_data(); $ical = ""; $ical = $ical . "BEGIN:VCARD\n"; Index: address_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/address_ins.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** address_ins.php 2001/05/12 05:54:33 1.9 --- address_ins.php 2001/08/09 10:32:03 1.10 *************** *** 15,19 **** $gotourl = "address_new.php"; ! # Base entry $a = new tutos_address($conn); if ( isset($id) ) { --- 15,19 ---- $gotourl = "address_new.php"; ! # Base entry $a = new tutos_address($conn); if ( isset($id) ) { *************** *** 68,75 **** # If no other problems than check if name is already used if ( $msg == "" ) { ! if ( ($new == 1) ! || ($birthday->getYYYYMMDD() != $a->birthday->getYYYYMMDD()) ! || ($f_name != $a->f_name) ! || ($m_name != $a->m_name) || ($l_name != $a->l_name) ) { $q = "SELECT * FROM addresses WHERE f_name = '". $f_name ."' AND m_name = '". $m_name ."' AND l_name = '". $l_name ."' AND birthday = ". $birthday->DB_Date(); --- 68,75 ---- # If no other problems than check if name is already used if ( $msg == "" ) { ! if ( ($new == 1) ! || ($birthday->getYYYYMMDD() != $a->birthday->getYYYYMMDD()) ! || ($f_name != $a->f_name) ! || ($m_name != $a->m_name) || ($l_name != $a->l_name) ) { $q = "SELECT * FROM addresses WHERE f_name = '". $f_name ."' AND m_name = '". $m_name ."' AND l_name = '". $l_name ."' AND birthday = ". $birthday->DB_Date(); Index: address_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/address_new.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** address_new.php 2001/07/21 16:03:33 1.9 --- address_new.php 2001/08/09 10:32:03 1.10 *************** *** 46,50 **** echo "<BR><INPUT TYPE=checkbox VALUE=1 NAME=cploc $cplocchecked>". $lang['AdrCpLoc']; echo "</TD>\n"; ! } else { add_entry ($lang['Company'],'company',$location,$modloc,30); --- 46,50 ---- echo "<BR><INPUT TYPE=checkbox VALUE=1 NAME=cploc $cplocchecked>". $lang['AdrCpLoc']; echo "</TD>\n"; ! } else { add_entry ($lang['Company'],'company',$location,$modloc,30); *************** *** 410,414 **** } $i++; ! } } else { if ( isset($f_name) ) { --- 410,414 ---- } $i++; ! } } else { if ( isset($f_name) ) { *************** *** 447,451 **** DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ --- 447,451 ---- DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ Index: address_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/address_overview.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** address_overview.php 2001/07/21 16:03:33 1.4 --- address_overview.php 2001/08/09 10:32:03 1.5 *************** *** 125,129 **** $qarg .= "&name=". UrlEncode($name); $adrlook = $name; ! session_register('adrlook'); $atool['link1'] = addUrlParameter($atool['link1'],"name=".UrlEncode($name)); } else { --- 125,129 ---- $qarg .= "&name=". UrlEncode($name); $adrlook = $name; ! session_register('adrlook'); $atool['link1'] = addUrlParameter($atool['link1'],"name=".UrlEncode($name)); } else { *************** *** 133,138 **** $q = "SELECT * FROM addresses"; $pre = "WHERE"; ! ! if ( $aids != "" ) { $q .= " ". $pre ." id IN (". $aids .")"; --- 133,138 ---- $q = "SELECT * FROM addresses"; $pre = "WHERE"; ! ! if ( $aids != "" ) { $q .= " ". $pre ." id IN (". $aids .")"; *************** *** 162,166 **** } else { $atool['start'] = 0; ! } $result = @DB_Exec($conn,$q); --- 162,166 ---- } else { $atool['start'] = 0; ! } $result = @DB_Exec($conn,$q); *************** *** 174,178 **** } else { HTML_Header($lang['AddressOverview']); ! HTML_Base1(); navigate(); --- 174,178 ---- } else { HTML_Header($lang['AddressOverview']); ! HTML_Base1(); navigate(); *************** *** 183,187 **** DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ --- 183,187 ---- DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ Index: address_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/address_select.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** address_select.php 2001/07/26 17:14:49 1.6 --- address_select.php 2001/08/09 10:32:03 1.7 *************** *** 53,57 **** $c[$f] = " CHECKED"; } ! } echo "</TR><TR>\n"; echo " <TD COLSPAN=3>\n"; --- 53,57 ---- $c[$f] = " CHECKED"; } ! } echo "</TR><TR>\n"; echo " <TD COLSPAN=3>\n"; *************** *** 74,85 **** echo "<TR>\n"; echo "<TH COLSPAN=3>". $lang['SearchLdapAdr'] ."</TH>\n"; ! echo "</TR><TR>\n"; echo "</TR><TR>\n"; ! showfieldc($lang['AdrName']); echo "<TD> <INPUT type=\"text\" value=\"". $lookfor ."\" name=\"name\"> </TD>\n"; echo "<TD><CENTER><input type=\"submit\" value=\"". $lang['Search'] ."\" TITLE=\"". $lang['SearchLdapAdr'] ."\"></CENTER></TD>\n"; ! if ( count($tutos[ldapserver]) > 1 ) { echo "</TR><TR>\n"; --- 74,85 ---- echo "<TR>\n"; echo "<TH COLSPAN=3>". $lang['SearchLdapAdr'] ."</TH>\n"; ! echo "</TR><TR>\n"; echo "</TR><TR>\n"; ! showfieldc($lang['AdrName']); echo "<TD> <INPUT type=\"text\" value=\"". $lookfor ."\" name=\"name\"> </TD>\n"; echo "<TD><CENTER><input type=\"submit\" value=\"". $lang['Search'] ."\" TITLE=\"". $lang['SearchLdapAdr'] ."\"></CENTER></TD>\n"; ! if ( count($tutos[ldapserver]) > 1 ) { echo "</TR><TR>\n"; *************** *** 98,102 **** echo "</FORM>\n"; } ! echo "<TR>\n"; --- 98,102 ---- echo "</FORM>\n"; } ! echo "<TR>\n"; *************** *** 172,176 **** DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ --- 172,176 ---- DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ Index: address_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/address_show.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** address_show.php 2001/07/28 18:21:21 1.10 --- address_show.php 2001/08/09 10:32:03 1.11 *************** *** 123,127 **** echo "</TD></TR></TABLE>\n"; } ! /* --------------------------------------------------------------------------- * --- 123,127 ---- echo "</TD></TR></TABLE>\n"; } ! /* --------------------------------------------------------------------------- * *************** *** 148,152 **** echo makelink("task_overview.php?id=". $a->id ,$lang['TaskOverview'],sprintf($lang['TaskOverviewInfo'],$a->getFullName())) ."<BR>\n"; } ! if ( ($tutos[usetaskmanagement] == 1) && ($current_user->p[usetaskmanagement] == 1) && ($tutos[usecalendar] == 1) --- 148,152 ---- echo makelink("task_overview.php?id=". $a->id ,$lang['TaskOverview'],sprintf($lang['TaskOverviewInfo'],$a->getFullName())) ."<BR>\n"; } ! if ( ($tutos[usetaskmanagement] == 1) && ($current_user->p[usetaskmanagement] == 1) && ($tutos[usecalendar] == 1) *************** *** 157,161 **** echo makelink("timetrack_overview.php?link_id=".$a->id,$lang['TimetrackBooked'],sprintf($lang['TimetrackBookedI'],$a->getFullName())) ."<BR>\n"; } ! } if ( ($current_user->p[usevcard] == 1) && ($tutos[usevcard] == 1) ) { echo makelink($a->getUrl() ."&format=vcard" ,$lang['AdrGetVcard'],$lang['AdrGetVcardI']) . "<BR>\n"; --- 157,161 ---- echo makelink("timetrack_overview.php?link_id=".$a->id,$lang['TimetrackBooked'],sprintf($lang['TimetrackBookedI'],$a->getFullName())) ."<BR>\n"; } ! } if ( ($current_user->p[usevcard] == 1) && ($tutos[usevcard] == 1) ) { echo makelink($a->getUrl() ."&format=vcard" ,$lang['AdrGetVcard'],$lang['AdrGetVcardI']) . "<BR>\n"; *************** *** 164,168 **** if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { if ( $a->see_ok() ) { ! echo makelink("note_new.php?link_id=". $a->id ,$lang['NoteCreate'],sprintf($lang['NoteCreateInfo'],$a->getFullName())) ." <BR>\n"; } } --- 164,168 ---- if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { if ( $a->see_ok() ) { ! echo makelink("note_new.php?link_id=". $a->id ,$lang['NoteCreate'],sprintf($lang['NoteCreateInfo'],$a->getFullName())) ." <BR>\n"; } } *************** *** 210,214 **** DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ --- 210,214 ---- DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ Index: address_tools.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/address_tools.p3,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -r1.24 -r1.25 *** address_tools.p3 2001/08/08 16:53:21 1.24 --- address_tools.p3 2001/08/09 10:32:03 1.25 *************** *** 417,426 **** echo " <TH COLSPAN=8>\n"; if ( $atool['start'] != 0 ) { ! $l = addUrlParameter($atool['link1'],"astart=".($atool['start'] - $atool['maxshow'])); echo makelink($l ,$tutos[image][left] ." ".$lang['NavBack'],$lang['NavBack']); } echo " "; if ( $a < $n ) { ! $l = addUrlParameter($atool['link1'],"astart=".$a); echo makelink($l ,$lang['NavNext'] ." ". $tutos[image][right],$lang['NavNext']); } --- 417,426 ---- echo " <TH COLSPAN=8>\n"; if ( $atool['start'] != 0 ) { ! $l = addUrlParameter($atool['link1'],"astart=".($atool['start'] - $atool['maxshow'])); echo makelink($l ,$tutos[image][left] ." ".$lang['NavBack'],$lang['NavBack']); } echo " "; if ( $a < $n ) { ! $l = addUrlParameter($atool['link1'],"astart=".$a); echo makelink($l ,$lang['NavNext'] ." ". $tutos[image][right],$lang['NavNext']); } Index: admin_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/admin_show.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** admin_show.php 2001/07/21 16:03:33 1.5 --- admin_show.php 2001/08/09 10:32:03 1.6 *************** *** 163,167 **** ?> ! <!-- CVS Info: $Id$ $Author$ --- 163,167 ---- ?> ! <!-- CVS Info: $Id$ $Author$ Index: adr_ldap_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/adr_ldap_overview.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** adr_ldap_overview.php 2001/07/07 19:49:27 1.1 --- adr_ldap_overview.php 2001/08/09 10:32:03 1.2 *************** *** 65,69 **** } echo "</TR>\n"; ! # $sip = gethostbyname($tutos[ldapserver][$sv]); # echo $sv ." ". $sip ."<BR>"; --- 65,69 ---- } echo "</TR>\n"; ! # $sip = gethostbyname($tutos[ldapserver][$sv]); # echo $sv ." ". $sip ."<BR>"; *************** *** 85,100 **** } ! if ($ds != false) { ! # echo "Binding ..."; $r=ldap_bind($ds); // this is an "anonymous" bind, typically // read-only access # echo "Bind result is ".$r."<p>"; ! echo "Searching for ". $search ." on ". $tutos[ldapserver][$sv] ."<BR>\n"; // Search surname entry ! $sr = ldap_search($ds,"",$filter,$justthese); ! $cnt = ldap_count_entries($ds,$sr); ! if ( $cnt > 0 ) { echo "Number of entires returned is ". $cnt ."<p>"; --- 85,100 ---- } ! if ($ds != false) { ! # echo "Binding ..."; $r=ldap_bind($ds); // this is an "anonymous" bind, typically // read-only access # echo "Bind result is ".$r."<p>"; ! echo "Searching for ". $search ." on ". $tutos[ldapserver][$sv] ."<BR>\n"; // Search surname entry ! $sr = ldap_search($ds,"",$filter,$justthese); ! $cnt = ldap_count_entries($ds,$sr); ! if ( $cnt > 0 ) { echo "Number of entires returned is ". $cnt ."<p>"; *************** *** 105,112 **** # return; } ! # echo "Getting entries ...<p>"; # echo "Data for ".$info["count"]." items returned:<p>"; ! for ($i=0; $i<$info["count"]; $i++) { $dn = $info[$i]["dn"]; --- 105,112 ---- # return; } ! # echo "Getting entries ...<p>"; # echo "Data for ".$info["count"]." items returned:<p>"; ! for ($i=0; $i<$info["count"]; $i++) { $dn = $info[$i]["dn"]; *************** *** 182,186 **** HTML_Header($lang['AddressOverview']); ! HTML_Base1(); --- 182,186 ---- HTML_Header($lang['AddressOverview']); ! HTML_Base1(); *************** *** 201,207 **** if ( isset($sv) ) { ! # remember this $ldapserver = $sv; ! session_register('ldapserver'); } else if ( isset($ldapserver) ) { $sv = $ldapserver; --- 201,207 ---- if ( isset($sv) ) { ! # remember this $ldapserver = $sv; ! session_register('ldapserver'); } else if ( isset($ldapserver) ) { $sv = $ldapserver; *************** *** 211,217 **** if ( isset($name) ) { ! # remember this $adrlook = $name; ! session_register('adrlook'); } else if ( isset($adrlook) ) { $name = $adrlook; --- 211,217 ---- if ( isset($name) ) { ! # remember this $adrlook = $name; ! session_register('adrlook'); } else if ( isset($adrlook) ) { $name = $adrlook; *************** *** 242,246 **** DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ --- 242,246 ---- DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ Index: appointment.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/appointment.pinc,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -r1.40 -r1.41 *** appointment.pinc 2001/08/08 16:53:21 1.40 --- appointment.pinc 2001/08/09 10:32:03 1.41 *************** *** 16,20 **** $a = 0; while ( $a < $n ) { ! $o = new appointment($obj->conn); $o->read_result($r,$a); --- 16,20 ---- $a = 0; while ( $a < $n ) { ! $o = new appointment($obj->conn); $o->read_result($r,$a); *************** *** 43,49 **** } /* -------------------------------------------------------------------------- ! * Read a list of appointments for one day and make it a array in the * given object ! * start is a TUTOS DateTime object */ function readAppsCal(&$obj, &$from,$to = -1) { --- 43,49 ---- } /* -------------------------------------------------------------------------- ! * Read a list of appointments for one day and make it a array in the * given object ! * start is a TUTOS DateTime object */ function readAppsCal(&$obj, &$from,$to = -1) { *************** *** 240,244 **** $this->remembered = 0; $this->email = 0; ! # Repeat stuff $this->repeat = 0; --- 240,244 ---- $this->remembered = 0; $this->email = 0; ! # Repeat stuff $this->repeat = 0; *************** *** 328,332 **** $this = $g_app[$id]; return; ! } # echo "\n<!-- APP ". $id ." -->\n"; --- 328,332 ---- $this = $g_app[$id]; return; ! } # echo "\n<!-- APP ". $id ." -->\n"; *************** *** 363,367 **** $n = DB_NumRows($result); ! $a = 0; while ($a < $n) { $xx = DB_Result($result, $a, "adr_id"); --- 363,367 ---- $n = DB_NumRows($result); ! $a = 0; while ($a < $n) { $xx = DB_Result($result, $a, "adr_id"); *************** *** 410,414 **** } if ( $this->creator->id == $current_user->id ) { ! # the creator is allowed return $tutos[delok]; } --- 410,414 ---- } if ( $this->creator->id == $current_user->id ) { ! # the creator is allowed return $tutos[delok]; } *************** *** 429,433 **** if ( $f->is_member($current_user) ) { return $tutos[delok]; ! } } } --- 429,433 ---- if ( $f->is_member($current_user) ) { return $tutos[delok]; ! } } } *************** *** 462,466 **** if ( $f->is_member($current_user) ) { return $tutos[seeok]; ! } } } --- 462,466 ---- if ( $f->is_member($current_user) ) { return $tutos[seeok]; ! } } } *************** *** 478,482 **** } if ( $this->creator->id == $current_user->id ) { ! # the creator is allowed return $tutos[modok]; } --- 478,482 ---- } if ( $this->creator->id == $current_user->id ) { ! # the creator is allowed return $tutos[modok]; } *************** *** 500,504 **** if ( $f->is_member($current_user) ) { return $tutos[modok]; ! } } } --- 500,504 ---- if ( $f->is_member($current_user) ) { return $tutos[modok]; ! } } } *************** *** 548,552 **** } else { $body = eregi_replace("@TO@",$to->getFullName(),$body); ! # Remove the TEAM part $body = eregi_replace("<TEAM>.*</TEAM>","",$body); } --- 548,552 ---- } else { $body = eregi_replace("@TO@",$to->getFullName(),$body); ! # Remove the TEAM part $body = eregi_replace("<TEAM>.*</TEAM>","",$body); } *************** *** 559,572 **** $body = eregi_replace("@END@",$this->end->getDate(),$body); } ! if ( ($this->trace == 1) && ($to->gettype() != "team") ) { $p = dirname($PHP_SELF); $urlv = getBaseURL() ."calendar_vote.php?id=". $this->id ."&adr_id=".$to->id; ! $body = eregi_replace("@URLV@",$urlv,$body); $body = eregi_replace("<VOTE>","",$body); $body = eregi_replace("</VOTE>","",$body); } else { ! # Remove the VOTE part $body = eregi_replace("<VOTE>.*</VOTE>","",$body); } --- 559,572 ---- $body = eregi_replace("@END@",$this->end->getDate(),$body); } ! if ( ($this->trace == 1) && ($to->gettype() != "team") ) { $p = dirname($PHP_SELF); $urlv = getBaseURL() ."calendar_vote.php?id=". $this->id ."&adr_id=".$to->id; ! $body = eregi_replace("@URLV@",$urlv,$body); $body = eregi_replace("<VOTE>","",$body); $body = eregi_replace("</VOTE>","",$body); } else { ! # Remove the VOTE part $body = eregi_replace("<VOTE>.*</VOTE>","",$body); } *************** *** 599,603 **** /* We have to modify an existing appointment */ $new = 0; ! $q="UPDATE calendar SET"; $q .= " mod_allow = ". $this->mod_allow; --- 599,603 ---- /* We have to modify an existing appointment */ $new = 0; ! $q="UPDATE calendar SET"; $q .= " mod_allow = ". $this->mod_allow; *************** *** 936,940 **** echo " <TR>\n"; ! if ( ($this->trace == 1) && ($f->gettype() == "address") ) { $cols = 2; --- 936,940 ---- echo " <TR>\n"; ! if ( ($this->trace == 1) && ($f->gettype() == "address") ) { $cols = 2; Index: bug.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug.pinc,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -r1.32 -r1.33 *** bug.pinc 2001/07/28 18:21:21 1.32 --- bug.pinc 2001/08/09 10:32:03 1.33 *************** *** 31,35 **** $url = "bug_overview.php"; ! $url = addUrlParameter($url,"pid=". $obj->id); $ret .= "<TABLE>\n"; --- 31,35 ---- $url = "bug_overview.php"; ! $url = addUrlParameter($url,"pid=". $obj->id); $ret .= "<TABLE>\n"; *************** *** 45,49 **** $ret .= "</TR>\n"; } ! } $ret .= "</TABLE>\n"; --- 45,49 ---- $ret .= "</TR>\n"; } ! } $ret .= "</TABLE>\n"; *************** *** 139,150 **** $this->conn = $conn; $this->id = -1; ! $this->c_class[1] = "blue"; ! $this->c_class[2] = "#EE1111"; ! $this->c_class[3] = "red"; ! $this->c_class[4] = "green"; ! ! $this->c_state[1] = "red"; ! $this->c_state[2] = "blue"; ! $this->c_state[3] = "green"; $this->c_state[4] = "gray"; --- 139,150 ---- $this->conn = $conn; $this->id = -1; ! $this->c_class[1] = "blue"; ! $this->c_class[2] = "#EE1111"; ! $this->c_class[3] = "red"; ! $this->c_class[4] = "green"; ! ! $this->c_state[1] = "red"; ! $this->c_state[2] = "blue"; ! $this->c_state[3] = "green"; $this->c_state[4] = "gray"; *************** *** 202,206 **** /* --------------------------------------------------------------------------- */ ! function read ($id ) { global $g_bug; --- 202,206 ---- /* --------------------------------------------------------------------------- */ ! function read ($id ) { global $g_bug; *************** *** 212,216 **** $this = $g_bug[$id]; return; ! } $q = "SELECT * from bugs where id = ". $id; --- 212,216 ---- $this = $g_bug[$id]; return; ! } $q = "SELECT * from bugs where id = ". $id; *************** *** 252,256 **** * who may change this bug */ ! function mod_ok ( ) { global $current_user,$tutos; --- 252,256 ---- * who may change this bug */ ! function mod_ok ( ) { global $current_user,$tutos; *************** *** 285,289 **** if ( ! empty($s) ) { return "<FONT color=\"". $this->c_state[$s] ."\">". $lang['BugStates'][$s] ."</FONT>"; ! } return "<FONT color=\"". $this->c_state[$this->state] ."\">". $lang['BugStates'][$this->state] ."</FONT>"; } --- 285,289 ---- if ( ! empty($s) ) { return "<FONT color=\"". $this->c_state[$s] ."\">". $lang['BugStates'][$s] ."</FONT>"; ! } return "<FONT color=\"". $this->c_state[$this->state] ."\">". $lang['BugStates'][$this->state] ."</FONT>"; } *************** *** 301,305 **** if ( ! empty($c) ) { return "<FONT color=\"". $this->c_class[$c] ."\">". $lang['BugClasses'][$c] ."</FONT>"; ! } return "<FONT color=\"". $this->c_class[$this->class] ."\">". $lang['BugClasses'][$this->class] ."</FONT>"; } --- 301,305 ---- if ( ! empty($c) ) { return "<FONT color=\"". $this->c_class[$c] ."\">". $lang['BugClasses'][$c] ."</FONT>"; ! } return "<FONT color=\"". $this->c_class[$this->class] ."\">". $lang['BugClasses'][$this->class] ."</FONT>"; } *************** *** 426,451 **** $body = eregi_replace("@SOLVER@",$this->solver->getFullName(),$body); } else { ! $body = eregi_replace("@SOLVER@","-",$body); } ! $body = eregi_replace("@TO@",$to->getFullName(),$body); ! $body = eregi_replace("@NAME@",$this->getFullName(),$body); ! $body = eregi_replace("@CURRENT@",$current_user->getFullName(),$body); ! $body = eregi_replace("@CREATOR@",$this->creator->getFullName(),$body); ! $body = eregi_replace("@CREATED@",$this->creation->getDateTime(),$body); ! $body = eregi_replace("@SHORT@",$this->short,$body); ! $body = eregi_replace("@STATE@",$lang['BugStates'][$this->state],$body); ! $body = eregi_replace("@CLASS@",$lang['BugClasses'][$this->class],$body); ! $body = eregi_replace("@URL@",$url,$body); if ( $this->parent->getType() == "product" ) { ! $body = eregi_replace("@PROJECT@",$this->parent->getFullName(),$body); ! $body = eregi_replace("@INSTALLATION@","-",$body); ! } else if ( $this->parent->getType() == "installation" ) { ! $body = eregi_replace("@PROJECT@","-",$body); ! $body = eregi_replace("@INSTALLATION@",$this->parent->getFullName(),$body); } else if ( $this->parent->getType() == "task" ) { ! $body = eregi_replace("@PROJECT@",$this->parent->getFullName(),$body); ! $body = eregi_replace("@INSTALLATION@","-",$body); } --- 426,451 ---- $body = eregi_replace("@SOLVER@",$this->solver->getFullName(),$body); } else { ! $body = eregi_replace("@SOLVER@","-",$body); } ! $body = eregi_replace("@TO@",$to->getFullName(),$body); ! $body = eregi_replace("@NAME@",$this->getFullName(),$body); ! $body = eregi_replace("@CURRENT@",$current_user->getFullName(),$body); ! $body = eregi_replace("@CREATOR@",$this->creator->getFullName(),$body); ! $body = eregi_replace("@CREATED@",$this->creation->getDateTime(),$body); ! $body = eregi_replace("@SHORT@",$this->short,$body); ! $body = eregi_replace("@STATE@",$lang['BugStates'][$this->state],$body); ! $body = eregi_replace("@CLASS@",$lang['BugClasses'][$this->class],$body); ! $body = eregi_replace("@URL@",$url,$body); if ( $this->parent->getType() == "product" ) { ! $body = eregi_replace("@PROJECT@",$this->parent->getFullName(),$body); ! $body = eregi_replace("@INSTALLATION@","-",$body); ! } else if ( $this->parent->getType() == "installation" ) { ! $body = eregi_replace("@PROJECT@","-",$body); ! $body = eregi_replace("@INSTALLATION@",$this->parent->getFullName(),$body); } else if ( $this->parent->getType() == "task" ) { ! $body = eregi_replace("@PROJECT@",$this->parent->getFullName(),$body); ! $body = eregi_replace("@INSTALLATION@","-",$body); } *************** *** 460,468 **** } if ( $cc != "" ) { ! $body = eregi_replace("@CC@",$cc,$body); $body = eregi_replace("<CC>","",$body); $body = eregi_replace("</CC>","",$body); } else { ! # Remove the CC part $body = eregi_replace("<CC>.*</CC>","",$body); } --- 460,468 ---- } if ( $cc != "" ) { ! $body = eregi_replace("@CC@",$cc,$body); $body = eregi_replace("<CC>","",$body); $body = eregi_replace("</CC>","",$body); } else { ! # Remove the CC part $body = eregi_replace("<CC>.*</CC>","",$body); } *************** *** 534,543 **** unset ($this->modified); $this->modified[] = array ( "field" => "BugCreate" , ! "old" => "" , "new" => $this->id, "obj_id" => $this->parent->id ); $this->modified[] = array ( "field" => "BugCreate" , ! "old" => "" , "new" => $this->id, "obj_id" => $this->id --- 534,543 ---- unset ($this->modified); $this->modified[] = array ( "field" => "BugCreate" , ! "old" => "" , "new" => $this->id, "obj_id" => $this->parent->id ); $this->modified[] = array ( "field" => "BugCreate" , ! "old" => "" , "new" => $this->id, "obj_id" => $this->id *************** *** 559,563 **** acl_raise($this,$this->solver->id,$tutos[modok]); ! if ( $this->parent->getType() == "product" ) { # Set the permissions --- 559,563 ---- acl_raise($this,$this->solver->id,$tutos[modok]); ! if ( $this->parent->getType() == "product" ) { # Set the permissions *************** *** 702,706 **** return "bug"; } ! } $includes[bug.pinc] = 1; ?> --- 702,706 ---- return "bug"; } ! } $includes[bug.pinc] = 1; ?> Index: bug_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug_del.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** bug_del.php 2001/02/14 20:57:05 1.2 --- bug_del.php 2001/08/09 10:32:03 1.3 *************** *** 16,20 **** $b = new bug($conn); ! if ( !isset($id) ) { $msg = $msg . sprintf($lang['Err0040'],$lang[$b->getType()]); --- 16,20 ---- $b = new bug($conn); ! if ( !isset($id) ) { $msg = $msg . sprintf($lang['Err0040'],$lang[$b->getType()]); *************** *** 30,34 **** $msg = $b->delete(); } ! $gotourl = addUrlParameter($gotourl,"msg=". UrlEncode($msg)); $gotourl = addSessionKey($gotourl); --- 30,34 ---- $msg = $b->delete(); } ! $gotourl = addUrlParameter($gotourl,"msg=". UrlEncode($msg)); $gotourl = addSessionKey($gotourl); Index: bug_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug_ins.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** bug_ins.php 2001/06/18 14:43:10 1.4 --- bug_ins.php 2001/08/09 10:32:03 1.5 *************** *** 22,27 **** $b = new bug($conn); ! if ( isset($id) ) { ! $gotourl= addUrlParameter($gotourl,"id=". $id); $b->read($id); } --- 22,27 ---- $b = new bug($conn); ! if ( isset($id) ) { ! $gotourl= addUrlParameter($gotourl,"id=". $id); $b->read($id); } *************** *** 30,43 **** $msg = $msg . sprintf($lang['Err0009'],$lang['BugAdditional']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"description=". UrlEncode($description)); } if ( empty($short) || !isset($short) ) { $msg = $msg . sprintf($lang['Err0009'],$lang['BugShort']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"short=". UrlEncode($short)); } ! if ( isset($pid) ) { ! $gotourl= addUrlParameter($gotourl,"pid=". $pid); $b->parent = getObject($pid); } else { --- 30,43 ---- $msg = $msg . sprintf($lang['Err0009'],$lang['BugAdditional']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"description=". UrlEncode($description)); } if ( empty($short) || !isset($short) ) { $msg = $msg . sprintf($lang['Err0009'],$lang['BugShort']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"short=". UrlEncode($short)); } ! if ( isset($pid) ) { ! $gotourl= addUrlParameter($gotourl,"pid=". $pid); $b->parent = getObject($pid); } else { *************** *** 48,57 **** $msg = $msg . sprintf($lang['Err0009'],$lang['BugState']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"state=". $state); } if ( empty($class) || !isset($class) ) { $msg = $msg . sprintf($lang['Err0009'],$lang['BugClass']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"class=". $class); } --- 48,57 ---- $msg = $msg . sprintf($lang['Err0009'],$lang['BugState']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"state=". $state); } if ( empty($class) || !isset($class) ) { $msg = $msg . sprintf($lang['Err0009'],$lang['BugClass']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"class=". $class); } *************** *** 65,69 **** if ( $msg != "" ) { ! $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); $gotourl = addSessionKey($gotourl); --- 65,69 ---- if ( $msg != "" ) { ! $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); $gotourl = addSessionKey($gotourl); *************** *** 77,81 **** # Old Bug # ! if ( isset($id) ) { $newlines = ""; if ( !empty($description) ) { --- 77,81 ---- # Old Bug # ! if ( isset($id) ) { $newlines = ""; if ( !empty($description) ) { Index: bug_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug_new.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** bug_new.php 2001/08/08 16:53:21 1.10 --- bug_new.php 2001/08/09 10:32:03 1.11 *************** *** 44,48 **** } echo "</TR>\n"; ! echo "<TR>\n"; showfieldc($lang['BugState']); --- 44,48 ---- } echo "</TR>\n"; ! echo "<TR>\n"; showfieldc($lang['BugState']); *************** *** 217,221 **** DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ --- 217,221 ---- DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ Index: bug_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug_overview.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** bug_overview.php 2001/07/28 18:21:21 1.14 --- bug_overview.php 2001/08/09 10:32:03 1.15 *************** *** 169,173 **** $cmax = max($t1,$cmax); $tmax = max($t1,$tmax); ! # $linkt = addUrlParameter($linkt,"f[]=". $b->creation->getTimestamp()); # $linkt = addUrlParameter($linkt,"y[". $b->creation->getTimestamp() ."]=u"); --- 169,173 ---- $cmax = max($t1,$cmax); $tmax = max($t1,$tmax); ! # $linkt = addUrlParameter($linkt,"f[]=". $b->creation->getTimestamp()); # $linkt = addUrlParameter($linkt,"y[". $b->creation->getTimestamp() ."]=u"); *************** *** 462,468 **** $link1 = addUrlParameter($link1,"state=". $state); $link2 = addUrlParameter($link2,"state=". $state); ! # remember this $bugsearchstate = $state; ! session_register('bugsearchstate'); $filter['state'] = $state; --- 462,468 ---- $link1 = addUrlParameter($link1,"state=". $state); $link2 = addUrlParameter($link2,"state=". $state); ! # remember this $bugsearchstate = $state; ! session_register('bugsearchstate'); $filter['state'] = $state; *************** *** 473,479 **** $link1 = addUrlParameter($link1,"state=". $state); $link2 = addUrlParameter($link2,"state=". $state); ! # remember this $bugsearchstate = $state; ! session_register('bugsearchstate'); $filter['state'] = $state; --- 473,479 ---- $link1 = addUrlParameter($link1,"state=". $state); $link2 = addUrlParameter($link2,"state=". $state); ! # remember this $bugsearchstate = $state; ! session_register('bugsearchstate'); $filter['state'] = $state; *************** *** 486,492 **** $link1 = addUrlParameter($link1,"class=". $class); $link2 = addUrlParameter($link2,"class=". $class); ! # remember this $bugsearchclass = $class; ! session_register('bugsearchclass'); $filter['classes'] = $class; --- 486,492 ---- $link1 = addUrlParameter($link1,"class=". $class); $link2 = addUrlParameter($link2,"class=". $class); ! # remember this $bugsearchclass = $class; ! session_register('bugsearchclass'); $filter['classes'] = $class; *************** *** 509,515 **** } else { $from->setDateTimeF("f"); ! # remember this $bugsearchfrom = $from->getYYYYMMDD(); ! session_register('bugsearchfrom'); } if ( $from->notime != 1 ) { --- 509,515 ---- } else { $from->setDateTimeF("f"); ! # remember this $bugsearchfrom = $from->getYYYYMMDD(); ! session_register('bugsearchfrom'); } if ( $from->notime != 1 ) { *************** *** 529,535 **** } else { $to->setDateTimeF("t"); ! # remember this $bugsearchto = $to->getYYYYMMDD(); ! session_register('bugsearchto'); } if ( $to->notime != 1 ) { --- 529,535 ---- } else { $to->setDateTimeF("t"); ! # remember this $bugsearchto = $to->getYYYYMMDD(); ! session_register('bugsearchto'); } if ( $to->notime != 1 ) { *************** *** 584,588 **** DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ --- 584,588 ---- DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ Index: bug_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug_select.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** bug_select.php 2001/08/08 16:53:21 1.4 --- bug_select.php 2001/08/09 10:32:03 1.5 *************** *** 84,88 **** echo "<TABLE>"; ! echo "<TR><TD>"; echo makelink("bug_new.php",$lang['NewEntry'],$lang['CreateNewBug']) ."<BR>"; echo "</TD></TR>"; --- 84,88 ---- echo "<TABLE>"; ! echo "<TR><TD>"; echo makelink("bug_new.php",$lang['NewEntry'],$lang['CreateNewBug']) ."<BR>"; echo "</TD></TR>"; Index: bug_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug_show.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** bug_show.php 2001/07/28 18:21:21 1.9 --- bug_show.php 2001/08/09 10:32:03 1.10 *************** *** 87,91 **** echo " <TD BGCOLOR=white COLSPAN=3>"; echo "<PRE>\n". urlReplace($b->description) ."\n</PRE></TD>\n"; ! echo "</TR>\n"; if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { --- 87,91 ---- echo " <TD BGCOLOR=white COLSPAN=3>"; echo "<PRE>\n". urlReplace($b->description) ."\n</PRE></TD>\n"; ! echo "</TR>\n"; if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { *************** *** 97,101 **** showNotes($b,0); echo " </TD>\n"; ! echo "</TR>\n"; } } --- 97,101 ---- showNotes($b,0); echo " </TD>\n"; ! echo "</TR>\n"; } } *************** *** 109,113 **** showFiles($b); echo " </TD>\n"; ! echo "</TR>\n"; } } --- 109,113 ---- showFiles($b); echo " </TD>\n"; ! echo "</TR>\n"; } } *************** *** 176,180 **** DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ --- 176,180 ---- DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ Index: calendar.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/calendar.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** calendar.php 2001/08/08 16:53:21 1.15 --- calendar.php 2001/08/09 10:32:03 1.16 *************** *** 117,121 **** /* --------------------------------------------------------------------------- * Display One Weeks appointments (including s) starting with Monday or Sunday ! * t format YYYYMMDD * */ --- 117,121 ---- /* --------------------------------------------------------------------------- * Display One Weeks appointments (including s) starting with Monday or Sunday ! * t format YYYYMMDD * */ *************** *** 171,175 **** @reset($xxx); while( list ($a,$apo) = @each ($xxx)) { ! /* if user is not interessted in - show nothing */ $found = 0; --- 171,175 ---- @reset($xxx); while( list ($a,$apo) = @each ($xxx)) { ! /* if user is not interessted in - show nothing */ $found = 0; *************** *** 178,183 **** while ( list ($i,$f) = @each ($apo->participant) ) { @reset($uids); ! while ( list ($i1,$f1) = @each ($uids) ) { ! if ( ($f->id == $i1) && ($f1 == 1) ) { $found = "$i1"; break; --- 178,183 ---- while ( list ($i,$f) = @each ($apo->participant) ) { @reset($uids); ! while ( list ($i1,$f1) = @each ($uids) ) { ! if ( ($f->id == $i1) && ($f1 == 1) ) { $found = "$i1"; break; *************** *** 188,192 **** $found = 1; } ! if ( $found == 0 ) { /* Show nothing */ --- 188,192 ---- $found = 1; } ! if ( $found == 0 ) { /* Show nothing */ *************** *** 194,198 **** continue; } ! if ( $hastable == 0 ) { if ( $tutos[caltable] == 2 ) { --- 194,198 ---- continue; } ! if ( $hastable == 0 ) { if ( $tutos[caltable] == 2 ) { *************** *** 204,210 **** echo " <TR><TD CLASS=app COLSPAN=3><FONT COLOR=black SIZE=-5><HR NOSHADE SIZE=1></FONT></TD></TR>\n"; } ! $apo->formatted(); ! $a++; $apo = 0; --- 204,210 ---- echo " <TR><TD CLASS=app COLSPAN=3><FONT COLOR=black SIZE=-5><HR NOSHADE SIZE=1></FONT></TD></TR>\n"; } ! $apo->formatted(); ! $a++; $apo = 0; *************** *** 293,297 **** $tt->read_member(); @reset($tt->member); ! while ( list ($i1,$f1) = @each ($tt->member) ) { $uids[$i1] = 1; # Add all teams where this member is also a member --- 293,297 ---- $tt->read_member(); @reset($tt->member); ! while ( list ($i1,$f1) = @each ($tt->member) ) { $uids[$i1] = 1; # Add all teams where this member is also a member *************** *** 318,322 **** $tt = new team($conn); $tt->read($i); ! while ( list ($i1,$f1) = @each ($tt->ids) ) { $uids[$i1] = 1; } --- 318,322 ---- $tt = new team($conn); $tt->read($i); ! while ( list ($i1,$f1) = @each ($tt->ids) ) { $uids[$i1] = 1; } *************** *** 333,337 **** $tt->read_member(); @reset($tt->member); ! while ( list ($i1,$f1) = @each ($tt->member) ) { $uids[$i1] = 1; # Check the teams where this user is also a member --- 333,337 ---- $tt->read_member(); @reset($tt->member); ! while ( list ($i1,$f1) = @each ($tt->member) ) { $uids[$i1] = 1; # Check the teams where this user is also a member *************** *** 388,392 **** $t2 = $t; ! for ($i = 0; $i < $weeks; $i++) { echo " </TR><TR>\n"; $t2 = Cal_Week($conn,$t2); --- 388,392 ---- $t2 = $t; ! for ($i = 0; $i < $weeks; $i++) { echo " </TR><TR>\n"; $t2 = Cal_Week($conn,$t2); *************** *** 407,411 **** DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ --- 407,411 ---- DB_Close($conn); ?> ! <!-- CVS Info: $Id$ $Author$ Index: calendar_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/calendar_ins.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** calendar_ins.php 2001/05/12 05:54:33 1.8 --- calendar_ins.php 2001/08/09 10:32:03 1.9 *************** *** 48,52 **** # Set the Start and End time ! $a->start->setDateTimeF("start"); if ( 1 != $a->start->checkDMY() ) { --- 48,52 ---- # Set the Start and End time ! $a->start->setDateTimeF("start"); if ( 1 != $a->start->checkDMY() ) { *************** *** 70,74 **** $msg = $msg . $lang['Err0002'] ."<BR>"; } ! if ( !isset($people) || (count($people) < 1)) { # No Participants --- 70,74 ---- $msg = $msg . $lang['Err0002'] ."<BR>"; } ! if ( !isset($people) || (count($people) < 1)) { # No Participants *************** *** 158,162 **** } # ! # VISITOR # if ( isset($vfn) && !empty($vfn) ) { --- 158,162 ---- } # ! # VISITOR # if ( isset($vfn) && !empty($vfn) ) { *************** *** 170,174 **** } # ! # PRODUCT # if ( isset($pfn) && !empty($pfn) ) { --- 170,174 ---- } # ! # PRODUCT # if ( isset($pfn) && !empty($pfn) ) { *************** *** 196,200 **** ################################################## ! # End of Checks ################################################## if ( $msg == "" ) { --- 196,200 ---- ################################################## ! # End of Checks ################################################## if ( $msg == "" ) { Index: calendar_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/calendar_new.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** calendar_new.php 2001/08/08 16:53:21 1.17 --- calendar_new.php 2001/08/09 10:32:03 1.18 *************** *** 53,57 **** if ( $a->allowed == 0 ) { echo "<B>". $lang['ReadOnlyAppoint'] ."</B><BR>\n"; ! } echo "<FORM action=\"calendar_ins.php\" method=\"POST\">\n"; hiddenFormElements(); --- 53,57 ---- if ( $a->allowed == 0 ) { echo "<B>". $lang['ReadOnlyAppoint'] ."</B><BR>\n"; ! } echo "<FORM action=\"calendar_ins.php\" method=\"POST\">\n"; hiddenFormElements(); *************** *** 167,171 **** echo "<BR><FONT SIZE=-1>". $lang['tracestate_desc'] ."</FONT>"; echo " </TD>\n"; ! echo " <TD COLSPAN=3> <B>". $lang['AppChangeOrDel'] ."</B> <BR>\n"; echo " <INPUT type=\"radio\" name=\"mod_allow\" value=2 ". $a_checked[2] .">". $lang['only'] ." ". $a->creator->getLink() ."<BR>\n"; --- 167,171 ---- echo "<BR><FONT SIZE=-1>". $lang['tracestate_desc'] ."</FONT>"; echo " </TD>\n"; ! echo " <TD COLSPAN=3> <B>". $lang['AppChangeOrDel'] ."</B> <BR>\n"; echo " <INPUT type=\"radio\" name=\"mod_allow\" value=2 ". $a_checked[2] .">". $lang['only'] ." ... [truncated message content] |
From: Boris W. <bw...@us...> - 2001-08-09 08:30:20
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv15703 Modified Files: file.pinc Log Message: Some browsers sometimes don't pass a filetype, this is handled at the end. Index: file.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/file.pinc,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -r1.29 -r1.30 *** file.pinc 2001/08/08 16:52:22 1.29 --- file.pinc 2001/08/09 08:30:13 1.30 *************** *** 276,280 **** global $lang, $tutos; ! if ( ($this->filetype == "") || ($this->filetype == "text/plain") ) { Header("Expires: 0"); Header("Pragma: no-cache"); --- 276,280 ---- global $lang, $tutos; ! if ( $this->filetype == "text/plain" ) { Header("Expires: 0"); Header("Pragma: no-cache"); *************** *** 309,314 **** @passthru($tutos[fig2dev] ." -L gif \"". $this->base ."/". $this->fileloc ."\""); return; ! } ! } else if ( $this->filetype == "text/html" ) { Header("Expires: 0"); Header("Pragma: no-cache"); --- 309,314 ---- @passthru($tutos[fig2dev] ." -L gif \"". $this->base ."/". $this->fileloc ."\""); return; ! } ! } else if ( $this->filetype == "text/html" ) { Header("Expires: 0"); Header("Pragma: no-cache"); |
From: Gero K. <gok...@us...> - 2001-08-08 21:40:48
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv3706/php Modified Files: ru.p3 Log Message: new locale handling Index: ru.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/ru.p3,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -r1.27 -r1.28 *** ru.p3 2001/08/08 16:47:53 1.27 --- ru.p3 2001/08/08 21:40:45 1.28 *************** *** 3,6 **** --- 3,7 ---- # $lang['content_encoding'] = "koi8-r"; + setlocale('LC_TIME','ru_RU'); # # English Texts |
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv29155/php Modified Files: Date.pinc address_tools.p3 appointment.pinc bug_new.php bug_select.php calendar.php calendar_new.php calendar_new_r.php company_new.php config.pinc department_new.php mailbox_overview.php mytutos.php permission.p3 product_new.php product_select.php product_show.php timetrack_select.php url.pinc user.pinc webelements.p3 Log Message: some HTML validation Index: Date.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/Date.pinc,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -r1.26 -r1.27 *** Date.pinc 2001/07/21 16:03:33 1.26 --- Date.pinc 2001/08/08 16:53:21 1.27 *************** *** 803,807 **** return sprintf ($lang['DateFormat'],"--","--","----"); } - # return strftime($lang['DateFormatPHP'],$this->ts); if ( $tutos['df'] == 1 ) { return sprintf ($lang['DateFormat'],$this->month,$this->day,$this->year); --- 803,806 ---- Index: address_tools.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/address_tools.p3,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -r1.23 -r1.24 *** address_tools.p3 2001/07/28 18:21:21 1.23 --- address_tools.p3 2001/08/08 16:53:21 1.24 *************** *** 77,81 **** } elseif ( $name == "teams" ) { echo " <TD VALIGN=top COLSPAN=". ($s + 1) .">\n"; ! echo " <TABLE BORDER=0 CELLSPACING=0 WIDTH=100%>\n"; echo " <TR><TH>". $lang['Teams'] ."</TH></TR>\n"; @reset ($a->teamids); --- 77,81 ---- } elseif ( $name == "teams" ) { echo " <TD VALIGN=top COLSPAN=". ($s + 1) .">\n"; ! echo " <TABLE BORDER=0 CELLSPACING=0 WIDTH=\"100%\">\n"; echo " <TR><TH>". $lang['Teams'] ."</TH></TR>\n"; @reset ($a->teamids); *************** *** 87,91 **** } elseif ( $name == "mbox" ) { echo " <TD VALIGN=top COLSPAN=". ($s + 1) .">\n"; ! echo " <TABLE BORDER=0 CELLSPACING=0 WIDTH=100%>\n"; echo " <TR><TH>". $lang['mailbox'] ."</TH></TR>\n"; showMailboxes($a,1); --- 87,91 ---- } elseif ( $name == "mbox" ) { echo " <TD VALIGN=top COLSPAN=". ($s + 1) .">\n"; ! echo " <TABLE BORDER=0 CELLSPACING=0 WIDTH=\"100%\">\n"; echo " <TR><TH>". $lang['mailbox'] ."</TH></TR>\n"; showMailboxes($a,1); *************** *** 94,98 **** } elseif ( $name == "apps" ) { echo " <TD VALIGN=top COLSPAN=". ($s + 1) .">\n"; ! echo " <TABLE BORDER=0 CELLSPACING=0 WIDTH=100%>\n"; echo " <TR><TH>". $lang['Visits'] ."</TH></TR>\n"; showApps($a,1); --- 94,98 ---- } elseif ( $name == "apps" ) { echo " <TD VALIGN=top COLSPAN=". ($s + 1) .">\n"; ! echo " <TABLE BORDER=0 CELLSPACING=0 WIDTH=\"100%\">\n"; echo " <TR><TH>". $lang['Visits'] ."</TH></TR>\n"; showApps($a,1); *************** *** 101,105 **** } elseif ( $name == "inst" ) { echo "<TD VALIGN=top COLSPAN=". ($s + 1) .">\n"; ! echo " <TABLE BORDER=0 CELLSPACING=0 WIDTH=100%>\n"; echo " <TR><TH>". $lang['Installations'] ."</TH></TR>\n"; showInstallations($a,1); --- 101,105 ---- } elseif ( $name == "inst" ) { echo "<TD VALIGN=top COLSPAN=". ($s + 1) .">\n"; ! echo " <TABLE BORDER=0 CELLSPACING=0 WIDTH=\"100%\">\n"; echo " <TR><TH>". $lang['Installations'] ."</TH></TR>\n"; showInstallations($a,1); *************** *** 108,112 **** } elseif ( $name == "products_m" ) { echo "<TD VALIGN=top COLSPAN=". ($s + 1) .">\n"; ! echo " <TABLE BORDER=0 CELLSPACING=0 WIDTH=100%>\n"; echo " <TR><TH>". $lang['managedProd'] ."</TH></TR>\n"; showProducts("m",$a,1); --- 108,112 ---- } elseif ( $name == "products_m" ) { echo "<TD VALIGN=top COLSPAN=". ($s + 1) .">\n"; ! echo " <TABLE BORDER=0 CELLSPACING=0 WIDTH=\"100%\">\n"; echo " <TR><TH>". $lang['managedProd'] ."</TH></TR>\n"; showProducts("m",$a,1); *************** *** 115,119 **** } elseif ( $name == "products_s" ) { echo " <TD VALIGN=top COLSPAN=". ($s + 1) .">\n"; ! echo " <TABLE BORDER=0 CELLSPACING=0 WIDTH=100%>\n"; echo " <TR><TH>". $lang['soldProd'] ."</TH></TR>\n"; showProducts("s",$a,1); --- 115,119 ---- } elseif ( $name == "products_s" ) { echo " <TD VALIGN=top COLSPAN=". ($s + 1) .">\n"; ! echo " <TABLE BORDER=0 CELLSPACING=0 WIDTH=\"100%\">\n"; echo " <TR><TH>". $lang['soldProd'] ."</TH></TR>\n"; showProducts("s",$a,1); *************** *** 122,126 **** } elseif ( $name == "notes" ) { echo " <TD VALIGN=top COLSPAN=". ($s + 1) .">\n"; ! echo " <TABLE BORDER=0 CELLSPACING=0 WIDTH=100%>\n"; echo " <TR><TH>". $lang['Notes'] ."</TH></TR>\n"; showNotes($a,1); --- 122,126 ---- } elseif ( $name == "notes" ) { echo " <TD VALIGN=top COLSPAN=". ($s + 1) .">\n"; ! echo " <TABLE BORDER=0 CELLSPACING=0 WIDTH=\"100%\">\n"; echo " <TR><TH>". $lang['Notes'] ."</TH></TR>\n"; showNotes($a,1); Index: appointment.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/appointment.pinc,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -r1.39 -r1.40 *** appointment.pinc 2001/07/28 18:21:21 1.39 --- appointment.pinc 2001/08/08 16:53:21 1.40 *************** *** 159,163 **** echo $f->getLink(); if ( ($ext == 1) && ($f->product->id != -1) ) { ! echo " -->". $f->product->getLink(); } if ( ($ext == 2) && ($f->visitor->id != -1) ) { --- 159,163 ---- echo $f->getLink(); if ( ($ext == 1) && ($f->product->id != -1) ) { ! echo " -->". $f->product->getLink(); } if ( ($ext == 2) && ($f->visitor->id != -1) ) { *************** *** 562,566 **** if ( ($this->trace == 1) && ($to->gettype() != "team") ) { $p = dirname($PHP_SELF); ! $urlv = getBaseURL() ."calendar_vote.php?id=". $this->id ."&adr_id= ".$to->id; $body = eregi_replace("@URLV@",$urlv,$body); --- 562,566 ---- if ( ($this->trace == 1) && ($to->gettype() != "team") ) { $p = dirname($PHP_SELF); ! $urlv = getBaseURL() ."calendar_vote.php?id=". $this->id ."&adr_id=".$to->id; $body = eregi_replace("@URLV@",$urlv,$body); *************** *** 897,921 **** } else { if ( $this->s_out == "t" ) { ! $start = "<<"; } else { ! $start = $this->start->getTime(); } if ( $this->e_out == "t" ) { ! $end = ">>"; } else { ! $end = $this->end->getTime(); } } if ($start == $end) { if ( $this->notime == 1 ) { ! $duration = ">>%s<<"; } else { ! $duration = "%s $start"; } } else { if ( $this->notime == 1 ) { ! $duration = "<<%s>>"; } else { ! $duration = "%s $start - $end"; } } --- 897,921 ---- } else { if ( $this->s_out == "t" ) { ! $start = "<<"; } else { ! $start = $this->start->getTime(); } if ( $this->e_out == "t" ) { ! $end = ">>"; } else { ! $end = $this->end->getTime(); } } if ($start == $end) { if ( $this->notime == 1 ) { ! $duration = ">>%s<<"; } else { ! $duration = "%s $start"; } } else { if ( $this->notime == 1 ) { ! $duration = "<<%s>>"; } else { ! $duration = "%s $start - $end"; } } *************** *** 984,988 **** if ( $this->product->id != -1 ) { echo " <TR><TD CLASS=". $class ." COLSPAN=3 ALIGN=right>"; ! echo "-->". $this->product->getLink() .""; echo "</TD></TR>\n"; } --- 984,988 ---- if ( $this->product->id != -1 ) { echo " <TR><TD CLASS=". $class ." COLSPAN=3 ALIGN=right>"; ! echo "-->". $this->product->getLink() .""; echo "</TD></TR>\n"; } Index: bug_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug_new.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** bug_new.php 2001/08/01 18:34:50 1.9 --- bug_new.php 2001/08/08 16:53:21 1.10 *************** *** 19,25 **** global $lang , $current_user; - echo "<TABLE BORDER=0 CELLSPACING=0>\n"; echo "<FORM ACTION=\"bug_ins.php\" method=\"POST\">\n"; hiddenFormElements(); echo "<TR>\n"; echo " <TH COLSPAN=4>". sprintf($lang['Showing'],$lang[$b->getType()])."</TH>\n"; --- 19,30 ---- global $lang , $current_user; echo "<FORM ACTION=\"bug_ins.php\" method=\"POST\">\n"; hiddenFormElements(); + if ( $b->id > 0 ) { + echo " <INPUT type=\"hidden\" value=\"". $b->id ."\" name=\"id\">\n"; + } else { + echo " <INPUT type=\"hidden\" value=". $b->state ." name=\"state\">\n"; + } + echo "<TABLE BORDER=0 CELLSPACING=0>\n"; echo "<TR>\n"; echo " <TH COLSPAN=4>". sprintf($lang['Showing'],$lang[$b->getType()])."</TH>\n"; *************** *** 34,38 **** showfieldc($lang['BugID']); if ( $b->id > 0 ) { - echo " <INPUT type=\"hidden\" value=\"". $b->id ."\" name=\"id\">\n"; echo " <TD>". $b->getLink() ."</TD>\n"; } else { --- 39,42 ---- *************** *** 47,51 **** } else { echo " <TD>". $lang['BugAutoState'] ." ". $b->getState() ."</TD>\n"; - echo " <INPUT type=\"hidden\" value=$b->state name=\"state\">\n"; } showfieldc($lang['BugClass']); --- 51,54 ---- *************** *** 88,93 **** if ( $b->parent->id > 0 ) { showfield($lang[$b->parent->getType()]); ! echo " <TD VALIGN=top>". $b->parent->getLink() ."</TD>"; echo " <INPUT type=hidden name=pid value=". $b->parent->id .">"; } else { showfieldc($lang['ProductP']); --- 91,97 ---- if ( $b->parent->id > 0 ) { showfield($lang[$b->parent->getType()]); ! echo " <TD VALIGN=top>". $b->parent->getLink(); echo " <INPUT type=hidden name=pid value=". $b->parent->id .">"; + echo "</TD>\n"; } else { showfieldc($lang['ProductP']); *************** *** 126,131 **** echo "</TR>\n"; } - echo "</FORM>\n"; echo "</TABLE>\n"; echo $lang['FldsRequired'] ."\n"; } --- 130,135 ---- echo "</TR>\n"; } echo "</TABLE>\n"; + echo "</FORM>\n"; echo $lang['FldsRequired'] ."\n"; } Index: bug_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug_select.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** bug_select.php 2001/07/21 16:03:33 1.3 --- bug_select.php 2001/08/08 16:53:21 1.4 *************** *** 31,35 **** echo "</TR><TR>\n"; - echo "</TR><TR>\n"; showfieldc($lang['AdrName']); --- 31,34 ---- Index: calendar.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/calendar.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** calendar.php 2001/07/28 18:21:21 1.14 --- calendar.php 2001/08/08 16:53:21 1.15 *************** *** 29,35 **** $next_month = Date("Ymd",$ts + 28 * 86400); ! echo "<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=100% BORDER=0>\n"; echo "<TR>\n"; - echo "<FORM ACTION=\"calendar.php\" method=\"GET\">"; echo " <TD ROWSPAN=2 NOWRAP>\n"; --- 29,35 ---- $next_month = Date("Ymd",$ts + 28 * 86400); ! echo "<FORM ACTION=\"calendar.php\" method=\"GET\">\n"; ! echo "<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=\"100%\" BORDER=0>\n"; echo "<TR>\n"; echo " <TD ROWSPAN=2 NOWRAP>\n"; *************** *** 94,98 **** echo " <INPUT type=submit value=\"GO\">"; echo " </TD>\n"; - echo "</FORM>"; --- 94,97 ---- *************** *** 113,116 **** --- 112,116 ---- echo " </TR>\n"; echo "</TABLE>\n"; + echo "</FORM>"; }; Index: calendar_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/calendar_new.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** calendar_new.php 2001/07/26 11:36:14 1.16 --- calendar_new.php 2001/08/08 16:53:21 1.17 *************** *** 58,62 **** echo "<INPUT type=\"hidden\" value=0 name=\"repeat\">\n"; echo "<INPUT type=\"hidden\" value=0 name=\"r_ignore\">\n"; ! DoubleTableStart(1); echo "<TR>\n"; --- 58,64 ---- echo "<INPUT type=\"hidden\" value=0 name=\"repeat\">\n"; echo "<INPUT type=\"hidden\" value=0 name=\"r_ignore\">\n"; ! if ( $a->id > 0 ) { ! echo "<INPUT type=\"hidden\" value=". $a->id ." name=\"id\">\n"; ! } DoubleTableStart(1); echo "<TR>\n"; *************** *** 65,69 **** echo $lang['ModOldAppoint']; echo "</TH>\n"; - echo "<INPUT type=\"hidden\" value=". $a->id ." name=\"id\">\n"; echo "</TR><TR>\n"; echo "<TD COLSPAN=6> <B>". $lang['AppCreatedBy'] ."</B> ". $a->creator->getLink(); --- 67,70 ---- *************** *** 78,82 **** # START echo "<TR>"; ! echo "<TD VALIGN=center> <B>". $lang['StartDate'] ."</B> </TD>\n"; echo "<TD COLSPAN=2>"; $a->start->EnterDate("start"); --- 79,83 ---- # START echo "<TR>"; ! echo "<TD VALIGN=middle> <B>". $lang['StartDate'] ."</B> </TD>\n"; echo "<TD COLSPAN=2>"; $a->start->EnterDate("start"); *************** *** 89,93 **** # END echo "</TR><TR>\n"; ! echo "<TD VALIGN=center> <B>". $lang['EndDate'] ."</B> </TD>\n"; echo "<TD COLSPAN=2>"; $a->end->EnterDate("end"); --- 90,94 ---- # END echo "</TR><TR>\n"; ! echo "<TD VALIGN=middle> <B>". $lang['EndDate'] ."</B> </TD>\n"; echo "<TD COLSPAN=2>"; $a->end->EnterDate("end"); Index: calendar_new_r.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/calendar_new_r.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** calendar_new_r.php 2001/07/26 11:36:14 1.11 --- calendar_new_r.php 2001/08/08 16:53:21 1.12 *************** *** 59,62 **** --- 59,66 ---- echo "<INPUT type=\"hidden\" value=0 name=\"repeat\">\n"; echo "<INPUT type=\"hidden\" value=\"calendar_new_r.php\" name=\"gotourl\">\n"; + if ( $a->id > 0 ) { + echo "<INPUT type=\"hidden\" value=". $a->id ." name=\"id\">\n"; + } + DoubleTableStart(1); echo "<TR>\n"; *************** *** 65,69 **** echo $lang['ModOldAppoint'] ."(repeat)"; echo "</TH>\n"; - echo "<INPUT type=\"hidden\" value=". $a->id ." name=\"id\">\n"; echo "</TR><TR>\n"; echo "<TD COLSPAN=3> <B>". $lang['AppCreatedBy'] ."</B> ". $a->creator->getLink() ."</TD>\n"; --- 69,72 ---- Index: company_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/company_new.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** company_new.php 2001/07/21 16:03:33 1.7 --- company_new.php 2001/08/08 16:53:21 1.8 *************** *** 16,20 **** global $lang; - echo "<TABLE BORDER=0 CELLSPACING=0>\n"; if ( $loc != "" ) { --- 16,19 ---- *************** *** 25,28 **** --- 24,29 ---- hiddenFormElements(); echo "<INPUT type=hidden name=\"id\" value=\"". $c->id ."\">\n"; + + echo "<TABLE BORDER=0 CELLSPACING=0>\n"; echo "<TR>\n"; echo " <TH COLSPAN=5>". sprintf($lang['Showing'],$lang[$c->getType()])."</TH>\n"; *************** *** 104,114 **** echo "</TR>\n"; echo "</FORM>\n"; if ( $c->id > 0 ) { ! url_del_list($c,"company_new.php?id=".$c->id); ! url_add_form($c,"company_new.php?id=".$c->id); } - echo "</TABLE>\n"; echo $lang['FldsRequired'] ."\n"; } --- 105,114 ---- echo "</TR>\n"; + echo "</TABLE>\n"; echo "</FORM>\n"; if ( $c->id > 0 ) { ! url_form($c,"company_new.php?id=".$c->id); } echo $lang['FldsRequired'] ."\n"; } Index: config.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/config.pinc,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -r1.56 -r1.57 *** config.pinc 2001/07/28 18:21:21 1.56 --- config.pinc 2001/08/08 16:53:21 1.57 *************** *** 153,156 **** --- 153,157 ---- # $tutos[smtphost] = "127.0.0.1"; + $tutos[smtphost] = "192.168.1.10"; # # *************** *** 200,203 **** --- 201,206 ---- $tutos[wvHtml] = "/usr/local/bin/wvWare"; $tutos[wvSummary] = "/usr/local/bin/wvSummary"; + # Display xfig files + $tutos[fig2dev] = "/usr/X11R6/bin/fig2dev"; # # Version Control in filemanagement *************** *** 336,340 **** # (this will fill the messages table and the file $tutos[errlog]) # ! $tutos[debug]=1; # # Where to put the output --- 339,343 ---- # (this will fill the messages table and the file $tutos[errlog]) # ! $tutos[debug]=0; # # Where to put the output *************** *** 362,366 **** # The TUTOS Version number # ! $tutos[version]="20010726"; # $includes[config.pinc] = 1; --- 365,369 ---- # The TUTOS Version number # ! $tutos[version]="20010808"; # $includes[config.pinc] = 1; Index: department_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/department_new.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** department_new.php 2001/07/21 16:03:33 1.5 --- department_new.php 2001/08/08 16:53:21 1.6 *************** *** 16,20 **** global $lang; - echo "<TABLE BORDER=0 CELLSPACING=0>\n"; if ( $loc != "" ) { --- 16,19 ---- *************** *** 25,28 **** --- 24,29 ---- hiddenFormElements(); echo "<INPUT type=hidden name=\"id\" value=\"". $d->id ."\">\n"; + + echo "<TABLE BORDER=0 CELLSPACING=0>\n"; echo "<TR>\n"; echo " <TH COLSPAN=5>". sprintf($lang['Showing'],$lang[$d->getType()])."</TH>\n"; *************** *** 125,136 **** echo "</TR>\n"; echo "</FORM>\n"; if ( $d->id > 0 ) { ! url_del_list($d,"department_new.php?id=".$d->id); ! url_add_form($d,"department_new.php?id=".$d->id); } - echo "</TABLE>\n"; echo $lang['FldsRequired'] ."\n"; } --- 126,136 ---- echo "</TR>\n"; + echo "</TABLE>\n"; echo "</FORM>\n"; if ( $d->id > 0 ) { ! url_form($d,"department_new.php?id=".$d->id); } echo $lang['FldsRequired'] ."\n"; } Index: mailbox_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/mailbox_overview.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** mailbox_overview.php 2001/07/26 11:36:14 1.7 --- mailbox_overview.php 2001/08/08 16:53:21 1.8 *************** *** 95,109 **** break; } if ( $search ) { $hdr = imap_header($m->mbox,$hval,FT_PEEK ); $id = $hval; $sbj = imap_mime_header_decode($hdr->subject); ! $s = $sbj[0]->text; ! $s = eregi_replace("($search)","<B>\\1</B>",$s); } else { $hdr = imap_header($m->mbox,$hkey + 1,FT_PEEK ); $id = $hkey; $sbj = imap_mime_header_decode($hdr->subject); ! $s = $sbj[0]->text; } $d = new DateTime(); --- 95,114 ---- break; } + $s = ""; if ( $search ) { $hdr = imap_header($m->mbox,$hval,FT_PEEK ); $id = $hval; $sbj = imap_mime_header_decode($hdr->subject); ! if ( count($sbj) > 0 ) { ! $s = $sbj[0]->text; ! $s = eregi_replace("($search)","<B>\\1</B>",$s); ! } } else { $hdr = imap_header($m->mbox,$hkey + 1,FT_PEEK ); $id = $hkey; $sbj = imap_mime_header_decode($hdr->subject); ! if ( count($sbj) > 0 ) { ! $s = $sbj[0]->text; ! } } $d = new DateTime(); *************** *** 125,131 **** $adr = $m->make_mailto($val); if ( isset($val->personal) ) { ! echo AsEmail($val->personal,$adr,"Re:". $s); } else { ! echo AsEmail($adr,$adr,"Re:". $s); } $pre = "<BR>\n"; --- 130,136 ---- $adr = $m->make_mailto($val); if ( isset($val->personal) ) { ! echo AsEmail($val->personal,$adr,"Re:". $s); } else { ! echo AsEmail($adr,$adr,"Re:". $s); } $pre = "<BR>\n"; Index: mytutos.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/mytutos.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** mytutos.php 2001/07/28 18:21:21 1.15 --- mytutos.php 2001/08/08 16:53:21 1.16 *************** *** 21,25 **** Function info_table_start() { # DoubleTableStart(0,1); ! echo " <TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>\n"; } Function info_table_end() { --- 21,25 ---- Function info_table_start() { # DoubleTableStart(0,1); ! echo " <TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=\"100%\">\n"; } Function info_table_end() { *************** *** 35,39 **** $ts = mktime(12,0,0,substr($t,4,2),substr($t,6,2),substr($t,0,4)); ! /* Back to last Monday before ts */ while ( Date("w",$ts) != $current_user->weekstart ) { $ts -= 86400; --- 35,39 ---- $ts = mktime(12,0,0,substr($t,4,2),substr($t,6,2),substr($t,0,4)); ! /* Back to last Monday or Sunday before ts */ while ( Date("w",$ts) != $current_user->weekstart ) { $ts -= 86400; *************** *** 135,139 **** $ts = $next; } ! echo " <TR>\n"; info_table_end(); } --- 135,139 ---- $ts = $next; } ! echo " </TR>\n"; info_table_end(); } *************** *** 451,453 **** CVS Info: $Id$ $Author$ ! --!> \ No newline at end of file --- 451,453 ---- CVS Info: $Id$ $Author$ ! --> \ No newline at end of file Index: permission.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/permission.p3,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -r1.33 -r1.34 *** permission.p3 2001/07/26 11:36:14 1.33 --- permission.p3 2001/08/08 16:53:21 1.34 *************** *** 76,80 **** while ( list ($i,$f) = @each ($HTTP_GET_VARS) ) { if ( ($i != "uname") && ($i != "pw") ) { ! echo "<INPUT type=hidden name=\"". $i ."\" value=\"". $f ."\">"; } } --- 76,80 ---- while ( list ($i,$f) = @each ($HTTP_GET_VARS) ) { if ( ($i != "uname") && ($i != "pw") ) { ! echo "<INPUT type=hidden name=\"". $i ."\" value=\"". $f ."\">"; } } *************** *** 84,88 **** while ( list ($i,$f) = @each ($HTTP_POST_VARS) ) { if ( ($i != "uname") && ($i != "pw") ) { ! echo "<INPUT type=hidden name=\"". $i ."\" value=\"". $f ."\">"; } } --- 84,88 ---- while ( list ($i,$f) = @each ($HTTP_POST_VARS) ) { if ( ($i != "uname") && ($i != "pw") ) { ! echo "<INPUT type=hidden name=\"". $i ."\" value=\"". $f ."\">"; } } *************** *** 129,133 **** @readfile ("../html/motd.html"); } ! echo "<PRE></TD></TR>\n"; DoubleTableEnd(); } --- 129,133 ---- @readfile ("../html/motd.html"); } ! echo "</PRE></TD></TR>\n"; DoubleTableEnd(); } Index: product_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_new.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** product_new.php 2001/07/28 18:21:21 1.14 --- product_new.php 2001/08/08 16:53:21 1.15 *************** *** 21,49 **** global $lang, $title, $current_user, $tutos; - echo "<TABLE BORDER=0 CELLSPACING=0>\n"; echo "<FORM action=\"product_ins.php\" method=\"POST\">\n"; hiddenFormElements(); ! echo "<TR><TH COLSPAN=4>"; ! echo "$title"; ! echo "</TH></TR>\n"; if ( $p->id > 0 ) { echo " <TR>\n"; echo " <TD COLSPAN=3>". sprintf ($lang['ProdCreation'],$p->creator->getLink(),$p->creation->getDateTime()) ."</TD>\n"; echo " <TD ALIGN=right COLSPAN=1>". acl_link($p) ."</TD>\n"; echo " </TR>\n"; } - if ( $p->id > 0 ) { - # Its an update - echo "<INPUT type=\"hidden\" value=\"$p->id\" name=\"id\">\n"; - } echo "<TR>\n"; showfieldc($lang['ProdName'],1); ! echo "<TD COLSPAN=3><INPUT SIZE=40 MAXLENGTH=40 name=\"name\" value=\"". $p->name ."\"></TD>\n"; echo "</TR>\n"; echo "<TR>\n"; showfieldc($lang['ProdVersion']); ! echo "<TD COLSPAN=3><INPUT SIZE=20 MAXLENGTH=20 name=\"version\" value=\"". $p->version ."\">\n"; echo " <B>". $lang['ProdState'] ."</B> \n"; echo "<SELECT name=\"state\">\n"; --- 21,47 ---- global $lang, $title, $current_user, $tutos; echo "<FORM action=\"product_ins.php\" method=\"POST\">\n"; hiddenFormElements(); ! if ( $p->id > 0 ) { ! echo "<INPUT type=\"hidden\" value=\"$p->id\" name=\"id\">\n"; ! } ! echo "<TABLE BORDER=0 CELLSPACING=0>\n"; ! echo " <TR><TH COLSPAN=4>". $title ."</TH></TR>\n"; if ( $p->id > 0 ) { echo " <TR>\n"; echo " <TD COLSPAN=3>". sprintf ($lang['ProdCreation'],$p->creator->getLink(),$p->creation->getDateTime()) ."</TD>\n"; echo " <TD ALIGN=right COLSPAN=1>". acl_link($p) ."</TD>\n"; + # Its an update echo " </TR>\n"; } echo "<TR>\n"; showfieldc($lang['ProdName'],1); ! echo " <TD COLSPAN=3><INPUT SIZE=40 MAXLENGTH=40 name=\"name\" value=\"". $p->name ."\"></TD>\n"; echo "</TR>\n"; echo "<TR>\n"; showfieldc($lang['ProdVersion']); ! echo " <TD COLSPAN=3><INPUT SIZE=20 MAXLENGTH=20 name=\"version\" value=\"". $p->version ."\">\n"; echo " <B>". $lang['ProdState'] ."</B> \n"; echo "<SELECT name=\"state\">\n"; *************** *** 88,92 **** echo " <TD><INPUT TYPE=checkbox NAME=del[] value=\"". $val ."\"". $p->rdel[$val] .">". $lang['Remove'] ."</TD>"; $n++; - echo " </TD>\n"; echo "</TR>\n"; } --- 86,89 ---- *************** *** 195,206 **** } echo "</TR>\n"; ! echo "</FORM>\n"; if ( $p->id != -1 ) { ! url_del_list($p,"product_new.php?id=".$p->id); ! url_add_form($p,"product_new.php?id=". $p->id); } - echo "</TABLE>\n"; echo $lang['FldsRequired'] ."\n"; } --- 192,202 ---- } echo "</TR>\n"; ! echo "</TABLE>\n"; echo "</FORM>\n"; + if ( $p->id != -1 ) { ! url_form($p,"product_new.php?id=". $p->id); } echo $lang['FldsRequired'] ."\n"; } Index: product_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_select.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** product_select.php 2001/07/21 16:03:33 1.5 --- product_select.php 2001/08/08 16:53:21 1.6 *************** *** 27,31 **** echo "</TR><TR>\n"; - echo "</TR><TR>\n"; showfieldc($lang['AdrName']); echo " <TD><CENTER><INPUT type=\"text\" value=\"\" name=\"name\"></CENTER></TD>\n"; --- 27,30 ---- *************** *** 38,42 **** echo " <TH COLSPAN=3>". $lang['SearchForProdExt'] ."</TH>\n"; - echo "</TR><TR>\n"; echo "</TR><TR>\n"; showfieldc($lang['AdrName']); --- 37,40 ---- Index: product_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_show.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** product_show.php 2001/07/28 18:21:21 1.10 --- product_show.php 2001/08/08 16:53:21 1.11 *************** *** 59,63 **** echo "<TR>\n"; echo " <TD>". $lang['createdby'] ."</TD><TD>". $p->creator->getLink() ."</TD>\n"; ! echo " <TD>". $lang['atDateTime'] ."</B></TD><TD>". $p->creation->getLinkDateTime() ."</TD>\n"; echo "</TR>\n"; --- 59,63 ---- echo "<TR>\n"; echo " <TD>". $lang['createdby'] ."</TD><TD>". $p->creator->getLink() ."</TD>\n"; ! echo " <TD>". $lang['atDateTime'] ."</TD><TD>". $p->creation->getLinkDateTime() ."</TD>\n"; echo "</TR>\n"; Index: timetrack_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/timetrack_select.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** timetrack_select.php 2001/07/21 16:03:33 1.2 --- timetrack_select.php 2001/08/08 16:53:21 1.3 *************** *** 31,35 **** echo "</TR><TR>\n"; - echo "</TR><TR>\n"; showfieldc($lang['AdrName']); --- 31,34 ---- *************** *** 44,48 **** echo "<TH COLSPAN=3>". $lang['SearchForTTExt'] ."</TH>\n"; - echo "</TR><TR>\n"; echo "</TR><TR>\n"; showfieldc($lang['AdrName']); --- 43,46 ---- Index: url.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/url.pinc,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** url.pinc 2001/07/28 18:21:21 1.17 --- url.pinc 2001/08/08 16:53:21 1.18 *************** *** 9,21 **** /* --------------------------------------------------------------------------- ! * URL list with delete link ! * obj == object parenting urls ! * gotourl == where to go after delete */ ! function url_del_list(&$obj,$gotourl) { global $lang; $obj->readUrls(); if ( isset($obj->urllist) && (count($obj->urllist) > 0) ) { echo "<TR><TH COLSPAN=4>". $lang['URLDel'] ."</TH></TR>\n"; --- 9,28 ---- /* --------------------------------------------------------------------------- ! * URL add & del form ! * obj == object parenting the new url ! * gotourl == where to go after insert */ ! function url_form(&$obj,$gotourl) { global $lang; $obj->readUrls(); + + echo "<FORM method=\"POST\" action=\"url_ins.php\">\n"; + hiddenFormElements(); + echo " <INPUT type=\"hidden\" value=\"". $obj->id ."\" name=\"link_id\">\n"; + echo " <INPUT type=\"hidden\" value=\"". $gotourl ."\" name=\"gotourl\">\n"; + echo " <TABLE BORDER=0 CELLSPACING=0>\n"; + if ( isset($obj->urllist) && (count($obj->urllist) > 0) ) { echo "<TR><TH COLSPAN=4>". $lang['URLDel'] ."</TH></TR>\n"; *************** *** 30,55 **** } } - } - /* --------------------------------------------------------------------------- - * URL add form - * obj == object parenting the new url - * gotourl == where to go after insert - */ - function url_add_form(&$obj,$gotourl) { - global $lang; ! echo "<FORM method=\"POST\" action=\"url_ins.php\">\n"; ! hiddenFormElements(); ! echo "<INPUT type=\"hidden\" value=\"". $obj->id ."\" name=\"link_id\">\n"; ! echo "<INPUT type=\"hidden\" value=\"". $gotourl ."\" name=\"gotourl\">\n"; ! echo "<TR><TH COLSPAN=4>". $lang['URLAdd'] ."</TH></TR>\n"; ! echo "<TR>\n"; showfieldc($lang['URLName'],1); ! echo " <TD COLSPAN=2><INPUT SIZE=50 MAXLENGTH=200 name=\"urlname\" value=\"\"></TD>\n"; ! echo " <TD ROWSPAN=2><CENTER><input type=\"submit\" value=\" Enter \"></CENTER></TD>\n"; ! echo "</TR><TR>\n"; showfieldc($lang['URL'],1); ! echo " <TD COLSPAN=2><INPUT SIZE=50 MAXLENGTH=200 name=\"url\" value=\"http://\"></TD>\n"; echo "</TR>\n"; echo "</FORM>\n"; } --- 37,51 ---- } } ! echo " <TR><TH COLSPAN=4>". $lang['URLAdd'] ."</TH></TR>\n"; ! echo " <TR>\n"; showfieldc($lang['URLName'],1); ! echo " <TD COLSPAN=2><INPUT SIZE=50 MAXLENGTH=200 name=\"urlname\" value=\"\"></TD>\n"; ! echo " <TD ROWSPAN=2><CENTER><input type=\"submit\" value=\" Enter \"></CENTER></TD>\n"; ! echo " </TR><TR>\n"; showfieldc($lang['URL'],1); ! echo " <TD COLSPAN=2><INPUT SIZE=50 MAXLENGTH=200 name=\"url\" value=\"http://\"></TD>\n"; echo "</TR>\n"; + echo "</TABLE>\n"; echo "</FORM>\n"; } Index: user.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/user.pinc,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -r1.34 -r1.35 *** user.pinc 2001/07/28 18:21:21 1.34 --- user.pinc 2001/08/08 16:53:21 1.35 *************** *** 179,190 **** if ( file_exists("../html/". $this->theme ."/folder.gif") ) { ! $tutos[image][folder] = "<IMG BORDER=0 SRC=\"../html/". $this->theme ."/folder.gif\">"; } else { ! $tutos[image][folder] = "<IMG BORDER=0 SRC=\"../html/folder.gif\">"; } if ( file_exists("../html/". $this->theme ."/paper.gif") ) { ! $tutos[image][paper] = "<IMG BORDER=0 SRC=\"../html/". $this->theme ."/paper.gif\">"; } else { ! $tutos[image][paper] = "<IMG BORDER=0 SRC=\"../html/paper.gif\">"; } --- 179,190 ---- if ( file_exists("../html/". $this->theme ."/folder.gif") ) { ! $tutos[image][folder] = "<IMG BORDER=0 SRC=\"../html/". $this->theme ."/folder.gif\" ALT=\"\">"; } else { ! $tutos[image][folder] = "<IMG BORDER=0 SRC=\"../html/folder.gif\" ALT=\"\">"; } if ( file_exists("../html/". $this->theme ."/paper.gif") ) { ! $tutos[image][paper] = "<IMG BORDER=0 SRC=\"../html/". $this->theme ."/paper.gif\" ALT=\"\">"; } else { ! $tutos[image][paper] = "<IMG BORDER=0 SRC=\"../html/paper.gif\" ALT=\"\">"; } Index: webelements.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/webelements.p3,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -r1.50 -r1.51 *** webelements.p3 2001/07/26 11:36:14 1.50 --- webelements.p3 2001/08/08 16:53:21 1.51 *************** *** 328,332 **** HTML_Head1($text); ! echo "<BODY MARGINWIDTH=0 MARGINHEIGHT=0>\n"; if ( ($tutos[useoverlib] == 1) && file_exists($tutos[overlib]) && is_readable($tutos[overlib]) ) { $tutos[useoverlib] = 1; --- 328,333 ---- HTML_Head1($text); ! # echo "<BODY MARGINWIDTH=0 MARGINHEIGHT=0>\n"; ! echo "<BODY>\n"; if ( ($tutos[useoverlib] == 1) && file_exists($tutos[overlib]) && is_readable($tutos[overlib]) ) { $tutos[useoverlib] = 1; *************** *** 370,374 **** echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n"; ! echo "<HTML lang=\"". $tutos[lang] ."\">\n"; echo "<!-- Copyright 1999/2000/2001 by Gero Kohnert gok...@us... -->\n"; echo "<!-- all rights reserved -->\n"; --- 371,379 ---- echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n"; ! if ( isset($tutos[lang]) && $tutos[lang] != "" ) { ! echo "<HTML lang=\"". $tutos[lang] ."\">\n"; ! } else { ! echo "<HTML>\n"; ! } echo "<!-- Copyright 1999/2000/2001 by Gero Kohnert gok...@us... -->\n"; echo "<!-- all rights reserved -->\n"; *************** *** 396,405 **** HTML_Head1($text); ! # echo "<BODY>\n"; ! echo "<BODY MARGINWIDTH=0 MARGINHEIGHT=0>\n"; if ( ($tutos[useoverlib] == 1) && file_exists($tutos[overlib]) && is_readable($tutos[overlib]) ) { $tutos[useoverlib] = 1; echo " <DIV ID=\"overDiv\" STYLE=\"position:absolute; visibility:hide; z-index:1;\"></DIV>\n"; ! echo " <SCRIPT LANGUAGE=\"JavaScript\" SRC=\"../html/overlib.js\"></SCRIPT>\n"; } else { $tutos[useoverlib] = 0; --- 401,410 ---- HTML_Head1($text); ! echo "<BODY>\n"; ! # echo "<BODY MARGINWIDTH=0 MARGINHEIGHT=0>\n"; if ( ($tutos[useoverlib] == 1) && file_exists($tutos[overlib]) && is_readable($tutos[overlib]) ) { $tutos[useoverlib] = 1; echo " <DIV ID=\"overDiv\" STYLE=\"position:absolute; visibility:hide; z-index:1;\"></DIV>\n"; ! echo " <SCRIPT LANGUAGE=\"JavaScript\" SRC=\"../html/overlib.js\" TYPE=\"text/javascript\"></SCRIPT>\n"; } else { $tutos[useoverlib] = 0; *************** *** 411,423 **** # if ( ! isset($tutos[logo]) ) { ! echo " <TD WIDTH=10% COLSPAN=2 VALIGN=center ALIGN=left> <A HREF=\"../html/copyright.html\">TUTOS</A></TD>\n"; } else { ! echo " <TD WIDTH=8% VALIGN=middle ALIGN=left><A TARGET=map HREF=\"". $tutos[logolink] ."\"><IMG HEIGHT=40 BORDER=0 SRC=\"". $tutos[logo] ."\" ALT=\"LOGO\" ALIGN=middle></A></TD>\n"; ! echo " <TD WIDTH=8% VALIGN=center ALIGN=left> <A HREF=\"../html/copyright.html\">TUTOS</A></TD>\n"; } ! echo " <TD WIDTH=60% ALIGN=center><SPAN CLASS=pagetitle>". $text ."</SPAN></TD>\n"; ! echo " <TD VALIGN=center ALIGN=right>"; ! if ( isset($lang['DateFormatPHP']) ) { ! echo Date($lang['DateFormatPHP']); } else { echo Date("l d. M Y"); --- 416,428 ---- # if ( ! isset($tutos[logo]) ) { ! echo " <TD WIDTH=16% COLSPAN=2 VALIGN=middle ALIGN=left> <A HREF=\"../html/copyright.html\">TUTOS</A></TD>\n"; } else { ! echo " <TD WIDTH=\"8%\" VALIGN=middle ALIGN=left><A TARGET=map HREF=\"". $tutos[logolink] ."\"><IMG HEIGHT=40 BORDER=0 SRC=\"". $tutos[logo] ."\" ALT=\"LOGO\" ALIGN=middle></A></TD>\n"; ! echo " <TD WIDTH=\"8%\" VALIGN=middle ALIGN=left> <A HREF=\"../html/copyright.html\">TUTOS</A></TD>\n"; } ! echo " <TD WIDTH=\"50%\" ALIGN=center><SPAN CLASS=pagetitle>". $text ."</SPAN></TD>\n"; ! echo " <TD WIDTH=\"34%\" VALIGN=middle ALIGN=right>"; ! if ( isset($lang['DateFormatTitle']) ) { ! echo strftime($lang['DateFormatTitle']); } else { echo Date("l d. M Y"); *************** *** 440,444 **** global $PHP_SELF, $current_user, $tutos, $lang; ! echo "\n<!-- --------------- Start the standard navigation --------------- -->\n"; # Check if logged in if ( $current_user->id == -1 ) { --- 445,449 ---- global $PHP_SELF, $current_user, $tutos, $lang; ! echo "\n<!-- =============== Start the standard navigation =============== -->\n"; # Check if logged in if ( $current_user->id == -1 ) { *************** *** 448,452 **** echo "</TD></TR>\n"; echo "</TABLE>\n"; ! echo "<!-- --------------- End the navigation --------------- -->\n"; return; } --- 453,457 ---- echo "</TD></TR>\n"; echo "</TABLE>\n"; ! echo "<!-- =============== End the navigation =============== -->\n"; return; } *************** *** 500,504 **** echo "<TR VALIGN=bottom><TD><HR NOSHADE SIZE=1></TD></TR>\n"; echo "<TR VALIGN=bottom>\n"; ! echo " <TD NOWARP>\n"; make_helplink(1); --- 505,509 ---- echo "<TR VALIGN=bottom><TD><HR NOSHADE SIZE=1></TD></TR>\n"; echo "<TR VALIGN=bottom>\n"; ! echo " <TD NOWRAP>\n"; make_helplink(1); *************** *** 506,511 **** if ( isset($current_user) ) { if ( $current_user->mod_ok() > 0 ) { ! echo "<BR>\n"; ! echo "<HR NOSHADE SIZE=1>\n"; echo "<FONT SIZE=-2>". makelink("mytutos.php" ,$tutos[image][user] . $current_user->getFullName(),$current_user->getFullName()) ."</FONT><BR>\n"; if ( $current_user->admin != 0 ) { --- 511,518 ---- if ( isset($current_user) ) { if ( $current_user->mod_ok() > 0 ) { ! echo "</TD></TR>\n"; ! echo "<TR VALIGN=bottom><TD><HR NOSHADE SIZE=1></TD></TR>\n"; ! echo "<TR VALIGN=bottom>\n"; ! echo " <TD NOWRAP>\n"; echo "<FONT SIZE=-2>". makelink("mytutos.php" ,$tutos[image][user] . $current_user->getFullName(),$current_user->getFullName()) ."</FONT><BR>\n"; if ( $current_user->admin != 0 ) { *************** *** 516,520 **** echo "</TD></TR>\n"; echo "</TABLE>\n"; ! echo "<!-- --------------- End the navigation --------------- -->\n"; }; /* --- 523,527 ---- echo "</TD></TR>\n"; echo "</TABLE>\n"; ! echo "<!-- =============== End the navigation =============== -->\n"; }; /* *************** *** 1309,1313 **** } else { echo "<A HREF=\"JavaScript: ! mywindow = window.open('', 'help', 'width=550,height=500,top=100,left=100,scrollbars=1'); mywindow.location.href = '". $l ."'; mywindow.focus(); --- 1316,1320 ---- } else { echo "<A HREF=\"JavaScript: ! mywindow = window.open('". $l ."', 'help', 'width=550,height=500,top=100,left=100,scrollbars=1'); mywindow.location.href = '". $l ."'; mywindow.focus(); *************** *** 1355,1359 **** } if ( $t1 < 0 ) { ! echo " <TD CLASS=\"desc\" COLSPAN=".$t1.">". $lang['InputOk'] ." </TD>\n"; } if ( $f1 > 0 ) { --- 1362,1366 ---- } if ( $t1 < 0 ) { ! echo " <TD CLASS=\"desc\" COLSPAN=". abs($t1) .">". $lang['InputOk'] ." </TD>\n"; } if ( $f1 > 0 ) { |
From: Gero K. <gok...@us...> - 2001-08-08 16:53:24
|
Update of /cvsroot/tutos/tutos In directory usw-pr-cvs1:/tmp/cvs-serv29155 Modified Files: tutos.spec Log Message: some HTML validation Index: tutos.spec =================================================================== RCS file: /cvsroot/tutos/tutos/tutos.spec,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** tutos.spec 2001/07/26 17:14:49 1.17 --- tutos.spec 2001/08/08 16:53:21 1.18 *************** *** 3,7 **** # Name: TUTOS ! Version: 20010726 Summary: the ultimate team organisation software Release: 1 --- 3,7 ---- # Name: TUTOS ! Version: 20010808 Summary: the ultimate team organisation software Release: 1 |
From: Gero K. <gok...@us...> - 2001-08-08 16:52:25
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv28937/php Modified Files: file.pinc file_new.php Log Message: new supported filetypes Index: file.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/file.pinc,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -r1.28 -r1.29 *** file.pinc 2001/07/28 18:21:21 1.28 --- file.pinc 2001/08/08 16:52:22 1.29 *************** *** 284,288 **** @readfile ($this->base ."/". $this->fileloc); return; ! } else if ( $this->filetype == "text/html" ) { Header("Expires: 0"); Header("Pragma: no-cache"); --- 284,314 ---- @readfile ($this->base ."/". $this->fileloc); return; ! } else if ( ereg("\.tar\.gz$",$this->filename) ) { ! Header("Expires: 0"); ! Header("Pragma: no-cache"); ! Header("Content-type: text/plain"); ! Header("Content-Description: ". $this->name ); ! Header("Content-Disposition: inline; filename=\"". $this->filename ."\""); ! @passthru("tar tzvf \"". $this->base ."/". $this->fileloc ."\""); ! return; ! } else if ( ereg("\.tar\.bz2$",$this->filename) ) { ! Header("Expires: 0"); ! Header("Pragma: no-cache"); ! Header("Content-type: text/plain"); ! Header("Content-Description: ". $this->name ); ! Header("Content-Disposition: inline; filename=\"". $this->filename ."\""); ! @passthru("tar tIvf \"". $this->base ."/". $this->fileloc ."\""); ! return; ! } else if ( ereg("\.fig$",$this->filename) ) { ! Header("Expires: 0"); ! Header("Pragma: no-cache"); ! Header("Content-type: image/gif"); ! Header("Content-Description: ". $this->name ); ! Header("Content-Disposition: inline; filename=\"". $this->filename ."\""); ! if ( is_executable($tutos[fig2dev])) { ! @passthru($tutos[fig2dev] ." -L gif \"". $this->base ."/". $this->fileloc ."\""); ! return; ! } ! } else if ( $this->filetype == "text/html" ) { Header("Expires: 0"); Header("Pragma: no-cache"); Index: file_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/file_new.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** file_new.php 2001/07/26 11:36:14 1.9 --- file_new.php 2001/08/08 16:52:22 1.10 *************** *** 61,65 **** echo "<BR><FONT SIZE=-1>". $f->filename ."</FONT>"; } ! echo "<BR><FONT SIZE=-1>(max. allowed size = ". ini_get('upload_max_filesize')/1024 ." KBytes)</FONT>"; echo "</TD>\n"; echo "</TR>\n"; --- 61,65 ---- echo "<BR><FONT SIZE=-1>". $f->filename ."</FONT>"; } ! echo "<BR><FONT SIZE=-1>(max. allowed size = ". ini_get('upload_max_filesize') ." Bytes)</FONT>"; echo "</TD>\n"; echo "</TR>\n"; |
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv27738/php Modified Files: db.p3 de.p3 en.p3 es.p3 fr.p3 it.p3 ko.p3 pl.p3 ru.p3 tw.p3 zh.p3 pt-br.p3 en-us.p3 Log Message: new locale handling Index: db.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/db.p3,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -r1.35 -r1.36 *** db.p3 2001/07/28 18:21:21 1.35 --- db.p3 2001/08/08 16:47:53 1.36 *************** *** 82,85 **** --- 82,86 ---- define (popinfo,75); define (weekstart,76); + define (fig2dev,77); # Permissions (see also user.pinc) Index: de.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/de.p3,v retrieving revision 1.45 retrieving revision 1.46 diff -C2 -r1.45 -r1.46 *** de.p3 2001/07/21 16:03:33 1.45 --- de.p3 2001/08/08 16:47:53 1.46 *************** *** 3,6 **** --- 3,7 ---- # $lang['content_encoding'] = "iso-8859-1"; + setlocale('LC_TIME','de_DE'); # # German Texts *************** *** 55,59 **** $lang['TimeFormat'] = "%02s:%02s"; # ! $lang['DateFormatPHP'] = "l d. M Y"; $lang['DateFormatStr'] = "%d.%m.%Y"; $lang['DateFormat'] = "%s.%s.%s"; --- 56,60 ---- $lang['TimeFormat'] = "%02s:%02s"; # ! $lang['DateFormatTitle'] = "%A, %e. %B %Y"; $lang['DateFormatStr'] = "%d.%m.%Y"; $lang['DateFormat'] = "%s.%s.%s"; Index: en.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/en.p3,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -r1.48 -r1.49 *** en.p3 2001/07/21 16:03:33 1.48 --- en.p3 2001/08/08 16:47:53 1.49 *************** *** 3,6 **** --- 3,7 ---- # $lang['content_encoding'] = "iso-8859-1"; + setlocale('LC_TIME','en_GB'); # # English Texts *************** *** 55,59 **** $lang['TimeFormat'] = "%02s:%02s"; # ! $lang['DateFormatPHP'] = "l d. M Y"; $lang['DateFormatStr'] = "%d/%m/%Y"; $lang['DateFormat'] = "%s/%s/%s"; --- 56,60 ---- $lang['TimeFormat'] = "%02s:%02s"; # ! $lang['DateFormatTitle'] = "%A, %e. %B %Y"; $lang['DateFormatStr'] = "%d/%m/%Y"; $lang['DateFormat'] = "%s/%s/%s"; Index: es.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/es.p3,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -r1.32 -r1.33 *** es.p3 2001/07/21 16:03:33 1.32 --- es.p3 2001/08/08 16:47:53 1.33 *************** *** 5,8 **** --- 5,9 ---- # $lang['content_encoding'] = "iso-8859-1"; + setlocale('LC_TIME','es_ES'); # # Espaniol Texts *************** *** 57,61 **** $lang['TimeFormat'] = "%s:%s"; # ! $lang['DateFormatPHP'] = "l d.m.Y"; $lang['DateFormatStr'] = "%d.%m.%Y"; $lang['DateFormat'] = "%s.%s.%s"; --- 58,62 ---- $lang['TimeFormat'] = "%s:%s"; # ! $lang['DateFormatTitle'] = "%A, %e. %B %Y"; $lang['DateFormatStr'] = "%d.%m.%Y"; $lang['DateFormat'] = "%s.%s.%s"; Index: fr.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/fr.p3,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -r1.31 -r1.32 *** fr.p3 2001/07/21 16:03:33 1.31 --- fr.p3 2001/08/08 16:47:53 1.32 *************** *** 3,6 **** --- 3,7 ---- # $lang['content_encoding'] = "iso-8859-1"; + setlocale('LC_TIME','fr_FR'); # # French Texts *************** *** 55,59 **** $lang['TimeFormat'] = "%02d:%02d"; # ! $lang['DateFormatPHP'] = "d.m.Y"; $lang['DateFormatStr'] = "%d.%m.%Y"; $lang['DateFormat'] = "%s.%s.%s"; --- 56,60 ---- $lang['TimeFormat'] = "%02d:%02d"; # ! $lang['DateFormatTitle'] = "%A, %e. %B %Y"; $lang['DateFormatStr'] = "%d.%m.%Y"; $lang['DateFormat'] = "%s.%s.%s"; Index: it.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/it.p3,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -r1.40 -r1.41 *** it.p3 2001/07/21 16:03:33 1.40 --- it.p3 2001/08/08 16:47:53 1.41 *************** *** 3,6 **** --- 3,7 ---- # $lang['content_encoding'] = "iso-8859-1"; + setlocale('LC_TIME','it_IT'); # # Testi in Italiano *************** *** 55,59 **** $lang['TimeFormat'] = "%02d:%02d"; # ! $lang['DateFormatPHP'] = "d.m.Y"; $lang['DateFormatStr'] = "%d.%m.%Y"; $lang['DateFormat'] = "%s.%s.%s"; --- 56,60 ---- $lang['TimeFormat'] = "%02d:%02d"; # ! $lang['DateFormatTitle'] = "%A, %e. %B %Y"; $lang['DateFormatStr'] = "%d.%m.%Y"; $lang['DateFormat'] = "%s.%s.%s"; Index: ko.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/ko.p3,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** ko.p3 2001/07/21 16:03:33 1.7 --- ko.p3 2001/08/08 16:47:53 1.8 *************** *** 3,6 **** --- 3,7 ---- # $lang['content_encoding'] = "euc-kr"; + setlocale('LC_TIME','ko_KR'); # # English Texts *************** *** 55,59 **** $lang['TimeFormat'] = "%02s:%02s"; # ! $lang['DateFormatPHP'] = "l d. M Y"; $lang['DateFormatStr'] = "%d/%m/%Y"; $lang['DateFormat'] = "%s/%s/%s"; --- 56,60 ---- $lang['TimeFormat'] = "%02s:%02s"; # ! $lang['DateFormatTitle'] = "%A, %e. %B %Y"; $lang['DateFormatStr'] = "%d/%m/%Y"; $lang['DateFormat'] = "%s/%s/%s"; Index: pl.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/pl.p3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** pl.p3 2001/07/21 16:03:33 1.4 --- pl.p3 2001/08/08 16:47:53 1.5 *************** *** 8,11 **** --- 8,12 ---- # $lang['content_encoding'] = "iso-8859-2"; + setlocale('LC_TIME','pl_PL'); # # Polish Texts *************** *** 61,65 **** $lang['TimeFormat'] = "%02s:%02s"; # ! $lang['DateFormatPHP'] = "l d. M Y"; $lang['DateFormatStr'] = "%d/%m/%Y"; $lang['DateFormat'] = "%s/%s/%s"; --- 62,66 ---- $lang['TimeFormat'] = "%02s:%02s"; # ! $lang['DateFormatTitle'] = "%A, %e. %B %Y"; $lang['DateFormatStr'] = "%d/%m/%Y"; $lang['DateFormat'] = "%s/%s/%s"; Index: ru.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/ru.p3,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -r1.26 -r1.27 *** ru.p3 2001/07/21 16:03:33 1.26 --- ru.p3 2001/08/08 16:47:53 1.27 *************** *** 55,59 **** $lang['TimeFormat'] = "%02s:%02s"; # ! $lang['DateFormatPHP'] = "d. M Y"; $lang['DateFormatStr'] = "%d/%m/%Y"; $lang['DateFormat'] = "%s/%s/%s"; --- 55,59 ---- $lang['TimeFormat'] = "%02s:%02s"; # ! $lang['DateFormatTitle'] = "%A, %e. %B %Y"; $lang['DateFormatStr'] = "%d/%m/%Y"; $lang['DateFormat'] = "%s/%s/%s"; Index: tw.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/tw.p3,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -r1.26 -r1.27 *** tw.p3 2001/07/21 16:03:33 1.26 --- tw.p3 2001/08/08 16:47:53 1.27 *************** *** 7,10 **** --- 7,11 ---- #$lang['content_encoding'] = "gb2312"; $lang['content_encoding'] = "Big5"; + setlocale('LC_TIME','zh_TW'); # # Traditional Chinese Texts *************** *** 59,63 **** $lang['TimeFormat'] = "%02d:%02d"; # ! $lang['DateFormatPHP'] = "d. M Y"; $lang['DateFormatStr'] = "%d/%m/%Y"; $lang['DateFormat'] = "%s/%s/%s"; --- 60,64 ---- $lang['TimeFormat'] = "%02d:%02d"; # ! $lang['DateFormatTitle'] = "%A, %e. %B %Y"; $lang['DateFormatStr'] = "%d/%m/%Y"; $lang['DateFormat'] = "%s/%s/%s"; Index: zh.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/zh.p3,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -r1.26 -r1.27 *** zh.p3 2001/07/21 16:03:33 1.26 --- zh.p3 2001/08/08 16:47:53 1.27 *************** *** 7,10 **** --- 7,11 ---- #$lang['content_encoding'] = "Big5"; $lang['content_encoding'] = "gb2312"; + setlocale('LC_TIME','zh_CN'); # # Traditional Chinese Texts *************** *** 59,63 **** $lang['TimeFormat'] = "%02d:%02d"; # ! $lang['DateFormatPHP'] = "d. M Y"; $lang['DateFormatStr'] = "%d/%m/%Y"; $lang['DateFormat'] = "%s/%s/%s"; --- 60,64 ---- $lang['TimeFormat'] = "%02d:%02d"; # ! $lang['DateFormatTitle'] = "%A, %e. %B %Y"; $lang['DateFormatStr'] = "%d/%m/%Y"; $lang['DateFormat'] = "%s/%s/%s"; Index: pt-br.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/pt-br.p3,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -r1.21 -r1.22 *** pt-br.p3 2001/07/21 16:03:33 1.21 --- pt-br.p3 2001/08/08 16:47:53 1.22 *************** *** 3,6 **** --- 3,7 ---- # $lang['content_encoding'] = "iso-8859-1"; + setlocale('LC_TIME','pt_BR'); # # Brazilian Portuguese Texts *************** *** 55,59 **** $lang['TimeFormat'] = "%02s:%02s"; # ! $lang['DateFormatPHP'] = "d. M Y"; $lang['DateFormatStr'] = "%d/%m/%Y"; $lang['DateFormat'] = "%s/%s/%s"; --- 56,60 ---- $lang['TimeFormat'] = "%02s:%02s"; # ! $lang['DateFormatTitle'] = "%A, %e. %B %Y"; $lang['DateFormatStr'] = "%d/%m/%Y"; $lang['DateFormat'] = "%s/%s/%s"; Index: en-us.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/en-us.p3,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** en-us.p3 2001/03/31 19:00:15 1.2 --- en-us.p3 2001/08/08 16:47:53 1.3 *************** *** 2,5 **** --- 2,6 ---- # $Id$ # + setlocale('LC_TIME','en_US'); $tutos['df'] = 1; *************** *** 16,20 **** $lang['TimeFormat'] = "%02s:%02s"; ! $lang['DateFormatPHP'] = "l M d. Y"; $lang['DateFormatStr'] = "%m/%d/%Y"; $lang['DateFormat'] = "%s/%s/%s"; --- 17,21 ---- $lang['TimeFormat'] = "%02s:%02s"; ! $lang['DateFormatTitle'] = "%A, %e. %B %Y"; $lang['DateFormatStr'] = "%m/%d/%Y"; $lang['DateFormat'] = "%s/%s/%s"; |
From: Gero K. <gok...@us...> - 2001-08-06 17:49:09
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv9930 Modified Files: product_del.php Log Message: Bugfix: Missing include for timetrack Index: product_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_del.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** product_del.php 2001/02/14 20:57:05 1.3 --- product_del.php 2001/08/06 17:49:06 1.4 *************** *** 12,15 **** --- 12,16 ---- include("product.pinc"); include("installation.pinc"); + include("timetrack.pinc"); /* Check if user is allowed to use it */ |
From: Gero K. <gok...@us...> - 2001-08-06 17:47:35
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv9431 Modified Files: mailbox.pinc Log Message: Bugfix: missing global Index: mailbox.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/mailbox.pinc,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** mailbox.pinc 2001/07/28 18:21:21 1.12 --- mailbox.pinc 2001/08/06 17:47:32 1.13 *************** *** 308,312 **** */ function save () { ! global $current_user ; $msg = ""; --- 308,312 ---- */ function save () { ! global $tutos,$current_user ; $msg = ""; |
From: Gero K. <gok...@us...> - 2001-08-01 18:34:53
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv13738 Modified Files: bug_new.php Log Message: Fixed BUG: #446784 Index: bug_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug_new.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** bug_new.php 2001/06/21 20:39:56 1.8 --- bug_new.php 2001/08/01 18:34:50 1.9 *************** *** 105,114 **** echo "<TR>\n"; showfield($lang['BugAdditional'],1); ! echo "<TD COLSPAN=3VALIGN=top><TEXTAREA wrap=hard rows=20 cols=80 name=\"description\">". $b->newdesc ."</TEXTAREA></TD>\n"; echo "<TD></TD>\n"; echo "</TR>\n"; } else { showfield($lang['BugLong'],1); ! echo " <TD COLSPAN=3VALIGN=top><TEXTAREA wrap=hard rows=20 cols=80 name=\"description\">". $b->newdesc; echo "</TEXTAREA></TD>\n"; echo " <TD></TD>\n"; --- 105,114 ---- echo "<TR>\n"; showfield($lang['BugAdditional'],1); ! echo "<TD COLSPAN=3 VALIGN=top><TEXTAREA wrap=hard rows=20 cols=80 name=\"description\">". $b->newdesc ."</TEXTAREA></TD>\n"; echo "<TD></TD>\n"; echo "</TR>\n"; } else { showfield($lang['BugLong'],1); ! echo " <TD COLSPAN=3 VALIGN=top><TEXTAREA wrap=hard rows=20 cols=80 name=\"description\">". $b->newdesc; echo "</TEXTAREA></TD>\n"; echo " <TD></TD>\n"; |
From: Gero K. <gok...@us...> - 2001-08-01 09:29:29
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv12143 Modified Files: mail.pinc Log Message: Fixed BUG: #446343 Index: mail.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/mail.pinc,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** mail.pinc 2001/06/14 19:10:24 1.12 --- mail.pinc 2001/08/01 09:29:26 1.13 *************** *** 245,249 **** */ function addBody($b,$type = "text/plain",$desc = "TUTOS Mail Part" , $dispo = "") { ! $this->body[] = $b; $this->contenttype[] = $type; $this->contentdesc[] = $desc; --- 245,253 ---- */ function addBody($b,$type = "text/plain",$desc = "TUTOS Mail Part" , $dispo = "") { ! if ( $type == "text/plain" ) { ! $this->body[] = StripSlashes($b); ! } else { ! $this->body[] = $b; ! } $this->contenttype[] = $type; $this->contentdesc[] = $desc; *************** *** 445,461 **** while ( list ($i2,$body) = @each ($this->body) ) { if ( $cnt > 1 ) { ! fputs($fd,$eoln."--". $this->boundary .$eoln); ! fputs($fd,"Content-Type: ". $this->contenttype[$i2] .$eoln); ! fputs($fd,"Content-Description: ". $this->contentdesc[$i2] .$eoln); ! fputs($fd,"Content-Transfer-Encoding: 8bit".$eoln); ! if ( $this->contentdispo[$i2] != "" ) { ! fputs($fd,"Content-Disposition: ". $this->contentdispo[$i2] .$eoln); ! } ! fputs($fd,$eoln); } # Send the body line by line $lines = split("[\n]",$body); for ($j = 0; $j < count($lines); $j++) { ! fputs($fd, $lines[$j] .$eoln); } #fputs($fd, $body .$eoln); --- 449,465 ---- while ( list ($i2,$body) = @each ($this->body) ) { if ( $cnt > 1 ) { ! fputs($fd,$eoln."--". $this->boundary .$eoln); ! fputs($fd,"Content-Type: ". $this->contenttype[$i2] .$eoln); ! fputs($fd,"Content-Description: ". $this->contentdesc[$i2] .$eoln); ! fputs($fd,"Content-Transfer-Encoding: 8bit".$eoln); ! if ( $this->contentdispo[$i2] != "" ) { ! fputs($fd,"Content-Disposition: ". $this->contentdispo[$i2] .$eoln); ! } ! fputs($fd,$eoln); } # Send the body line by line $lines = split("[\n]",$body); for ($j = 0; $j < count($lines); $j++) { ! fputs($fd, $lines[$j] .$eoln); } #fputs($fd, $body .$eoln); |
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv4342/php Modified Files: address_show.php address_tools.p3 appointment.pinc bug.pinc bug_overview.php bug_show.php calendar.php calendar_overview.php calendar_show.php company_show.php config.pinc db.p3 department_show.php file.pinc file_overview.php installation.pinc installation_ins.php installation_new.php installation_show.php mailbox.pinc mytutos.php note_overview.php product.pinc product_new.php product_show.php res_cal.php resource_overview.php scheme.php task.pinc task_new.php task_show.php url.pinc user.pinc watchlist_overview.php Log Message: Fixes for 200107?? Index: address_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/address_show.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** address_show.php 2001/07/21 16:03:33 1.9 --- address_show.php 2001/07/28 18:21:21 1.10 *************** *** 82,86 **** if ( ($current_user->p[usemailboxes] == 1) && ($tutos[usemailboxes] == 1) ) { $a->readMailboxes(); ! if ( isset($a->mboxlist) && (count($a->mboxlist) >0) ) { Show_LocFields("",$a,"mbox",0); } --- 82,86 ---- if ( ($current_user->p[usemailboxes] == 1) && ($tutos[usemailboxes] == 1) ) { $a->readMailboxes(); ! if ( count($a->mboxlist) >0 ) { Show_LocFields("",$a,"mbox",0); } *************** *** 89,93 **** if ( ($current_user->p[usecalendar] == 1) && ($tutos[usecalendar] == 1) ) { $a->readApps(); ! if ( isset($a->applist) && (count($a->applist) >0) ) { Show_LocFields("",$a,"apps",0); } --- 89,93 ---- if ( ($current_user->p[usecalendar] == 1) && ($tutos[usecalendar] == 1) ) { $a->readApps(); ! if ( count($a->applist) >0 ) { Show_LocFields("",$a,"apps",0); } *************** *** 96,100 **** if ( ($current_user->p[useinstmanagement] == 1) && ($tutos[useinstmanagement] == 1) ) { $a->readInstallations(); ! if ( isset($a->instlist) && (count($a->instlist) >0) ) { Show_LocFields("",$a,"inst",0); } --- 96,100 ---- if ( ($current_user->p[useinstmanagement] == 1) && ($tutos[useinstmanagement] == 1) ) { $a->readInstallations(); ! if ( count($a->instlist) >0 ) { Show_LocFields("",$a,"inst",0); } *************** *** 114,118 **** if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { $a->readNotes(); ! if ( isset($a->notelist) && (count($a->notelist) >0) ) { Show_LocFields("",$a,"notes",0); } --- 114,118 ---- if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { $a->readNotes(); ! if ( count($a->notelist) >0 ) { Show_LocFields("",$a,"notes",0); } Index: address_tools.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/address_tools.p3,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -r1.22 -r1.23 *** address_tools.p3 2001/07/21 16:03:33 1.22 --- address_tools.p3 2001/07/28 18:21:21 1.23 *************** *** 163,166 **** --- 163,169 ---- $atool['start'] = 0; $atool['maxshow'] = 0; + $atool['search']['name'] = ""; + $atool['search']['phone'] = ""; + $atool['search']['email'] = ""; } /* --------------------------------------------------------------------------- Index: appointment.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/appointment.pinc,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -r1.38 -r1.39 *** appointment.pinc 2001/07/21 16:03:33 1.38 --- appointment.pinc 2001/07/28 18:21:21 1.39 *************** *** 184,198 **** $obj->applist = array(); if ( $obj->getType() == "product" ) { ! $q = "SELECT * FROM calendar WHERE product = ". $obj->id ." ORDER BY a_start DESC"; } else if ( ($obj->getType() == "address") || ($obj->getType() == "user") ) { ! $q = "SELECT * FROM calendar WHERE visitor = ". $obj->id ." ORDER BY a_start DESC"; } else if ( $obj->getType() == "company" ) { ! $q = "SELECT * FROM calendar WHERE visitor = ". $obj->id ." ORDER BY a_start DESC"; } else if ( $obj->getType() == "department" ) { ! $q = "SELECT * FROM calendar WHERE visitor = ". $obj->id ." ORDER BY a_start DESC"; } else { return; } $r = @DB_Exec($obj->conn,$q); $n = DB_NumRows($r); --- 184,200 ---- $obj->applist = array(); + $q = "SELECT * FROM calendar "; if ( $obj->getType() == "product" ) { ! $q .= " WHERE product = ". $obj->id; } else if ( ($obj->getType() == "address") || ($obj->getType() == "user") ) { ! $q .= " WHERE visitor = ". $obj->id; } else if ( $obj->getType() == "company" ) { ! $q .= " WHERE visitor = ". $obj->id; } else if ( $obj->getType() == "department" ) { ! $q .= " WHERE visitor = ". $obj->id; } else { return; } + $q .= " ORDER BY a_start DESC"; $r = @DB_Exec($obj->conn,$q); $n = DB_NumRows($r); Index: bug.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug.pinc,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -r1.31 -r1.32 *** bug.pinc 2001/07/21 16:03:33 1.31 --- bug.pinc 2001/07/28 18:21:21 1.32 *************** *** 57,60 **** --- 57,61 ---- return; } + $obj->buglist = array(); $q = "SELECT * from bugs where product_id = ". $obj->id; $r = @DB_Exec($obj->conn,$q); Index: bug_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug_overview.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** bug_overview.php 2001/07/26 17:37:08 1.13 --- bug_overview.php 2001/07/28 18:21:21 1.14 *************** *** 445,448 **** --- 445,450 ---- $filter['name'] = $name; + } else { + $filter['name'] = ""; } if ( isset($id) ) { Index: bug_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug_show.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** bug_show.php 2001/07/07 19:49:27 1.8 --- bug_show.php 2001/07/28 18:21:21 1.9 *************** *** 91,95 **** if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { $b->readNotes(); ! if ( isset($b->notelist) && (count($b->notelist) > 0) ) { echo "<TR>\n"; showfield($lang['ProdNotes']); --- 91,95 ---- if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { $b->readNotes(); ! if ( count($b->notelist) > 0 ) { echo "<TR>\n"; showfield($lang['ProdNotes']); *************** *** 103,107 **** if ( ($current_user->p[usedocmanagement] == 1) && ($tutos[usedocmanagement] == 1) ) { $b->readFiles(); ! if ( isset($b->filelist) && (count($b->filelist) > 0) ) { echo "<TR>\n"; showfield($lang['ProdFiles']); --- 103,107 ---- if ( ($current_user->p[usedocmanagement] == 1) && ($tutos[usedocmanagement] == 1) ) { $b->readFiles(); ! if ( count($b->filelist) > 0 ) { echo "<TR>\n"; showfield($lang['ProdFiles']); Index: calendar.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/calendar.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** calendar.php 2001/07/21 16:03:33 1.13 --- calendar.php 2001/07/28 18:21:21 1.14 *************** *** 116,120 **** /* --------------------------------------------------------------------------- ! * Display One Weeks appointments (including s) starting with Monday * t format YYYYMMDD * --- 116,120 ---- /* --------------------------------------------------------------------------- ! * Display One Weeks appointments (including s) starting with Monday or Sunday * t format YYYYMMDD * *************** *** 130,135 **** $ts = mktime(12,0,0,substr($t,4,2),substr($t,6,2),substr($t,0,4)); ! /* Back to last Monday before ts */ ! while ( Date("D",$ts) != "Mon" ) { $ts -= 86400; } --- 130,135 ---- $ts = mktime(12,0,0,substr($t,4,2),substr($t,6,2),substr($t,0,4)); ! /* Back to last weekstart day before ts */ ! while ( Date("w",$ts) != $current_user->weekstart ) { $ts -= 86400; } *************** *** 137,141 **** $w0 = (( 1 + Date("w",mktime(12,0,0,1,1, Date("Y",$ts) ) )) % 7) > 3; $wn = sprintf("%02d", Round( (Date("z",$ts)+7 ) / 7) ); - $wx = sprintf("%s", ( (Date("z",$ts)+7 ) / 7) ); $yy = Date("y",$ts); echo " <TD VALIGN=top WIDTH=\"5%\" BGCOLOR=\"#BBCCDD\"><B>". $wn ."/". $yy ."</B></TD>\n"; --- 137,140 ---- *************** *** 168,178 **** $a = 0; ! if ( isset($current_user->callist) && (count($current_user->callist) > 0) ) { $xxx = $current_user->callist; @reset($xxx); while( list ($a,$apo) = @each ($xxx)) { ! /* if user is not interessted in - show nothing */ ! $found = 0; if ( ! isset($uids[0]) ) { @reset($apo->participant); --- 167,177 ---- $a = 0; ! if ( count($current_user->callist) > 0 ) { $xxx = $current_user->callist; @reset($xxx); while( list ($a,$apo) = @each ($xxx)) { ! /* if user is not interessted in - show nothing */ ! $found = 0; if ( ! isset($uids[0]) ) { @reset($apo->participant); *************** *** 214,218 **** if ( $hastable == 1 ) { if ( $tutos[caltable] == 2 ) { ! echo " </TABLE>\n"; echo " </TD>\n"; echo " </TR>\n"; --- 213,217 ---- if ( $hastable == 1 ) { if ( $tutos[caltable] == 2 ) { ! echo " </TABLE>\n"; echo " </TD>\n"; echo " </TR>\n"; *************** *** 375,378 **** --- 374,380 ---- echo " <TR BGCOLOR=\"#AAAACC\">\n"; echo " <TH>". $lang['week'] ."</TH>\n"; + if ( $current_user->weekstart == 0 ) { + echo " <TH>". $lang['Day0'] ."</TH>\n"; + } echo " <TH>". $lang['Day1'] ."</TH>\n"; echo " <TH>". $lang['Day2'] ."</TH>\n"; *************** *** 381,385 **** echo " <TH>". $lang['Day5'] ."</TH>\n"; echo " <TH>". $lang['Day6'] ."</TH>\n"; ! echo " <TH>". $lang['Day0'] ."</TH>\n"; $t2 = $t; --- 383,389 ---- echo " <TH>". $lang['Day5'] ."</TH>\n"; echo " <TH>". $lang['Day6'] ."</TH>\n"; ! if ( $current_user->weekstart != 0 ) { ! echo " <TH>". $lang['Day0'] ."</TH>\n"; ! } $t2 = $t; Index: calendar_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/calendar_overview.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** calendar_overview.php 2001/07/21 16:03:33 1.6 --- calendar_overview.php 2001/07/28 18:21:21 1.7 *************** *** 197,211 **** # display order # ! if ( isset($f) && isset($o) ) { ! $q .= " ORDER by " . $f; ! if ( $o == 1 ) { $q .= " ASC "; } else { $q .= " DESC "; } ! $link1 = addUrlParameter($link1,"f=".UrlEncode($f)); ! $link1 = addUrlParameter($link1,"o=". $o); ! $link2 = addUrlParameter($link2,"f=".UrlEncode($f)); ! $link2 = addUrlParameter($link2,"o=". $o); } else { $q .= " order by a_start asc"; --- 197,211 ---- # display order # ! if ( isset($xf) && isset($xo) ) { ! $q .= " ORDER by " . $xf; ! if ( $xo == 1 ) { $q .= " ASC "; } else { $q .= " DESC "; } ! $link1 = addUrlParameter($link1,"xf=".UrlEncode($xf)); ! $link1 = addUrlParameter($link1,"xo=". $xo); ! $link2 = addUrlParameter($link2,"xf=".UrlEncode($xf)); ! $link2 = addUrlParameter($link2,"xo=". $xo); } else { $q .= " order by a_start asc"; Index: calendar_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/calendar_show.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** calendar_show.php 2001/07/21 16:03:33 1.8 --- calendar_show.php 2001/07/28 18:21:21 1.9 *************** *** 146,150 **** if ( ($current_user->p[useresource] == 1) && ($tutos[useresource] == 1) ) { $a->readRes(); ! if ( isset($a->resuselist) && (count($a->resuselist) > 0) ) { @reset($a->reslist); echo "<TR>\n"; --- 146,150 ---- if ( ($current_user->p[useresource] == 1) && ($tutos[useresource] == 1) ) { $a->readRes(); ! if ( count($a->resuselist) > 0 ) { @reset($a->reslist); echo "<TR>\n"; *************** *** 161,165 **** if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { $a->readNotes(); ! if ( isset($a->notelist) && (count($a->notelist) > 0) ) { @reset($a->notelist); echo "<TR>\n"; --- 161,165 ---- if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { $a->readNotes(); ! if ( count($a->notelist) > 0 ) { @reset($a->notelist); echo "<TR>\n"; Index: company_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/company_show.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** company_show.php 2001/07/21 16:03:33 1.8 --- company_show.php 2001/07/28 18:21:21 1.9 *************** *** 87,91 **** # Links $c->readUrls(); ! if ( isset($c->urllist) && (count($c->urllist) > 0) ) { @reset($c->urllist); echo "<TR>\n"; --- 87,91 ---- # Links $c->readUrls(); ! if ( count($c->urllist) > 0 ) { @reset($c->urllist); echo "<TR>\n"; *************** *** 100,117 **** # Older Appointments ! $c->readApps(); ! if ( isset($c->applist) && (count($c->applist) > 0) ) { ! echo "<TR>\n"; ! showfield($lang['CompanyApps']); ! echo " <TD COLSPAN=". ($cols - 1) .">\n"; ! showApps($c,0,1); ! echo " </TD>\n"; ! echo "</TR>\n"; } - # Notes if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { $c->readNotes(); ! if ( isset($c->notelist) && (count($c->notelist) > 0) ) { @reset($c->notelist); echo "<TR>\n"; --- 100,118 ---- # Older Appointments ! if ( ($current_user->p[usecalendar] == 1) && ($tutos[usecalendar] == 1) ) { ! $c->readApps(); ! if ( count($c->applist) > 0 ) { ! echo "<TR>\n"; ! showfield($lang['CompanyApps']); ! echo " <TD COLSPAN=". ($cols - 1) .">\n"; ! showApps($c,0,1); ! echo " </TD>\n"; ! echo "</TR>\n"; ! } } # Notes if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { $c->readNotes(); ! if ( count($c->notelist) > 0 ) { @reset($c->notelist); echo "<TR>\n"; *************** *** 127,131 **** if ( ($current_user->p[useinstmanagement] == 1) && ($tutos[useinstmanagement] == 1) ) { $c->readInstallations(); ! if ( isset($c->instlist) && (count($c->instlist) > 0) ) { @reset($c->instlist); echo "<TR>\n"; --- 128,132 ---- if ( ($current_user->p[useinstmanagement] == 1) && ($tutos[useinstmanagement] == 1) ) { $c->readInstallations(); ! if ( count($c->instlist) > 0 ) { @reset($c->instlist); echo "<TR>\n"; *************** *** 141,145 **** if ( ($current_user->p[useprojects] == 1) && ($tutos[useprojects] == 1) ) { $c->readRoles(); ! if ( isset($c->prolist) && (count($c->prolist) > 0) ) { @reset($c->prolist); echo "<TR>\n"; --- 142,146 ---- if ( ($current_user->p[useprojects] == 1) && ($tutos[useprojects] == 1) ) { $c->readRoles(); ! if ( count($c->prolist) > 0 ) { @reset($c->prolist); echo "<TR>\n"; Index: config.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/config.pinc,v retrieving revision 1.55 retrieving revision 1.56 diff -C2 -r1.55 -r1.56 *** config.pinc 2001/07/26 17:14:49 1.55 --- config.pinc 2001/07/28 18:21:21 1.56 *************** *** 279,282 **** --- 279,289 ---- $tutos[timezones][] = "Australia/Perth"; # + # Weekstart + # Default Start of week + # 0 = Sunday + # 1 = Monday + # + $tutos[weekstart] = 0; + # # Holidays # 0 = disable set *************** *** 329,333 **** # (this will fill the messages table and the file $tutos[errlog]) # ! $tutos[debug]=0; # # Where to put the output --- 336,340 ---- # (this will fill the messages table and the file $tutos[errlog]) # ! $tutos[debug]=1; # # Where to put the output Index: db.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/db.p3,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -r1.34 -r1.35 *** db.p3 2001/07/21 16:03:33 1.34 --- db.p3 2001/07/28 18:21:21 1.35 *************** *** 81,84 **** --- 81,85 ---- define (color,74); define (popinfo,75); + define (weekstart,76); # Permissions (see also user.pinc) Index: department_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/department_show.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** department_show.php 2001/07/21 16:03:33 1.5 --- department_show.php 2001/07/28 18:21:21 1.6 *************** *** 59,63 **** if ( ($current_user->p[useprojects] == 1) && ($tutos[useprojects] == 1) ) { $d->readRoles(); ! if ( isset($d->prolist) && (count($d->prolist) > 0) ) { @reset($d->prolist); echo "<TR>\n"; --- 59,63 ---- if ( ($current_user->p[useprojects] == 1) && ($tutos[useprojects] == 1) ) { $d->readRoles(); ! if ( count($d->prolist) > 0 ) { @reset($d->prolist); echo "<TR>\n"; *************** *** 83,87 **** # Links $d->readUrls(); ! if ( isset($d->urllist) && (count($d->urllist) > 0) ) { @reset($d->urllist); echo "<TR>\n"; --- 83,87 ---- # Links $d->readUrls(); ! if ( count($d->urllist) > 0 ) { @reset($d->urllist); echo "<TR>\n"; *************** *** 98,102 **** if ( ($current_user->p[usecalendar] == 1) && ($tutos[usecalendar] == 1) ) { $d->readApps(); ! if ( isset($d->applist) && (count($d->applist) > 0) ) { echo "<TR>\n"; showfield($lang['DepartmentApps']); --- 98,102 ---- if ( ($current_user->p[usecalendar] == 1) && ($tutos[usecalendar] == 1) ) { $d->readApps(); ! if ( count($d->applist) > 0 ) { echo "<TR>\n"; showfield($lang['DepartmentApps']); *************** *** 110,114 **** if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { $d->readNotes(); ! if ( isset($d->notelist) && (count($d->notelist) > 0) ) { @reset($d->notelist); echo "<TR>\n"; --- 110,114 ---- if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { $d->readNotes(); ! if ( count($d->notelist) > 0 ) { @reset($d->notelist); echo "<TR>\n"; Index: file.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/file.pinc,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -r1.27 -r1.28 *** file.pinc 2001/07/21 16:03:33 1.27 --- file.pinc 2001/07/28 18:21:21 1.28 *************** *** 49,52 **** --- 49,54 ---- */ function readFiles(&$obj) { + $obj->filelist = array(); + if ( $obj->gettype() == "address" ) { $q = "SELECT * from files where link_id = ". $obj->id ." order by name"; Index: file_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/file_overview.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** file_overview.php 2001/07/21 16:03:33 1.5 --- file_overview.php 2001/07/28 18:21:21 1.6 *************** *** 106,118 **** # sorting ! if ( isset($f) && isset($o) ) { ! $q .= " ORDER by " . $f; ! if ( $o == 1 ) { $q .= " ASC "; } else { $q .= " DESC "; } ! $link1 = addUrlParameter($link1,"f=".UrlEncode($f)); ! $link1 = addUrlParameter($link1,"o=". $o); } else { $q .= " ORDER by name"; --- 106,118 ---- # sorting ! if ( isset($xf) && isset($xo) ) { ! $q .= " ORDER by " . $xf; ! if ( $xo == 1 ) { $q .= " ASC "; } else { $q .= " DESC "; } ! $link1 = addUrlParameter($link1,"xf=".UrlEncode($xf)); ! $link1 = addUrlParameter($link1,"xo=". $xo); } else { $q .= " ORDER by name"; Index: installation.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/installation.pinc,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -r1.20 -r1.21 *** installation.pinc 2001/07/21 16:03:33 1.20 --- installation.pinc 2001/07/28 18:21:21 1.21 *************** *** 58,61 **** --- 58,63 ---- } + $obj->instlist = array(); + if ( $obj->getType() == "product" ) { $q = "SELECT * from installations where product_id = ". $obj->id ." order by instdate desc"; Index: installation_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/installation_ins.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** installation_ins.php 2001/02/14 20:57:05 1.3 --- installation_ins.php 2001/07/28 18:21:21 1.4 *************** *** 54,58 **** if ( $msg != "" ) { $gotourl= addUrlParameter($gotourl,"pid=". $pid); ! $gotourl= addUrlParameter($gotourl,"money=". $money); $gotourl= addUrlParameter($gotourl,"currency=". UrlEncode($currency)); } else { --- 54,58 ---- if ( $msg != "" ) { $gotourl= addUrlParameter($gotourl,"pid=". $pid); ! $gotourl= addUrlParameter($gotourl,"money=". UrlEncode($money)); $gotourl= addUrlParameter($gotourl,"currency=". UrlEncode($currency)); } else { Index: installation_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/installation_new.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** installation_new.php 2001/02/23 17:25:26 1.4 --- installation_new.php 2001/07/28 18:21:21 1.5 *************** *** 123,127 **** $i->currency = $i->product->currency; } ! # Installer --- 123,132 ---- $i->currency = $i->product->currency; } ! if ( isset($money) ) { ! $i->money = $money; ! } ! if ( isset($currency) ) { ! $i->currency = $currency; ! } # Installer Index: installation_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/installation_show.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** installation_show.php 2001/07/21 16:03:33 1.5 --- installation_show.php 2001/07/28 18:21:21 1.6 *************** *** 67,71 **** if ( ($current_user->p[usebugtracking] == 1) && ($tutos[usebugtracking] == 1) ) { $i->readBugs(); ! if ( isset($i->buglist) && (count($i->buglist) >0) ) { echo "<TR>\n"; showfield($lang['Bugs']); --- 67,71 ---- if ( ($current_user->p[usebugtracking] == 1) && ($tutos[usebugtracking] == 1) ) { $i->readBugs(); ! if ( count($i->buglist) >0 ) { echo "<TR>\n"; showfield($lang['Bugs']); *************** *** 90,94 **** if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { $i->readNotes(); ! if ( isset($i->notelist) && (count($i->notelist) > 0) ) { @reset($i->notelist); echo "<TR>\n"; --- 90,94 ---- if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { $i->readNotes(); ! if ( count($i->notelist) > 0 ) { @reset($i->notelist); echo "<TR>\n"; *************** *** 103,107 **** if ( ($current_user->p[usedocmanagement] == 1) && ($tutos[usedocmanagement] == 1) ) { $i->readFiles(); ! if ( isset($i->filelist) && (count($i->filelist) > 0) ) { @reset($i->filelist); echo "<TR>\n"; --- 103,107 ---- if ( ($current_user->p[usedocmanagement] == 1) && ($tutos[usedocmanagement] == 1) ) { $i->readFiles(); ! if ( count($i->filelist) > 0 ) { @reset($i->filelist); echo "<TR>\n"; Index: mailbox.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/mailbox.pinc,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** mailbox.pinc 2001/06/22 20:19:07 1.11 --- mailbox.pinc 2001/07/28 18:21:21 1.12 *************** *** 17,20 **** --- 17,21 ---- return; } + $obj->mboxlist = array(); $q = "SELECT * from mailboxes where link_id = ". $obj->id; $r = @DB_Exec($obj->conn,$q); Index: mytutos.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/mytutos.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** mytutos.php 2001/07/26 17:14:49 1.14 --- mytutos.php 2001/07/28 18:21:21 1.15 *************** *** 36,40 **** /* Back to last Monday before ts */ ! while ( Date("D",$ts) != "Mon" ) { $ts -= 86400; } --- 36,40 ---- /* Back to last Monday before ts */ ! while ( Date("w",$ts) != $current_user->weekstart ) { $ts -= 86400; } *************** *** 42,46 **** $w0 = (( 1 + Date("w",mktime(12,0,0,1,1, Date("Y",$ts) ) )) % 7) > 3; $wn = sprintf("%02d", Round( (Date("z",$ts)+7 ) / 7) ); - $wx = sprintf("%s", ( (Date("z",$ts)+7 ) / 7) ); $yy = Date("y",$ts); --- 42,45 ---- *************** *** 48,51 **** --- 47,53 ---- echo " <TR BGCOLOR=\"#AAAACC\">\n"; echo " <TH>". $lang['week'] ."</TH>\n"; + if ( $current_user->weekstart == 0 ) { + echo " <TH>". $lang['Day0'] ."</TH>\n"; + } echo " <TH>". $lang['Day1'] ."</TH>\n"; echo " <TH>". $lang['Day2'] ."</TH>\n"; *************** *** 54,58 **** echo " <TH>". $lang['Day5'] ."</TH>\n"; echo " <TH>". $lang['Day6'] ."</TH>\n"; ! echo " <TH>". $lang['Day0'] ."</TH>\n"; echo " </TR>\n"; --- 56,62 ---- echo " <TH>". $lang['Day5'] ."</TH>\n"; echo " <TH>". $lang['Day6'] ."</TH>\n"; ! if ( $current_user->weekstart != 0 ) { ! echo " <TH>". $lang['Day0'] ."</TH>\n"; ! } echo " </TR>\n"; *************** *** 83,87 **** $hastable = 0; ! if ( isset($current_user->callist) && (count($current_user->callist) > 0) ) { $xxx = $current_user->callist; @reset($xxx); --- 87,91 ---- $hastable = 0; ! if ( count($current_user->callist) > 0 ) { $xxx = $current_user->callist; @reset($xxx); *************** *** 89,126 **** # Check if appointment is displayed if ( $apo->gettype() == "appointment" ) { ! $found = 0; ! @reset($apo->participant); ! while ( ($found == 0) && (list ($i,$f) = @each ($apo->participant)) ) { ! if ( $f->id == $adr->id ) { ! $found = 1; ! } else { ! $xx = $adr->teamids; ! @reset($xx); ! while ( list ($i2,$f2) = @each ($xx) ) { ! if ( $f->id == $i2 ) { $found = 1; } ! } ! } ! } ! if ( $found == 0 ) { ! continue; ! } ! } ! # Do not show finished tasks ! if ( ($apo->gettype() == "task") && ($apo->state == 2) ) { ! continue; ! } ! if ( $hastable == 0 ) { ! echo " <TABLE BGCOLOR=\"white\" CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=\"100%\">\n"; ! $hastable = 1; ! } else { ! echo " <TR><TD CLASS=app COLSPAN=3><FONT COLOR=black SIZE=-5><HR NOSHADE SIZE=1></FONT></TD></TR>\n"; ! } ! # Show appointments or task ! $apo->formatted(); } } ! if ( $hastable == 1 ) { echo " </TABLE>\n"; --- 93,130 ---- # Check if appointment is displayed if ( $apo->gettype() == "appointment" ) { ! $found = 0; ! @reset($apo->participant); ! while ( ($found == 0) && (list ($i,$f) = @each ($apo->participant)) ) { ! if ( $f->id == $adr->id ) { $found = 1; + } else { + $xx = $adr->teamids; + @reset($xx); + while ( list ($i2,$f2) = @each ($xx) ) { + if ( $f->id == $i2 ) { + $found = 1; + } + } } ! } ! if ( $found == 0 ) { ! continue; ! } ! } ! // Do not show finished tasks ! if ( ($apo->gettype() == "task") && ($apo->state == 2) ) { ! continue; ! } ! if ( $hastable == 0 ) { ! echo " <TABLE BGCOLOR=\"white\" CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=\"100%\">\n"; ! $hastable = 1; ! } else { ! echo " <TR><TD CLASS=app COLSPAN=3><FONT COLOR=black SIZE=-5><HR NOSHADE SIZE=1></FONT></TD></TR>\n"; ! } ! // Show appointments or task ! $apo->formatted(); } } ! if ( $hastable == 1 ) { echo " </TABLE>\n"; Index: note_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/note_overview.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** note_overview.php 2001/07/21 16:03:33 1.4 --- note_overview.php 2001/07/28 18:21:21 1.5 *************** *** 286,300 **** # sorting ! if ( isset($f) && isset($o) ) { ! $q .= " ORDER by " . $f; ! if ( $o == 1 ) { $q .= " ASC "; } else { $q .= " DESC "; } ! $link1 = addUrlParameter($link1,"f=".UrlEncode($f)); ! $link1 = addUrlParameter($link1,"o=". $o); ! $link2 = addUrlParameter($link2,"f=".UrlEncode($f)); ! $link2 = addUrlParameter($link2,"o=". $o); } else { $q .= " ORDER by notes.creation DESC"; --- 286,300 ---- # sorting ! if ( isset($xf) && isset($xo) ) { ! $q .= " ORDER by " . $xf; ! if ( $xo == 1 ) { $q .= " ASC "; } else { $q .= " DESC "; } ! $link1 = addUrlParameter($link1,"xf=".UrlEncode($xf)); ! $link1 = addUrlParameter($link1,"xo=". $xo); ! $link2 = addUrlParameter($link2,"xf=".UrlEncode($xf)); ! $link2 = addUrlParameter($link2,"xo=". $xo); } else { $q .= " ORDER by notes.creation DESC"; Index: product.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/product.pinc,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -r1.31 -r1.32 *** product.pinc 2001/07/21 16:03:33 1.31 --- product.pinc 2001/07/28 18:21:21 1.32 *************** *** 150,153 **** --- 150,159 ---- return; } + if ( !empty($typ) ) { + $obj->prolist[$typ] = array(); + } else { + $obj->prolist = array(); + } + $q = "SELECT * from products"; $q1 = "SELECT pro_id,role_id FROM projectroles"; Index: product_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_new.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** product_new.php 2001/07/21 16:03:33 1.13 --- product_new.php 2001/07/28 18:21:21 1.14 *************** *** 19,23 **** */ Function info($p) { ! global $lang, $title, $current_user; echo "<TABLE BORDER=0 CELLSPACING=0>\n"; --- 19,23 ---- */ Function info($p) { ! global $lang, $title, $current_user, $tutos; echo "<TABLE BORDER=0 CELLSPACING=0>\n"; *************** *** 170,187 **** if ( $p->id > 0 ) { ! $p->readMailboxes(); ! echo "<TR>\n"; ! showfield($lang['ProdMailbox']); ! echo " <TD COLSPAN=3>\n"; ! if ( isset($p->mboxlist) && (count($p->mboxlist) >0) ) { ! @reset($p->mboxlist); ! while ( list ($i,$f) = @each ($p->mboxlist) ) { ! echo "". makelink("mailbox_new.php?id=". $i, $lang['Change'] ." ". $f->getFullName()) ."<BR>\n"; ! } ! } ! echo "". makelink("mailbox_new.php?id=-1&parent=". $p->id, $lang['NewEntry']) ."<BR>\n"; ! echo " </TD>\n"; ! ! echo "</TR>\n"; } --- 170,189 ---- if ( $p->id > 0 ) { ! if ( ($current_user->p[usemailboxes] == 1) && ($tutos[usemailboxes] == 1) ) { ! $p->readMailboxes(); ! echo "<TR>\n"; ! showfield($lang['ProdMailbox']); ! echo " <TD COLSPAN=3>\n"; ! if ( count($p->mboxlist) >0 ) { ! @reset($p->mboxlist); ! while ( list ($i,$f) = @each ($p->mboxlist) ) { ! echo "". makelink("mailbox_new.php?id=". $i, $lang['Change'] ." ". $f->getFullName()) ."<BR>\n"; ! } ! } ! echo "". makelink("mailbox_new.php?id=-1&parent=". $p->id, $lang['NewEntry']) ."<BR>\n"; ! echo " </TD>\n"; ! ! echo "</TR>\n"; ! } } Index: product_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_show.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** product_show.php 2001/07/21 16:03:33 1.9 --- product_show.php 2001/07/28 18:21:21 1.10 *************** *** 149,176 **** } ! $p->readMailboxes(); ! if ( isset($p->mboxlist) && (count($p->mboxlist) >0) ) { ! echo "<TR>\n"; ! showfield($lang['ProdMailbox']); ! echo " <TD COLSPAN=3>\n"; ! @reset($p->mboxlist); ! while ( list ($i,$f) = @each ($p->mboxlist) ) { ! echo $f->getLink() . "<BR>\n"; ! } ! ! echo " </TD>\n"; ! echo "</TR>\n"; } if ( ($current_user->p[useinstmanagement] == 1) && ($tutos[useinstmanagement] == 1) ) { $p->readInstallations(); ! if ( isset($p->instlist) && (count($p->instlist) >0) ) { echo "<TR>\n"; showfield($lang['Installations']); echo " <TD VALIGN=top COLSPAN=3>"; if ( $format == "paper" ) { ! showInstallations($p,0,1,-1); } else { ! showInstallations($p,0,1); } echo "</TD>\n"; --- 149,177 ---- } ! if ( ($current_user->p[usemailboxes] == 1) && ($tutos[usemailboxes] == 1) ) { ! $p->readMailboxes(); ! if ( count($p->mboxlist) >0 ) { ! echo "<TR>\n"; ! showfield($lang['ProdMailbox']); ! echo " <TD COLSPAN=3>\n"; ! @reset($p->mboxlist); ! while ( list ($i,$f) = @each ($p->mboxlist) ) { ! echo $f->getLink() . "<BR>\n"; ! } ! echo " </TD>\n"; ! echo "</TR>\n"; ! } } if ( ($current_user->p[useinstmanagement] == 1) && ($tutos[useinstmanagement] == 1) ) { $p->readInstallations(); ! if ( count($p->instlist) >0 ) { echo "<TR>\n"; showfield($lang['Installations']); echo " <TD VALIGN=top COLSPAN=3>"; if ( $format == "paper" ) { ! showInstallations($p,0,1,-1); } else { ! showInstallations($p,0,1); } echo "</TD>\n"; *************** *** 180,184 **** if ( ($current_user->p[usebugtracking] == 1) && ($tutos[usebugtracking] == 1) ) { $p->readBugs(); ! if ( isset($p->buglist) && (count($p->buglist) >0) ) { echo "<TR>\n"; showfield($lang['Bugs']); --- 181,185 ---- if ( ($current_user->p[usebugtracking] == 1) && ($tutos[usebugtracking] == 1) ) { $p->readBugs(); ! if ( count($p->buglist) >0 ) { echo "<TR>\n"; showfield($lang['Bugs']); *************** *** 189,193 **** $p->readUrls(); ! if ( isset($p->urllist) && (count($p->urllist) >0) ) { echo "<TR>\n"; showfield($lang['ProdLinks']); --- 190,194 ---- $p->readUrls(); ! if ( count($p->urllist) >0 ) { echo "<TR>\n"; showfield($lang['ProdLinks']); *************** *** 203,216 **** if ( ($current_user->p[usecalendar] == 1) && ($tutos[usecalendar] == 1) ) { $p->readApps(); ! if ( isset($p->applist) && (count($p->applist) >0) ) { echo "<TR>\n"; showfield($lang['ProdApps']); echo " <TD VALIGN=top COLSPAN=3>\n"; if ( $format == "paper" ) { ! showApps($p,0,2,-1); } else { ! showApps($p,0,2); } ! echo "</TD>\n"; echo "</TR>\n"; } --- 204,217 ---- if ( ($current_user->p[usecalendar] == 1) && ($tutos[usecalendar] == 1) ) { $p->readApps(); ! if ( count($p->applist) >0 ) { echo "<TR>\n"; showfield($lang['ProdApps']); echo " <TD VALIGN=top COLSPAN=3>\n"; if ( $format == "paper" ) { ! showApps($p,0,2,-1); } else { ! showApps($p,0,2); } ! echo " </TD>\n"; echo "</TR>\n"; } *************** *** 219,223 **** if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { $p->readNotes(); ! if ( isset($p->notelist) && (count($p->notelist) >0) ) { @reset($p->notelist); echo "<TR>\n"; --- 220,224 ---- if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { $p->readNotes(); ! if ( count($p->notelist) >0 ) { @reset($p->notelist); echo "<TR>\n"; *************** *** 225,231 **** echo " <TD VALIGN=top COLSPAN=3>\n"; if ( $format == "paper" ) { ! showNotes($p,0,-1); } else { ! showNotes($p,0); } echo " </TD>\n"; --- 226,232 ---- echo " <TD VALIGN=top COLSPAN=3>\n"; if ( $format == "paper" ) { ! showNotes($p,0,-1); } else { ! showNotes($p,0); } echo " </TD>\n"; *************** *** 236,240 **** if ( ($current_user->p[usedocmanagement] == 1) && ($tutos[usedocmanagement] == 1) ) { $p->readFiles(); ! if ( isset($p->filelist) && (count($p->filelist) >0) ) { @reset($p->filelist); echo "<TR>\n"; --- 237,241 ---- if ( ($current_user->p[usedocmanagement] == 1) && ($tutos[usedocmanagement] == 1) ) { $p->readFiles(); ! if ( count($p->filelist) >0 ) { @reset($p->filelist); echo "<TR>\n"; *************** *** 242,250 **** echo " <TD VALIGN=top COLSPAN=3>\n"; if ( $format == "paper" ) { ! showFiles($p,-1); } else { ! showFiles($p); } ! echo "</TD>\n"; echo "</TR>\n"; } --- 243,251 ---- echo " <TD VALIGN=top COLSPAN=3>\n"; if ( $format == "paper" ) { ! showFiles($p,-1); } else { ! showFiles($p); } ! echo " </TD>\n"; echo "</TR>\n"; } *************** *** 253,257 **** if ( ($current_user->p[usetaskmanagement] == 1) && ($tutos[usetaskmanagement] == 1) ) { $p->readTasks(); ! if ( isset($p->tasklist) && (count($p->tasklist) >0) ) { @reset($p->tasklist); echo "<TR>\n"; --- 254,258 ---- if ( ($current_user->p[usetaskmanagement] == 1) && ($tutos[usetaskmanagement] == 1) ) { $p->readTasks(); ! if ( count($p->tasklist) >0 ) { @reset($p->tasklist); echo "<TR>\n"; *************** *** 264,281 **** if ( $format == "paper" ) { ! $rows = count($p->tasklist); } else { ! $rows = $tutos[maxshort]; } while ( list ($i,$f) = @each ($p->tasklist) ) { ! if ( ($n >= $rows) && ( $x != $rows ) ) { ! echo $tutos[image][folder] ." ". makelink("task_overview.php?id=". $p->id,sprintf($lang['AllEntries'], count($p->tasklist))); ! break; ! } ! echo $tutos[image][paper] ." ". $f->getLink() ."<BR>\n"; ! $n++; } ! echo "</TD>\n"; echo "</TR>\n"; } --- 265,282 ---- if ( $format == "paper" ) { ! $rows = count($p->tasklist); } else { ! $rows = $tutos[maxshort]; } while ( list ($i,$f) = @each ($p->tasklist) ) { ! if ( ($n >= $rows) && ( $x != $rows ) ) { ! echo $tutos[image][folder] ." ". makelink("task_overview.php?id=". $p->id,sprintf($lang['AllEntries'], count($p->tasklist))); ! break; ! } ! echo $tutos[image][paper] ." ". $f->getLink() ."<BR>\n"; ! $n++; } ! echo " </TD>\n"; echo "</TR>\n"; } Index: res_cal.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/res_cal.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** res_cal.php 2001/06/18 14:43:10 1.8 --- res_cal.php 2001/07/28 18:21:21 1.9 *************** *** 291,294 **** --- 291,297 ---- $uids[$base->id] = $base; } + } else { + $base = $current_user; + $uids[$base->id] = $base; } Index: resource_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/resource_overview.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** resource_overview.php 2001/04/08 07:23:19 1.2 --- resource_overview.php 2001/07/28 18:21:21 1.3 *************** *** 23,27 **** echo "<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0>\n"; echo "<TR>\n"; ! echo " <TH>". $lang['ResName'] ."</TH><TH>". $lang['ResDesc'] ."</TH>\n"; echo "</TR>\n"; --- 23,28 ---- echo "<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0>\n"; echo "<TR>\n"; ! echo order_header("name",$lang['ResName']); ! echo order_header("",$lang['ResDesc']); echo "</TR>\n"; *************** *** 95,110 **** $link1 = "resource_overview.php"; ! $query = "SELECT * FROM resources"; ! $pre = "WHERE"; if ( isset($name) && ($name != "*") && ($name != "") ) { ! $query = "$query $pre". DB_Like("name",$name); ! $pre = "AND"; $link1 = addUrlParameter($link1,"name=". UrlEncode($name)); } ! $query = " $query ORDER by name"; ! $result = @DB_Exec($conn,$query); if ( (! isset($start)) || ($start < 0) ) { --- 96,123 ---- $link1 = "resource_overview.php"; ! $q = "SELECT * FROM resources"; ! $pre = " WHERE "; if ( isset($name) && ($name != "*") && ($name != "") ) { ! $q .= $pre . DB_Like("name",$name); ! $pre = " AND "; $link1 = addUrlParameter($link1,"name=". UrlEncode($name)); } ! # sorting ! if ( isset($xf) && isset($xo) ) { ! $q .=" ORDER by " . $xf; ! if ( $xo == 1 ) { ! $q .= " ASC "; ! } else { ! $q .= " DESC "; ! } ! $link1 = addUrlParameter($link1,"xf=".UrlEncode($f)); ! $link1 = addUrlParameter($link1,"xo=". $o); ! } else { ! $q .= " ORDER by name"; ! } ! $result = @DB_Exec($conn,$q); if ( (! isset($start)) || ($start < 0) ) { Index: scheme.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/scheme.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** scheme.php 2001/07/07 19:49:27 1.1 --- scheme.php 2001/07/28 18:21:21 1.2 *************** *** 63,73 **** $r = @DB_Exec($conn,$q,0); if ( $r == "" ) { ! echo "<FONT COLOR=red>". DB_Error() ." ". $r ."</FONT><BR>\n"; ! flush(); ! DB_Abort($conn,"WORK"); ! return; } } $q = "create sequence id start 1000"; $r = @DB_Exec($conn,$q,0); DB_Commit($conn,"WORK"); --- 63,81 ---- $r = @DB_Exec($conn,$q,0); if ( $r == "" ) { ! echo "<FONT COLOR=red>". DB_Error() ." ". $r ."</FONT><BR>\n"; ! flush(); ! DB_Abort($conn,"WORK"); ! return; } } $q = "create sequence id start 1000"; + $r = @DB_Exec($conn,$q,0); + DB_Commit($conn,"WORK"); + } + if ( $dbtype[typ] == 2) { + DB_Begin($conn,"WORK"); + $q = "create table id (nextval int not null);"; + $r = @DB_Exec($conn,$q,0); + $q = "insert into id values (1000);"; $r = @DB_Exec($conn,$q,0); DB_Commit($conn,"WORK"); Index: task.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/task.pinc,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -r1.23 -r1.24 *** task.pinc 2001/07/26 11:36:14 1.23 --- task.pinc 2001/07/28 18:21:21 1.24 *************** *** 720,724 **** $this->readTasks(); if ( isset($this->tasklist) && (count($this->tasklist) > 0) ) { ! @reset($this->tasklist); while ( list ($i,$f) = @each ($this->tasklist) ) { $f->printRow($depth +1,$parent); --- 720,724 ---- $this->readTasks(); if ( isset($this->tasklist) && (count($this->tasklist) > 0) ) { ! @reset($this->tasklist); while ( list ($i,$f) = @each ($this->tasklist) ) { $f->printRow($depth +1,$parent); Index: task_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_new.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** task_new.php 2001/07/21 16:03:33 1.8 --- task_new.php 2001/07/28 18:21:21 1.9 *************** *** 57,63 **** showfieldc($lang['TaskSubTask']); echo " <TD>". $t->parent->getLink()."</TD>\n"; - echo " <INPUT type=hidden name=p_id value=\"". $t->p_id ."\">\n"; echo " </TR>\n"; } echo " <TR>\n"; showfield($lang['TaskDesc'],1); --- 57,63 ---- showfieldc($lang['TaskSubTask']); echo " <TD>". $t->parent->getLink()."</TD>\n"; echo " </TR>\n"; } + echo " <INPUT type=hidden name=p_id value=\"". $t->p_id ."\">\n"; echo " <TR>\n"; showfield($lang['TaskDesc'],1); Index: task_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_show.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** task_show.php 2001/07/21 16:03:33 1.5 --- task_show.php 2001/07/28 18:21:21 1.6 *************** *** 92,96 **** if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { $t->readNotes(); ! if ( isset($t->notelist) && (count($t->notelist) > 0) ) { @reset($t->notelist); echo "<TR>\n"; --- 92,96 ---- if ( ($current_user->p[usenotes] == 1) && ($tutos[usenotes] == 1) ) { $t->readNotes(); ! if ( count($t->notelist) > 0 ) { @reset($t->notelist); echo "<TR>\n"; *************** *** 104,108 **** if ( ($current_user->p[usebugtracking] == 1) && ($tutos[usebugtracking] == 1) ) { $t->readBugs(); ! if ( isset($t->buglist) && (count($t->buglist) > 0) ) { echo "<TR>\n"; showfield($lang['Bugs']); --- 104,108 ---- if ( ($current_user->p[usebugtracking] == 1) && ($tutos[usebugtracking] == 1) ) { $t->readBugs(); ! if ( count($t->buglist) > 0 ) { echo "<TR>\n"; showfield($lang['Bugs']); *************** *** 113,117 **** $t->readTasks(); ! if ( isset($t->tasklist) && (count($t->tasklist) > 0) ) { @reset($t->tasklist); echo "<TR>\n"; --- 113,117 ---- $t->readTasks(); ! if ( count($t->tasklist) > 0 ) { @reset($t->tasklist); echo "<TR>\n"; *************** *** 127,131 **** $n++; } ! echo "</TD>\n"; echo "</TR>\n"; } --- 127,131 ---- $n++; } ! echo " </TD>\n"; echo "</TR>\n"; } Index: url.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/url.pinc,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** url.pinc 2001/06/22 20:19:07 1.16 --- url.pinc 2001/07/28 18:21:21 1.17 *************** *** 58,62 **** */ function readUrls(&$obj) { ! $q = "SELECT * from urls where link_id = $obj->id order by name"; $r = @DB_Exec($obj->conn,$q); $n = DB_NumRows($r); --- 58,64 ---- */ function readUrls(&$obj) { ! ! $obj->urllist = array(); ! $q = "SELECT * from urls where link_id = ". $obj->id ." order by name"; $r = @DB_Exec($obj->conn,$q); $n = DB_NumRows($r); *************** *** 68,72 **** $a++; } - # echo "$a $n obj->urllist is " . gettype($obj->urllist) ." ". count($obj->urllist) . "<BR>\n"; return; } --- 70,73 ---- Index: user.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/user.pinc,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -r1.33 -r1.34 *** user.pinc 2001/07/21 16:03:33 1.33 --- user.pinc 2001/07/28 18:21:21 1.34 *************** *** 62,65 **** --- 62,67 ---- } } + // Start of week + $this->weekstart = $tutos[weekstart]; } /* --------------------------------------------------------------------------- Index: watchlist_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/watchlist_overview.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** watchlist_overview.php 2001/07/21 16:03:33 1.3 --- watchlist_overview.php 2001/07/28 18:21:21 1.4 *************** *** 40,47 **** echo "<TABLE BORDER=1 CELLPADDING=3 CELLSPACING=0>\n"; echo "<TR>\n"; ! echo " <TH NOWRAP>Typ</TH>\n"; ! echo " <TH NOWRAP>ID</TH>\n"; ! echo " <TH NOWRAP>". $lang['Watcher'] ."</TH>\n"; ! echo " <TH NOWRAP> </TH>\n"; echo "</TR>\n"; --- 40,47 ---- echo "<TABLE BORDER=1 CELLPADDING=3 CELLSPACING=0>\n"; echo "<TR>\n"; ! echo order_header("","Typ"); ! echo order_header("","ID"); ! echo order_header("adr_id",$lang['Watcher']); ! echo order_header(""," "); echo "</TR>\n"; *************** *** 131,143 **** # sorting ! if ( isset($f) && isset($o) ) { ! $q .=" ORDER by " . $f; ! if ( $o == 1 ) { $q .= " ASC "; } else { $q .= " DESC "; } ! $link1 = addUrlParameter($link1,"f=".UrlEncode($f)); ! $link1 = addUrlParameter($link1,"o=". $o); } else { $q .= " ORDER by obj_id"; --- 131,143 ---- # sorting ! if ( isset($xf) && isset($xo) ) { ! $q .=" ORDER by " . $xf; ! if ( $xo == 1 ) { $q .= " ASC "; } else { $q .= " DESC "; } ! $link1 = addUrlParameter($link1,"xf=".UrlEncode($f)); ! $link1 = addUrlParameter($link1,"xo=". $o); } else { $q .= " ORDER by obj_id"; |
From: Gero K. <gok...@us...> - 2001-07-28 18:21:23
|
Update of /cvsroot/tutos/tutos In directory usw-pr-cvs1:/tmp/cvs-serv4342 Modified Files: ChangeLog Log Message: Fixes for 200107?? Index: ChangeLog =================================================================== RCS file: /cvsroot/tutos/tutos/ChangeLog,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -r1.54 -r1.55 *** ChangeLog 2001/07/26 17:14:49 1.54 --- ChangeLog 2001/07/28 18:21:20 1.55 *************** *** 1,5 **** $Header$ July 26 2001 ! * RELEASE 20010726 July 22 2001 * new: task creation on the mytutos page. This is a first step towards a new ToDO --- 1,10 ---- $Header$ + July 28 2001 + * fixed display order change machanism in file and appointment overviews + * new weekstart config parameter. Weeks can start on Sunday or Monday. See config.pinc + * fixed personal tasks creation; + * fixed missing sequencer for MySQL in the easy install routine (scheme.php) July 26 2001 ! * RELEASE 20010726 ( with a lot of file corruption problems on sourceforge ) July 22 2001 * new: task creation on the mytutos page. This is a first step towards a new ToDO |
From: Gero K. <gok...@us...> - 2001-07-26 17:37:11
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv8299/php Modified Files: bug_overview.php Log Message: Last small fixc before release Index: bug_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug_overview.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** bug_overview.php 2001/07/21 16:03:33 1.12 --- bug_overview.php 2001/07/26 17:37:08 1.13 *************** *** 98,102 **** if ( ( $a < $n ) || ( $start != 0 ) ) { echo "<TR>\n"; ! echo " <TH COLSPAN=7>\n"; if ( $start > 0 ) { $l = addUrlParameter($link1,"start=0"); --- 98,102 ---- if ( ( $a < $n ) || ( $start != 0 ) ) { echo "<TR>\n"; ! echo " <TH COLSPAN=8>\n"; if ( $start > 0 ) { $l = addUrlParameter($link1,"start=0"); |
From: Gero K. <gok...@us...> - 2001-07-26 17:14:52
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv2665/php Modified Files: address_select.php config.pinc mytutos.php Log Message: Prepare Release 2001072x III Index: address_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/address_select.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** address_select.php 2001/07/21 16:03:33 1.5 --- address_select.php 2001/07/26 17:14:49 1.6 *************** *** 151,156 **** --- 151,161 ---- HTML_Header($lang['AddressSearch']); + # The extended mode fields if ( isset($adrsearch) ) { $tutos[adrsearch] = $adrsearch; + } + # The default search string + if ( ! isset($adrlook) ) { + $adrlook = ""; } if ( ! isset($ext) ) { Index: config.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/config.pinc,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -r1.54 -r1.55 *** config.pinc 2001/07/26 11:36:14 1.54 --- config.pinc 2001/07/26 17:14:49 1.55 *************** *** 329,333 **** # (this will fill the messages table and the file $tutos[errlog]) # ! $tutos[debug]=1; # # Where to put the output --- 329,333 ---- # (this will fill the messages table and the file $tutos[errlog]) # ! $tutos[debug]=0; # # Where to put the output *************** *** 355,359 **** # The TUTOS Version number # ! $tutos[version]="20010717"; # $includes[config.pinc] = 1; --- 355,359 ---- # The TUTOS Version number # ! $tutos[version]="20010726"; # $includes[config.pinc] = 1; Index: mytutos.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/mytutos.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** mytutos.php 2001/07/21 16:03:33 1.13 --- mytutos.php 2001/07/26 17:14:49 1.14 *************** *** 288,292 **** echo " <TD>" . $f->getLink() ."</TD>\n"; echo " </TR>\n"; - $a++; } info_table_end(); --- 288,291 ---- |
From: Gero K. <gok...@us...> - 2001-07-26 17:14:52
|
Update of /cvsroot/tutos/tutos In directory usw-pr-cvs1:/tmp/cvs-serv2665 Modified Files: ChangeLog Makefile.in apache.conf.in tutos.spec Log Message: Prepare Release 2001072x III Index: ChangeLog =================================================================== RCS file: /cvsroot/tutos/tutos/ChangeLog,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -r1.53 -r1.54 *** ChangeLog 2001/07/26 11:36:14 1.53 --- ChangeLog 2001/07/26 17:14:49 1.54 *************** *** 20,24 **** LDAP Server could be defined in config.pinc and PHP must know about LDAP July 05 2001 ! * new: installation vithout shellscripts Please test this by calling http://[yourserver]/tutos/php/scheme.php Still problems with postgres and oracle here --- 20,24 ---- LDAP Server could be defined in config.pinc and PHP must know about LDAP July 05 2001 ! * new: installation without shellscripts Please test this by calling http://[yourserver]/tutos/php/scheme.php Still problems with postgres and oracle here Index: Makefile.in =================================================================== RCS file: /cvsroot/tutos/tutos/Makefile.in,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -r1.50 -r1.51 *** Makefile.in 2001/07/21 16:03:32 1.50 --- Makefile.in 2001/07/26 17:14:49 1.51 *************** *** 11,14 **** --- 11,17 ---- # # $Log$ + # Revision 1.51 2001/07/26 17:14:49 gokohnert + # Prepare Release 2001072x III + # # Revision 1.50 2001/07/21 16:03:32 gokohnert # Prepare Release 2001072x *************** *** 483,486 **** --- 486,490 ---- homepage/.htaccess \ homepage/install.html \ + homepage/install_easy.html \ homepage/install_basic.html \ homepage/install_php.html \ Index: apache.conf.in =================================================================== RCS file: /cvsroot/tutos/tutos/apache.conf.in,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** apache.conf.in 2001/07/21 16:03:32 1.9 --- apache.conf.in 2001/07/26 17:14:49 1.10 *************** *** 10,13 **** --- 10,16 ---- # # $Log$ + # Revision 1.10 2001/07/26 17:14:49 gokohnert + # Prepare Release 2001072x III + # # Revision 1.9 2001/07/21 16:03:32 gokohnert # Prepare Release 2001072x *************** *** 37,40 **** --- 40,52 ---- # Initial Checkin # + # + # ======================================================================= + # Easy install: Include this file in the httpd.conf of your apache server + # Add a line + # include /wherever/this/file/is/apache.conf + # at the end of httpd.conf + # EDIT the allow from line below + # RESTART apache with 'apachectl restart' + # ======================================================================= # # Index: tutos.spec =================================================================== RCS file: /cvsroot/tutos/tutos/tutos.spec,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** tutos.spec 2001/07/21 16:03:32 1.16 --- tutos.spec 2001/07/26 17:14:49 1.17 *************** *** 3,7 **** # Name: TUTOS ! Version: 20010717 Summary: the ultimate team organisation software Release: 1 --- 3,7 ---- # Name: TUTOS ! Version: 20010726 Summary: the ultimate team organisation software Release: 1 |
From: Gero K. <gok...@us...> - 2001-07-26 17:14:52
|
Update of /cvsroot/tutos/tutos/homepage In directory usw-pr-cvs1:/tmp/cvs-serv2665/homepage Modified Files: download.html install.html install_faq.html Added Files: install_easy.html Log Message: Prepare Release 2001072x III --- NEW FILE: install_easy.html --- <!--#include file="head0.html" --> TUTOS Homepage / Easy Installation <!--#include file="head1.html" --> how to install TUTOS / the easy way <!--#include file="head2.html" --> <!--$Id: install_easy.html,v 1.1 2001/07/26 17:14:49 gokohnert Exp $ --> <P> This will run best with an MySQL Database<BR> This way of installation is currently beta. Please give feedback !!<BR> <OL> <LI>get the latest tarball from <A HREF=TUTOS" rel="nofollow">http://sourceforge.net/project/showfiles.php?group_id=8047>TUTOS Project</A> <LI>if you got the bzip version<BR> <TT>tar xvIf tutos.....bz2</TT><BR> or<BR> <TT>cat tutos.....bz2 | bunzip | tar xvf -</TT> <LI>Change to the newly created tutos directory<BR> <LI>if you are updating: Read the ChangeLog file in your base directory<BR> <LI>look for patches that might be neccessary for your release<BR> You will find patches at <A HREF="http://sourceforge.net/patch/?group_id=8047" rel="nofollow">http://sourceforge.net/patch/?group_id=8047">http://sourceforge.net/patch/?group_id=8047</A> <LI>edit [tutosdir]/php/config.pinc according to your Database Server <LI>edit apache.conf and include it into your apache httpd.conf <LI>run http://[yourserver]/tutos/php/scheme.php <UL> <LI>depending on the number of steps you perform you will have a runable tutos installation afterwards <LI>with a superuser account (User: superuser Password: tutos <FONT COLOR=red>CHANGE THIS !!</FONT>) <LI>with some example users and data </UL> <LI>test everything <UL> <LI>Login at http://[yourserver]/tutos/php/mytutos.php with the above username and password </UL> <LI><B>remove scheme.php from your php subdir !!!</B> </OL> If this fails you have to try the <A HREF=install_basic.html>long way</A>. Sorry. <P> <A HREF=install.html>Back to install page</A><BR> <!--#include file="foot1.html" --> Index: download.html =================================================================== RCS file: /cvsroot/tutos/tutos/homepage/download.html,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -r1.30 -r1.31 *** download.html 2001/06/18 17:36:41 1.30 --- download.html 2001/07/26 17:14:49 1.31 *************** *** 17,23 **** <P> <UL> ! <LI>18 June 2001: <A HREF=" rel="nofollow">http://download.sourceforge.net/tutos/tutos-all-20010618.tar.bz2> ! tutos-all-20010618.tar.bz2</STRIKE></A> <P>OLDER:<BR> <LI>08 April 2001: <A HREF=" rel="nofollow">http://download.sourceforge.net/tutos/tutos-all-20010408.tar.bz2> <STRIKE>tutos-all-20010408.tar.bz2</STRIKE></A> --- 17,25 ---- <P> <UL> ! <LI>26 July 2001: <A HREF=" rel="nofollow">http://download.sourceforge.net/tutos/tutos-all-20010726.tar.bz2> ! tutos-all-20010726.tar.bz2</STRIKE></A> <P>OLDER:<BR> + <LI>18 June 2001: <A HREF=" rel="nofollow">http://download.sourceforge.net/tutos/tutos-all-20010618.tar.bz2> + <STRIKE>tutos-all-20010618.tar.bz2</STRIKE></A> <LI>08 April 2001: <A HREF=" rel="nofollow">http://download.sourceforge.net/tutos/tutos-all-20010408.tar.bz2> <STRIKE>tutos-all-20010408.tar.bz2</STRIKE></A> Index: install.html =================================================================== RCS file: /cvsroot/tutos/tutos/homepage/install.html,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** install.html 2000/09/07 20:50:12 1.8 --- install.html 2001/07/26 17:14:49 1.9 *************** *** 16,19 **** <LI><A HREF=install_hints.html>Hints</A> </UL> ! <!--#include file="foot1.html" --> --- 16,22 ---- <LI><A HREF=install_hints.html>Hints</A> </UL> ! <HR> ! <B>NOW: New and not fully tested</B> ! <BR> ! <B><A HREF=install_easy.html>The easy way</A></B> <!--#include file="foot1.html" --> Index: install_faq.html =================================================================== RCS file: /cvsroot/tutos/tutos/homepage/install_faq.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** install_faq.html 2001/02/11 20:43:48 1.3 --- install_faq.html 2001/07/26 17:14:49 1.4 *************** *** 18,23 **** have no per se no rights to do anything within TUTOS.<BR> <LI>I got errors like "Fatal error: Cannot redeclare class address..."<BR> ! Your PHP loads a foreign class before loading tutos classes. Have a look at your php.ini file and look for "auto_prepend_file = ". If this mentioned a file to load then remove that filename and try again. --- 18,29 ---- have no per se no rights to do anything within TUTOS.<BR> + <LI>I got errors like " Warning: Safe Mode: Cannot set environment variable 'TZ' - it's not in the allowed list ."<BR> + Your PHP engine runs in the safe mode but TUTOS likes to change the Timezone Environment for certain operations. + Chanhe your <B><I>php.ini</I></B> file to allow the change of the TZ environement or disable the PHP safe mode totally. + <PRE>safe_mode = Off </PRE> + + <LI>I got errors like "Fatal error: Cannot redeclare class address..."<BR> ! Your PHP loads a foreign class before loading tutos classes. Have a look at your <B><I>php.ini</I></B> file and look for "auto_prepend_file = ". If this mentioned a file to load then remove that filename and try again. *************** *** 26,32 **** TUTOS allows you to customize displayed text. Just create a file called <B>php/lang_custom.p3</B> and add all fields you want to change. Use the same format like in the standard language files (de.p3, en.p3 ...). ! </UL> <P> <P> --- 32,56 ---- TUTOS allows you to customize displayed text. Just create a file called <B>php/lang_custom.p3</B> and add all fields you want to change. Use the same format like in the standard language files (de.p3, en.p3 ...). + If you like make language specific changes than call the new file de_custom.p3 or en_custom.p3 etc. ! <LI>How can I enable mail reminders<BR> ! Add a cronjob that periodically call the http://[yourserver]/tutos/php/check.php page<BR> ! Such a cronjob line will look like this<BR> ! <FONT SIZE=-1> ! <PRE>*/5 * * * * /usr/bin/lynx -accept_all_cookies -dump http://[yourhost]/tutos/php/check.php3 > /dev/null </PRE> ! or ! <PRE>*/5 * * * * /usr/bin/wget -a /dev/null -O /dev/null http://[yourhost]/tutos/php/check.php3 2> /dev/null </PRE> ! </FONT> ! Ensure that the mail mechanism does work. See <I>config.pinc</I> $tutos[mailmode] ! ! <LI>How can I add my company/department logo in the headline<BR> ! Change the logo section in <I>config.pinc</I>. The $tutos[logo] will be resized to 40 pixels height.<BR> + <LI>TUTOS displays wrong times<BR> + Check the Timezone in <I>config.pinc</I> $tutos[defaultTZ]. This must be the same TZ that your database is using. Check that your Operating System knows about the timezone names that are listed in <I>config.pinc</I> + + + + </UL> <P> <P> |
From: Gero K. <gok...@us...> - 2001-07-26 11:36:16
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv10336/php Modified Files: calendar_new.php calendar_new_r.php config.pinc file_ins.php file_new.php logout.php mailbox_overview.php permission.p3 task.pinc webelements.p3 Log Message: Prepare Release 2001072x II Index: calendar_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/calendar_new.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** calendar_new.php 2001/07/07 19:49:27 1.15 --- calendar_new.php 2001/07/26 11:36:14 1.16 *************** *** 23,27 **** ! for ( $i = 0 ; $i < count($lang['AppLoc']); $i++ ) { $outside_checked[$i] = ""; } --- 23,28 ---- ! @reset($lang['AppLoc']); ! while ( list ($i,$f) = @each ($lang['AppLoc']) ) { $outside_checked[$i] = ""; } *************** *** 185,201 **** echo " </TD>\n"; ! $x[0] = ""; ! $x[15] = ""; ! $x[60] = ""; ! $x[1440] = ""; ! $x[10080] = ""; $x[$a->remember] = "SELECTED"; echo " <TD COLSPAN=3>". $lang['AppEmailRemind'] ."<BR>\n"; echo " <SELECT name=\"remember\">\n"; ! echo " <OPTION VALUE=0 $x[0]>". $lang['AppRemind'][0] ."</OPTION>\n"; ! echo " <OPTION VALUE=15 $x[15]>". $lang['AppRemind'][15] ."</OPTION>\n"; ! echo " <OPTION VALUE=60 $x[60]>". $lang['AppRemind'][60] ."</OPTION>\n"; ! echo " <OPTION VALUE=1440 $x[1440]>". $lang['AppRemind'][1440] ."</OPTION>\n"; ! echo " <OPTION VALUE=10080 $x[10080]>". $lang['AppRemind'][10080] ."</OPTION>\n"; echo " </SELECT>"; echo " </TD>\n"; --- 186,201 ---- echo " </TD>\n"; ! @reset($lang['AppRemind']); ! while ( list ($i,$f) = @each ($lang['AppRemind']) ) { ! $x[$i] = ""; ! } $x[$a->remember] = "SELECTED"; + echo " <TD COLSPAN=3>". $lang['AppEmailRemind'] ."<BR>\n"; echo " <SELECT name=\"remember\">\n"; ! @reset($lang['AppRemind']); ! while ( list ($i,$f) = @each ($lang['AppRemind']) ) { ! echo " <OPTION VALUE=". $i ." ". $x[$i] .">". $f ."</OPTION>\n"; ! } echo " </SELECT>"; echo " </TD>\n"; Index: calendar_new_r.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/calendar_new_r.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** calendar_new_r.php 2001/06/20 17:29:07 1.10 --- calendar_new_r.php 2001/07/26 11:36:14 1.11 *************** *** 22,26 **** ! for ( $i = 0 ; $i < count($lang['AppLoc']); $i++ ) { $outside_checked[$i] = ""; } --- 22,27 ---- ! @reset($lang['AppLoc']); ! while ( list ($i,$f) = @each ($lang['AppLoc']) ) { $outside_checked[$i] = ""; } Index: config.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/config.pinc,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -r1.53 -r1.54 *** config.pinc 2001/07/21 16:03:33 1.53 --- config.pinc 2001/07/26 11:36:14 1.54 *************** *** 130,137 **** $tutos[ldapserver][2] = "memberdir.netscape.com"; $tutos[ldapport][2] = 389; ! $tutos[ldapserver][3] = "scd2ldap.siemens.net"; ! $tutos[ldapport][3] = 389; ! $tutos[ldapserver][4] = "localhost"; ! $tutos[ldapport][4] = 389; # # Mail Features --- 130,137 ---- $tutos[ldapserver][2] = "memberdir.netscape.com"; $tutos[ldapport][2] = 389; ! #$tutos[ldapserver][3] = "scd2ldap.siemens.net"; ! #$tutos[ldapport][3] = 389; ! #$tutos[ldapserver][4] = "localhost"; ! #$tutos[ldapport][4] = 389; # # Mail Features Index: file_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/file_ins.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** file_ins.php 2001/05/12 05:54:33 1.7 --- file_ins.php 2001/07/26 11:36:14 1.8 *************** *** 38,41 **** --- 38,49 ---- } + # Hack for Konquerer + if ( $file != "none" ) { + $farr = $HTTP_POST_FILES["file"]; + if ( $farr['name'] == "" ) { + $file = "none"; + } + } + # New files need a path ! if ( ($file == "none") && !isset($id) ) { *************** *** 43,46 **** --- 51,56 ---- } + $name = trim($name); + if ( ($name == "") && ($file == "none") ) { $msg = $msg . "Please enter a file name.<BR>"; *************** *** 95,118 **** if ( $file != "none" ) { ! $farr = $HTTP_POST_FILES["file"]; ! if ( isset($id) ) { $log = $log . "Changed Dokument \n"; ! if ( $f->filename != $farr['name'] ) { $log = $log . " Name: from ". $f->filename ." to ". $farr['name'] ."\n"; ! } ! if ( $f->filesize != $farr['size'] ) { $log = $log . " Size: from ". $f->filesize ." to ". $farr['size'] ."\n"; ! } ! if ( $f->filetype != $farr['type'] ) { ! $log = $log . " Type: from ". $f->filetype ." to ". $farr['type'] ."\n"; ! } ! } ! if ( $name == "") { $name = $farr['name']; ! } ! $f->tmploc = $farr['tmp_name']; ! $f->filesize = $farr['size']; ! $f->filename = $farr['name']; ! $f->filetype = $farr['type']; } if ( ($f->name != $name) && ($f->name != "") ) { --- 105,128 ---- if ( $file != "none" ) { ! $farr = $HTTP_POST_FILES["file"]; ! if ( isset($id) ) { $log = $log . "Changed Dokument \n"; ! if ( $f->filename != $farr['name'] ) { $log = $log . " Name: from ". $f->filename ." to ". $farr['name'] ."\n"; ! } ! if ( $f->filesize != $farr['size'] ) { $log = $log . " Size: from ". $f->filesize ." to ". $farr['size'] ."\n"; ! } ! if ( $f->filetype != $farr['type'] ) { ! $log = $log . " Type: from ". $f->filetype ." to ". $farr['type'] ."\n"; ! } ! } ! if ( $name == "") { $name = $farr['name']; ! } ! $f->tmploc = $farr['tmp_name']; ! $f->filesize = $farr['size']; ! $f->filename = $farr['name']; ! $f->filetype = $farr['type']; } if ( ($f->name != $name) && ($f->name != "") ) { Index: file_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/file_new.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** file_new.php 2001/05/12 05:54:33 1.8 --- file_new.php 2001/07/26 11:36:14 1.9 *************** *** 57,61 **** echo "<TR>\n"; showfield("<BR>".$lang['FileName']); ! echo " <TD COLSPAN=3><INPUT SIZE=40 NAME=file TYPE=file VALUE=\"". $f->filename ."\">\n"; if ( $f->id != -1 ) { echo "<BR><FONT SIZE=-1>". $f->filename ."</FONT>"; --- 57,61 ---- echo "<TR>\n"; showfield("<BR>".$lang['FileName']); ! echo " <TD COLSPAN=3><INPUT SIZE=40 NAME=file TYPE=\"file\" VALUE=\"". $f->filename ."\">\n"; if ( $f->id != -1 ) { echo "<BR><FONT SIZE=-1>". $f->filename ."</FONT>"; Index: logout.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/logout.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** logout.php 2001/02/17 17:04:26 1.2 --- logout.php 2001/07/26 11:36:14 1.3 *************** *** 14,18 **** Function info() { global $lang , $HTTP_REFERER,$userid; ! $msg = ""; if (($userid != -1) && ($userid != "")) { --- 14,18 ---- Function info() { global $lang , $HTTP_REFERER,$userid; ! $msg = ""; if (($userid != -1) && ($userid != "")) { *************** *** 39,53 **** check_user(); if ( ($userid == -1) || ($userid == "") ) { HTML_Header($lang['Login']); logmessage("logout: no $uname $pw"); } else { ! HTML_Header($lang['Logout']); logout(); } - /* Go back to user mask */ - # Header("HTTP/1.0 302 Moved Temporarily"); - # Header("Location: $HTTP_REFERER"); - # Header("Expires: 0"); - # Header("Pragma: no-cache"); HTML_Base1(); --- 39,54 ---- check_user(); if ( ($userid == -1) || ($userid == "") ) { + # THIS SHOULD NEVER HAPPEN (check_user handles this stuff) HTML_Header($lang['Login']); logmessage("logout: no $uname $pw"); } else { ! # HTML_Header($lang['Logout']); logout(); + # Redirect + Header("Status: 302 Moved Temporarily"); + Header("Location: ". $HTTP_REFERER); + DB_Close($conn); + return; } HTML_Base1(); Index: mailbox_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/mailbox_overview.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** mailbox_overview.php 2001/06/14 19:10:24 1.6 --- mailbox_overview.php 2001/07/26 11:36:14 1.7 *************** *** 36,39 **** --- 36,55 ---- } + # $search = "Re:"; + if ( $search ) { + $headers = imap_search($m->mbox,'TEXT "'. $search .'"'); + } else { + $headers = @imap_headers ($m->mbox); + } + + $m->errors(); + if ($headers == false) { + echo "<B>Found no mails</B><BR>"; + return; + } + + $cnt = count($headers); + echo "<B>Found ". count($headers) ." mails</B><BR>"; + echo "<TABLE BORDER=1 CELLPADDING=3 CELLSPACING=0>\n"; *************** *** 61,81 **** echo " <TH>". $lang['MailSize'] ."</TH>\n"; echo "</TR>\n"; - - # $search = "Re:"; - if ( $search ) { - $headers = imap_search($m->mbox,'TEXT "'. $search .'"'); - } else { - $headers = @imap_headers ($m->mbox); - } - - $m->errors(); - if ($headers == false) { - echo "</TABLE>\n"; - echo "<B>Found no mails</B><BR>"; - return; - } - - $cnt = count($headers); - echo "<B>Found ". count($headers) ." mails</B><BR>"; $n = 0; --- 77,80 ---- Index: permission.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/permission.p3,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -r1.32 -r1.33 *** permission.p3 2001/07/21 16:03:33 1.32 --- permission.p3 2001/07/26 11:36:14 1.33 *************** *** 30,34 **** */ Function logout () { ! global $userid; logmessage("logout: ". $userid); --- 30,34 ---- */ Function logout () { ! global $current_user, $userid; logmessage("logout: ". $userid); *************** *** 36,39 **** --- 36,40 ---- $userid = -1; session_destroy(); + $current_user->id = -1; } *************** *** 47,50 **** --- 48,56 ---- $gotourl = $HTTP_REFERER; } + $x = strpos($gotourl,"?"); + if ( $x != "" ) { + $gotourl = substr($gotourl,0,$x); + } + if ( ! headers_sent() ) { HTML_Header($lang['Login']); *************** *** 55,65 **** echo "<P><FONT>". $msg ."</FONT><BR>"; } ! $x = strpos($gotourl,"?"); ! # echo "$gotourl <BR> $x <BR>"; if ( $x != "" ) { ! $gotourl = substr($gotourl,0,$x); } ! # echo "$gotourl <BR>"; ! echo "<FORM ACTION=\"". $gotourl ."\" method=\"POST\">"; --- 61,71 ---- echo "<P><FONT>". $msg ."</FONT><BR>"; } ! ! # It is useless to jump again to logout ! $x = strpos($gotourl,"logout.php"); if ( $x != "" ) { ! $gotourl = substr($gotourl,0,$x); } ! # echo $gotourl ."<BR>\n"; echo "<FORM ACTION=\"". $gotourl ."\" method=\"POST\">"; Index: task.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/task.pinc,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -r1.22 -r1.23 *** task.pinc 2001/07/21 16:03:33 1.22 --- task.pinc 2001/07/26 11:36:14 1.23 *************** *** 406,410 **** $msg = $msg . history_save($this); @DB_Commit($this->conn,"WORK"); ! DB_FreeResult ($r); if ( ($this->diff != 0) && ($this->worker->getType() == "address") ) { --- 406,410 ---- $msg = $msg . history_save($this); @DB_Commit($this->conn,"WORK"); ! # DB_FreeResult ($r); if ( ($this->diff != 0) && ($this->worker->getType() == "address") ) { Index: webelements.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/webelements.p3,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -r1.49 -r1.50 *** webelements.p3 2001/07/21 16:03:33 1.49 --- webelements.p3 2001/07/26 11:36:14 1.50 *************** *** 441,444 **** --- 441,454 ---- echo "\n<!-- --------------- Start the standard navigation --------------- -->\n"; + # Check if logged in + if ( $current_user->id == -1 ) { + echo "<TR VALIGN=bottom>\n"; + echo " <TD NOWRAP>\n"; + make_helplink(1); + echo "</TD></TR>\n"; + echo "</TABLE>\n"; + echo "<!-- --------------- End the navigation --------------- -->\n"; + return; + } echo "<TR VALIGN=bottom><TD><HR NOSHADE SIZE=1></TD></TR>\n"; echo "<TR VALIGN=bottom>\n"; |
From: Gero K. <gok...@us...> - 2001-07-26 11:36:16
|
Update of /cvsroot/tutos/tutos In directory usw-pr-cvs1:/tmp/cvs-serv10336 Modified Files: ChangeLog Log Message: Prepare Release 2001072x II Index: ChangeLog =================================================================== RCS file: /cvsroot/tutos/tutos/ChangeLog,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -r1.52 -r1.53 *** ChangeLog 2001/07/21 16:03:32 1.52 --- ChangeLog 2001/07/26 11:36:14 1.53 *************** *** 1,6 **** $Header$ July 18 2001 * new: list of locations for appointments is now expandable using the language files ! (see the comments there) and the css files July 15 2001 * new: locations for departments --- 1,15 ---- $Header$ + July 26 2001 + * RELEASE 20010726 + July 22 2001 + * new: task creation on the mytutos page. This is a first step towards a new ToDO + feature. personal task have no relation to a product or project + * fixed: file upoads with konquerer browser + * updated: bug summaries are displayed with the accumulated time for the bugs July 18 2001 * new: list of locations for appointments is now expandable using the language files ! (see the comments there) and the .css files in html subdir ! * new: logo in headline. You can define a url for a logo (i.e. your organisation) in ! the TUTOS headline. It will be resized to 40 pixels height. See config.pinc July 15 2001 * new: locations for departments *************** *** 9,13 **** July 06 2001 * new: LDAP Search via address search page ! LDAP Server could be defined in config.pinc July 05 2001 * new: installation vithout shellscripts --- 18,22 ---- July 06 2001 * new: LDAP Search via address search page ! LDAP Server could be defined in config.pinc and PHP must know about LDAP July 05 2001 * new: installation vithout shellscripts *************** *** 323,326 **** --- 332,336 ---- */5 * * * * /usr/bin/lynx -accept_all_cookies -dump http://[yourhost]/tutos/php/check.php3 > /dev/null to your crontab. + or use wget instead of lynx October 20 2000 * new history of changes for products |
From: Gero K. <gok...@us...> - 2001-07-21 16:03:37
|
Update of /cvsroot/tutos/tutos/html In directory usw-pr-cvs1:/tmp/cvs-serv27481/html Modified Files: blue.css red.css tutos.css visual.css Log Message: Prepare Release 2001072x Index: blue.css =================================================================== RCS file: /cvsroot/tutos/tutos/html/blue.css,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** blue.css 2001/06/14 12:33:15 1.10 --- blue.css 2001/07/21 16:03:33 1.11 *************** *** 103,106 **** --- 103,126 ---- } + /* OFFICE */ + .apploc_0 { + color: black; + } + + /* OUT */ + .apploc_1 { + color: black; + } + + /* VACATION */ + .apploc_2 { + color: green; + } + + /* SICK */ + .apploc_3 { + color: red; + } + .holiday { background-color: #FFD0D0; Index: red.css =================================================================== RCS file: /cvsroot/tutos/tutos/html/red.css,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** red.css 2001/06/14 12:33:15 1.4 --- red.css 2001/07/21 16:03:33 1.5 *************** *** 100,103 **** --- 100,123 ---- } + /* OFFICE */ + .apploc_0 { + color: black; + } + + /* OUT */ + .apploc_1 { + color: black; + } + + /* VACATION */ + .apploc_2 { + color: green; + } + + /* SICK */ + .apploc_3 { + color: red; + } + .holiday { background-color: #FFD0D0; Index: tutos.css =================================================================== RCS file: /cvsroot/tutos/tutos/html/tutos.css,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** tutos.css 2001/06/14 12:33:15 1.12 --- tutos.css 2001/07/21 16:03:33 1.13 *************** *** 101,104 **** --- 101,124 ---- } + /* OFFICE */ + .apploc_0 { + color: black; + } + + /* OUT */ + .apploc_1 { + color: black; + } + + /* VACATION */ + .apploc_2 { + color: green; + } + + /* SICK */ + .apploc_3 { + color: red; + } + .holiday { background-color: #FFD0D0; Index: visual.css =================================================================== RCS file: /cvsroot/tutos/tutos/html/visual.css,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** visual.css 2001/06/14 12:33:15 1.2 --- visual.css 2001/07/21 16:03:33 1.3 *************** *** 109,112 **** --- 109,132 ---- } + /* OFFICE */ + .apploc_0 { + color: black; + } + + /* OUT */ + .apploc_1 { + color: black; + } + + /* VACATION */ + .apploc_2 { + color: green; + } + + /* SICK */ + .apploc_3 { + color: red; + } + .holiday { background-color: #FFD0D0; |
From: Gero K. <gok...@us...> - 2001-07-21 16:03:36
|
Update of /cvsroot/tutos/tutos In directory usw-pr-cvs1:/tmp/cvs-serv27481 Modified Files: ChangeLog Makefile.in apache.conf.in createdb.sh tutos.spec Log Message: Prepare Release 2001072x Index: ChangeLog =================================================================== RCS file: /cvsroot/tutos/tutos/ChangeLog,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -r1.51 -r1.52 *** ChangeLog 2001/06/22 20:19:07 1.51 --- ChangeLog 2001/07/21 16:03:32 1.52 *************** *** 1,3 **** --- 1,17 ---- $Header$ + July 18 2001 + * new: list of locations for appointments is now expandable using the language files + (see the comments there) and the css files + July 15 2001 + * new: locations for departments + July 10 2001 + * new: Polish translation thanks to <ser at metalab.unc.edu> + July 06 2001 + * new: LDAP Search via address search page + LDAP Server could be defined in config.pinc + July 05 2001 + * new: installation vithout shellscripts + Please test this by calling http://[yourserver]/tutos/php/scheme.php + Still problems with postgres and oracle here June 22 2001 * bugfix: Quotes in texts made problems with Oracle Databases Index: Makefile.in =================================================================== RCS file: /cvsroot/tutos/tutos/Makefile.in,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -r1.49 -r1.50 *** Makefile.in 2001/07/07 19:49:26 1.49 --- Makefile.in 2001/07/21 16:03:32 1.50 *************** *** 11,14 **** --- 11,17 ---- # # $Log$ + # Revision 1.50 2001/07/21 16:03:32 gokohnert + # Prepare Release 2001072x + # # Revision 1.49 2001/07/07 19:49:26 gokohnert # Intermediate *************** *** 308,311 **** --- 311,315 ---- php/ru.p3 \ php/ko.p3 \ + php/pl.p3 \ php/pt-br.p3 *************** *** 766,769 **** --- 770,774 ---- cut -f1 -d "=" php/ru.p3 | grep "^.lang" > l.ru cut -f1 -d "=" php/ko.p3 | grep "^.lang" > l.ko + cut -f1 -d "=" php/pl.p3 | grep "^.lang" > l.pl cut -f1 -d "=" php/pt-br.p3 | grep "^.lang" > l.pt @echo "----------------------------------------" *************** *** 784,787 **** --- 789,794 ---- -diff l.en l.ko @echo "----------------------------------------" + -diff l.en l.pl + @echo "----------------------------------------" -diff l.en l.pt *************** *** 799,812 **** # zaphod: jar ${PHP} ${LANGFILES} ${OTHER} ${OTHERJ} ${OTHERP} ${HELP} ${PROPS} zaphod.html tutos.properties updateconfig ! cp ChangeLog createdb.sh example.sh scheme.sh inittutos.sh shellfunc.sh /misc/zaphod/home/gero/src/tutos ! cp ${PHP} ${LANGFILES} /misc/zaphod/home/gero/src/tutos/php ! cp html/*html html/*css html/*png html/*gif /misc/zaphod/home/gero/src/tutos/html ! cp ${HELP} /misc/zaphod/home/gero/src/tutos/html/help ! cp homepage/.htaccess homepage/*html homepage/*png homepage/*css /misc/zaphod/home/gero/src/tutos/homepage ! cp zaphod.html /misc/zaphod/home/gero/src/tutos/html/motd.html ! cp ${JARFILE} /misc/zaphod/home/gero/src/tutos/ ! cp tutos.properties /misc/zaphod/home/gero/src/tutos/ ! cp html/*.proto.* /misc/zaphod/home/gero/src/tutos/html ! cp html/visual/*.gif /misc/zaphod/home/gero/src/tutos/html/visual include depend --- 806,819 ---- # zaphod: jar ${PHP} ${LANGFILES} ${OTHER} ${OTHERJ} ${OTHERP} ${HELP} ${PROPS} zaphod.html tutos.properties updateconfig ! cp ChangeLog createdb.sh example.sh scheme.sh inittutos.sh shellfunc.sh /net/zaphod/home/gero/src/tutos ! cp ${PHP} ${LANGFILES} /net/zaphod/home/gero/src/tutos/php ! cp html/*html html/*css html/*png html/*gif /net/zaphod/home/gero/src/tutos/html ! cp ${HELP} /net/zaphod/home/gero/src/tutos/html/help ! cp homepage/.htaccess homepage/*html homepage/*png homepage/*css /net/zaphod/home/gero/src/tutos/homepage ! cp zaphod.html /net/zaphod/home/gero/src/tutos/html/motd.html ! cp ${JARFILE} /net/zaphod/home/gero/src/tutos/ ! cp tutos.properties /net/zaphod/home/gero/src/tutos/ ! cp html/*.proto.* /net/zaphod/home/gero/src/tutos/html ! cp html/visual/*.gif /net/zaphod/home/gero/src/tutos/html/visual include depend Index: apache.conf.in =================================================================== RCS file: /cvsroot/tutos/tutos/apache.conf.in,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** apache.conf.in 2001/06/18 14:43:10 1.8 --- apache.conf.in 2001/07/21 16:03:32 1.9 *************** *** 10,13 **** --- 10,16 ---- # # $Log$ + # Revision 1.9 2001/07/21 16:03:32 gokohnert + # Prepare Release 2001072x + # # Revision 1.8 2001/06/18 14:43:10 gokohnert # Prepare Release 200106xx IV *************** *** 62,68 **** <Directory "%prefix%"> ! Action cocoon /tutos/servlets/org.apache.cocoon.Cocoon ! AddHandler cocoon xml # Remove next line when already defined in httpd.conf AddType application/x-httpd-php .php DirectoryIndex index.html --- 65,73 ---- <Directory "%prefix%"> ! # Action cocoon /tutos/servlets/org.apache.cocoon.Cocoon ! # AddHandler cocoon xml # Remove next line when already defined in httpd.conf + # .pinc files must be interpreted by PHP to void password stealing ! + AddType application/x-httpd-php .pinc AddType application/x-httpd-php .php DirectoryIndex index.html Index: createdb.sh =================================================================== RCS file: /cvsroot/tutos/tutos/createdb.sh,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** createdb.sh 2001/07/07 19:49:26 1.6 --- createdb.sh 2001/07/21 16:03:32 1.7 *************** *** 168,171 **** --- 168,174 ---- then # + # REMINDER /usr/bin/mysqladmin -u root -p password 'newpassword' + # REMINDER /usr/bin/mysqladmin -u root -h marvin -p password 'new-password' + # # CREATE DATABASE AND USER # Index: tutos.spec =================================================================== RCS file: /cvsroot/tutos/tutos/tutos.spec,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** tutos.spec 2001/06/20 17:29:07 1.15 --- tutos.spec 2001/07/21 16:03:32 1.16 *************** *** 3,7 **** # Name: TUTOS ! Version: 20010618 Summary: the ultimate team organisation software Release: 1 --- 3,7 ---- # Name: TUTOS ! Version: 20010717 Summary: the ultimate team organisation software Release: 1 |
From: Gero K. <gok...@us...> - 2001-07-21 16:03:36
|
Update of /cvsroot/tutos/tutos/homepage In directory usw-pr-cvs1:/tmp/cvs-serv27481/homepage Modified Files: status.html Log Message: Prepare Release 2001072x Index: status.html =================================================================== RCS file: /cvsroot/tutos/tutos/homepage/status.html,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** status.html 2001/06/20 17:29:07 1.12 --- status.html 2001/07/21 16:03:33 1.13 *************** *** 25,30 **** <B>Online Demo:</B> <P> ! <!-- An online demo (PHP with Postgres) could be found <A HREF=HERE." rel="nofollow">http://demo.tutos.org/tutos/php/mytutos.php>HERE</A>. --> ! An online demo (PHP with Postgres) could be found <A HREF=HERE." rel="nofollow">http://www.tutos.org/php/mytutos.php>HERE</A>. <P> <TABLE BGCOLOR=black BORDER=0 CELLPADDING=1 CELLSPACING=2><TR><TD> --- 25,32 ---- <B>Online Demo:</B> <P> ! <!-- ! An online demo (PHP with Postgres) could be found <A HREF=HERE." rel="nofollow">http://demo.tutos.org/tutos/php/mytutos.php>HERE</A>. ! --> ! An online demo (PHP with MySQL) could be found <A HREF=HERE." rel="nofollow">http://www.tutos.org/php/mytutos.php>HERE</A>. <P> <TABLE BGCOLOR=black BORDER=0 CELLPADDING=1 CELLSPACING=2><TR><TD> |