tutos-commits Mailing List for TUTOS (Page 17)
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: <gok...@us...> - 2013-02-14 18:54:46
|
Revision: 942 http://sourceforge.net/p/tutos/code/942 Author: gokohnert Date: 2013-02-14 18:54:43 +0000 (Thu, 14 Feb 2013) Log Message: ----------- changed to latest Maps API Modified Paths: -------------- trunk/php/google_earth/google_earth.pinc Modified: trunk/php/google_earth/google_earth.pinc =================================================================== --- trunk/php/google_earth/google_earth.pinc 2013-02-11 09:14:43 UTC (rev 941) +++ trunk/php/google_earth/google_earth.pinc 2013-02-14 18:54:43 UTC (rev 942) @@ -30,8 +30,7 @@ * @license http://www.opensource.org/licenses/gpl-2.0.php GPL2+ * @link http://www.tutos.org */ -class Google_Earth extends tutos_handler -{ +class Google_Earth extends tutos_handler { /** * run the handler * @@ -41,8 +40,7 @@ * * @return html code */ - function handle($obj, $arg, $cnt) - { + function handle($obj, $arg, $cnt) { global $tutos,$lang,$current_user; $msg = ''; @@ -88,79 +86,46 @@ if ($showmap) { if ($id == 0) { - $msg .= '<script src="http://maps.google.com/maps?file=api&v=2&key='.$tutos['googlemapkey'][$current_user->dbconn->db->id].'" type="text/javascript"></script>'; + // $msg .= '<script src="http://maps.google.com/maps?file=api&v=3&key='.$tutos['googlemapkey'][$current_user->dbconn->db->id].'" type="text/javascript"></script>'; + $msg .= '<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&key='.$tutos['googlemapkey'][$current_user->dbconn->db->id].'" type="text/javascript"></script>'; } $msg .= '<div id="map_canvas'.$id.'" style="width:'.$width.'px; height:'.$height.'px"></div>'; $msg .= '<script type="text/javascript">'; $msg .= '//<![CDATA['; - $msg .= ' - function initialize() { - if (GBrowserIsCompatible()) { - var map = new GMap2(document.getElementById("map_canvas'.$id.'")); - var geocoder = new GClientGeocoder(); + $msg .= " +function initialize() { + var geocoder = new google.maps.Geocoder(); + geocoder.geocode( {'address':'".$query."'},function(results,status) { + if (status == google.maps.GeocoderStatus.OK) { + var mapOptions = { + zoom: 12, + center: results[0].geometry.location, + mapTypeId: google.maps.MapTypeId.ROADMAP + }; + map = new google.maps.Map(document.getElementById('map_canvas'+".$id."), mapOptions); + var marker = new google.maps.Marker({ + map: map, + title: '', + position: results[0].geometry.location + }); + } else { +// alert('Geocode was not successful for the following reason: ' + status); + } + }); - // Create a base icon for all of our markers that specifies the - // shadow, icon dimensions, etc. - var baseIcon = new GIcon(G_DEFAULT_ICON); - baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png"; - baseIcon.iconSize = new GSize(20, 34); - baseIcon.shadowSize = new GSize(37, 34); - baseIcon.iconAnchor = new GPoint(9, 34); - baseIcon.infoWindowAnchor = new GPoint(9, 2); - - // Creates a marker whose info window displays the letter corresponding - // to the given index. - function createMarker(point,index,name) { - // Create a lettered icon for this point using our icon class - var letter = String.fromCharCode("A".charCodeAt(0) + index); - var letteredIcon = new GIcon(baseIcon); - letteredIcon.image = "http://www.google.com/mapfiles/marker" + letter + ".png"; - - // Set up our GMarkerOptions object - markerOptions = { icon:letteredIcon }; - var marker = new GMarker(point, markerOptions); - - GEvent.addListener(marker, "click", function() { - marker.openInfoWindowHtml(name + "</b>"); - }); - return marker; - } - - '; +} +google.maps.event.addDomListener(window, 'load', initialize); +"; if ($mode == 1) { - $msg .= ' -geocoder.getLatLng("'.$query.'", function(point) { - if (!point) { - alert("'.$query.'" + " not found"); - } else { - map.setCenter(point, 13); - map.addOverlay(createMarker(point,0,"'.$lang[$obj->getType()].'<br>'.addslashes($obj->getLink()).'")); - } - } - ); - '; } if ($mode == 2) { - $msg .= ' - var here = new GLatLng('.$x[1].','.$x[0].'); - map.setCenter(here, 13); - map.addOverlay(createMarker(here,0,"'.$lang[$obj->getType()].'<br>'.addslashes($obj->getLink()).'")); - '; } - $msg .= ' - map.addControl(new GSmallMapControl()); - map.addControl(new GMapTypeControl()); - return; - } -} -initialize(); -'; $msg .= '//]]>'; $msg .= '</script>'; } - $tutos['googlehandler_show'] = 1; + $tutos['googlehandler_show']++; return $msg; } @@ -172,10 +137,8 @@ * * @return bool true if ok */ - function check($obj,$arg) - { + function check($obj,$arg) { return true; } -} - + } ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-11 09:14:46
|
Revision: 941 http://sourceforge.net/p/tutos/code/941 Author: gokohnert Date: 2013-02-11 09:14:43 +0000 (Mon, 11 Feb 2013) Log Message: ----------- updates for mobile / mark searches in apps overview Modified Paths: -------------- trunk/php/app_overview.php trunk/php/bugtracking/bug_overview.php trunk/php/task_overview.php Modified: trunk/php/app_overview.php =================================================================== --- trunk/php/app_overview.php 2013-02-06 13:59:24 UTC (rev 940) +++ trunk/php/app_overview.php 2013-02-11 09:14:43 UTC (rev 941) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -12,12 +12,15 @@ * @modulegroup appointment * @module app_overview */ +$tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; // Check if user is allowed to use it check_user(); +$tutos['mobileok'] = 1; require_once 'appointment.pinc'; require_once 'product.pinc'; require_once 'group/group.pinc'; @@ -59,8 +62,8 @@ $this->flds = 8; $r .= $this->actionformStart("app_overview.php"); $r .= $this->OverviewTableStart(); - $r .= "<thead>\n"; - $r .= "<tr>\n"; + $r .= $this->OverviewHeadStart(); + $r .= $this->OverviewHeadLineStart(); $r .= $this->orderHeader("","ID",$this->link2); $r .= $this->orderHeader("a_start",$lang['AppStart'],$this->link2); $r .= $this->orderHeader("a_end",$lang['AppEnd'],$this->link2); @@ -69,11 +72,10 @@ $r .= $this->orderHeader("outside",$lang['Location2'],$this->link2); $r .= $this->orderHeader("product",$lang['Reference'],$this->link2); $r .= $this->orderHeader("",$lang['Participants'],$this->link2); - $r .= show_custom_overview_headers($this,'appointment1',$this->link2); $r .= $this->MassUpdateHeader(); - $r .= "</tr>\n"; - $r .= "</thead>\n"; + $r .= $this->OverviewHeadLineEnd(); + $r .= $this->OverviewHeadEnd(); if ( $this->start == -1 ) { $a = $n - $tutos['maxshow']; @@ -93,57 +95,50 @@ } $f->read_participants(); $r .= $this->OverviewRowStart($line); - $r .= ' <td class="over_r">'. $f->getLink($a) ."</td>\n"; + $r .= $this->OverviewRowBlock($f->getLink($a),'over_r'); if ( $f->t_ignore == 0) { + $r .= $this->OverviewRowBlock($f->start->getDateTime(),'over_l'); if ( $f->start->getDateTime() == $f->end->getDateTime() ) { - $r .= ' <td colspan="2" class="over_l">'. $f->start->getDateTime() ."</td>\n"; + $r .= $this->OverviewRowBlock('','over_l'); } else { - $r .= ' <td class="over_l">'. $f->start->getDateTime() ."</td>\n"; - $r .= ' <td class="over_l">'. $f->end->getDateTime() ."</td>\n"; + $r .= $this->OverviewRowBlock($f->end->getDateTime(),'over_l'); } } else { + $r .= $this->OverviewRowBlock($f->start->getDate(),'over_l'); if ( $f->start->getDate() == $f->end->getDate() ) { - $r .= ' <td colspan="2" class="over_l">'. $f->start->getDate() ."</td>\n"; + $r .= $this->OverviewRowBlock('','over_l'); } else { - $r .= ' <td class="over_l">'. $f->start->getDate() ."</td>\n"; - $r .= ' <td class="over_l">'. $f->end->getDate() ."</td>\n"; + $r .= $this->OverviewRowBlock($f->end->getDate(),'over_l'); } } // Repeat - $r .= ' <td class="over_l">'; - if ( $f->repeat ) { - $r .= '®'; - } else { - $r .= ' '; - } - $r .= "</td>\n"; + $r .= $this->OverviewRowBlock(($f->repeat ? '®':' '),'over_l'); // Description - $x = $this->mark_filter(myentities($f->descr),'name'); - $r .= ' <td class="over_l">'.$x." </td>\n"; + $x = $this->mark_filter(myentities($f->descr),'description'); + $r .= $this->OverviewRowBlock($x,'over_l'); // Location of Appointment - $r .= ' <td class="over_l">'. $f->getLocation() ."</td>\n"; + $r .= $this->OverviewRowBlock($f->getLocation(),'over_l'); // Reference - $r .= ' <td class="over_l">'; if ( isset($f) && isset($f->product) && isset($f->product->id) && $f->product->id > 0 ) { - $r .= $f->product->getLink() ."</td>\n"; + $x = $f->product->getLink() ."</td>\n"; } else { - $r .= ' '; + $x = ' '; } - $r .= "</td>\n"; + $r .= $this->OverviewRowBlock($x,'over_l'); // Participants - $r .= ' <td class="over_l">'; - $pre = ""; - foreach ($f->participant as $x ) { - $r .= $pre.$x->getLink() ; + $x = ''; + $pre = ''; + foreach ($f->participant as $xx ) { + $x .= $pre.$xx->getLink() ; $pre = '<br />' ; } - $r .= " </td>\n"; + $r .= $this->OverviewRowBlock($x,'over_l'); $r .= show_custom_overview_data($this,'appointment1',$f); $r .= $this->MassUpdateField($f); Modified: trunk/php/bugtracking/bug_overview.php =================================================================== --- trunk/php/bugtracking/bug_overview.php 2013-02-06 13:59:24 UTC (rev 940) +++ trunk/php/bugtracking/bug_overview.php 2013-02-11 09:14:43 UTC (rev 941) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -16,6 +16,7 @@ * @package bug */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/task_overview.php =================================================================== --- trunk/php/task_overview.php 2013-02-06 13:59:24 UTC (rev 940) +++ trunk/php/task_overview.php 2013-02-11 09:14:43 UTC (rev 941) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -13,6 +13,8 @@ * @module task_overview * @package task */ +$tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-04 18:28:38
|
Revision: 937 http://sourceforge.net/p/tutos/code/937 Author: gokohnert Date: 2013-02-04 18:28:35 +0000 (Mon, 04 Feb 2013) Log Message: ----------- strtolowe/upper was not multibyte safe Modified Paths: -------------- trunk/php/db/db_mysql.pinc trunk/php/db/db_mysqli.pinc trunk/php/db/db_pg.pinc Modified: trunk/php/db/db_mysql.pinc =================================================================== --- trunk/php/db/db_mysql.pinc 2013-02-04 18:16:32 UTC (rev 936) +++ trunk/php/db/db_mysql.pinc 2013-02-04 18:28:35 UTC (rev 937) @@ -350,7 +350,7 @@ $name = preg_replace('# #','%',$name); $name = preg_replace('#\\\#','\\\\\\',$name); $name = preg_replace("#'#","\'",$name); - return ($fld .($not ?" not ":" ")."like '%". strtoupper($name) ."%' "); + return ($fld .($not ?" not ":" ")."like '%". mb_strtoupper($name) ."%' "); } /** Modified: trunk/php/db/db_mysqli.pinc =================================================================== --- trunk/php/db/db_mysqli.pinc 2013-02-04 18:16:32 UTC (rev 936) +++ trunk/php/db/db_mysqli.pinc 2013-02-04 18:28:35 UTC (rev 937) @@ -356,7 +356,7 @@ $name = preg_replace('# #','%',$name); $name = preg_replace('#\\\#','\\\\\\',$name); $name = preg_replace("#'#","\'",$name); - return ($fld .($not ? ' not':'')." like '%". strtoupper($name) ."%' "); + return ($fld .($not ? ' not':'')." like '%". mb_strtoupper($name) ."%' "); } /** Modified: trunk/php/db/db_pg.pinc =================================================================== --- trunk/php/db/db_pg.pinc 2013-02-04 18:16:32 UTC (rev 936) +++ trunk/php/db/db_pg.pinc 2013-02-04 18:28:35 UTC (rev 937) @@ -458,7 +458,7 @@ $name = preg_replace('# #','%',$name); $name = preg_replace('#\\\#','\\\\\\',$name); $name = preg_replace("#'#","''",$name); - return (" LOWER(". $fld .") ". ($not ? "not ":"")." like E'%". strtolower($name) ."%' escape ''"); + return (" LOWER(". $fld .") ". ($not ? "not ":"")." like E'%". mb_strtolower($name) ."%' escape ''"); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-04 18:16:35
|
Revision: 936 http://sourceforge.net/p/tutos/code/936 Author: gokohnert Date: 2013-02-04 18:16:32 +0000 (Mon, 04 Feb 2013) Log Message: ----------- fix history of object relations Modified Paths: -------------- trunk/php/custom.pinc Modified: trunk/php/custom.pinc =================================================================== --- trunk/php/custom.pinc 2013-02-04 17:42:50 UTC (rev 935) +++ trunk/php/custom.pinc 2013-02-04 18:16:32 UTC (rev 936) @@ -451,29 +451,26 @@ $rid = $this->x['rel_id']; $pn = $this->get_parsename(); $fn = $this->get_fldname(); - + $new = array(); // new relations $r = ''; if (!isset($this->obj->relations[$rid])) $this->obj->relations[$rid] = array(); - // mark all for delete - foreach ($this->obj->relations[$rid] as $i => $xx) { - // if not in POST than delete - if (!isset($_POST[$pn]) || !in_array($i,$_POST[$pn])) { - $this->obj->del_relation_id($i,$rid,'',$this->x['lang']); - } - } // otype variant if (isset($this->x['otype'])) { if ( isset($_POST[$pn.'fn']) ) { $m = check_field($_POST[$pn.'fn'],$pn.'fn',$pn.'l',$this->x['otype'],$this->obj); - if (is_object($m)) + if (is_object($m)) { $this->obj->add_relation_id($m->id,$rid,'',$this->x['lang']); + $new[] = $m->id; + } } else if ( isset($_POST[$pn.'id']) ) { $m = getObject($this->obj->dbconn,$_POST[$pn.'id']); - if (is_object($m)) + if (is_object($m)) { $this->obj->add_relation_id($m->id,$rid,'',$this->x['lang']); + $new[] = $m->id; + } } else { echo 'MISSING: '.$pn .' + fn or id'; } @@ -481,8 +478,17 @@ if (isset($_POST[$pn])) foreach($_POST[$pn] as $xx) { $this->obj->add_relation_id($xx,$rid,'',$this->x['lang']); + $new[] = $xx; } } + // delete others + foreach ($this->obj->relations[$rid] as $i => $xx) { + // if not in POST than delete + if (!in_array($i,$new)) { + $this->obj->del_relation_id($i,$rid,'',$this->x['lang']); + } + } + if ($this->required && $this->is_empty()) { $r = addLine($r,sprintf($lang['Err0009'],myentities(getLang($this->x['lang'])))); $gotourl = addBadField($gotourl,$pn,true); @@ -1801,7 +1807,6 @@ if (!isset($x['lang'])) continue; if ($x['lang'] != $f['field']) continue; - $fx['field'] = isset( $lang[$f['field']]) ? $lang[$f['field']] : $f['field']; if (isset($x['ftype']) && $x['ftype'] == 'SelectOne') { $t = $f['field'].'_'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-04 17:42:53
|
Revision: 935 http://sourceforge.net/p/tutos/code/935 Author: gokohnert Date: 2013-02-04 17:42:50 +0000 (Mon, 04 Feb 2013) Log Message: ----------- bugfix missing resolve of custom Objects Modified Paths: -------------- trunk/php/history_show.php Modified: trunk/php/history_show.php =================================================================== --- trunk/php/history_show.php 2013-02-04 14:35:41 UTC (rev 934) +++ trunk/php/history_show.php 2013-02-04 17:42:50 UTC (rev 935) @@ -199,7 +199,7 @@ $r .= $this->OverviewRowBlock($x,'over_ml'); } else { $r .= $this->OverviewRowBlock('<b>'.myentities($j['field']).'</b>','over_l'); - $r .= $this->OverviewRowBlock($f['old'],'over_ml'); + $r .= $this->OverviewRowBlock($j['old'],'over_ml'); if (substr($j['new'],0,5) == 'DIFF:') { $x = '<pre>'. $j['new'].'</pre>'; } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-03 09:07:16
|
Revision: 932 http://sourceforge.net/p/tutos/code/932 Author: gokohnert Date: 2013-02-03 09:07:13 +0000 (Sun, 03 Feb 2013) Log Message: ----------- more mobile layout Modified Paths: -------------- trunk/php/group/group_show.php trunk/php/history.pinc trunk/php/history_show.php trunk/php/installation/installation_overview.php trunk/php/installation/installation_select.php trunk/php/layout/mobile_layout.pinc trunk/php/scrum/log_overview.php Modified: trunk/php/group/group_show.php =================================================================== --- trunk/php/group/group_show.php 2013-02-02 15:05:55 UTC (rev 931) +++ trunk/php/group/group_show.php 2013-02-03 09:07:13 UTC (rev 932) @@ -243,79 +243,96 @@ // References to modules $r .= show_module_infolists($this->user,$this->obj,$this->width); + $r .= $this->ContentRowStart(); + $r .= $this->showfield($lang['GroupMembers']); + $r .= $this->showdata(count($this->obj->member),$this->width-1); + $r .= $this->ContentRowEnd(); + $r .= $this->obj->getHistoryLink($this->width); + $r .= $this->DataTableEnd(); + if ( count($this->obj->member) > 0 ) { $first = true; - $r .= "<tr>\n"; - $r .= $this->showfield($lang['GroupMembers']); - $r .= $this->showdata(count($this->obj->member),9); - $r .= "</tr><tr>\n"; - $r .= '<th> </th>'; - $r .= $this->orderHeader("name",$lang['AdrName'],$this->link2); - $r .= '<th colspan="3">'. $lang['Description'].'</th>'; - $r .= '<th>'. $lang['AdrEmail'].'</th>'; - $r .= '<th>'. $lang['Phone'].'</th>'; - $r .= '<th>'. $lang['AdrFax'].'</th>'; + $this->flds = 8; + $r .= $this->OverviewTableStart(); + + $r .= $this->OverviewHeadStart(); + $r .= $this->OverviewHeadLineStart(); + $r .= $this->orderHeader('','',$this->link2); + $r .= $this->orderHeader('name',$lang['AdrName'],$this->link2); + $r .= $this->orderHeader('',$lang['Description'],$this->link2); + $r .= $this->orderHeader('',$lang['AdrEmail'],$this->link2); + $r .= $this->orderHeader('',$lang['Phone'],$this->link2); + $r .= $this->orderHeader('',$lang['AdrFax'],$this->link2); $r .= $this->orderHeader('comment',$lang['Comment'],$this->link2); $r .= $this->orderHeader('created',$lang['created'],$this->link2); - $r .= "</tr>\n"; + $r .= $this->OverviewHeadLineEnd(); + $r .= $this->OverviewHeadEnd(); + $line = 1; $url = 'group/group2_new.php?id='.$this->obj->id; foreach ($this->obj->member as $i => $f) { $u = addUrlParameter($url,'aid='.$this->obj->member[$i][0]->id); $r .= $this->OverviewRowStart($line); - $r .= ' <td> '.makelink($u,'(edit)').' </td>'; + $r .= $this->OverviewRowBlock(makelink($u,'(edit)'),'over_r'); + $r .= $this->OverviewRowBlock($f[0]->getLink(),'over_l'); + $f[0]->read_locs_data(); + $info = ''; + $email = ''; + $phone = ''; + $fax = ''; $cnt = count($f[0]->location); + if ( $cnt > 0 ) { - $r .= ' <td valign="top" rowspan="'. $cnt .'">'. $this->obj->member[$i][0]->getLink() ."</td>\n"; + $pre = ''; $cnt2 = 0; foreach ($f[0]->location as $i2 => $f2) { - if ( $cnt2 > 0 ) { - $r .= $this->OverviewRowEnd($line); - $r .= $this->OverviewRowStart($line); - $r .= " <td> </td>\n"; - } - $r .= ' <td>'; + $info .= $pre; + $email .= $pre; + $phone .= $pre; + $fax .= $pre; + if (is_object($f2->department) && ($f2->department->id > 0) ) { - $r .= $f2->department->getLink(); + $info .= $f2->department->getLink(); } else if (is_object($f2->company) && ($f2->company->id > 0) ) { - $r .= $f2->company->getLink(); + $info .= $f2->company->getLink(); } else { - $r .= ' '; + $info .= ' '; } - $r .= "</td>\n"; - - $r .= ' <td>('. $f2->lname .") </td>\n"; - $r .= ' <td>'. $f2->desc1 ." </td>\n"; - $r .= ' <td>'. asEmail($f2->email_1,$f2->email_1,$f2->getFullName()); + $info .= ' '; + $info .= '('. $f2->lname .')'; + $info .= ' '.$f2->desc1; + $email .= asEmail($f2->email_1,$f2->email_1,$f2->getFullName()); if ( $f2->email_2 != "" ) { - $r .= '<br />'. asEmail($f2->email_2,$f2->email_2,$f2->getFullName()); + $email .= ' / '. asEmail($f2->email_2,$f2->email_2,$f2->getFullName()); } - $r .= " </td>\n"; - $r .= ' <td>'. handle('phone',$f2,$f2->phone_1); + $phone .= handle('phone',$f2,$f2->phone_1); if ( $f2->email_2 != "" ) { - $r .= '<br />'. handle('phone',$f2,$f2->phone_2); + $phone .= ' / '. handle('phone',$f2,$f2->phone_2); } - $r .= " </td>\n"; - $r .= ' <td>'. handle('fax',$f2,$f2->fax_1) ." </td>\n"; - if ($cnt2 == 0) { - $r .= ' <td valign="top" rowspan="'. $cnt .'">'. $this->obj->member[$i][1] ."</td>\n"; - $r .= ' <td valign="top" rowspan="'. $cnt .'">'. $this->obj->member[$i][2]->getDate() ."</td>\n"; - } + $fax .= handle('fax',$f2,$f2->fax_1); $cnt2++; + $pre = '<br />'; } + $r .= $this->OverviewRowBlock($info,'over_ml'); + $r .= $this->OverviewRowBlock($email,'over_ml'); + $r .= $this->OverviewRowBlock($phone,'over_ml'); + $r .= $this->OverviewRowBlock($fax,'over_ml'); } else { - $r .= ' <td colspan="7">'. $this->obj->member[$i][0]->getLink() ."</td>\n"; - $r .= ' <td valign="top">'. $this->obj->member[$i][1] ."</td>\n"; - $r .= ' <td valign="top">'. $this->obj->member[$i][2]->getDate() ."</td>\n"; + $r .= $this->OverviewRowBlock(' ','over_l'); + $r .= $this->OverviewRowBlock(' ','over_l'); + $r .= $this->OverviewRowBlock(' ','over_l'); + $r .= $this->OverviewRowBlock(' ','over_l'); } + + $r .= $this->OverviewRowBlock($f[1],'over_l'); + $r .= $this->OverviewRowBlock($f[2]->getDate(),'over_l'); $r .= $this->OverviewRowEnd($line++); } + $r .= $this->OverviewTableEnd(); } - $r .= $this->obj->getHistoryLink($this->width); - $r .= $this->DataTableEnd(); return $r; } Modified: trunk/php/history.pinc =================================================================== --- trunk/php/history.pinc 2013-02-02 15:05:55 UTC (rev 931) +++ trunk/php/history.pinc 2013-02-03 09:07:13 UTC (rev 932) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2011 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -13,7 +13,7 @@ * @module history * @package BASE */ - +$tutos['files'][__FILE__] = '$Rev$'; /** * Read the history of the given object * @@ -225,7 +225,7 @@ /** * Resolve obj for history */ -function resolve_history_obj ($h,$dbconn) { +function resolve_history_obj (array $h,tutos_db $dbconn) { global $lang; $f = array(); @@ -268,7 +268,7 @@ /** * Resolve date obj for history */ -function resolve_history_datetime ($h,$dbconn,$dateonly = true) { +function resolve_history_datetime (array $h,tutos_db $dbconn,$dateonly = true) { global $lang; $f = array(); Modified: trunk/php/history_show.php =================================================================== --- trunk/php/history_show.php 2013-02-02 15:05:55 UTC (rev 931) +++ trunk/php/history_show.php 2013-02-03 09:07:13 UTC (rev 932) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,12 +10,14 @@ * @module history_show * @package BASE */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'webelements.p3'; require_once 'permission.p3'; // Check if user is allowed to use it check_user(); +$tutos['mobileok'] = 1; // Needs nearly everything require_once 'product.pinc'; require_once 'task.pinc'; @@ -48,8 +50,8 @@ $cols--; } $r .= $this->OverviewTableStart(); - $r .= "<thead>\n"; - $r .= "<tr>\n"; + $r .= $this->OverviewHeadStart(); + $r .= $this->OverviewHeadLineStart(); $r .= " <th colspan=\"". $cols ."\">\n"; if ( is_object($this->obj) ) { $r .= sprintf($lang['HistoryShow'],$lang[$this->obj->getType()],$this->obj->getLink() ); @@ -70,9 +72,9 @@ $r .= " by ". $this->adr->getFullName(); } $r .= " </th>\n"; - $r .= "</tr>\n"; + $r .= $this->OverviewHeadLineEnd(); - $r .= "<tr>\n"; + $r .= $this->OverviewHeadLineStart(); if ( $this->id == -1 ) { $r .= $this->orderheader("","Type",$this->link2); $r .= $this->orderheader("","ID",$this->link2); @@ -84,8 +86,8 @@ $r .= $this->orderheader("",$lang['User'],$this->link2); } $r .= $this->orderheader("m_time",$lang['atDateTime'],$this->link2); - $r .= "</tr>\n"; - $r .= "</thead>\n"; + $r .= $this->OverviewHeadLineEnd(); + $r .= $this->OverviewHeadEnd(); $line = 0; $this->xobj->readHistory($this->adr_id,$this->order_fld,$this->order_dir,$this->start,$this->from,$this->to); @@ -110,54 +112,55 @@ if ( $this->id == -1 ) { $this->obj = getObject($this->dbconn,$f["obj_id"],1); if ( !is_object($this->obj) || ($this->obj->getType() == 'base') ) { - $r .= ' <td class="over_l" colspan="2"><b>'. $f["obj_id"] ."</b></td>\n"; + $r .= $this->OverviewRowBlock('<b>'. $f["obj_id"] .'</b>','over_l'); + $r .= $this->OverviewRowBlock(' ','over_l'); } else { - $r .= ' <td class="over_l">'. $lang[$this->obj->getType()] ."</td>\n"; - $r .= ' <td class="over_l"><b>'. $this->obj->getLink() ."</b></td>\n"; + $r .= $this->OverviewRowBlock($lang[$this->obj->getType()],'over_l'); + $r .= $this->OverviewRowBlock('<b>'. $this->obj->getLink() .'</b>','over_l'); } unset($x); } if ( ($f['field'] == "FileCreate") || ($f['field'] == "InstCreate") || ($f['field'] == "NoteCreate") - || ($f['field'] == "BugCreate") - || ($f['field'] == "TaskCreate") - || ($f['field'] == "created") + || ($f['field'] == 'BugCreate') + || ($f['field'] == 'TaskCreate') + || ($f['field'] == 'created') ) { - $r .= ' <td class="over_l"><b>'. (isset( $lang[$f["field"]]) ? $lang[$f["field"]] : $f["field"]) ."</b></td>\n"; + $r .= $this->OverviewRowBlock('<b>'.(isset( $lang[$f['field']]) ? $lang[$f['field']] : $f['field']).'</b>','over_l'); $b = getObject($this->dbconn,$f['new']); - $r .= ' <td class="over_l"> </td>'."\n"; + $r .= $this->OverviewRowBlock(' ','over_l'); if ( is_object($b) ) { - $r .= ' <td class="over_l">'. $b->getLink() ."</td>\n"; + $r .= $this->OverviewRowBlock($b->getLink(),'over_l'); } else { - $r .= ' <td class="over_l"><i>'. $lang['HistoryDeleted'] ."</i></td>\n"; + $r .= $this->OverviewRowBlock('<i>'.$lang['HistoryDeleted'].'</i>','over_l'); } - } else if ( ($f['field'] == "atDateTime") + } else if ( ($f['field'] == 'atDateTime') ) { - $r .= ' <td class="over_l"><b>'. (isset( $lang[$f["field"]]) ? $lang[$f["field"]] : $f["field"]) ."</b></td>\n"; + $r .= $this->OverviewRowBlock('<b>'.(isset( $lang[$f['field']]) ? $lang[$f['field']] : $f['field']).'</b>','over_l'); $b = new TUTOS_Date_Time(); $b->setDateTime($f['old']); - $r .= ' <td class="over_l">'. $b->getDate() ."</td>\n"; + $r .= $this->OverviewRowBlock($b->getDate(),'over_l'); $b->setDateTime($f['new']); - $r .= ' <td class="over_l">'. $b->getDate() ."</td>\n"; - } else if ( preg_match("#ProdRole?#",$f['field']) - || ($f['field'] == "Customer") - || ($f['field'] == "Company") + $r .= $this->OverviewRowBlock($b->getDate(),'over_l'); + } else if ( preg_match('#ProdRole?#',$f['field']) + || ($f['field'] == 'Customer') + || ($f['field'] == 'Company') || ($f['field'] == 'Department') - || ($f['field'] == "ProductP") - || ($f['field'] == "CloneEntry") - || ($f['field'] == "TaskSubTask") - || ($f['field'] == "FileAuthor") - || ($f['field'] == "TeamDel") - || ($f['field'] == "TeamAdd") - || ($f['field'] == "Participant") - || ($f['field'] == "Group") - || ($f['field'] == "AdrLNew") + || ($f['field'] == 'ProductP') + || ($f['field'] == 'CloneEntry') + || ($f['field'] == 'TaskSubTask') + || ($f['field'] == 'FileAuthor') + || ($f['field'] == 'TeamDel') + || ($f['field'] == 'TeamAdd') + || ($f['field'] == 'Participant') + || ($f['field'] == 'Group') + || ($f['field'] == 'AdrLNew') ) { $f = resolve_history_obj($f,$this->dbconn); - $r .= ' <td class="over_l"><b>'. $f['field'] ."</b></td>\n"; - $r .= ' <td class="over_l">'. $f['old'] ."</td>\n"; - $r .= ' <td class="over_l">'. $f['new'] ."</td>\n"; + $r .= $this->OverviewRowBlock('<b>'. $f['field'] .'</b>','over_l'); + $r .= $this->OverviewRowBlock($f['old'],'over_l'); + $r .= $this->OverviewRowBlock($f['new'],'over_l'); } else { // resolve by object $j = null; @@ -170,7 +173,7 @@ foreach($tutos[loadedmodules] as $i) { if (is_object($this->obj) && $i == $this->obj->getType()) continue; - #$r .= $i.' '.$f["field"].' <br>'; + #$r .= $i.' '.$f['field'].' <br>'; $x = new $tutos[modules][$i][name]($this->dbconn); $j = $x->resolveHistoryTag($f); if ($j != null) { @@ -186,36 +189,34 @@ $j = resolveCustomHistoryTag($f,$this->obj); } if ($j == null) { - $r .= ' <td class="over_l"><b>'. (isset( $lang[$f["field"]]) ? $lang[$f["field"]] : $f["field"]) ."</b></td>\n"; - $r .= ' <td class="over_ml">'. myentities($f["old"]) ." </td>\n"; - $r .= ' <td class="over_ml">'; - if (substr($f["new"],0,5) == 'DIFF:') { - $r .= '<pre>'. myentities($f['new']).'</pre>'; + $r .= $this->OverviewRowBlock('<b>'.(isset( $lang[$f['field']]) ? $lang[$f['field']] : $f['field']).'</b>','over_l'); + $r .= $this->OverviewRowBlock(myentities($f['old']),'over_ml'); + if (substr($f['new'],0,5) == 'DIFF:') { + $x = '<pre>'. myentities($f['new']).'</pre>'; } else { - $r .= myentities($f['new']); + $x = myentities($f['new']); } - $r .= "</td>\n"; + $r .= $this->OverviewRowBlock($x,'over_ml'); } else { - $r .= ' <td class="over_l"><b>'. myentities($j['field']) ."</b></td>\n"; - $r .= ' <td class="over_ml">'. $j['old'] ." </td>\n"; - $r .= ' <td class="over_ml">'; + $r .= $this->OverviewRowBlock('<b>'.myentities($j['field']).'</b>','over_l'); + $r .= $this->OverviewRowBlock($f['old'],'over_ml'); if (substr($j['new'],0,5) == 'DIFF:') { - $r .= '<pre>'. $j['new'].'</pre>'; + $x = '<pre>'. $j['new'].'</pre>'; } else { - $r .= $j['new']; + $x = $j['new']; } - $r .= "</td>\n"; + $r .= $this->OverviewRowBlock($x,'over_ml'); } } if ( $this->adr_id == -1 ) { $adr = new tutos_address($this->dbconn); $adr = $adr->read($f["adr_id"],$adr); - $r .= ' <td class="over_l">'. (is_object($adr) ? $adr->getLink() : ' ') ."</td>\n"; + $r .= $this->OverviewRowBlock((is_object($adr) ? $adr->getLink() : ' ') ,'over_l'); unset($adr); } $mt = new TUTOS_Date_Time(); $mt->setDateTime($f["m_time"]); - $r .= ' <td class="over_l">'. $mt->getDateTime() ."</td>\n"; + $r .= $this->OverviewRowBlock($mt->getDateTime(),'over_l'); $r .= $this->OverviewRowEnd($line++); flush(); unset($adr); Modified: trunk/php/installation/installation_overview.php =================================================================== --- trunk/php/installation/installation_overview.php 2013-02-02 15:05:55 UTC (rev 931) +++ trunk/php/installation/installation_overview.php 2013-02-03 09:07:13 UTC (rev 932) @@ -9,6 +9,7 @@ * @modulegroup installation * @module installation_overview */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -17,6 +18,7 @@ // Check if user is allowed to use it check_user(); +$tutos['mobileok'] = 1; require_once 'product.pinc'; loadmodules('installation','overview'); @@ -64,9 +66,9 @@ $ss = $this->putSubSession($nav); + $r .= $this->header; $this->flds = 2; $r .= $this->actionformStart('installation_overview.php'); - $r .= $this->header; $r .= $this->OverviewTableStart(); $r .= $this->OverviewHeadStart(); $r .= $this->OverviewHeadLineStart(); @@ -121,29 +123,27 @@ $i = &$blist[$a]; $a++; $r .= $this->OverviewRowStart($line,$lang[$i->getType()] .": ". $i->getFullName()); - $r .= ' <td class="over_r">'. $i->getLink(sprintf("%03d",$a),'ss='.$ss) ."</td>\n"; + $r .= $this->OverviewRowBlock($i->getLink(sprintf("%03d",$a),'ss='.$ss),'over_r'); if ($this->head['product_id']) { - $r .= ' <td class="over_l">'; if ( is_object($i->product) && $i->product->id != -1 ) { $x = $this->mark_filter(myentities($i->product->getFullName()),'pfn'); - $r .= $i->product->getLink($x); + $x = $i->product->getLink($x); } else { - $r .= '<i>'. $lang['HistoryDeleted'] .'</i>'; + $x = '<i>'. $lang['HistoryDeleted'] .'</i>'; } - $r .= "</td>\n"; + $r .= $this->OverviewRowBlock($x,'over_l'); } if ($this->head['customer_id']) { - $r .= ' <td class="over_l">'; if ( is_object($i->customer) && $i->customer->id == -1 ) { - $r .= '<i>'. $lang['HistoryDeleted'] .'</i>'; + $x = '<i>'. $lang['HistoryDeleted'] .'</i>'; } else if (is_object($i->customer) && $i->customer->id != -1 ) { $x = $this->mark_filter(myentities($i->customer->getFullName()),'customer_id'); - $r .= $i->customer->getLink($x); + $x = $i->customer->getLink($x); } else { - $r .= ' '; + $x = ' '; } - $r .= '</td>'."\n"; + $r .= $this->OverviewRowBlock($x,'over_l'); } if ($this->head['version']) { $x = $this->mark_filter(myentities($i->version),'name'); @@ -153,31 +153,29 @@ $r .= $this->OverviewRowBlock($x,'over_ml'); if ($this->head['installer_id']) { - $r .= ' <td class="over_r">'; if ( is_object($i->installer) && $i->installer->id == -1 ) { - $r .= '<i>'. $lang['HistoryDeleted'] .'</i>'; + $x = '<i>'. $lang['HistoryDeleted'] .'</i>'; } else if ( is_object($i->installer) && $i->installer->id != -1 ) { $x = $this->mark_filter(myentities($i->installer->getFullName()),'installer_id'); - $r .= $i->installer->getLink($x); + $x = $i->installer->getLink($x); } else { - $r .= ' '; + $x = ' '; } - $r .= '</td>'."\n"; + $r .= $this->OverviewRowBlock($x,'over_r'); } if ($this->head['instdate']) { $r .= $this->OverviewRowBlock($i->instdate->getLinkDate(),'over_l'); } if ($this->head['seller_id']) { - $r .= ' <td class="over_r">'; if ( is_object($i->seller) && $i->seller->id == -1 ) { - $r .= '<i>'. $lang['HistoryDeleted'] .'</i>'; + $x = '<i>'. $lang['HistoryDeleted'] .'</i>'; } else if ( is_object($i->seller) && $i->seller->id != -1 ) { $x = $this->mark_filter(myentities($i->seller->getFullName()),'seller_id'); - $r .= $i->seller->getLink($x); + $x = $i->seller->getLink($x); } else { - $r .= ' '; + $x = ' '; } - $r .= '</td>'."\n"; + $r .= $this->OverviewRowBlock($x,'over_r'); } if ($this->head['salesdate']) { $r .= $this->OverviewRowBlock($i->salesdate->getLinkDate(),'over_l'); Modified: trunk/php/installation/installation_select.php =================================================================== --- trunk/php/installation/installation_select.php 2013-02-02 15:05:55 UTC (rev 931) +++ trunk/php/installation/installation_select.php 2013-02-03 09:07:13 UTC (rev 932) @@ -10,6 +10,7 @@ * @module installation_select * @package installation */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -59,17 +60,17 @@ $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc(sprintf($lang['Customer'],''),0,"c"); - $r .= $this->showdata(select_from_array_or_input($this->obj,"c",null,1,'cdat'),2); + $r .= $this->showdata(select_from_array_or_input($this,"c",null,1,'cdat'),2); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc(sprintf($lang['SoldBy'],''),0,"s"); - $r .= $this->showdata(select_from_array_or_input($this->obj,"s",null,1,'at'),2); + $r .= $this->showdata(select_from_array_or_input($this,"s",null,1,'at'),2); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc(sprintf($lang['InstalledBy'],''),0,"i"); - $r .= $this->showdata(select_from_array_or_input($this->obj,"i",null,1,'at'),2); + $r .= $this->showdata(select_from_array_or_input($this,"i",null,1,'at'),2); $r .= $this->ContentRowEnd(); // add custom selectors @@ -132,9 +133,7 @@ } else { $this->state = -1; } - /*if ( isset($_GET['ext']) ) { - $this->ext = $_GET['ext']; - }*/ + if ( $this->user->feature_ok(useinstmanagement,PERM_NEW) ) { $x = array( url => 'installation/installation_new.php', text => $lang['NewEntry'], Modified: trunk/php/layout/mobile_layout.pinc =================================================================== --- trunk/php/layout/mobile_layout.pinc 2013-02-02 15:05:55 UTC (rev 931) +++ trunk/php/layout/mobile_layout.pinc 2013-02-03 09:07:13 UTC (rev 932) @@ -12,6 +12,7 @@ $tutos['files'][__FILE__] = '$Rev:$'; require_once 'layout/layout_base.pinc'; +define('BLKCNT',3); /** * Layout for mobile (i.e. smartphone access * @@ -132,14 +133,15 @@ * start a overview headline */ function OverviewHeadLineStart() { - return '<li>'; + $this->blk_cnt = 0; + return '<li>'."\n"; } /** * end a overview headline */ function OverviewHeadLineEnd() { - return '</li>'; + return '</li>'."\n"; } /** @@ -162,17 +164,22 @@ * end a overview row */ function OverviewRowBlock($content,$class = '',$rows=1) { - $this->blk_cnt++; - $class .= " tlve"; - if ($this->blk_cnt > 3) { + $r = ''; + if (0 == ($this->blk_cnt % BLKCNT)) { + $r .= '<p>'."\n"; + } + if (BLKCNT-1 == ($this->blk_cnt % BLKCNT) ) { $class .= " ui-li-aside"; } - $r = ' <span'.($class!='' ? ' class="'.$class.'"':'').'>'.$content.'</span>'."\n"; - if ($this->blk_cnt >3) { - $this->blk_cnt = 0; - $r .= ' <p>'."\n"; + $r .= ' <span'.($class!='' ? ' class="'.$class.'"':'').'>'.$content.'</span>'."\n"; + + if (BLKCNT-1 == ($this->blk_cnt % BLKCNT) ) { + $r .= ' </p>'."\n"; + } else { + $r .= '|'; } + $this->blk_cnt += $rows; return $r; } @@ -336,8 +343,17 @@ function orderheader($oname,$link,$base,$cols = 1) { global $tutos, $lang; + $class = ''; + $r = ''; + if (0 == ($this->blk_cnt % BLKCNT)) { + $r .= '<p>'."\n"; + } + if (BLKCNT-1 == ($this->blk_cnt % BLKCNT) ) { + $class .= " ui-li-aside"; + } + $base = addUrlParameter($base,"xf=".$oname,false); - $r = ' <span nowrap="nowrap">'."\n"; + $r .= ' <span'.($class!='' ? ' class="'.$class.'"':'').' nowrap="nowrap">'."\n"; if ( $ "" ) { $r .= $link; } else { @@ -368,11 +384,12 @@ } $r .= "</span>\n"; + if (BLKCNT-1 == ($this->blk_cnt % BLKCNT) ) { + $r .= ' </p>'."\n"; + } else { + $r .= '|'; + } $this->blk_cnt++; - if ($this->blk_cnt >3) { - $this->blk_cnt = 0; - $r .= ' <p>'."\n"; - } return $r; } Modified: trunk/php/scrum/log_overview.php =================================================================== --- trunk/php/scrum/log_overview.php 2013-02-02 15:05:55 UTC (rev 931) +++ trunk/php/scrum/log_overview.php 2013-02-03 09:07:13 UTC (rev 932) @@ -21,6 +21,7 @@ /* Check if user is allowed to use it */ check_user(); +$tutos['mobileok'] = 1; loadmodules('scrumlog','overview'); loadmodule('scrumlog'); loadmodule('scrumsprint'); @@ -196,12 +197,12 @@ $u = addUrlParameter($this->link1,'action=PP'); $u = addUrlParameter($u,'mark[]='.$obj->id); $x .= makelink($u,'+'); - $x .= ' '.$obj->prio.' '; + $x .= '   '.$obj->prio.'   '; $u = addUrlParameter($this->link1,'action=PM'); $u = addUrlParameter($u,'mark[]='.$obj->id); $x .= makelink($u,'-'); } else { - $x .= $obj->prio; + $x .= '   '.$obj->prio.'   '; } $x .= '</div>'."\n"; $r .= $this->OverviewRowBlock($x,'over_l'); @@ -268,7 +269,7 @@ $x = ''; if (is_object($obj->worker)) $x = $this->mark_filter(myentities($obj->worker->getFullName()),'w_fn'); - $r .= $this->OverviewRowBlock((is_object($obj->worker) ? $obj->worker->getLink($x):' '),'over_l'); + $r .= $this->OverviewRowBlock((is_object($obj->worker) ? $obj->worker->getLink($x):' '),'over_l'); } // Start if ($this->head['start']) { @@ -288,7 +289,7 @@ if ( $tutos[massupdate] == 1 ) { $r .= $this->UpdateRowStart($this->flds-1); $r .= sprintf($lang['withmarked'],$lang['ScrumLogItems']); - $r .= " <select name=\"action\">\n"; + $r .= " <select name=\"action\">\n"; $r .= ' <option value="-1" selected="selected">'. $lang['ActionNil'] ."</option>\n"; $r .= ' <option value="U">'. $lang['ScrumLogClean'] ."</option>\n"; // Sprints This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-02 15:05:58
|
Revision: 931 http://sourceforge.net/p/tutos/code/931 Author: gokohnert Date: 2013-02-02 15:05:55 +0000 (Sat, 02 Feb 2013) Log Message: ----------- some mobile updates Modified Paths: -------------- trunk/php/expense/expense_overview.php trunk/php/group/group_overview.php trunk/php/layout/mobile_layout.pinc trunk/php/note/note_overview.php trunk/php/note/note_select.php trunk/php/stuff/stuff_overview.php trunk/php/stuff/stuff_show.php trunk/php/team.pinc trunk/php/team_overview.php trunk/php/webelements.p3 Modified: trunk/php/expense/expense_overview.php =================================================================== --- trunk/php/expense/expense_overview.php 2013-02-02 12:54:58 UTC (rev 930) +++ trunk/php/expense/expense_overview.php 2013-02-02 15:05:55 UTC (rev 931) @@ -21,6 +21,7 @@ // Check if user is allowed to use it check_user(); +$tutos['mobileok'] = 1; loadmodules('expense','overview'); loadmodule('expense'); loadlayout(); @@ -126,10 +127,10 @@ $this->result->free(); + $r .= $this->header; $this->flds = 3; $this->preflds = 1; // fields before gamount $r .= $this->actionformStart("expense_overview.php"); - $r .= $this->header; $r .= $this->OverviewTableStart(); $r .= $this->OverviewHeadStart(); $r .= $this->OverviewHeadLineStart(); @@ -190,13 +191,14 @@ $r .= $this->OverviewRowStart($line); $x = $this->mark_filter(myentities($b->getFullName()),'name'); - $r .= ' <td class="over_l">'. $b->getLink($x,'ss='.$ss) ."</td>\n"; + $r .= $this->OverviewRowBlock($b->getLink($x,'ss='.$ss),'over_l'); + if ($this->head['link_id']) { $x = ''; if ( is_object($b->ref) ) { $x = $this->mark_filter(myentities($b->ref->getFullName()),'link_id'); } - $r .= ' <td class="over_l">'. $b->getRefLink($x) ."</td>\n"; + $r .= $this->OverviewRowBlock($b->getRefLink($x),'over_l'); } if ($this->head['supplier']) { @@ -204,7 +206,7 @@ if (is_object($b->supplier)) { $x = $this->mark_filter(myentities($b->supplier->getFullName()),'supplier'); } - $r .= ' <td class="over_l">'. (is_object($b->supplier) ? $b->supplier->getLink($x):' ') ."</td>\n"; + $r .= $this->OverviewRowBlock((is_object($b->supplier) ? $b->supplier->getLink($x):' '),'over_l'); } if ($this->head['adr_id']) { @@ -212,29 +214,26 @@ if ( is_object($b->adr_ref) ) { $x = $this->mark_filter(myentities($b->adr_ref->getFullName()),'adr_id'); } - $r .= ' <td class="over_l">'. $b->getAdrRefLink($x) ."</td>\n"; + $r .= $this->OverviewRowBlock($b->getAdrRefLink($x),'over_l'); } if ($this->head['category']) { - $r .= ' <td class="over_l">'. $b->getCategory() ."</td>\n"; + $r .= $this->OverviewRowBlock($b->getCategory(),'over_l'); } if ($this->head['quantity']) { - $r .= ' <td class="over_r">'. my_number_format($b->quantity,2) ."</td>\n"; + $r .= $this->OverviewRowBlock(my_number_format($b->quantity,2),'over_r'); } - $r .= ' <td class="over_r">'. number_format($b->gamount,2,$lang['DecPoint'],$lang['ThousandPoint']) - .' '. myentities($b->currency) ."</td>\n"; + $r .= $this->OverviewRowBlock(number_format($b->gamount,2,$lang['DecPoint'],$lang['ThousandPoint']).' '. myentities($b->currency),'over_r'); // TAX - $r .= ' <td class="over_r">'; + $x = ' '; if ($b->itax != 0) { - $r .= number_format($b->GetTax(),2,$lang['DecPoint'],$lang['ThousandPoint']) + $x = number_format($b->GetTax(),2,$lang['DecPoint'],$lang['ThousandPoint']) .' '. myentities($b->currency) .' ('. myentities($b->itax) ." %)\n"; - } else { - $r .= ' '; } - $r .= '</td>'."\n"; + $r .= $this->OverviewRowBlock($x,'over_r'); if ($this->head['custom']) { $r .= show_custom_overview_data($this,'expense',$b); Modified: trunk/php/group/group_overview.php =================================================================== --- trunk/php/group/group_overview.php 2013-02-02 12:54:58 UTC (rev 930) +++ trunk/php/group/group_overview.php 2013-02-02 15:05:55 UTC (rev 931) @@ -23,6 +23,7 @@ // Check if user is allowed to use it check_user(); +$tutos['mobileok'] = 1; loadmodules('group','overview'); loadmodule('group'); loadlayout(); @@ -80,6 +81,7 @@ $ss = $this->putSubSession($nav); $r.= $this->header; + $this->flds = 3; $r .= $this->actionformStart("group_overview.php"); $r .= $this->OverviewTableStart(); $r .= $this->OverviewHeadStart(); @@ -87,7 +89,6 @@ $r .= $this->orderHeader("name",$lang['GroupName'],$this->link2); $r .= $this->orderHeader("",$lang['GroupDesc'],$this->link2); $r .= $this->orderHeader("",$lang['GroupMember'],$this->link2); - $this->flds = 3; $r .= show_custom_overview_headers($this,'group',$this->link2); $r .= $this->MassUpdateHeader(); $r .= $this->OverviewHeadLineEnd(); @@ -112,12 +113,12 @@ } $r .= $this->OverviewRowStart($line); $x = $this->mark_filter(myentities($c->getFullName()),'name'); - $r .= ' <td class="over_l">'.makeLink($c->getUrl('ss='.$ss),$x).'</td>'."\n"; + $r .= $this->OverviewRowBlock(makeLink($c->getUrl('ss='.$ss),$x),'over_l'); $x = $this->mark_filter(myentities($c->desc),'description'); - $r .= ' <td class="over_l">'. $x ."</td>\n"; + $r .= $this->OverviewRowBlock($x,'over_l'); - $r .= ' <td class="over_r">'. count($c->member) ."</td>\n"; + $r .= $this->OverviewRowBlock(count($c->member),'over_l'); $r .= show_custom_overview_data($this,'group',$c); $r .= $this->MassUpdateField($c); Modified: trunk/php/layout/mobile_layout.pinc =================================================================== --- trunk/php/layout/mobile_layout.pinc 2013-02-02 12:54:58 UTC (rev 930) +++ trunk/php/layout/mobile_layout.pinc 2013-02-02 15:05:55 UTC (rev 931) @@ -883,18 +883,20 @@ unset($this->menu[$i][text]); unset($this->menu[$i]); } - if ( $first == null ) { - if ($headline != '') - $first = $headline; + if ( $headline == '' ) { + if ($first != '') + $headline = $first; else - $first = $section; + $headline = $section; } if ($c == '') return ''; $r .= ' <div id="'.$section.'" data-role="popup" data-theme="a">'."\n"; // page - $r .= ' <div data-theme="a" data-role="header">'."\n"; - $r .= ' <h3>'.$first.'</h3>'."\n"; - $r .= ' </div>'."\n"; // header + if ($headline != '') { + $r .= ' <div data-theme="a" data-role="header">'."\n"; + $r .= ' <h3>'.$headline.'</h3>'."\n"; + $r .= ' </div>'."\n"; // header + } $r .= ' <div data-role="content">'."\n"; $r .= ' <ul data-role="listview">'."\n"; $r .= $c; @@ -948,13 +950,13 @@ $r .= $this->makemenu('obj',( ($this->obj != null) ? $this->obj->getFullName():$this->name)); // VIEW Menu - $r .= $this->makemenu('view'); + $r .= $this->makemenu('view',( ($this->obj != null) ? $this->obj->getFullName():$this->name)); // Search Menu - $r .= $this->makemenu('search'); + $r .= $this->makemenu('search',( ($this->obj != null) ? $this->obj->getFullName():$this->name)); // Module Menu - $r .= $this->makemenu('module'); + $r .= $this->makemenu('module',( ($this->obj != null) ? $this->obj->getFullName():$this->name)); $r .= " </div><!-- page -->\n"; // data-role page //$r .= "<!-- end of layout_stop -->\n"; Modified: trunk/php/note/note_overview.php =================================================================== --- trunk/php/note/note_overview.php 2013-02-02 12:54:58 UTC (rev 930) +++ trunk/php/note/note_overview.php 2013-02-02 15:05:55 UTC (rev 931) @@ -19,6 +19,7 @@ // Check if user is allowed to use it check_user(); +$tutos['mobileok'] = 1; require_once 'appointment.pinc'; require_once 'product.pinc'; @@ -69,16 +70,16 @@ $ss = $this->putSubSession($nav); $r .= $this->header; + $this->flds = 5; $r .= $this->actionformStart("note_overview.php"); $r .= $this->OverviewTableStart(); $r .= $this->OverviewHeadStart(); $r .= $this->OverviewHeadLineStart(); - $r .= $this->orderHeader("creation",$lang['created'],$this->link2); - $r .= $this->orderHeader("",$lang['NoteName'],$this->link2); - $r .= $this->orderHeader("link_id",$lang['NoteReference'],$this->link2); - $r .= $this->orderHeader("remember",$lang['NoteRemember'],$this->link2); - $r .= $this->orderHeader("n.creator",$lang['NoteCreator'],$this->link2); - $this->flds = 5; + $r .= $this->orderHeader('creation',$lang['created'],$this->link2); + $r .= $this->orderHeader('',$lang['NoteName'],$this->link2); + $r .= $this->orderHeader('link_id',$lang['NoteReference'],$this->link2); + $r .= $this->orderHeader('remember',$lang['NoteRemember'],$this->link2); + $r .= $this->orderHeader('',$lang['NoteCreator'],$this->link2); $r .= show_custom_overview_headers($this,'note',$this->link2); $r .= $this->MassUpdateHeader(); $r .= $this->OverviewHeadLineEnd(); Modified: trunk/php/note/note_select.php =================================================================== --- trunk/php/note/note_select.php 2013-02-02 12:54:58 UTC (rev 930) +++ trunk/php/note/note_select.php 2013-02-02 15:05:55 UTC (rev 931) @@ -8,6 +8,7 @@ * Free Software Foundation; version 2 of the License. * */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/stuff/stuff_overview.php =================================================================== --- trunk/php/stuff/stuff_overview.php 2013-02-02 12:54:58 UTC (rev 930) +++ trunk/php/stuff/stuff_overview.php 2013-02-02 15:05:55 UTC (rev 931) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2004 - 2012 by Gero Kohnert + * Copyright 2004 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -16,6 +16,7 @@ * @module stuff_overview * @package stuff */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -23,6 +24,7 @@ // Check if user is allowed to use it check_user(); +$tutos['mobileok'] = 1; require_once 'pdf.pinc'; loadmodules('stuff','overview'); @@ -228,12 +230,12 @@ $nav['list'] = $np; $ss = $this->putSubSession($nav); + $r .= $this->header; + $this->flds = 3; $r .= $this->actionformStart("stuff_overview.php"); - $r .= $this->header; $r .= $this->OverviewTableStart(); - $r .= "<thead>\n"; - $r .= "<tr>\n"; - $this->flds = 3; + $r .= $this->OverviewHeadStart(); + $r .= $this->OverviewHeadLineStart(); $r .= $this->orderHeader("name",$lang['StuffName'],$this->link2); if ($this->head['type']) { $r .= $this->orderHeader("type",$lang['StuffType'],$this->link2); @@ -263,8 +265,8 @@ $r .= $this->orderHeader('',$lang['StuffPrice'],$this->link2); $r .= show_custom_overview_headers($this,'stuff',$this->link2); $r .= $this->MassUpdateHeader(); - $r .= "</tr>\n"; - $r .= "</thead>\n"; + $r .= $this->OverviewHeadLineEnd(); + $r .= $this->OverviewHeadEnd(); if ( $this->start == -1 ) { $a = $n - $tutos['maxshow']; @@ -275,7 +277,6 @@ $end = $this->start + $tutos['maxshow']; } - $r .= "<tbody>\n"; $line = 1; while ( ($a < $n) && ($a < $end) ) { $c = new stuff($this->dbconn); @@ -287,15 +288,15 @@ $r .= $this->OverviewRowStart($line); // Name $x = $this->mark_filter(myentities($c->getFullName()),'name'); - $r .= '<td class="over_l">'. $c->getLink($x,'ss='.$ss) ."</td>\n"; + $r .= $this->OverviewRowBlock($c->getLink($x,'ss='.$ss),'over_l'); // Type if ($this->head['type']) { - $r .= '<td class="over_l">'. myentities($lang['StuffTypes'][$c->type]) ." </td>\n"; + $r .= $this->OverviewRowBlock(myentities($lang['StuffTypes'][$c->type]),'over_l'); } // Serial if ($this->head['serial']) { $x = $this->mark_filter(myentities($c->serial),'name'); - $r .= '<td class="over_l">'. $x ." </td>\n"; + $r .= $this->OverviewRowBlock($x,'over_l'); } // Owner if ($this->head['owner']) { @@ -305,7 +306,7 @@ $x = ''; } $x = $this->mark_filter(myentities($x),'ownerfn'); - $r .= '<td class="over_l">'. (is_object($c->owner) ? $c->owner->getLink($x):'-') ."</td>\n"; + $r .= $this->OverviewRowBlock((is_object($c->owner) ? $c->owner->getLink($x):'-'),'over_l'); } // Source if ($this->head['s_source']) { @@ -315,7 +316,7 @@ $x = ''; } $x = $this->mark_filter(myentities($x),'sourcefn'); - $r .= '<td class="over_l">'. (is_object($c->source) ? $c->source->getLink($x):'-') ."</td>\n"; + $r .= $this->OverviewRowBlock((is_object($c->source) ? $c->source->getLink($x):'-'),'over_l'); } // User if ($this->head['s_user']) { @@ -325,32 +326,28 @@ $x = ''; } $x = $this->mark_filter(myentities($x),'userfn'); - $r .= '<td class="over_l">'. (is_object($c->suser) ? $c->suser->getLink($x):'-') ."</td>\n"; + $r .= $this->OverviewRowBlock((is_object($c->suser) ? $c->suser->getLink($x):'-'),'over_l'); } // Inventory ID if ($this->head['invid']) { $x = $this->mark_filter(myentities($c->invid),'invid'); - $r .= '<td class="over_l">'. $x ." </td>\n"; + $r .= $this->OverviewRowBlock($x,'over_l'); } // Date In - $r .= '<td class="over_l">'. $c->p_date->getDate() ." </td>\n"; + $r .= $this->OverviewRowBlock($c->p_date->getDate(),'over_l'); // Price - $r .= '<td class="over_r">'; $x = my_number_format($c->price,2).' '. $c->currency; if (is_object($c->ref)) { - $r .= $c->ref->getLink($x); - } else { - $r .= $x; + $x .= $c->ref->getLink($x); } - $r .= " </td>\n"; + $r .= $this->OverviewRowBlock($x,'over_r'); $r .= show_custom_overview_data($this,'stuff',$c); $r .= $this->MassUpdateField($c); $r .= $this->OverviewRowEnd($line++); } - $r .= "</tbody>\n"; /** sums */ $r .= "<tr>\n"; @@ -543,4 +540,4 @@ <!-- SVN Info $Id$ $Author$ ---> +--> \ No newline at end of file Modified: trunk/php/stuff/stuff_show.php =================================================================== --- trunk/php/stuff/stuff_show.php 2013-02-02 12:54:58 UTC (rev 930) +++ trunk/php/stuff/stuff_show.php 2013-02-02 15:05:55 UTC (rev 931) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2004 - 2012 by Gero Kohnert + * Copyright 2004 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -15,6 +15,7 @@ * @module stuff_show * @package stuff */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -22,6 +23,9 @@ // Check if user is allowed to use it check_user(); + +$tutos['mobileok'] = 1; + loadmodules('stuff','show'); loadmodule('stuff'); loadlayout(); Modified: trunk/php/team.pinc =================================================================== --- trunk/php/team.pinc 2013-02-02 12:54:58 UTC (rev 930) +++ trunk/php/team.pinc 2013-02-02 15:05:55 UTC (rev 931) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; /** * a team (group of TUTOS users) @@ -736,6 +737,6 @@ $r .= "</ul>\n"; return $r; } - } +} $tutos['classes'][useteams] = 'team'; ?> \ No newline at end of file Modified: trunk/php/team_overview.php =================================================================== --- trunk/php/team_overview.php 2013-02-02 12:54:58 UTC (rev 930) +++ trunk/php/team_overview.php 2013-02-02 15:05:55 UTC (rev 931) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -11,13 +11,17 @@ * @module team_overview * @package team */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'webelements.p3'; require_once 'permission.p3'; + +// Check if user is allowed to use it +check_user(); +$tutos['mobileok'] = 1; + require_once 'appointment.pinc'; require_once 'product.pinc'; -// Check if user is allowed to use it -check_user(); loadmodules('team','overview'); loadlayout(); @@ -56,6 +60,7 @@ } $r .= $this->header; + $this->flds = 3; $r .= $this->actionformStart("team_overview.php"); $r .= $this->OverviewTableStart(); $r .= $this->OverviewHeadStart(); @@ -63,7 +68,6 @@ $r .= $this->orderHeader("name",$lang['Team'],$this->link2); $r .= $this->orderHeader("",$lang['TeamManager'],$this->link2); $r .= $this->orderHeader("",$lang['TeamCount'],$this->link2); - $this->flds = 3; $r .= show_custom_overview_headers($this,'team',$this->link2); $r .= $this->MassUpdateHeader(); $r .= $this->OverviewHeadLineEnd(); @@ -92,7 +96,7 @@ $r .= $this->OverviewRowBlock('','over_l'); } $r .= $this->OverviewRowBlock(count($t->ids),'over_l'); - $r .= show_custom_overview_data($this,'team',$t); + $r .= show_custom_overview_data($this,team::getType(),$t); $r .= $this->MassUpdateField($t); $r .= $this->OverviewRowEnd($line++); $a++; Modified: trunk/php/webelements.p3 =================================================================== --- trunk/php/webelements.p3 2013-02-02 12:54:58 UTC (rev 930) +++ trunk/php/webelements.p3 2013-02-02 15:05:55 UTC (rev 931) @@ -2639,6 +2639,10 @@ } } $r .= '</select>'; + // if (isset($obj->def_val_tutos[$fld])) + // $default = $obj->def_val_tutos[$fld]; + // else + // $default = $tutos[$fld]; break; case 'stc': $stc = getObject($ly->dbconn,$tutos['cfg'][$fld]['stc']); @@ -2660,14 +2664,19 @@ $r .= '>'. myentities($f->getFullName()) ."</option>\n"; } $r .= '</select>'; + // if (isset($obj->def_val_tutos[$fld])) + // $default = $obj->def_val_tutos[$fld]; + // else + // $default = $tutos[$fld]; break; case 'bool': + $default = ($tutos[$fld] == 1 ? $lang['yes']:$lang['no']); if ($obj == null) { $r .= '<input id="userval_'.$fld.'" type="checkbox" name="'.$fld.'" value="1"'.($tutos[$fld] == 1 ? ' checked="checked"':''); - $default = ($tutos[$fld] == 1 ? $lang['yes']:$lang['no']); } else { $r .= '<input id="userval_'.$fld.'" type="checkbox" name="'.$fld.'" value="1"'.($obj->tutos[$fld] == 1 ? ' checked="checked"':''); - $default = ($obj->def_val_tutos[$fld] == 1 ? $lang['yes']:$lang['no']);; + if (isset($obj->def_val_tutos[$fld])) + $default = ($obj->def_val_tutos[$fld] == 1 ? $lang['yes']:$lang['no']); } $r .= ' />'; break; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-02 12:55:02
|
Revision: 930 http://sourceforge.net/p/tutos/code/930 Author: gokohnert Date: 2013-02-02 12:54:58 +0000 (Sat, 02 Feb 2013) Log Message: ----------- disable per user setting when using default / langauge fixes Modified Paths: -------------- trunk/php/acl_new.php trunk/php/db/db_mysqli.pinc trunk/php/db/db_pg.pinc trunk/php/localization/ca.p3 trunk/php/localization/cs.p3 trunk/php/localization/de.p3 trunk/php/localization/el.p3 trunk/php/localization/en.p3 trunk/php/localization/es-mx.p3 trunk/php/localization/es-ni.p3 trunk/php/localization/es-ve.p3 trunk/php/localization/es.p3 trunk/php/localization/fr.p3 trunk/php/localization/hu.p3 trunk/php/localization/it.p3 trunk/php/localization/ja.p3 trunk/php/localization/ko.p3 trunk/php/localization/nl.p3 trunk/php/localization/pl.p3 trunk/php/localization/pt-br.p3 trunk/php/localization/pt.p3 trunk/php/localization/ru.p3 trunk/php/localization/sv.p3 trunk/php/localization/tw.p3 trunk/php/localization/vi.p3 trunk/php/localization/zh.p3 trunk/php/module_base.pinc trunk/php/permission.p3 trunk/php/user_new.php trunk/php/webelements.p3 Modified: trunk/php/acl_new.php =================================================================== --- trunk/php/acl_new.php 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/acl_new.php 2013-02-02 12:54:58 UTC (rev 930) @@ -128,10 +128,10 @@ $xl = $xx->getObjConfig($this->obj[0]); if (count($xl) > 0) { $r .= "<tr>\n"; - $r .= '<th colspan="'.$this->width.'">'.$this->feature_info[name].'@'.$lang[$this->obj[0]->getType()].' '.$this->obj[0]->getLink().' </th>'; + $r .= '<th colspan="'.$this->width.'">'.$lang['ConfigObjSpecific'].'<br />'.$this->feature_info[name].'@'.$lang[$this->obj[0]->getType()].' '.$this->obj[0]->getLink().' </th>'; $r .= "</tr>\n"; $r .= "<tr>\n"; - $r .= '<th>config</th><th>setting</th><th>use default</th><th colspan="'.($this->width -3).'">help</th>'; + $r .= '<th>'.$lang['ConfigName'].'</th><th>'.$lang['ConfigUserValue'].'</th><th>'.$lang['ConfigUseDefault'].'</th><th colspan="5"> </th>'."\n"; $r .= "</tr>\n"; $line = 0; foreach($xl as $cf) { @@ -204,7 +204,7 @@ $r .= sprintf($lang['AclModifyI'],$title); } if ($this->feature != 0) { - $r .= ' Feature:<b>'.$lang[$this->feature].'</b>'; + $r .= '   '.$lang['Menu']['module'].':<b>'.$lang[$this->feature].'</b>'; } $r .= "</th></tr>\n"; Modified: trunk/php/db/db_mysqli.pinc =================================================================== --- trunk/php/db/db_mysqli.pinc 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/db/db_mysqli.pinc 2013-02-02 12:54:58 UTC (rev 930) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2012 by Gero Kohnert + * Copyright 2001 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'db.pinc'; # @@ -524,7 +525,7 @@ $c = preg_replace("/U/","unique",$c); $c = preg_replace("/NN/","",$c); $q .= $this->colname($colname) ." ". $this->colname($colname) ." ". $t ." ". $c; - # echo $q."<br />"; +# echo $q."<br />"; return $this->exec($q,0); } Modified: trunk/php/db/db_pg.pinc =================================================================== --- trunk/php/db/db_pg.pinc 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/db/db_pg.pinc 2013-02-02 12:54:58 UTC (rev 930) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2011 by Gero Kohnert + * Copyright 2001 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'db.pinc'; # Modified: trunk/php/localization/ca.p3 =================================================================== --- trunk/php/localization/ca.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/ca.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -734,6 +734,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "Base de dades"; Modified: trunk/php/localization/cs.p3 =================================================================== --- trunk/php/localization/cs.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/cs.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -731,6 +731,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "Databáze"; Modified: trunk/php/localization/de.p3 =================================================================== --- trunk/php/localization/de.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/de.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -731,6 +731,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Module'; $lang['AdminModulesI'] = 'eine Liste aller TUTOS Module'; +$lang['ConfigUserSpecific'] = 'Benutzer spezifische Konfiguration'; +$lang['ConfigObjSpecific'] = 'Objekt spezifische Konfiguration'; +$lang['ConfigUseDefault'] = 'Standard nutzen'; +$lang['ConfigUserValue'] = 'Benutzer Wert'; +$lang['ConfigName'] = 'Einstellung'; # Database $lang['DB'] = 'Datenbank'; Modified: trunk/php/localization/el.p3 =================================================================== --- trunk/php/localization/el.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/el.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -730,6 +730,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "Βάση Δεδομένων"; Modified: trunk/php/localization/en.p3 =================================================================== --- trunk/php/localization/en.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/en.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -731,6 +731,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = 'Database'; Modified: trunk/php/localization/es-mx.p3 =================================================================== --- trunk/php/localization/es-mx.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/es-mx.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -728,6 +728,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "Database"; Modified: trunk/php/localization/es-ni.p3 =================================================================== --- trunk/php/localization/es-ni.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/es-ni.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -729,6 +729,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "Base de Datos"; Modified: trunk/php/localization/es-ve.p3 =================================================================== --- trunk/php/localization/es-ve.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/es-ve.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -728,6 +728,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "Base de Datos"; Modified: trunk/php/localization/es.p3 =================================================================== --- trunk/php/localization/es.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/es.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -728,6 +728,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "Base de datos"; Modified: trunk/php/localization/fr.p3 =================================================================== --- trunk/php/localization/fr.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/fr.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -728,6 +728,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = 'Base de données'; Modified: trunk/php/localization/hu.p3 =================================================================== --- trunk/php/localization/hu.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/hu.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -733,6 +733,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "Adatbázis"; Modified: trunk/php/localization/it.p3 =================================================================== --- trunk/php/localization/it.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/it.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -726,6 +726,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "Database"; Modified: trunk/php/localization/ja.p3 =================================================================== --- trunk/php/localization/ja.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/ja.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -731,6 +731,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "データベース"; Modified: trunk/php/localization/ko.p3 =================================================================== --- trunk/php/localization/ko.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/ko.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -734,6 +734,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "Database"; Modified: trunk/php/localization/nl.p3 =================================================================== --- trunk/php/localization/nl.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/nl.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -740,6 +740,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "Database"; Modified: trunk/php/localization/pl.p3 =================================================================== --- trunk/php/localization/pl.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/pl.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -734,6 +734,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "Baza danych"; Modified: trunk/php/localization/pt-br.p3 =================================================================== --- trunk/php/localization/pt-br.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/pt-br.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -732,6 +732,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "Database"; Modified: trunk/php/localization/pt.p3 =================================================================== --- trunk/php/localization/pt.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/pt.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -733,6 +733,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "Base de Dados"; Modified: trunk/php/localization/ru.p3 =================================================================== --- trunk/php/localization/ru.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/ru.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -728,6 +728,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "База Данных"; Modified: trunk/php/localization/sv.p3 =================================================================== --- trunk/php/localization/sv.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/sv.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -725,6 +725,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "Databas"; Modified: trunk/php/localization/tw.p3 =================================================================== --- trunk/php/localization/tw.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/tw.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -731,6 +731,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = '模塊'; $lang['AdminModulesI'] = '所有 TUTOS 模塊名單'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "資料庫"; Modified: trunk/php/localization/vi.p3 =================================================================== --- trunk/php/localization/vi.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/vi.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -733,6 +733,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = 'Modules'; $lang['AdminModulesI'] = 'a list of all TUTOS Modules'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "Database"; Modified: trunk/php/localization/zh.p3 =================================================================== --- trunk/php/localization/zh.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/localization/zh.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -731,6 +731,11 @@ $lang['AdminCustomTableI'] = 'Info about Custom Fields'; $lang['AdminModules'] = '模块'; $lang['AdminModulesI'] = '所有 TUTOS 模块名单'; +$lang['ConfigUserSpecific'] = 'User specific configuration'; +$lang['ConfigObjSpecific'] = 'Object specific configuration'; +$lang['ConfigUseDefault'] = 'use default'; +$lang['ConfigUserValue'] = 'user value'; +$lang['ConfigName'] = 'setting'; # Database $lang['DB'] = "资料库"; Modified: trunk/php/module_base.pinc =================================================================== --- trunk/php/module_base.pinc 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/module_base.pinc 2013-02-02 12:54:58 UTC (rev 930) @@ -86,7 +86,7 @@ // Load Config Values if (is_object($dbconn)) { read_config_values_by_tag($dbconn,$key); - read_config_values_by_tag($dbconn,$key,$current_user->id); + read_config_values_by_obj($dbconn,$key,$current_user); } $tutos[loadedmodules][$key] = $key; $tutos['classes'][$tutos[modules][$key]['perm']] = $tutos[modules][$key][name]; Modified: trunk/php/permission.p3 =================================================================== --- trunk/php/permission.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/permission.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -606,7 +606,7 @@ read_config_values_by_tag($current_user->dbconn,array('product','task','main','timetrack','appointment')); // read user_specifi config values - read_config_values_by_tag($current_user->dbconn,array('product','task','main','timetrack','appointment'),$current_user->id); + read_config_values_by_obj($current_user->dbconn,array('product','task','main','timetrack','appointment'),$current_user); // update the TTL if (isset($_SERVER['REQUEST_URI'])) { Modified: trunk/php/user_new.php =================================================================== --- trunk/php/user_new.php 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/user_new.php 2013-02-02 12:54:58 UTC (rev 930) @@ -34,7 +34,8 @@ $line = 0; $r = ''; - $r .= '<tr><th colspan="'.$this->width.'">user specific</th></tr>'."\n"; + $r .= '<tr><th colspan="'.$this->width.'">'.$lang['ConfigUserSpecific'].'</th></tr>'."\n"; + $r .= '<tr><th>'.$lang['ConfigName'].'</th><th>'.$lang['ConfigUserValue'].'</th><th>'.$lang['ConfigUseDefault'].'</th><th colspan="7"> </th></tr>'."\n"; $r .= config_field_input($this,'maxshow',$this->user,$line); $r .= config_field_input($this,'maxshort',$this->user,$line); $r .= config_field_input($this,'CSV_delimiter',$this->user,$line); Modified: trunk/php/webelements.p3 =================================================================== --- trunk/php/webelements.p3 2013-02-01 21:52:36 UTC (rev 929) +++ trunk/php/webelements.p3 2013-02-02 12:54:58 UTC (rev 930) @@ -2602,12 +2602,17 @@ $r .= '<td class="over_l">'."\n"; switch ($tutos['cfg'][$fld][type]) { case 'int': - $r .= '<input name="'.$fld.'" value="'.$tutos[$fld].'"'; + $r .= '<input id="userval_'.$fld.'" name="'.$fld.'" value="'.$tutos[$fld].'"'; if (isset($tutos['cfg'][$fld][size])) { $r .= ' size="'.$tutos['cfg'][$fld][size].'"'; $r .= ' maxlength="'.$tutos['cfg'][$fld][size].'"'; } $r .= ' />'; + if (is_object($obj) && isset($obj->def_val_tutos[$fld])) { + $default = $obj->def_val_tutos[$fld]; + } else { + $default = $tutos[$fld]; + } break; case 'sel': if ($obj == null) { @@ -2616,7 +2621,7 @@ $x = $obj->tutos[$fld]; } if (isset($tutos['cfg'][$fld]['multi']) && $tutos['cfg'][$fld]['multi'] == 1) { - $r .= '<select multiple="multiple" name="'.$fld.'[]">'."\n"; + $r .= '<select id="userval_'.$fld.'" multiple="multiple" name="'.$fld.'[]">'."\n"; $xx = preg_split('#,#',$x); } else { $r .= '<select name="'.$fld.'">'."\n"; @@ -2646,7 +2651,7 @@ else $x = preg_split('#,#',$obj->tutos[$fld]); - $r .= '<select multiple="multiple" name="'.$fld.'[]">'."\n"; + $r .= '<select id="userval_'.$fld.'" multiple="multiple" name="'.$fld.'[]">'."\n"; foreach ($stc->states as $f) { $r .= ' <option value="'. $f->stc_state .'" style="background:'.$f->color.'"'; if (in_array($f->stc_state,$x)) { @@ -2657,25 +2662,37 @@ $r .= '</select>'; break; case 'bool': - if ($obj == null) - $r .= '<input type="checkbox" name="'.$fld.'" value="1"'.($tutos[$fld] == 1 ? ' checked="checked"':''); - else - $r .= '<input type="checkbox" name="'.$fld.'" value="1"'.($obj->tutos[$fld] == 1 ? ' checked="checked"':''); + if ($obj == null) { + $r .= '<input id="userval_'.$fld.'" type="checkbox" name="'.$fld.'" value="1"'.($tutos[$fld] == 1 ? ' checked="checked"':''); + $default = ($tutos[$fld] == 1 ? $lang['yes']:$lang['no']); + } else { + $r .= '<input id="userval_'.$fld.'" type="checkbox" name="'.$fld.'" value="1"'.($obj->tutos[$fld] == 1 ? ' checked="checked"':''); + $default = ($obj->def_val_tutos[$fld] == 1 ? $lang['yes']:$lang['no']);; + } $r .= ' />'; - $default = ($tutos[$fld] == 1 ? $lang['yes']:$lang['no']); break; } $r .= '</td>'."\n"; $cnt++; - if ($obj != null) { + if (is_object($obj)) { + // per user/object if (! isset($obj->def_tutos[$fld])) { $obj->def_tutos[$fld] = true; } $r .= '<td class="over_l">'."\n"; - $r .= '<input type="checkbox" name="def_'.$fld.'" value="1"'.($obj->def_tutos[$fld] == true ? ' checked="checked"':'').' />'; + $r .= '<input type="checkbox" id="def_'.$fld.'" name="def_'.$fld.'" value="1"'.($obj->def_tutos[$fld] == true ? ' checked="checked"':'').' />'; $r .= $default; $r .= '</td>'."\n"; + // disbale input when using default + $tutos['pagescript'] .= "$('#def_".$fld."').click(function() { +if (this.checked) { +$('#userval_".$fld."').attr('readonly','readonly').attr('disabled','disabled'); +} else { +$('#userval_".$fld."').removeAttr('readonly').removeAttr('disabled'); +} +}).triggerHandler('click'); +"; $cnt++; } @@ -2784,10 +2801,10 @@ function read_config_values_by_tag($dbconn,$tag,$id = -1) { global $tutos,$table; - $q = 'SELECT cname,cvalue from '. $dbconn->prefix. $table['tutos_config'][name] .' WHERE ctag '; + $q = 'SELECT cname,cvalue from '. $dbconn->prefix. $table['tutos_config'][name] .' WHERE '; if (is_array($tag)) { - $q .= ' in ('; + $q .= 'ctag in ('; $pre = ''; foreach($tag as $t) { $q .= $pre."'". $t ."'"; @@ -2795,7 +2812,7 @@ } $q .= ')'; } else { - $q .= '= \''. $tag .'\''; + $q .= 'ctag = '. $dbconn->String($tag); } if (is_numeric($id) && $id != -1) { @@ -2825,10 +2842,10 @@ function read_config_values_by_obj(tutos_db $dbconn,$tag,tutos_base $obj) { global $tutos,$table; - $q = 'SELECT cname,cvalue from '. $dbconn->prefix. $table['tutos_config'][name] .' WHERE ctag '; + $q = 'SELECT cname,cvalue from '. $dbconn->prefix. $table['tutos_config'][name] .' WHERE '; if (is_array($tag)) { - $q .= ' in ('; + $q .= 'ctag in ('; $pre = ''; foreach($tag as $t) { $q .= $pre."'". $t ."'"; @@ -2836,14 +2853,15 @@ } $q .= ')'; } else { - $q .= '= \''. $tag .'\''; + $q .= 'ctag = '.$dbconn->String($tag); } $q .= ' AND obj_id = '.$obj->id; if (!isset($obj->tutos)) { $obj->tutos = array(); - $obj->def_tutos = array(); // bool array to mark defaulting values + $obj->def_tutos = array(); // bool array to mark defaulting values + $obj->def_val_tutos = array(); // array to store the defaults } $r = $dbconn->Exec($q); @@ -2852,6 +2870,7 @@ while ( $x < $n ) { $cname = $r->get($x, 'cname'); $cvalue = $r->get($x, 'cvalue'); + $obj->def_val_tutos[$cname] = $cvalue; // save the old default value $obj->tutos[$cname] = $cvalue; $obj->def_tutos[$cname] = false; // this is not default $x++; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-01 21:52:39
|
Revision: 929 http://sourceforge.net/p/tutos/code/929 Author: gokohnert Date: 2013-02-01 21:52:36 +0000 (Fri, 01 Feb 2013) Log Message: ----------- fix Modified Paths: -------------- trunk/php/note/note_overview.php Modified: trunk/php/note/note_overview.php =================================================================== --- trunk/php/note/note_overview.php 2013-02-01 21:50:30 UTC (rev 928) +++ trunk/php/note/note_overview.php 2013-02-01 21:52:36 UTC (rev 929) @@ -288,6 +288,7 @@ $q .= $this->dbconn->Like('a.m_name',$nsrn) .' OR '; $q .= $this->dbconn->Like('a.l_name',$nsrn) .')'; } + $q .= ')'; $pre = ' OR '; } if ( ($reftype == 4) || ($reftype == -1) ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-01 21:50:33
|
Revision: 928 http://sourceforge.net/p/tutos/code/928 Author: gokohnert Date: 2013-02-01 21:50:30 +0000 (Fri, 01 Feb 2013) Log Message: ----------- fix Modified Paths: -------------- trunk/php/resource/mtable.pinc Modified: trunk/php/resource/mtable.pinc =================================================================== --- trunk/php/resource/mtable.pinc 2013-02-01 12:54:29 UTC (rev 927) +++ trunk/php/resource/mtable.pinc 2013-02-01 21:50:30 UTC (rev 928) @@ -23,7 +23,7 @@ $table['resource1'][name] = 'res_use'; $table['resource1'][Desc] = 'TUTOS res_use'; -$table['resource1']['res_id'] = array(type => 'ID_TYPE', constraints => 'NN', Desc => 'Resource ID'),; +$table['resource1']['res_id'] = array(type => 'ID_TYPE', constraints => 'NN', Desc => 'Resource ID'); $table['resource1']['obj_id'] = array(type => 'ID_TYPE', constraints => 'NN', Desc => 'Object ID that uses res'); $tableidx['resource11'] = array( @@ -38,4 +38,4 @@ column => array('res_id'), Desc => 'resource index', ); -?> \ No newline at end of file +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-01 12:54:32
|
Revision: 927 http://sourceforge.net/p/tutos/code/927 Author: gokohnert Date: 2013-02-01 12:54:29 +0000 (Fri, 01 Feb 2013) Log Message: ----------- added revsion info to files and debug/error output Modified Paths: -------------- trunk/php/admin/mconfig.pinc trunk/php/bugtracking/bug_overview.php trunk/php/bugtracking/mconfig.pinc trunk/php/checklist/mconfig.pinc trunk/php/counter/mconfig.pinc trunk/php/doctracker/mconfig.pinc trunk/php/drawboard/mconfig.pinc trunk/php/group/mconfig.pinc trunk/php/installation/mconfig.pinc trunk/php/invoice/mconfig.pinc trunk/php/ldap/mconfig.pinc trunk/php/mailbox/mconfig.pinc trunk/php/module_template/mconfig.pinc trunk/php/note/mconfig.pinc trunk/php/palm/mconfig.pinc trunk/php/rate/mconfig.pinc trunk/php/reminder/mconfig.pinc trunk/php/report-engine/mconfig.pinc trunk/php/resource/mconfig.pinc trunk/php/rss/mconfig.pinc trunk/php/scrum/mconfig.pinc trunk/php/stc/mconfig.pinc trunk/php/stuff/mconfig.pinc trunk/php/subversion/mconfig.pinc trunk/php/testmanager/mconfig.pinc trunk/php/ticker/mconfig.pinc trunk/php/timetrack/mconfig.pinc trunk/php/url/mconfig.pinc trunk/php/watchlist/mconfig.pinc trunk/php/xml/mconfig.pinc Modified: trunk/php/admin/mconfig.pinc =================================================================== --- trunk/php/admin/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/admin/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php /** - * Copyright 2003 - 2009 by Gero Kohnert + * Copyright 2003 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # This is just a pseudo module for first time installation # @@ -25,4 +25,4 @@ # #$tutos[modulesinc]['admin'] = array(); -?> \ No newline at end of file +?> Modified: trunk/php/bugtracking/bug_overview.php =================================================================== --- trunk/php/bugtracking/bug_overview.php 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/bugtracking/bug_overview.php 2013-02-01 12:54:29 UTC (rev 927) @@ -1367,5 +1367,4 @@ $l = new Bug_overview($current_user); $l->display(); $dbconn->Close(); -FATAL_ERROR('A'); ?> \ No newline at end of file Modified: trunk/php/bugtracking/mconfig.pinc =================================================================== --- trunk/php/bugtracking/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/bugtracking/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php /** - * Copyright 2003 - 2012 by Gero Kohnert + * Copyright 2003 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module 3 @@ -83,4 +83,4 @@ $tutos['bugmod_prod_mail'] = ''; $tutos['bug_no_mail'] = 0; $tutos['bug_state_age'] = 0; -?> \ No newline at end of file +?> Modified: trunk/php/checklist/mconfig.pinc =================================================================== --- trunk/php/checklist/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/checklist/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,7 +1,7 @@ <?php /* * Checklist: Copyright 2002 by Markus Leist under GNU GPL - * TUTOS: Copyright 1999 - 2008 by Gero Kohnert + * TUTOS: Copyright 1999 - 2138 by Gero Kohnert * * Module specific configuration * @@ -9,7 +9,7 @@ * $Author$ * */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module -25 @@ -59,4 +59,4 @@ $permskip[usechecklists][PERM_MYTUTOS] = 1; $permskip[usecheckfields][PERM_MYTUTOS] = 1; -?> \ No newline at end of file +?> Modified: trunk/php/counter/mconfig.pinc =================================================================== --- trunk/php/counter/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/counter/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php /* - * Copyright 2009 by Gero Kohnert + * Copyright 2009 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module 96 @@ -38,4 +38,4 @@ $permskip[usecounter][PERM_SEL] = 1; $permskip[usecounter][PERM_USE] = 1; -?> \ No newline at end of file +?> Modified: trunk/php/doctracker/mconfig.pinc =================================================================== --- trunk/php/doctracker/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/doctracker/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php /** - * Copyright 2003 - 2009 by Gero Kohnert + * Copyright 2003 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module 36 @@ -38,4 +38,4 @@ # $tutos['doctrack_numberformat'] = '&ORG-&PNUM-&TYPE-&PCNT-&REV'; $tutos['doctrack_projectid'] = 'desc1'; -?> \ No newline at end of file +?> Modified: trunk/php/drawboard/mconfig.pinc =================================================================== --- trunk/php/drawboard/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/drawboard/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php /* - * Copyright 2004 - 2010 by Gero Kohnert + * Copyright 2004 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module 89 @@ -39,4 +39,4 @@ # reverse include #$tutos[modulesinc]['bugtracking'][] = "installation"; $permskip[usedrawboard][PERM_MYTUTOS] = 1; -?> \ No newline at end of file +?> Modified: trunk/php/group/mconfig.pinc =================================================================== --- trunk/php/group/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/group/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,6 +1,6 @@ <?php /* - * Copyright 2002 - 2012 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -11,7 +11,7 @@ * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; // // Every module must have an individual ID ( < 100 ). // this is module 99 @@ -41,4 +41,4 @@ $tutos[modulesinc]['group'][] = 'menu'; // always in menu $permskip[usegroups][PERM_MYTUTOS] = 1; -?> \ No newline at end of file +?> Modified: trunk/php/installation/mconfig.pinc =================================================================== --- trunk/php/installation/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/installation/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php /* - * Copyright 2002 - 2011 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module 6 @@ -49,4 +49,4 @@ # $permskip[useinstmanagement][PERM_MYTUTOS] = 1; -?> \ No newline at end of file +?> Modified: trunk/php/invoice/mconfig.pinc =================================================================== --- trunk/php/invoice/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/invoice/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php /** - * Copyright 2002 - 2009 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module 22 @@ -52,4 +52,4 @@ $tutos['inv_autoname'] = '%Y-%m-&X'; $tutos['invoice_state_stc'] = -1; $tutos['invoice_billable_tt'] = '1'; -?> \ No newline at end of file +?> Modified: trunk/php/ldap/mconfig.pinc =================================================================== --- trunk/php/ldap/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/ldap/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,6 +1,6 @@ <?php /* - * Copyright 2002 - 2012 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -14,7 +14,7 @@ * * This module ldap integration in PHP */ - +$tutos['files'][__FILE__] = '$Rev$'; // // Every module must have an individual ID ( < 0 > -100 ). // this is module -17 @@ -64,4 +64,4 @@ $permskip[useldap][PERM_DEL] = 1; $permskip[useldap][PERM_MYTUTOS] = 1; -?> \ No newline at end of file +?> Modified: trunk/php/mailbox/mconfig.pinc =================================================================== --- trunk/php/mailbox/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/mailbox/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -13,7 +13,7 @@ * * This module ldap integration in PHP */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module -15 @@ -67,4 +67,4 @@ $confmsg .= '$tutos['. usemailboxes. '] = 0;<br />\n'; $tutos[usemailboxes] = 0; } -?> \ No newline at end of file +?> Modified: trunk/php/module_template/mconfig.pinc =================================================================== --- trunk/php/module_template/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/module_template/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php /** - * Copyright 2009 - 2010 by Gero Kohnert + * Copyright 2009 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module 85 @@ -37,4 +37,4 @@ $tutos[modulesinc]['note'][] = 'AAA'; $tutos[modulesinc]['file'][] = 'AAA'; $tutos[modulesinc]['watchlist'][] = 'AAA'; -?> \ No newline at end of file +?> Modified: trunk/php/note/mconfig.pinc =================================================================== --- trunk/php/note/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/note/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php /* - * Copyright 2002-2010 by Gero Kohnert + * Copyright 2002-2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module 8 @@ -30,4 +30,4 @@ # and need to include this module # $tutos[modulesinc]['note'][] = "all"; -?> \ No newline at end of file +?> Modified: trunk/php/palm/mconfig.pinc =================================================================== --- trunk/php/palm/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/palm/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,5 +1,5 @@ <?php -/* +/** * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -15,7 +15,7 @@ * php-pdb could be downloaded here: * http://php-pdb.sourceforge.net/download.php */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module -26 @@ -60,4 +60,4 @@ ); $permskip[usepalm][PERM_MYTUTOS] = 1; -?> \ No newline at end of file +?> Modified: trunk/php/rate/mconfig.pinc =================================================================== --- trunk/php/rate/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/rate/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php /* - * Copyright 2002 - 2011 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module 94 @@ -43,4 +43,4 @@ $tutos[modulesinc]['timetrack'][] = 'rate'; -?> \ No newline at end of file +?> Modified: trunk/php/reminder/mconfig.pinc =================================================================== --- trunk/php/reminder/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/reminder/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php -/* - * Copyright 2004 - 2010 by Gero Kohnert +/** + * Copyright 2004 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 100 ). # this is module 92 @@ -36,4 +36,4 @@ # skip # $permskip[usereminder][PERM_MYTUTOS] = 1; -?> \ No newline at end of file +?> Modified: trunk/php/report-engine/mconfig.pinc =================================================================== --- trunk/php/report-engine/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/report-engine/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -9,7 +9,7 @@ * * report engine module */ - +$tutos['files'][__FILE__] = '$Rev$'; // // Every module must have an individual ID ( < 0 > -100 ). // this is module -88 @@ -52,4 +52,4 @@ $permskip[usereporter][PERM_DEL] = 1; $permskip[usereporter][PERM_MYTUTOS] = 1; -?> \ No newline at end of file +?> Modified: trunk/php/resource/mconfig.pinc =================================================================== --- trunk/php/resource/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/resource/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php /** - * Copyright 2002 - 2009 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module 18 @@ -40,4 +40,4 @@ # skip # $permskip[useresource][PERM_MYTUTOS] = 1; -?> \ No newline at end of file +?> Modified: trunk/php/rss/mconfig.pinc =================================================================== --- trunk/php/rss/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/rss/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -8,7 +8,6 @@ * $Author$ */ $tutos['files'][__FILE__] = '$Rev$'; - # # Every module must have an individual ID ( < 0 > -100 ). # rssfeeds management is module 86 @@ -35,4 +34,4 @@ # skip # $permskip[userss][PERM_MYTUTOS] = 1; -?> \ No newline at end of file +?> Modified: trunk/php/scrum/mconfig.pinc =================================================================== --- trunk/php/scrum/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/scrum/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -7,7 +7,7 @@ * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module 43 / 44 @@ -78,4 +78,4 @@ $tutos['appref'][] = USESCRUMSPRINT; -?> \ No newline at end of file +?> Modified: trunk/php/stc/mconfig.pinc =================================================================== --- trunk/php/stc/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/stc/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -7,7 +7,7 @@ * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # statetransition management is module 98 @@ -45,4 +45,4 @@ # skip # $permskip[usestc][PERM_MYTUTOS] = 1; -?> \ No newline at end of file +?> Modified: trunk/php/stuff/mconfig.pinc =================================================================== --- trunk/php/stuff/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/stuff/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php /** - * Copyright 2004 - 2010 by Gero Kohnert + * Copyright 2004 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 100 ). # this is module 93 @@ -45,4 +45,4 @@ # skip # $permskip[USESTUFF][PERM_MYTUTOS] = 1; -?> \ No newline at end of file +?> Modified: trunk/php/subversion/mconfig.pinc =================================================================== --- trunk/php/subversion/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/subversion/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php -/* - * Copyright 2009 - 2012 by Gero Kohnert +/** + * Copyright 2009 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; // // Every module must have an individual ID ( < 0 > -100 ). // this is module 42 @@ -43,4 +43,4 @@ // a handler for resolving revision numbers $tutos[handler]['revision']['svn_revision'] = 'subversion/revision.pinc'; -?> \ No newline at end of file +?> Modified: trunk/php/testmanager/mconfig.pinc =================================================================== --- trunk/php/testmanager/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/testmanager/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -8,7 +8,6 @@ * $Author$ */ $tutos['files'][__FILE__] = '$Rev$'; - # # Every module must have an individual ID ( < 0 > -100 ). # these are modules 39 to 41 @@ -86,4 +85,4 @@ # $tutos['testcase_massadd'] = 4; -?> \ No newline at end of file +?> Modified: trunk/php/ticker/mconfig.pinc =================================================================== --- trunk/php/ticker/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/ticker/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2002 - 2009 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -11,7 +11,7 @@ * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module 97 Modified: trunk/php/timetrack/mconfig.pinc =================================================================== --- trunk/php/timetrack/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/timetrack/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php /** - * Copyright 2009 - 2011 by Gero Kohnert + * Copyright 2009 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module 4 @@ -42,4 +42,4 @@ $tutos['timetrack_default_state'] = 0; $tutos['timetrack_cleared_state'] = 2; $tutos['timetrack_payed_state'] = 3; -?> \ No newline at end of file +?> Modified: trunk/php/url/mconfig.pinc =================================================================== --- trunk/php/url/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/url/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php -/* - * Copyright 2002 - 2010 by Gero Kohnert +/** + * Copyright 2002 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module 20 and 37 @@ -55,4 +55,4 @@ # #$permskip[useurl][PERM_MYTUTOS] = 1; $permskip[useurlcat][PERM_MYTUTOS] = 1; -?> \ No newline at end of file +?> Modified: trunk/php/watchlist/mconfig.pinc =================================================================== --- trunk/php/watchlist/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/watchlist/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php -/* - * Copyright 2002 - 2009 by Gero Kohnert +/** + * Copyright 2002 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 100 ). # this is module 13 @@ -39,4 +39,4 @@ $permskip[usewatchlist][PERM_MOD] = 1; $permskip[usewatchlist][PERM_DEL] = 1; $permskip[usewatchlist][PERM_MYTUTOS] = 1; -?> \ No newline at end of file +?> Modified: trunk/php/xml/mconfig.pinc =================================================================== --- trunk/php/xml/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) +++ trunk/php/xml/mconfig.pinc 2013-02-01 12:54:29 UTC (rev 927) @@ -1,13 +1,13 @@ <?php -/* - * Copyright 2003 - 2009 by Gero Kohnert +/** + * Copyright 2003 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). # this is module 95 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-01 11:42:57
|
Revision: 926 http://sourceforge.net/p/tutos/code/926 Author: gokohnert Date: 2013-02-01 11:42:50 +0000 (Fri, 01 Feb 2013) Log Message: ----------- added revsion info to files and debug/error output Modified Paths: -------------- trunk/php/acl_ins.php trunk/php/admin/update.php trunk/php/admin_show.php trunk/php/ajax.php trunk/php/app_new.php trunk/php/appointment.pinc trunk/php/auth/auth.pinc trunk/php/base.pinc trunk/php/bugtracking/bug.pinc trunk/php/bugtracking/bug_config.php trunk/php/bugtracking/bug_new.php trunk/php/bugtracking/bug_overview.php trunk/php/bugtracking/bug_select.php trunk/php/bugtracking/bug_show.php trunk/php/check.php trunk/php/company.pinc trunk/php/custom.pinc trunk/php/db/db_mysql.pinc trunk/php/db.p3 trunk/php/expense/expense_overview.php trunk/php/expense/expense_show.php trunk/php/expense/mconfig.pinc trunk/php/file/file_config.php trunk/php/file/file_ins.php trunk/php/file/file_overview.php trunk/php/file/file_show.php trunk/php/file/mconfig.pinc trunk/php/graphs.pinc trunk/php/group/group.pinc trunk/php/group/group_overview.php trunk/php/group/group_show.php trunk/php/group/mtable.pinc trunk/php/invoice/mtable.pinc trunk/php/layout/layout_base.pinc trunk/php/layout/mobile_layout.pinc trunk/php/layout/new2_layout.pinc trunk/php/layout/theme_base.pinc trunk/php/login.pinc trunk/php/mail.pinc trunk/php/mailbox/mail_show.php trunk/php/module_base.pinc trunk/php/mytutos.php trunk/php/note/note.pinc trunk/php/note/note_new.php trunk/php/note/note_overview.php trunk/php/note/note_show.php trunk/php/permission.p3 trunk/php/phpweather/pw.pinc trunk/php/product.pinc trunk/php/product_new.php trunk/php/product_overview.php trunk/php/reminder/reminder_overview.php trunk/php/reminder/reminder_select.php trunk/php/resource/mtable.pinc trunk/php/resource/resource.pinc trunk/php/rss/mconfig.pinc trunk/php/rss/news.php trunk/php/rss/rss_show.php trunk/php/scrum/log_new.php trunk/php/scrum/log_overview.php trunk/php/scrum/log_select.php trunk/php/scrum/log_show.php trunk/php/stuff/stuff_select.php trunk/php/task_show.php trunk/php/testmanager/mconfig.pinc trunk/php/testmanager/testcase_select.php trunk/php/testmanager/testcase_show.php trunk/php/testmanager/testrun_select.php trunk/php/testmanager/testsuite_select.php trunk/php/timetrack/timetrack_overview.php trunk/php/url/url.pinc trunk/php/url/url_overview.php trunk/php/user.pinc trunk/php/user_new.php trunk/php/user_overview.php trunk/php/watchlist/watchlist_new.php trunk/php/webelements.p3 trunk/php/xml/xml_parse.pinc Modified: trunk/php/acl_ins.php =================================================================== --- trunk/php/acl_ins.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/acl_ins.php 2013-02-01 11:42:50 UTC (rev 926) @@ -7,7 +7,7 @@ * Free Software Foundation; version 2 of the License. * * @category PHP - * @package acl + * @package Acl * @author Gero Kohnert <tu...@tu...> * @copyright 1999-2013 Gero Kohnert * @license GPL2 @@ -16,6 +16,7 @@ * @modulegroup BASE * @module acl_ins */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'webelements.p3'; require_once 'permission.p3'; Modified: trunk/php/admin/update.php =================================================================== --- trunk/php/admin/update.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/admin/update.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2002 - 2012 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -14,6 +14,7 @@ * @module update * @package BASE */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/admin_show.php =================================================================== --- trunk/php/admin_show.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/admin_show.php 2013-02-01 11:42:50 UTC (rev 926) @@ -16,6 +16,7 @@ * @modulegroup ADMIN * @module admin_show */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'webelements.p3'; require_once 'permission.p3'; require_once 'db/table.pinc'; Modified: trunk/php/ajax.php =================================================================== --- trunk/php/ajax.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/ajax.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2005 - 2011 by Gero Kohnert + * Copyright 2005 - 2013 by Gero Kohnert * * SVN Info $Id$ * $Author$ @@ -13,6 +13,7 @@ * * handle ajax based requests */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'webelements.p3'; require_once 'permission.p3'; Modified: trunk/php/app_new.php =================================================================== --- trunk/php/app_new.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/app_new.php 2013-02-01 11:42:50 UTC (rev 926) @@ -12,6 +12,7 @@ * @module app_new * @package appointment */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'webelements.p3'; require_once 'permission.p3'; require_once 'appointment.pinc'; Modified: trunk/php/appointment.pinc =================================================================== --- trunk/php/appointment.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/appointment.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; require_once "ical_parse.php"; @@ -470,7 +471,7 @@ && ( $x1->hour == 0 ) ) { $this->t_ignore = 1; - # echo $this->id.' set to 1 '.$x1->min.' '.$x1->hour.'<br>'; +# echo $this->id.' set to 1 '.$x1->min.' '.$x1->hour.'<br>'; } else { $this->t_ignore = 0; } @@ -1282,8 +1283,8 @@ if ( $this->r_ignore == 0 ) { $ical .= ";UNTIL=". $this->end->getYYYYMMDD(); } - # FIX ME !! - $ical .= "\n"; +# FIX ME !! + $ical .= "\n"; } $ical .= "ATTACH;FMTTYPE=text/html:". $url ."\n"; if ( $this->remember > 0 ) { Modified: trunk/php/auth/auth.pinc =================================================================== --- trunk/php/auth/auth.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/auth/auth.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,14 +1,22 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; version 2 of the License. * + * @category PHP + * @package BASE + * @author Gero Kohnert <tu...@tu...> + * @copyright 1999-2013 Gero Kohnert + * @license GPL2 + * @link http://www.tutos.org + * * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; /** * Authentification base class @@ -45,10 +53,10 @@ /** * initialize the standard variables * - * @param Object a database connection + * @param Object $dbconn database connection */ - function init(&$dbconn) { - $this->dbconn = &$dbconn; + function init(tutos_db $dbconn) { + $this->dbconn = $dbconn; } /** @@ -60,8 +68,10 @@ /** * logout * return the next page for the redirect + * + * @param String $msg logout message visible to user */ - Function logout ($msg = "") { + Function logout ($msg = '') { global $current_user; logmessage("logout: ". $_SESSION['userid'] ." ".$_SESSION['username']); @@ -101,5 +111,5 @@ exit; } - } +} ?> \ No newline at end of file Modified: trunk/php/base.pinc =================================================================== --- trunk/php/base.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/base.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -11,6 +11,7 @@ * * Base Class for most TUTOS objects */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'acl.pinc'; require_once 'history.pinc'; Modified: trunk/php/bugtracking/bug.pinc =================================================================== --- trunk/php/bugtracking/bug.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/bugtracking/bug.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; define ('BUG_STATE_OPEN',1); define ('BUG_STATE_WORK',2); Modified: trunk/php/bugtracking/bug_config.php =================================================================== --- trunk/php/bugtracking/bug_config.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/bugtracking/bug_config.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2009 - 2012 by Gero Kohnert + * Copyright 2009 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); Modified: trunk/php/bugtracking/bug_new.php =================================================================== --- trunk/php/bugtracking/bug_new.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/bugtracking/bug_new.php 2013-02-01 11:42:50 UTC (rev 926) @@ -10,6 +10,7 @@ * @module bug_new * @package bug */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/bugtracking/bug_overview.php =================================================================== --- trunk/php/bugtracking/bug_overview.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/bugtracking/bug_overview.php 2013-02-01 11:42:50 UTC (rev 926) @@ -15,6 +15,7 @@ * @module bug_overview * @package bug */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -1366,4 +1367,5 @@ $l = new Bug_overview($current_user); $l->display(); $dbconn->Close(); +FATAL_ERROR('A'); ?> \ No newline at end of file Modified: trunk/php/bugtracking/bug_select.php =================================================================== --- trunk/php/bugtracking/bug_select.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/bugtracking/bug_select.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,7 @@ * @module bug_select * @package bug */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/bugtracking/bug_show.php =================================================================== --- trunk/php/bugtracking/bug_show.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/bugtracking/bug_show.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,7 @@ * @module bug_show * @package bug */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/check.php =================================================================== --- trunk/php/check.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/check.php 2013-02-01 11:42:50 UTC (rev 926) @@ -20,6 +20,7 @@ * @module check * @package BASE */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'webelements.p3'; require_once 'permission.p3'; Modified: trunk/php/company.pinc =================================================================== --- trunk/php/company.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/company.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'product.pinc'; require_once 'appointment.pinc'; Modified: trunk/php/custom.pinc =================================================================== --- trunk/php/custom.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/custom.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -15,6 +15,7 @@ * @module custom * @package BASE */ +$tutos['files'][__FILE__] = '$Rev$'; /** * a class for handling fields in an object @@ -225,7 +226,7 @@ function set() { return 'undef 3 '.$this->get_fldname(); } - } +} /** * a class for handling object fields Modified: trunk/php/db/db_mysql.pinc =================================================================== --- trunk/php/db/db_mysql.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/db/db_mysql.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2012 by Gero Kohnert + * Copyright 2001 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'db.pinc'; # Modified: trunk/php/db.p3 =================================================================== --- trunk/php/db.p3 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/db.p3 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2011 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; // // Tutos Array Modified: trunk/php/expense/expense_overview.php =================================================================== --- trunk/php/expense/expense_overview.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/expense/expense_overview.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert and ECOsoft.net + * Copyright 1999 - 2013 by Gero Kohnert and ECOsoft.net * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -13,6 +13,7 @@ * @module expense_overview * @package expense */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/expense/expense_show.php =================================================================== --- trunk/php/expense/expense_show.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/expense/expense_show.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert and ECOsoft.net + * Copyright 1999 - 2013 by Gero Kohnert and ECOsoft.net * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,7 @@ * @module expense_show * @package expense */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/expense/mconfig.pinc =================================================================== --- trunk/php/expense/mconfig.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/expense/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,12 +1,13 @@ <?php /* - * Copyright 1999 - 2010 by Gero Kohnert and ECOsoft.net + * Copyright 1999 - 2013 by Gero Kohnert and ECOsoft.net * * Module specific configuration * * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). Modified: trunk/php/file/file_config.php =================================================================== --- trunk/php/file/file_config.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/file/file_config.php 2013-02-01 11:42:50 UTC (rev 926) @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); Modified: trunk/php/file/file_ins.php =================================================================== --- trunk/php/file/file_ins.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/file/file_ins.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -13,6 +13,7 @@ * @module file_ins * @package file */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/file/file_overview.php =================================================================== --- trunk/php/file/file_overview.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/file/file_overview.php 2013-02-01 11:42:50 UTC (rev 926) @@ -11,6 +11,7 @@ * @module file_overview * @package file */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/file/file_show.php =================================================================== --- trunk/php/file/file_show.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/file/file_show.php 2013-02-01 11:42:50 UTC (rev 926) @@ -13,6 +13,7 @@ * @module file_show * @package file */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/file/mconfig.pinc =================================================================== --- trunk/php/file/mconfig.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/file/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /* - * Copyright 2002 - 2011 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -11,6 +11,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). Modified: trunk/php/graphs.pinc =================================================================== --- trunk/php/graphs.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/graphs.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2011 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; /** * draw pie chart Modified: trunk/php/group/group.pinc =================================================================== --- trunk/php/group/group.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/group/group.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; /** --------------------------------------------------------------------------- * something a company department address can be member of * @package group @@ -672,5 +673,5 @@ $r .= "</ul>\n"; return $r; } - } +} ?> \ No newline at end of file Modified: trunk/php/group/group_overview.php =================================================================== --- trunk/php/group/group_overview.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/group/group_overview.php 2013-02-01 11:42:50 UTC (rev 926) @@ -15,6 +15,7 @@ * @module group_overview * @package group */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/group/group_show.php =================================================================== --- trunk/php/group/group_show.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/group/group_show.php 2013-02-01 11:42:50 UTC (rev 926) @@ -13,6 +13,7 @@ * @module group_show * @package group */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/group/mtable.pinc =================================================================== --- trunk/php/group/mtable.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/group/mtable.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,27 +1,28 @@ <?php /* - * Copyright 2002 - 2010 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * Information about the tables and indices neccessary for this module * * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; $table['group'][name] = 'groups'; $table['group'][Desc] = 'TUTOS groups'; -$table['group']['id'] = array(type => 'ID_TYPE', constraints => 'PK', Desc => 'Object ID'); -$table['group']['name'] = array(type => 'VARCHAR', size => 30, constraints => '', Desc => 'group name'); -$table['group']['description'] = array(type => 'VARCHAR', size => 60, constraints => '', Desc => 'group description'); -$table['group']['creator'] = array(type => 'ID_TYPE', constraints => 'NN', Desc => 'creator ID'); -$table['group']['creation'] = array(type => 'TS_TYPE', constraints => 'NN', Desc => 'creation date'); +$table['group']['id'] = array(type => 'ID_TYPE', constraints => 'PK', Desc => 'Object ID'); +$table['group']['name'] = array(type => 'VARCHAR', size => 30, constraints => '', Desc => 'group name'); +$table['group']['description'] = array(type => 'VARCHAR', size => 60, constraints => '', Desc => 'group description'); +$table['group']['creator'] = array(type => 'ID_TYPE', constraints => 'NN', Desc => 'creator ID'); +$table['group']['creation'] = array(type => 'TS_TYPE', constraints => 'NN', Desc => 'creation date'); $table['group2'][name] = 'group_member'; $table['group2'][Desc] = 'TUTOS group members'; -$table['group2']['group_id'] = array(type => 'ID_TYPE', constraints => 'NN', Desc => 'Group ID'); -$table['group2']['obj_id'] = array(type => 'ID_TYPE', constraints => 'NN', Desc => 'Object ID'); -$table['group2']['creation'] = array(type => 'TS_TYPE', constraints => '', Desc => 'date of adding'); -$table['group2']['m_comment'] = array(type => 'VARCHAR', size => 60, constraints => '', Desc => 'a comment'); +$table['group2']['group_id'] = array(type => 'ID_TYPE', constraints => 'NN', Desc => 'Group ID'); +$table['group2']['obj_id'] = array(type => 'ID_TYPE', constraints => 'NN', Desc => 'Object ID'); +$table['group2']['creation'] = array(type => 'TS_TYPE', constraints => '', Desc => 'date of adding'); +$table['group2']['m_comment'] = array(type => 'VARCHAR', size => 60, constraints => '', Desc => 'a comment'); $tableidx['group21'] = array( name => 'grp_member_idx1', Modified: trunk/php/invoice/mtable.pinc =================================================================== --- trunk/php/invoice/mtable.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/invoice/mtable.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,12 +1,13 @@ <?php /* - * Copyright 2002 - 2012 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * Information about the tables and indices neccessary for this module * * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; $table['invoice'][name] = 'invoice'; $table['invoice'][Desc] = 'TUTOS invoices'; Modified: trunk/php/layout/layout_base.pinc =================================================================== --- trunk/php/layout/layout_base.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/layout/layout_base.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; define('category','category'); define('CATEGORY','category'); @@ -812,7 +813,7 @@ $r = ''; if ( isset($tarr['hide']) && ($tarr['hide'] == true) ) return $r; - # if ( isset($tarr['hideempty']) && ($tarr['hideempty'] == true) && ($obj->$tarr['field'] == '') ) return $r; +# if ( isset($tarr['hideempty']) && ($tarr['hideempty'] == true) && ($obj->$tarr['field'] == '') ) return $r; $r .= edit_custom_field_single($this,$tarr['field'],$tarr,0,$obj,$colsd+$colsf); Modified: trunk/php/layout/mobile_layout.pinc =================================================================== --- trunk/php/layout/mobile_layout.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/layout/mobile_layout.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -9,6 +9,7 @@ * SVN Info $Id: new2_layout.pinc 451 2011-12-01 21:10:43Z gokohnert $ * $Author: gokohnert $ */ +$tutos['files'][__FILE__] = '$Rev:$'; require_once 'layout/layout_base.pinc'; /** Modified: trunk/php/layout/new2_layout.pinc =================================================================== --- trunk/php/layout/new2_layout.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/layout/new2_layout.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'layout/new_base.pinc'; /** Modified: trunk/php/layout/theme_base.pinc =================================================================== --- trunk/php/layout/theme_base.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/layout/theme_base.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2003 - 2011 by Gero Kohnert + * Copyright 2003 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; # Image IDs define ('addresses',2); Modified: trunk/php/login.pinc =================================================================== --- trunk/php/login.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/login.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -13,8 +13,7 @@ * @module admin_login * @package BASE */ - - +$tutos['files'][__FILE__] = '$Rev$'; $tutos['mobileok'] = 1; loadlayout(); Modified: trunk/php/mail.pinc =================================================================== --- trunk/php/mail.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/mail.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -11,6 +11,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; define ('MAILMODE_NOMAIL',0); define ('MAILMODE_SENDMAIL',1); Modified: trunk/php/mailbox/mail_show.php =================================================================== --- trunk/php/mailbox/mail_show.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/mailbox/mail_show.php 2013-02-01 11:42:50 UTC (rev 926) @@ -16,6 +16,7 @@ * @package mailbox * */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/module_base.pinc =================================================================== --- trunk/php/module_base.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/module_base.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2002 - 2011 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; /** * check if module is loaded Modified: trunk/php/mytutos.php =================================================================== --- trunk/php/mytutos.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/mytutos.php 2013-02-01 11:42:50 UTC (rev 926) @@ -9,8 +9,8 @@ * PHP version 5 * * @category PHP - * @package mytutos - * @author Gero Kohnert + * @package Mytutos + * @author Gero Kohnert <tu...@tu...> * @copyright 1999-2009 Gero Kohnert * @license GPL2 * @link http://www.tutos.org @@ -18,6 +18,7 @@ * based on some work/ideas of Michael Somers * ( Twent First Century Communication <msomers at tfcci.com>) */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'webelements.p3'; require_once 'permission.p3'; Modified: trunk/php/note/note.pinc =================================================================== --- trunk/php/note/note.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/note/note.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -9,8 +9,7 @@ * SVN Info $Id$ * $Author$ */ - - +$tutos['files'][__FILE__] = '$Rev$'; /* --------------------------------------------------------------------------- * List all notes * cols > 0 make sperate rows with cols columns for each note @@ -39,7 +38,7 @@ $n++; } return $r; - } +} /** * ask a note's event type */ Modified: trunk/php/note/note_new.php =================================================================== --- trunk/php/note/note_new.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/note/note_new.php 2013-02-01 11:42:50 UTC (rev 926) @@ -10,6 +10,7 @@ * @module note_new * @package note */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/note/note_overview.php =================================================================== --- trunk/php/note/note_overview.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/note/note_overview.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /* - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * submitted by "Nonn" <nonn at resce.com> * * This program is free software; you can redistribute it and/or modify it @@ -11,6 +11,7 @@ * @module note_overview * @package note */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/note/note_show.php =================================================================== --- trunk/php/note/note_show.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/note/note_show.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2000 - 2012 by Gero Kohnert + * Copyright 2000 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,7 @@ * @module note_show * @package note */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/permission.p3 =================================================================== --- trunk/php/permission.p3 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/permission.p3 2013-02-01 11:42:50 UTC (rev 926) @@ -13,6 +13,7 @@ * @module permission * @package BASE */ +$tutos['files'][__FILE__] = '$Rev$'; // clean if (isset($_SERVER["REQUEST_URI"]) && strpos($_SERVER["REQUEST_URI"],'//') === 0) { Header("Content-Description: TUTOS Redirect" ); @@ -765,9 +766,9 @@ $t2 = ' OR (t.adr_id='.$user_id.')'; } $query = 'SELECT DISTINCT i.* FROM ('.$query.') AS i' - .' left join '.$dbconn->prefix .'acl a on (i.'.$id_name.' = a.obj_id) ' - .$t1 - . 'WHERE (a.perm is null OR a.perm>='.$tutos[seeok].')' - .' AND ((a.adr_id is null) OR (a.adr_id='.$user_id.') OR (a.adr_id=0) OR (a.adr_id < 0)'. $t2 .' )'; + .' left join '.$dbconn->prefix .'acl a on (i.'.$id_name.' = a.obj_id) ' + .$t1 + . 'WHERE (a.perm is null OR a.perm>='.$tutos[seeok].')' + .' AND ((a.adr_id is null) OR (a.adr_id='.$user_id.') OR (a.adr_id=0) OR (a.adr_id < 0)'. $t2 .' )'; } ?> \ No newline at end of file Modified: trunk/php/phpweather/pw.pinc =================================================================== --- trunk/php/phpweather/pw.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/phpweather/pw.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -9,7 +9,7 @@ * SVN Info $Id$ * $Author$ */ - +$tutos['files'][__FILE__] = '$Rev$'; require_once 'phpweather/hconfig.pinc'; if ( ! file_exists($tutos['pw_path'].'phpweather.php') ) { Modified: trunk/php/product.pinc =================================================================== --- trunk/php/product.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/product.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; define ('PROD_STATE_AQ',0); define ('PROD_STATE_RUN',1); Modified: trunk/php/product_new.php =================================================================== --- trunk/php/product_new.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/product_new.php 2013-02-01 11:42:50 UTC (rev 926) @@ -13,6 +13,7 @@ * @module product_new * @package product */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'webelements.p3'; require_once 'permission.p3'; require_once 'appointment.pinc'; Modified: trunk/php/product_overview.php =================================================================== --- trunk/php/product_overview.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/product_overview.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -13,6 +13,7 @@ * @module product_overview * @package product */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'webelements.p3'; require_once 'permission.p3'; Modified: trunk/php/reminder/reminder_overview.php =================================================================== --- trunk/php/reminder/reminder_overview.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/reminder/reminder_overview.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2004 - 2012 by Gero Kohnert + * Copyright 2004 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -13,6 +13,7 @@ * @module reminder_overview * @package reminder */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/reminder/reminder_select.php =================================================================== --- trunk/php/reminder/reminder_select.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/reminder/reminder_select.php 2013-02-01 11:42:50 UTC (rev 926) @@ -10,6 +10,7 @@ * @module reminder_select * @package reminder */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/resource/mtable.pinc =================================================================== --- trunk/php/resource/mtable.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/resource/mtable.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,9 +1,9 @@ <?php /* - * Copyright 2002 - 2005 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the * Free Software Foundation; version 2 of the License. * * Information about the tables and indices neccessary for this module @@ -11,22 +11,31 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; +$table['resource'][name] = 'resources'; +$table['resource'][Desc] = 'TUTOS resources'; +$table['resource']['id'] = array(type => 'ID_TYPE', constraints => 'PK', Desc => 'Object ID'); +$table['resource']['name'] = array(type => 'VARCHAR', size => 30, constraints => '', Desc => 'name'); +$table['resource']['description'] = array(type => 'VARCHAR', size => 60, constraints => '', Desc => 'description'); +$table['resource']['creator'] = array(type => 'ID_TYPE', constraints => 'NN', Desc => 'creator ID'); +$table['resource']['creation'] = array(type => 'TS_TYPE', constraints => 'NN', Desc => 'creation date'); -$table['resource'][name] = "resources"; -$table['resource'][Desc] = "TUTOS resources"; -$table['resource']['id'] = array(type => "ID_TYPE", constraints => "PK", Desc => "Object ID"); -$table['resource']['name'] = array(type => "VARCHAR", size => 30, constraints => "", Desc => "name"); -$table['resource']['description'] = array(type => "VARCHAR", size => 60, constraints => "", Desc => "description"); -$table['resource']['creator'] = array(type => "ID_TYPE", constraints => "NN", Desc => "creator ID"); -$table['resource']['creation'] = array(type => "TS_TYPE", constraints => "NN", Desc => "creation date"); +$table['resource1'][name] = 'res_use'; +$table['resource1'][Desc] = 'TUTOS res_use'; +$table['resource1']['res_id'] = array(type => 'ID_TYPE', constraints => 'NN', Desc => 'Resource ID'),; +$table['resource1']['obj_id'] = array(type => 'ID_TYPE', constraints => 'NN', Desc => 'Object ID that uses res'); - -$table['resource1'] = array( - name => "res_use", - Desc => "TUTOS res_use", - "res_id" => array(type => "ID_TYPE", constraints => "NN", Desc => "Resource ID"), - "obj_id" => array(type => "ID_TYPE", constraints => "NN", Desc => "Object ID that uses res") -); - +$tableidx['resource11'] = array( + name => 'res_user_idx1', + table => 'res_use', + column => array('obj_id'), + Desc => 'resource user index', + ); +$tableidx['resource12'] = array( + name => 'res_user_idx2', + table => 'res_use', + column => array('res_id'), + Desc => 'resource index', + ); ?> \ No newline at end of file Modified: trunk/php/resource/resource.pinc =================================================================== --- trunk/php/resource/resource.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/resource/resource.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -10,7 +10,7 @@ * $Author$ * */ - +$tutos['files'][__FILE__] = '$Rev$'; /** * List all resources * cols > 0 make sperate rows with cols columns for each note @@ -34,7 +34,7 @@ $n++; } return $r; - } +} /** * Selection of Resource Modified: trunk/php/rss/mconfig.pinc =================================================================== --- trunk/php/rss/mconfig.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/rss/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,12 +1,13 @@ <?php /** - * Copyright 2009 by Gero Kohnert + * Copyright 2009 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). Modified: trunk/php/rss/news.php =================================================================== --- trunk/php/rss/news.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/rss/news.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2009 - 2010 by Gero Kohnert + * Copyright 2009 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -12,6 +12,7 @@ * * use http://feedvalidator.org/check.cgi?url=.... to validate */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/rss/rss_show.php =================================================================== --- trunk/php/rss/rss_show.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/rss/rss_show.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2009 - 2010 by Gero Kohnert + * Copyright 2009 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,7 @@ * @module stc_new * @package stc */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -134,5 +135,5 @@ ?> <!-- SVN Info $Id$ - $Author$ - --> \ No newline at end of file +$Author$ +--> \ No newline at end of file Modified: trunk/php/scrum/log_new.php =================================================================== --- trunk/php/scrum/log_new.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/scrum/log_new.php 2013-02-01 11:42:50 UTC (rev 926) @@ -10,6 +10,7 @@ * @module log_new * @package scrum */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -201,10 +202,10 @@ if ( $o->is_moveable() && ($o->w_id > 0) && ($o->start_dt->ts >= $this->sprint->start_dt->ts) ) { - # echo $o->start_dt->ts .'-'. $this->sprint->start_dt->ts .'<br>'; +# echo $o->start_dt->ts .'-'. $this->sprint->start_dt->ts .'<br>'; $day = $o->start_dt->ts - $this->sprint->start_dt->ts; $day = round($day / 86400); - # echo $day .'<br>'; +# echo $day .'<br>'; $this->xarr[$o->w_id][$day][$o->id] = &$o; } else { $this->xarr[-2][-1][$o->id] = &$o; Modified: trunk/php/scrum/log_overview.php =================================================================== --- trunk/php/scrum/log_overview.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/scrum/log_overview.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2009 - 2012 by Gero Kohnert + * Copyright 2009 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -13,6 +13,7 @@ * @module log_overview * @package scrum */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/scrum/log_select.php =================================================================== --- trunk/php/scrum/log_select.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/scrum/log_select.php 2013-02-01 11:42:50 UTC (rev 926) @@ -10,6 +10,7 @@ * @module log_select * @package scrum */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/scrum/log_show.php =================================================================== --- trunk/php/scrum/log_show.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/scrum/log_show.php 2013-02-01 11:42:50 UTC (rev 926) @@ -10,6 +10,7 @@ * @module log_show * @package scrum */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/stuff/stuff_select.php =================================================================== --- trunk/php/stuff/stuff_select.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/stuff/stuff_select.php 2013-02-01 11:42:50 UTC (rev 926) @@ -7,6 +7,7 @@ * Free Software Foundation; version 2 of the License. * */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/task_show.php =================================================================== --- trunk/php/task_show.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/task_show.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,7 @@ * @module task_show * @package task */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'webelements.p3'; require_once 'permission.p3'; Modified: trunk/php/testmanager/mconfig.pinc =================================================================== --- trunk/php/testmanager/mconfig.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/testmanager/mconfig.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,12 +1,13 @@ <?php /** - * Copyright 2003 - 2009 by Gero Kohnert + * Copyright 2003 - 2013 by Gero Kohnert * * Module specific configuration * * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; # # Every module must have an individual ID ( < 0 > -100 ). Modified: trunk/php/testmanager/testcase_select.php =================================================================== --- trunk/php/testmanager/testcase_select.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/testmanager/testcase_select.php 2013-02-01 11:42:50 UTC (rev 926) @@ -10,6 +10,7 @@ * @module testcase_select * @package testcase */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/testmanager/testcase_show.php =================================================================== --- trunk/php/testmanager/testcase_show.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/testmanager/testcase_show.php 2013-02-01 11:42:50 UTC (rev 926) @@ -10,6 +10,7 @@ * @module testcase_show * @package testcase */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/testmanager/testrun_select.php =================================================================== --- trunk/php/testmanager/testrun_select.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/testmanager/testrun_select.php 2013-02-01 11:42:50 UTC (rev 926) @@ -10,6 +10,7 @@ * @module testrun_select * @package testrun */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/testmanager/testsuite_select.php =================================================================== --- trunk/php/testmanager/testsuite_select.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/testmanager/testsuite_select.php 2013-02-01 11:42:50 UTC (rev 926) @@ -10,6 +10,7 @@ * @module testsuite_select * @package testsuite */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/timetrack/timetrack_overview.php =================================================================== --- trunk/php/timetrack/timetrack_overview.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/timetrack/timetrack_overview.php 2013-02-01 11:42:50 UTC (rev 926) @@ -15,6 +15,7 @@ * @module timetrack_overview * @package timetrack */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/url/url.pinc =================================================================== --- trunk/php/url/url.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/url/url.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -10,8 +10,8 @@ * $Author$ * */ +$tutos['files'][__FILE__] = '$Rev$'; - define ('MYTUTOS_CAT',-2); /** * a url category Modified: trunk/php/url/url_overview.php =================================================================== --- trunk/php/url/url_overview.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/url/url_overview.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2003 - 2012 by Gero Kohnert + * Copyright 2003 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -12,6 +12,7 @@ * @module url_overview * @package url */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/user.pinc =================================================================== --- trunk/php/user.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/user.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'address.pinc'; require_once 'team.pinc'; /* @@ -525,7 +526,7 @@ * this project. This will be used from task_new... */ if( is_object($project) && method_exists($project,'readroles') ) { - $project->readroles(); + $project->readroles(); foreach($project->role as $role => $xf) { if( isset($project->role[$role]) && is_array($project->role[$role]) ) { foreach($project->role[$role] as $i => $o) { Modified: trunk/php/user_new.php =================================================================== --- trunk/php/user_new.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/user_new.php 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -12,6 +12,7 @@ * @module user_new * @package user */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'webelements.p3'; require_once 'permission.p3'; require_once 'admin/mconfig.pinc'; // let us load the pseudo module Modified: trunk/php/user_overview.php =================================================================== --- trunk/php/user_overview.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/user_overview.php 2013-02-01 11:42:50 UTC (rev 926) @@ -10,6 +10,7 @@ * @module user_overview * @package user */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'webelements.p3'; require_once 'permission.p3'; Modified: trunk/php/watchlist/watchlist_new.php =================================================================== --- trunk/php/watchlist/watchlist_new.php 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/watchlist/watchlist_new.php 2013-02-01 11:42:50 UTC (rev 926) @@ -12,6 +12,7 @@ * @module reminder_new * @package watchlist */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/webelements.p3 =================================================================== --- trunk/php/webelements.p3 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/webelements.p3 2013-02-01 11:42:50 UTC (rev 926) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 Gero Kohnert + * Copyright 1999 - 2013 Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -13,6 +13,7 @@ * @module webelements * @package BASE */ +$tutos['files'][__FILE__] = '$Rev$'; // this is the start of everything #@ob_start("ob_gzhandler"); @@ -516,7 +517,10 @@ } $r .= ')'; } - if (isset($s["file"])) { + if (isset($s['file'])) { + if (isset($tutos['files'][$s['file']])) { + $r .= "\t(".trim($tutos['files'][$s['file']],'$ ').')'; + } $r .= "\t\t". $s["file"] ." +". $s["line"]; } $r .= "\n"; @@ -711,7 +715,11 @@ echo "<b>Included Files:<br />\n"; $included_files = get_included_files(); foreach($included_files as $filename) { - echo $filename ."<br />\n"; + echo $filename; + if (isset($tutos['files'][$filename])) { + echo ' ('.trim($tutos['files'][$filename],'$ ').')'; + } + echo "<br />\n"; } } // Stop recursion Modified: trunk/php/xml/xml_parse.pinc =================================================================== --- trunk/php/xml/xml_parse.pinc 2013-02-01 10:13:26 UTC (rev 925) +++ trunk/php/xml/xml_parse.pinc 2013-02-01 11:42:50 UTC (rev 926) @@ -11,6 +11,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; include_once('appointment.pinc'); loadmodule("group"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-01 09:52:55
|
Revision: 923 http://sourceforge.net/p/tutos/code/923 Author: gokohnert Date: 2013-02-01 09:52:52 +0000 (Fri, 01 Feb 2013) Log Message: ----------- fix Modified Paths: -------------- trunk/php/mailbox/mail_show.php Modified: trunk/php/mailbox/mail_show.php =================================================================== --- trunk/php/mailbox/mail_show.php 2013-01-31 08:55:53 UTC (rev 922) +++ trunk/php/mailbox/mail_show.php 2013-02-01 09:52:52 UTC (rev 923) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2010 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -44,7 +44,7 @@ Header("Content-type: message/rfc822"); Header("Content-Disposition: attachment; filename=\"". $this->mno .".eml\""); Header("Content-Description: Upload from TUTOS" ); - $b1 = imap_fetchheader($this->obj->mbox,imap_msgno($this->obj->mbox,$this->mno),FT_PEEK); + $b1 = imap_fetchheader($this->obj->mbox,imap_msgno($this->obj->mbox,$this->mno)); $b2 = imap_body($this->obj->mbox,imap_msgno($this->obj->mbox,$this->mno)); echo $b1.$b2; } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-01-30 19:11:25
|
Revision: 920 http://sourceforge.net/p/tutos/code/920 Author: gokohnert Date: 2013-01-30 19:11:22 +0000 (Wed, 30 Jan 2013) Log Message: ----------- fixes Modified Paths: -------------- trunk/php/ajax.php trunk/php/testmanager/mconfig.pinc trunk/php/testmanager/testcase_show.php trunk/php/webelements.p3 Modified: trunk/php/ajax.php =================================================================== --- trunk/php/ajax.php 2013-01-30 19:10:53 UTC (rev 919) +++ trunk/php/ajax.php 2013-01-30 19:11:22 UTC (rev 920) @@ -222,7 +222,7 @@ if (!isset($tutos['classes'][$c])) continue; # error_log('Check '.$tutos['classes'][$c]."\r\n",3,$tutos[errlog]); $x = new $tutos['classes'][$c]($dbconn); - $xcnt = $x->search_by_name($res,$current_user,$item); + $xcnt = $x->search_by_name($res,$current_user,$item,1); # error_log('Found '.$xcnt."\r\n",3,$tutos[errlog]); foreach ($res as $a => $b) { if (! $b->see_ok()) continue; Modified: trunk/php/testmanager/mconfig.pinc =================================================================== --- trunk/php/testmanager/mconfig.pinc 2013-01-30 19:10:53 UTC (rev 919) +++ trunk/php/testmanager/mconfig.pinc 2013-01-30 19:11:22 UTC (rev 920) @@ -20,7 +20,7 @@ name => 'testsuite', Desc => 'managing testsuites', file => 'php/testmanager/testmanager.pinc', - 'overview' => 'testmanager/testsuite_overview.php', + 'overview' => 'testmanager/testsuite_select.php', 'configurl' => 'testmanager/testmanager_config.php', 'perm' => usetestsuite ); @@ -28,7 +28,7 @@ name => 'testcase', Desc => 'managing testcases', file => 'php/testmanager/testmanager.pinc', - 'overview' => 'testmanager/testsuite_overview.php', + 'overview' => 'testmanager/testcase_select.php', 'configurl' => 'testmanager/testmanager_config.php', 'perm' => usetestcase ); @@ -36,7 +36,7 @@ name => 'testrun', Desc => 'managing running tests', file => 'php/testmanager/testmanager.pinc', - 'overview' => 'testmanager/testrun_overview.php', + 'overview' => 'testmanager/testrun_select.php', 'configurl' => 'testmanager/testmanager_config.php', 'perm' => usetestrun ); Modified: trunk/php/testmanager/testcase_show.php =================================================================== --- trunk/php/testmanager/testcase_show.php 2013-01-30 19:10:53 UTC (rev 919) +++ trunk/php/testmanager/testcase_show.php 2013-01-30 19:11:22 UTC (rev 920) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2000 - 2012 by Gero Kohnert + * Copyright 2000 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -55,7 +55,7 @@ $r .= $this->showdata(testcase::get_rrefs($this->obj->ref,true),$this->width-1); $r .= $this->ContentRowEnd(); - if ($this->obj->activ == 1) { + if (($this->obj->activ == 1) && is_object($this->obj->orig)) { $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['TestsuiteCopyOf']); $r .= $this->showdata($this->obj->orig->getLink().' v'.$this->obj->orig->version.' '.($this->obj->orig->activ == 1 ? $this->obj->orig->getResult():''),$this->width-1); Modified: trunk/php/webelements.p3 =================================================================== --- trunk/php/webelements.p3 2013-01-30 19:10:53 UTC (rev 919) +++ trunk/php/webelements.p3 2013-01-30 19:11:22 UTC (rev 920) @@ -779,7 +779,7 @@ global $tutos; // if (!isset($_SERVER['SERVER_NAME']) || !isset($_SERVER['HTTP_HOST']) ) { - if (!isset($_SERVER['SERVER_NAME']) ) { + if (!isset($_SERVER['HTTP_HOST']) ) { // if run on CLI we use always config $useconfig = true; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-01-30 19:10:56
|
Revision: 919 http://sourceforge.net/p/tutos/code/919 Author: gokohnert Date: 2013-01-30 19:10:53 +0000 (Wed, 30 Jan 2013) Log Message: ----------- keep selections that are unuseable for a user Modified Paths: -------------- trunk/php/group/group.pinc trunk/php/group/group_overview.php trunk/php/resource/resource.pinc Modified: trunk/php/group/group.pinc =================================================================== --- trunk/php/group/group.pinc 2013-01-30 07:20:53 UTC (rev 918) +++ trunk/php/group/group.pinc 2013-01-30 19:10:53 UTC (rev 919) @@ -119,16 +119,16 @@ /** * Return a link to this group */ - function getLink($text = "") { + function getLink($text = '', $arg = '') { global $lang; if ( empty($text) ) { - $text = $this->getFullName(); + $text = myentities($this->getFullName()); } if ( $this->see_ok() ) { - return makelink($this->getURL() ,myentities($text),sprintf($lang['GroupShow'],$this->getFullName())); + return makelink($this->getURL($arg) ,$text,sprintf($lang['GroupShow'],$this->getFullName())); } else { - return myentities($text); + return $text; } } @@ -463,7 +463,6 @@ if ( isset($_REQUEST['crm']) ) { $crm = $_REQUEST['crm']; } else { - return; // no change $crm = array(); } @@ -487,9 +486,14 @@ unset($x); continue; } + if (!$x->use_ok()) { + unset($x); + continue; + } $obj->groupmemberlist[$x->id][0] = &$x; if ( ! isset($bak[$x->id]) ) { - $obj->groupmemberlist[$x->id][1] = ''; + // new + $obj->groupmemberlist[$x->id][1] = ''; // comment $obj->groupmemberlist[$x->id][2] = new TUTOS_Date_Time(); // add $obj->modified[] = array ( "field" => "Group" , @@ -515,6 +519,12 @@ // the remaining part is deleted foreach ($bak as $f) { + if (! $f[0]->use_ok()) { + // keep, because it was not selectable or not visible + $obj->groupmemberlist[$f[0]->id] = &$f; + unset($f); + continue; + } // del $obj->modified[] = array ( "field" => "Group" , "old" => $f[0]->id , @@ -549,7 +559,8 @@ if ( count($obj->list[usegroups]) < 1 ) { return $r; } - $l = ''; + $l = ''; + $lu = ''; // unuseable foreach($obj->list[usegroups] as $f) { if ($f->use_ok()) { $l .= "<option value=\"". $f->id ."\""; @@ -557,12 +568,22 @@ $l .= " selected=\"selected\""; } $l .= ">". myentities($f->getFullName()) ."</option>\n"; + } else if ($f->see_ok()) { + if ( array_key_exists($f->id,$obj->groupmemberlist) ) { + $lu .= $f->getLink(); + if ($obj->groupmemberlist[$f->id][1] != '') + $lu .= ' <small>'.myentities($obj->groupmemberlist[$f->id][1]).'</small>'; + if (!$obj->groupmemberlist[$f->id][2]->notime) + $lu .= ' <small> ('.$obj->groupmemberlist[$f->id][2]->getDate().')</small>'; + $lu .= '<br />'; + } } } if ($l == '') return $r; $r .= "<tr>\n"; $r .= $user->layout->showfield($lang['Groups'],0,"crm"); - $r .= " <td valign=\"top\" colspan=\"".($cols-1)."\">\n"; + $r .= ' <td valign="top" colspan="'.($cols-1)."\">\n"; + $r .= $lu; $r .= " <select id=\"crm\" name=\"crm[]\" size=\"4\" multiple=\"multiple\">\n"; $r .= $l; $r .= " </select>\n"; Modified: trunk/php/group/group_overview.php =================================================================== --- trunk/php/group/group_overview.php 2013-01-30 07:20:53 UTC (rev 918) +++ trunk/php/group/group_overview.php 2013-01-30 19:10:53 UTC (rev 919) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2002 - 2012 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -66,20 +66,31 @@ $result->free(); return $r; } + $np = array(); + $a = 0; + while ($a < $n) { + $c = new group($this->dbconn); + $c->read_result($result,$a++); + $np[] = $c->id; + } + $nav = $this->getSubSession(); + $nav['link'] = $this->link1; + $nav['list'] = $np; + $ss = $this->putSubSession($nav); $r.= $this->header; $r .= $this->actionformStart("group_overview.php"); $r .= $this->OverviewTableStart(); - $r .= "<thead>\n"; - $r .= "<tr>\n"; + $r .= $this->OverviewHeadStart(); + $r .= $this->OverviewHeadLineStart(); $r .= $this->orderHeader("name",$lang['GroupName'],$this->link2); $r .= $this->orderHeader("",$lang['GroupDesc'],$this->link2); $r .= $this->orderHeader("",$lang['GroupMember'],$this->link2); $this->flds = 3; $r .= show_custom_overview_headers($this,'group',$this->link2); $r .= $this->MassUpdateHeader(); - $r .= "</tr>\n"; - $r .= "</thead>\n"; + $r .= $this->OverviewHeadLineEnd(); + $r .= $this->OverviewHeadEnd(); if ( $this->start == -1 ) { $a = $n - $tutos['maxshow']; @@ -100,7 +111,7 @@ } $r .= $this->OverviewRowStart($line); $x = $this->mark_filter(myentities($c->getFullName()),'name'); - $r .= ' <td class="over_l">'.makeLink($c->getUrl(),$x).'</td>'."\n"; + $r .= ' <td class="over_l">'.makeLink($c->getUrl('ss='.$ss),$x).'</td>'."\n"; $x = $this->mark_filter(myentities($c->desc),'description'); $r .= ' <td class="over_l">'. $x ."</td>\n"; @@ -220,4 +231,4 @@ $l = new Group_overview($current_user); $l->display(); $dbconn->Close(); -?> +?> \ No newline at end of file Modified: trunk/php/resource/resource.pinc =================================================================== --- trunk/php/resource/resource.pinc 2013-01-30 07:20:53 UTC (rev 918) +++ trunk/php/resource/resource.pinc 2013-01-30 19:10:53 UTC (rev 919) @@ -39,11 +39,11 @@ /** * Selection of Resource */ -function ResAskUse (&$obj,$default,$any) { +function ResAskUse (tutos_base $obj,$default,$any) { global $lang,$current_user; resource::obj_read($obj); - $r = "<select id=\"res\" multiple=\"multiple\" size=\"". min(count($current_user->reslist),5) ."\" name=\"res[]\">\n"; + $r = '<select id="res" multiple="multiple" size="'. min(count($current_user->reslist),5) .'" name="res[]">'."\n"; $x = array(); if ( isset($_GET['res']) ) { @@ -51,17 +51,25 @@ $x[$f] = 1; } } + $unuseable = ''; foreach ($current_user->reslist as $i => $f) { // Here we need the use permission if ( $f->use_ok() ) { - $r .= " <option value=\"". $i ."\""; + $r .= ' <option value="'. $i .'"'; if ( isset($obj->resuselist[$i]) || (isset($x[$i]) ) ) { - $r .= " selected=\"selected\" "; + $r .= ' selected="selected" '; } - $r .= ">". $f->getFullName() ."</option>\n"; + $r .= '>'. $f->getFullName() ."</option>\n"; + } else { + if ( isset($obj->resuselist[$i]) || (isset($x[$i]) ) ) { + if ( $f->see_ok() ) { + $unuseable .= $f->getFullName().'<br />'; + } + } } } $r .= "</select>\n"; + $r = $unuseable.$r; return $r; } @@ -86,13 +94,15 @@ /** */ function resource(tutos_db $dbconn) { + global $table; + $this->init($dbconn); - $this->name = ""; - $this->desc = ""; + $this->name = ''; + $this->desc = ''; $this->ulist = array(); - $this->tablename = $this->dbconn->prefix ."resources"; - $this->tablename2 = $this->dbconn->prefix ."res_use"; + $this->tablename = $this->dbconn->prefix .$table['resource'][name]; + $this->tablename2 = $this->dbconn->prefix .$table['resource1'][name]; $this->run_postinit_hook(); } @@ -436,9 +446,9 @@ } /** - * check availability of resource for given object + * check availability of resource for given object (called by appointment) */ - function check_available(&$obj,&$start,&$end) { + function check_available(tutos_base $obj,TUTOS_Date_Time $start,TUTOS_Date_Time $end) { global $lang,$msg; // default is "no conflict" @@ -465,24 +475,24 @@ $e1->addDays(1); } if ( $s1->getTimestamp() > $ets ) { - # $msg .= $lang[$f1->getType()] ." ". $f1->getFullName() ." uses ". $x->getFullName() ." after<br />"; + // $msg .= $lang[$f1->getType()] ." ". $f1->getFullName() ." uses ". $x->getFullName() ." after<br />"; continue; } if ( $e1->getTimestamp() <= $sts ) { - # $msg .= $lang[$f1->getType()] ." ". $f1->getFullName() ." uses ". $x->getFullName() ." before<br />"; + // $msg .= $lang[$f1->getType()] ." ". $f1->getFullName() ." uses ". $x->getFullName() ." before<br />"; continue; } $msg .= sprintf($lang['ResConflict'],$lang[$obj->getType()] ." ". $obj->getFullName(), $x->getFullName(), $lang[$f1->getType()] ." ". $f1->getLink()) ."<br />"; $r = true; } } else if ( $f1->gettype() == "product" ) { - # $msg .= $lang[$obj->getType()] ." ". $obj->getFullName() ." ". $x->getFullName() ." ".$lang[$f1->getType()] .":". $f1->getFullName() ."<br />"; + // $msg .= $lang[$obj->getType()] ." ". $obj->getFullName() ." ". $x->getFullName() ." ".$lang[$f1->getType()] .":". $f1->getFullName() ."<br />"; } else if ( $f1->gettype() == "task" ) { - # $msg .= $lang[$f1->getType()] .":". $f1->getFullName() ."<br />"; + // $msg .= $lang[$f1->getType()] .":". $f1->getFullName() ."<br />"; } else if ( $f1->gettype() == "installation" ) { - # $msg .= $lang[$f1->getType()] .":". $f1->getFullName() ."<br />"; + // $msg .= $lang[$f1->getType()] .":". $f1->getFullName() ."<br />"; } else { - # $msg .= $lang[$f1->getType()] .":". $f1->getFullName() ."<br />"; + // $msg .= $lang[$f1->getType()] .":". $f1->getFullName() ."<br />"; } } unset($x); @@ -532,8 +542,13 @@ unset($bak[$f]); } } - // the remaining part is deleted + // the remaining part is deleted if it was useable foreach ($bak as $f) { + if (!$f->use_ok()) { + // keep, because it was not selectable or not visible + $obj->res[] = $f->id; + continue; + } // del $obj->modified[] = array ( "field" => "Resource" , "old" => $f->id , This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-01-29 19:49:32
|
Revision: 916 http://sourceforge.net/p/tutos/code/916 Author: gokohnert Date: 2013-01-29 19:49:27 +0000 (Tue, 29 Jan 2013) Log Message: ----------- added revision info to classes, admin_show and debug output. Updated some mobile layout stuff. Fixed some warnings Modified Paths: -------------- trunk/php/admin_show.php trunk/php/app_new.php trunk/php/app_new_r.php trunk/php/bugtracking/bug.pinc trunk/php/checklist/checkfield.pinc trunk/php/checklist/checklist.pinc trunk/php/company.pinc trunk/php/counter/counter.pinc trunk/php/department.pinc trunk/php/doctracker/doctracker.pinc trunk/php/drawboard/drawboard.pinc trunk/php/expense/expense.pinc trunk/php/file/file.pinc trunk/php/file/file_config.php trunk/php/group/group.pinc trunk/php/installation/installation.pinc trunk/php/invoice/invoice.pinc trunk/php/layout/mobile_layout.pinc trunk/php/ldap/ldap.pinc trunk/php/mailbox/mailbox.pinc trunk/php/module_template/AAA.pinc trunk/php/note/note.pinc trunk/php/note/note_new.php trunk/php/rate/rate.pinc trunk/php/reminder/reminder.pinc trunk/php/report-engine/reporter.pinc trunk/php/resource/resource.pinc trunk/php/rss/rss.pinc trunk/php/scrum/log_show.php trunk/php/scrum/scrum.pinc trunk/php/stc/stc.pinc trunk/php/stuff/stuff.pinc trunk/php/stuff/stuff_select.php trunk/php/subversion/svn.pinc trunk/php/testmanager/testmanager.pinc trunk/php/ticker/ticker.pinc trunk/php/timetrack/timetrack.pinc trunk/php/timetrack/timetrack_new.php trunk/php/url/url.pinc trunk/php/url/url_new.php trunk/php/watchlist/watchlist.pinc trunk/php/watchlist/watchlist_new.php trunk/php/webelements.p3 trunk/php/xml/xml_parse.pinc Modified: trunk/php/admin_show.php =================================================================== --- trunk/php/admin_show.php 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/admin_show.php 2013-01-29 19:49:27 UTC (rev 916) @@ -684,6 +684,11 @@ include dirname($tutos['base'] ."/". $tutos[modules][$i][file]) ."/mtable.pinc"; } $r .= $f[file]; + $c = $f[name]; + if (isset($c::$revision)) { + $rr = trim($c::$revision,'$ '); + $r .= ' ('.$rr.')'; + } } else { $r .= "-"; } Modified: trunk/php/app_new.php =================================================================== --- trunk/php/app_new.php 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/app_new.php 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -303,7 +303,7 @@ } preset_from_array_or_input($this->obj,'visitor','v'); - preset_from_array_or_input($this->obj,'product',$tutos['appref']); + preset_from_array_or_input($this->obj,'product','p'); //print_r ($tutos['appref']); if ( isset($_GET['people']) ) { Modified: trunk/php/app_new_r.php =================================================================== --- trunk/php/app_new_r.php 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/app_new_r.php 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -170,7 +170,7 @@ $r .= "</tr><tr>\n"; $r .= $this->showfieldc($lang['Reference'],0,"p"); $r .= " <td colspan=\"5\">\n"; - $r .= select_from_array_or_input($this->obj,"p",$this->obj->product,1,'p'); + $r .= select_from_array_or_input($this->obj,"p",$this->obj->product,1,$tutos['appref']); $r .= " </td>\n"; } Modified: trunk/php/bugtracking/bug.pinc =================================================================== --- trunk/php/bugtracking/bug.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/bugtracking/bug.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -313,6 +313,10 @@ * URL to use for display this object */ protected $showurl = 'bugtracking/bug_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; static public $c_state = array(BUG_STATE_OPEN => "red", BUG_STATE_WORK => "blue", Modified: trunk/php/checklist/checkfield.pinc =================================================================== --- trunk/php/checklist/checkfield.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/checklist/checkfield.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -58,6 +58,10 @@ * URL to use for display this object */ protected $showurl = 'checklist/checkfield_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * constructor Modified: trunk/php/checklist/checklist.pinc =================================================================== --- trunk/php/checklist/checklist.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/checklist/checklist.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -125,6 +125,10 @@ * URL to use for display this object */ protected $showurl = 'checklist/checklist_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * constructor Modified: trunk/php/company.pinc =================================================================== --- trunk/php/company.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/company.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -21,6 +21,10 @@ * URL to use for display this object */ protected $showurl = 'company_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * initialize Modified: trunk/php/counter/counter.pinc =================================================================== --- trunk/php/counter/counter.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/counter/counter.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -12,9 +12,13 @@ /** * a note , attachable nearly everywhere in TUTOS * - * @package note + * @package counter */ class counter extends tutos_module { + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * the type of this TUTOS object Modified: trunk/php/department.pinc =================================================================== --- trunk/php/department.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/department.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -19,6 +19,10 @@ * URL to use for display this object */ protected $showurl = 'department_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * initialize Modified: trunk/php/doctracker/doctracker.pinc =================================================================== --- trunk/php/doctracker/doctracker.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/doctracker/doctracker.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -204,6 +204,10 @@ * URL to use for display this object */ protected $showurl = 'doctracker/doc_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * create Modified: trunk/php/drawboard/drawboard.pinc =================================================================== --- trunk/php/drawboard/drawboard.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/drawboard/drawboard.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2004 - 2012 by Gero Kohnert + * Copyright 2004 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -20,6 +20,10 @@ * URL to use for display this object */ protected $showurl = 'drawboard/drawboard_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * constructor Modified: trunk/php/expense/expense.pinc =================================================================== --- trunk/php/expense/expense.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/expense/expense.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -121,6 +121,10 @@ * URL to use for display this object */ protected $showurl = 'expense/expense_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * constructor Modified: trunk/php/file/file.pinc =================================================================== --- trunk/php/file/file.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/file/file.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -158,6 +158,10 @@ * URL to use for display this object */ protected $showurl = 'file/file_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * @@ -865,8 +869,8 @@ return; } else if ( preg_match("#\.zip$#i",$this->filename) ) { if (class_exists("ZipArchive")) { - # Header("Content-type: text/html"); - # Header("Content-Disposition: inline; filename=\"". $this->filename .".html\""); +# Header("Content-type: text/html"); +# Header("Content-Disposition: inline; filename=\"". $this->filename .".html\""); echo $ly->HTML_Start(); echo $ly->layout_start(); echo showzip($fname); @@ -888,7 +892,7 @@ $tmpname2 = $tmpname.'.fig'; $cmd = $tutos[DXF2FIG] .' '. $tmpname1 .' '. $tmpname2.' ;'. $tutos[FIG2DEV] .' -L gif '.$tmpname2; @copy ($this->base ."/". $this->fileloc,$tmpname1); - #die($cmd); +#die($cmd); Header("Content-type: image/gif"); Header("Content-Description: ". $this->name ); Header("Content-Disposition: inline; filename=\"". $this->filename ."\""); Modified: trunk/php/file/file_config.php =================================================================== --- trunk/php/file/file_config.php 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/file/file_config.php 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2009 by Gero Kohnert + * Copyright 2009 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -103,7 +103,7 @@ $tutos['file_dirperm'] = $_REQUEST['file_dirperm']; write_config_value($this->dbconn,'file_dirperm','file'); - $tutos['file_local_allow'] = $_REQUEST['file_local_allow']; + $tutos['file_local_allow'] = ( isset($_REQUEST['file_local_allow']) ? $_REQUEST['file_local_allow']:0); write_config_value($this->dbconn,'file_local_allow','file'); $tutos['file_local_searchpath'] = $_REQUEST['file_local_searchpath']; Modified: trunk/php/group/group.pinc =================================================================== --- trunk/php/group/group.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/group/group.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2002 - 2012 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -22,6 +22,10 @@ * URL to use for display this object */ protected $showurl = 'group/group_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * Modified: trunk/php/installation/installation.pinc =================================================================== --- trunk/php/installation/installation.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/installation/installation.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -85,6 +85,10 @@ * URL to use for display this object */ protected $showurl = 'installation/installation_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * initialization Modified: trunk/php/invoice/invoice.pinc =================================================================== --- trunk/php/invoice/invoice.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/invoice/invoice.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -431,6 +431,10 @@ * URL to use for display this object */ protected $showurl = 'invoice/invoice_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** Modified: trunk/php/layout/mobile_layout.pinc =================================================================== --- trunk/php/layout/mobile_layout.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/layout/mobile_layout.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -223,6 +223,7 @@ * start a edit set (label field pair) */ function EditSetStart() { + return ''."\n"; return ' <div data-role="fieldcontain">'."\n"; } @@ -230,6 +231,7 @@ * end a edit block */ function EditSetEnd() { + return ''."\n"; return ' </div>'."\n"; } @@ -1158,7 +1160,7 @@ * Make some submit reset table entries * */ - Function submit_reset_row($pre,$t1,$f1,$t2,$f2,$post,$) { + Function submit_reset_row($pre,$t1,$f1,$t2,$f2,$post=-1,$) { global $lang; $r = ''; Modified: trunk/php/ldap/ldap.pinc =================================================================== --- trunk/php/ldap/ldap.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/ldap/ldap.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2002 - 2010 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -20,6 +20,10 @@ */ class ldap extends tutos_module { /** + * revision of file + */ + static public $revision = '$Rev$'; + /** * constructor */ function ldap(tutos_db $dbconn) { @@ -619,5 +623,5 @@ $r .= "</ul>\n"; return $r; } -} + } ?> \ No newline at end of file Modified: trunk/php/mailbox/mailbox.pinc =================================================================== --- trunk/php/mailbox/mailbox.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/mailbox/mailbox.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -25,10 +25,13 @@ /** * URL to use for modify this object */ - protected $modurl = 'mailbox/mailbox_new.php'; - protected $revision = '$Rev$'; + protected $modurl = 'mailbox/mailbox_new.php'; /** + * revision of file */ + static public $revision = '$Rev$'; + /** + */ function mailbox(tutos_db $dbconn) { global $tutos,$current_user,$table; Modified: trunk/php/module_template/AAA.pinc =================================================================== --- trunk/php/module_template/AAA.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/module_template/AAA.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -25,6 +25,10 @@ */ protected $showurl = 'module_template/AAA_show.php'; /** + * revision of file + */ + static public $revision = '$Rev$'; + /** * init */ function AAA(tutos_db $dbconn) { Modified: trunk/php/note/note.pinc =================================================================== --- trunk/php/note/note.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/note/note.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -78,6 +78,10 @@ * URL to use for display this object */ protected $showurl = 'note/note_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * constructor Modified: trunk/php/note/note_new.php =================================================================== --- trunk/php/note/note_new.php 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/note/note_new.php 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2000 - 2012 by Gero Kohnert + * Copyright 2000 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -43,45 +43,42 @@ if ( isset ($this->obj->id) && ( $this->obj->id != -1 ) ) { $this->addhidden('Xid',$this->obj->id); } - $r .= "<tr>\n"; + + $r .= $this->EditRowStart(); $r .= $this->showfieldc($lang['NoteName'],1,"name"); - $r .= ' <td colspan="5"><input class="required_fld" id="name" size="'. min($table['note']['name'][size],40) .'" maxlength="'. $table['note']['name'][size] .'" name="name" value="'. myentities($this->obj->name) ."\" /></td>\n"; - $r .= "</tr>\n"; - $r .= "<tr>\n"; + $r .= $this->showdata('<input class="required_fld" id="name" size="'. min($table['note']['name'][size],40) .'" maxlength="'. $table['note']['name'][size] .'" name="name" value="'. myentities($this->obj->name) .'" />',$this->width-1); + $r .= $this->EditRowEnd(); + + $r .= $this->EditRowStart(); $r .= $this->showfieldc($lang['NoteReference']); - $r .= " <td colspan=\"5\">\n"; if ($this->obj->id == -1) { - $r .= $lang[$this->obj->ref->getType()] ." ". $this->obj->getRefLink() ."\n"; + $rr = $lang[$this->obj->ref->getType()] ." ". $this->obj->getRefLink() ."\n"; $this->addhidden("link_id",$this->obj->link_id); } else { - $r .= " <select name=\"link_id\">\n"; + $rr = " <select name=\"link_id\">\n"; foreach ($this->obj->plist as $i => $f) { - $r .= ' <option value="'. $i .'"'. ($i == $this->obj->link_id ? ' selected="selected">* ':'>') . $lang[$f->getType()] .': '. myentities($f->getFullName()) ."</option>\n"; + $rr .= ' <option value="'. $i .'"'. ($i == $this->obj->link_id ? ' selected="selected">* ':'>') . $lang[$f->getType()] .': '. myentities($f->getFullName()) ."</option>\n"; } - $r .= " </select>\n"; + $rr .= " </select>\n"; } - $r .= " </td>\n"; - $r .= "</tr>\n"; + $r .= $this->showdata($rr,$this->width -1); + $r .= $this->EditRowEnd(); - $r .= "<tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfieldc($lang['NoteEventType'],0,"etype"); - $r .= " <td>\n"; - $r .= $this->obj->askEventType(); - $r .= " </td>\n"; - $r .= "</tr>\n"; + $r .= $this->showdata($this->obj->askEventType(),$this->width -1); + $r .= $this->EditRowEnd(); - $r .= "<tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfield($lang['NoteDescription'],0,"note"); $r .= " <td colspan=\"5\"><textarea id=\"note\" rows=\"20\" cols=\"80\" name=\"note\">". $this->obj->note ."</textarea></td>\n"; - $r .= "</tr>\n"; + $r .= $this->EditRowEnd(); - $r .= "<tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfieldc($lang['NoteRemember'],0,"remember_d"); - $r .= " <td colspan=\"5\">\n"; // reminders only make sense in the future - $r .= $this->obj->remember->EnterDateTime("remember",1,true); - $r .= " </td>\n"; - $r .= "</tr>\n"; + $r .= $this->showdata($this->obj->remember->EnterDateTime("remember",1,true),$this->width -1); + $r .= $this->EditRowEnd(); // Edit additional custom fields $r .= edit_custom_fields($this,$this->obj->gettype(),$this->obj,6); Modified: trunk/php/rate/rate.pinc =================================================================== --- trunk/php/rate/rate.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/rate/rate.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -52,6 +52,10 @@ * URL to use for display this object */ protected $showurl = 'rate/rate_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * constructor @@ -99,27 +103,27 @@ # } else { # $this->worker = $this->creator; # } - # } else { - $this->worker = $this->creator; - # } - } - if ( is_object($this->worker) && ($this->worker->gettype() == "team") ) { - $this->worker->read_member(); - } + # } else { + $this->worker = $this->creator; + # } +} + if ( is_object($this->worker) && ($this->worker->gettype() == "team") ) { + $this->worker->read_member(); + } - $this->name = $r->get($pos, "name"); - $this->priority = $r->get($pos, "priority"); - $this->cph = $r->get($pos, "cph"); - $this->currency = $r->get($pos, "currency"); - $this->vat = $r->get($pos, "vat"); - $this->role_id = $r->get($pos, "role_id"); - $this->state = $r->get($pos, "state"); +$this->name = $r->get($pos, "name"); +$this->priority = $r->get($pos, "priority"); +$this->cph = $r->get($pos, "cph"); +$this->currency = $r->get($pos, "currency"); +$this->vat = $r->get($pos, "vat"); +$this->role_id = $r->get($pos, "role_id"); +$this->state = $r->get($pos, "state"); - $this->creator = getObject($this->dbconn,$r->get($pos, "creator")); +$this->creator = getObject($this->dbconn,$r->get($pos, "creator")); - parent::read_result($r,$pos); - return; - } +parent::read_result($r,$pos); +return; +} /** * get a list of possible new parents Modified: trunk/php/reminder/reminder.pinc =================================================================== --- trunk/php/reminder/reminder.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/reminder/reminder.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -119,6 +119,10 @@ * URL to use for display this object */ protected $showurl = 'reminder/reminder_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * Modified: trunk/php/report-engine/reporter.pinc =================================================================== --- trunk/php/report-engine/reporter.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/report-engine/reporter.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2004 - 2012 by Gero Kohnert + * Copyright 2004 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -17,6 +17,10 @@ * @package report_engine */ class report extends tutos_module { + /** + * revision of file + */ + static public $revision = '$Rev$'; /* --------------------------------------------------------------------------- */ @@ -156,7 +160,7 @@ ); } } - # print_r($xa); +# print_r($xa); return $xa; } /** @@ -189,7 +193,7 @@ ); } } - # print_r($xa); +# print_r($xa); return $xa; } Modified: trunk/php/resource/resource.pinc =================================================================== --- trunk/php/resource/resource.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/resource/resource.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -78,6 +78,10 @@ * URL to use for display this object */ protected $showurl = 'resource/resource_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** */ Modified: trunk/php/rss/rss.pinc =================================================================== --- trunk/php/rss/rss.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/rss/rss.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2009 - 2012 by Gero Kohnert + * Copyright 2009 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -20,6 +20,10 @@ * URL to use for display this object */ protected $showurl = 'rss/rss_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * init Modified: trunk/php/scrum/log_show.php =================================================================== --- trunk/php/scrum/log_show.php 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/scrum/log_show.php 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2009 - 2012 by Gero Kohnert + * Copyright 2009 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -57,7 +57,7 @@ if (is_object($this->obj->pre)) { $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['ScrumLogFollowupR']); - $r .= $this->showData((is_object($this->obj->pre->sprint) ? $lang['ScrumLogSprint'].' '.$this->obj->pre->sprint->getLink().'→':'').$this->obj->pre->getLink(),3); + $r .= $this->showData((is_object($this->obj->pre->sprint) ? $lang['ScrumLogSprint'].' '.$this->obj->pre->sprint->getLink().'→':'').$this->obj->pre->getLink(),$this->width-1); $r .= $this->ContentRowEnd(); } $r .= $this->ContentRowStart(); @@ -81,26 +81,24 @@ $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['ScrumLogSprint']); - $r .= '<td colspan="3">'. (is_object($this->obj->sprint) ? $this->obj->sprint->getLink():'-') .'</td>'; + $r .= $this->showdata((is_object($this->obj->sprint) ? $this->obj->sprint->getLink():'-'),$this->width-1); $r .= $this->ContentRowEnd(); if (is_object($this->obj->ref)) { $r .= $this->ContentRowStart(); - $r .= "<tr>\n"; $r .= $this->showfield($lang['ScrumLogRef']); - $r .= '<td colspan="3">'.$lang[$this->obj->ref->getType()].' '.$this->obj->ref->getLink() .'</td>'; - $r .= "</tr>\n"; + $r .= $this->showdata($lang[$this->obj->ref->getType()].' '.$this->obj->ref->getLink(),$this->width-1); $r .= $this->ContentRowEnd(); } $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['ScrumLogRCap']); - $r .= '<td colspan="2">'. hour_format($this->obj->capacity,2); + $d = hour_format($this->obj->capacity); if ($this->obj->r_cap_sum > 0) { - $r .= ' (-'.makelink('scrum/log_overview.php?ref_id='.$this->obj->id,hour_format($this->obj->r_cap_sum,2)).')'; + $d .= ' (-'.makelink('scrum/log_overview.php?ref_id='.$this->obj->id,hour_format($this->obj->r_cap_sum,2)).')'; } - $r .= ' '.$lang['hours'].'</td>'; - $r .= '<td align="right">'; + $d .= ' '.$lang['hours']; + if ( ($this->obj->w_id == $this->user->id) && is_object($this->obj->sprint) && ($this->obj->state != SCRUMLOGSTATE_DONE) && @@ -115,11 +113,9 @@ } else { $url = addUrlParameter($url,'desc='.urlencode($this->obj->name)); } - $r .= '<---- '.makelink($url,$lang['TimetrackCreate'],sprintf($lang['TimetrackCreateI'], $this->obj->getFullName())).' '; - } else { - $r .= ' '; + $d .= '<br /><---- '.makelink($url,$lang['TimetrackCreate'],sprintf($lang['TimetrackCreateI'], $this->obj->getFullName())).' '; } - $r .= '</td>'; + $r .= $this->showdata($d,$this->width-1); $r .= $this->ContentRowEnd(); if ( $this->user->feature_ok(usetimetrack,PERM_SEE) && $this->obj->obj_feature_ok($this->user,usetimetrack,PERM_SEE) ) { @@ -141,12 +137,12 @@ $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['ScrumLogWorker']); - $r .= '<td colspan="3">'. (is_object($this->obj->worker) ? $this->obj->worker->getLink():'-').'</td>'; + $r .= $this->showdata((is_object($this->obj->worker) ? $this->obj->worker->getLink():'-'),$this->width-1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['ScrumLogStart']); - $r .= '<td colspan="3">'. $this->obj->start_dt->getDate().'</td>'; + $r .= $this->showdata($this->obj->start_dt->getDate(),$this->width-1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); Modified: trunk/php/scrum/scrum.pinc =================================================================== --- trunk/php/scrum/scrum.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/scrum/scrum.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -42,6 +42,10 @@ * URL to use for display this object */ protected $showurl = 'scrum/log_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * constructor @@ -855,6 +859,10 @@ * URL to use for display this object */ protected $showurl = 'scrum/sprint_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * constructor Modified: trunk/php/stc/stc.pinc =================================================================== --- trunk/php/stc/stc.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/stc/stc.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2009 - 2012 by Gero Kohnert + * Copyright 2009 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -499,6 +499,10 @@ * URL to use for display this object */ protected $showurl = 'stc/stc_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * init Modified: trunk/php/stuff/stuff.pinc =================================================================== --- trunk/php/stuff/stuff.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/stuff/stuff.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2004 - 2012 by Gero Kohnert + * Copyright 2004 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -22,11 +22,15 @@ /** * URL to use for modify this object */ - protected $modurl = 'stuff/stuff_new.php'; + protected $modurl = 'stuff/stuff_new.php'; /** * URL to use for display this object */ protected $showurl = 'stuff/stuff_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /* --------------------------------------------------------------------------- */ Modified: trunk/php/stuff/stuff_select.php =================================================================== --- trunk/php/stuff/stuff_select.php 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/stuff/stuff_select.php 2013-01-29 19:49:27 UTC (rev 916) @@ -122,6 +122,8 @@ $this->center = true; $this->css_class = 'selectbox'; + $this->obj = $this->user; + if ( ! isset($_GET['ext']) ) { $this->ext = 0; } else { Modified: trunk/php/subversion/svn.pinc =================================================================== --- trunk/php/subversion/svn.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/subversion/svn.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -76,6 +76,10 @@ * URL to use for display this object */ protected $showurl = 'subversion/svn_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * constructor Modified: trunk/php/testmanager/testmanager.pinc =================================================================== --- trunk/php/testmanager/testmanager.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/testmanager/testmanager.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -104,6 +104,10 @@ * URL to use for display this object */ protected $showurl = 'testmanager/testcase_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * constructor @@ -1186,6 +1190,10 @@ * URL to use for display this object */ protected $showurl = 'testmanager/testsuite_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * constructor @@ -1384,7 +1392,7 @@ return 0; } if ( $this->state == TS_RELEASED ) { - # return 0; +# return 0; } return parent::mod_ok(); } @@ -2140,6 +2148,10 @@ * URL to use for display this object */ protected $showurl = 'testmanager/testrun_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * constructor Modified: trunk/php/ticker/ticker.pinc =================================================================== --- trunk/php/ticker/ticker.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/ticker/ticker.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2012 by Gero Kohnert + * Copyright 2001 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -17,6 +17,10 @@ */ class Ticker extends Tutos_module { /** + * revision of file + */ + static public $revision = '$Rev$'; + /** * init */ function ticker(&$dbconn) { Modified: trunk/php/timetrack/timetrack.pinc =================================================================== --- trunk/php/timetrack/timetrack.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/timetrack/timetrack.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -153,6 +153,10 @@ * URL to use for display this object */ protected $showurl = 'timetrack/timetrack_overview.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; static public $c_state = array(TT_STATE_CHECKED => 'lightgreen', TT_STATE_BILLED => 'orange', Modified: trunk/php/timetrack/timetrack_new.php =================================================================== --- trunk/php/timetrack/timetrack_new.php 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/timetrack/timetrack_new.php 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -18,6 +18,7 @@ // Check if user is allowed to use it check_user(); +$tutos['mobileok'] = 1; require_once 'task.pinc'; require_once 'product.pinc'; @@ -48,7 +49,7 @@ $r .= ' <th>'. $lang['TimetrackRef'] ."</th>\n"; $r .= ' <th>'. $lang['TimetrackModify'] ."</th>\n"; $r .= ' <th>'. $lang['TTfinish'] ."</th>\n"; - $r .= "</tr>\n"; + $r .= $this->EditRowEnd(); } $line = 0 ; while ( $a < $n ) { @@ -84,63 +85,55 @@ $this->addHidden('Xid',$this->obj->id); } - $r .= "<tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfield($lang['TimetrackRef']); - $r .= " <td colspan=\"5\">\n"; if ( ($this->obj->ref->getType() == 'task') || ($this->obj->ref->getType() == 'product') ) { - $r .= "<select id=\"lid\" name=\"lid\">\n"; + $rr = "<select id=\"lid\" name=\"lid\">\n"; foreach ($this->obj->plist as $i => $f) { - $r .= '<option value="'. $i .'"'. ($i == $this->obj->ref->id ? ' selected="selected">* ':'>') . $lang[$f->getType()] .': '. myentities($f->getFullName()) ."</option>\n"; + $rr .= '<option value="'. $i .'"'. ($i == $this->obj->ref->id ? ' selected="selected">* ':'>') . $lang[$f->getType()] .': '. myentities($f->getFullName()) ."</option>\n"; } - $r .= "</select>\n"; + $rr .= "</select>\n"; } else { - $r .= $lang[$this->obj->ref->getType()].' '.$this->obj->ref->getLink(); + $rr = $lang[$this->obj->ref->getType()].' '.$this->obj->ref->getLink(); $this->addHidden('lid',$this->obj->ref->id); } - $r .= " </td>\n"; - $r .= "</tr>\n"; + $r .= $this->showdata($rr,$this->width -1); + $r .= $this->EditRowEnd(); - $r .= "<tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfieldc($lang['TimetrackWorker'],1,'w'); - $r .= " <td colspan=\"5\">\n"; if ( $this->mode == 0 ) { - $r .= select_from_array_or_input($this->obj,'w',$this->obj->worker,0,'at'); + $rr = select_from_array_or_input($this->obj,'w',$this->obj->worker,0,'at'); } else { - $r .= $this->obj->worker->getLink(); + $rr = $this->obj->worker->getLink(); $this->addHidden("wid",$this->obj->worker->id); } - $r .= " </td>\n"; - $r .= "</tr>\n"; + $r .= $this->showdata($rr,$this->width -1); + $r .= $this->EditRowEnd(); if ( $this->obj->t_start->notime != 0 ) { - $r .= "<tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfieldc($lang['TTVolumeDone'],1,"volume"); $check = ""check_timevolume(this,'".$lang['DecPoint']."');\""; - $r .= ' <td><input '. $check .' size="10" maxlength="10" id="volume" name="volume" value="'. hour_format($this->obj->volume) .'" />'. $lang['hours'] ."</td>\n"; + $r .= $this->showdata('<input '. $check .' size="10" maxlength="10" id="volume" name="volume" value="'. hour_format($this->obj->volume) .'" />'. $lang['hours'],1); // added by J. baten to facilitate travel distance if (isset($this->hide['distance']) && $this->hide['distance'] ) { - $r .= '<td colspan="2"> </td>'; + $r .= $this->showdata(' ',2); } else { $r .= $this->showfieldc($lang['Distance'],0,"distance"); $check = ""check_positive_float(this,'".$lang['DecPoint']."');\""; - $r .= ' <td><input '. $check .' size="10" maxlength="10" name="distance" value="'. my_number_format($this->obj->distance,2) .'" />'. $lang['DistanceUnit'] ."</td>\n"; + $r .= $this->showdata('<input '. $check .' size="10" maxlength="10" name="distance" value="'. my_number_format($this->obj->distance,2) .'" />'. $lang['DistanceUnit'],1); } $r .= $this->showfieldc($lang['atDateTime'],1,"wd_d"); - $r .= " <td>\n"; - $r .= $this->obj->wday->EnterDate("wd",1); - $r .= " </td>\n"; - $r .= "</tr>\n"; + $r .= $this->showdata($this->obj->wday->EnterDate("wd",1)); + $r .= $this->EditRowEnd(); } else { - $r .= "<tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfieldc($lang['AppStart'],1,"start_d"); - $r .= " <td colspan=\"2\">\n"; - $r .= $this->obj->t_start->EnterDateTime('start',1); - $r .= " </td>\n"; + $r .= $this->showdata($this->obj->t_start->EnterDateTime('start',1),2); $r .= $this->showfieldc($lang['AppEnd'],0,"end_d"); - $r .= " <td colspan=\"2\">\n"; - $r .= $this->obj->t_end->EnterDateTime('end',1); - $r .= " </td>\n"; - $r .= "</tr>\n"; + $r .= $this->showdata($this->obj->t_end->EnterDateTime('end',1),2); + $r .= $this->EditRowEnd(); } if ($this->obj->ref->getType() == 'task') { @@ -149,38 +142,31 @@ } else { $volume_todo = $this->obj->ref->volume_todo; } - $r .= "<tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfieldc($lang['TaskVolumeTodo'],0,"volume_todo"); - $r .= ' <td><input size="10" maxlength="10" name="volume_todo" />'. $lang['hours'] ."</td>\n"; - - $r .= ' <td colspan="4"><i>'. $lang['TaskVolumeTodo'] .': '. $volume_todo .' '. $lang['hours'] .'</i></td>'; - - $r .= "\n</tr>\n"; + $r .= $this->showdata('<input size="10" maxlength="10" name="volume_todo" />'. $lang['hours']); + $r .= $this->showdata('<i>'. $lang['TaskVolumeTodo'] .': '. $volume_todo .' '. $lang['hours'] .'</i>',4); + $r .= $this->EditRowEnd(); } else if (($this->obj->ref->getType() == 'scrumlog') && $this->obj->ref->mod_ok() && $this->obj->id == -1) { // special handling scrumlog item - $r .= "<tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfieldc($lang['TaskVolumeTodo'],0,"volume_todo"); - $r .= ' <td><input size="10" maxlength="10" name="volume_todo" value="'.($this->obj->volume_todo == -1 ? '':hour_format($this->obj->volume_todo)).'" />'. $lang['hours'] ."</td>\n"; + $r .= $this->showdata('<input size="10" maxlength="10" name="volume_todo" value="'.($this->obj->volume_todo == -1 ? '':hour_format($this->obj->volume_todo)).'" />'. $lang['hours']); $this->obj->ref->readTimetrackSum(); - $r .= ' <td colspan="4"><i>'. $lang['ScrumLogRCap'] .' = '.hour_format($this->obj->ref->capacity) .' '. $lang['hours'] .' / '.$lang['ScrumLogUCap'].' = '. hour_format($this->obj->ref->timetracksum) .' '. $lang['hours'] .'</i></td>'; + $r .= $this->showdata('<i>'. $lang['ScrumLogRCap'] .' = '.hour_format($this->obj->ref->capacity) .' '. $lang['hours'] .' / '.$lang['ScrumLogUCap'].' = '. hour_format($this->obj->ref->timetracksum) .' '. $lang['hours'] .'</i>',4); - $r .= "\n</tr>\n"; + $r .= $this->EditRowEnd(); } if (!isset($this->obj->list[userates]) || (count($this->obj->list[userates]) == 0) ) { - $r .= "<tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfieldc($lang['TTcph'],0,"cph"); $check = ""check_positive_float(this,'".$lang['DecPoint']."');\""; - $r .= ' <td colspan="1"><input '. $check .' size="10" maxlength="10" id="cph" name="cph" value="'. my_number_format($this->obj->cph,2) ."\" />\n"; - $r .= Currency_Select("currency",$this->obj->currency); - $r .= "</td>\n"; + $r .= $this->showdata('<input '. $check .' size="10" maxlength="10" id="cph" name="cph" value="'. my_number_format($this->obj->cph,2) .'" />'. Currency_Select("currency",$this->obj->currency),1); $r .= $this->showfieldc($lang['TTState'],1,"state"); - $r .= " <td colspan=\"1\">\n"; - $r .= $this->obj->askState(); - $r .= "</td>\n"; - $r .= " <td colspan=\"2\"> </td>\n"; - $r .= "</tr>\n"; + $r .= $this->showdata($this->obj->askState(),$this->width-3); + $r .= $this->EditRowEnd(); } // Edit additional custom fields @@ -188,16 +174,16 @@ // References to modules $r .= module_addforms($this->user,$this->obj,$this->width); - $r .= "<tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfield($lang['Description'],1,"desc"); - $r .= $this->textarea("desc",5,$table['timetrack']['description'][size], $this->obj->desc ); - $r .= "</tr>\n"; + $r .= $this->textarea("desc",$this->width-1,$table['timetrack']['description'][size], $this->obj->desc ); + $r .= $this->EditRowEnd(); // Set Task to finished when ticked - $r .= "<tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfield($lang['TTRefFinished'],0,"finished"); - $r .= '<td><input type="checkbox" name="finished" value="1"'. ($this->obj->setfinish ? ' checked="checked"':'').'></td>'; - $r .= "</tr>\n"; + $r .= $this->showdata('<input type="checkbox" name="finished" value="1"'. ($this->obj->setfinish ? ' checked="checked"':'').' />',$this->width-1); + $r .= $this->EditRowEnd(); if ( $this->obj->id != -1 ) { $r .= $this->submit_reset_row(0,1,1,1,3,0); Modified: trunk/php/url/url.pinc =================================================================== --- trunk/php/url/url.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/url/url.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -29,6 +29,10 @@ * URL to use for display this object */ protected $showurl = 'url/urlcat_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * creator @@ -189,6 +193,10 @@ * URL to use for display this object */ protected $showurl = 'url/url_show.php'; + /** + * revision of file + */ + static public $revision = '$Rev$'; /** * creator Modified: trunk/php/url/url_new.php =================================================================== --- trunk/php/url/url_new.php 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/url/url_new.php 2013-01-29 19:49:27 UTC (rev 916) @@ -19,6 +19,8 @@ // Check if user is allowed to use it check_user(); + +$tutos['mobileok'] = 1; loadmodules('url','new'); loadmodule('url'); loadlayout(); @@ -42,36 +44,32 @@ $r .= $this->acl_line(true); if (isset($this->obj->ref) && is_object($this->obj->ref)) { - $r .= " <tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfieldc($lang[$this->obj->ref->getType()]); $r .= $this->showData($this->obj->ref->getLink(),3); - $r .= " </tr>\n"; + $r .= $this->EditRowEnd(); } - $r .= " <tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfieldc($lang['URLName'],1,'urlname'); - $r .= ' <td colspan="3"><input class="required_fld" id="urlname" size="'. min($table['url']['name'][size],50) .'" maxlength="'. $table['url']['name'][size] .'" name="urlname" value="'. myentities($this->obj->name) ."\" /></td>\n"; - $r .= " </tr>\n"; + $r .= $this->showdata('<input class="required_fld" id="urlname" size="'. min($table['url']['name'][size],50) .'" maxlength="'. $table['url']['name'][size] .'" name="urlname" value="'. myentities($this->obj->name) .'" />',2); + $r .= $this->EditRowEnd(); - $r .= " <tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfield($lang['URLDesc'],0,'urldesc'); $r .= $this->textarea('urldesc',3,$table['url']['description'][size],$this->obj->desc); - $r .= " </tr>\n"; + $r .= $this->EditRowEnd(); - $r .= " <tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfieldc($lang['URLCat'],1,"urlcat"); - $r .= " <td colspan=\"3\">\n"; - $r .= $this->obj->askCategory($this->user); - $r .= " </td>\n"; + $r .= $this->showdata($this->obj->askCategory($this->user),2); + $r .= $this->EditRowEnd(); - $r .= " </tr>\n"; - $r .= " <tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfieldc($lang['URL'],1,"url"); - $r .= " <td colspan=\"3\">"; - $r .= ' <input class="required_fld" id="url" size="'. min($table['url']['url'][size],50) .'" maxlength="'. $table['url']['url'][size] .'" name="url" value="'. myentities($this->obj->getTargetUrl()) ."\" />\n"; - $r .= " </td>\n"; - $r .= " </tr>\n"; + $r .= $this->showdata('<input class="required_fld" id="url" size="'. min($table['url']['url'][size],50) .'" maxlength="'. $table['url']['url'][size] .'" name="url" value="'. myentities($this->obj->getTargetUrl()) .'" />',2); + $r .= $this->EditRowEnd(); // Edit additional custom fields $r .= edit_custom_fields($this,$this->obj->gettype(),$this->obj,$this->width); Modified: trunk/php/watchlist/watchlist.pinc =================================================================== --- trunk/php/watchlist/watchlist.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/watchlist/watchlist.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -91,6 +91,11 @@ } class Watchlist extends Tutos_module { + /** + * revision of file + */ + static public $revision = '$Rev$'; + /* */ function watchlist(tutos_db $dbconn) { Modified: trunk/php/watchlist/watchlist_new.php =================================================================== --- trunk/php/watchlist/watchlist_new.php 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/watchlist/watchlist_new.php 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2004 - 2012 by Gero Kohnert + * Copyright 2004 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -19,6 +19,8 @@ // Check if user is allowed to use it check_user(); + +$tutos['mobileok'] = 1; loadmodules('watchlist','new'); loadmodule('watchlist'); loadlayout(); @@ -45,20 +47,16 @@ $r .= $this->Headline($lang['WatchAdd2']); // $r .= $this->acl_line(true); - $r .= "<tr>\n"; + $r .= $this->EditRowStart(); $r .= $this->showfieldc($lang['Reference']); - $r .= " <td colspan=\"3\">\n"; - $r .= $lang[$this->obj->getType()] .' '. $this->obj->getLink() ."\n"; - $what = $lang[$this->obj->getType()] .' '. $this->obj->getFullname(); - $r .= " </td>\n"; - $r .= "</tr>\n"; + $r .= $this->showdata($lang[$this->obj->getType()] .' '. $this->obj->getLink(),$this->width -1); + $r .= $this->EditRowEnd(); - $r .= "<tr>\n"; + + $r .= $this->EditRowStart(); $r .= $this->showfieldc($lang['Watcher'],0,'adr'); - $r .= " <td colspan=\"3\">\n"; - $r .= select_from_array_or_input($this,"adr",$this->adr,0,'a'); - $r .= " </td>\n"; - $r .= "</tr>\n"; + $r .= $this->showdata(select_from_array_or_input($this,"adr",$this->adr,0,'a'),$this->width -1); + $r .= $this->EditRowEnd(); $r .= $this->submit_reset_row(0,1,1,1,1); Modified: trunk/php/webelements.p3 =================================================================== --- trunk/php/webelements.p3 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/webelements.p3 2013-01-29 19:49:27 UTC (rev 916) @@ -550,8 +550,16 @@ if (isset($_SERVER["REQUEST_URI"])) { $r .= "Request:\t". $_SERVER["REQUEST_URI"] ."\n"; } + if ( isset($_SERVER['HTTP_REFERER']) ) { + $r .= "Referer:\t". $_SERVER['HTTP_REFERER'] ."\n"; + } foreach($tutos[activemodules] as $i => $f) { - $r.= "activemodule:\t".$f."\n"; + $c = $tutos[modules][$f][name]; + $r.= "activemodule:\t".$f; + if (isset($c::$revision)) { + $r .= '\t('.trim($c::$revision,'$ ').')'; + } + $r .= "\n"; } if ( count($_POST) ) { foreach($_POST as $i => $f) { @@ -584,9 +592,6 @@ if (isset($_SERVER['REMOTE_ADDR'])) { $r .= "RemoteAddr:\t". $_SERVER['REMOTE_ADDR'] ."\n"; } - if ( isset($_SERVER['HTTP_REFERER']) ) { - $r .= "Referer:\t". $_SERVER['HTTP_REFERER'] ."\n"; - } if (is_object($current_user) && isset($lang['AdrFormat2'])) { $r .= "TUTOS User:\t". $current_user->getFullName() ."\n"; } Modified: trunk/php/xml/xml_parse.pinc =================================================================== --- trunk/php/xml/xml_parse.pinc 2013-01-29 16:57:17 UTC (rev 915) +++ trunk/php/xml/xml_parse.pinc 2013-01-29 19:49:27 UTC (rev 916) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -19,9 +19,11 @@ loadmodule("expense"); class TUTOS_XMLParser extends tutos_module { -# var: Deprecated in PHP5 -# var $depth = array(); -# var $stack = array(); + /** + * revision of file + */ + static public $revision = '$Rev$'; + var $imp_locs = array(); var $groupmemberlist = array(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-01-29 16:57:23
|
Revision: 915 http://sourceforge.net/p/tutos/code/915 Author: gokohnert Date: 2013-01-29 16:57:17 +0000 (Tue, 29 Jan 2013) Log Message: ----------- fix empty to Modified Paths: -------------- trunk/php/mailbox/mailbox.pinc Modified: trunk/php/mailbox/mailbox.pinc =================================================================== --- trunk/php/mailbox/mailbox.pinc 2013-01-29 12:42:20 UTC (rev 914) +++ trunk/php/mailbox/mailbox.pinc 2013-01-29 16:57:17 UTC (rev 915) @@ -25,8 +25,8 @@ /** * URL to use for modify this object */ - protected $modurl = 'mailbox/mailbox_new.php'; - + protected $modurl = 'mailbox/mailbox_new.php'; + protected $revision = '$Rev$'; /** */ function mailbox(tutos_db $dbconn) { @@ -192,13 +192,15 @@ $b = imap_fetchheader($m->mbox,imap_msgno($m->mbox,$hval)); $b .= imap_body($m->mbox,imap_msgno($m->mbox,$hval)); $email_adr = array(); - foreach ($hdr->from as $id => $o) { - array_push($email_adr, strtolower($o->mailbox . "@" . $o->host)); - } - foreach ($hdr->to as $id => $o) { - array_push($email_adr, strtolower($o->mailbox . "@" . $o->host)); - } - if (isset($hdr->cc)) + if (isset($hdr->from) && is_array($hdr->from)) + foreach ($hdr->from as $id => $o) { + array_push($email_adr, strtolower($o->mailbox . "@" . $o->host)); + } + if (isset($hdr->to) && is_array($hdr->to)) + foreach ($hdr->to as $id => $o) { + array_push($email_adr, strtolower($o->mailbox . "@" . $o->host)); + } + if (isset($hdr->cc) && is_array($hdr->cc)) foreach ($hdr->cc as $id => $o) { array_push($email_adr, strtolower($o->mailbox . "@" . $o->host)); } @@ -668,18 +670,19 @@ return $r; } - $r .= "<tr>\n"; + $r .= $user->layout->ContentRowStart(); $r .= $user->layout->showfield($lang['mailbox']); - $r .= " <td valign=\"top\" colspan=\"".($cols-1)."\">\n"; + $d = ''; $pre = ""; foreach ($obj->list[usemailboxes] as $i => $f) { - $r .= $pre. $f->getLink(); + $d .= $pre. $f->getLink(); $pre = "<br />"; } - $r .= " </td>\n"; - $r .= "</tr>\n"; + $r .= $user->layout->showdata($d,$cols-1); + $r .= $user->layout->ContentRowEnd(); return $r; } + /** * Return Info about connected mailboxes to an object */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-01-27 18:44:09
|
Revision: 908 http://sourceforge.net/p/tutos/code/908 Author: gokohnert Date: 2013-01-27 18:44:05 +0000 (Sun, 27 Jan 2013) Log Message: ----------- fixes Modified Paths: -------------- trunk/php/acl_ins.php trunk/php/address.pinc trunk/php/admin/update.php trunk/php/base.pinc trunk/php/company.pinc trunk/php/config_default.pinc trunk/php/department.pinc trunk/php/file/file.pinc trunk/php/layout/layout_base.pinc trunk/php/layout/new2_layout.pinc trunk/php/layout/new_base.pinc trunk/php/location.pinc trunk/php/note/note.pinc trunk/php/product_new.php trunk/php/product_show.php trunk/php/rate/rate.pinc trunk/php/timetrack/timetrack_overview.php trunk/php/url/url.pinc trunk/php/user_overview.php Modified: trunk/php/acl_ins.php =================================================================== --- trunk/php/acl_ins.php 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/acl_ins.php 2013-01-27 18:44:05 UTC (rev 908) @@ -1,14 +1,20 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; version 2 of the License. * - * @modulegroup BASE - * @module acl_ins - * @package acl + * @category PHP + * @package acl + * @author Gero Kohnert <tu...@tu...> + * @copyright 1999-2013 Gero Kohnert + * @license GPL2 + * @link http://www.tutos.org + * + * @modulegroup BASE + * @module acl_ins */ require_once 'webelements.p3'; require_once 'permission.p3'; @@ -27,13 +33,14 @@ */ function get_single_obj( $id ) { global $dbconn, $lang, $msg, $current_user, $gotourl; + $list = array(); - $x = getObject($dbconn,$id); + $x = getObject($dbconn, $id); if ( !is_object($x) ) { - $msg = addLine($msg,sprintf($lang['Err0040'],"Object ". $id)); + $msg = addLine($msg, sprintf($lang['Err0040'], "Object ".$id)); } else if ( ! $current_user->isadmin() && ! $x->del_ok() ) { // we need delete permissions but talk about modify ! - $msg = addLine($msg,sprintf($lang['Err0024'],$lang[$x->getType()])); + $msg = addLine($msg, sprintf($lang['Err0024'], $lang[$x->getType()])); } else { $list[] = &$x; } @@ -46,7 +53,9 @@ */ function objlist_2_idlist( $ol ) { $il = array(); - foreach($ol as $o) $il[] = $o->id; + foreach ($ol as $o) { + $il[] = $o->id; + } return $il; } @@ -59,17 +68,17 @@ $obj = array(); foreach ($ids as $id ) { - $res = get_single_obj( $id ); - $obj = array_merge( $obj, $res ); + $res = get_single_obj($id); + $obj = array_merge($obj, $res); if (isset($res[0]) && $recur) { if ($res[0]->getTypeId() == useaddressbook) { $res[0]->read_locs_data(); - $obj = array_merge( $obj, - get_objectlist( objlist_2_idlist($res[0]->location), true )); + $obj = array_merge($obj, + get_objectlist(objlist_2_idlist($res[0]->location), true)); } - $obj = array_merge( $obj, - get_objectlist( objlist_2_idlist($res[0]->get_tree()), true )); + $obj = array_merge($obj, + get_objectlist(objlist_2_idlist($res[0]->get_tree()), true)); } } return $obj; @@ -82,17 +91,18 @@ $gotourl = 'mytutos.php'; if ( !isset($_POST['id']) ) { - $msg = addLine($msg,'Missing ID'); + $msg = addLine($msg, 'Missing ID'); } else { if (! is_Array($_POST['id'])) { $id[0] = $_POST['id']; } else { $id = $_POST['id']; } - if (isset($_POST['recursive'])) + if (isset($_POST['recursive'])) { $recursive = true; - else + } else { $recursive = false; + } $obj = get_objectlist($id, $recursive); } @@ -106,7 +116,7 @@ $feature = $_POST['feature']; foreach ($tutos[modules] as $m => $ma) { if (isset($ma['perm']) && $ma['perm'] == $feature ) { - $ma['id'] = $m; + $ma['id'] = $m; $feature_info = $ma; } } @@ -116,91 +126,91 @@ if ( $msg == "" ) { $dbconn->Begin("WORK"); - foreach(array_reverse($obj) as $val) { + foreach (array_reverse($obj) as $val) { if ( ! $keep ) { - feature_unset($val->acl,$feature); + feature_unset($val->acl, $feature); } if ( isset($_POST['N']) ) { // set the read ok feature bit - foreach ( $_POST['N'] as $f ) { - acl_raise_bit($val,$f,$feature,PERM_NEW); + foreach ( $_POST['N'] as $f ) { + acl_raise_bit($val, $f, $feature, PERM_NEW); } } if ( isset($_POST['R']) ) { // set the read ok feature bit - foreach ( $_POST['R'] as $f ) { - acl_raise_bit($val,$f,$feature,PERM_SEE); + foreach ( $_POST['R'] as $f ) { + acl_raise_bit($val, $f, $feature, PERM_SEE); } } if ( isset($_POST['r']) ) { - foreach ( $_POST['r'] as $f ) { - acl_raise($val,$f,$tutos[seeok]); + foreach ( $_POST['r'] as $f ) { + acl_raise($val, $f, $tutos[seeok]); } } if ( isset($_POST['u']) ) { - foreach ( $_POST['u'] as $f ) { - acl_raise($val,$f,$tutos[useok]); + foreach ( $_POST['u'] as $f ) { + acl_raise($val, $f, $tutos[useok]); } } if ( isset($_POST['m']) ) { - foreach ( $_POST['m'] as $f ) { - acl_raise($val,$f,$tutos[modok]); + foreach ( $_POST['m'] as $f ) { + acl_raise($val, $f, $tutos[modok]); } } if ( isset($_POST['d']) ) { - foreach ( $_POST['d'] as $f ) { - acl_raise($val,$f,$tutos[delok]); + foreach ( $_POST['d'] as $f ) { + acl_raise($val, $f, $tutos[delok]); } } // check for named additions (ajax selected) "add_r" "add_u" ... if (isset($_POST['add_rid'])) { - acl_raise($val,$_POST['add_rid'],$tutos[seeok]); + acl_raise($val, $_POST['add_rid'], $tutos[seeok]); } else if (isset($_POST['add_rfn'])) { - $m = check_field($_POST['add_rfn'],"add_rfn","add_rl",'at'); + $m = check_field($_POST['add_rfn'], 'add_rfn', 'add_rl', 'at'); if ( is_object($m) ) { - acl_raise($val,$m->ida,$tutos[seeok]); + acl_raise($val, $m->ida, $tutos[seeok]); } } if (isset($_POST['add_uid'])) { - acl_raise($val,$_POST['add_uid'],$tutos[useok]); + acl_raise($val, $_POST['add_uid'], $tutos[useok]); } else if (isset($_POST['add_ufn'])) { - $m = check_field($_POST['add_ufn'],"add_ufn","add_ul",'at'); + $m = check_field($_POST['add_ufn'], 'add_ufn', 'add_ul', 'at'); if ( is_object($m) ) { - acl_raise($val,$m->ida,$tutos[useok]); + acl_raise($val, $m->ida, $tutos[useok]); } } if (isset($_POST['add_mid'])) { - acl_raise($val,$_POST['add_mid'],$tutos[modok]); + acl_raise($val, $_POST['add_mid'], $tutos[modok]); } else if (isset($_POST['add_mfn'])) { - $m = check_field($_POST['add_mfn'],"add_mfn","add_ml",'at'); + $m = check_field($_POST['add_mfn'], 'add_mfn', 'add_ml', 'at'); if ( is_object($m) ) { - acl_raise($val,$m->ida,$tutos[modok]); + acl_raise($val, $m->ida, $tutos[modok]); } } if (isset($_POST['add_did'])) { - acl_raise($val,$_POST['add_did'],$tutos[delok]); + acl_raise($val, $_POST['add_did'], $tutos[delok]); } else if (isset($_POST['add_dfn'])) { - $m = check_field($_POST['add_dfn'],"add_dfn","add_dl",'at'); + $m = check_field($_POST['add_dfn'], 'add_dfn', 'add_dl', 'at'); if ( is_object($m) ) { - acl_raise($val,$m->ida,$tutos[delok]); + acl_raise($val, $m->ida, $tutos[delok]); } } // per object config if ($feature != 0) { - $x = $feature_info[name]; + $x = $feature_info[name]; $xx = new $x($dbconn); $xl = $xx->getObjConfig($val); if (count($xl) > 0) { - foreach($xl as $cf) { - config_field_parse($dbconn,$cf,$val); + foreach ($xl as $cf) { + config_field_parse($dbconn, $cf, $val); } } } // if ($msg != '') break; - $msg = addLine($msg,acl_save($val)); + $msg = addLine($msg, acl_save($val)); if ($val->getType() != "url") { $gotourl = $val->getURL(); } @@ -208,7 +218,7 @@ $dbconn->Commit("WORK"); } -leave_insert($dbconn,$gotourl,$msg,$info); +leave_insert($dbconn, $gotourl, $msg, $info); /** * SVN Info $Id$ * $Author$ Modified: trunk/php/address.pinc =================================================================== --- trunk/php/address.pinc 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/address.pinc 2013-01-27 18:44:05 UTC (rev 908) @@ -309,7 +309,7 @@ $info .= '<tr><td nowrap="nowrap" colspan="2" valign="top">'. $dep .'</td></tr>'; $info .= '<tr><td valign="top">'. $lang['Phone'] .':</td><td nowrap="nowrap">'; $info .= $phone; - $info .= ' </td></tr>'; + $info .= ' </td></tr>'; } $info .= $this->custom_popup_content(); $info .= '</table>'; Modified: trunk/php/admin/update.php =================================================================== --- trunk/php/admin/update.php 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/admin/update.php 2013-01-27 18:44:05 UTC (rev 908) @@ -258,6 +258,7 @@ exit;; } +$lang = array(); $current_user = new tutos_user($dbc); ReadLang($lang); loadmodules("admin","update"); Modified: trunk/php/base.pinc =================================================================== --- trunk/php/base.pinc 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/base.pinc 2013-01-27 18:44:05 UTC (rev 908) @@ -1595,7 +1595,7 @@ } $x = array(); - if ($id2 == 1) { + if (($id2 == 1) && is_object($this->creator) ) { $x[$this->creator->id] = $this->creator; } return $x; Modified: trunk/php/company.pinc =================================================================== --- trunk/php/company.pinc 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/company.pinc 2013-01-27 18:44:05 UTC (rev 908) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -36,13 +36,12 @@ $this->credit_limit = ''; $this->employees = ''; $this->revenue = ''; - - $this->rl1 = false; - $this->rl2 = false; - $this->tablename = $this->dbconn->prefix.$table['company'][name]; - $this->invlist = array(); - $this->member = array(); - acl_raise($this,$current_user->id,$tutos[delok]); + $this->rl1 = false; + $this->rl2 = false; + $this->tablename = $this->dbconn->prefix.$table['company'][name]; + $this->invlist = array(); + $this->member = array(); + acl_raise($this, $current_user->id, $tutos[delok]); $this->run_postinit_hook(); } @@ -279,7 +278,7 @@ $pre = "<br />"; } } - $info .= ' </td></tr>'; + $info .= ' </td></tr>'; } $info .= $this->custom_popup_content(); $info .= '</table>'; Modified: trunk/php/config_default.pinc =================================================================== --- trunk/php/config_default.pinc 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/config_default.pinc 2013-01-27 18:44:05 UTC (rev 908) @@ -473,9 +473,9 @@ # 1 = yes use mobile # 0 = no # (it is possible to change this in per user settings) - # - $tutos['mobilely'] = 0; # +$tutos['mobilely'] = 0; +# # Available icons for tablerows in TUTOS # $tutos[rowiconsbefore] = array(); Modified: trunk/php/department.pinc =================================================================== --- trunk/php/department.pinc 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/department.pinc 2013-01-27 18:44:05 UTC (rev 908) @@ -269,7 +269,7 @@ $pre = "<br />"; } } - $info .= ' </td></tr>'; + $info .= ' </td></tr>'; } $info .= $this->custom_popup_content(); $info .= '</table>'; @@ -280,7 +280,7 @@ * set the name */ function setName($value) { - $this->setStrField("name",$value,"Department"); + $this->setStrField("name", $value, "Department"); } /** @@ -438,7 +438,7 @@ foreach($obj->list[usedepartment] as $i => $f) { $obj->list[usedepartment][$i]->read_members(); $r .= $pre . $obj->list[usedepartment][$i]->getLink($obj->list[usedepartment][$i]->name); - $r .= ' ('.count($obj->list[usedepartment][$i]->member).')'."\n"; + $r .= ' ('.count($obj->list[usedepartment][$i]->member).')'."\n"; $pre = "<br />\n"; } $r .= " </td>\n"; Modified: trunk/php/file/file.pinc =================================================================== --- trunk/php/file/file.pinc 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/file/file.pinc 2013-01-27 18:44:05 UTC (rev 908) @@ -312,7 +312,7 @@ $q .= ' where id = '.$regs[1]; } else if (1 === preg_match('/^[0-9a-f]{32}$/',trim($name),$regs) ) { // search also md5 if pattern matches - $q .= ' where '.$user->dbconn->Like("md5",$regs[1]); + $q .= ' where '.$user->dbconn->Like("md5",$name); $q .= ' or '.$user->dbconn->Like("name",$name,"version"); } else { $q .= ' where '.$user->dbconn->Like("name",$name,"version"); Modified: trunk/php/layout/layout_base.pinc =================================================================== --- trunk/php/layout/layout_base.pinc 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/layout/layout_base.pinc 2013-01-27 18:44:05 UTC (rev 908) @@ -899,17 +899,17 @@ $l = addUrlParameter($link,$paraname ."=0",false); $r .= menulink($l ,$lang['NavFirst'],$lang['NavFirst'],"","rel=\"Start\""); } - $r .= " "; + $r .= "  "; if ( $start > 0 ) { $l = addUrlParameter($link,$paraname ."=". max($start - $tutos['maxshow'],0),false); - $r .= menulink($l ,$this->theme->getImage(left,'list') ." ".$lang['NavBack'],$lang['NavBack'],"","rel=\"prev\""); + $r .= menulink($l ,$this->theme->getImage(left,'list') ." ".$lang['NavBack'],$lang['NavBack'],"","rel=\"prev\""); } - $r .= " "; + $r .= "   "; if ( $end < $max ) { $l = addUrlParameter($link,$paraname ."=". $end,false); - $r .= menulink($l ,$lang['NavNext'] ." ". $this->theme->getImage(right,'list'),$lang['NavNext'],"","rel=\"next\""); + $r .= menulink($l ,$lang['NavNext'] ." ". $this->theme->getImage(right,'list'),$lang['NavNext'],"","rel=\"next\""); } - $r .= " "; + $r .= "  "; if ( $start < ($max - $tutos['maxshow']) ) { $l = addUrlParameter($link, $paraname ."=-1",false); $r .= menulink($l ,$lang['NavLast'],$lang['NavLast']); @@ -1132,10 +1132,10 @@ if ($next != '') $n = getObject($this->obj->dbconn,$next); if (is_object($p)) - $r .= ' '.$p->getLink($this->theme->getImage(left,'list').$lang['NavBack'],'ss='.$this->subsession); - $r.= ' ('.$c.'/'.count($this->nav['list']).')'; + $r .= '   '.$p->getLink($this->theme->getImage(left,'list').$lang['NavBack'],'ss='.$this->subsession); + $r.= '   ('.$c.'/'.count($this->nav['list']).')'; if (is_object($n)) - $r .= ' '.$n->getLink($lang['NavNext'].$this->theme->getImage(right,'list'),'ss='.$this->subsession); + $r .= '   '.$n->getLink($lang['NavNext'].$this->theme->getImage(right,'list'),'ss='.$this->subsession); } if ($this->nav['link'] != '') { Modified: trunk/php/layout/new2_layout.pinc =================================================================== --- trunk/php/layout/new2_layout.pinc 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/layout/new2_layout.pinc 2013-01-27 18:44:05 UTC (rev 908) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2003 - 2012 by Gero Kohnert + * Copyright 2003 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -479,7 +479,7 @@ $r .= ' dir="ltr"'; $r .= '>'."\n"; - $r .= "<!-- \nCopyright 1999 - 2012 by Gero Kohnert gok...@us... et al\n"; + $r .= "<!-- \nCopyright 1999 - 2013 by Gero Kohnert gok...@us... et al\n"; $r .= "all rights reserved\n-->\n"; $r .= " <head>\n"; $r .= " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=". $lang['content_encoding'] ."\"".$c; @@ -1071,7 +1071,7 @@ else $cols = 8; $r .= " <tr>\n"; - $r .= ' <td> </td>'; + $r .= ' <td> </td>'; if ( function_exists('tutos_end_banner') ) { $r .= ' <td colspan="'.$cols.'" id="endbanner">'; $r .= tutos_end_banner(); @@ -1116,7 +1116,7 @@ $r .= " </span></a>\n"; $r .= " </td>\n"; if ( function_exists('tutos_side_banner') && (tutos_side_banner() != '') ) { - $r .= ' <td> </td>'; + $r .= ' <td> </td>'; } $r .= " </tr>\n"; $r .= " </table>\n"; Modified: trunk/php/layout/new_base.pinc =================================================================== --- trunk/php/layout/new_base.pinc 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/layout/new_base.pinc 2013-01-27 18:44:05 UTC (rev 908) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2003 - 2012 by Gero Kohnert + * Copyright 2003 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -307,7 +307,7 @@ Function showdata($text,$cols = 1) { $r = ''; $r .= '<td colspan="'. $cols .'" class="data">'; - $r .= ( $text == '' ? ' ' : $text); + $r .= ( $text == '' ? ' ' : $text); $r .= "</td>\n"; return $r; } Modified: trunk/php/location.pinc =================================================================== --- trunk/php/location.pinc 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/location.pinc 2013-01-27 18:44:05 UTC (rev 908) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Modified: trunk/php/note/note.pinc =================================================================== --- trunk/php/note/note.pinc 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/note/note.pinc 2013-01-27 18:44:05 UTC (rev 908) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -36,9 +36,6 @@ } $r .= $user->layout->theme->getImage(note::getHtmlIcon(),'list') ." ". $f->getLink() ." ". $f->creation->getDateTime(); $r .= " ".(is_object($f->creator) ? $f->creator->getLink($f->creator->getShortname()):"")."<br />\n"; - if ( $cols > 0 ) { - $r .= "</td></tr>\n"; - } $n++; } return $r; Modified: trunk/php/product_new.php =================================================================== --- trunk/php/product_new.php 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/product_new.php 2013-01-27 18:44:05 UTC (rev 908) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * cloning option added by Michal Salaban 2003 * * This program is free software; you can redistribute it and/or modify it @@ -68,7 +68,7 @@ // Roles of peoples and teams etc. $r .= $this->EditRowStart(); $r .= $this->showfield($lang['ProdRoles']); - $r .= ' <th>'. $lang['ProdFunc'] .'</th><th>'. $lang['AdrName'] .'</th><th colspan="2">'. $lang['ProdRoleDesc'] ."</th><th> </th>\n"; + $r .= ' <th>'. $lang['ProdFunc'] .'</th><th>'. $lang['AdrName'] .'</th><th colspan="2">'. $lang['ProdRoleDesc'] ."</th><th> </th>\n"; $r .= $this->EditRowEnd(); // List all roles in this project @@ -98,7 +98,7 @@ if ( ! isset($this->obj->rdel[$val]) ) { $this->obj->rdel[$val] = ""; } - $r .= $this->showdata('<input type="checkbox" name="del[]" value="'. $val .'"'. $this->obj->rdel[$val] ." /> ". $lang['Remove'],1); + $r .= $this->showdata('<input type="checkbox" name="del[]" value="'. $val .'"'. $this->obj->rdel[$val] ." /> ". $lang['Remove'],1); $n++; $r .= $this->EditRowEnd(); } @@ -132,7 +132,7 @@ // $r .= $this->EditRowStart(); $r .= $this->showfield($lang['ProdProd']); - $r .= ' <th>'. $lang['ProdFunc'] ."</th><th>". $lang['AdrName'] .'</th><th colspan="2">'. $lang['ProdRoleDesc'] ."</th><th> </th>\n"; + $r .= ' <th>'. $lang['ProdFunc'] ."</th><th>". $lang['AdrName'] .'</th><th colspan="2">'. $lang['ProdRoleDesc'] ."</th><th> </th>\n"; $r .= $this->EditRowEnd(); // List all projectroles in this project if ( $this->obj->id > 0 ) { @@ -155,12 +155,12 @@ $r .= $this->showdata(' ',1); $r .= $this->showdata($lang['ProdRole'][$role].($old ? $lang['deprecated']:''),1); $r .= $this->showdata($o->getLink(),1); - $r .= $this->showdata(myentities($this->obj->roledesc[$role][$i]) .' ',2); + $r .= $this->showdata(myentities($this->obj->roledesc[$role][$i]) .' ',2); $val = $o->id .",". $role; if ( ! isset($this->obj->rdel[$val]) ) { $this->obj->rdel[$val] = ""; } - $r .= $this->showdata('<input type="checkbox" name="del[]" value="'. $val .'"'. $this->obj->rdel[$val] .' /> '. $lang['Remove'],1); + $r .= $this->showdata('<input type="checkbox" name="del[]" value="'. $val .'"'. $this->obj->rdel[$val] .' /> '. $lang['Remove'],1); $n++; $r .= $this->EditRowEnd(); } Modified: trunk/php/product_show.php =================================================================== --- trunk/php/product_show.php 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/product_show.php 2013-01-27 18:44:05 UTC (rev 908) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -52,7 +52,7 @@ $x .= $w->getLink(); } if ( !empty($this->obj->roledesc[$role][$i]) ) { - $x .= ' ('. myentities($this->obj->roledesc[$role][$i]) .")"; + $x .= ' ('. myentities($this->obj->roledesc[$role][$i]) .")"; } $n++; } @@ -128,7 +128,7 @@ if ($this->obj->price != '') { $r .= $this->showfield($lang['ProdPrice']); $x= array($this->obj->price,$this->obj->currency); - $r .= $this->showdata(handle('money',$x,my_number_format($this->obj->price,2) .' <b>'. $this->obj->currency .'</b>')); + $r .= $this->showdata(handle('money',$x,my_number_format($this->obj->price,2) .' <b>'. $this->obj->currency .'</b>')); } else { $r .= $this->showdata('',2); } @@ -136,7 +136,7 @@ if ($this->obj->cost != '') { $r .= $this->showfield($lang['ProdCost']); $x= array($this->obj->cost,$this->obj->currency); - $r .= $this->showdata(handle('money',$x,my_number_format($this->obj->cost,2) .' <b>'. $this->obj->currency .'</b>')); + $r .= $this->showdata(handle('money',$x,my_number_format($this->obj->cost,2) .' <b>'. $this->obj->currency .'</b>')); } else { $r .= $this->showdata('',2); } @@ -206,12 +206,12 @@ if ($tutos['task_show_buginfo'] == 1) { bug::obj_read($f); if (count($f->list[usebugtracking][1]) > 0) { - if ($d != '') $d .= ' '; + if ($d != '') $d .= ' '; $rx .= ($rx == '' ? '':', ').count($f->list[usebugtracking][1]).' '.$lang['Bugs']; } } if ($rx != '') { - $d .= ' ('.$rx.')'; + $d .= ' ('.$rx.')'; } $d .= "<br />\n"; $n++; Modified: trunk/php/rate/rate.pinc =================================================================== --- trunk/php/rate/rate.pinc 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/rate/rate.pinc 2013-01-27 18:44:05 UTC (rev 908) @@ -33,9 +33,6 @@ break; } $r .= ' '. $user->layout->theme->getImage(rate::getHtmlIcon(),'list') .' '. $f->getLink() .' '. my_number_format($f->cph,2) .' '. $f->currency .' ('. (is_object($f->worker) ? $f->worker->getLink():$lang['HistoryDeleted']) .")<br />\n"; - if ( $cols > 0 ) { - $r .= "</td></tr>\n"; - } $n++; } return $r; Modified: trunk/php/timetrack/timetrack_overview.php =================================================================== --- trunk/php/timetrack/timetrack_overview.php 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/timetrack/timetrack_overview.php 2013-01-27 18:44:05 UTC (rev 908) @@ -290,7 +290,7 @@ if ( $tt->t_start->notime != 1) { $xx .= '<br />'. $tt->t_start->getDateTimeShort() ." - ". $tt->t_end->getDateTimeShort(); } else { - $xx .= " "; + $xx .= " "; } $r .= $this->OverviewRowBlock($xx,'over_l'); Modified: trunk/php/url/url.pinc =================================================================== --- trunk/php/url/url.pinc 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/url/url.pinc 2013-01-27 18:44:05 UTC (rev 908) @@ -554,7 +554,7 @@ $r .= "<tr>\n"; $r .= $obj->showfieldc(sprintf($lang['URLQuery'],''),0,"urlselect"); - $r .= '<td colspan="2"> '; + $r .= '<td colspan="2"> '; $r .= ' <select name="urlselect" id="urlselect" >'; $r .= ' <option selected="selected" disabled="disabled"></option>'."\n"; foreach($this->list[useurl] as $f2) { @@ -698,7 +698,7 @@ foreach($obj->list[useurl] as $f) { $icon = $user->layout->theme->getImage(link,'list'); $d .= $pre.$icon.' '.$f->getLink(); - $d .= " (". makelink('url/url_new.php?id='. $f->id,$lang['Modify'],$lang['Modify']) .')'; + $d .= "  (". makelink('url/url_new.php?id='. $f->id,$lang['Modify'],$lang['Modify']) .')'; $pre = "<br />\n"; } if ($obj->getTypeId() == useurlcat) { @@ -803,7 +803,7 @@ $cnt++; } if ($cnt % 2 == 1) { - $r .= '<td colspan="2" width="50%"> </td>'; + $r .= '<td colspan="2" width="50%"> </td>'; $cnt++; } if ($cnt % 2 == 0) { Modified: trunk/php/user_overview.php =================================================================== --- trunk/php/user_overview.php 2013-01-26 18:53:34 UTC (rev 907) +++ trunk/php/user_overview.php 2013-01-27 18:44:05 UTC (rev 908) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -79,9 +79,9 @@ continue; } $r .= $this->OverviewRowStart($line,$f->login); - $r .= ' <td class="over_l" colspan="1">'. $f->getLink() ." </td>\n"; - $r .= ' <td class="over_l">'. makelink('user_new.php?uid='.$f->uid ,$f->login) ." </td>\n"; - $r .= ' <td class="over_l">'. $f->last_seen->getDateTime() ." </td>\n"; + $r .= ' <td class="over_l" colspan="1">'. $f->getLink() ."</td>\n"; + $r .= ' <td class="over_l">'. makelink('user_new.php?uid='.$f->uid ,$f->login) ."</td>\n"; + $r .= ' <td class="over_l">'. $f->last_seen->getDateTime() ." </td>\n"; $x1 = $f->last_host; if (($tutos['resolve_host'] == 1) && strstr($x1,".") && !strstr($x1," ")) { $x2 = @gethostbyaddr($x1); @@ -90,10 +90,10 @@ } $r .= ' <td class="over_ml">'. $x1 .($x2 != $x1 ? "<br />(".$x2.")":"") .'</td>'; $r .= ' <td align="center">'. ($f->disabled == 1 ? $lang['yes']:$lang['no']) .'</td>'; - $r .= ' <td class="over_l">'. $f->lang ." </td>\n"; - $r .= ' <td class="over_l">'. $f->tz ." </td>\n"; - $r .= ' <td class="over_l">'. $f->theme ." </td>\n"; - $r .= ' <td class="over_l">'. $f->ly ." </td>\n"; + $r .= ' <td class="over_l">'. $f->lang ." </td>\n"; + $r .= ' <td class="over_l">'. $f->tz ." </td>\n"; + $r .= ' <td class="over_l">'. $f->theme ." </td>\n"; + $r .= ' <td class="over_l">'. $f->ly ." </td>\n"; $r .= show_custom_overview_data($this,'people',$f); $r .= $this->MassUpdateField($f); $r .= $this->OverviewRowEnd($line++); @@ -105,7 +105,7 @@ if ( $tutos[massupdate] == 1 ) { $r .= $this->UpdateRowStart($this->flds-1); $r .= sprintf($lang['withmarked'],$lang['Users']); - $r .= " <select name=\"action\">\n"; + $r .= " <select name=\"action\">\n"; $r .= ' <option value="-1" selected="selected">'. $lang['ActionNil'] ."</option>\n"; $r .= ' <option value="-2">'. $lang['Delete'] ."</option>\n"; $r .= ' <option value="enable">'. sprintf($lang['SetTo'],$lang['UserDisabled'],$lang['no']) ."</option>\n"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-01-26 18:53:42
|
Revision: 907 http://sourceforge.net/p/tutos/code/907 Author: gokohnert Date: 2013-01-26 18:53:34 +0000 (Sat, 26 Jan 2013) Log Message: ----------- fix file search / adeed somem ore prepared statements / some code minimalization Modified Paths: -------------- trunk/Makefile trunk/homepage/bugstats.png trunk/homepage/download.html trunk/homepage/index.html trunk/homepage/status.html trunk/homepage/timetrack.png trunk/php/auth/auth.pinc trunk/php/checklist/checklist.pinc trunk/php/config_default.pinc trunk/php/db/table.pinc trunk/php/doctracker/doctracker.pinc trunk/php/expense/expense.pinc trunk/php/file/file.pinc trunk/php/file/mtable.pinc trunk/php/installation/installation.pinc trunk/php/invoice/invoice.pinc trunk/php/layout/layout_base.pinc trunk/php/location.pinc trunk/php/mailbox/mailbox.pinc trunk/php/note/note.pinc trunk/php/rate/rate.pinc trunk/php/reminder/reminder.pinc trunk/php/resource/resource.pinc trunk/php/subversion/svn.pinc trunk/php/task.pinc trunk/php/testmanager/testmanager.pinc trunk/php/url/url.pinc Property Changed: ---------------- trunk/ trunk/php/report-engine/ trunk/tutos_private/log/ trunk/tutos_private/session/ Index: trunk =================================================================== --- trunk 2013-01-23 06:11:10 UTC (rev 906) +++ trunk 2013-01-26 18:53:34 UTC (rev 907) Property changes on: trunk ___________________________________________________________________ Modified: svn:ignore ## -13,3 +13,4 ## testinst.sh repository config.pinc.* +LINT.out Modified: trunk/Makefile =================================================================== --- trunk/Makefile 2013-01-23 06:11:10 UTC (rev 906) +++ trunk/Makefile 2013-01-26 18:53:34 UTC (rev 907) @@ -2,7 +2,7 @@ # the ultimate team organization software # --------------------------------------- # -# Copyright 1999-2012 by Gero Kohnert +# Copyright 1999-2013 by Gero Kohnert # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the @@ -524,6 +524,11 @@ OTHER = ${CSSFILES} \ $(TOPFILES) \ php/.htaccess \ + tutos_private \ + tutos_private/.htaccess \ + tutos_private/log \ + tutos_private/session \ + tutos_private/repository \ tutos.lsm \ index.html \ default.html \ @@ -630,6 +635,10 @@ -e "s;tutos\[demo\] = [0-9]*;tutos[demo] = 0;g" \ < config.pinc.${DATE} > php/config_default.pinc @$(CHMOD) 644 php/config_default.pinc + @$(CHMOD) 755 tutos_private + @$(CHMOD) 777 tutos_private/log + @$(CHMOD) 777 tutos_private/repository + @$(CHMOD) 777 tutos_private/session # # create a backup file with all neccessary files # @@ -650,8 +659,8 @@ @cat tmp.$@ | grep -v "custom.p3" | grep -v "ja.p3" | grep -v "pt.p3" | grep -v "hu.p3" | grep -v "ca.p3"| grep -v "es-ve.p3" | grep -v "php/config.pinc" | grep -v "php/config.php" | grep -v "table_custom.pinc" | grep -v "php/hooks.php" | grep -v "php/test.*.php" | sort -u > $@ download-php: php.list additional - @tar -T php.list -cjf TUTOS-php-${FULLVERSION}.tar.bz2 - @tar -T php.list -czf TUTOS-php-${FULLVERSION}.tar.gz + @tar -T php.list --no-recursion -cjf TUTOS-php-${FULLVERSION}.tar.bz2 + @tar -T php.list --no-recursion -czf TUTOS-php-${FULLVERSION}.tar.gz @cat php.list | $(ZIP) $(ZIPARGS) -@ TUTOS-php-${FULLVERSION}.zip $(ZIP) TUTOS-php-${FULLVERSION}.zip -z < README @$(ECHO) "# Packages created (PHP)" Modified: trunk/homepage/bugstats.png =================================================================== (Binary files differ) Modified: trunk/homepage/download.html =================================================================== --- trunk/homepage/download.html 2013-01-23 06:11:10 UTC (rev 906) +++ trunk/homepage/download.html 2013-01-26 18:53:34 UTC (rev 907) @@ -12,7 +12,7 @@ <p /> A <b>better overview</b> over released version is available at <a href="https://sourceforge.net/projects/tutos/files/ |
From: <gok...@us...> - 2013-01-19 18:14:08
|
Revision: 905 http://sourceforge.net/p/tutos/code/905 Author: gokohnert Date: 2013-01-19 18:14:05 +0000 (Sat, 19 Jan 2013) Log Message: ----------- mail icon Modified Paths: -------------- trunk/php/file/file.pinc trunk/php/file/file_overview.php trunk/php/layout/theme_base.pinc trunk/php/mailbox/mailbox.pinc trunk/php/webelements.p3 Added Paths: ----------- trunk/html/email.png Added: trunk/html/email.png =================================================================== (Binary files differ) Index: trunk/html/email.png =================================================================== --- trunk/html/email.png 2013-01-19 14:25:20 UTC (rev 904) +++ trunk/html/email.png 2013-01-19 18:14:05 UTC (rev 905) Property changes on: trunk/html/email.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +image/png \ No newline at end of property Modified: trunk/php/file/file.pinc =================================================================== --- trunk/php/file/file.pinc 2013-01-19 14:25:20 UTC (rev 904) +++ trunk/php/file/file.pinc 2013-01-19 18:14:05 UTC (rev 905) @@ -1764,7 +1764,7 @@ return ''; } $q = 'SELECT * from '. $user->dbconn->prefix .'files where (adr_pic != 1 or adr_pic is null) and (author = '. $user->id .' or creator = '. $user->id .' or link_id = '. $user->id .') order by creation DESC'; -# TODO: secondary link + // TODO: secondary link $res = $user->dbconn->Exec($q); $n = $res->numrows(); $a = 0; @@ -1794,7 +1794,8 @@ $f->read_result($res,$a); if ( $f->see_ok() ) { $r .= " <tr>\n"; - $r .= ' <td>' . $f->getLink($f->name) ."</td>\n"; + $icon = get_icon($current_user->layout,$f->filename); + $r .= ' <td>'. $icon.' '.$f->getLink($f->name) ."</td>\n"; $r .= ' <td>' . $f->version ."</td>\n"; $r .= ' <td align="right">'. $f->creation->getDateTime() ."</td>\n"; $r .= " </tr>\n"; Modified: trunk/php/file/file_overview.php =================================================================== --- trunk/php/file/file_overview.php 2013-01-19 14:25:20 UTC (rev 904) +++ trunk/php/file/file_overview.php 2013-01-19 18:14:05 UTC (rev 905) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert & MEGA.COM.PL + * Copyright 1999 - 2013 by Gero Kohnert & MEGA.COM.PL * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -130,7 +130,7 @@ $x = $this->mark_filter(myentities($f->filename),'name'); $icon = get_icon($this,$f->filename); - $r .= $this->OverviewRowBlock($icon.$x,'over_l'); + $r .= $this->OverviewRowBlock($icon.' '.$x,'over_l'); if ($this->head['link_id']) { $xx = ''; Modified: trunk/php/layout/theme_base.pinc =================================================================== --- trunk/php/layout/theme_base.pinc 2013-01-19 14:25:20 UTC (rev 904) +++ trunk/php/layout/theme_base.pinc 2013-01-19 18:14:05 UTC (rev 905) @@ -153,7 +153,7 @@ $this->i[del] = $this->findImage('remove'); $this->i[find] = $this->findImage('find'); $this->i[edit] = $this->findImage('pencil'); - $this->i[mail] = $this->findImage('mail'); + $this->i[mail] = $this->findImage('email'); $this->a[up] = "UP"; $this->a[down] = "DOWN"; Modified: trunk/php/mailbox/mailbox.pinc =================================================================== --- trunk/php/mailbox/mailbox.pinc 2013-01-19 14:25:20 UTC (rev 904) +++ trunk/php/mailbox/mailbox.pinc 2013-01-19 18:14:05 UTC (rev 905) @@ -633,6 +633,14 @@ static function gettypeid () { return usemailboxes; } + + /** + * get the icon type + */ + static function getHtmlIcon () { + return 'email'; + } + /* --------------------------------------------------------------------------- * The following methods are abstract factory functions for groups * which handle the membership list of an object Modified: trunk/php/webelements.p3 =================================================================== --- trunk/php/webelements.p3 2013-01-19 14:25:20 UTC (rev 904) +++ trunk/php/webelements.p3 2013-01-19 18:14:05 UTC (rev 905) @@ -2377,7 +2377,8 @@ stristr($fn,'.bmp') || stristr($fn,'.gif')) { $icon = $ly->theme->getImage(page_img,'list'); - } else if (stristr($fn,'.eml')) { + } else if (stristr($fn,'.eml') || + stristr($fn,'.msg')) { $icon = $ly->theme->getImage(mail,'list'); } return $icon; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-01-19 14:25:24
|
Revision: 904 http://sourceforge.net/p/tutos/code/904 Author: gokohnert Date: 2013-01-19 14:25:20 +0000 (Sat, 19 Jan 2013) Log Message: ----------- fix reminaing temp file / utf8 Modified Paths: -------------- trunk/php/mail.pinc trunk/php/mailbox/mailbox.pinc Modified: trunk/php/mail.pinc =================================================================== --- trunk/php/mail.pinc 2013-01-19 14:20:52 UTC (rev 903) +++ trunk/php/mail.pinc 2013-01-19 14:25:20 UTC (rev 904) @@ -1036,7 +1036,7 @@ $r .= $to; } } - $r .= sprintf('%-10s: ',$lang['MailSubject']). iconv_mime_decode($this->subject) ."\n"; + $r .= sprintf('%-10s: ',$lang['MailSubject']). iconv_mime_decode($this->subject,ICONV_MIME_DECODE_CONTINUE_ON_ERROR,$lang['content_encoding']) ."\n"; return $r; } Modified: trunk/php/mailbox/mailbox.pinc =================================================================== --- trunk/php/mailbox/mailbox.pinc 2013-01-19 14:20:52 UTC (rev 903) +++ trunk/php/mailbox/mailbox.pinc 2013-01-19 14:25:20 UTC (rev 904) @@ -159,7 +159,7 @@ * method to call from check service */ static function checkservice (tutos_user $user) { - global $table,$current_user; + global $table,$current_user,$lang; loadmodule('file'); @@ -206,10 +206,11 @@ $f = new Tutos_file($user->dbconn); $f->id = -1; $f->name = ""; - $x = imap_mime_header_decode($hdr->subject); - foreach ($x as $f1) { - $f->name .= $f1->text; - } + $f->name = iconv_mime_decode($hdr->subject,ICONV_MIME_DECODE_CONTINUE_ON_ERROR,$lang['content_encoding']); + // $x = imap_mime_header_decode($hdr->subject); + // foreach ($x as $f1) { + // $f->name .= $f1->text; + // } $f->filename = $f->name.".eml"; $f->filesize = strlen($b); $f->md5 = md5($b); @@ -228,18 +229,9 @@ if(tutos_file::search_by_name($arr,$current_user,$f->md5)) { foreach ($arr as $ff) { if ($ff->filesize == $f->filesize) { - $fname = $ff->createPlainFile(); - $fp = fopen($fname, 'rb'); - $xx = ''; - while(!feof($fp)) { - $xx .= fread($fp,4096); - } - fclose($fp); - if ($xx == $f->content) { - $found = true; - unset($f); - break; - } + // found + $found = true; + break; } } if ($found) continue; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-01-19 14:20:56
|
Revision: 903 http://sourceforge.net/p/tutos/code/903 Author: gokohnert Date: 2013-01-19 14:20:52 +0000 (Sat, 19 Jan 2013) Log Message: ----------- fix revision history and undeleted tmp files Modified Paths: -------------- trunk/php/file/file.pinc trunk/php/file/file_show.php Modified: trunk/php/file/file.pinc =================================================================== --- trunk/php/file/file.pinc 2013-01-19 14:19:33 UTC (rev 902) +++ trunk/php/file/file.pinc 2013-01-19 14:20:52 UTC (rev 903) @@ -454,6 +454,15 @@ } /** + * drop a previously created plainfile + */ + function dropPlainFile($fn) { + global $tutos; + if (preg_match('#^tutosfile#',basename($fn))) + unlink($fn); + } + + /** * returns the path to a file containg uncomrpessed info */ function createPlainFile($v = '') { @@ -545,7 +554,7 @@ if ( function_exists('getimagesize') ) { if ( preg_match("#image/.*#",$this->filetype) ) { $im = getimagesize($fname,$info) ; - $r .= $im[3] ."\n"; + $r .= $im[3] ."<br />\n"; if (isset ($info["APP13"])) { $iptc = iptcparse ($info["APP13"]); if (is_array($iptc)) { @@ -573,7 +582,7 @@ } else if ($k2 == "UserComment") { $r .= "\t\t". $k2 ." => ". chop($v2)."<br />\n"; } else if ($k2 == "THUMBNAIL") { - $r .= "\t\t". $k2 .' => <img alt="'. $this->getFullName() .'" align="top" border="1" src="'. dirname(getBaseUrl()) .'/'. addSessionKey($this->getUrl().'&format=thumbnail') ."\">\n\n"; + $r .= "\t\t". $k2 .' => <img alt="'. $this->getFullName() .'" align="top" border="1" src="'. dirname(getBaseUrl()) .'/'. addSessionKey($this->getUrl().'&format=thumbnail') ."\"><br />\n"; } else if (gettype($v2) == "string") { $r .= "\t\t". $k2 ." => ". chop($v2)."<br />\n"; } else if (gettype($v2) == "integer") { @@ -593,6 +602,7 @@ } } } + $this->dropPlainFile($fn); } } if ( file_exists($tutos[wvSummary]) && is_executable($tutos[wvSummary])) { @@ -662,7 +672,6 @@ } elseif ( preg_match("#\.pdf$#i",$this->filename) || ($this->filetype == "application/pdf") ) { $fn = $this->createPlainFile(); if (file_exists($tutos[pdfinfo]) && is_executable($tutos[pdfinfo])) { - $fn = $this->createPlainFile(); $r .= "PDF Info<pre>"; $p = popen ($tutos[pdfinfo]. ' "'. $fn .'"','r'); if (!is_resource($p)) { @@ -683,6 +692,7 @@ } } } + $this->dropPlainFile($fn); } return $r; } @@ -740,6 +750,7 @@ $tmpname = tempnam ($tutos[sessionpath], 'tutosfile'); @passthru($tutos[file_co].' -r"'. $v .'" -p "'. $fname .'" >'.$tmpname ); $this->myreadfile ($tmpname); + unlink($tmpname); return; } else { $this->myreadfile ($fname); @@ -759,9 +770,7 @@ if ( ($v == '') || ($this->vsys == FILE_NOVERS) ) { $exif = exif_read_data ($fname,'ANY_TAG',true,true); $r .= $exif["THUMBNAIL"]["THUMBNAIL"]; - return $r; - } - if ( $this->vsys == FILE_COPY ) { + } else if ( $this->vsys == FILE_COPY ) { if ( file_exists($fname ."_". $v)) { $exif = exif_read_data ($fname .'_'. $v,'ANY_TAG',true,true); $r .= $exif["THUMBNAIL"]["THUMBNAIL"]; @@ -770,6 +779,7 @@ $r .= $exif["THUMBNAIL"]["THUMBNAIL"]; } } + $this->dropPlainFile($fname); return $r; } @@ -1060,14 +1070,12 @@ arsort ($this->vlist); } else if ( ($this->vsys == FILE_RCS ) && (is_executable($tutos[file_rlog])) ) { // RCS - exec($tutos[file_rlog] .' -h '. $fname ."| grep '^.V' ",$arr); - @reset($arr); - while ( list ($i,$v) = @each ($arr) ) { - $v = chop($v); - $n=strpos($v,":"); - $r1=substr($v,1 , ($n -1) ); - $r2=substr($v, ($n +2) ,strlen($v)); - $this->vlist[$r1] = $r2; + exec($tutos[file_rlog] .' '. $fname ."| grep ^revision ",$arr); + foreach ($arr as $i => $v) { + $varr=explode(' ',$v); + $x =array(); + $r2 = preg_match('#([0-9.]*)#',$varr[1],$x); + $this->vlist[$x[1]] = $x[1]; } } } Modified: trunk/php/file/file_show.php =================================================================== --- trunk/php/file/file_show.php 2013-01-19 14:19:33 UTC (rev 902) +++ trunk/php/file/file_show.php 2013-01-19 14:20:52 UTC (rev 903) @@ -36,22 +36,22 @@ Function info_thumb() { global $tutos,$lang; - if (strstr($_SERVER["HTTP_USER_AGENT"],"MSIE 5") || strstr($_SERVER["HTTP_USER_AGENT"],"MSIE 6") ) { - Header("Expires:"); - Header("Cache-Control:"); - Header("Pragma:"); - Header("Content-Type: application/octet-stream"); - Header("Connection: close"); - Header("Content-Transfer-Encoding: binary"); + Header("Expires: 0"); + Header("Cache-control:"); + Header("Pragma:"); + Header("Content-Description: ". $this->name ); + + Header("Content-Type: application/octet-stream"); + Header("Connection: close"); + Header("Content-Transfer-Encoding: binary"); + + if ( ($this->obj->filetype != "") && ($this->obj->version == $this->version) ) { + Header("Content-type: ". $this->obj->filetype); } else { - if ( ($this->obj->filetype != "") && ($this->obj->version == $this->version) ) { - Header("Content-type: ". $this->obj->filetype); - } else { - Header("Content-type: text/plain"); - } - Header("Content-Disposition: inline; filename=\"thumb_". $this->obj->filename ."\""); + Header("Content-type: text/plain"); } - Header("Content-Description: Upload from TUTOS" ); + Header("Content-Disposition: inline; filename=\"thumb_". $this->obj->filename ."\""); + return $this->obj->thumbnail($this->version); } /** @@ -59,10 +59,7 @@ */ Function info_download() { global $tutos,$lang; - // see also - // http://www.phpbuilder.com/forum/archives/1/2001/3/4/113046 - // http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html - // http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/moniker/overview/appendix_a.asp + if (strstr($_SERVER["HTTP_USER_AGENT"],"MSIE 5") || strstr($_SERVER["HTTP_USER_AGENT"],"MSIE 6") ) { Header("Expires:"); Header("Cache-Control:"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-01-19 14:19:37
|
Revision: 902 http://sourceforge.net/p/tutos/code/902 Author: gokohnert Date: 2013-01-19 14:19:33 +0000 (Sat, 19 Jan 2013) Log Message: ----------- new tutos_provae structure to help installing on standard webaccouts Modified Paths: -------------- trunk/php/check.php trunk/php/config_default.pinc trunk/php/db.p3 trunk/php/permission.p3 Added Paths: ----------- trunk/tutos_private/ trunk/tutos_private/.htaccess trunk/tutos_private/log/ trunk/tutos_private/repository/ trunk/tutos_private/session/ Modified: trunk/php/check.php =================================================================== --- trunk/php/check.php 2013-01-16 13:42:40 UTC (rev 901) +++ trunk/php/check.php 2013-01-19 14:19:33 UTC (rev 902) @@ -65,6 +65,7 @@ ReadLang($lang); loadmodules('check','new'); +session_destroy(); session_write_close(); // run some DB cleanups that might be neccessary Modified: trunk/php/config_default.pinc =================================================================== --- trunk/php/config_default.pinc 2013-01-16 13:42:40 UTC (rev 901) +++ trunk/php/config_default.pinc 2013-01-19 14:19:33 UTC (rev 902) @@ -133,11 +133,7 @@ # ATTENTION: On Windows Change this to something your system understands !!! # Like : $tutos[sessionpath] = "c:\\Temp"; # -if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) { - $tutos[sessionpath] = 'C:/Temp'; -} else { - $tutos[sessionpath] = '/tmp'; -} +$tutos[sessionpath] = 'tutos_private/session'; # # Where to put the log output for developing and bughunting # ATTENTION: On Windows Change this to something your system understands !!! @@ -146,7 +142,7 @@ # TUTOS will create some files that are named like /tmp/debug.out and /tmp/debug.out.log # You have to remove old versions of these files by your own ! # -$tutos[errlog] = $tutos[sessionpath] .'/debug.out'; +$tutos[errlog] = 'tutos_private/log/debug.out'; # # Logo for the headline # (Change this to your company logo or whatever you like) @@ -155,7 +151,6 @@ # NOTE: a value in the database entry will override these settings !! # call adminpage -> Konfig # -#$tutos['logo'] = "http://sflogo.sourceforge.net/sflogo.php?group_id=8048&type=13"; $tutos['logo'] = "html/tutos_small.png"; $tutos['logolink'] = "http://www.tutos.org"; # @@ -478,9 +473,9 @@ # 1 = yes use mobile # 0 = no # (it is possible to change this in per user settings) + # + $tutos['mobilely'] = 0; # -$tutos['mobilely'] = 0; -# # Available icons for tablerows in TUTOS # $tutos[rowiconsbefore] = array(); @@ -758,4 +753,4 @@ ### mode:iso-accents *** ### coding:utf-8 *** ### End: *** -?> +?> \ No newline at end of file Modified: trunk/php/db.p3 =================================================================== --- trunk/php/db.p3 2013-01-16 13:42:40 UTC (rev 901) +++ trunk/php/db.p3 2013-01-19 14:19:33 UTC (rev 902) @@ -294,6 +294,14 @@ '<p>You should carefully read <tt>....tutos/php/config_default.php</tt> and copy all lines you like to change into your <tt>....tutos/php/config.php</tt>.'. "<p />If the php direcotry is writeable for apache you can try to create one with this script. <a href=".$tutos['base']."/php/admin/create_config.php>create_config.php</a>\n"); } + +// handle absolut/relative pathes +if (!preg_match('#^/#',$tutos[sessionpath])) { + $tutos[sessionpath] = $tutos['base'].'/'.$tutos[sessionpath]; +} +if (!preg_match('#^/#',$tutos[errlog])) { + $tutos[errlog] = $tutos['base'].'/'.$tutos[errlog]; +} // // now read modules config // @@ -368,7 +376,7 @@ $tutos[use_check_dbacl] = 0; } # a software called tutos should do this - $tutos[useteams] = 1; +$tutos[useteams] = 1; $tutos[useuser] = 1; $tutos[usedbs] = 1; $tutos[usecompany] = 1; @@ -439,6 +447,7 @@ $confmsg .= '<br />check invautoname. Instead of $tutos[invautoname] in your config you should define it only '.makelink('invoice/invoice_config.php','here'); } if (isset($tutos[taskautoname])) { + $confmsg .= '<br />check taskautoname. Instead of $tutos[taskautoname] in your config you should define it only '.makelink('admin/main_config.php','here'); } if (isset($tutos[proxyhost])) { Modified: trunk/php/permission.p3 =================================================================== --- trunk/php/permission.p3 2013-01-16 13:42:40 UTC (rev 901) +++ trunk/php/permission.p3 2013-01-19 14:19:33 UTC (rev 902) @@ -684,7 +684,7 @@ return; } while (false !== ($file = readdir($handle))) { - if ( ! preg_match('#^sess_#',$file) ) { + if ( !preg_match('#^sess_#',$file) && !preg_match('#^tutosfile#',$file) ) { continue; } @@ -693,9 +693,16 @@ if ( ! is_writeable($filename) ) continue; $age = time() - filemtime($filename); - if ($age < (2* $tutos['timetolive'] * 60)) { - continue; + if ( preg_match('#^sess_#',$file) ) { + if ($age < (2* $tutos['timetolive'] * 60)) { + continue; + } } + if ( preg_match('#^tutosfile#',$file) ) { + if ( $age < 60 ) { + continue; + } + } // echo $filename." ".date ("F d Y H:i:s.", filemtime($filename))." ". $age/3600 ."<br>\n"; unlink($filename); } Added: trunk/tutos_private/.htaccess =================================================================== --- trunk/tutos_private/.htaccess (rev 0) +++ trunk/tutos_private/.htaccess 2013-01-19 14:19:33 UTC (rev 902) @@ -0,0 +1,10 @@ +# +# This file is part of TUTOS +# +# +# $Id: .htaccess,v 1.1 2004/03/27 16:37:56 gokohnert Exp $ +# +# Dont allow access to files +# +Order allow,deny +Deny from all This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-01-16 07:37:35
|
Revision: 899 http://sourceforge.net/p/tutos/code/899 Author: gokohnert Date: 2013-01-16 07:37:32 +0000 (Wed, 16 Jan 2013) Log Message: ----------- fix Modified Paths: -------------- trunk/php/webelements.p3 Modified: trunk/php/webelements.p3 =================================================================== --- trunk/php/webelements.p3 2013-01-15 12:12:47 UTC (rev 898) +++ trunk/php/webelements.p3 2013-01-16 07:37:32 UTC (rev 899) @@ -530,6 +530,7 @@ Function PHP_Error ($errno,$errstr,$errfile, $errline) { global $dbconn , $tutos, $current_user; + date_default_timezone_set($tutos[defaultTZ]); if ($errno == 2048) return; // deprecated an other stuff $r = "--------------------------\n"; $r .= "DateTime:\t". Date("d.M.Y H:i:s T") ."\n"; @@ -2376,6 +2377,8 @@ stristr($fn,'.bmp') || stristr($fn,'.gif')) { $icon = $ly->theme->getImage(page_img,'list'); + } else if (stristr($fn,'.eml')) { + $icon = $ly->theme->getImage(mail,'list'); } return $icon; } @@ -2640,7 +2643,7 @@ * parse input for a specific setting * store in object or global array */ -function config_field_parse($dbconn,$fld,$obj = null) { +function config_field_parse(tutos_db $dbconn,$fld,$obj = null) { global $tutos,$msg,$info; $stop = false; @@ -2686,7 +2689,9 @@ } break; case 'sel': - if (isset($tutos['cfg'][$fld]['multi']) && $tutos['cfg'][$fld]['multi'] == 1) { + if (!isset($_REQUEST[$fld]) ) { + $val = ''; + } else if (isset($tutos['cfg'][$fld]['multi']) && $tutos['cfg'][$fld]['multi'] == 1) { $val = implode(',',$_REQUEST[$fld]); } else { $val = $_REQUEST[$fld]; @@ -2694,7 +2699,11 @@ // $info = addLine($info,'set:'.$fld.' to '.$val); break; case 'stc': - $val = implode(',',$_REQUEST[$fld]); + if (!isset($_REQUEST[$fld]) ) { + $val = ''; + } else { + $val = implode(',',$_REQUEST[$fld]); + } // $info = addLine($info,'set:'.$fld.' to '.$val); break; default: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-01-14 09:21:22
|
Revision: 894 http://sourceforge.net/p/tutos/code/894 Author: gokohnert Date: 2013-01-14 09:21:17 +0000 (Mon, 14 Jan 2013) Log Message: ----------- refixed auto import of mails Modified Paths: -------------- trunk/php/file/file.pinc trunk/php/file/file_overview.php trunk/php/layout/theme_base.pinc trunk/php/mailbox/mailbox.pinc trunk/php/mailbox/mailbox_show.php Modified: trunk/php/file/file.pinc =================================================================== --- trunk/php/file/file.pinc 2013-01-12 19:04:14 UTC (rev 893) +++ trunk/php/file/file.pinc 2013-01-14 09:21:17 UTC (rev 894) @@ -284,8 +284,10 @@ $q = "DELETE FROM ". $this->tablename2 ." WHERE f_id = ". $this->id; $this->dbconn->Exec($q); foreach ($this->links as $i => $f) { - $q = "INSERT INTO ". $this->tablename2 ." (f_id,link_id) VALUES (". $this->id .",". $i .")"; - $this->dbconn->Exec($q); + if ($i > 0) { + $q = "INSERT INTO ". $this->tablename2 ." (f_id,link_id) VALUES (". $this->id .",". $i .")"; + $this->dbconn->Exec($q); + } } } @@ -303,6 +305,10 @@ $q = "SELECT ".($mode == 1 ? '*':'id')." from ". $user->dbconn->prefix .$table['file'][name]; if (preg_match('/#([0-9]*)/',trim($name),$regs) && is_numeric($regs[1])) { $q .= ' where id = '.$regs[1]; + } else if (preg_match('/([a-f,0-9]*)/',trim($name),$regs) ) { + // search also md5 if pattern matches + $q .= ' where '.$user->dbconn->Like("md5",$regs[1]); + $q .= ' or '.$user->dbconn->Like("name",$name,"version"); } else { $q .= ' where '.$user->dbconn->Like("name",$name,"version"); } @@ -689,6 +695,7 @@ if (! preg_match('#image#',$this->filetype) && !preg_match('#text/plain#',$this->filetype) + && !preg_match('#message/rfc822#',$this->filetype) && !preg_match("#\.ini$#i",$this->filename) && !preg_match("#\.txt$#i",$this->filename) ) { @@ -787,6 +794,10 @@ $info .= '<div id="file_content">'; if ( preg_match('#image#',$this->filetype) ) { $info .= '<div class="img_preview"><a href="'.$url.'"><img class="file_preview" src="'.$url.'"></a></div><br />'; + } else if ( preg_match('#message/rfc822#',$this->filetype) ) { + $info .= '<div class="txt_preview pre">'; + $info .= $this->moreinfo($ly); + $info .= '</div>'; } else { $info .= '<div class="txt_preview pre">'; $info .= myentities(file_get_contents($fname,false,null,-1,100)); @@ -1553,7 +1564,7 @@ /** * Read all urls related to given id */ - static function obj_read(&$obj) { + static function obj_read(tutos_base $obj) { global $table; if (! is_object($obj) ) return; Modified: trunk/php/file/file_overview.php =================================================================== --- trunk/php/file/file_overview.php 2013-01-12 19:04:14 UTC (rev 893) +++ trunk/php/file/file_overview.php 2013-01-14 09:21:17 UTC (rev 894) @@ -198,7 +198,7 @@ foreach ($_GET['mark'] as $val) { $b = new tutos_file($this->dbconn); $b = $b->read($val,$b); - if ( $b->id != $val ) { + if ( !is_object($b) || ($b->id != $val) ) { continue; } if ( $b->del_ok() ) { Modified: trunk/php/layout/theme_base.pinc =================================================================== --- trunk/php/layout/theme_base.pinc 2013-01-12 19:04:14 UTC (rev 893) +++ trunk/php/layout/theme_base.pinc 2013-01-14 09:21:17 UTC (rev 894) @@ -153,6 +153,7 @@ $this->i[del] = $this->findImage('remove'); $this->i[find] = $this->findImage('find'); $this->i[edit] = $this->findImage('pencil'); + $this->i[mail] = $this->findImage('mail'); $this->a[up] = "UP"; $this->a[down] = "DOWN"; Modified: trunk/php/mailbox/mailbox.pinc =================================================================== --- trunk/php/mailbox/mailbox.pinc 2013-01-12 19:04:14 UTC (rev 893) +++ trunk/php/mailbox/mailbox.pinc 2013-01-14 09:21:17 UTC (rev 894) @@ -159,7 +159,7 @@ * method to call from check service */ static function checkservice (tutos_user $user) { - global $table; + global $table,$current_user; loadmodule('file'); @@ -184,21 +184,23 @@ $id = $hkey; $m->errors("mail headers of mail ". $id); $u = trim(imap_uid($m->mbox,$hdr->Msgno)); - $b = imap_fetchheader($m->mbox,imap_msgno($m->mbox,$hdr->Msgno)); - $b .= imap_body($m->mbox,imap_msgno($m->mbox,$hdr->Msgno)); + $b = imap_fetchheader($m->mbox,imap_msgno($m->mbox,$hval)); + $b .= imap_body($m->mbox,imap_msgno($m->mbox,$hval)); $email_adr = array(); - foreach ($hdr->from as $id => $object) { - array_push($email_adr, strtolower($object->mailbox . "@" . $object->host)); + foreach ($hdr->from as $id => $o) { + array_push($email_adr, strtolower($o->mailbox . "@" . $o->host)); } - foreach ($hdr->to as $id => $object) { - array_push($email_adr, strtolower($object->mailbox . "@" . $object->host)); + foreach ($hdr->to as $id => $o) { + array_push($email_adr, strtolower($o->mailbox . "@" . $o->host)); } - foreach ($hdr->cc as $id => $object) { - array_push($email_adr, strtolower($object->mailbox . "@" . $object->host)); - } - foreach ($hdr->bcc as $id => $object) { - array_push($email_adr, strtolower($object->mailbox . "@" . $object->host)); - } + if (isset($hdr->cc)) + foreach ($hdr->cc as $id => $o) { + array_push($email_adr, strtolower($o->mailbox . "@" . $o->host)); + } + if (isset($hdr->bcc)) + foreach ($hdr->bcc as $id => $o) { + array_push($email_adr, strtolower($o->mailbox . "@" . $o->host)); + } $email_adr = array_unique($email_adr); $f = new Tutos_file($user->dbconn); @@ -215,22 +217,56 @@ $f->author = $m->parent; $f->addReference($m->parent); $f->content = $b; + $f->acl = $m->acl; + if (strlen($b) == 0) { + unset($f); + continue; + } + // check if file already exists (check md5) + $arr = array(); + $found = false; + if(tutos_file::search_by_name($arr,$current_user,$f->md5)) { + foreach ($arr as $ff) { + if ($ff->filesize == $f->filesize) { + $fname = $ff->createPlainFile(); + $fp = fopen($fname, 'rb'); + $xx = ''; + while(!feof($fp)) { + $xx .= fread($fp,4096); + } + fclose($fp); + if ($xx == $f->content) { + $found = true; + unset($f); + break; + } + } + } + if ($found) continue; + } $pre = " and ("; - $q = 'SELECT distinct adr_id ID from '.$user->dbconn->prefix.$table['location'][name].', '.$user->dbconn->prefix.$table['address1'][name].' where adrloc.loc_id = location.id'; - foreach ($email_adr as $id => $object) { - $q .= " ". $pre . $user->dbconn->Like("email_1",$object); + $q = 'SELECT distinct a.adr_id from '.$user->dbconn->prefix.$table['location'][name].' l, '.$user->dbconn->prefix.$table['address1'][name].' a where a.loc_id = l.id'; + foreach ($email_adr as $id => $o) { + $q .= " ". $pre . $user->dbconn->Like("l.email_1",$o); $pre = " or "; - $q .= " ". $pre . $user->dbconn->Like("email_2",$object); + $q .= " ". $pre . $user->dbconn->Like("l.email_2",$o); } $q .= ')'; - $res = $user->dbconn->Exec($q); - for ($i = 0; $i < $res->numrows(); $i++) { + $r1 = $user->dbconn->Exec($q); + $n1 = $r1->numrows(); + $i1 = 0; + while ($i1 < $n1) { $adr = new Tutos_address($user->dbconn); - $adr->read_result($res, $i); - $f->addReference($adr); + $nn = $r1->get($i1,'adr_id'); + $adr = $adr->read($nn,$adr); + if (is_object($adr)) + $f->addReference($adr); + $i1++; } + $r1->free(); $msg = addLine($msg,$f->save()); + // break; } $a++; $msg = addLine($msg,$m->close()); Modified: trunk/php/mailbox/mailbox_show.php =================================================================== --- trunk/php/mailbox/mailbox_show.php 2013-01-12 19:04:14 UTC (rev 893) +++ trunk/php/mailbox/mailbox_show.php 2013-01-14 09:21:17 UTC (rev 894) @@ -179,7 +179,7 @@ } $r .= " </td>\n"; $r .= " <td> ". $hdr->Recent . $hdr->Unseen . $hdr->Answered . $hdr->Deleted . $hdr->Draft . $hdr->Flagged ."</td>\n"; -# pretty format size + // pretty format size $s = $hdr->Size; $x = "Bytes"; if ($s > 1024) { @@ -256,28 +256,7 @@ $r .= $this->actionformEnd("mailbox_show.php"); return $r; } - /** - * navigate - */ - Function navigate() { - global $lang; - $r = ''; - $r .= "<tr><td>\n"; - if ( ($this->obj->id > 0) && $this->obj->see_ok() ) { - if ( $this->user->feature_ok(usemailboxes,PERM_SEL) ) { - $url = "mailbox/mail_select.php?id=". $this->obj->id ; - $url = addUrlParameter($url,"path=".base64_Encode($this->obj->addpath)); - $r .= menulink($url ,$lang['Search'],sprintf($lang['MailboxSearch'],$this->obj->getFullname())) ." <br />"; - } - } - - if ( ($this->obj->id > 0) && ($this->obj->addpath != "") ) { - $r .= confirmlink("mailbox/mailbox_show.php?id=". $this->obj->id ."&delfolder=". base64_Encode($this->obj->addpath) ,$lang['Delete'],sprintf($lang['MailDelFolderI'],$this->obj->addpath)) ." <br />"; - } - $r .= "</td></tr>\n"; - return $r; - } /** * prepare */ @@ -339,13 +318,34 @@ } if ( ($this->obj->id > 0) && $this->obj->mod_ok() ) { - $x = array( url => $this->obj->getModUrl(), - text => $lang['Modify'], - info => sprintf($lang['MailboxModifyI'],$this->obj->getFullname()), + $x = array( url => $this->obj->getModUrl(), + text => $lang['Modify'], + info => sprintf($lang['MailboxModifyI'],$this->obj->getFullname()), category => array('mailbox','mod','obj') ); $this->addMenu($x); } + if ( ($this->obj->id > 0) && $this->obj->see_ok() ) { + if ( $this->user->feature_ok(usemailboxes,PERM_SEL) ) { + $url = "mailbox/mail_select.php?id=". $this->obj->id ; + $url = addUrlParameter($url,"path=".base64_Encode($this->obj->addpath)); + $x = array(url => $url, + text => $lang['Search'], + info => sprintf($lang['MailboxSearch'],$this->obj->getFullname()), + category => array('mailbox','search','obj') + ); + $this->addMenu($x); + } + } + if ( ($this->obj->id > 0) && ($this->obj->addpath != "") ) { + $url = 'mailbox/mailbox_show.php?id='.$this->obj->id .'&delfolder='. base64_Encode($this->obj->addpath); + $x = array(url => $url, + text => $lang['Delete'], + info => sprintf($lang['MailDelFolderI'],$this->obj->addpath), + category => array('mailbox','search','obj') + ); + $this->addMenu($x); + } // Open the box if ( ($this->stop == false) ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |