tutos-commits Mailing List for TUTOS (Page 456)
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: Boris W. <bw...@us...> - 2001-08-30 14:19:29
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv7613 Modified Files: product.pinc Log Message: Don't assign permissions to ojects that won't be able to access the data Index: product.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/product.pinc,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -r1.38 -r1.39 *** product.pinc 2001/08/26 21:10:50 1.38 --- product.pinc 2001/08/30 14:19:23 1.39 *************** *** 355,367 **** @reset($lang['ProdRole']); - while ( list ($role,$f) = @each ($lang['ProdRole']) ) { ! if ( isset($this->role[$role]) && is_array ($this->role[$role]) ) { @reset ($this->role[$role]) ; ! while ( list ($i,$o) = @each ($this->role[$role]) ) { if ( $o->id > 0 ) { $q = "INSERT INTO projectroles (pro_id,adr_id,role_id) VALUES (". $this->id .",". $o->id .",". $role .")"; $r = @DB_Exec($this->conn,$q); ! acl_raise($this,$o->id,$tutos[modok]); } } --- 355,368 ---- @reset($lang['ProdRole']); while ( list ($role,$f) = @each ($lang['ProdRole']) ) { ! if ( isset ($this->role[$role] ) && is_array ($this->role[$role]) ) { @reset ($this->role[$role]) ; ! while ( list($i,$o) = @each ($this->role[$role]) ) { if ( $o->id > 0 ) { $q = "INSERT INTO projectroles (pro_id,adr_id,role_id) VALUES (". $this->id .",". $o->id .",". $role .")"; $r = @DB_Exec($this->conn,$q); ! if ( ($this->getType() == "address") || ($this->getType() == "team") ) { ! acl_raise($this,$o->id,$tutos[modok]); ! } } } |
From: Gero K. <gok...@us...> - 2001-08-30 13:38:50
|
Update of /cvsroot/tutos/tutos/html In directory usw-pr-cvs1:/tmp/cvs-serv25005/html Modified Files: blue.css red.css Log Message: color changes Index: blue.css =================================================================== RCS file: /cvsroot/tutos/tutos/html/blue.css,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -r1.19 -r1.20 *** blue.css 2001/08/26 17:36:10 1.19 --- blue.css 2001/08/30 13:38:47 1.20 *************** *** 11,15 **** A { text-decoration: none; ! color: #102058; } --- 11,15 ---- A { text-decoration: none; ! color: #1e3ca0; } *************** *** 185,189 **** .holiday { ! background: #FFa0b0; vertical-align: top; color: black; --- 185,189 ---- .holiday { ! background: #c47b89; vertical-align: top; color: black; *************** *** 192,196 **** .freeday { ! background: #FFc0d0; vertical-align: top; color: black; --- 192,196 ---- .freeday { ! background: #c999a5; vertical-align: top; color: black; Index: red.css =================================================================== RCS file: /cvsroot/tutos/tutos/html/red.css,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** red.css 2001/08/26 12:18:10 1.12 --- red.css 2001/08/30 13:38:47 1.13 *************** *** 105,114 **** /* line color 1 in overviews */ .line1 { ! background: #e0d0d0; } /* line color 2 in overviews */ .line2 { ! background: #e0b0b0; } --- 105,114 ---- /* line color 1 in overviews */ .line1 { ! background: #e8c0c0; } /* line color 2 in overviews */ .line2 { ! background: #e8b0b0; } |
From: Gero K. <gok...@us...> - 2001-08-30 13:38:01
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv24424/php Modified Files: db.p3 Log Message: moved applocdesc to config Index: db.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/db.p3,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -r1.43 -r1.44 *** db.p3 2001/08/30 12:28:13 1.43 --- db.p3 2001/08/30 13:37:58 1.44 *************** *** 83,86 **** --- 83,87 ---- define (weekstart,76); define (fig2dev,77); + define (applocdesc,78); define (rolecheck,79); |
From: Gero K. <gok...@us...> - 2001-08-30 13:36:08
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv23364/php Modified Files: de.p3 en.p3 es.p3 fr.p3 it.p3 ko.p3 nl.p3 pl.p3 pt-br.p3 ru.p3 tw.p3 zh.p3 config.pinc appointment.pinc webelements.p3 Log Message: moved applocdesc to config Index: de.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/de.p3,v retrieving revision 1.65 retrieving revision 1.66 diff -C2 -r1.65 -r1.66 *** de.p3 2001/08/30 12:26:44 1.65 --- de.p3 2001/08/30 13:36:03 1.66 *************** *** 189,203 **** $lang['AppGetIcal'] = "Zeige Ical-Datei"; # You can expand this as you like ! # AppLocDesc = 1 shows Description in calendar ! # AppLocDesc = 0 does not show Description in calendar # colors depend on style sheets $lang['AppLoc'][0] = "Büro"; - $lang['AppLocDesc'][0] = 1; $lang['AppLoc'][1] = "Auswärts"; - $lang['AppLocDesc'][1] = 1; $lang['AppLoc'][2] = "Urlaub"; - $lang['AppLocDesc'][2] = 0; $lang['AppLoc'][3] = "Krank"; - $lang['AppLocDesc'][3] = 0; $lang['AppPrivate'] = "Privat"; $lang['AppVoteInfo'] = "Über diesen Termin abstimmen"; --- 189,198 ---- $lang['AppGetIcal'] = "Zeige Ical-Datei"; # You can expand this as you like ! # see also config.pinc AppLocDesc # colors depend on style sheets $lang['AppLoc'][0] = "Büro"; $lang['AppLoc'][1] = "Auswärts"; $lang['AppLoc'][2] = "Urlaub"; $lang['AppLoc'][3] = "Krank"; $lang['AppPrivate'] = "Privat"; $lang['AppVoteInfo'] = "Über diesen Termin abstimmen"; Index: en.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/en.p3,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -r1.60 -r1.61 *** en.p3 2001/08/30 12:26:44 1.60 --- en.p3 2001/08/30 13:36:03 1.61 *************** *** 189,203 **** $lang['AppGetIcal'] = "Get Ical File"; # You can expand this as you like ! # AppLocDesc = 1 shows Description in calendar ! # AppLocDesc = 0 does not show Description in calendar # colors depend on style sheets $lang['AppLoc'][0] = "Office"; - $lang['AppLocDesc'][0] = 1; $lang['AppLoc'][1] = "Out"; - $lang['AppLocDesc'][1] = 1; $lang['AppLoc'][2] = "Vacation"; - $lang['AppLocDesc'][2] = 0; $lang['AppLoc'][3] = "sick"; - $lang['AppLocDesc'][3] = 0; $lang['AppPrivate'] = "private"; $lang['AppVoteInfo'] = "vote for this appointment"; --- 189,198 ---- $lang['AppGetIcal'] = "Get Ical File"; # You can expand this as you like ! # see also config.pinc AppLocDesc # colors depend on style sheets $lang['AppLoc'][0] = "Office"; $lang['AppLoc'][1] = "Out"; $lang['AppLoc'][2] = "Vacation"; $lang['AppLoc'][3] = "sick"; $lang['AppPrivate'] = "private"; $lang['AppVoteInfo'] = "vote for this appointment"; Index: es.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/es.p3,v retrieving revision 1.45 retrieving revision 1.46 diff -C2 -r1.45 -r1.46 *** es.p3 2001/08/30 12:26:44 1.45 --- es.p3 2001/08/30 13:36:03 1.46 *************** *** 191,205 **** $lang['AppGetIcal'] = "Get Ical File"; # You can expand this as you like ! # AppLocDesc = 1 shows Description in calendar ! # AppLocDesc = 0 does not show Description in calendar # colors depend on style sheets $lang['AppLoc'][0] = "oficina"; - $lang['AppLocDesc'][0] = 1; $lang['AppLoc'][1] = "fuera"; - $lang['AppLocDesc'][1] = 1; $lang['AppLoc'][2] = "vacaciones"; - $lang['AppLocDesc'][2] = 0; $lang['AppLoc'][3] = "enfermedad"; - $lang['AppLocDesc'][3] = 0; $lang['AppPrivate'] = "private"; $lang['AppVoteInfo'] = "votar para esta cita"; --- 191,200 ---- $lang['AppGetIcal'] = "Get Ical File"; # You can expand this as you like ! # see also config.pinc AppLocDesc # colors depend on style sheets $lang['AppLoc'][0] = "oficina"; $lang['AppLoc'][1] = "fuera"; $lang['AppLoc'][2] = "vacaciones"; $lang['AppLoc'][3] = "enfermedad"; $lang['AppPrivate'] = "private"; $lang['AppVoteInfo'] = "votar para esta cita"; Index: fr.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/fr.p3,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -r1.44 -r1.45 *** fr.p3 2001/08/30 12:26:44 1.44 --- fr.p3 2001/08/30 13:36:03 1.45 *************** *** 191,205 **** $lang['AppGetIcal'] = "Fichier Ical"; # You can expand this as you like ! # AppLocDesc = 1 shows Description in calendar ! # AppLocDesc = 0 does not show Description in calendar # colors depend on style sheets $lang['AppLoc'][0] = "Bureau"; - $lang['AppLocDesc'][0] = 1; $lang['AppLoc'][1] = "Abscent"; - $lang['AppLocDesc'][1] = 1; $lang['AppLoc'][2] = "En deplacement"; - $lang['AppLocDesc'][2] = 0; $lang['AppLoc'][3] = "Autre"; - $lang['AppLocDesc'][3] = 0; $lang['AppPrivate'] = "Prive"; $lang['AppVoteInfo'] = "Reponse pour ce rendez-vous"; --- 191,200 ---- $lang['AppGetIcal'] = "Fichier Ical"; # You can expand this as you like ! # see also config.pinc AppLocDesc # colors depend on style sheets $lang['AppLoc'][0] = "Bureau"; $lang['AppLoc'][1] = "Abscent"; $lang['AppLoc'][2] = "En deplacement"; $lang['AppLoc'][3] = "Autre"; $lang['AppPrivate'] = "Prive"; $lang['AppVoteInfo'] = "Reponse pour ce rendez-vous"; Index: it.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/it.p3,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -r1.53 -r1.54 *** it.p3 2001/08/30 12:26:44 1.53 --- it.p3 2001/08/30 13:36:03 1.54 *************** *** 189,203 **** $lang['AppGetIcal'] = "Scarica l'Ical File"; # You can expand this as you like ! # AppLocDesc = 1 shows Description in calendar ! # AppLocDesc = 0 does not show Description in calendar # colors depend on style sheets $lang['AppLoc'][0] = "Ufficio"; - $lang['AppLocDesc'][0] = 1; $lang['AppLoc'][1] = "Fuori"; - $lang['AppLocDesc'][1] = 1; $lang['AppLoc'][2] = "Vacanza"; - $lang['AppLocDesc'][2] = 0; $lang['AppLoc'][3] = "Malato"; - $lang['AppLocDesc'][3] = 0; $lang['AppPrivate'] = "privato"; $lang['AppVoteInfo'] = "vota per questo appuntamento"; --- 189,198 ---- $lang['AppGetIcal'] = "Scarica l'Ical File"; # You can expand this as you like ! # see also config.pinc AppLocDesc # colors depend on style sheets $lang['AppLoc'][0] = "Ufficio"; $lang['AppLoc'][1] = "Fuori"; $lang['AppLoc'][2] = "Vacanza"; $lang['AppLoc'][3] = "Malato"; $lang['AppPrivate'] = "privato"; $lang['AppVoteInfo'] = "vota per questo appuntamento"; Index: ko.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/ko.p3,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -r1.19 -r1.20 *** ko.p3 2001/08/30 12:26:44 1.19 --- ko.p3 2001/08/30 13:36:03 1.20 *************** *** 189,204 **** $lang['AppGetIcal'] = "Get Ical File"; # You can expand this as you like ! # AppLocDesc = 1 shows Description in calendar ! # AppLocDesc = 0 does not show Description in calendar # colors depend on style sheets $lang['AppLoc'][0] = "»ç³»"; - $lang['AppLocDesc'][0] = 1; $lang['AppLoc'][1] = "»ç¿Ü"; - $lang['AppLocDesc'][1] = 1; $lang['AppLoc'][2] = "ÈÞ°¡"; - $lang['AppLocDesc'][2] = 0; $lang['AppLoc'][3] = "Á¶Åð"; - $lang['AppLocDesc'][3] = 0; - # º´°¡¿¡¼ Á¶Åð·Î º¯°æ, ±âŸ Ãß°¡ $lang['AppPrivate'] = "private"; $lang['AppVoteInfo'] = "vote for this appointment"; --- 189,198 ---- $lang['AppGetIcal'] = "Get Ical File"; # You can expand this as you like ! # see also config.pinc AppLocDesc # colors depend on style sheets $lang['AppLoc'][0] = "»ç³»"; $lang['AppLoc'][1] = "»ç¿Ü"; $lang['AppLoc'][2] = "ÈÞ°¡"; $lang['AppLoc'][3] = "Á¶Åð"; $lang['AppPrivate'] = "private"; $lang['AppVoteInfo'] = "vote for this appointment"; Index: nl.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/nl.p3,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** nl.p3 2001/08/30 12:26:44 1.12 --- nl.p3 2001/08/30 13:36:03 1.13 *************** *** 191,205 **** $lang['AppGetIcal'] = "Download Ical File"; # You can expand this as you like ! # AppLocDesc = 1 shows Description in calendar ! # AppLocDesc = 0 does not show Description in calendar # colors depend on style sheets $lang['AppLoc'][0] = "Afspraak"; - $lang['AppLocDesc'][0] = 1; $lang['AppLoc'][1] = "Afwezig"; - $lang['AppLocDesc'][1] = 1; $lang['AppLoc'][2] = "Vakantie"; - $lang['AppLocDesc'][2] = 0; $lang['AppLoc'][3] = "Ziek"; - $lang['AppLocDesc'][3] = 0; $lang['AppPrivate'] = "prive"; $lang['AppVoteInfo'] = "stem voor deze afspraak"; --- 191,200 ---- $lang['AppGetIcal'] = "Download Ical File"; # You can expand this as you like ! # see also config.pinc AppLocDesc # colors depend on style sheets $lang['AppLoc'][0] = "Afspraak"; $lang['AppLoc'][1] = "Afwezig"; $lang['AppLoc'][2] = "Vakantie"; $lang['AppLoc'][3] = "Ziek"; $lang['AppPrivate'] = "prive"; $lang['AppVoteInfo'] = "stem voor deze afspraak"; Index: pl.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/pl.p3,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** pl.p3 2001/08/30 12:26:44 1.16 --- pl.p3 2001/08/30 13:36:03 1.17 *************** *** 195,209 **** $lang['AppGetIcal'] = "Pobierz plik typu Ical"; # You can expand this as you like ! # AppLocDesc = 1 shows Description in calendar ! # AppLocDesc = 0 does not show Description in calendar # colors depend on style sheets $lang['AppLoc'][0] = "Biuro"; - $lang['AppLocDesc'][0] = 1; $lang['AppLoc'][1] = "Poza biurem"; - $lang['AppLocDesc'][1] = 1; $lang['AppLoc'][2] = "Wakacje"; - $lang['AppLocDesc'][2] = 0; $lang['AppLoc'][3] = "chory"; - $lang['AppLocDesc'][3] = 0; $lang['AppPrivate'] = "prywatne"; $lang['AppVoteInfo'] = "g³osuj za tym spotkaniem"; --- 195,204 ---- $lang['AppGetIcal'] = "Pobierz plik typu Ical"; # You can expand this as you like ! # see also config.pinc AppLocDesc # colors depend on style sheets $lang['AppLoc'][0] = "Biuro"; $lang['AppLoc'][1] = "Poza biurem"; $lang['AppLoc'][2] = "Wakacje"; $lang['AppLoc'][3] = "chory"; $lang['AppPrivate'] = "prywatne"; $lang['AppVoteInfo'] = "g³osuj za tym spotkaniem"; Index: pt-br.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/pt-br.p3,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -r1.32 -r1.33 *** pt-br.p3 2001/08/30 12:26:44 1.32 --- pt-br.p3 2001/08/30 13:36:03 1.33 *************** *** 190,204 **** $lang['AppGetIcal'] = "Importar arquivos Ical"; # You can expand this as you like ! # AppLocDesc = 1 shows Description in calendar ! # AppLocDesc = 0 does not show Description in calendar # colors depend on style sheets $lang['AppLoc'][0] = "Escritório"; - $lang['AppLocDesc'][0] = 1; $lang['AppLoc'][1] = "Fora"; - $lang['AppLocDesc'][1] = 1; $lang['AppLoc'][2] = "Férias"; - $lang['AppLocDesc'][2] = 0; $lang['AppLoc'][3] = "Doente"; - $lang['AppLocDesc'][3] = 0; $lang['AppPrivate'] = "private"; $lang['AppVoteInfo'] = "votar para esse compromisso"; --- 190,199 ---- $lang['AppGetIcal'] = "Importar arquivos Ical"; # You can expand this as you like ! # see also config.pinc AppLocDesc # colors depend on style sheets $lang['AppLoc'][0] = "Escritório"; $lang['AppLoc'][1] = "Fora"; $lang['AppLoc'][2] = "Férias"; $lang['AppLoc'][3] = "Doente"; $lang['AppPrivate'] = "private"; $lang['AppVoteInfo'] = "votar para esse compromisso"; Index: ru.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/ru.p3,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -r1.39 -r1.40 *** ru.p3 2001/08/30 12:26:44 1.39 --- ru.p3 2001/08/30 13:36:03 1.40 *************** *** 189,203 **** $lang['AppGetIcal'] = "ðÏÌÕÞÉÔØ ÆÁÊÌ Ical"; # You can expand this as you like ! # AppLocDesc = 1 shows Description in calendar ! # AppLocDesc = 0 does not show Description in calendar # colors depend on style sheets $lang['AppLoc'][0] = "ïÆÉÓ"; - $lang['AppLocDesc'][0] = 1; $lang['AppLoc'][1] = "÷ÎÅ"; - $lang['AppLocDesc'][1] = 1; $lang['AppLoc'][2] = "ïÔÐÕÓË"; - $lang['AppLocDesc'][2] = 0; $lang['AppLoc'][3] = "âÏÌØÎÉÞÎÙÊ"; - $lang['AppLocDesc'][3] = 0; $lang['AppPrivate'] = "ÞÁÓÔÎÙÊ"; $lang['AppVoteInfo'] = "ÇÏÌÏÓÏ×ÁÔØ ÚÁ ÜÔÏ ÓÏÂÙÔÉÅ"; --- 189,198 ---- $lang['AppGetIcal'] = "ðÏÌÕÞÉÔØ ÆÁÊÌ Ical"; # You can expand this as you like ! # see also config.pinc AppLocDesc # colors depend on style sheets $lang['AppLoc'][0] = "ïÆÉÓ"; $lang['AppLoc'][1] = "÷ÎÅ"; $lang['AppLoc'][2] = "ïÔÐÕÓË"; $lang['AppLoc'][3] = "âÏÌØÎÉÞÎÙÊ"; $lang['AppPrivate'] = "ÞÁÓÔÎÙÊ"; $lang['AppVoteInfo'] = "ÇÏÌÏÓÏ×ÁÔØ ÚÁ ÜÔÏ ÓÏÂÙÔÉÅ"; Index: tw.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/tw.p3,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -r1.39 -r1.40 *** tw.p3 2001/08/30 12:26:44 1.39 --- tw.p3 2001/08/30 13:36:03 1.40 *************** *** 193,207 **** $lang['AppGetIcal'] = "Get Ical File"; # You can expand this as you like ! # AppLocDesc = 1 shows Description in calendar ! # AppLocDesc = 0 does not show Description in calendar # colors depend on style sheets $lang['AppLoc'][0] = "¿ë¤½«Ç"; - $lang['AppLocDesc'][0] = 1; $lang['AppLoc'][1] = "¥~¥X"; - $lang['AppLocDesc'][1] = 1; $lang['AppLoc'][2] = "Vacation"; - $lang['AppLocDesc'][2] = 0; $lang['AppLoc'][3] = "Sick"; - $lang['AppLocDesc'][3] = 0; $lang['AppPrivate'] = "private"; $lang['AppVoteInfo'] = "¦^ÂЯà§_°Ñ¥[·|ij"; --- 193,202 ---- $lang['AppGetIcal'] = "Get Ical File"; # You can expand this as you like ! # see also config.pinc AppLocDesc # colors depend on style sheets $lang['AppLoc'][0] = "¿ë¤½«Ç"; $lang['AppLoc'][1] = "¥~¥X"; $lang['AppLoc'][2] = "Vacation"; $lang['AppLoc'][3] = "Sick"; $lang['AppPrivate'] = "private"; $lang['AppVoteInfo'] = "¦^ÂЯà§_°Ñ¥[·|ij"; Index: zh.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/zh.p3,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -r1.39 -r1.40 *** zh.p3 2001/08/30 12:26:44 1.39 --- zh.p3 2001/08/30 13:36:03 1.40 *************** *** 193,207 **** $lang['AppGetIcal'] = "Get Ical File"; # You can expand this as you like ! # AppLocDesc = 1 shows Description in calendar ! # AppLocDesc = 0 does not show Description in calendar # colors depend on style sheets $lang['AppLoc'][0] = "±æ¹«ÊÒ"; - $lang['AppLocDesc'][0] = 1; $lang['AppLoc'][1] = "Íâ³ö"; - $lang['AppLocDesc'][1] = 1; $lang['AppLoc'][2] = "Vacation"; - $lang['AppLocDesc'][2] = 0; $lang['AppLoc'][3] = "Sick"; - $lang['AppLocDesc'][3] = 0; $lang['AppPrivate'] = "private"; $lang['AppVoteInfo'] = "»Ø¸²ÄÜ·ñ²Î¼Ó»áÒé"; --- 193,202 ---- $lang['AppGetIcal'] = "Get Ical File"; # You can expand this as you like ! # see also config.pinc AppLocDesc # colors depend on style sheets $lang['AppLoc'][0] = "±æ¹«ÊÒ"; $lang['AppLoc'][1] = "Íâ³ö"; $lang['AppLoc'][2] = "Vacation"; $lang['AppLoc'][3] = "Sick"; $lang['AppPrivate'] = "private"; $lang['AppVoteInfo'] = "»Ø¸²ÄÜ·ñ²Î¼Ó»áÒé"; Index: config.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/config.pinc,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -r1.63 -r1.64 *** config.pinc 2001/08/30 12:32:54 1.63 --- config.pinc 2001/08/30 13:36:03 1.64 *************** *** 300,303 **** --- 300,315 ---- $tutos[holiday]['IT'] = 1; # + # Location types for appointments + # + # AppLocDesc = 1 shows Description in calendar + # AppLocDesc = 0 does not show Description in calendar + # colors depend on style sheets + # + $tutos[applocdesc][0] = 1; + $tutos[applocdesc][1] = 1; + $tutos[applocdesc][2] = 0; + $tutos[applocdesc][3] = 0; + + # # ProjectRoles # define where to search for given names Index: appointment.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/appointment.pinc,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -r1.51 -r1.52 *** appointment.pinc 2001/08/26 17:35:33 1.51 --- appointment.pinc 2001/08/30 13:36:03 1.52 *************** *** 1006,1010 **** } ! if ( $lang['AppLocDesc'][$this->outside] == 1 ) { $descr = eregi_replace("\n","<BR>",$this->descr); echo " <TR><TD CLASS=". $class ." COLSPAN=3>". $descr ."</TD></TR>\n"; --- 1006,1010 ---- } ! if ( $tutos['AppLocDesc'][$this->outside] == 1 ) { $descr = eregi_replace("\n","<BR>",$this->descr); echo " <TR><TD CLASS=". $class ." COLSPAN=3>". $descr ."</TD></TR>\n"; Index: webelements.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/webelements.p3,v retrieving revision 1.71 retrieving revision 1.72 diff -C2 -r1.71 -r1.72 *** webelements.p3 2001/08/30 13:21:30 1.71 --- webelements.p3 2001/08/30 13:36:04 1.72 *************** *** 35,42 **** if ( file_exists($lg .".p3") && is_readable($lg .".p3") ) { if ( "en-us" == $lg ) { ! include("en.p3"); ! include ( "en-us.p3"); } else { ! include ( $lg .".p3"); } $tutos[lang] = $lg; --- 35,42 ---- if ( file_exists($lg .".p3") && is_readable($lg .".p3") ) { if ( "en-us" == $lg ) { ! include("en.p3"); ! include ( "en-us.p3"); } else { ! include ( $lg .".p3"); } $tutos[lang] = $lg; *************** *** 51,58 **** if ( file_exists($current_user->lang .".p3") && is_readable($current_user->lang .".p3") ) { if ( "en-us" == strtolower($current_user->lang) ) { ! include("en.p3"); ! include ( "en-us.p3"); } else { ! include ( $current_user->lang.".p3"); } include ( $current_user->lang .".p3"); --- 51,58 ---- if ( file_exists($current_user->lang .".p3") && is_readable($current_user->lang .".p3") ) { if ( "en-us" == strtolower($current_user->lang) ) { ! include("en.p3"); ! include ( "en-us.p3"); } else { ! include ( $current_user->lang.".p3"); } include ( $current_user->lang .".p3"); *************** *** 189,193 **** $lang['AppRemind'] = array(); $lang['AppLoc'] = array(); - $lang['AppLocDesc'] = array(); $lang['BugStates'] = array(); $lang['BugClasses'] = array(); --- 189,192 ---- |
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv16938 Modified Files: acl_new.php acl_show.php bug_overview.php calendar.php minical.php mytutos.php task_overview.php team_new.php webelements.p3 Log Message: HTML fixes Index: acl_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/acl_new.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** acl_new.php 2001/08/27 14:26:41 1.12 --- acl_new.php 2001/08/30 13:21:30 1.13 *************** *** 106,112 **** echo "<TR VALIGN=top>\n"; ! echo " <TH WIDTH=30% COLSPAN=2>". $lang['ACLread'] ."</TH>\n"; ! echo " <TH WIDTH=30% COLSPAN=2>". $lang['ACLread'] ."<BR>". $lang['ACLmodify'] ."</TH>\n"; ! echo " <TH WIDTH=30% COLSPAN=2>". $lang['ACLread'] ."<BR>". $lang['ACLmodify'] ."<BR>". $lang['ACLdelete'] ."</TH>\n"; echo "</TR>\n"; --- 106,112 ---- echo "<TR VALIGN=top>\n"; ! echo " <TH WIDTH=\"30%\" COLSPAN=2>". $lang['ACLread'] ."</TH>\n"; ! echo " <TH WIDTH=\"30%\" COLSPAN=2>". $lang['ACLread'] ."<BR>". $lang['ACLmodify'] ."</TH>\n"; ! echo " <TH WIDTH=\"30%\" COLSPAN=2>". $lang['ACLread'] ."<BR>". $lang['ACLmodify'] ."<BR>". $lang['ACLdelete'] ."</TH>\n"; echo "</TR>\n"; Index: acl_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/acl_show.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** acl_show.php 2001/08/26 12:16:40 1.7 --- acl_show.php 2001/08/30 13:21:30 1.8 *************** *** 57,63 **** echo "<TR VALIGN=top>\n"; ! echo " <TH WIDTH=30% COLSPAN=2>". $lang[ACLread] ."</TH>\n"; ! echo " <TH WIDTH=30% COLSPAN=2>". $lang[ACLread] ."<BR>". $lang[ACLmodify] ."</TH>\n"; ! echo " <TH WIDTH=30% COLSPAN=2>". $lang[ACLread] ."<BR>". $lang[ACLmodify] ."<BR>". $lang[ACLdelete] ."</TH>\n"; echo "</TR>\n"; --- 57,63 ---- echo "<TR VALIGN=top>\n"; ! echo " <TH WIDTH=\"30%\" COLSPAN=2>". $lang[ACLread] ."</TH>\n"; ! echo " <TH WIDTH=\"30%\" COLSPAN=2>". $lang[ACLread] ."<BR>". $lang[ACLmodify] ."</TH>\n"; ! echo " <TH WIDTH=\"30%\" COLSPAN=2>". $lang[ACLread] ."<BR>". $lang[ACLmodify] ."<BR>". $lang[ACLdelete] ."</TH>\n"; echo "</TR>\n"; *************** *** 114,116 **** CVS Info: $Id$ $Author$ ! --> \ No newline at end of file --- 114,116 ---- CVS Info: $Id$ $Author$ ! --> Index: bug_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug_overview.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** bug_overview.php 2001/08/24 15:04:00 1.17 --- bug_overview.php 2001/08/30 13:21:30 1.18 *************** *** 316,325 **** echo "<TD WIDTH=". ($w +1) .">"; if ( $part1 > 0 ) { ! echo $b->getLink("<IMG BORDER=0 SRC=../html/white.png WIDTH=". $part1 ." HEIGHT=$h>"); } ! echo $b->getlink("<IMG BORDER=0 SRC=../html/". $b->c_state[$b->state] .".png WIDTH=". $part2 ." HEIGHT=$h>"); if ( $part3 > 0 ) { ! echo $b->getLink("<IMG BORDER=0 SRC=../html/white.png WIDTH=". $part3 ." HEIGHT=$h>"); } echo "</TD>\n"; --- 316,325 ---- echo "<TD WIDTH=". ($w +1) .">"; if ( $part1 > 0 ) { ! echo $b->getLink("<IMG BORDER=0 SRC=\"../html/white.png\" WIDTH=". $part1 ." HEIGHT=$h>"); } ! echo $b->getlink("<IMG BORDER=0 SRC=\"../html/". $b->c_state[$b->state] .".png\" WIDTH=". $part2 ." HEIGHT=$h>"); if ( $part3 > 0 ) { ! echo $b->getLink("<IMG BORDER=0 SRC=\"../html/white.png\" WIDTH=". $part3 ." HEIGHT=$h>"); } echo "</TD>\n"; *************** *** 569,571 **** CVS Info: $Id$ $Author$ ! --> \ No newline at end of file --- 569,571 ---- CVS Info: $Id$ $Author$ ! --> Index: calendar.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/calendar.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -r1.26 -r1.27 *** calendar.php 2001/08/27 14:13:55 1.26 --- calendar.php 2001/08/30 13:21:30 1.27 *************** *** 199,203 **** $hastable = 1; } else { ! echo " <TR><TD CLASS=". $dinfo[color] ." COLSPAN=3><IMG SRC=\"../html/black.png\" WIDTH=100% HEIGHT=1></TD></TR>\n"; } --- 199,203 ---- $hastable = 1; } else { ! echo " <TR><TD CLASS=". $dinfo[color] ." COLSPAN=3><IMG SRC=\"../html/black.png\" WIDTH=\"100%\" HEIGHT=1></TD></TR>\n"; } Index: minical.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/minical.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** minical.php 2001/08/25 12:28:04 1.6 --- minical.php 2001/08/30 13:21:30 1.7 *************** *** 46,50 **** $y = Date("Y"); } ! echo "<TABLE CLASS=single BORDER=0 CELLPADDING=2 CELLSPACING=0 WIDTH=100%>\n"; echo "<TR>\n"; echo "\n"; --- 46,50 ---- $y = Date("Y"); } ! echo "<TABLE CLASS=single BORDER=0 CELLPADDING=2 CELLSPACING=0 WIDTH=\"100%\">\n"; echo "<TR>\n"; echo "\n"; *************** *** 135,137 **** CVS Info: $Id$ $Author$ ! --> \ No newline at end of file --- 135,137 ---- CVS Info: $Id$ $Author$ ! --> Index: mytutos.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/mytutos.php,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -r1.30 -r1.31 *** mytutos.php 2001/08/27 14:13:55 1.30 --- mytutos.php 2001/08/30 13:21:30 1.31 *************** *** 126,130 **** $hastable = 1; } else { ! echo " <TR><TD CLASS=". $dinfo[color] ." COLSPAN=3><IMG SRC=\"../html/black.png\" WIDTH=100% HEIGHT=1></TD></TR>\n"; } // Show appointments or task --- 126,130 ---- $hastable = 1; } else { ! echo " <TR><TD CLASS=". $dinfo[color] ." COLSPAN=3><IMG SRC=\"../html/black.png\" WIDTH=\"100%\" HEIGHT=1></TD></TR>\n"; } // Show appointments or task Index: task_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_overview.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** task_overview.php 2001/08/26 13:31:36 1.7 --- task_overview.php 2001/08/30 13:21:30 1.8 *************** *** 24,28 **** DoubleTableStart(1,0); echo " <TR>\n"; ! echo " <TH COLSPAN=9 WIDTH=100%>". $lang['TaskOverview'] ." ". $lang['forphrase'] ." " . $parent->getLink() ."</TH>\n"; echo " </TR>\n"; echo " <TR>\n"; --- 24,28 ---- DoubleTableStart(1,0); echo " <TR>\n"; ! echo " <TH COLSPAN=9 WIDTH=\"100%\">". $lang['TaskOverview'] ." ". $lang['forphrase'] ." " . $parent->getLink() ."</TH>\n"; echo " </TR>\n"; echo " <TR>\n"; *************** *** 47,51 **** echo "<TR>"; echo "<TD COLSPAN=4></TD>"; ! echo "<TD COLSPAN=2><IMG WIDTH=202 HEIGHT=1 SRC=../html/black.png></TD>"; echo "<TD COLSPAN=2></TD>"; echo "</TR>"; --- 47,51 ---- echo "<TR>"; echo "<TD COLSPAN=4></TD>"; ! echo "<TD COLSPAN=2><IMG WIDTH=202 HEIGHT=1 SRC=\"../html/black.png\"></TD>"; echo "<TD COLSPAN=2></TD>"; echo "</TR>"; Index: team_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/team_new.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** team_new.php 2001/08/27 14:26:41 1.9 --- team_new.php 2001/08/30 13:21:30 1.10 *************** *** 85,89 **** echo "<TD COLSPAN=1> </TD>"; ! echo "<TD COLSPAN=2 VALIGN=top><TABLE WIDTH=100% BORDER=0 CELLSPACING=0>"; echo "<TR><TH COLSPAN=2>". $lang['TeamPosMember'] ."</TH></TR>\n"; if ( $current_user->admin ) { --- 85,89 ---- echo "<TD COLSPAN=1> </TD>"; ! echo "<TD COLSPAN=2 VALIGN=top><TABLE WIDTH=\"100%\" BORDER=0 CELLSPACING=0>"; echo "<TR><TH COLSPAN=2>". $lang['TeamPosMember'] ."</TH></TR>\n"; if ( $current_user->admin ) { Index: webelements.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/webelements.p3,v retrieving revision 1.70 retrieving revision 1.71 diff -C2 -r1.70 -r1.71 *** webelements.p3 2001/08/30 12:32:54 1.70 --- webelements.p3 2001/08/30 13:21:30 1.71 *************** *** 452,456 **** # if ( ! isset($tutos[logo]) ) { ! echo " <TD WIDTH=16% COLSPAN=2 VALIGN=middle ALIGN=left> <A CLASS=nodeco 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"; --- 452,456 ---- # if ( ! isset($tutos[logo]) ) { ! echo " <TD WIDTH=\"16%\" COLSPAN=2 VALIGN=middle ALIGN=left> <A CLASS=nodeco 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"; |
From: Boris W. <bw...@us...> - 2001-08-30 13:12:19
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv14576 Modified Files: task.pinc Log Message: Show references for tasks when overview is for a person or team Index: task.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/task.pinc,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -r1.37 -r1.38 *** task.pinc 2001/08/26 15:31:26 1.37 --- task.pinc 2001/08/30 13:12:16 1.38 *************** *** 676,680 **** echo " "; } ! echo $this->getLink()." </TD>\n"; echo " <TD ALIGN=right VALIGN=top NOWRAP> ". sprintf("%3.2f",$c ) ." % </TD>\n"; echo " <TD VALIGN=top> ". $this->s_start->getDate() ." </TD>\n"; --- 676,684 ---- echo " "; } ! if ( ($parent->getType() == "address")||($parent->getType() == "team")) { ! echo $this->parent->getLink() ." --> ". $this->getLink()." </TD>\n"; ! } else { ! echo $this->getLink()." </TD>\n"; ! } echo " <TD ALIGN=right VALIGN=top NOWRAP> ". sprintf("%3.2f",$c ) ." % </TD>\n"; echo " <TD VALIGN=top> ". $this->s_start->getDate() ." </TD>\n"; |
From: Gero K. <gok...@us...> - 2001-08-30 12:33:48
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv2570/php Modified Files: watchlist_del.php Log Message: bugfix Index: watchlist_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/watchlist_del.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** watchlist_del.php 2001/08/27 14:11:38 1.6 --- watchlist_del.php 2001/08/30 12:33:46 1.7 *************** *** 17,20 **** --- 17,23 ---- $msg = ""; + if ( empty($gotourl) ) { + $gotourl = "$HTTP_REFERER"; + } if ( empty($adr) ) { $adr = $current_user->id; |
From: Gero K. <gok...@us...> - 2001-08-30 12:32:58
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv2387/php Modified Files: product_ins.php config.pinc webelements.p3 Log Message: generic search and check for names Index: product_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_ins.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** product_ins.php 2001/08/30 12:26:44 1.17 --- product_ins.php 2001/08/30 12:32:54 1.18 *************** *** 42,50 **** # Add given Role if ( isset($rfn) ) { ! if ( ($role == 6) || ($role == 7) || ($role == 8) || ($role == 9) ) { ! $m = check_visitor($rfn,"rfn","rl"); ! } else { ! $m = check_address($rfn,"rfn","rl"); ! } if ( $m->id > 0 ) { $p->setRole($m,$role); --- 42,46 ---- # Add given Role if ( isset($rfn) ) { ! $m = check_address($rfn,"rfn","rl",$tutos[rolecheck][$role]); if ( $m->id > 0 ) { $p->setRole($m,$role); Index: config.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/config.pinc,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -r1.62 -r1.63 *** config.pinc 2001/08/30 12:28:13 1.62 --- config.pinc 2001/08/30 12:32:54 1.63 *************** *** 314,317 **** --- 314,319 ---- $tutos[rolecheck][6] = "atcd"; $tutos[rolecheck][7] = "atcd"; + $tutos[rolecheck][8] = "atcd"; + $tutos[rolecheck][9] = "atcd"; # # Enable/Disable parts of TUTOS Index: webelements.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/webelements.p3,v retrieving revision 1.69 retrieving revision 1.70 diff -C2 -r1.69 -r1.70 *** webelements.p3 2001/08/30 12:26:44 1.69 --- webelements.p3 2001/08/30 12:32:54 1.70 *************** *** 934,1091 **** } /* --------------------------------------------------------------------------- - * check if a given String is a visitor and what type of visitor - * field = name in url - * field2 = arrayname for selections url - * - */ - Function check_visitor($name, $field = "vfn", $field2 = "vl") { - global $conn,$msg,$gotourl,$lang; - - $gotourl= addUrlParameter($gotourl,$field ."=".UrlEncode($name)); - if ( empty($name) ) { - return new company($conn); - } - $q1 = "SELECT * from addresses WHERE". DB_Like("f_name",$name,"m_name","l_name"); - $r1 = @DB_Exec($conn,$q1); - $n1 = DB_NumRows($r1); - - $q2 = "SELECT * from companies WHERE". DB_Like("name",$name); - $r2 = @DB_Exec($conn,$q2); - $n2 = DB_NumRows($r2); - - $q3 = "SELECT * from departments WHERE". DB_Like("name",$name); - $r3 = @DB_Exec($conn,$q3); - $n3 = DB_NumRows($r3); - - $n = $n1 + $n2 + $n3; - - if ( 0 == $n) { - $msg .= sprintf($lang['Err0007'],$name) ."<BR>"; - } else if ( $n > 10 ) { - $msg .= sprintf($lang['Err0008'],$name,$n) ."<BR>"; - $msg .= $lang['Err0006'] ."<BR>"; - } else if ( $n > 1) { - $msg .= sprintf($lang['Err0008'],$name,$n) ."<BR>"; - $msg .= $lang['Err0006'] ."<BR>"; - $a = 0; - while ( $a < $n1 ) { - $gotourl .= "&". $field2 ."[]=". DB_Result($r1, $a, "id"); - $a++; - } - $a = 0; - while ( $a < $n2 ) { - $gotourl .="&". $field2 ."[]=". DB_Result($r2, $a, "id"); - $a++; - } - $a = 0; - while ( $a < $n3 ) { - $gotourl .= "&". $field2 ."[]=". DB_Result($r3, $a, "id"); - $a++; - } - } else { - /* Found exactly one */ - if ( $n1 == 1 ) { - $v = new tutos_address($conn); - $v->read_result($r1,0); - } else if ( $n2 == 1) { - $v = new company($conn); - $v->read_result($r2,0); - } else { - $v = new department($conn); - $v->read_result($r3,0); - } - DB_FreeResult($r1); - DB_FreeResult($r2); - DB_FreeResult($r3); - return $v; - } - DB_FreeResult($r1); - DB_FreeResult($r2); - DB_FreeResult($r3); - return; - } - /* --------------------------------------------------------------------------- - * check a company name - * field = name in url - * field2 = arrayname for selections url - * - */ - Function check_company($name,$field = "company",$field2 = "cl") { - global $conn,$msg,$gotourl,$lang; - - $gotourl= addUrlParameter($gotourl,$field ."=".UrlEncode($name)); - if ( empty($name) ) { - return new company($conn); - } - $q = "SELECT * from companies WHERE". DB_Like("name",$name); - $r = @DB_Exec($conn,$q); - $n = DB_NumRows($r); - if ( 0 == $n) { - $msg .= sprintf($lang['Err0012'],$name) ."<BR>"; - } else if ( $n > 10 ) { - $msg .= sprintf($lang['Err0011'],$name,$n) ."<BR>"; - $msg .= $lang['Err0006'] ."<BR>"; - } else if ( $n > 1) { - $msg .= sprintf($lang['Err0011'],$name,$n) ."<BR>"; - $msg .= $lang['Err0006'] ."<BR>"; - $a = 0; - while ( $a < $n ) { - $gotourl .= "&". $field2 ."[]=". DB_Result($r, $a, "id"); - $a++; - } - } else { - $c = new company($conn); - $c->read_result($r,0); - DB_FreeResult($r); - return $c; - } - DB_FreeResult($r); - return; - } - - /* --------------------------------------------------------------------------- - * check a department name - * field = name in url - * field2 = arrayname for selections url - * - */ - Function check_department($name,$field = "department",$field2 = "dl") { - global $conn,$msg,$gotourl,$lang; - - $gotourl= addUrlParameter($gotourl,$field."=".UrlEncode($name)); - if ( empty($name) ) { - return; - } - $q = "SELECT * from departments WHERE". DB_Like("name",$name); - $r = @DB_Exec($conn,$q); - $n = DB_NumRows($r); - if ( 0 == $n) { - $msg .= sprintf($lang['Err0013'],$name) ."<BR>"; - } else if ( $n > 10 ) { - $msg .= sprintf($lang['Err0010'],$name,$n) ."<BR>"; - $msg .= $lang['Err0006'] ."<BR>"; - } else if ( $n > 1) { - $msg .= sprintf($lang['Err0010'],$name,$n) ."<BR>"; - $msg .= $lang['Err0006'] ."<BR>"; - $a = 0; - while ( $a < $n ) { - $gotourl .="&". $field2 ."[]=". DB_Result($r, $a, "id"); - $a++; - } - } else { - $d = new department($conn); - $d->read_result($r,0); - DB_FreeResult($r); - return $d; - } - DB_FreeResult($r); - return; - } - /* --------------------------------------------------------------------------- * check a address name * field = name in url * field2 = arrayname for selections url */ ! Function check_address($name,$field,$field2) { global $conn,$msg,$gotourl,$lang; --- 934,947 ---- } /* --------------------------------------------------------------------------- * check a address name * field = name in url * field2 = arrayname for selections url + * mode = where to search + * a = addresses + * t = teams + * c = companies + * d = departments */ ! Function check_address($name,$field,$field2,$mode = "at") { global $conn,$msg,$gotourl,$lang; *************** *** 1094,1134 **** return; } ! $q1 = "SELECT * from addresses WHERE". DB_Like ("f_name",$name,"m_name","l_name"); ! $r1 = @DB_Exec($conn,$q1); ! $n1 = DB_NumRows($r1); ! ! $q2 = "SELECT * from teams WHERE". DB_Like ("name",$name); ! $r2 = @DB_Exec($conn,$q2); ! $n2 = DB_NumRows($r2); ! ! ! $n = $n1 + $n2; if ( 0 == $n) { ! $msg .= sprintf($lang['Err0019'],$name,$n) ."<BR>"; ! DB_FreeResult($r); return; } if ( $n > 10 ) { $msg .= sprintf($lang['Err0018'],$name,$n) ."<BR>"; $msg .= $lang['Err0006'] ."<BR>"; DB_FreeResult($r); return; } if ( $n > 1) { $msg .= sprintf($lang['Err0018'],$name,$n) ."<BR>"; $msg .= $lang['Err0006'] ."<BR>"; ! $a = 0; ! while ( $a < $n1 ) { ! $gotourl = addUrlParameter($gotourl,$field2."[]=".DB_Result($r1, $a, "id")); ! $a++; ! } ! $a = 0; ! while ( $a < $n2 ) { ! $gotourl = addUrlParameter($gotourl,$field2."[]=".DB_Result($r2, $a, "id")); ! $a++; ! } ! DB_FreeResult($r1); ! DB_FreeResult($r2); return; } --- 950,1039 ---- return; } ! $n = 0; ! if ( strstr($mode,"a") != FALSE ) { ! $q1 = "SELECT * from addresses WHERE". DB_Like ("f_name",$name,"m_name","l_name"); ! $r1 = @DB_Exec($conn,$q1); ! $n1 = DB_NumRows($r1); ! $n += $n1; ! } ! if ( strstr($mode,"t") != FALSE ) { ! $q2 = "SELECT * from teams WHERE". DB_Like ("name",$name); ! $r2 = @DB_Exec($conn,$q2); ! $n2 = DB_NumRows($r2); ! $n += $n2; ! } ! if ( strstr($mode,"d") != FALSE ) { ! $q3 = "SELECT * from departments WHERE". DB_Like("name",$name); ! $r3 = @DB_Exec($conn,$q3); ! $n3 = DB_NumRows($r3); ! $n += $n3; ! } ! if ( strstr($mode,"c") != FALSE ) { ! $q4 = "SELECT * from companies WHERE". DB_Like("name",$name); ! $r4 = @DB_Exec($conn,$q4); ! $n4 = DB_NumRows($r4); ! $n += $n4; ! } if ( 0 == $n) { ! if ( strstr($mode,"c") != FALSE ) { ! $msg .= sprintf($lang['Err0012'],$name) ."<BR>"; ! DB_FreeResult($r4); ! } ! if ( strstr($mode,"d") != FALSE ) { ! $msg .= sprintf($lang['Err0013'],$name) ."<BR>"; ! DB_FreeResult($r3); ! } ! if ( strstr($mode,"a") != FALSE ) { ! $msg .= sprintf($lang['Err0019'],$name,$n) ."<BR>"; ! DB_FreeResult($r1); ! } return; } if ( $n > 10 ) { + # Valid for xx entries $msg .= sprintf($lang['Err0018'],$name,$n) ."<BR>"; + # Ask for detailed selection $msg .= $lang['Err0006'] ."<BR>"; DB_FreeResult($r); return; } + if ( $n > 1) { $msg .= sprintf($lang['Err0018'],$name,$n) ."<BR>"; + # Ask for detailed selection $msg .= $lang['Err0006'] ."<BR>"; ! if ( strstr($mode,"a") != FALSE ) { ! $a = 0; ! while ( $a < $n1 ) { ! $gotourl = addUrlParameter($gotourl,$field2."[]=".DB_Result($r1, $a, "id")); ! $a++; ! } ! DB_FreeResult($r1); ! } ! if ( strstr($mode,"t") != FALSE ) { ! $a = 0; ! while ( $a < $n2 ) { ! $gotourl = addUrlParameter($gotourl,$field2."[]=".DB_Result($r2, $a, "id")); ! $a++; ! } ! DB_FreeResult($r2); ! } ! if ( strstr($mode,"d") != FALSE ) { ! $a = 0; ! while ( $a < $n3 ) { ! $gotourl = addUrlParameter($gotourl,$field2."[]=".DB_Result($r3, $a, "id")); ! $a++; ! } ! DB_FreeResult($r3); ! } ! if ( strstr($mode,"c") != FALSE ) { ! $a = 0; ! while ( $a < $n4 ) { ! $gotourl = addUrlParameter($gotourl,$field2."[]=".DB_Result($r4, $a, "id")); ! $a++; ! } ! DB_FreeResult($r4); ! } return; } *************** *** 1141,1147 **** $a->read_result($r2,0); } ! DB_FreeResult($r1); ! DB_FreeResult($r2); return $a; } --- 1046,1070 ---- $a->read_result($r2,0); } + if ( $n3 == 1 ) { + $a = new department($conn); + $a->read_result($r3,0); + } + if ( $n4 == 1 ) { + $a = new company($conn); + $a->read_result($r4,0); + } ! if ( strstr($mode,"a") != FALSE ) { ! DB_FreeResult($r1); ! } ! if ( strstr($mode,"t") != FALSE ) { ! DB_FreeResult($r2); ! } ! if ( strstr($mode,"d") != FALSE ) { ! DB_FreeResult($r3); ! } ! if ( strstr($mode,"c") != FALSE ) { ! DB_FreeResult($r4); ! } return $a; } |
From: Gero K. <gok...@us...> - 2001-08-30 12:28:17
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv32703/php Modified Files: config.pinc db.p3 department_ins.php installation_ins.php location_ins.php app_ins.php Log Message: generic search and check for names Index: config.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/config.pinc,v retrieving revision 1.61 retrieving revision 1.62 diff -C2 -r1.61 -r1.62 *** config.pinc 2001/08/26 15:31:26 1.61 --- config.pinc 2001/08/30 12:28:13 1.62 *************** *** 300,303 **** --- 300,318 ---- $tutos[holiday]['IT'] = 1; # + # ProjectRoles + # define where to search for given names + # a = search addresses + # t = search teams + # c = search companies + # d = search departments + # + $tutos[rolecheck][1] = "at"; + $tutos[rolecheck][2] = "at"; + $tutos[rolecheck][3] = "at"; + $tutos[rolecheck][4] = "at"; + $tutos[rolecheck][5] = "at"; + $tutos[rolecheck][6] = "atcd"; + $tutos[rolecheck][7] = "atcd"; + # # Enable/Disable parts of TUTOS # 1 = enable Index: db.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/db.p3,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -r1.42 -r1.43 *** db.p3 2001/08/26 17:30:44 1.42 --- db.p3 2001/08/30 12:28:13 1.43 *************** *** 83,86 **** --- 83,87 ---- define (weekstart,76); define (fig2dev,77); + define (rolecheck,79); # Permissions (see also user.pinc) Index: department_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/department_ins.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** department_ins.php 2001/08/30 10:16:51 1.5 --- department_ins.php 2001/08/30 12:28:13 1.6 *************** *** 41,45 **** $msg .= sprintf($lang['Err0009'],$lang['Company']) ."<BR>"; } else { ! $d->company = check_company($company); } } else { --- 41,45 ---- $msg .= sprintf($lang['Err0009'],$lang['Company']) ."<BR>"; } else { ! $d->company = check_address($company,"company","cl","c"); } } else { Index: installation_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/installation_ins.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** installation_ins.php 2001/08/11 19:11:25 1.7 --- installation_ins.php 2001/08/30 12:28:13 1.8 *************** *** 33,37 **** $msg .= sprintf($lang['Err0009'],$lang['Customer']) ."<BR>"; } else { ! $x = check_visitor($cfn,"cfn","cl"); $i->setCustomer($x->id); } --- 33,37 ---- $msg .= sprintf($lang['Err0009'],$lang['Customer']) ."<BR>"; } else { ! $x = check_address($cfn,"cfn","cl","acd"); $i->setCustomer($x->id); } Index: location_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/location_ins.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** location_ins.php 2001/08/30 10:16:51 1.10 --- location_ins.php 2001/08/30 12:28:13 1.11 *************** *** 42,46 **** # Check Company if ( !isset($c_id) ) { ! $l->company = check_company($company); } else { if ( $c_id != -1 ) { --- 42,46 ---- # Check Company if ( !isset($c_id) ) { ! $l->company = check_address($company,"company","cl","c"); } else { if ( $c_id != -1 ) { *************** *** 51,55 **** # Check Department if ( !isset($d_id) ) { ! $l->department = check_department($department); } else { if ( $d_id != -1 ) { --- 51,55 ---- # Check Department if ( !isset($d_id) ) { ! $l->department = check_address($department,"department","dl","d"); } else { if ( $d_id != -1 ) { Index: app_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/app_ins.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** app_ins.php 2001/08/30 10:16:51 1.3 --- app_ins.php 2001/08/30 12:28:13 1.4 *************** *** 160,164 **** # if ( isset($vfn) && !empty($vfn) ) { ! $a->visitor = check_visitor($vfn); } else { if ( isset($vid) && !empty($vid) ) { --- 160,164 ---- # if ( isset($vfn) && !empty($vfn) ) { ! $a->visitor = check_address($vfn,"vfn","vl","acd"); } else { if ( isset($vid) && !empty($vid) ) { |
From: Boris W. <bw...@us...> - 2001-08-30 12:26:54
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv31875 Modified Files: de.p3 en.p3 es.p3 fr.p3 it.p3 ko.p3 nl.p3 pl.p3 product_ins.php pt-br.p3 ru.p3 tw.p3 webelements.p3 zh.p3 Log Message: Added roles "Reseller" and "Partner" Index: de.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/de.p3,v retrieving revision 1.64 retrieving revision 1.65 diff -C2 -r1.64 -r1.65 *** de.p3 2001/08/30 10:18:10 1.64 --- de.p3 2001/08/30 12:26:44 1.65 *************** *** 306,309 **** --- 306,311 ---- $lang['ProdRole'][6] = "Kunde"; $lang['ProdRole'][7] = "Lieferant"; + $lang['ProdRole'][8] = "Wiederverkäufer"; + $lang['ProdRole'][9] = "Partner"; $lang['ProdPath'] = "Dateipfad"; $lang['ProdDesc'] = "Beschreibung"; Index: en.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/en.p3,v retrieving revision 1.59 retrieving revision 1.60 diff -C2 -r1.59 -r1.60 *** en.p3 2001/08/30 10:18:11 1.59 --- en.p3 2001/08/30 12:26:44 1.60 *************** *** 306,309 **** --- 306,311 ---- $lang['ProdRole'][6] = "Customer"; $lang['ProdRole'][7] = "Supplier"; + $lang['ProdRole'][8] = "Reseller"; + $lang['ProdRole'][9] = "Partner"; $lang['ProdPath'] = "File Path"; $lang['ProdDesc'] = "Description"; Index: es.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/es.p3,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -r1.44 -r1.45 *** es.p3 2001/08/30 10:18:11 1.44 --- es.p3 2001/08/30 12:26:44 1.45 *************** *** 308,311 **** --- 308,313 ---- $lang['ProdRole'][6] = "Cliente"; $lang['ProdRole'][7] = "Supplier"; + $lang['ProdRole'][8] = "Reseller"; + $lang['ProdRole'][9] = "Partner"; $lang['ProdPath'] = "Camino de ficheros"; $lang['ProdDesc'] = "Descripción"; Index: fr.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/fr.p3,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -r1.43 -r1.44 *** fr.p3 2001/08/30 10:18:11 1.43 --- fr.p3 2001/08/30 12:26:44 1.44 *************** *** 308,311 **** --- 308,313 ---- $lang['ProdRole'][6] = "Client"; $lang['ProdRole'][7] = "Supplier"; + $lang['ProdRole'][8] = "Reseller"; + $lang['ProdRole'][9] = "Partner"; $lang['ProdPath'] = "File Path"; $lang['ProdDesc'] = "Description"; Index: it.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/it.p3,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -r1.52 -r1.53 *** it.p3 2001/08/30 10:18:11 1.52 --- it.p3 2001/08/30 12:26:44 1.53 *************** *** 306,309 **** --- 306,311 ---- $lang['ProdRole'][6] = "Cliente"; $lang['ProdRole'][7] = "Supplier"; + $lang['ProdRole'][8] = "Reseller"; + $lang['ProdRole'][9] = "Partner"; $lang['ProdPath'] = "Percorso del File"; $lang['ProdDesc'] = "Descrizione"; Index: ko.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/ko.p3,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -r1.18 -r1.19 *** ko.p3 2001/08/30 10:18:11 1.18 --- ko.p3 2001/08/30 12:26:44 1.19 *************** *** 307,310 **** --- 307,312 ---- $lang['ProdRole'][6] = "Customer"; $lang['ProdRole'][7] = "Supplier"; + $lang['ProdRole'][8] = "Reseller"; + $lang['ProdRole'][9] = "Partner"; $lang['ProdPath'] = "File Path"; $lang['ProdDesc'] = "¼³¸í"; Index: nl.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/nl.p3,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** nl.p3 2001/08/30 10:18:11 1.11 --- nl.p3 2001/08/30 12:26:44 1.12 *************** *** 308,311 **** --- 308,313 ---- $lang['ProdRole'][6] = "Klant"; $lang['ProdRole'][7] = "Supplier"; + $lang['ProdRole'][8] = "Reseller"; + $lang['ProdRole'][9] = "Partner"; $lang['ProdPath'] = "Filepad"; $lang['ProdDesc'] = "Omschrijving"; Index: pl.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/pl.p3,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** pl.p3 2001/08/30 10:18:11 1.15 --- pl.p3 2001/08/30 12:26:44 1.16 *************** *** 312,315 **** --- 312,317 ---- $lang['ProdRole'][6] = "Klient"; $lang['ProdRole'][7] = "Supplier"; + $lang['ProdRole'][8] = "Reseller"; + $lang['ProdRole'][9] = "Partner"; $lang['ProdPath'] = "¦cie¿ka pliku"; $lang['ProdDesc'] = "Opis"; Index: product_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_ins.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** product_ins.php 2001/08/30 10:18:11 1.16 --- product_ins.php 2001/08/30 12:26:44 1.17 *************** *** 42,46 **** # Add given Role if ( isset($rfn) ) { ! if ( ($role == 6) || ($role == 7) ) { $m = check_visitor($rfn,"rfn","rl"); } else { --- 42,46 ---- # Add given Role if ( isset($rfn) ) { ! if ( ($role == 6) || ($role == 7) || ($role == 8) || ($role == 9) ) { $m = check_visitor($rfn,"rfn","rl"); } else { *************** *** 184,186 **** * $Author$ */ ! ?> \ No newline at end of file --- 184,186 ---- * $Author$ */ ! ?> Index: pt-br.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/pt-br.p3,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -r1.31 -r1.32 *** pt-br.p3 2001/08/30 10:18:11 1.31 --- pt-br.p3 2001/08/30 12:26:44 1.32 *************** *** 307,310 **** --- 307,312 ---- $lang['ProdRole'][6] = "Cliente"; $lang['ProdRole'][7] = "Supplier"; + $lang['ProdRole'][8] = "Reseller"; + $lang['ProdRole'][9] = "Partner"; $lang['ProdPath'] = "Caminho do arquivo"; $lang['ProdDesc'] = "Descrição"; Index: ru.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/ru.p3,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -r1.38 -r1.39 *** ru.p3 2001/08/30 10:18:11 1.38 --- ru.p3 2001/08/30 12:26:44 1.39 *************** *** 306,309 **** --- 306,311 ---- $lang['ProdRole'][6] = "ðÒÏÄÁ×ÅÃ"; $lang['ProdRole'][7] = "Supplier"; + $lang['ProdRole'][8] = "Reseller"; + $lang['ProdRole'][9] = "Partner"; $lang['ProdPath'] = "ëÁÔÁÌÏÇ"; $lang['ProdDesc'] = "ïÐÉÓÁÎÉÅ"; Index: tw.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/tw.p3,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -r1.38 -r1.39 *** tw.p3 2001/08/30 10:18:11 1.38 --- tw.p3 2001/08/30 12:26:44 1.39 *************** *** 310,313 **** --- 310,315 ---- $lang['ProdRole'][6] = "«È?"; $lang['ProdRole'][7] = "Supplier"; + $lang['ProdRole'][8] = "Reseller"; + $lang['ProdRole'][9] = "Partner"; $lang['ProdPath'] = "Àɮ׳~®|"; $lang['ProdDesc'] = "¤º®e"; Index: webelements.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/webelements.p3,v retrieving revision 1.68 retrieving revision 1.69 diff -C2 -r1.68 -r1.69 *** webelements.p3 2001/08/27 12:50:49 1.68 --- webelements.p3 2001/08/30 12:26:44 1.69 *************** *** 236,239 **** --- 236,242 ---- $lang['ProdRole5'] = &$lang['ProdRole'][5]; $lang['ProdRole6'] = &$lang['ProdRole'][6]; + $lang['ProdRole7'] = &$lang['ProdRole'][7]; + $lang['ProdRole8'] = &$lang['ProdRole'][8]; + $lang['ProdRole9'] = &$lang['ProdRole'][9]; } /* --------------------------------------------------------------------------- Index: zh.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/zh.p3,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -r1.38 -r1.39 *** zh.p3 2001/08/30 10:18:11 1.38 --- zh.p3 2001/08/30 12:26:44 1.39 *************** *** 310,313 **** --- 310,315 ---- $lang['ProdRole'][6] = "¿Í?"; $lang['ProdRole'][7] = "Supplier"; + $lang['ProdRole'][8] = "Reseller"; + $lang['ProdRole'][9] = "Partner"; $lang['ProdPath'] = "µµ°¸Í¾¾¶"; $lang['ProdDesc'] = "ÄÚÈÝ"; |
From: Gero K. <gok...@us...> - 2001-08-30 10:20:57
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv1980/php Modified Files: message_overview.php acl_overview.php acl.pinc Log Message: fixes for back forward Index: message_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/message_overview.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** message_overview.php 2001/08/27 15:58:53 1.2 --- message_overview.php 2001/08/30 10:20:53 1.3 *************** *** 7,12 **** check_user(); ! Function info() { ! global $conn, $current_user; if ( $current_user->admin == 0) { --- 7,12 ---- check_user(); ! Function info($start) { ! global $link1,$conn,$lang,$tutos,$current_user; if ( $current_user->admin == 0) { *************** *** 23,26 **** --- 23,35 ---- } + if ( $start == -1 ) { + $a = $n - $tutos[maxshow]; + $end = $n; + $start = $a; + } else { + $a = $start; + $end = $start + $tutos[maxshow]; + } + echo "<TABLE CLASS=single BORDER=1 CELLPADDING=3 CELLSPACING=0>\n"; echo "<TR>\n"; *************** *** 28,33 **** echo "</TR>\n"; ! $a = 0; ! while ( $a < $n ) { echo "<TR>\n"; echo " <TD>". DB_Result($result, $a, "ts") ."</TD>\n"; --- 37,41 ---- echo "</TR>\n"; ! while ( ($a < $n) && ($a < $end) ) { echo "<TR>\n"; echo " <TD>". DB_Result($result, $a, "ts") ."</TD>\n"; *************** *** 37,40 **** --- 45,49 ---- } + ShowBackForwardNav($link1,2,$start,$a,$n); echo "</TABLE>\n"; } *************** *** 53,62 **** HTML_Header("Messages"); HTML_Base1(); navigate(); HTML_Base2($msg); ! info(); HTML_Base3(); DB_Close($conn); ?> --- 62,80 ---- HTML_Header("Messages"); + if ( ! isset($start) ) { + $start = 0; + } + $link1 = "message_overview.php"; + HTML_Base1(); navigate(); HTML_Base2($msg); ! info($start); HTML_Base3(); DB_Close($conn); ?> + <!-- + CVS Info: $Id$ + $Author$ + --> \ No newline at end of file Index: acl_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/acl_overview.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** acl_overview.php 2001/08/30 08:41:59 1.3 --- acl_overview.php 2001/08/30 10:20:53 1.4 *************** *** 105,113 **** echo "<TR>\n"; echo "<TD ALIGN=\"right\" ROWSPAN=\"". $n2 ."\">". $a ."</TD>\n"; - echo "<TD ROWSPAN=\"". $n2 ."\">". $g ."</TD>\n"; if ( $obj != -1 ) { echo "<TD ROWSPAN=\"". $n2 ."\">". $lang[$obj->getType()] ."</TD>\n"; echo "<TD ROWSPAN=\"". $n2 ."\">". $obj->getLink() ."</TD>\n"; } else { echo "<TD ROWSPAN=\"". $n2 ."\">unknown</TD>\n"; echo "<TD ROWSPAN=\"". $n2 ."\">unknown</TD>\n"; --- 105,114 ---- echo "<TR>\n"; echo "<TD ALIGN=\"right\" ROWSPAN=\"". $n2 ."\">". $a ."</TD>\n"; if ( $obj != -1 ) { + echo "<TD ROWSPAN=\"". $n2 ."\">". acl_link($obj,$obj->id) ."</TD>\n"; echo "<TD ROWSPAN=\"". $n2 ."\">". $lang[$obj->getType()] ."</TD>\n"; echo "<TD ROWSPAN=\"". $n2 ."\">". $obj->getLink() ."</TD>\n"; } else { + echo "<TD ROWSPAN=\"". $n2 ."\">". $g ."</TD>\n"; echo "<TD ROWSPAN=\"". $n2 ."\">unknown</TD>\n"; echo "<TD ROWSPAN=\"". $n2 ."\">unknown</TD>\n"; *************** *** 146,150 **** $a++; } ! ShowBackForwardNav($link1,7,$start,$a,$n); echo "</TABLE>\n"; } --- 147,151 ---- $a++; } ! ShowBackForwardNav($link1,6,$start,$a,$n); echo "</TABLE>\n"; } *************** *** 155,159 **** echo "<TABLE>\n"; echo "<TR><TD>\n"; ! echo "Show<BR><UL>\n"; echo "<LI>". menulink("acl_overview.php","Everything","Everything") ."\n"; echo "<LI>". menulink("acl_overview.php?type=address","Addresses","Addresses") ."\n"; --- 156,160 ---- echo "<TABLE>\n"; echo "<TR><TD>\n"; ! echo "<SPAN CLASS=nodeco>Show</SPAN><BR><UL>\n"; echo "<LI>". menulink("acl_overview.php","Everything","Everything") ."\n"; echo "<LI>". menulink("acl_overview.php?type=address","Addresses","Addresses") ."\n"; *************** *** 178,186 **** $link1 = addUrlParameter($link1,"type=".UrlEncode($type)); } HTML_Base1(); navigate(); HTML_Base2($msg); ! info($type); HTML_Base3(); --- 179,190 ---- $link1 = addUrlParameter($link1,"type=".UrlEncode($type)); } + if ( ! isset($start) ) { + $start = 0; + } HTML_Base1(); navigate(); HTML_Base2($msg); ! info($type,$start); HTML_Base3(); Index: acl.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/acl.pinc,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** acl.pinc 2001/08/28 22:28:41 1.13 --- acl.pinc 2001/08/30 10:20:53 1.14 *************** *** 202,206 **** * give a link to change/see acls */ ! Function acl_link(&$obj) { global $lang; --- 202,206 ---- * give a link to change/see acls */ ! Function acl_link(&$obj,$text = "") { global $lang; *************** *** 213,220 **** return; } 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']); } --- 213,223 ---- return; } + if ( $text == "" ) { + $text = "<FONT SIZE=-1>(". $lang['permissions'] .")</FONT>"; + } if ( $obj->del_ok() ) { ! return makelink("acl_new.php?id=". $id ,$text,$lang['ACLmod']); } ! return makelink("acl_show.php?id=". $id ,$text,$lang['ACLsee']); } |
From: Gero K. <gok...@us...> - 2001-08-30 10:18:14
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv32617/php Modified Files: de.p3 en.p3 es.p3 fr.p3 it.p3 ko.p3 nl.p3 pl.p3 pt-br.p3 ru.p3 tw.p3 zh.p3 product_ins.php Log Message: new Role Supplier Index: de.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/de.p3,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -r1.63 -r1.64 *** de.p3 2001/08/26 17:30:44 1.63 --- de.p3 2001/08/30 10:18:10 1.64 *************** *** 305,308 **** --- 305,309 ---- $lang['ProdRole'][5] = "Entwicklung"; $lang['ProdRole'][6] = "Kunde"; + $lang['ProdRole'][7] = "Lieferant"; $lang['ProdPath'] = "Dateipfad"; $lang['ProdDesc'] = "Beschreibung"; Index: en.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/en.p3,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -r1.58 -r1.59 *** en.p3 2001/08/26 17:30:44 1.58 --- en.p3 2001/08/30 10:18:11 1.59 *************** *** 305,308 **** --- 305,309 ---- $lang['ProdRole'][5] = "Development"; $lang['ProdRole'][6] = "Customer"; + $lang['ProdRole'][7] = "Supplier"; $lang['ProdPath'] = "File Path"; $lang['ProdDesc'] = "Description"; Index: es.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/es.p3,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -r1.43 -r1.44 *** es.p3 2001/08/26 17:30:44 1.43 --- es.p3 2001/08/30 10:18:11 1.44 *************** *** 307,310 **** --- 307,311 ---- $lang['ProdRole'][5] = "Desarrollo"; $lang['ProdRole'][6] = "Cliente"; + $lang['ProdRole'][7] = "Supplier"; $lang['ProdPath'] = "Camino de ficheros"; $lang['ProdDesc'] = "Descripción"; Index: fr.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/fr.p3,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -r1.42 -r1.43 *** fr.p3 2001/08/26 17:30:44 1.42 --- fr.p3 2001/08/30 10:18:11 1.43 *************** *** 307,310 **** --- 307,311 ---- $lang['ProdRole'][5] = "Technicien"; $lang['ProdRole'][6] = "Client"; + $lang['ProdRole'][7] = "Supplier"; $lang['ProdPath'] = "File Path"; $lang['ProdDesc'] = "Description"; Index: it.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/it.p3,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -r1.51 -r1.52 *** it.p3 2001/08/26 17:30:44 1.51 --- it.p3 2001/08/30 10:18:11 1.52 *************** *** 305,308 **** --- 305,309 ---- $lang['ProdRole'][5] = "Sviluppo"; $lang['ProdRole'][6] = "Cliente"; + $lang['ProdRole'][7] = "Supplier"; $lang['ProdPath'] = "Percorso del File"; $lang['ProdDesc'] = "Descrizione"; Index: ko.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/ko.p3,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** ko.p3 2001/08/26 17:30:44 1.17 --- ko.p3 2001/08/30 10:18:11 1.18 *************** *** 306,309 **** --- 306,310 ---- $lang['ProdRole'][5] = "Development"; $lang['ProdRole'][6] = "Customer"; + $lang['ProdRole'][7] = "Supplier"; $lang['ProdPath'] = "File Path"; $lang['ProdDesc'] = "¼³¸í"; Index: nl.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/nl.p3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** nl.p3 2001/08/26 17:30:44 1.10 --- nl.p3 2001/08/30 10:18:11 1.11 *************** *** 307,310 **** --- 307,311 ---- $lang['ProdRole'][5] = "Ontwikkeling"; $lang['ProdRole'][6] = "Klant"; + $lang['ProdRole'][7] = "Supplier"; $lang['ProdPath'] = "Filepad"; $lang['ProdDesc'] = "Omschrijving"; Index: pl.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/pl.p3,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** pl.p3 2001/08/26 17:30:44 1.14 --- pl.p3 2001/08/30 10:18:11 1.15 *************** *** 311,314 **** --- 311,315 ---- $lang['ProdRole'][5] = "Rozwój"; $lang['ProdRole'][6] = "Klient"; + $lang['ProdRole'][7] = "Supplier"; $lang['ProdPath'] = "¦cie¿ka pliku"; $lang['ProdDesc'] = "Opis"; Index: pt-br.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/pt-br.p3,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -r1.30 -r1.31 *** pt-br.p3 2001/08/26 17:30:44 1.30 --- pt-br.p3 2001/08/30 10:18:11 1.31 *************** *** 306,309 **** --- 306,310 ---- $lang['ProdRole'][5] = "Desenvolvimento"; $lang['ProdRole'][6] = "Cliente"; + $lang['ProdRole'][7] = "Supplier"; $lang['ProdPath'] = "Caminho do arquivo"; $lang['ProdDesc'] = "Descrição"; Index: ru.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/ru.p3,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -r1.37 -r1.38 *** ru.p3 2001/08/26 17:30:44 1.37 --- ru.p3 2001/08/30 10:18:11 1.38 *************** *** 305,308 **** --- 305,309 ---- $lang['ProdRole'][5] = "òÁÚÒÁÂÏÔÞÉË"; $lang['ProdRole'][6] = "ðÒÏÄÁ×ÅÃ"; + $lang['ProdRole'][7] = "Supplier"; $lang['ProdPath'] = "ëÁÔÁÌÏÇ"; $lang['ProdDesc'] = "ïÐÉÓÁÎÉÅ"; Index: tw.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/tw.p3,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -r1.37 -r1.38 *** tw.p3 2001/08/26 17:30:44 1.37 --- tw.p3 2001/08/30 10:18:11 1.38 *************** *** 309,312 **** --- 309,313 ---- $lang['ProdRole'][5] = "¶}µo¤Hû"; $lang['ProdRole'][6] = "«È?"; + $lang['ProdRole'][7] = "Supplier"; $lang['ProdPath'] = "Àɮ׳~®|"; $lang['ProdDesc'] = "¤º®e"; Index: zh.p3 =================================================================== RCS file: /cvsroot/tutos/tutos/php/zh.p3,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -r1.37 -r1.38 *** zh.p3 2001/08/26 17:30:44 1.37 --- zh.p3 2001/08/30 10:18:11 1.38 *************** *** 309,312 **** --- 309,313 ---- $lang['ProdRole'][5] = "¿ª·¢ÈËÔ±"; $lang['ProdRole'][6] = "¿Í?"; + $lang['ProdRole'][7] = "Supplier"; $lang['ProdPath'] = "µµ°¸Í¾¾¶"; $lang['ProdDesc'] = "ÄÚÈÝ"; Index: product_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_ins.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** product_ins.php 2001/08/27 17:20:36 1.15 --- product_ins.php 2001/08/30 10:18:11 1.16 *************** *** 42,46 **** # Add given Role if ( isset($rfn) ) { ! if ( $role == 6 ) { $m = check_visitor($rfn,"rfn","rl"); } else { --- 42,46 ---- # Add given Role if ( isset($rfn) ) { ! if ( ($role == 6) || ($role == 7) ) { $m = check_visitor($rfn,"rfn","rl"); } else { |
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv32126/php Modified Files: address_ins.php address_new.php app_ins.php app_new_r.php app_new.php company_ins.php company_new.php department_ins.php department_new.php fax_ins.php fax_new.php file_ins.php file_new.php location_ins.php resource_ins.php resource_new.php timetrack_ins.php timetrack_new.php Log Message: handling for slashes in rebounced pages Index: address_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/address_ins.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** address_ins.php 2001/08/11 19:11:25 1.11 --- address_ins.php 2001/08/30 10:16:51 1.12 *************** *** 42,46 **** } else { $f_name = trim($f_name); ! $gotourl= addUrlParameter($gotourl,"f_name=". UrlEncode($f_name)); } --- 42,46 ---- } else { $f_name = trim($f_name); ! $gotourl= addUrlParameter($gotourl,"f_name=". UrlEncode(StripSlahes($f_name))); } *************** *** 49,58 **** } else { $l_name = trim($l_name); ! $gotourl= addUrlParameter($gotourl,"l_name=". UrlEncode($l_name)); } if ( isset($m_name) ) { $m_name = trim($m_name); ! $gotourl= addUrlParameter($gotourl,"m_name=". UrlEncode($m_name)); } --- 49,58 ---- } else { $l_name = trim($l_name); ! $gotourl= addUrlParameter($gotourl,"l_name=". UrlEncode(StripSlashes($l_name))); } if ( isset($m_name) ) { $m_name = trim($m_name); ! $gotourl= addUrlParameter($gotourl,"m_name=". UrlEncode(StripSlashes($m_name))); } Index: address_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/address_new.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** address_new.php 2001/08/26 12:16:40 1.15 --- address_new.php 2001/08/30 10:16:51 1.16 *************** *** 416,426 **** } else { if ( isset($f_name) ) { ! $address->f_name = $f_name; } if ( isset($m_name) ) { ! $address->m_name = $m_name; } if ( isset($l_name) ) { ! $address->l_name = $l_name; } if ( isset($bd) ) { --- 416,426 ---- } else { if ( isset($f_name) ) { ! $address->f_name = StripSlashes($f_name); } if ( isset($m_name) ) { ! $address->m_name = StripSlashes($m_name); } if ( isset($l_name) ) { ! $address->l_name = StripSlashes($l_name); } if ( isset($bd) ) { Index: app_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/app_ins.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** app_ins.php 2001/08/24 15:15:54 1.2 --- app_ins.php 2001/08/30 10:16:51 1.3 *************** *** 121,125 **** $gotourl= addUrlParameter($gotourl,"outside=".$outside ); # ! # REPAT # $a->repeat = $repeat; --- 121,125 ---- $gotourl= addUrlParameter($gotourl,"outside=".$outside ); # ! # REPEAT # $a->repeat = $repeat; *************** *** 153,157 **** $msg .= $lang['Err0003'] ."<BR>"; } else { ! $gotourl="$gotourl&descr=". UrlEncode($descr); $a->descr = AddSlashes(trim($descr));; } --- 153,157 ---- $msg .= $lang['Err0003'] ."<BR>"; } else { ! $gotourl="$gotourl&descr=". UrlEncode(StripSlashes($descr)); $a->descr = AddSlashes(trim($descr));; } Index: app_new_r.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/app_new_r.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** app_new_r.php 2001/08/26 12:18:10 1.5 --- app_new_r.php 2001/08/30 10:16:51 1.6 *************** *** 260,264 **** # Set available Parameters if ( isset($descr) ) { ! $a->descr = $descr; } if ( isset($trace) ) { --- 260,264 ---- # Set available Parameters if ( isset($descr) ) { ! $a->descr = StripSlashes($descr); } if ( isset($trace) ) { Index: app_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/app_new.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** app_new.php 2001/08/26 12:16:40 1.5 --- app_new.php 2001/08/30 10:16:51 1.6 *************** *** 289,293 **** # Set available Parameters if ( isset($descr) ) { ! $a->descr = $descr; } if ( isset($trace) ) { --- 289,293 ---- # Set available Parameters if ( isset($descr) ) { ! $a->descr = StripSlashes($descr); } if ( isset($trace) ) { Index: company_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/company_ins.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** company_ins.php 2001/07/21 16:03:33 1.4 --- company_ins.php 2001/08/30 10:16:51 1.5 *************** *** 30,34 **** } else { $name = trim($name); ! $gotourl = addUrlParameter($gotourl,"name=". UrlEncode($name)); } --- 30,34 ---- } else { $name = trim($name); ! $gotourl = addUrlParameter($gotourl,"name=". UrlEncode(StripSlashes($name))); } Index: company_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/company_new.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** company_new.php 2001/08/26 12:16:40 1.11 --- company_new.php 2001/08/30 10:16:51 1.12 *************** *** 185,189 **** if ( !empty($name) ) { ! $c->name = $name; } --- 185,189 ---- if ( !empty($name) ) { ! $c->name = StripSlashes($name); } Index: department_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/department_ins.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** department_ins.php 2001/07/21 16:03:33 1.4 --- department_ins.php 2001/08/30 10:16:51 1.5 *************** *** 33,37 **** } else { $name = trim($name); ! $gotourl = addUrlParameter($gotourl,"name=". UrlEncode($name)); } --- 33,37 ---- } else { $name = trim($name); ! $gotourl = addUrlParameter($gotourl,"name=". UrlEncode(StripSlashes($name))); } Index: department_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/department_new.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** department_new.php 2001/08/26 12:16:40 1.9 --- department_new.php 2001/08/30 10:16:51 1.10 *************** *** 206,214 **** if ( !empty($name) ) { ! $d->name = $name; } if ( !empty($company) ) { ! $d->company->name = $company; } --- 206,214 ---- if ( !empty($name) ) { ! $d->name = StripSlashes($name); } if ( !empty($company) ) { ! $d->company->name = StripSlashes($company); } Index: fax_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/fax_ins.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** fax_ins.php 2001/08/11 19:11:25 1.6 --- fax_ins.php 2001/08/30 10:16:51 1.7 *************** *** 37,40 **** --- 37,41 ---- $msg .= $lang['Err0032'] ."<BR>\n"; } + $gotourl= addUrlParameter($gotourl,"fax=". UrlEncode(StripSlashes($fax))); # Call faxspool *************** *** 52,55 **** --- 53,57 ---- pclose($fd); $msg .= sprintf($lang['FaxSpooledTo'], $nr) ."<BR>\n"; + $gotourl = "fax_new.php"; } else if ( $tutos[faxmode] == 2 ) { $hdr = ""; *************** *** 69,72 **** --- 71,75 ---- $msg .= $m->send(); $msg .= sprintf($lang['FaxSpooledTo'], $faxmail) ."<BR>\n"; + $gotourl = "fax_new.php"; } } else { *************** *** 83,86 **** --- 86,90 ---- $msg .= $n->save(); $msg .= "Fax was saved as a note for ". $a->getLink() ."\n"; + $gotourl = $a->getURL(); } Index: fax_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/fax_new.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** fax_new.php 2001/08/23 19:09:17 1.6 --- fax_new.php 2001/08/30 10:16:51 1.7 *************** *** 95,100 **** $val['adr'] = $adr; $val['loc'] = $loc; ! if ( isset($text) ) { ! $val['text'] = $text; } else { $val['text'] = ""; --- 95,100 ---- $val['adr'] = $adr; $val['loc'] = $loc; ! if ( isset($fax) ) { ! $val['text'] = StripSlashes($fax); } else { $val['text'] = ""; Index: file_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/file_ins.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** file_ins.php 2001/08/11 19:11:25 1.10 --- file_ins.php 2001/08/30 10:16:51 1.11 *************** *** 58,66 **** if ( $name != "" ) { ! $gotourl = addUrlParameter($gotourl,"name=". UrlEncode($name)); } if ( isset($version) && ($version != "") ) { ! $gotourl = addUrlParameter($gotourl,"version=". UrlEncode($version)); } --- 58,66 ---- if ( $name != "" ) { ! $gotourl = addUrlParameter($gotourl,"name=". UrlEncode(StripSlashes($name))); } if ( isset($version) && ($version != "") ) { ! $gotourl = addUrlParameter($gotourl,"version=". UrlEncode(StripSlashes($version))); } Index: file_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/file_new.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** file_new.php 2001/08/26 12:16:40 1.13 --- file_new.php 2001/08/30 10:16:51 1.14 *************** *** 164,171 **** if ( isset($name) ){ ! $f->name = $name; } if ( isset($version) ){ ! $f->version = $version; } --- 164,171 ---- if ( isset($name) ){ ! $f->name = StripSlashes($name); } if ( isset($version) ){ ! $f->version = StripSlashes($version); } Index: location_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/location_ins.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** location_ins.php 2001/08/11 19:11:25 1.9 --- location_ins.php 2001/08/30 10:16:51 1.10 *************** *** 33,37 **** $msg .= sprintf($lang['Err0009'],$lang['AdrDescription']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"lname=". UrlEncode($lname)); $l->lname = $lname; } --- 33,37 ---- $msg .= sprintf($lang['Err0009'],$lang['AdrDescription']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"lname=". UrlEncode(StripSlashes($lname))); $l->lname = $lname; } *************** *** 67,71 **** if ( isset($$f) ) { $l->$f = $$f; ! $gotourl= addUrlParameter($gotourl,$f ."=". UrlEncode($$f)); } $i++; --- 67,71 ---- if ( isset($$f) ) { $l->$f = $$f; ! $gotourl= addUrlParameter($gotourl,$f ."=". UrlEncode(StripSlashes($$f))); } $i++; Index: resource_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/resource_ins.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** resource_ins.php 2001/08/11 19:11:25 1.3 --- resource_ins.php 2001/08/30 10:16:51 1.4 *************** *** 20,29 **** } ! $b->name = $name; ! $b->desc = $desc; ! $msg = $b->save(); ! ! $gotourl = $b->getURL(); $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); $gotourl = addSessionKey($gotourl); --- 20,38 ---- } ! if ( empty($name) || !isset($name) || ($name == $lang['PlsChangeName']) ) { ! $msg .= sprintf($lang['Err0009'],$lang['ResName']) ."<BR>"; ! } else { ! $name = trim($name); ! $gotourl = addUrlParameter($gotourl,"name=". UrlEncode(StripSlashes($name))); ! } ! $desc = trim($desc); ! $gotourl = addUrlParameter($gotourl,"desc=". UrlEncode(StripSlashes($desc))); ! if ( $msg == "" ) { ! $b->name = $name; ! $b->desc = $desc; ! $msg = $b->save(); ! $gotourl = $b->getURL(); ! } $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); $gotourl = addSessionKey($gotourl); Index: resource_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/resource_new.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** resource_new.php 2001/08/26 12:16:40 1.6 --- resource_new.php 2001/08/30 10:16:51 1.7 *************** *** 89,92 **** --- 89,98 ---- } + if ( isset($name) ) { + $b->name = StripSlashes($name); + } + if ( isset($desc) ) { + $b->desc = StripSlashes($desc); + } HTML_Base1(); navigate($b); Index: timetrack_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/timetrack_ins.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** timetrack_ins.php 2001/08/22 22:19:00 1.7 --- timetrack_ins.php 2001/08/30 10:16:51 1.8 *************** *** 48,52 **** $msg .= sprintf($lang['Err0009'],$lang['Description']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"desc=". UrlEncode($desc)); $tt->desc = $desc; } --- 48,52 ---- $msg .= sprintf($lang['Err0009'],$lang['Description']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"desc=". UrlEncode(StripSlashes($desc))); $tt->desc = $desc; } Index: timetrack_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/timetrack_new.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** timetrack_new.php 2001/08/26 12:16:40 1.10 --- timetrack_new.php 2001/08/30 10:16:51 1.11 *************** *** 113,117 **** if ( isset($desc) ) { ! $tt->desc = $desc; } if ( isset($volume) ) { --- 113,117 ---- if ( isset($desc) ) { ! $tt->desc = StripSlashes($desc); } if ( isset($volume) ) { |
From: Gero K. <gok...@us...> - 2001-08-30 08:54:56
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv21177 Modified Files: message_del.php Log Message: added cvs info Index: message_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/message_del.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** message_del.php 2001/08/27 15:58:53 1.1 --- message_del.php 2001/08/30 08:54:53 1.2 *************** *** 22,24 **** --- 22,28 ---- DB_Close($conn); + /* + * CVS Info: $Id$ + * $Author$ + */ ?> |
From: Gero K. <gok...@us...> - 2001-08-30 08:42:02
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv14392 Modified Files: acl_overview.php Log Message: added cvs info Index: acl_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/acl_overview.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** acl_overview.php 2001/08/30 08:39:33 1.2 --- acl_overview.php 2001/08/30 08:41:59 1.3 *************** *** 187,188 **** --- 187,192 ---- DB_Close($conn); ?> + <!-- + CVS Info: $Id$ + $Author$ + --> \ No newline at end of file |
From: Gero K. <gok...@us...> - 2001-08-30 08:39:36
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv12671 Modified Files: acl_overview.php Log Message: added back/forward navigation Index: acl_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/acl_overview.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** acl_overview.php 2001/08/27 19:43:46 1.1 --- acl_overview.php 2001/08/30 08:39:33 1.2 *************** *** 30,35 **** check_user(); ! Function info($type) { ! global $lang, $conn, $current_user; if ( $current_user->admin == 0) { --- 30,35 ---- check_user(); ! Function info($type,$start = 0) { ! global $lang, $tutos, $conn, $current_user,$link1; if ( $current_user->admin == 0) { *************** *** 41,137 **** $result = @DB_Exec($conn,$query); $n = DB_NumRows($result); ! if ( 0 != $n) { ! echo "<TABLE BORDER=1 CELLPADDING=3 CELLSPACING=0>\n"; ! echo "<TR>\n"; ! echo "<TH>#</TH><TH>ID</TH><TH>type</TH><TH>object</TH><TH>owner</TH><TH>". $lang['permissions'] ."</TH>\n"; ! echo "</TR>\n"; ! $a = 0; ! while ( $a < $n ) { ! $g = DB_Result($result, $a, "obj_id"); ! $obj = getObject($g); ! $found = 0; ! if ( $type == "" ) { ! $found = 1; ! } else { ! if ( $obj == -1 ) { ! $a++; ! continue; ! } ! $otype = $obj->getType(); ! } ! if ( ($type == "address" ) && ( $otype == "address" ) ) { ! $found = 1; ! } else if ( ($type == "file" ) && ( $otype == "file" ) ) { ! $found = 1; ! } else if ( ($type == "note" ) && ( $otype == "note" ) ) { ! $found = 1; ! } else if ( ($type == "appointment" ) && ( $otype == "appointment" ) ) { ! $found = 1; ! } else if ( ($type == "task" ) && ( $otype == "task" ) ) { ! $found = 1; ! } else if ( ($type == "user" ) && ( $otype == "user" ) ) { ! $found = 1; ! } else if ( ($type == "company" ) && ( $otype == "company" ) ) { ! $found = 1; ! } else if ( ($type == "product" ) && ( $otype == "product" ) ) { ! $found = 1; ! } else if ( ($type == "resource" ) && ( $otype == "resource" ) ) { ! $found = 1; ! } else if ( ($type == "installation" ) && ( $otype == "installation" ) ) { ! $found = 1; ! } ! if ($found == 0 ) { $a++; continue; } ! $q = "SELECT * FROM acl WHERE obj_id=". $g; ! $r = @DB_Exec($conn,$q); ! $n2 = DB_NumRows($r); ! if ( 0 != $n2) { ! echo "<TR>\n"; ! echo "<TD ALIGN=\"right\" ROWSPAN=\"". $n2 ."\">". $a ."</TD>\n"; ! echo "<TD ROWSPAN=\"". $n2 ."\">". $g ."</TD>\n"; ! if ( $obj != -1 ) { ! echo "<TD ROWSPAN=\"". $n2 ."\">". $obj->getType() ."</TD>\n"; ! echo "<TD ROWSPAN=\"". $n2 ."\">". $obj->getLink() ."</TD>\n"; ! } else { ! echo "<TD ROWSPAN=\"". $n2 ."\">unknown</TD>\n"; ! echo "<TD ROWSPAN=\"". $n2 ."\">unknown</TD>\n"; ! } ! $b = 0; ! while ( $b < $n2 ) { ! if ( $b > 0 ) { ! echo "<TR>"; ! } ! $h = DB_Result($r, $b, "adr_id"); ! $o = getObject($h); ! if ( $o != -1 ) { ! echo "<TD>". $o->getFullName() ."</TD>\n"; ! } else { ! if ( $h == 0 ) { ! echo "<TD>". $lang['everybody'] ."</TD>\n"; ! } else { ! echo "<TD>Unknown object ". $h ."</TD>\n"; ! } ! } ! echo "<TD>"; ! $p = DB_Result($r, $b, "perm"); ! if ( $p == 1 ) { ! echo $lang['ACLread']; ! } else if ( $p == 10 ) { ! echo $lang['ACLmodify']; ! } else if ( $p == 20 ) { ! echo $lang['ACLdelete']; } else { ! echo "?"; } ! echo "</TD></TR>\n"; ! $b++; ! } } - $a++; } ! echo "</TABLE>\n"; } } --- 41,151 ---- $result = @DB_Exec($conn,$query); $n = DB_NumRows($result); ! if ( 0 == $n) { ! return; ! } ! ! if ( $start == -1 ) { ! $a = $n - $tutos[maxshow]; ! $end = $n; ! $start = $a; ! } else { ! $a = $start; ! $end = $start + $tutos[maxshow]; ! } ! ! echo "<TABLE BORDER=1 CELLPADDING=3 CELLSPACING=0>\n"; ! echo "<TR>\n"; ! echo "<TH>#</TH><TH>ID</TH><TH>type</TH><TH>object</TH><TH>owner</TH><TH>". $lang['permissions'] ."</TH>\n"; ! echo "</TR>\n"; ! ! while ( ($a < $n) && ($a < $end) ) { ! $g = DB_Result($result, $a, "obj_id"); ! $obj = getObject($g); ! $found = 0; ! if ( $type == "" ) { ! $found = 1; ! } else { ! if ( $obj == -1 ) { $a++; continue; + } + $otype = $obj->getType(); + } + + if ( ($type == "address" ) && ( $otype == "address" ) ) { + $found = 1; + } else if ( ($type == "file" ) && ( $otype == "file" ) ) { + $found = 1; + } else if ( ($type == "note" ) && ( $otype == "note" ) ) { + $found = 1; + } else if ( ($type == "appointment" ) && ( $otype == "appointment" ) ) { + $found = 1; + } else if ( ($type == "task" ) && ( $otype == "task" ) ) { + $found = 1; + } else if ( ($type == "user" ) && ( $otype == "user" ) ) { + $found = 1; + } else if ( ($type == "company" ) && ( $otype == "company" ) ) { + $found = 1; + } else if ( ($type == "product" ) && ( $otype == "product" ) ) { + $found = 1; + } else if ( ($type == "resource" ) && ( $otype == "resource" ) ) { + $found = 1; + } else if ( ($type == "installation" ) && ( $otype == "installation" ) ) { + $found = 1; + } + if ($found == 0 ) { + $a++; + continue; + } + + $q = "SELECT * FROM acl WHERE obj_id=". $g; + $r = @DB_Exec($conn,$q); + $n2 = DB_NumRows($r); + if ( 0 != $n2) { + echo "<TR>\n"; + echo "<TD ALIGN=\"right\" ROWSPAN=\"". $n2 ."\">". $a ."</TD>\n"; + echo "<TD ROWSPAN=\"". $n2 ."\">". $g ."</TD>\n"; + if ( $obj != -1 ) { + echo "<TD ROWSPAN=\"". $n2 ."\">". $lang[$obj->getType()] ."</TD>\n"; + echo "<TD ROWSPAN=\"". $n2 ."\">". $obj->getLink() ."</TD>\n"; + } else { + echo "<TD ROWSPAN=\"". $n2 ."\">unknown</TD>\n"; + echo "<TD ROWSPAN=\"". $n2 ."\">unknown</TD>\n"; } ! $b = 0; ! while ( $b < $n2 ) { ! if ( $b > 0 ) { ! echo "<TR>"; ! } ! $h = DB_Result($r, $b, "adr_id"); ! $o = getObject($h); ! if ( $o != -1 ) { ! echo "<TD>". $o->getFullName() ."</TD>\n"; ! } else { ! if ( $h == 0 ) { ! echo "<TD>". $lang['everybody'] ."</TD>\n"; } else { ! echo "<TD>Unknown object ". $h ."</TD>\n"; } ! } ! echo "<TD>"; ! $p = DB_Result($r, $b, "perm"); ! if ( $p == 1 ) { ! echo $lang['ACLread']; ! } else if ( $p == 10 ) { ! echo $lang['ACLmodify']; ! } else if ( $p == 20 ) { ! echo $lang['ACLdelete']; ! } else { ! echo "?"; ! } ! echo "</TD></TR>\n"; ! $b++; } } ! $a++; } + ShowBackForwardNav($link1,7,$start,$a,$n); + echo "</TABLE>\n"; } *************** *** 159,162 **** --- 173,181 ---- HTML_Header("ACL overview"); + + $link1 = "acl_overview.php"; + if ( isset($type) && ($type != "") ) { + $link1 = addUrlParameter($link1,"type=".UrlEncode($type)); + } HTML_Base1(); |
From: Gero K. <gok...@us...> - 2001-08-28 22:28:44
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv18442 Modified Files: acl.pinc Log Message: fix for appointments with team participants Index: acl.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/acl.pinc,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** acl.pinc 2001/08/11 19:11:25 1.12 --- acl.pinc 2001/08/28 22:28:41 1.13 *************** *** 26,33 **** $obj->acl[0] = 0; acl_raise($obj,$adr->id,$tutos[seeok]); ! $adr->readTeamList(); ! @reset($adr->teamids); ! while ( list ($i,$f) = @each ($adr->teamids) ) { ! acl_raise($obj,$i,$tutos[seeok]); } return; --- 26,35 ---- $obj->acl[0] = 0; acl_raise($obj,$adr->id,$tutos[seeok]); ! if ( ($adr->getType() == "address") || ($adr->getType() == "user") ) { ! $adr->readTeamList(); ! @reset($adr->teamids); ! while ( list ($i,$f) = @each ($adr->teamids) ) { ! acl_raise($obj,$i,$tutos[seeok]); ! } } return; |
From: Gero K. <gok...@us...> - 2001-08-27 21:19:13
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv28502 Modified Files: watchlist_overview.php Log Message: fixed wrong check Index: watchlist_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/watchlist_overview.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** watchlist_overview.php 2001/08/27 20:01:38 1.9 --- watchlist_overview.php 2001/08/27 21:19:10 1.10 *************** *** 24,30 **** if ( 0 == $n) { echo "<B><I>". $lang['Err0048']."</I></B>"; ! # return; } - # echo "<B>Found:". $n ." bug(s)</B>"; echo "<TABLE CLASS=single BORDER=1 CELLPADDING=3 CELLSPACING=0>\n"; echo "<TR>\n"; --- 24,29 ---- if ( 0 == $n) { echo "<B><I>". $lang['Err0048']."</I></B>"; ! return; } echo "<TABLE CLASS=single BORDER=1 CELLPADDING=3 CELLSPACING=0>\n"; echo "<TR>\n"; *************** *** 53,63 **** # echo " <TD NOWRAP ALIGN=right>". $lang[$obj->getType()] ."</TD>\n"; if ( $obj == -1 ) { ! echo " <TD NOWRAP ALIGN=right>". $oid ."</TD>\n"; echo " <TD NOWRAP ALIGN=right>". $lang['HistoryDeleted'] ."</TD>\n"; } else { ! echo " <TD NOWRAP ALIGN=right>". $obj->id ."</TD>\n"; echo " <TD NOWRAP ALIGN=right>". $obj->getLink() ."</TD>\n"; } ! if ( $obj == -1 ) { echo " <TD NOWRAP ALIGN=right>". $lang['HistoryDeleted'] ."</TD>\n"; } else { --- 52,62 ---- # echo " <TD NOWRAP ALIGN=right>". $lang[$obj->getType()] ."</TD>\n"; if ( $obj == -1 ) { ! echo " <TD NOWRAP ALIGN=right>ID:". $oid ."</TD>\n"; echo " <TD NOWRAP ALIGN=right>". $lang['HistoryDeleted'] ."</TD>\n"; } else { ! echo " <TD NOWRAP ALIGN=right>". $lang[$obj->getType()] ."</TD>\n"; echo " <TD NOWRAP ALIGN=right>". $obj->getLink() ."</TD>\n"; } ! if ( $adr == -1 ) { echo " <TD NOWRAP ALIGN=right>". $lang['HistoryDeleted'] ."</TD>\n"; } else { |
From: Gero K. <gok...@us...> - 2001-08-27 21:15:34
|
Update of /cvsroot/tutos/tutos In directory usw-pr-cvs1:/tmp/cvs-serv27013 Modified Files: Makefile.in Log Message: added acl_overview Index: Makefile.in =================================================================== RCS file: /cvsroot/tutos/tutos/Makefile.in,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -r1.60 -r1.61 *** Makefile.in 2001/08/27 16:05:26 1.60 --- Makefile.in 2001/08/27 21:15:32 1.61 *************** *** 11,14 **** --- 11,17 ---- # # $Log$ + # Revision 1.61 2001/08/27 21:15:32 gokohnert + # added acl_overview + # # Revision 1.60 2001/08/27 16:05:26 gokohnert # Added message handling files *************** *** 197,200 **** --- 200,204 ---- php/acl_ins.php \ php/acl_show.php \ + php/acl_overview.php \ php/admin_show.php \ php/address.pinc \ |
From: Boris W. <bw...@us...> - 2001-08-27 20:01:40
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv30007 Modified Files: watchlist_overview.php Log Message: ... and added some consistency fix Index: watchlist_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/watchlist_overview.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** watchlist_overview.php 2001/08/27 19:58:42 1.8 --- watchlist_overview.php 2001/08/27 20:01:38 1.9 *************** *** 60,66 **** } if ( $obj == -1 ) { - echo " <TD NOWRAP ALIGN=right>". $adr->getLink() ."</TD>\n"; - } else { echo " <TD NOWRAP ALIGN=right>". $lang['HistoryDeleted'] ."</TD>\n"; } if ( ($current_user->id == $aid) || ($obj->mod_ok()) ) { --- 60,66 ---- } if ( $obj == -1 ) { echo " <TD NOWRAP ALIGN=right>". $lang['HistoryDeleted'] ."</TD>\n"; + } else { + echo " <TD NOWRAP ALIGN=right>". $adr->getLink() ."</TD>\n"; } if ( ($current_user->id == $aid) || ($obj->mod_ok()) ) { |
From: Boris W. <bw...@us...> - 2001-08-27 19:58:49
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv28239 Modified Files: watchlist_overview.php Log Message: Fixed some of Gero's fixes Index: watchlist_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/watchlist_overview.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** watchlist_overview.php 2001/08/27 14:11:38 1.7 --- watchlist_overview.php 2001/08/27 19:58:42 1.8 *************** *** 52,67 **** echo "<TR>\n"; # echo " <TD NOWRAP ALIGN=right>". $lang[$obj->getType()] ."</TD>\n"; ! if ( $obj = -1 ) { echo " <TD NOWRAP ALIGN=right>". $oid ."</TD>\n"; echo " <TD NOWRAP ALIGN=right>". $lang['HistoryDeleted'] ."</TD>\n"; ! } else { echo " <TD NOWRAP ALIGN=right>". $obj->id ."</TD>\n"; echo " <TD NOWRAP ALIGN=right>". $obj->getLink() ."</TD>\n"; ! } ! if ( $obj = -1 ) { echo " <TD NOWRAP ALIGN=right>". $adr->getLink() ."</TD>\n"; ! } else { echo " <TD NOWRAP ALIGN=right>". $lang['HistoryDeleted'] ."</TD>\n"; ! } if ( ($current_user->id == $aid) || ($obj->mod_ok()) ) { $url = confirmlink("watchlist_del.php?id=". $oid ."&adr=". $aid ."&gotourl=". $link1 ,$lang['Delete'],$lang['WatchDel']); --- 52,67 ---- echo "<TR>\n"; # echo " <TD NOWRAP ALIGN=right>". $lang[$obj->getType()] ."</TD>\n"; ! if ( $obj == -1 ) { echo " <TD NOWRAP ALIGN=right>". $oid ."</TD>\n"; echo " <TD NOWRAP ALIGN=right>". $lang['HistoryDeleted'] ."</TD>\n"; ! } else { echo " <TD NOWRAP ALIGN=right>". $obj->id ."</TD>\n"; echo " <TD NOWRAP ALIGN=right>". $obj->getLink() ."</TD>\n"; ! } ! if ( $obj == -1 ) { echo " <TD NOWRAP ALIGN=right>". $adr->getLink() ."</TD>\n"; ! } else { echo " <TD NOWRAP ALIGN=right>". $lang['HistoryDeleted'] ."</TD>\n"; ! } if ( ($current_user->id == $aid) || ($obj->mod_ok()) ) { $url = confirmlink("watchlist_del.php?id=". $oid ."&adr=". $aid ."&gotourl=". $link1 ,$lang['Delete'],$lang['WatchDel']); *************** *** 146,148 **** CVS Info: $Id$ $Author$ ! --> \ No newline at end of file --- 146,148 ---- CVS Info: $Id$ $Author$ ! --> |
From: Boris W. <bw...@us...> - 2001-08-27 19:43:57
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv22162 Modified Files: admin_show.php Added Files: acl_overview.php Log Message: Added an overview of TUTOS ACLs (you can call this db benchmark ;-) --- NEW FILE: acl_overview.php --- <? /* Copyright 2001 Boris Wesslowski */ include("webelements.p3"); include("permission.p3"); include("acl.pinc"); include("address.pinc"); include("appointment.pinc"); include("bug.pinc"); include("company.pinc"); include("config.pinc"); include("Date.pinc"); include("department.pinc"); include("file.pinc"); include("history.pinc"); include("installation.pinc"); include("location.pinc"); include("mailbox.pinc"); include("mail.pinc"); include("note.pinc"); include("product.pinc"); include("resource.pinc"); include("task.pinc"); include("team.pinc"); include("timetrack.pinc"); include("url.pinc"); include("user.pinc"); check_user(); Function info($type) { global $lang, $conn, $current_user; if ( $current_user->admin == 0) { echo "Only admins are allowed to see this\n"; return; } $query = "SELECT DISTINCT obj_id FROM acl WHERE obj_id > 0 ORDER by obj_id"; $result = @DB_Exec($conn,$query); $n = DB_NumRows($result); if ( 0 != $n) { echo "<TABLE BORDER=1 CELLPADDING=3 CELLSPACING=0>\n"; echo "<TR>\n"; echo "<TH>#</TH><TH>ID</TH><TH>type</TH><TH>object</TH><TH>owner</TH><TH>". $lang['permissions'] ."</TH>\n"; echo "</TR>\n"; $a = 0; while ( $a < $n ) { $g = DB_Result($result, $a, "obj_id"); $obj = getObject($g); $found = 0; if ( $type == "" ) { $found = 1; } else { if ( $obj == -1 ) { $a++; continue; } $otype = $obj->getType(); } if ( ($type == "address" ) && ( $otype == "address" ) ) { $found = 1; } else if ( ($type == "file" ) && ( $otype == "file" ) ) { $found = 1; } else if ( ($type == "note" ) && ( $otype == "note" ) ) { $found = 1; } else if ( ($type == "appointment" ) && ( $otype == "appointment" ) ) { $found = 1; } else if ( ($type == "task" ) && ( $otype == "task" ) ) { $found = 1; } else if ( ($type == "user" ) && ( $otype == "user" ) ) { $found = 1; } else if ( ($type == "company" ) && ( $otype == "company" ) ) { $found = 1; } else if ( ($type == "product" ) && ( $otype == "product" ) ) { $found = 1; } else if ( ($type == "resource" ) && ( $otype == "resource" ) ) { $found = 1; } else if ( ($type == "installation" ) && ( $otype == "installation" ) ) { $found = 1; } if ($found == 0 ) { $a++; continue; } $q = "SELECT * FROM acl WHERE obj_id=". $g; $r = @DB_Exec($conn,$q); $n2 = DB_NumRows($r); if ( 0 != $n2) { echo "<TR>\n"; echo "<TD ALIGN=\"right\" ROWSPAN=\"". $n2 ."\">". $a ."</TD>\n"; echo "<TD ROWSPAN=\"". $n2 ."\">". $g ."</TD>\n"; if ( $obj != -1 ) { echo "<TD ROWSPAN=\"". $n2 ."\">". $obj->getType() ."</TD>\n"; echo "<TD ROWSPAN=\"". $n2 ."\">". $obj->getLink() ."</TD>\n"; } else { echo "<TD ROWSPAN=\"". $n2 ."\">unknown</TD>\n"; echo "<TD ROWSPAN=\"". $n2 ."\">unknown</TD>\n"; } $b = 0; while ( $b < $n2 ) { if ( $b > 0 ) { echo "<TR>"; } $h = DB_Result($r, $b, "adr_id"); $o = getObject($h); if ( $o != -1 ) { echo "<TD>". $o->getFullName() ."</TD>\n"; } else { if ( $h == 0 ) { echo "<TD>". $lang['everybody'] ."</TD>\n"; } else { echo "<TD>Unknown object ". $h ."</TD>\n"; } } echo "<TD>"; $p = DB_Result($r, $b, "perm"); if ( $p == 1 ) { echo $lang['ACLread']; } else if ( $p == 10 ) { echo $lang['ACLmodify']; } else if ( $p == 20 ) { echo $lang['ACLdelete']; } else { echo "?"; } echo "</TD></TR>\n"; $b++; } } $a++; } echo "</TABLE>\n"; } } Function navigate() { global $lang; echo "<TABLE>\n"; echo "<TR><TD>\n"; echo "Show<BR><UL>\n"; echo "<LI>". menulink("acl_overview.php","Everything","Everything") ."\n"; echo "<LI>". menulink("acl_overview.php?type=address","Addresses","Addresses") ."\n"; echo "<LI>". menulink("acl_overview.php?type=file","Files","Files") ."\n"; echo "<LI>". menulink("acl_overview.php?type=note","Notes","Notes") ."\n"; echo "<LI>". menulink("acl_overview.php?type=appointment","Appointments","Appointments") ."\n"; echo "<LI>". menulink("acl_overview.php?type=task","Tasks","Tasks") ."\n"; echo "<LI>". menulink("acl_overview.php?type=user","Users","Users") ."\n"; echo "<LI>". menulink("acl_overview.php?type=company","Companies","Companies") ."\n"; echo "<LI>". menulink("acl_overview.php?type=product","Products","Products") ."\n"; echo "<LI>". menulink("acl_overview.php?type=resource","Resources","Resources") ."\n"; echo "<LI>". menulink("acl_overview.php?type=installation","Installations","Installations") ."\n"; echo "</UL></TD></TR>\n"; HTML_Select(); } HTML_Header("ACL overview"); HTML_Base1(); navigate(); HTML_Base2($msg); info($type); HTML_Base3(); DB_Close($conn); ?> Index: admin_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/admin_show.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** admin_show.php 2001/08/27 14:38:55 1.12 --- admin_show.php 2001/08/27 19:43:46 1.13 *************** *** 155,158 **** --- 155,159 ---- echo "<TABLE>"; echo "<TR><TD>"; + echo menulink("acl_overview.php","ACL overview","See all access control lists"); echo "</TD></TR>"; |
From: Gero K. <gok...@us...> - 2001-08-27 17:22:04
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv23061/php Modified Files: user_new.php user_ins.php Log Message: handling for slashes in rebounced pages Index: user_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/user_new.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -r1.20 -r1.21 *** user_new.php 2001/08/26 16:15:20 1.20 --- user_new.php 2001/08/27 17:22:00 1.21 *************** *** 58,63 **** $achecked[1] =""; $achecked[$user->admin] ="CHECKED"; ! echo " <TD>". $lang['yes'] ." <INPUT type=radio name=admin value=1 $achecked[1]></TD>"; ! echo " <TD COLSPAN=2>". $lang['no'] ." <INPUT type=radio name=admin value=0 $achecked[0]></TD>"; } else { echo "<INPUT type=hidden name=\"admin\" value=\"". $user->admin ."\">\n"; --- 58,63 ---- $achecked[1] =""; $achecked[$user->admin] ="CHECKED"; ! echo " <TD>". $lang['yes'] ." <INPUT type=radio name=admin value=1 ". $achecked[1] ."></TD>"; ! echo " <TD COLSPAN=2>". $lang['no'] ." <INPUT type=radio name=admin value=0 ". $achecked[0] ."></TD>"; } else { echo "<INPUT type=hidden name=\"admin\" value=\"". $user->admin ."\">\n"; *************** *** 216,220 **** if (isset($login)) { ! $user->login = $login; } --- 216,220 ---- if (isset($login)) { ! $user->login = StripSlashes($login); } Index: user_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/user_ins.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** user_ins.php 2001/08/11 19:11:25 1.8 --- user_ins.php 2001/08/27 17:22:00 1.9 *************** *** 25,29 **** $msg .= sprintf($lang['Err0009'],$lang['Username']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"login=". UrlEncode($login)); } --- 25,29 ---- $msg .= sprintf($lang['Err0009'],$lang['Username']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"login=". UrlEncode(StripSlashes($login))); } |
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv22637/php Modified Files: bug_ins.php bug_new.php note_ins.php note_new.php product_ins.php product_new.php task_ins.php task_new.php Log Message: handling for slashes in rebounced pages Index: bug_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug_ins.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** bug_ins.php 2001/08/22 22:19:00 1.7 --- bug_ins.php 2001/08/27 17:20:36 1.8 *************** *** 30,39 **** $msg .= sprintf($lang['Err0009'],$lang['BugAdditional']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"description=". UrlEncode($description)); } if ( empty($short) || !isset($short) ) { $msg .= sprintf($lang['Err0009'],$lang['BugShort']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"short=". UrlEncode($short)); } --- 30,39 ---- $msg .= sprintf($lang['Err0009'],$lang['BugAdditional']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"description=". UrlEncode(StripSlashes($description))); } if ( empty($short) || !isset($short) ) { $msg .= sprintf($lang['Err0009'],$lang['BugShort']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"short=". UrlEncode(StripSlashes($short))); } Index: bug_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug_new.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** bug_new.php 2001/08/26 12:16:40 1.15 --- bug_new.php 2001/08/27 17:20:36 1.16 *************** *** 172,181 **** if ( !empty($description) ) { ! $b->newdesc = $description; } else { $b->newdesc = ""; } if ( isset($short) ) { ! $b->short = $short; } if ( !empty($state) ) { --- 172,181 ---- if ( !empty($description) ) { ! $b->newdesc = StripSlashes($description); } else { $b->newdesc = ""; } if ( isset($short) ) { ! $b->short = StripSlashes($short); } if ( !empty($state) ) { Index: note_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/note_ins.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** note_ins.php 2001/08/26 07:34:27 1.7 --- note_ins.php 2001/08/27 17:20:36 1.8 *************** *** 34,38 **** $msg .= sprintf($lang['Err0009'],$lang['NoteName']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"name=". UrlEncode($name)); $u->name = $name; } --- 34,38 ---- $msg .= sprintf($lang['Err0009'],$lang['NoteName']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"name=". UrlEncode(StripSlashes($name))); $u->name = $name; } *************** *** 40,44 **** $msg .= sprintf($lang['Err0009'],$lang['NoteDescription']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"note=". UrlEncode($note)); $u->note = $note; } --- 40,44 ---- $msg .= sprintf($lang['Err0009'],$lang['NoteDescription']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"note=". UrlEncode(StripSlashes($note))); $u->note = $note; } Index: note_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/note_new.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** note_new.php 2001/08/26 12:16:40 1.12 --- note_new.php 2001/08/27 17:20:36 1.13 *************** *** 107,114 **** } if ( isset($note) ){ ! $p->note = $note; } if ( isset($name) ){ ! $p->name = $name; } if ( isset($remember) ) { --- 107,114 ---- } if ( isset($note) ){ ! $p->note = StripSlashes($note); } if ( isset($name) ){ ! $p->name = StripSlashes($name); } if ( isset($remember) ) { Index: product_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_ins.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** product_ins.php 2001/08/11 19:11:25 1.14 --- product_ins.php 2001/08/27 17:20:36 1.15 *************** *** 63,67 **** $msg .= sprintf($lang['Err0009'],$lang['ProdName']) ."<BR>"; } ! $gotourl= addUrlParameter($gotourl,"name=". UrlEncode($name)); --- 63,67 ---- $msg .= sprintf($lang['Err0009'],$lang['ProdName']) ."<BR>"; } ! $gotourl= addUrlParameter($gotourl,"name=". UrlEncode(StripSlashes($name))); *************** *** 90,98 **** $gotourl= addUrlParameter($gotourl,"cost=". $cost); $gotourl= addUrlParameter($gotourl,"prob=". $prob); ! $gotourl= addUrlParameter($gotourl,"version=". UrlEncode($version)); ! $gotourl= addUrlParameter($gotourl,"desc1=". UrlEncode($desc1)); ! $gotourl= addUrlParameter($gotourl,"desc2=". UrlEncode($desc2)); ! $gotourl= addUrlParameter($gotourl,"description=". UrlEncode($description)); ! $gotourl= addUrlParameter($gotourl,"path=". UrlEncode($path)); $gotourl= addUrlParameter($gotourl,"currency=". UrlEncode($currency)); --- 90,98 ---- $gotourl= addUrlParameter($gotourl,"cost=". $cost); $gotourl= addUrlParameter($gotourl,"prob=". $prob); ! $gotourl= addUrlParameter($gotourl,"version=". UrlEncode(StripSlashes($version))); ! $gotourl= addUrlParameter($gotourl,"desc1=". UrlEncode(StripSlashes($desc1))); ! $gotourl= addUrlParameter($gotourl,"desc2=". UrlEncode(StripSlashes($desc2))); ! $gotourl= addUrlParameter($gotourl,"description=". UrlEncode(StripSlashes($description))); ! $gotourl= addUrlParameter($gotourl,"path=". UrlEncode(StripSlashes($path))); $gotourl= addUrlParameter($gotourl,"currency=". UrlEncode($currency)); Index: product_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_new.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -r1.20 -r1.21 *** product_new.php 2001/08/26 12:16:40 1.20 --- product_new.php 2001/08/27 17:20:36 1.21 *************** *** 261,277 **** if ( isset($name) ) { ! $p->name = $name; } if ( isset($version) ) { ! $p->version = $version; } if ( isset($desc1) ) { ! $p->desc1 = $desc1; } if ( isset($desc2) ) { ! $p->desc2 = $desc2; } if ( isset($description) ) { ! $p->description = $description; } if ( isset($path) ) { --- 261,277 ---- if ( isset($name) ) { ! $p->name = StripSlashes($name); } if ( isset($version) ) { ! $p->version = StripSlashes($version); } if ( isset($desc1) ) { ! $p->desc1 = StripSlashes($desc1); } if ( isset($desc2) ) { ! $p->desc2 = StripSlashes($desc2); } if ( isset($description) ) { ! $p->description = StripSlashes($description); } if ( isset($path) ) { Index: task_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_ins.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** task_ins.php 2001/08/11 19:11:25 1.9 --- task_ins.php 2001/08/27 17:20:36 1.10 *************** *** 27,36 **** $msg .= sprintf($lang['Err0009'],$lang['TaskName']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"name=". UrlEncode($name)); } if ( !isset($desc) || ($desc == "") ) { $msg .= sprintf($lang['Err0009'],$lang['TaskDesc']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"desc=". UrlEncode($desc)); } if ( !isset($state) || ($state == "") ) { --- 27,36 ---- $msg .= sprintf($lang['Err0009'],$lang['TaskName']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"name=". UrlEncode(StripSlashes($name))); } if ( !isset($desc) || ($desc == "") ) { $msg .= sprintf($lang['Err0009'],$lang['TaskDesc']) ."<BR>"; } else { ! $gotourl= addUrlParameter($gotourl,"desc=". UrlEncode(StripSlashes($desc))); } if ( !isset($state) || ($state == "") ) { Index: task_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_new.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** task_new.php 2001/08/26 12:16:40 1.14 --- task_new.php 2001/08/27 17:20:36 1.15 *************** *** 161,168 **** if ( isset($name) ) { ! $t->name = $name; } if ( isset($desc) ) { ! $t->desc = $desc; } if ( isset($p_id) ) { --- 161,168 ---- if ( isset($name) ) { ! $t->name = StripSlashes($name); } if ( isset($desc) ) { ! $t->desc = StripSlashes($desc); } if ( isset($p_id) ) { *************** *** 176,183 **** } if ( isset($volume) ) { ! $t->volume = $volume; } if ( isset($volume_done) ) { ! $t->volume_done = $volume_done; } if ( isset($worker) ) { --- 176,183 ---- } if ( isset($volume) ) { ! $t->volume = StripSlashes($volume); } if ( isset($volume_done) ) { ! $t->volume_done = StripSlashes($volume_done); } if ( isset($worker) ) { |
From: Gero K. <gok...@us...> - 2001-08-27 16:05:29
|
Update of /cvsroot/tutos/tutos In directory usw-pr-cvs1:/tmp/cvs-serv26327 Modified Files: Makefile.in Log Message: Added message handling files Index: Makefile.in =================================================================== RCS file: /cvsroot/tutos/tutos/Makefile.in,v retrieving revision 1.59 retrieving revision 1.60 diff -C2 -r1.59 -r1.60 *** Makefile.in 2001/08/26 12:17:34 1.59 --- Makefile.in 2001/08/27 16:05:26 1.60 *************** *** 11,14 **** --- 11,17 ---- # # $Log$ + # Revision 1.60 2001/08/27 16:05:26 gokohnert + # Added message handling files + # # Revision 1.59 2001/08/26 12:17:34 gokohnert # new red icons *************** *** 270,273 **** --- 273,278 ---- php/mailbox_overview.php \ php/mailbox_select.php \ + php/message_overview.php \ + php/message_del.php \ php/mytutos.php \ php/note.pinc \ *************** *** 531,534 **** --- 536,540 ---- html/paper.gif \ html/folder.gif \ + html/mail.gif \ html/tutos.gif \ html/tutos.xcf \ |