tutos-commits Mailing List for TUTOS
Projects / CRM / PLM / Calendar / Tasks / SCRUM / Test / Inventory
Brought to you by:
gokohnert
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(13) |
Aug
(214) |
Sep
(144) |
Oct
(22) |
Nov
(22) |
Dec
(93) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(25) |
Feb
(31) |
Mar
(92) |
Apr
(70) |
May
(103) |
Jun
(130) |
Jul
(265) |
Aug
(325) |
Sep
(233) |
Oct
(244) |
Nov
(261) |
Dec
(157) |
2003 |
Jan
(101) |
Feb
(135) |
Mar
(148) |
Apr
(164) |
May
(53) |
Jun
(116) |
Jul
(149) |
Aug
(126) |
Sep
(45) |
Oct
(109) |
Nov
(36) |
Dec
(61) |
2004 |
Jan
(131) |
Feb
(236) |
Mar
(278) |
Apr
(259) |
May
(92) |
Jun
(110) |
Jul
(150) |
Aug
(64) |
Sep
(141) |
Oct
(141) |
Nov
(146) |
Dec
(65) |
2005 |
Jan
(70) |
Feb
(77) |
Mar
(129) |
Apr
(153) |
May
(161) |
Jun
(63) |
Jul
(42) |
Aug
(16) |
Sep
(30) |
Oct
(3) |
Nov
(8) |
Dec
(40) |
2006 |
Jan
(114) |
Feb
(16) |
Mar
(12) |
Apr
(15) |
May
(4) |
Jun
(9) |
Jul
(69) |
Aug
(27) |
Sep
(12) |
Oct
(80) |
Nov
(62) |
Dec
(41) |
2007 |
Jan
(34) |
Feb
(2) |
Mar
(38) |
Apr
(82) |
May
(61) |
Jun
(37) |
Jul
(16) |
Aug
(64) |
Sep
(7) |
Oct
(52) |
Nov
(18) |
Dec
(28) |
2008 |
Jan
(168) |
Feb
(26) |
Mar
(27) |
Apr
(19) |
May
(10) |
Jun
(58) |
Jul
(58) |
Aug
(91) |
Sep
(14) |
Oct
(23) |
Nov
(56) |
Dec
(38) |
2009 |
Jan
(58) |
Feb
(90) |
Mar
(204) |
Apr
(90) |
May
(27) |
Jun
(177) |
Jul
(116) |
Aug
(53) |
Sep
(42) |
Oct
(120) |
Nov
(51) |
Dec
(58) |
2010 |
Jan
(117) |
Feb
(231) |
Mar
(163) |
Apr
(90) |
May
(40) |
Jun
(139) |
Jul
(49) |
Aug
(118) |
Sep
(25) |
Oct
(80) |
Nov
(102) |
Dec
(99) |
2011 |
Jan
(176) |
Feb
(42) |
Mar
(60) |
Apr
(52) |
May
(30) |
Jun
(29) |
Jul
(27) |
Aug
(16) |
Sep
(51) |
Oct
(70) |
Nov
(63) |
Dec
(58) |
2012 |
Jan
(28) |
Feb
(26) |
Mar
(7) |
Apr
(12) |
May
(41) |
Jun
(61) |
Jul
(59) |
Aug
(38) |
Sep
(30) |
Oct
(28) |
Nov
(14) |
Dec
(31) |
2013 |
Jan
(24) |
Feb
(54) |
Mar
(45) |
Apr
(22) |
May
(35) |
Jun
(8) |
Jul
(18) |
Aug
(38) |
Sep
(11) |
Oct
(8) |
Nov
(19) |
Dec
(20) |
2014 |
Jan
(20) |
Feb
(22) |
Mar
(4) |
Apr
(6) |
May
(13) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(6) |
2015 |
Jan
|
Feb
(1) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
2016 |
Jan
(4) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
(2) |
Aug
(4) |
Sep
(1) |
Oct
(1) |
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(8) |
Aug
(13) |
Sep
(12) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2021 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
1
(6) |
2
(15) |
3
(5) |
4
(3) |
5
|
6
|
7
(7) |
8
(3) |
9
(8) |
10
(3) |
11
(2) |
12
|
13
|
14
(15) |
15
(6) |
16
(5) |
17
|
18
(18) |
19
(1) |
20
(2) |
21
|
22
(8) |
23
(5) |
24
(14) |
25
|
26
(15) |
27
|
28
|
29
|
30
(1) |
31
(7) |
|
|
From: Gero K. <gok...@us...> - 2003-07-31 19:46:34
|
Update of /cvsroot/tutos/tutos/php/url In directory sc8-pr-cvs1:/tmp/cvs-serv24303/php/url Modified Files: Tag: BRANCH-1-1 url.pinc Log Message: missing global Index: url.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/url/url.pinc,v retrieving revision 1.8.2.1 retrieving revision 1.8.2.2 diff -u -r1.8.2.1 -r1.8.2.2 --- url.pinc 24 Jul 2003 19:18:02 -0000 1.8.2.1 +++ url.pinc 31 Jul 2003 19:46:31 -0000 1.8.2.2 @@ -68,7 +68,7 @@ * Save URL to DB */ function save() { - global $table; + global $table,$tutos; $msg = ""; $q = new query($this->dbconn); |
From: Gero K. <gok...@us...> - 2003-07-31 18:01:34
|
Update of /cvsroot/tutos/tutos/php/mailbox In directory sc8-pr-cvs1:/tmp/cvs-serv4683/php/mailbox Modified Files: Tag: BRANCH-1-1 mailbox_new.php mailbox_show.php Log Message: updated and better security checks (UPDATE RECOMMENDED) Index: mailbox_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/mailbox/mailbox_new.php,v retrieving revision 1.5.2.1 retrieving revision 1.5.2.2 diff -u -r1.5.2.1 -r1.5.2.2 --- mailbox_new.php 1 Jul 2003 19:27:30 -0000 1.5.2.1 +++ mailbox_new.php 31 Jul 2003 17:56:14 -0000 1.5.2.2 @@ -27,7 +27,7 @@ Function info() { global $tutos,$lang,$table; - echo "<form action=\"mailbox_ins.php\" method=\"post\">\n"; + echo "<form name=\"mailboxnew\" action=\"mailbox_ins.php\" method=\"post\">\n"; echo $this->DataTableStart(); $this->addHidden("parent",$this->obj->parent->id); echo "<tr><th colspan=\"6\">"; @@ -104,6 +104,7 @@ hiddenFormElements(); echo $this->getHidden(); echo "</form>\n"; + echo $this->setfocus("mailboxnew.host"); echo $lang['FldsRequired'] ."\n"; } /** @@ -127,16 +128,20 @@ $this->stop = true; } + if ( ($this->obj->id < 0) && !$this->user->feature_ok(usemailboxes,PERM_NEW) ) { + $msg .= sprintf($lang['Err0054'],$lang[$this->obj->getType()]); + $this->stop = true; + } else if ( ! $this->obj->mod_ok() ) { + $msg .= sprintf($lang['Err0024'],$lang[$this->obj->getType()]); + $this->stop = true; + } + if ( $this->obj->id > 0 ) { $this->addHidden("id",$this->obj->id); $this->name = $lang['MailboxModify']; } else { $this->name = $lang['MailboxCreate']; } - if ( ! $this->obj->mod_ok() ) { - $msg .= sprintf($lang['Err0024'],$lang[$m->getType()]); - $this->stop = true; - } if ( ($this->obj->id > 0) && $this->obj->del_ok() ) { $x = array( url => "mailbox/mailbox_del.php?id=". $this->obj->id, Index: mailbox_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/mailbox/mailbox_show.php,v retrieving revision 1.4.2.1 retrieving revision 1.4.2.2 diff -u -r1.4.2.1 -r1.4.2.2 --- mailbox_show.php 15 May 2003 17:00:00 -0000 1.4.2.1 +++ mailbox_show.php 31 Jul 2003 17:56:14 -0000 1.4.2.2 @@ -295,6 +295,9 @@ if ( $this->obj->id < 1 ) { $this->stop = true; $msg .= sprintf($lang['Err0040'],$lang[$this->obj->getType()]); + } else if ( ! $this->obj->see_ok() ) { + $msg .= sprintf($lang['Err0022'],$lang[$this->obj->getType()]); + $this->stop = true; } $nopw = ($this->obj->pw == "" ); @@ -317,12 +320,6 @@ $this->search = ""; } else { $this->search = $_GET['search']; - } - - - if ( ! $this->obj->see_ok() ) { - $msg .= sprintf($lang['Err0022'],$lang[$this->obj->getType()]); - $this->stop = true; } if ( ($this->obj->id > 0) && $this->obj->mod_ok() ) { |
From: Gero K. <gok...@us...> - 2003-07-31 18:01:33
|
Update of /cvsroot/tutos/tutos/php In directory sc8-pr-cvs1:/tmp/cvs-serv4683/php Modified Files: Tag: BRANCH-1-1 address_new.php company_new.php database_new.php department_new.php task_new.php team_new.php team_overview.php team_select.php timetrack_new.php user_new.php Log Message: updated and better security checks (UPDATE RECOMMENDED) Index: address_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/address_new.php,v retrieving revision 1.52.2.1 retrieving revision 1.52.2.2 diff -u -r1.52.2.1 -r1.52.2.2 --- address_new.php 14 Jul 2003 17:48:48 -0000 1.52.2.1 +++ address_new.php 31 Jul 2003 17:56:14 -0000 1.52.2.2 @@ -372,14 +372,6 @@ $this->modloc = true; $this->modadr = false; - if (($this->obj->id < 0) && !$this->user->feature_ok(useaddressbook,PERM_NEW) ) { - $msg .= sprintf($lang['Err0054'],$lang[$this->obj->getType()]); - $this->stop = true; - } else if ( ! $this->obj->mod_ok() ) { - $msg .= sprintf($lang['Err0024'],$lang[$this->obj->getType()]); - $this->stop = true; - } - if ( isset($this->loc->company) ) { $this->loc->company_name = $this->loc->company->name; } @@ -442,6 +434,13 @@ $this->obj->pic_file->pic_path = StripSlashes($_GET['pic_path']); } else { $this->obj->pic_file->pic_path = ""; + } + if (($this->obj->id < 0) && !$this->user->feature_ok(useaddressbook,PERM_NEW) ) { + $msg .= sprintf($lang['Err0054'],$lang[$this->obj->getType()]); + $this->stop = true; + } else if ( ! $this->obj->mod_ok() ) { + $msg .= sprintf($lang['Err0024'],$lang[$this->obj->getType()]); + $this->stop = true; } } Index: company_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/company_new.php,v retrieving revision 1.52.2.1 retrieving revision 1.52.2.2 diff -u -r1.52.2.1 -r1.52.2.2 --- company_new.php 15 May 2003 16:29:54 -0000 1.52.2.1 +++ company_new.php 31 Jul 2003 17:56:14 -0000 1.52.2.2 @@ -168,6 +168,13 @@ } else { $this->loc = ""; } + if ( ($this->obj->id < 0) && !$this->user->feature_ok(useaddressbook,PERM_NEW) ) { + $msg .= sprintf($lang['Err0054'],$lang[$this->obj->getType()]); + $this->stop = true; + } else if ( ! $this->obj->mod_ok() ) { + $msg .= sprintf($lang['Err0024'],$lang[$this->obj->getType()]); + $this->stop = true; + } if ( isset($_GET['name']) ) { $this->obj->name = StripSlashes($_GET['name']); Index: database_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/database_new.php,v retrieving revision 1.23 retrieving revision 1.23.2.1 diff -u -r1.23 -r1.23.2.1 --- database_new.php 31 Dec 2002 14:33:37 -0000 1.23 +++ database_new.php 31 Jul 2003 17:56:14 -0000 1.23.2.1 @@ -185,9 +185,17 @@ if ( isset($_GET['id']) && ($_GET['id'] > -1) ) { $this->name = $lang['DBModify']; $this->obj->read($_GET['id']); + if ( ($this->obj->id < 0) ) { + $msg .= sprintf($lang['Err0040'],$lang[$this->obj->getType()]); + $this->stop = true; + } } else { $this->name = $lang['DBCreate']; $this->obj->name = $lang['PlsChangeName']; + if ( !$this->user->isadmin()) { + $msg .= sprintf($lang['Err0054'],$lang[$this->obj->getType()]); + $this->stop = true; + } } if ( !empty($_GET['name']) ) { $this->obj->name = StripSlashes($_GET['name']); Index: department_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/department_new.php,v retrieving revision 1.47.2.1 retrieving revision 1.47.2.2 diff -u -r1.47.2.1 -r1.47.2.2 --- department_new.php 15 May 2003 16:29:54 -0000 1.47.2.1 +++ department_new.php 31 Jul 2003 17:56:14 -0000 1.47.2.2 @@ -169,6 +169,13 @@ } else { $this->loc = ""; } + if ( ($this->obj->id < 0) && !$this->user->feature_ok(useaddressbook,PERM_NEW) ) { + $msg .= sprintf($lang['Err0054'],$lang[$this->obj->getType()]); + $this->stop = true; + } else if ( ! $this->obj->mod_ok() ) { + $msg .= sprintf($lang['Err0024'],$lang[$this->obj->getType()]); + $this->stop = true; + } if ( isset($_GET['name']) ) { $this->obj->name = StripSlashes($_GET['name']); Index: task_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_new.php,v retrieving revision 1.48.2.2 retrieving revision 1.48.2.3 diff -u -r1.48.2.2 -r1.48.2.3 --- task_new.php 3 Jul 2003 14:35:23 -0000 1.48.2.2 +++ task_new.php 31 Jul 2003 17:56:14 -0000 1.48.2.3 @@ -190,7 +190,10 @@ } else { $this->name = $lang['TaskCreate']; } - if ( ! $this->obj->mod_ok() ) { + if ( ($this->obj->id < 0) && !$this->user->feature_ok(usetaskmanagement,PERM_NEW) ) { + $msg .= sprintf($lang['Err0054'],$lang[$this->obj->getType()]); + $this->stop = true; + } else if ( ! $this->obj->mod_ok() ) { $msg .= sprintf($lang['Err0024'],$lang[$this->obj->getType()]); $this->stop = true ; } Index: team_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/team_new.php,v retrieving revision 1.40 retrieving revision 1.40.2.1 diff -u -r1.40 -r1.40.2.1 --- team_new.php 25 Mar 2003 19:18:27 -0000 1.40 +++ team_new.php 31 Jul 2003 17:56:14 -0000 1.40.2.1 @@ -206,16 +206,15 @@ if ( isset($_GET['email']) ) { $this->obj->email = trim(Stripslashes($_GET['email'])); } - if (! $this->obj->mod_ok() ) { + if ( ($this->obj->id < 0) && !$this->user->feature_ok(useteams,PERM_NEW) ) { + $msg .= sprintf($lang['Err0054'],$lang[$this->obj->getType()]); + $this->stop = true; + } else if (! $this->obj->mod_ok() ) { $msg .= sprintf($lang['Err0024'],$lang[$this->obj->getType()]); $this->stop = true; } -# if ( ! $this->user->isAdmin()) { -# $msg .= "Only admins are allowed to see this<br>"; -# $this->stop = true; -# } # menu - if ( $this->user->isAdmin() ) { + if ( $this->user->feature_ok(useteams,PERM_NEW) ) { $x = array( url => "team_new.php", text => $lang['NewEntry'], info => $lang['TeamCreateI'], Index: team_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/team_overview.php,v retrieving revision 1.40 retrieving revision 1.40.2.1 diff -u -r1.40 -r1.40.2.1 --- team_overview.php 23 Mar 2003 22:11:14 -0000 1.40 +++ team_overview.php 31 Jul 2003 17:56:14 -0000 1.40.2.1 @@ -179,7 +179,7 @@ $x = team::getSelectLink($this->user,$lang['Search']); $this->addMenu($x); - if ( $this->user->isAdmin() ) { + if ( $this->user->feature_ok(useteams,PERM_NEW) ) { $x = array( url => "team_new.php", text => $lang['NewEntry'], info => $lang['TeamCreateI'], Index: team_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/team_select.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -u -r1.1 -r1.1.2.1 --- team_select.php 14 Mar 2003 18:16:06 -0000 1.1 +++ team_select.php 31 Jul 2003 17:56:14 -0000 1.1.2.1 @@ -61,6 +61,14 @@ global $msg,$lang; $this->name = $lang['TeamSearch']; + if ( $this->user->feature_ok(useteams,PERM_NEW) ) { + $x = array( url => "team_new.php", + text => $lang['NewEntry'], + info => $lang['TeamCreateI'], + category => array("team","new","obj") + ); + $this->addMenu($x); + } } } Index: timetrack_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/timetrack_new.php,v retrieving revision 1.42.2.3 retrieving revision 1.42.2.4 diff -u -r1.42.2.3 -r1.42.2.4 --- timetrack_new.php 23 Jul 2003 14:48:35 -0000 1.42.2.3 +++ timetrack_new.php 31 Jul 2003 17:56:14 -0000 1.42.2.4 @@ -62,7 +62,7 @@ } echo "<form name=\"ttadd\" action=\"timetrack_ins.php\" method=\"POST\">\n"; - $this->addHidden("mode",$this->mode); + $this->addHidden("mode",$this->mode); echo $this->DataTableStart(); echo "<tr><th colspan=\"4\">"; echo " "; @@ -175,7 +175,7 @@ echo $this->DataTableEnd(); hiddenFormElements(); - echo $this->getHidden(); + echo $this->getHidden(); echo "</form>\n"; echo $this->setfocus("ttadd.desc"); echo $lang['FldsRequired'] ."\n"; @@ -208,6 +208,10 @@ if ( ($this->obj->t_start->notime == 0) && ( $this->mode != 2) ) { $this->mode = 1; } + if ( ($this->obj->id < 0) ) { + $msg .= sprintf($lang['Err0040'],$lang[$this->obj->getType()]); + $this->stop = true; + } } else { # new stuff if ( $this->mode == 1 ) { @@ -215,6 +219,10 @@ } $this->obj->ref = $this->user; } + if ( ($this->obj->id < 0) && !$this->user->feature_ok(usetimetrack,PERM_NEW) ) { + $msg .= sprintf($lang['Err0054'],$lang[$this->obj->getType()]); + $this->stop = true; + } if ( $this->mode != 0 ) { $this->name = $lang['TTRecord']; @@ -264,7 +272,7 @@ } # menu $x = timetrack::getSelectLink($this->user,$lang['Search']); - $x[category][] = "obj"; + $x[category][] = "obj"; $this->addmenu($x); $x = timetrack::getaddlink($this->user,$this->obj->ref); @@ -293,4 +301,4 @@ <!-- CVS Info: $Id$ $Author$ ---> +--> \ No newline at end of file Index: user_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/user_new.php,v retrieving revision 1.68.2.1 retrieving revision 1.68.2.2 diff -u -r1.68.2.1 -r1.68.2.2 --- user_new.php 22 Jul 2003 17:50:28 -0000 1.68.2.1 +++ user_new.php 31 Jul 2003 17:56:14 -0000 1.68.2.2 @@ -353,8 +353,11 @@ $this->obj->read($_GET['uid'],1); $this->obj->read_permissions(); } else { - $this->obj = &$this->user; + $this->obj = &$this->user; } + if ( ! $this->user->isAdmin()) { + $this->obj = &$this->user; + } $this->addHidden("uid",$this->obj->uid); $this->addHidden("id",$this->obj->id); |
From: Gero K. <gok...@us...> - 2003-07-31 17:59:04
|
Update of /cvsroot/tutos/tutos/php/file In directory sc8-pr-cvs1:/tmp/cvs-serv4683/php/file Modified Files: Tag: BRANCH-1-1 file_new.php Log Message: updated and better security checks (UPDATE RECOMMENDED) Index: file_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/file/file_new.php,v retrieving revision 1.7.2.1 retrieving revision 1.7.2.2 diff -u -r1.7.2.1 -r1.7.2.2 --- file_new.php 14 Jul 2003 17:49:52 -0000 1.7.2.1 +++ file_new.php 31 Jul 2003 17:56:14 -0000 1.7.2.2 @@ -155,8 +155,8 @@ $this->obj->link_id = $this->user->id; } if ( ! $this->user->feature_ok(usedocmanagement,PERM_NEW) ) { - $msg .= sprintf($lang['Err0024'],$lang[$this->obj->getType()]); - $stop = 1; + $msg .= sprintf($lang['Err0054'],$lang[$this->obj->getType()]); + $this->stop = true; } } if ( isset($_GET['name']) ){ |
From: Gero K. <gok...@us...> - 2003-07-31 17:59:04
|
Update of /cvsroot/tutos/tutos/php/invoice In directory sc8-pr-cvs1:/tmp/cvs-serv4683/php/invoice Modified Files: Tag: BRANCH-1-1 invoice_new.php invoice_show.php Log Message: updated and better security checks (UPDATE RECOMMENDED) Index: invoice_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/invoice/invoice_new.php,v retrieving revision 1.28.2.2 retrieving revision 1.28.2.3 diff -u -r1.28.2.2 -r1.28.2.3 --- invoice_new.php 20 May 2003 18:16:23 -0000 1.28.2.2 +++ invoice_new.php 31 Jul 2003 17:56:14 -0000 1.28.2.3 @@ -338,7 +338,7 @@ if ( isset($_GET['id']) ) { $this->obj->read($_GET['id']); if ($this->obj->id == -1) { - $msg .= sprintf($lang['Err0040'],$lang[$i->getType()]) . "<br>"; + $msg .= sprintf($lang['Err0040'],$lang[$this->obj->getType()]) . "<br>"; $this->stop = true; } $this->name .= ": ". $this->obj->getFullName(); @@ -346,6 +346,15 @@ } else { $this->name = $lang['InvoiceCreate']; } + + if ( ($this->obj->id < 0) && !$this->user->feature_ok(useprojects,PERM_NEW) ) { + $msg .= sprintf($lang['Err0054'],$lang[$this->obj->getType()]); + $this->stop = true; + } else if ( ! $this->obj->mod_ok() ) { + $msg .= sprintf($lang['Err0024'],$lang[$this->obj->getType()]); + $this->stop = true; + } + if ( isset($_GET['state']) ) { $this->obj->state = $_GET['state']; } @@ -367,18 +376,10 @@ $this->obj->customer = $this->obj->ref->customer; } } - } else if ( $this->obj->id == -1 ) { - # new and no link_id - $msg .= sprintf($lang['Err0040'],$lang[$this->obj->getType()]) . "<br>"; - $this->stop = true; } # Customer preset_from_array_or_input($this->obj,'customer',"c"); - if ( ! $this->obj->mod_ok() ) { - $msg .= sprintf($lang['Err0024'],$lang[$this->obj->getType()]); - $this->stop = true; - } # menu $m = invoice::getSelectLink($this->user,$lang['Search']); $this->addmenu($m); Index: invoice_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/invoice/invoice_show.php,v retrieving revision 1.24 retrieving revision 1.24.2.1 diff -u -r1.24 -r1.24.2.1 --- invoice_show.php 25 Mar 2003 19:18:36 -0000 1.24 +++ invoice_show.php 31 Jul 2003 17:56:14 -0000 1.24.2.1 @@ -199,10 +199,10 @@ $this->obj->read($_GET['id']); } if ( ! $this->obj->see_ok() ) { - $msg .= sprintf($lang['Err0022'],$lang[$i->getType()]); + $msg .= sprintf($lang['Err0022'],$lang[$this->obj->getType()]); $this->stop = true; } else if ( $this->obj->id < 0 ) { - $msg .= sprintf($lang['Err0040'],$lang[$i->getType()]); + $msg .= sprintf($lang['Err0040'],$lang[$this->obj->getType()]); $this->stop = true; } else { $this->name .= ": ". $this->obj->getFullName(); |
From: Gero K. <gok...@us...> - 2003-07-31 17:59:03
|
Update of /cvsroot/tutos/tutos/php/note In directory sc8-pr-cvs1:/tmp/cvs-serv4683/php/note Modified Files: Tag: BRANCH-1-1 note_new.php Log Message: updated and better security checks (UPDATE RECOMMENDED) Index: note_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/note/note_new.php,v retrieving revision 1.18.2.1 retrieving revision 1.18.2.2 diff -u -r1.18.2.1 -r1.18.2.2 --- note_new.php 14 Jul 2003 17:49:52 -0000 1.18.2.1 +++ note_new.php 31 Jul 2003 17:56:14 -0000 1.18.2.2 @@ -121,6 +121,15 @@ $this->stop = true; } $this->obj->read_reference(); + + if (($this->obj->id < 0) && !$this->user->feature_ok(usenotes,PERM_NEW) ) { + $msg .= sprintf($lang['Err0054'],$lang[$this->obj->getType()]); + $this->stop = true; + } else if (! $this->obj->mod_ok() ) { + $msg .= sprintf($lang['Err0024'],$lang[$this->obj->getType()]); + $this->stop = true; + } + # menu $x = note::getSelectLink($this->user,$lang['Search']); $x[category][] = "obj"; |
From: Gero K. <gok...@us...> - 2003-07-31 10:24:36
|
Update of /cvsroot/tutos/tutos/html In directory sc8-pr-cvs1:/tmp/cvs-serv15275/html Modified Files: Tag: BRANCH-1-1 birthday_remember.proto.de Log Message: typo fixed Index: birthday_remember.proto.de =================================================================== RCS file: /cvsroot/tutos/tutos/html/birthday_remember.proto.de,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -u -r1.1 -r1.1.2.1 --- birthday_remember.proto.de 3 Aug 2002 16:10:25 -0000 1.1 +++ birthday_remember.proto.de 31 Jul 2003 10:24:34 -0000 1.1.2.1 @@ -5,7 +5,7 @@ Der Geburtstag von @REFERENZ@ war am @BIRTHDAY@ -Diese Eriinerung können sie unter folgender URL ändern. +Diese Erinnerung können sie unter folgender URL ändern. @URL@ viele Grüsse , auch an das Geburtstagskind |
From: Gero K. <gok...@us...> - 2003-07-30 16:01:27
|
Update of /cvsroot/tutos/tutos/php In directory sc8-pr-cvs1:/tmp/cvs-serv6401/php Modified Files: Tag: BRANCH-1-1 task_show.php Log Message: fix Index: task_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_show.php,v retrieving revision 1.55.2.4 retrieving revision 1.55.2.5 diff -u -r1.55.2.4 -r1.55.2.5 --- task_show.php 3 Jul 2003 14:35:23 -0000 1.55.2.4 +++ task_show.php 30 Jul 2003 16:01:24 -0000 1.55.2.5 @@ -11,6 +11,7 @@ include_once 'task.pinc'; include_once 'product.pinc'; include_once 'bug.pinc'; + include_once 'timetrack.pinc'; /* Check if user is allowed to use it */ check_user(); @@ -255,6 +256,10 @@ } else { $this->name .=": ". $this->obj->getFullName(); } + + if ($this->stop) { + return; + } # menu $x = task::getaddlink($this->user,$this->obj->parent,$lang['NewEntry']); @@ -301,4 +306,4 @@ <!-- CVS Info: $Id$ $Author$ ---> +--> \ No newline at end of file |
From: Gero K. <gok...@us...> - 2003-07-26 15:18:34
|
Update of /cvsroot/tutos/tutos/php/layout In directory sc8-pr-cvs1:/tmp/cvs-serv18643/php/layout Modified Files: classic_base.pinc classic_layout.pinc new_layout.pinc test_layout.pinc Log Message: layout and visual changes Index: classic_base.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/layout/classic_base.pinc,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- classic_base.pinc 23 Jul 2003 10:20:30 -0000 1.37 +++ classic_base.pinc 26 Jul 2003 08:15:18 -0000 1.38 @@ -73,6 +73,7 @@ } else { echo "\n<!-- NO THEME ". $this->theme->name ." found -->\n"; } + echo " <link rel=\"stylesheet\" href=\"". $tutos['base'] ."/html/". $this->stylename .".css\" type=\"text/css\">\n"; $x = $_SERVER['REQUEST_URI']; $x = delUrlParameter($x,"th"); Index: classic_layout.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/layout/classic_layout.pinc,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- classic_layout.pinc 3 May 2003 10:56:16 -0000 1.36 +++ classic_layout.pinc 26 Jul 2003 08:15:18 -0000 1.37 @@ -17,13 +17,20 @@ */ class layout extends classic_base { /** + * initialize + */ + function init (&$user) { + $this->stylename = "classic_layout"; + parent::init($user); + } + /** * header of a "normal" page */ function PageHeader($name = "") { global $tutos,$lang; $this->PrintHeader($name); - echo " <table id=\"maintable\" class=\"headline\" cellspacing=\"0\" cellpadding=\"1\" width=\"100%\" border=\"0\"><tr>\n"; + echo " <table id=\"headtable\" class=\"headline\" cellspacing=\"0\" cellpadding=\"1\" width=\"100%\" border=\"0\"><tr>\n"; # # Please do not remove the link to the Copyright note !! # Honour my work @@ -165,7 +172,7 @@ if ( ($this->format == "html") || ($this->format == "stat") || ($this->format == "checklist")) { $this->PageHeader(); DebugWindow_Out( "function display()"); - echo "<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\"><tr>\n"; + echo "<table id=\"maintable\" width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\"><tr>\n"; if ( $this->nomenu == false ) { $this->HTML_1(); echo "<table border=\"0\">"; Index: new_layout.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/layout/new_layout.pinc,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- new_layout.pinc 23 Jul 2003 06:05:38 -0000 1.3 +++ new_layout.pinc 26 Jul 2003 08:15:18 -0000 1.4 @@ -383,6 +383,7 @@ } else { echo "\n<!-- NO THEME ". $this->theme->name ." found -->\n"; } + echo " <link rel=\"stylesheet\" href=\"". $tutos['base'] ."/html/new_layout.css\" type=\"text/css\">\n"; $x = $_SERVER['REQUEST_URI']; @@ -448,7 +449,7 @@ Overlib_Header(); echo "<!-- layout_start -->\n"; - echo " <table id=\"maintable\" cellspacing=\"0\" cellpadding=\"1\" width=\"100%\" border=\"0\">\n"; + echo " <table id=\"maintable\" cellspacing=\"0\" border=\"0\">\n"; echo " <tr>\n"; echo " <td class=\"headline\" valign=\"middle\" align=\"left\">"; if ( isset($lang['DateTimeSPHP']) ) { @@ -457,7 +458,7 @@ echo Date("d/m H:i"); } echo " </td>\n"; - echo " <td nowrap width=\"90%\" colspan=\"8\" align=\"center\" class=\"pagetitle\">". ($name == "" ? $this->name:$name) ."</td>\n"; + echo " <td nowrap width=\"90%\" height=\"30px\" colspan=\"8\" align=\"center\" class=\"pagetitle\">". ($name == "" ? $this->name:$name) ."</td>\n"; echo " <td colspan=\"1\" rowspan=\"2\" align=\"right\" valign=\"top\" class=\"pagetitle\">\n"; if ( isset($tutos[logolink]) ) { echo " <a target=\"url\" href=\"". (ereg("^http",$tutos[logolink]) ? "":$tutos['base']."/" ) . $tutos[logolink] ."\">"; @@ -470,7 +471,7 @@ echo " </tr>\n"; echo " <tr>\n"; - echo " <td class=\"headline\" alig=\"left\" nowrap>\n"; + echo " <td class=\"headline\" height=\"30px\" align=\"left\" nowrap>\n"; echo $this->menuprint("mytutos"," ",true); echo $this->menuprint("logout"," ",true); echo "</td>\n"; @@ -485,8 +486,8 @@ echo " <tr>\n"; if ( $this->nomenu == false ) { - echo " <td colspan=\"1\" width=\"10%\" class=\"navigate\">\n"; - echo "<table>\n"; + echo " <td width=\"10%\" class=\"navigate\">\n"; + echo "<table width=\"\"100%>\n"; echo "<tr><td valign=\"top\" nowrap>\n"; echo $this->menuprint("obj","<br>\n",false); echo "</td></tr>\n"; @@ -564,7 +565,7 @@ echo "</td>\n"; } # the remaining parts are put into an table field - echo " <td width=\"95%\" colspan=\"9\" valign=\"top\" align=\"left\" class=\"datafield\">\n"; + echo " <td width=\"95%\" colspan=\"9\" valign=\"top\" align=\"left\" id=\"datafield\">\n"; if ($msg != "") { echo "<div class=\"message\">". $this->error(StripSlashes($msg)) ."</div>"; } @@ -580,7 +581,7 @@ echo " </td>\n"; echo " </tr>\n"; echo " <tr>\n"; - echo " <td colspan=\"10\" align=\"right\">\n"; + echo " <td colspan=\"10\" align=\"right\" height=\"30px\">\n"; echo " <a id=\"tutosversion\" class=\"nodeco\" href=\"". $tutos['base'] ."/html/copyright.html\" title=\"TUTOS ". $tutos[version] ."\"><font size=\"-2\"><i><b>TUTOS ". $tutos[version] ."</b></i></font></a> \n"; echo " </td>\n"; echo " </tr>\n"; Index: test_layout.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/layout/test_layout.pinc,v retrieving revision 1.39 retrieving revision 1.40 diff -u -r1.39 -r1.40 --- test_layout.pinc 17 Apr 2003 18:40:13 -0000 1.39 +++ test_layout.pinc 26 Jul 2003 08:15:18 -0000 1.40 @@ -17,6 +17,13 @@ */ class layout extends classic_base { /** + * initialize + */ + function init (&$user) { + $this->stylename = "test_layout"; + parent::init($user); + } + /** * header of a "normal" page */ function PageHeader($name = "") { @@ -30,9 +37,9 @@ # Honour my work # if ( ! isset($tutos[logo]) ) { - echo " <td class=\"headline\" width=\"16%\" colspan=\"2\" valign=\"middle\" align=\"left\"> <a class=\"nodeco\" rel=\"copyright\" href=\"". $tutos['base'] ."/html/copyright.html\">TUTOS</a></td>\n"; + echo " <td class=\"headline\" height=\"30px\" width=\"16%\" colspan=\"2\" valign=\"middle\" align=\"left\"> <a class=\"nodeco\" rel=\"copyright\" href=\"". $tutos['base'] ."/html/copyright.html\">TUTOS</a></td>\n"; } else { - echo " <td class=\"headline\" width=\"8%\" valign=\"middle\" align=\"left\">"; + echo " <td class=\"headline\" width=\"8%\" valign=\"top\" align=\"left\">"; if ( isset($tutos[logolink]) ) { echo "<a target=\"url\" href=\"". (ereg("^http",$tutos[logolink]) ? "":$tutos['base']."/" ) . $tutos[logolink] ."\">"; } @@ -41,7 +48,7 @@ echo "</a>"; } echo "</td>\n"; - echo " <td class=\"headline\" width=\"8%\" valign=\"middle\" align=\"left\"> <a id=\"tutosversion\" class=\"nodeco\" href=\"". $tutos['base'] ."/html/copyright.html\" title=\"TUTOS ". $tutos[version] ."\">TUTOS</a></td>\n"; + echo " <td class=\"headline\" height=\"30px\" width=\"8%\" valign=\"middle\" align=\"left\"> <a id=\"tutosversion\" class=\"nodeco\" href=\"". $tutos['base'] ."/html/copyright.html\" title=\"TUTOS ". $tutos[version] ."\">TUTOS</a></td>\n"; } echo " <td class=\"headline\" width=\"50%\" align=\"center\"><span class=\"pagetitle\">". ($name == "" ? $this->name:$name) ."</span></td>\n"; echo " <td id=\"datetime\" class=\"headline\" width=\"10%\" valign=\"middle\" align=\"right\">"; @@ -80,9 +87,9 @@ function HTML_one($msg) { echo "<tr>\n"; if ( $this->nomenu == false ) { - echo "<td id=\"datafield\" colspan=\"3\" width=\"90%\" align=\"left\" valign=\"top\">\n"; + echo "<td id=\"datafield\" colspan=\"3\" width=\"90%\" valign=\"top\">\n"; } else { - echo "<td id=\"datafield\" colspan=\"4\" width=\"100%\" align=\"left\" valign=\"top\">\n"; + echo "<td id=\"datafield\" colspan=\"4\" width=\"100%\" valign=\"top\">\n"; } if ($msg != "") { echo "<div class=\"message\">". $this->error(StripSlashes($msg)) ."</div>"; @@ -105,7 +112,7 @@ list($usec,$sec) = explode(" ",microtime()); $end = (float)$usec + (float)$sec; if ( $this->format != "paper" ) { - echo "<tr id=\"footlione\" valign=\"bottom\">\n"; + echo "<tr id=\"footline\" valign=\"bottom\">\n"; echo "<td colspan=\"4\" class=\"headline\">\n"; if ( ($this->format == "html") && ($tutos[debug] != 0) ) { echo "layout demo took about ". sprintf("%.3f",($end - $this->start_ts)) ." seconds\n"; |
From: Gero K. <gok...@us...> - 2003-07-26 15:17:16
|
Update of /cvsroot/tutos/tutos/php/group In directory sc8-pr-cvs1:/tmp/cvs-serv17979/php/group Modified Files: group_del.php Log Message: msg handling on delete Index: group_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/group/group_del.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- group_del.php 31 Dec 2002 14:33:43 -0000 1.7 +++ group_del.php 26 Jul 2003 08:12:42 -0000 1.8 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2002 by Gero Kohnert + * Copyright 2001 - 2003 by Gero Kohnert * * @modulegroup group * @module group_del @@ -38,7 +38,7 @@ $dbconn->Commit("WORK"); } - $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); |
Update of /cvsroot/tutos/tutos/php In directory sc8-pr-cvs1:/tmp/cvs-serv17979/php Modified Files: address_del.php bug_del.php database_del.php company_del.php app_del.php task_del.php team_del.php user_del.php Log Message: msg handling on delete Index: address_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/address_del.php,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- address_del.php 31 Dec 2002 14:33:34 -0000 1.22 +++ address_del.php 26 Jul 2003 08:12:41 -0000 1.23 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2002 by Gero Kohnert + * Copyright 1999 - 2003 by Gero Kohnert * * @modulegroup address * @module address_select @@ -46,7 +46,7 @@ $gotourl = "address_select.php"; } - $gotourl = addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); Index: bug_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bug_del.php,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- bug_del.php 31 Dec 2002 14:33:37 -0000 1.18 +++ bug_del.php 26 Jul 2003 08:12:41 -0000 1.19 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999/2000 by Gero Kohnert + * Copyright 1999 - 2003 by Gero Kohnert * * @modulegroup bug * @module bug_show @@ -37,7 +37,8 @@ $msg .= $b->delete(); $dbconn->Commit("WORK"); } - $gotourl = addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); Index: database_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/database_del.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- database_del.php 31 Dec 2002 14:33:37 -0000 1.8 +++ database_del.php 26 Jul 2003 08:12:41 -0000 1.9 @@ -1,6 +1,6 @@ <?php /* - * Copyright 2001 by Gero Kohnert + * Copyright 2001 -2003 by Gero Kohnert * */ include("webelements.p3"); @@ -33,7 +33,7 @@ $dbconn->Commit("WORK"); } - $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); Index: company_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/company_del.php,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- company_del.php 31 Dec 2002 14:33:37 -0000 1.17 +++ company_del.php 26 Jul 2003 08:12:41 -0000 1.18 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2002 by Gero Kohnert + * Copyright 1999 - 2003 by Gero Kohnert * * @modulegroup company * @module company_del @@ -40,7 +40,7 @@ $gotourl= addUrlParameter($gotourl,"id=". $id); } - $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); /* Go back to calendar */ Index: app_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/app_del.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- app_del.php 31 Dec 2002 14:33:35 -0000 1.13 +++ app_del.php 26 Jul 2003 08:12:41 -0000 1.14 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999/2000 by Gero Kohnert + * Copyright 1999 - 2003 by Gero Kohnert * * * @modulegroup appointment @@ -42,7 +42,7 @@ $msg .= $a->delete(); $dbconn->Commit("WORK"); } - $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); Index: task_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_del.php,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- task_del.php 31 Dec 2002 14:33:39 -0000 1.17 +++ task_del.php 26 Jul 2003 08:12:41 -0000 1.18 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2002 by Gero Kohnert + * Copyright 1999 - 2003 by Gero Kohnert * * @modulegroup task * @module task_del @@ -38,7 +38,7 @@ $msg .= $t->delete(); $dbconn->Commit("WORK"); } - $gotourl = addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); Index: team_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/team_del.php,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- team_del.php 23 Dec 2002 10:01:36 -0000 1.16 +++ team_del.php 26 Jul 2003 08:12:41 -0000 1.17 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2002 by Gero Kohnert + * Copyright 1999 - 2003 by Gero Kohnert * * @modulegroup team * @module team_del @@ -41,8 +41,8 @@ $dbconn->Commit("WORK"); } + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); - $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); Header("Status: 302 Moved Temporarily"); Header("Location: ". getBaseUrl() . $gotourl); Index: user_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/user_del.php,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- user_del.php 28 Apr 2003 17:04:09 -0000 1.19 +++ user_del.php 26 Jul 2003 08:12:41 -0000 1.20 @@ -38,7 +38,7 @@ $msg .= "User (not address!) ". $u->getFullName() ." was deleted<br>"; } - $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); |
From: Gero K. <gok...@us...> - 2003-07-26 11:35:37
|
Update of /cvsroot/tutos/tutos/php/file In directory sc8-pr-cvs1:/tmp/cvs-serv17979/php/file Modified Files: file_del.php Log Message: msg handling on delete Index: file_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/file/file_del.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- file_del.php 12 Jan 2003 09:24:47 -0000 1.3 +++ file_del.php 26 Jul 2003 08:12:42 -0000 1.4 @@ -22,7 +22,7 @@ if ( !isset($_GET['id']) ) { $msg .= "No ID given !<br>"; - $gotourl = "file_overview.php"; + $gotourl = "file/file_overview.php"; } else { $f->read($_GET['id']); $gotourl = $f->getURL(); @@ -47,8 +47,8 @@ } } + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); - $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); Header("Status: 302 Moved Temporarily"); Header("Location: ". dirname(getBaseUrl()) ."/". $gotourl); |
From: Gero K. <gok...@us...> - 2003-07-26 11:34:36
|
Update of /cvsroot/tutos/tutos/php/note In directory sc8-pr-cvs1:/tmp/cvs-serv18643/php/note Modified Files: note.pinc Log Message: layout and visual changes Index: note.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/note/note.pinc,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- note.pinc 8 Mar 2003 17:07:12 -0000 1.31 +++ note.pinc 26 Jul 2003 08:15:17 -0000 1.32 @@ -107,7 +107,7 @@ * added by J. Baten */ function formatted () { - echo "<tr><td colspan=\"3\" bgcolor=\"yellow\">". $this->getLink() ."</td></tr>\n"; + echo "<tr><td colspan=\"3\" class=\"note\">". $this->getLink() ."</td></tr>\n"; } /** * Popup for overlib |
From: Gero K. <gok...@us...> - 2003-07-26 11:34:15
|
Update of /cvsroot/tutos/tutos/php/installation In directory sc8-pr-cvs1:/tmp/cvs-serv17979/php/installation Modified Files: installation_del.php Log Message: msg handling on delete Index: installation_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/installation/installation_del.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- installation_del.php 12 Jan 2003 09:24:47 -0000 1.8 +++ installation_del.php 26 Jul 2003 08:12:42 -0000 1.9 @@ -19,7 +19,7 @@ loadmodules("installation","del"); loadmodule("installation"); - $gotourl= "installation_overview.php"; + $gotourl= "installation/installation_overview.php"; $msg = ""; $i = new installation($dbconn); @@ -39,7 +39,7 @@ $msg .= $i->delete(); $dbconn->Commit("WORK"); } - $gotourl = addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); |
Update of /cvsroot/tutos/tutos/html In directory sc8-pr-cvs1:/tmp/cvs-serv18643/html Modified Files: blue.css nuke.css red.css sqli.css tutos.css visual.css white.css Added Files: classic_layout.css new_layout.css test_layout.css Log Message: layout and visual changes --- NEW FILE: classic_layout.css --- /* * Copyright 2003 by Gero Kohnert * ant...@ma... * * Nuke Theme for TUTOS * * CVS Info: $Id: classic_layout.css,v 1.1 2003/07/26 08:15:17 gokohnert Exp $ * $Author: gokohnert $ * */ #maintable { width: 100%; height: 90%; border: 0px solid; padding: 0px; margin: 0px; } #headtable { width: 100%; border: 0px solid; padding: 1px; margin: 0px; } --- NEW FILE: new_layout.css --- /* * Copyright 2003 by Gero Kohnert * ant...@ma... * * Nuke Theme for TUTOS * * CVS Info: $Id: new_layout.css,v 1.1 2003/07/26 08:15:17 gokohnert Exp $ * $Author: gokohnert $ * */ #maintable { width: 100%; height: 100%; border: 0px solid; padding: 1px; margin: 0px; } --- NEW FILE: test_layout.css --- /* * Copyright 2003 by Gero Kohnert * ant...@ma... * * Nuke Theme for TUTOS * * CVS Info: $Id: test_layout.css,v 1.1 2003/07/26 08:15:17 gokohnert Exp $ * $Author: gokohnert $ * */ #maintable { width: 100%; height: 100%; border: 0px solid; padding: 0px; margin: 0px; } #footline { height: 20px; } Index: blue.css =================================================================== RCS file: /cvsroot/tutos/tutos/html/blue.css,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- blue.css 25 Mar 2003 19:18:31 -0000 1.37 +++ blue.css 26 Jul 2003 08:15:17 -0000 1.38 @@ -289,6 +289,18 @@ color: black; font-size: 10px; } +/* Birthday in Calendar*/ +.birthday { + background: #f0ecd8 ; + color: black; + font-size: 10px; +} +/* not in calendar */ +.note { + background: yellow ; + color: black; + font-size: 10px; +} .privapp { background: #ffdcd8; Index: nuke.css =================================================================== RCS file: /cvsroot/tutos/tutos/html/nuke.css,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- nuke.css 10 Mar 2003 18:54:11 -0000 1.12 +++ nuke.css 26 Jul 2003 08:15:17 -0000 1.13 @@ -1,5 +1,5 @@ /* - * Copyright 2002 by Antonio Romero + * Copyright 2002 by Antonio Romero * ant...@ma... * * Nuke Theme for TUTOS @@ -308,6 +308,18 @@ /* Private */ .app6 { background: #e8ece8 ; + color: black; + font-size: 10px; +} +/* Birthday in Calendar*/ +.birthday { + background: #f0ece8 ; + color: black; + font-size: 10px; +} +/* not in calendar */ +.note { + background: yellow ; color: black; font-size: 10px; } Index: red.css =================================================================== RCS file: /cvsroot/tutos/tutos/html/red.css,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- red.css 10 Mar 2003 18:54:11 -0000 1.24 +++ red.css 26 Jul 2003 08:15:17 -0000 1.25 @@ -303,6 +303,18 @@ color: black; font-size: 11px; } +/* Birthday in Calendar*/ +.birthday { + background: #f0ece8 ; + color: black; + font-size: 10px; +} +/* not in calendar */ +.note { + background: yellow ; + color: black; + font-size: 10px; +} .privapp { Index: sqli.css =================================================================== RCS file: /cvsroot/tutos/tutos/html/sqli.css,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- sqli.css 10 Mar 2003 18:54:12 -0000 1.13 +++ sqli.css 26 Jul 2003 08:15:17 -0000 1.14 @@ -280,6 +280,18 @@ color: black; font-size: 10px; } +/* Birthday in Calendar*/ +.birthday { + background: #f0ece8 ; + color: black; + font-size: 10px; +} +/* not in calendar */ +.note { + background: yellow ; + color: black; + font-size: 10px; +} .privapp { background: #FFEEEE; Index: tutos.css =================================================================== RCS file: /cvsroot/tutos/tutos/html/tutos.css,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- tutos.css 10 Mar 2003 18:54:13 -0000 1.26 +++ tutos.css 26 Jul 2003 08:15:17 -0000 1.27 @@ -279,6 +279,18 @@ color: black; font-size: 10px; } +/* Birthday in Calendar*/ +.birthday { + background: #f0ece8 ; + color: black; + font-size: 10px; +} +/* not in calendar */ +.note { + background: yellow ; + color: black; + font-size: 10px; +} .privapp { Index: visual.css =================================================================== RCS file: /cvsroot/tutos/tutos/html/visual.css,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- visual.css 10 Mar 2003 18:54:13 -0000 1.18 +++ visual.css 26 Jul 2003 08:15:17 -0000 1.19 @@ -288,6 +288,18 @@ color: black; font-size: 10px; } +/* Birthday in Calendar*/ +.birthday { + background: #f0ece8 ; + color: black; + font-size: 10px; +} +/* not in calendar */ +.note { + background: yellow ; + color: black; + font-size: 10px; +} .privapp { background: #FFEEEE; Index: white.css =================================================================== RCS file: /cvsroot/tutos/tutos/html/white.css,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- white.css 25 Mar 2003 19:18:32 -0000 1.14 +++ white.css 26 Jul 2003 08:15:18 -0000 1.15 @@ -293,6 +293,18 @@ color: black; font-size: 10px; } +/* Birthday in Calendar*/ +.birthday { + background: #f0ece8 ; + color: black; + font-size: 10px; +} +/* not in calendar */ +.note { + background: yellow ; + color: black; + font-size: 10px; +} .privapp { background: #ffdcd8; |
From: Gero K. <gok...@us...> - 2003-07-26 11:27:15
|
Update of /cvsroot/tutos/tutos/php/watchlist In directory sc8-pr-cvs1:/tmp/cvs-serv18643/php/watchlist Modified Files: watchlist.pinc Log Message: layout and visual changes Index: watchlist.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/watchlist/watchlist.pinc,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- watchlist.pinc 9 Jul 2003 18:31:23 -0000 1.30 +++ watchlist.pinc 26 Jul 2003 08:15:17 -0000 1.31 @@ -119,10 +119,10 @@ global $lang,$tutos,$current_user; echo " <tr>\n"; - echo " <td nowrap colspan=\"3\">". $this->obj->getLink() ."</td>\n"; + echo " <td class=\"birthday\" nowrap colspan=\"3\">". $this->obj->getLink() ."</td>\n"; echo " </tr>\n"; echo " <tr>\n"; - echo " <td nowrap colspan=\"3\">". $lang['AdrBirthday']." ". $this->obj->birthday->getDate() ."</td>\n"; + echo " <td class=\"birthday\" nowrap colspan=\"3\">". $lang['AdrBirthday']." ". $this->obj->birthday->getDate() ."</td>\n"; echo " </tr>\n"; } /** |
From: Gero K. <gok...@us...> - 2003-07-26 11:26:07
|
Update of /cvsroot/tutos/tutos/php/checklist In directory sc8-pr-cvs1:/tmp/cvs-serv18368/php/checklist Modified Files: checkfield_del.php checklist_del.php Log Message: msg handling on delete Index: checkfield_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/checklist/checkfield_del.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- checkfield_del.php 11 Apr 2003 16:19:20 -0000 1.1 +++ checkfield_del.php 26 Jul 2003 08:14:02 -0000 1.2 @@ -41,7 +41,7 @@ $dbconn->Commit("WORK"); } - $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); Index: checklist_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/checklist/checklist_del.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- checklist_del.php 11 Apr 2003 16:19:22 -0000 1.3 +++ checklist_del.php 26 Jul 2003 08:14:02 -0000 1.4 @@ -20,7 +20,7 @@ /* Check Input */ $msg = ""; - $gotourl = "checklist_overview.php"; + $gotourl = "checklist/checklist_overview.php"; $obj = new checklist($dbconn); if ( !isset($_GET['id']) ) { @@ -40,7 +40,7 @@ $dbconn->Commit("WORK"); } - $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); |
From: Gero K. <gok...@us...> - 2003-07-26 11:26:01
|
Update of /cvsroot/tutos/tutos/php In directory sc8-pr-cvs1:/tmp/cvs-serv18368/php Modified Files: department_del.php location_del.php message_del.php product_del.php Log Message: msg handling on delete Index: department_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/department_del.php,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- department_del.php 10 Mar 2003 18:11:20 -0000 1.18 +++ department_del.php 26 Jul 2003 08:14:02 -0000 1.19 @@ -40,7 +40,7 @@ $gotourl= addUrlParameter($gotourl,"id=". $id); } - $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); Index: location_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/location_del.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- location_del.php 31 Dec 2002 14:33:38 -0000 1.10 +++ location_del.php 26 Jul 2003 08:14:02 -0000 1.11 @@ -1,12 +1,12 @@ <?php /** - * Copyright 1999 - 2002 by Gero Kohnert + * Copyright 1999 - 2003 by Gero Kohnert * * @package address * @module location_del */ - include("webelements.p3"); - include("permission.p3"); + include_once 'webelements.p3'; + include_once 'permission.p3'; /* Check if user is allowed to use it */ check_user(); @@ -23,7 +23,7 @@ $dbconn->Commit("WORK"); $gotourl = $ref->getUrl(); - $gotourl = addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); Index: message_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/message_del.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- message_del.php 5 Nov 2002 19:57:47 -0000 1.8 +++ message_del.php 26 Jul 2003 08:14:02 -0000 1.9 @@ -6,8 +6,8 @@ * @module message_del * @package ADMIN */ - include("webelements.p3"); - include("permission.p3"); + include_once 'webelements.p3'; + include_once 'permission.p3'; check_user(); Index: product_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_del.php,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- product_del.php 31 Dec 2002 14:33:38 -0000 1.24 +++ product_del.php 26 Jul 2003 08:14:02 -0000 1.25 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2002 by Gero Kohnert + * Copyright 1999 - 2003 by Gero Kohnert * * delte a product from the database * @@ -46,7 +46,7 @@ $gotourl = "product_overview.php"; } - $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); |
From: Gero K. <gok...@us...> - 2003-07-26 11:25:56
|
Update of /cvsroot/tutos/tutos/php/resource In directory sc8-pr-cvs1:/tmp/cvs-serv18368/php/resource Modified Files: resource_del.php Log Message: msg handling on delete Index: resource_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/resource/resource_del.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- resource_del.php 10 Mar 2003 18:11:36 -0000 1.6 +++ resource_del.php 26 Jul 2003 08:14:02 -0000 1.7 @@ -38,7 +38,7 @@ $dbconn->Commit("WORK"); } - $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); |
From: Gero K. <gok...@us...> - 2003-07-26 11:25:54
|
Update of /cvsroot/tutos/tutos/php/url In directory sc8-pr-cvs1:/tmp/cvs-serv17979/php/url Modified Files: url_del.php Log Message: msg handling on delete Index: url_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/url/url_del.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- url_del.php 31 Dec 2002 14:33:55 -0000 1.4 +++ url_del.php 26 Jul 2003 08:12:42 -0000 1.5 @@ -35,7 +35,7 @@ $gotourl = $ref->getUrl(); } - $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); |
From: Gero K. <gok...@us...> - 2003-07-26 11:24:48
|
Update of /cvsroot/tutos/tutos/php/watchlist In directory sc8-pr-cvs1:/tmp/cvs-serv17979/php/watchlist Modified Files: watchlist_del.php Log Message: msg handling on delete Index: watchlist_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/watchlist/watchlist_del.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- watchlist_del.php 10 Mar 2003 18:11:41 -0000 1.11 +++ watchlist_del.php 26 Jul 2003 08:12:42 -0000 1.12 @@ -42,7 +42,7 @@ $dbconn->Commit("WORK"); } - $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); |
From: Gero K. <gok...@us...> - 2003-07-26 10:38:43
|
Update of /cvsroot/tutos/tutos/php/note In directory sc8-pr-cvs1:/tmp/cvs-serv17979/php/note Modified Files: note_del.php Log Message: msg handling on delete Index: note_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/note/note_del.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- note_del.php 31 Dec 2002 14:33:50 -0000 1.7 +++ note_del.php 26 Jul 2003 08:12:42 -0000 1.8 @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2002 by Gero Kohnert + * Copyright 1999 - 2003 by Gero Kohnert * * @modulegroup note * @module note_ins @@ -43,7 +43,7 @@ $dbconn->Commit("WORK"); } - $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); |
From: Gero K. <gok...@us...> - 2003-07-26 09:19:47
|
Update of /cvsroot/tutos/tutos/php/invoice In directory sc8-pr-cvs1:/tmp/cvs-serv17979/php/invoice Modified Files: invoice_del.php Log Message: msg handling on delete Index: invoice_del.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/invoice/invoice_del.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- invoice_del.php 10 Mar 2003 18:11:31 -0000 1.9 +++ invoice_del.php 26 Jul 2003 08:12:42 -0000 1.10 @@ -1,6 +1,6 @@ <?php /** - * Copyright 2002 by Gero Kohnert + * Copyright 2002 - 2003 by Gero Kohnert * * delete an invoice * @@ -48,7 +48,7 @@ $gotourl = "invoice/invoice_overview.php"; } - $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); + $gotourl = addMessage($gotourl,$msg); $gotourl = addSessionKey($gotourl); Header("Status: 302 Moved Temporarily"); |
From: Gero K. <gok...@us...> - 2003-07-24 19:18:05
|
Update of /cvsroot/tutos/tutos/php/url In directory sc8-pr-cvs1:/tmp/cvs-serv8579/php/url Modified Files: Tag: BRANCH-1-1 url.pinc Log Message: fix acl Index: url.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/url/url.pinc,v retrieving revision 1.8 retrieving revision 1.8.2.1 diff -u -r1.8 -r1.8.2.1 --- url.pinc 1 Apr 2003 17:48:17 -0000 1.8 +++ url.pinc 24 Jul 2003 19:18:02 -0000 1.8.2.1 @@ -99,6 +99,7 @@ $q->addFV("creator",$this->creator,"OBJ"); $q->addFV("creation",$this->creation,"DATETIME"); $query = $q->getInsert(); + $this->acl[$this->creator->id] = $tutos[delok]; acl_default($this,$this->creator); } else { $q->addWC("id",$this->id,""); |
From: Gero K. <gok...@us...> - 2003-07-24 19:17:46
|
Update of /cvsroot/tutos/tutos/php In directory sc8-pr-cvs1:/tmp/cvs-serv8475/php Modified Files: Tag: BRANCH-1-1 product_ins.php Log Message: add timespan check Index: product_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/product_ins.php,v retrieving revision 1.42.2.2 retrieving revision 1.42.2.3 diff -u -r1.42.2.2 -r1.42.2.3 --- product_ins.php 18 Jun 2003 14:34:32 -0000 1.42.2.2 +++ product_ins.php 24 Jul 2003 19:17:41 -0000 1.42.2.3 @@ -136,6 +136,10 @@ if ( 1 != $pend->checkDMY() ) { $msg .= sprintf($lang['Err0038'],$lang['ProdEnd']) ."<br>"; } + if ( $pend->ts > -1 && ($pstart->ts > $pend->ts) ) { + # Start after End + $msg .= $lang['Err0002'] ."<br>"; + } # Classification |