phplib-trackers Mailing List for PHPLIB (Page 2)
Brought to you by:
nhruby,
richardarcher
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(91) |
Sep
(12) |
Oct
(26) |
Nov
(16) |
Dec
(14) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(37) |
Feb
(22) |
Mar
(39) |
Apr
(74) |
May
(14) |
Jun
(17) |
Jul
(81) |
Aug
(32) |
Sep
(28) |
Oct
(18) |
Nov
(8) |
Dec
(6) |
2003 |
Jan
(6) |
Feb
(11) |
Mar
(5) |
Apr
(4) |
May
(6) |
Jun
(6) |
Jul
(5) |
Aug
(3) |
Sep
(8) |
Oct
(4) |
Nov
(2) |
Dec
(2) |
2004 |
Jan
(1) |
Feb
|
Mar
(3) |
Apr
(8) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
(2) |
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2006 |
Jan
|
Feb
(2) |
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(2) |
Nov
|
Dec
|
2007 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2009 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(41) |
Nov
|
Dec
(78) |
From: SourceForge.net <no...@so...> - 2004-12-16 04:08:26
|
Bugs item #835622, was opened at 2003-11-04 02:42 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=835622&group_id=31885 Category: Template Group: None Status: Closed Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Richard Archer (richardarcher) Summary: MISTAKE ? Initial Comment: Notice: Undefined offset: 0 in d:\albumphoto\PhpRessources\Lib\phplib\template.inc on line 320 --> $this->set_var($varname, $m[1][0]); ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-12-15 20:08 Message: Logged In: NO You've defined a block that doesn't exist in your template file... Check your block names against the block definitions... ---------------------------------------------------------------------- Comment By: Richard Archer (richardarcher) Date: 2004-04-21 00:29 Message: Logged In: YES user_id=279311 The error message is caused by a mistake in the calling script (an attempt has been made to extract a block which does not exist). I've altered the code to report an error in this instance. ---------------------------------------------------------------------- Comment By: Richard Archer (richardarcher) Date: 2003-11-04 03:43 Message: Logged In: YES user_id=279311 why do you think this is a bug? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=835622&group_id=31885 |
From: SourceForge.net <no...@so...> - 2004-10-10 07:21:18
|
Support Requests item #688599, was opened at 2003-02-18 02:17 Message generated for change (Comment added) made by asasas You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=688599&group_id=31885 Category: None Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: phplib under win32 with php_mod Initial Comment: I get the following message : "Fatal error: Cannot redeclare gc() in ...\phplib\session.inc on line 464" The system configuration is Win XP home / Apache 2.0.43 / PHP 4.3.0RC3 (module) / PHPLib 7.4-pre2 The problem don't occur if I use PHP as a CGI program ---------------------------------------------------------------------- Comment By: dsafas (asasas) Date: 2004-10-09 23:21 Message: Logged In: YES user_id=122300 asda ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=688599&group_id=31885 |
From: SourceForge.net <no...@so...> - 2004-10-07 21:44:11
|
Support Requests item #1042587, was opened at 2004-10-07 14:44 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=1042587&group_id=31885 Category: None Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: byass default login page Initial Comment: In 2000, a posting has put out on phpbuilder.com that includes an alternate 'auth_preauth' function (http://www.phpbuilder.com/lists/phplib- list/200002/0324.php). This is for using your own login form on a page instead of having the defuly form appear when you access a protected resource. I added the function to my extension of the auth class, but it doesn't execute when logging in. Can anyone tell me how to do this? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=1042587&group_id=31885 |
From: SourceForge.net <no...@so...> - 2004-10-07 21:04:14
|
Support Requests item #1042558, was opened at 2004-10-07 14:04 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=1042558&group_id=31885 Category: None Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: byass default login page Initial Comment: In 2000, a posting has put out on phpbuilder.com that includes an alternate 'auth_preauth' function (http://www.phpbuilder.com/lists/phplib- list/200002/0324.php). This is for using your own login form on a page instead of having the defuly form appear when you access a protected resource. I added the function to my extension of the auth class, but it doesn't execute when logging in. Can anyone tell me how to do this? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=1042558&group_id=31885 |
From: SourceForge.net <no...@so...> - 2004-05-02 18:47:58
|
Feature Requests item #718683, was opened at 2003-04-10 01:44 Message generated for change (Comment added) made by koala_s You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403614&aid=718683&group_id=31885 Category: None Group: None Status: Open Priority: 5 Submitted By: Richard Archer (richardarcher) Assigned to: Nobody/Anonymous (nobody) Summary: Strip comments from templates Initial Comment: This idea from a post to the -users list by Sven: Add a method to Template to strip comments from a template file. This would be useful to: 1. remove comments which are present only to make the template easier to maintain. These are for the use of the site builders and should never be sent to the user. 2. remove untouched BEGIN/END block comments. I often have either/or blocks, one of which gets deleted and the other one stays there, comments and all. The user has no need to see those comments. Default behaviour could be for finish to strip comments from the template, just as it currently processes remaining {} tags. Original post from Sven: Hello Give it an easy way to delete comments in a template file so that the output not have the comments? I will not use the HTML-method (<!-- ... -->) for commenting my template files. My idea is a comment beginn with '{*' and end with '*}' or so. The first idea was to make an owe function in template.inc to filter that comments. But i hope it give an easy way as an own function. PS: I working with a cvs version of phplib. ---------------------------------------------------------------------- Comment By: Sven Eichler (koala_s) Date: 2004-05-02 20:47 Message: Logged In: YES user_id=253680 --- /CVS/php-lib-stable/php/template.inc 2004-04-22 23:17:01.000000000 +0200 +++ /CVS/mylib/template.inc.php 2004-05-02 19:31:16.000000000 +0200 @@ -52,6 +52,13 @@ * */ +/* + * Change log by Koala 02.05.2004 + * + * new function delete_comment($str) + * + */ + /** * The template class allows you to keep your HTML code in some external files * which are completely free of PHP code, but contain replacement fields. @@ -170,6 +177,24 @@ */ var $last_error = ""; + /** + * Comments in templates can begin with this. + * + * @var string + * @access public + */ + var $left_delimiter = '{*'; + + /** + * Comments in templates can end with this. + * + * @var string + * @access public + */ + var $right_delimiter = '*}'; + + + / ****************************************************************************** * Class constructor. May be called with two optional parameters. * The first parameter sets the template directory the second parameter @@ -777,14 +802,17 @@ function finish($str) { switch ($this->unknowns) { case "keep": + $str = $this->delete_comment($str); break; case "remove": $str = preg_replace('/{[^ \t\r\n}]+}/', "", $str); + $str = $this->delete_comment($str); break; case "comment": $str = preg_replace('/{([^ \t\r\n}]+)}/', "<!-- Template variable \1 undefined -->", $str); + $str = $this->delete_comment($str); break; } @@ -986,5 +1014,29 @@ printf("<b>Template Error:</b> %s<br>\n", $msg); } + + / ****************************************************************************** + * This function strip comments from templates. + * + * Returns: + * + * @param $str + * @access public + * @return string + */ + function delete_comment($str) { + if ($this->debug & 1) { + print("<b>Varname:</b> $str<br>\n"); + } + + // Quote regular expression characters + $ldq = preg_quote($this->left_delimiter, '!'); + $rdq = preg_quote($this->right_delimiter, '!'); + + $str = preg_replace("!$ldq(.*?)$rdq!se", "", $str); + + return $str; + } + } ?> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403614&aid=718683&group_id=31885 |
From: SourceForge.net <no...@so...> - 2004-04-21 10:48:44
|
Bugs item #833063, was opened at 2003-10-31 00:53 Message generated for change (Comment added) made by richardarcher You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=833063&group_id=31885 Category: Authentication Group: None >Status: Closed >Resolution: Accepted Priority: 5 Submitted By: Andres Toomsalu (frame) >Assigned to: Richard Archer (richardarcher) Summary: new_user_md5.php3 misses $hashpass from $_POST Initial Comment: new_user_md5.php3 packaged with phplib 7.4 doesn't work out of the box as expected - I think because if (isset($HTTP_POST_VARS['hashpass'])) $hashpass = $HTTP_POST_VARS['hashpass']; is missing from that file. This little patch works for me at least. I think previous new_user_md5.php3 phplib (7.2 for example) versions were broken too but due to different reasons (some variable name typos if I remember correctly). It would be nice to have it fixed. ---------------------------------------------------------------------- >Comment By: Richard Archer (richardarcher) Date: 2004-04-21 20:48 Message: Logged In: YES user_id=279311 I have committed this to CVS, largely untested. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=833063&group_id=31885 |
From: SourceForge.net <no...@so...> - 2004-04-21 08:05:21
|
Bugs item #719784, was opened at 2003-04-12 02:33 Message generated for change (Comment added) made by richardarcher You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=719784&group_id=31885 >Category: Template Group: None >Status: Closed >Resolution: Accepted Priority: 1 Submitted By: Joe Stewart (joestewart) >Assigned to: Richard Archer (richardarcher) Summary: small typo in template.inc::set_block Initial Comment: Mostly a reminder... diff ../release/phplib/php/template.inc class/phplib/php/template.inc 319c319 < $str = preg_replace($reg, "{" . "$name}", $str); --- > $str = preg_replace($reg, "{" . $name . "}", $str); ---------------------------------------------------------------------- >Comment By: Richard Archer (richardarcher) Date: 2004-04-21 18:05 Message: Logged In: YES user_id=279311 I have no idea why this should be necessary... perhaps there's a buggy PHP release that barfs on this?? Anyway, since the change is so minimal I've merged it into CVS. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=719784&group_id=31885 |
From: SourceForge.net <no...@so...> - 2004-04-21 08:01:00
|
Bugs item #777600, was opened at 2003-07-26 01:06 Message generated for change (Comment added) made by richardarcher You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=777600&group_id=31885 Category: Template Group: None >Status: Closed >Resolution: Rejected Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Richard Archer (richardarcher) Summary: remove undefined variables, removes to much Initial Comment: Undefined variables are removed by this line in template.inc: $str = preg_replace('/{[^ \t\r\n}]+}/', "", $str); this removes maybe CSS styles in the template file, for example: h1 {color:black} would be removed or commented: h1 <!-- Template $handle: Variable color:black undefined --> if tryed this, maybe you use it: $str = preg_replace('/{[^ \t\r\n\:\;}]+}/', "", $str); so : and ; wouldn't match the regular expression and CSS or JavaScript Code between {} won't be removed. ---------------------------------------------------------------------- >Comment By: Richard Archer (richardarcher) Date: 2004-04-21 18:01 Message: Logged In: YES user_id=279311 I'm of two minds about this one. But I think that it's best not to risk breaking existing applications with this change. There is a very simple work-around... add a space to your style sheet or javascript. Template variable names cannot contain spaces or tabs, and there is no reason why they cannot be added to prevent deletion by template. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=777600&group_id=31885 |
From: SourceForge.net <no...@so...> - 2004-04-21 07:44:32
|
Bugs item #820062, was opened at 2003-10-09 02:06 Message generated for change (Settings changed) made by richardarcher You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=820062&group_id=31885 Category: Template Group: None >Status: Closed Resolution: Duplicate Priority: 5 Submitted By: Sven Eichler (koala_s) Assigned to: Richard Archer (richardarcher) Summary: template.inc and Windows Initial Comment: When you use template.inc with windows, it give a problem in function "filename($filename)" when isset var $root = "."; My solution: function filename($filename) { if ($this->debug & 4) { echo "<p><b>filename:</b> filename = $filename</p>\n"; } if (substr(PHP_OS, 0, 3) != 'WIN') { if (substr($filename, 0, 1) != "/") { $filename = $this->root."/".$filename; } } if (!file_exists($filename)) { $this->halt("filename: file $filename does not exist."); } return $filename; } But I not sure work this with all OS and is it a good way. ---------------------------------------------------------------------- Comment By: Richard Archer (richardarcher) Date: 2004-04-21 17:44 Message: Logged In: YES user_id=279311 Fixed in CVS ---------------------------------------------------------------------- Comment By: Joe Stewart (joestewart) Date: 2004-03-31 00:50 Message: Logged In: YES user_id=77269 There has also been a patch posted for quite awhile here: https://sourceforge.net/tracker/index.php?func=detail&aid=682841&group_id=31885&atid=403613 ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-03-30 22:30 Message: Logged In: NO There is only a problem if you use an absolute filepath, for example 'c:\temlates\test.thtml', '\template\test.thtml' or 'c:/templates\test.thtml'. (all are valid for windows-php) My solution: function filename($filename) { if ($this->debug & 4) { echo "<p><b>filename:</b> filename = $filename</p>\n"; } if (substr($filename, 0, 1) != "/" && substr($filename, 0, 1) != "\" && substr($filename, 1, 2) != ":\" && substr($filename, 1, 2) != ":/" ) { $filename = $this->root."/".$filename; } if (!file_exists($filename)) { $this->halt("filename: file $filename does not exist."); } return $filename; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=820062&group_id=31885 |
From: SourceForge.net <no...@so...> - 2004-04-21 07:44:01
|
Bugs item #820062, was opened at 2003-10-09 02:06 Message generated for change (Comment added) made by richardarcher You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=820062&group_id=31885 Category: Template Group: None Status: Open >Resolution: Duplicate Priority: 5 Submitted By: Sven Eichler (koala_s) >Assigned to: Richard Archer (richardarcher) Summary: template.inc and Windows Initial Comment: When you use template.inc with windows, it give a problem in function "filename($filename)" when isset var $root = "."; My solution: function filename($filename) { if ($this->debug & 4) { echo "<p><b>filename:</b> filename = $filename</p>\n"; } if (substr(PHP_OS, 0, 3) != 'WIN') { if (substr($filename, 0, 1) != "/") { $filename = $this->root."/".$filename; } } if (!file_exists($filename)) { $this->halt("filename: file $filename does not exist."); } return $filename; } But I not sure work this with all OS and is it a good way. ---------------------------------------------------------------------- >Comment By: Richard Archer (richardarcher) Date: 2004-04-21 17:44 Message: Logged In: YES user_id=279311 Fixed in CVS ---------------------------------------------------------------------- Comment By: Joe Stewart (joestewart) Date: 2004-03-31 00:50 Message: Logged In: YES user_id=77269 There has also been a patch posted for quite awhile here: https://sourceforge.net/tracker/index.php?func=detail&aid=682841&group_id=31885&atid=403613 ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-03-30 22:30 Message: Logged In: NO There is only a problem if you use an absolute filepath, for example 'c:\temlates\test.thtml', '\template\test.thtml' or 'c:/templates\test.thtml'. (all are valid for windows-php) My solution: function filename($filename) { if ($this->debug & 4) { echo "<p><b>filename:</b> filename = $filename</p>\n"; } if (substr($filename, 0, 1) != "/" && substr($filename, 0, 1) != "\" && substr($filename, 1, 2) != ":\" && substr($filename, 1, 2) != ":/" ) { $filename = $this->root."/".$filename; } if (!file_exists($filename)) { $this->halt("filename: file $filename does not exist."); } return $filename; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=820062&group_id=31885 |
From: SourceForge.net <no...@so...> - 2004-04-21 07:43:21
|
Patches item #682841, was opened at 2003-02-08 22:29 Message generated for change (Comment added) made by richardarcher You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403613&aid=682841&group_id=31885 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 5 Submitted By: Peter Cruickshank (krabu) >Assigned to: Richard Archer (richardarcher) Summary: template.inc and Windows abs paths Initial Comment: The filepath() method currently checks for absolute paths by testing for an initial '/'. This fails on Windows when the filepath includes a drive letter. The revised method looks like this: function filename($filename) { if ($this->debug & 4) { echo "<p><b>filename:</b> filename = $filename</p>\n"; } if (substr($filename, 0, 1) != "/" && substr($filename, 1, 1) != ":") { // Test for Unix or Windows absolute path $filename = $this->root."/".$filename; } if (!file_exists($filename)) { $this->halt("filename: file $filename does not exist."); } return $filename; } ---------------------------------------------------------------------- >Comment By: Richard Archer (richardarcher) Date: 2004-04-21 17:43 Message: Logged In: YES user_id=279311 Thank you! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403613&aid=682841&group_id=31885 |
From: SourceForge.net <no...@so...> - 2004-04-21 07:29:05
|
Bugs item #835622, was opened at 2003-11-04 21:42 Message generated for change (Comment added) made by richardarcher You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=835622&group_id=31885 Category: Template Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Richard Archer (richardarcher) Summary: MISTAKE ? Initial Comment: Notice: Undefined offset: 0 in d:\albumphoto\PhpRessources\Lib\phplib\template.inc on line 320 --> $this->set_var($varname, $m[1][0]); ---------------------------------------------------------------------- >Comment By: Richard Archer (richardarcher) Date: 2004-04-21 17:29 Message: Logged In: YES user_id=279311 The error message is caused by a mistake in the calling script (an attempt has been made to extract a block which does not exist). I've altered the code to report an error in this instance. ---------------------------------------------------------------------- Comment By: Richard Archer (richardarcher) Date: 2003-11-04 22:43 Message: Logged In: YES user_id=279311 why do you think this is a bug? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=835622&group_id=31885 |
From: SourceForge.net <no...@so...> - 2004-04-21 06:49:15
|
Bugs item #783569, was opened at 2003-08-06 01:25 Message generated for change (Comment added) made by richardarcher You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=783569&group_id=31885 Category: Template >Group: current CVS >Status: Closed >Resolution: Accepted Priority: 5 Submitted By: Jordi (jordicontesti) >Assigned to: Richard Archer (richardarcher) Summary: Parse in template class (phplib 7.4 pre2) Initial Comment: I think the "parse" function in template class is wrong. The function returns the variable $str, but it should return the variable $this->get_var($target). I found this problem when I have pass to the function a array variable and the function have returned me the parsing of the last element, and not the append of the all elements of the array. Suggested modification: on the last line of the parse function, replace: return $str; with return $this->get_var($target); ---------------------------------------------------------------------- >Comment By: Richard Archer (richardarcher) Date: 2004-04-21 16:49 Message: Logged In: YES user_id=279311 Thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-09-30 03:51 Message: Logged In: NO The problem is carried through if you use pparse(). If you ahve $unknowns set to "remove", forget to fill in one of the placeholders then call pparse(), the content outputted to the browser still has the forgotten placeholder in plain sight. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=783569&group_id=31885 |
From: SourceForge.net <no...@so...> - 2004-03-30 14:50:34
|
Bugs item #820062, was opened at 2003-10-08 11:06 Message generated for change (Comment added) made by joestewart You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=820062&group_id=31885 Category: Template Group: None Status: Open Resolution: None Priority: 5 Submitted By: Sven Eichler (koala_s) Assigned to: Nobody/Anonymous (nobody) Summary: template.inc and Windows Initial Comment: When you use template.inc with windows, it give a problem in function "filename($filename)" when isset var $root = "."; My solution: function filename($filename) { if ($this->debug & 4) { echo "<p><b>filename:</b> filename = $filename</p>\n"; } if (substr(PHP_OS, 0, 3) != 'WIN') { if (substr($filename, 0, 1) != "/") { $filename = $this->root."/".$filename; } } if (!file_exists($filename)) { $this->halt("filename: file $filename does not exist."); } return $filename; } But I not sure work this with all OS and is it a good way. ---------------------------------------------------------------------- >Comment By: Joe Stewart (joestewart) Date: 2004-03-30 08:50 Message: Logged In: YES user_id=77269 There has also been a patch posted for quite awhile here: https://sourceforge.net/tracker/index.php?func=detail&aid=682841&group_id=31885&atid=403613 ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-03-30 06:30 Message: Logged In: NO There is only a problem if you use an absolute filepath, for example 'c:\temlates\test.thtml', '\template\test.thtml' or 'c:/templates\test.thtml'. (all are valid for windows-php) My solution: function filename($filename) { if ($this->debug & 4) { echo "<p><b>filename:</b> filename = $filename</p>\n"; } if (substr($filename, 0, 1) != "/" && substr($filename, 0, 1) != "\" && substr($filename, 1, 2) != ":\" && substr($filename, 1, 2) != ":/" ) { $filename = $this->root."/".$filename; } if (!file_exists($filename)) { $this->halt("filename: file $filename does not exist."); } return $filename; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=820062&group_id=31885 |
From: SourceForge.net <no...@so...> - 2004-03-30 12:30:11
|
Bugs item #820062, was opened at 2003-10-08 09:06 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=820062&group_id=31885 Category: Template Group: None Status: Open Resolution: None Priority: 5 Submitted By: Sven Eichler (koala_s) Assigned to: Nobody/Anonymous (nobody) Summary: template.inc and Windows Initial Comment: When you use template.inc with windows, it give a problem in function "filename($filename)" when isset var $root = "."; My solution: function filename($filename) { if ($this->debug & 4) { echo "<p><b>filename:</b> filename = $filename</p>\n"; } if (substr(PHP_OS, 0, 3) != 'WIN') { if (substr($filename, 0, 1) != "/") { $filename = $this->root."/".$filename; } } if (!file_exists($filename)) { $this->halt("filename: file $filename does not exist."); } return $filename; } But I not sure work this with all OS and is it a good way. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-03-30 04:30 Message: Logged In: NO There is only a problem if you use an absolute filepath, for example 'c:\temlates\test.thtml', '\template\test.thtml' or 'c:/templates\test.thtml'. (all are valid for windows-php) My solution: function filename($filename) { if ($this->debug & 4) { echo "<p><b>filename:</b> filename = $filename</p>\n"; } if (substr($filename, 0, 1) != "/" && substr($filename, 0, 1) != "\" && substr($filename, 1, 2) != ":\" && substr($filename, 1, 2) != ":/" ) { $filename = $this->root."/".$filename; } if (!file_exists($filename)) { $this->halt("filename: file $filename does not exist."); } return $filename; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=820062&group_id=31885 |
From: SourceForge.net <no...@so...> - 2004-03-23 06:04:09
|
Support Requests item #761127, was opened at 2003-06-26 07:04 Message generated for change (Comment added) made by stephenrs You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=761127&group_id=31885 Category: None Group: None Status: Open Priority: 5 Submitted By: Guy Parker (guyparker) Assigned to: Nobody/Anonymous (nobody) Summary: oohforms load_defaults() not working with reg globals off? Initial Comment: I have been trying to use oohforms with register globals off. I have tried the patch available from http://www.sanisoft.com/ phplib/oohforms_patch.zip and also the latest snapshot (0.74.20021126) available from http://phplib.sourceforge.net/ snapshots/ but still have a problem. I have a form that loads values from MySQL into variables with the same name as the form objects. Older versions of phplib would load these values as the defaults with the load_default() function. I don't get this behavior with the versions of phplib that claim to work with register global off. Even if I turn register globals on the old behavior does not return. I don't claim to fully understand the oohforms code but I have found that the following code seems to work. function marshal_dispatch($m,$func) { if (count($HTTP_POST_VARS) == 0) { //No post vars...this old oohforms code loads defaults correctly $vname = $this->name; global $$vname; return $this->$func($$vname); } else { //Post vars present...this is the latest oohforms code global $HTTP_POST_VARS; $vname = $this->name; return $this->$func($HTTP_POST_VARS["$vname"]); } } My concern is that this probably isn't the best way to correct the problem and would appreciate any better alternatives. Thanks in advance! ---------------------------------------------------------------------- Comment By: stephenrs (stephenrs) Date: 2004-03-23 01:04 Message: Logged In: YES user_id=1003414 I am having the same problem (and posted it in another sf forum). prepopulating a form with data has broken after a php upgrade - even with register_globals set to on. i apparently don't understand how oohforms is using the namespace, or the implementation is flawed...HEEELLP! looking at the date of the original message in this thread, maybe the bigger question is: is anybody working on, or supporting this project anymore? any answer from anybody who knows anything about what's up with phplib would be realllly appreciated. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=761127&group_id=31885 |
From: SourceForge.net <no...@so...> - 2004-01-23 10:03:35
|
Bugs item #511639, was opened at 2002-02-01 10:56 Message generated for change (Comment added) made by jaal2001 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=511639&group_id=31885 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Rune Kallhovd (choozo) Assigned to: Nobody/Anonymous (nobody) Summary: ORA-00997 (phplib 7.4 pr1) Initial Comment: PHP 4.0.4.pl1, Oracle 8.1.7 When setting up the basics and accessing the ../pages/index.php3 file, I get the following error: "Warning: OCIStmtExecute: ORA-00997: illegal use of LONG datatype in /usr/local/apache/php/db_oci8.inc on line 69" "ORA-00997: illegal use of LONG datatype Query :"select count(*) from active_sessions where val='RXhhbXBsZV9TZXNzaW9uOiR0aGlzLT5pbiA9ICcwJzsgJHRoaXMtPnB0ID0gYXJyYXkoKTsgJHRoaXMtPnB0WydzJ10gPSAnMSc7ICRHTE9CQUxTWydzJ10gPSAnMSc7IA==' and changed='20020201104234' and sid='e4b3d2080c584cb390de104b299ff54a' and name='Example_Session'" ----------------------------------------- Editing the function 'ac_store()' ($squery) in ct_sql.inc as follows 'fixes' this, but this is probably not what one want to do?: (removed "val='%s'" from the 'sprintf()', and commented '$str'.) $squery = sprintf("select count(*) from %s where changed='%s' and sid='%s' and name='%s'", $this->database_table, # $str, $now, $id, $name); ------------------------------------------ Cheers :-) ---------------------------------------------------------------------- Comment By: Jan Albrecht (jaal2001) Date: 2004-01-23 11:03 Message: Logged In: YES user_id=855408 Hi, I got this problem also with the version 7.4. Is there any solution in sight? Actually I'm trying to reduce this field by using varchar2 or something similiar, but this is just a dirty workaround. Or do I have to replace all CT_SQL by CT_SPLIT_SQL? Thanks Jan ---------------------------------------------------------------------- Comment By: Jesse Swensen (swensenj) Date: 2002-07-04 01:27 Message: Logged In: YES user_id=168883 The long data type is used because the next larges size in Oracle is 4000 characters. This could easily be overflowed by a session. The val is not really needed for this query. The purpose for this query is to determine if there is a session for this user. So, the key information is the session name, sid and when it was changed. This is the only information needed as it produces a unique row. (Actually session name and sid are the primary key and produce a unique row.) There is an alternitve to using a long, but you have to use the split session. This is where the session class store the data in a specific block size (2000 characters). If the session info exceeds the block size, it creates another row and keeps track of how to put it back together. This is what I use in my Oracle installations, because longs have some other "problems" as well. ---------------------------------------------------------------------- Comment By: nathan hruby (nhruby) Date: 2002-07-03 23:46 Message: Logged In: YES user_id=19736 Why would VAL be a LONG? It appears from the output it's a string/TEXT. This would cause an issue as it would be *possible* that the query would return more than one row, where I think we only want one.. Essentailly we're saying find me the number of rows that have this data, where changed at this time and have this session id. Since it's possible to fake a sid and every so slightly possibel to get the 'changed' sttribute to match, this might present a bug in the long run as the serialized session data *should* be unique due to an MD5 being run somehwere int here (if memory serves me correctly.. please double check) The better solution would be to make the query and table defs work as expected as opposed to floating a new change acess all the db classes... ---------------------------------------------------------------------- Comment By: Jesse Swensen (swensenj) Date: 2002-07-03 23:18 Message: Logged In: YES user_id=168883 You can not use a LONG data type in the where clause. The fix presented would fix the problem, but we should make sure the fix works across the other databases. ---------------------------------------------------------------------- Comment By: Chris Johnson (chaska) Date: 2002-07-03 22:47 Message: Logged In: YES user_id=279065 Could it be that the active sessions table is not defined correctly? That column should be "text" or the Oracle equivalent (sorry I don't remember -- haven't done Oracle in 3 years). ..chris ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=511639&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-12-27 01:39:47
|
Feature Requests item #866176, was opened at 2003-12-26 17:39 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403614&aid=866176&group_id=31885 Category: None Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: perm.inc little modification (code submitted) Initial Comment: Dont know if this is the place to contrib to code... but worth the try.. little thing: in func perm_sel in class Perm in perm.inc line 90 added piece of code to allow a size attrib on the select tab to customize the size of the select.. (release 7.4) that is: change $ret = sprintf("<select multiple name=\%s[]\%s>\n", $name, ($class!="")?" class=$class":""); by: if (isset($this->perm_sel_size)) { $ret = sprintf("<select size=$this->perm_sel_size multiple name=\%s[]\%s>\n", $name, ($class!="")?" class=$class":""); } else { $ret = sprintf("<select multiple name=\%s[]\%s>\n", $name, ($class!="")?" class=$class":""); } then.. if you declare a var $perm_sel_size in your inherited class it will put it as a tag, if you dont, it will be the same as before. hope you like it.. I do (and I need it) Ariel Barreiro ari...@ho... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403614&aid=866176&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-12-01 11:28:30
|
Bugs item #852011, was opened at 2003-12-01 03:28 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=852011&group_id=31885 Category: OOH Forms Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Array in var name Initial Comment: When I try to use elements like <input name="data[firstname]"> <input name="data[secondname]"> ... validation does not work! an...@ar... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=852011&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-11-04 11:43:26
|
Bugs item #835622, was opened at 2003-11-04 21:42 Message generated for change (Comment added) made by richardarcher You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=835622&group_id=31885 Category: Template Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: MISTAKE ? Initial Comment: Notice: Undefined offset: 0 in d:\albumphoto\PhpRessources\Lib\phplib\template.inc on line 320 --> $this->set_var($varname, $m[1][0]); ---------------------------------------------------------------------- >Comment By: Richard Archer (richardarcher) Date: 2003-11-04 22:43 Message: Logged In: YES user_id=279311 why do you think this is a bug? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=835622&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-11-04 10:42:12
|
Bugs item #835622, was opened at 2003-11-04 02:42 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=835622&group_id=31885 Category: Template Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: MISTAKE ? Initial Comment: Notice: Undefined offset: 0 in d:\albumphoto\PhpRessources\Lib\phplib\template.inc on line 320 --> $this->set_var($varname, $m[1][0]); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=835622&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-10-30 13:53:58
|
Bugs item #833063, was opened at 2003-10-30 08:53 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=833063&group_id=31885 Category: Authentication Group: None Status: Open Resolution: None Priority: 5 Submitted By: Andres Toomsalu (frame) Assigned to: Nobody/Anonymous (nobody) Summary: new_user_md5.php3 misses $hashpass from $_POST Initial Comment: new_user_md5.php3 packaged with phplib 7.4 doesn't work out of the box as expected - I think because if (isset($HTTP_POST_VARS['hashpass'])) $hashpass = $HTTP_POST_VARS['hashpass']; is missing from that file. This little patch works for me at least. I think previous new_user_md5.php3 phplib (7.2 for example) versions were broken too but due to different reasons (some variable name typos if I remember correctly). It would be nice to have it fixed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=833063&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-10-08 16:06:45
|
Bugs item #820062, was opened at 2003-10-08 18:06 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=820062&group_id=31885 Category: Template Group: None Status: Open Resolution: None Priority: 5 Submitted By: Sven Eichler (koala_s) Assigned to: Nobody/Anonymous (nobody) Summary: template.inc and Windows Initial Comment: When you use template.inc with windows, it give a problem in function "filename($filename)" when isset var $root = "."; My solution: function filename($filename) { if ($this->debug & 4) { echo "<p><b>filename:</b> filename = $filename</p>\n"; } if (substr(PHP_OS, 0, 3) != 'WIN') { if (substr($filename, 0, 1) != "/") { $filename = $this->root."/".$filename; } } if (!file_exists($filename)) { $this->halt("filename: file $filename does not exist."); } return $filename; } But I not sure work this with all OS and is it a good way. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=820062&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-10-05 22:25:20
|
Bugs item #818332, was opened at 2003-10-06 00:25 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=818332&group_id=31885 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Sven Eichler (koala_s) Assigned to: Nobody/Anonymous (nobody) Summary: session had already been started Initial Comment: file: session4.inc line: 171 As of PHP 4.3.3, calling session_start() while the session has already been started will result in an error of level E_NOTICE. My simple solution: if (session_id() == '') { $ok = session_start(); } else { $ok = ''; } $this->id = session_id(); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=818332&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-10-01 07:10:40
|
Support Requests item #815662, was opened at 2003-10-01 00:10 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=815662&group_id=31885 Category: None Group: v1.0 (example) Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Name array issues Initial Comment: I am having problem with name values in the add_element. I saw the note on arrays[] but couldn't figure out the write way to make it running. Can someone fix the following notation and send me please? For information, code element is supposed to read and write it's value from an array called "rec". $this->add_element(array("type"=>"text", "name"=>"rec[UID]", "valid_regex"=>"[1-0]", "valid_e"=>"Numeric only", "icase"=>1, "value"=>$rec[UID])); Thanks alot ol...@oc... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=815662&group_id=31885 |