phplib-trackers Mailing List for PHPLIB (Page 3)
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...> - 2003-09-29 17:52:03
|
Bugs item #783569, was opened at 2003-08-05 08:25 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=783569&group_id=31885 Category: Template Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jordi (jordicontesti) Assigned to: Nobody/Anonymous (nobody) 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: Nobody/Anonymous (nobody) Date: 2003-09-29 10: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...> - 2003-09-12 23:01:41
|
Bugs item #805404, was opened at 2003-09-12 16:01 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=805404&group_id=31885 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: ";" missing in tpl_form.inc line 143 Initial Comment: there is a ";" missing in tpl_form.inc line 143 function display(){ [...] global $HTTP_SERVER_VARS; $PHP_SELF = $HTTP_SERVER_VARS["PHP_SELF"] the problem is in version 7.4-pre2 and 7.4 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=805404&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-09-10 03:37:33
|
Support Requests item #605267, was opened at 2002-09-05 16:23 Message generated for change (Comment added) made by chaska You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=605267&group_id=31885 Category: None Group: None >Status: Closed Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Chris Johnson (chaska) Summary: ODBC error Initial Comment: Please help !! Using a slightly complicated SQL statement with an ORACLE ODBC connection, I am getting the following error message: SQL error: [Microsoft][ODBC driver for Oracle]Cannot use Keyset-driven cursor on join, with distinct clause, union, intersect or minus or on read only result set, SQL state S1C00 in SQLExecDirect in d:\apps\web\phplib\php\db_odbc.inc on line 61 I don't think it's the ODBC data drive or data source since it seems to work fine with Crystal Reports and ORACLE PL/SQL app. Just wondering if it's a limitation in PHP or PHPLIB. Thank you in advance for your assistance. ---------------------------------------------------------------------- >Comment By: Chris Johnson (chaska) Date: 2003-09-09 22:37 Message: Logged In: YES user_id=279065 I am not sure where the problem lies, but it's definitely not with PHPLIB. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-09-09 08:06 Message: Logged In: NO Thanks for your help !! THe troubling thing for me though is the same ODBC DSN works fine when used with ORACLE and other DB apps (Crystal Reports, etc.) ---------------------------------------------------------------------- Comment By: Chris Johnson (chaska) Date: 2002-09-06 10:40 Message: Logged In: YES user_id=279065 This is not a PHP or PHPLIB limitation, as far as I can tell. The error message looks like it was generated by a Microsoft ODBC driver, so I would suspect the ODBC driver as the most likely culprit. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=605267&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-09-10 03:33:22
|
Bugs item #700221, was opened at 2003-03-08 22:33 Message generated for change (Settings changed) made by chaska You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=700221&group_id=31885 Category: Session Group: current CVS >Status: Closed Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Chris Johnson (chaska) Summary: gc redeclared Initial Comment: After upgrading to PHP 4.3.1 an error in session.inc is shown as Cannot redeclare gc() in c:\Servers\internet\lib\php\session.inc on line 464 This shows up in PHPLIB version 7.2d. tom...@me... ---------------------------------------------------------------------- Comment By: Chris Johnson (chaska) Date: 2003-09-09 22:32 Message: Logged In: YES user_id=279065 Fixed in 7.4-pre2 and 7.4, if not earlier. ---------------------------------------------------------------------- Comment By: Nick Cook (terminal_spirit) Date: 2003-04-08 03:36 Message: Logged In: YES user_id=752229 hi it appears the function gc is duplicated in the file session.inc. 1st one is on or about line 337 & the other is on line 464. I commented out the first one and its happy now :) hth ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=700221&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-09-10 03:33:00
|
Bugs item #700221, was opened at 2003-03-08 22:33 Message generated for change (Comment added) made by chaska You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=700221&group_id=31885 Category: Session >Group: current CVS Status: Open >Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Chris Johnson (chaska) Summary: gc redeclared Initial Comment: After upgrading to PHP 4.3.1 an error in session.inc is shown as Cannot redeclare gc() in c:\Servers\internet\lib\php\session.inc on line 464 This shows up in PHPLIB version 7.2d. tom...@me... ---------------------------------------------------------------------- >Comment By: Chris Johnson (chaska) Date: 2003-09-09 22:32 Message: Logged In: YES user_id=279065 Fixed in 7.4-pre2 and 7.4, if not earlier. ---------------------------------------------------------------------- Comment By: Nick Cook (terminal_spirit) Date: 2003-04-08 03:36 Message: Logged In: YES user_id=752229 hi it appears the function gc is duplicated in the file session.inc. 1st one is on or about line 337 & the other is on line 464. I commented out the first one and its happy now :) hth ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=700221&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-09-10 03:31:42
|
Bugs item #657822, was opened at 2002-12-23 06:00 Message generated for change (Comment added) made by chaska You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=657822&group_id=31885 Category: DB_SQL Group: current CVS >Status: Closed Resolution: Wont Fix Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Chris Johnson (chaska) Summary: ct_sql, ac_store Initial Comment: i have an error where i use a frameset in which each frame uses the phplib : (in french) << Erreur de traitement dans la base de données : Invalid SQL: insert into active_sessions ( sid, name, val, changed ) values ('ad3ebd1806933e185137b158eecf8430', 'ST_Session', 'U 1Rf...7IA==', '20021223125357') Erreur SQL : 1062 (Duplicate entry 'ad3ebd1806933e185137b158eecf8430- ST_Session' for key 1) Merci de contacter votre hébergeur. Session terminée. >> i traced the problem and it seems to come from function ac_store in ct_sql.inc : (original code) << if ( $this->db->affected_rows() == 0 && $this->db->query($squery) && $this->db->f(1) == 0 && !$this->db->query($iquery)) { $ret = false; } >> and modified it with : << if ( $this->db->affected_rows() == 0 && $this->db->query($squery) ) { $this->db->next_record(); if ( $this->db->f(0) == 0 && !$this->db->query($iquery) ) { $ret = false; } } >> My question is : Is this a problem coming from my MySql version ? ---------------------------------------------------------------------- >Comment By: Chris Johnson (chaska) Date: 2003-09-09 22:31 Message: Logged In: YES user_id=279065 User misunderstanding. It appears page_close() was called in multiple frames. This is not correct usage. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-12-23 15:39 Message: Logged In: NO If you are using framesets, you can not call page_close() in each frame. You must call it only in one frame. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=657822&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-09-10 03:29:17
|
Bugs item #657822, was opened at 2002-12-23 06:00 Message generated for change (Settings changed) made by chaska You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=657822&group_id=31885 Category: DB_SQL Group: current CVS >Status: Open >Resolution: Wont Fix Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Chris Johnson (chaska) Summary: ct_sql, ac_store Initial Comment: i have an error where i use a frameset in which each frame uses the phplib : (in french) << Erreur de traitement dans la base de données : Invalid SQL: insert into active_sessions ( sid, name, val, changed ) values ('ad3ebd1806933e185137b158eecf8430', 'ST_Session', 'U 1Rf...7IA==', '20021223125357') Erreur SQL : 1062 (Duplicate entry 'ad3ebd1806933e185137b158eecf8430- ST_Session' for key 1) Merci de contacter votre hébergeur. Session terminée. >> i traced the problem and it seems to come from function ac_store in ct_sql.inc : (original code) << if ( $this->db->affected_rows() == 0 && $this->db->query($squery) && $this->db->f(1) == 0 && !$this->db->query($iquery)) { $ret = false; } >> and modified it with : << if ( $this->db->affected_rows() == 0 && $this->db->query($squery) ) { $this->db->next_record(); if ( $this->db->f(0) == 0 && !$this->db->query($iquery) ) { $ret = false; } } >> My question is : Is this a problem coming from my MySql version ? ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-12-23 15:39 Message: Logged In: NO If you are using framesets, you can not call page_close() in each frame. You must call it only in one frame. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=657822&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-09-10 03:28:24
|
Bugs item #657822, was opened at 2002-12-23 06:00 Message generated for change (Settings changed) made by chaska You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=657822&group_id=31885 Category: DB_SQL Group: current CVS >Status: Closed Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: ct_sql, ac_store Initial Comment: i have an error where i use a frameset in which each frame uses the phplib : (in french) << Erreur de traitement dans la base de données : Invalid SQL: insert into active_sessions ( sid, name, val, changed ) values ('ad3ebd1806933e185137b158eecf8430', 'ST_Session', 'U 1Rf...7IA==', '20021223125357') Erreur SQL : 1062 (Duplicate entry 'ad3ebd1806933e185137b158eecf8430- ST_Session' for key 1) Merci de contacter votre hébergeur. Session terminée. >> i traced the problem and it seems to come from function ac_store in ct_sql.inc : (original code) << if ( $this->db->affected_rows() == 0 && $this->db->query($squery) && $this->db->f(1) == 0 && !$this->db->query($iquery)) { $ret = false; } >> and modified it with : << if ( $this->db->affected_rows() == 0 && $this->db->query($squery) ) { $this->db->next_record(); if ( $this->db->f(0) == 0 && !$this->db->query($iquery) ) { $ret = false; } } >> My question is : Is this a problem coming from my MySql version ? ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-12-23 15:39 Message: Logged In: NO If you are using framesets, you can not call page_close() in each frame. You must call it only in one frame. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=657822&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-08-28 14:27:43
|
Bugs item #692172, was opened at 2003-02-24 03:30 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=692172&group_id=31885 Category: docs Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Dr Tarique Sani (tarique) Summary: PDF Initial Comment: You have some detailed documentation in HTML but however you don't have PDF documentation. Please could you add some as its more system cross compatible. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-08-28 07:27 Message: Logged In: NO ROFL! What system can HTML not be read on? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=692172&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-08-20 06:58:35
|
Support Requests item #791672, was opened at 2003-08-19 20: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=791672&group_id=31885 Category: None Group: None Status: Open Priority: 5 Submitted By: Nikolai Devereaux (bigaction) Assigned to: Nobody/Anonymous (nobody) Summary: Attach Javascript to input elements Initial Comment: How do I (if it's even possible) attach javascript code to OOHForms input objects? I'd like to create a couple of tiered select dropdowns, where the selection of the first dropdown has an onChange event that enables and populates the second <select> dropdown. Can this be easily done? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=791672&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-08-05 15:25:28
|
Bugs item #783569, was opened at 2003-08-05 15: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=783569&group_id=31885 Category: Template Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jordi (jordicontesti) Assigned to: Nobody/Anonymous (nobody) 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); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=783569&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-07-25 17:01:10
|
Bugs item #777600, was opened at 2003-07-25 08: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=777600&group_id=31885 Category: Template Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=777600&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-07-03 01:22:00
|
Bugs item #765024, was opened at 2003-07-02 18:09 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=765024&group_id=31885 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: page_close problem Initial Comment: Hello. First I'm not an expert, far from it, so maybe my mistake. I start the page with page_open(array("sess" => "Sid", "auth" => "Example_Auth", "perm" => "Permisito" )); $perm->check("user"); . . some code . . then I create new DB object for use with other things $db2= new DB_Stuff(); . . //So far everything executes ok. page_close(); ================================ In local.inc I have 2 classes extending Db_Sql (DB_phplib for use exclusivly by phplib and the other to take advantage of the phplib func for other stuff) class DB_phplib extends DB_Sql { var $Host = "localhost"; var $Database = "phpliDB"; var $User = "user"; var $Password = "pass"; } class DB_Stuff extends DB_Sql { var $Host = "localhost"; var $Database = "Another DB"; var $User = "user2"; var $Password = "pass2"; } Additionally, class My_CT_Sql extends CT_Sql { var $database_class = "DB_phplib"; var $database_table = "active_sessions"; } class Sid extends Session { var $classname = "Sid"; var $cookiename = ""; var $magic = "magic"; var $mode = "cookie"; var $fallback_mode = "get"; var $lifetime = 0; var $that_class = "My_CT_Sql"; var $gc_probability = 5; var $allowcache = "no"; } ================================= The problem is that after performing couple queries with a DB_Stuff object and finally calling page_close, it seems phplib try to use DB_Stuff to perform their tasks and not the DB_phplib. So it ends with an error saying "can't find table active_sessions" (that does not exist in the DB_Stuff db) I thought I should report this. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-07-02 18:22 Message: Logged In: NO It seems this a problem related to mysql or server setup and not to phplib. I tested it in a server of my own and works ok, but in a webhosting I rented that offers 3 databases presents the above problem. I don't know. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=765024&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-07-03 01:09:21
|
Bugs item #765024, was opened at 2003-07-02 18:09 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=765024&group_id=31885 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: page_close problem Initial Comment: Hello. First I'm not an expert, far from it, so maybe my mistake. I start the page with page_open(array("sess" => "Sid", "auth" => "Example_Auth", "perm" => "Permisito" )); $perm->check("user"); . . some code . . then I create new DB object for use with other things $db2= new DB_Stuff(); . . //So far everything executes ok. page_close(); ================================ In local.inc I have 2 classes extending Db_Sql (DB_phplib for use exclusivly by phplib and the other to take advantage of the phplib func for other stuff) class DB_phplib extends DB_Sql { var $Host = "localhost"; var $Database = "phpliDB"; var $User = "user"; var $Password = "pass"; } class DB_Stuff extends DB_Sql { var $Host = "localhost"; var $Database = "Another DB"; var $User = "user2"; var $Password = "pass2"; } Additionally, class My_CT_Sql extends CT_Sql { var $database_class = "DB_phplib"; var $database_table = "active_sessions"; } class Sid extends Session { var $classname = "Sid"; var $cookiename = ""; var $magic = "magic"; var $mode = "cookie"; var $fallback_mode = "get"; var $lifetime = 0; var $that_class = "My_CT_Sql"; var $gc_probability = 5; var $allowcache = "no"; } ================================= The problem is that after performing couple queries with a DB_Stuff object and finally calling page_close, it seems phplib try to use DB_Stuff to perform their tasks and not the DB_phplib. So it ends with an error saying "can't find table active_sessions" (that does not exist in the DB_Stuff db) I thought I should report this. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=765024&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-07-03 00:39:41
|
Bugs item #765013, was opened at 2003-07-02 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=403611&aid=765013&group_id=31885 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: page_close problem Initial Comment: Hello. First I'm not an expert, far from it, so maybe my mistake. I start the page with page_open(array("sess" => "Sid", "auth" => "Example_Auth", "perm" => "Permisito" )); $perm->check("user"); . . some code . . then I create new DB object for use with other things $db2= new DB_Stuff(); . . //So far everything executes ok. page_close(); ================================ In local.inc I have 2 classes extending Db_Sql (DB_phplib for use exclusivly by phplib and the other to take advantage of the phplib func for other stuff) class DB_phplib extends DB_Sql { var $Host = "localhost"; var $Database = "phpliDB"; var $User = "user"; var $Password = "pass"; } class DB_Stuff extends DB_Sql { var $Host = "localhost"; var $Database = "Another DB"; var $User = "user2"; var $Password = "pass2"; } Additionally, class My_CT_Sql extends CT_Sql { var $database_class = "DB_phplib"; var $database_table = "active_sessions"; } class Sid extends Session { var $classname = "Sid"; var $cookiename = ""; var $magic = "magic"; var $mode = "cookie"; var $fallback_mode = "get"; var $lifetime = 0; var $that_class = "My_CT_Sql"; var $gc_probability = 5; var $allowcache = "no"; } ================================= The problem is that after performing couple queries with a DB_Stuff object and finally calling page_close, it seems phplib try to use DB_Stuff to perform their tasks and not the DB_phplib. So it ends with an error saying "can't find table active_sessions" (that does not exist in the DB_Stuff db) I thought I should report this. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=765013&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-07-01 20:09:40
|
Bugs item #763117, was opened at 2003-06-30 05:56 Message generated for change (Comment added) made by joestewart You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=763117&group_id=31885 Category: Permission Group: current CVS Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: LDAP auth and permissions Initial Comment: This is a continuation of my request about authorization... I would like perm class to be compatible with permissions (or groups) stored in LDAP directories. The current implementation needs a hardcoded list of permissions in local.inc. This is a huge problem when users are stored in LDAP and have their perms stored alongside all other userinfo in the directory. This means that you manually have to check the LDAP directory for new permission groups that have been created and add them to local.inc. Making the perm class (and the auth class) more compatible with existing "corporate" user directories would be a great way to ensure a strong future for the library. I have two suggestions for alternate implementations. I am not fully into the inner workings of the phpLib so I have to leave it up to you to figure out the best implementations to fit the library. 1. Have the perm class use LDAP and at initialisation retrieve a list of permission groups from the server and make the bitmap on the fly. (since the bitmap only used for comparison and not storage of perms.) Something like this but probably connected to the LDAP class: var $permissions; // connect... $ps=ldap_connect($this->ldap_host, $this->ldap_port); if ($ps) { // admin bind... $r=ldap_bind($ps, $this->rootdn, $this->rootpw); // search for groups... $sr=ldap_search($ps,$this->basedn, $this- >attrtype_perms."=".$this->attr_perms ); // get matching entries $info = ldap_get_entries($ps, $sr); $bin=1; // test all results, and get uid and permissions... for ($i=0; $i<$info["count"]; $i++) { $permissions[$info[$i][$permid][0]] = $bin; $bin*=2; } } ldap_close($ps); 2. Replace the bit comparison in the perm class with a string comparison. ---------------------------------------------------------------------- >Comment By: Joe Stewart (joestewart) Date: 2003-07-01 14:51 Message: Logged In: YES user_id=77269 The perm class should be able to work with ldap auth with little change. As to your suggestions, take a look at the replacement perm class in the patch manager. It doesn't require the full list of perms be available and makes comparison using string array indexes. I'd like to discuss development. Please post to the phplib-users list or email me directly. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=763117&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-06-30 11:06:14
|
Support Requests item #759762, was opened at 2003-06-24 04:49 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=759762&group_id=31885 Category: None Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: CT_LDAP needs modification Initial Comment: I have been looking into methods for LDAP authentication and wanted to check an opinion I have formed. The way in which phpLib7.4pre2 checks user authentication in CT_LDAP is somewhere between wierd and useless. From what I can read in the source you can not authenticate "normal" LDAP users. Instead phpLib wants its own attributes for username and password (instead of using the DN for userID and so on.) I would prefer a method that looks for a DN (which is allways unique) and then tries to bind to the server with that DN and the provided password. This is the way that mod_auth in apache handles the password check and is more comaptible. What are the reasons for the implementation in phpLib and what are the plans for the future? In php4 you could have the whole page managment without an sql backend which is cool. Or, I could just be way off and I am mistaking totally? ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-06-30 04:06 Message: Logged In: NO Binding authentication added directly to "Example_Auth" auth_validatelogin() in local.inc. // connect... $ds=ldap_connect($this->ldap_host, $this->ldap_port);// or echo "Error Connecting to LDAP server..."; if ($ds) { // admin bind... $r=ldap_bind($ds, $this->rootdn, $this->rootpw);// or echo "Error Binding to LDAP server..."; // search for uname... $sr=ldap_search($ds,$this->basedn, $this- >attr_uname."=".addslashes($HTTP_POST_VARS["username"]) ); // get matching entries (should only be one) $info = ldap_get_entries($ds, $sr); // test all results, and get uid and permissions... for ($i=0; $i<$info["count"]; $i++) { // bind as user to test password $r=@ldap_bind($ds, $info[$i]["dn"], addslashes($HTTP_POST_VARS["password"]) ); // if bind is successful... if ($r) { // fetch UID and perms $uid = md5($info[$i]["dn"]); $this->auth["perm"] = $info[$i][$this- >attr_perms][0]; } } } ldap_close($ds); return $uid; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=759762&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-06-30 10:56:12
|
Bugs item #763117, was opened at 2003-06-30 03:56 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=763117&group_id=31885 Category: Permission Group: current CVS Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: LDAP auth and permissions Initial Comment: This is a continuation of my request about authorization... I would like perm class to be compatible with permissions (or groups) stored in LDAP directories. The current implementation needs a hardcoded list of permissions in local.inc. This is a huge problem when users are stored in LDAP and have their perms stored alongside all other userinfo in the directory. This means that you manually have to check the LDAP directory for new permission groups that have been created and add them to local.inc. Making the perm class (and the auth class) more compatible with existing "corporate" user directories would be a great way to ensure a strong future for the library. I have two suggestions for alternate implementations. I am not fully into the inner workings of the phpLib so I have to leave it up to you to figure out the best implementations to fit the library. 1. Have the perm class use LDAP and at initialisation retrieve a list of permission groups from the server and make the bitmap on the fly. (since the bitmap only used for comparison and not storage of perms.) Something like this but probably connected to the LDAP class: var $permissions; // connect... $ps=ldap_connect($this->ldap_host, $this->ldap_port); if ($ps) { // admin bind... $r=ldap_bind($ps, $this->rootdn, $this->rootpw); // search for groups... $sr=ldap_search($ps,$this->basedn, $this- >attrtype_perms."=".$this->attr_perms ); // get matching entries $info = ldap_get_entries($ps, $sr); $bin=1; // test all results, and get uid and permissions... for ($i=0; $i<$info["count"]; $i++) { $permissions[$info[$i][$permid][0]] = $bin; $bin*=2; } } ldap_close($ps); 2. Replace the bit comparison in the perm class with a string comparison. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=763117&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-06-30 10:39:47
|
Bugs item #763113, was opened at 2003-06-30 03:39 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=763113&group_id=31885 Category: Authentication Group: current CVS Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Alternative LDAP for auth and perm classes Initial Comment: I am in the process of trying to use our LDAP-server for authentication in phpLib and have found a couple of snags in the existing LDAP implementation. First i would like to see phpLib make available authentication with existing LDAP directories. The current LDAP class simply replaces mysql storage for LDAP. No consideration or implementation of authenticating against existing user accounts and permission settings in LDAP is provided. THis is really not that hard. I have hacked my way through the authentication part but I stumble on permissions since I am not deeply into the structures inside phpLib. I do not have the capasity to figure out how to make this a part of the LDAP class but... The following code offers LDAP authentication with existing userbases (Novell, Active Directory...) and replaces the mysql code in auth_validatelogin() in local.inc: // connect... $ds=ldap_connect($this->ldap_host, $this->ldap_port);/ / or echo "Error Connecting to LDAP server..."; if ($ds) { // admin bind... $r=ldap_bind($ds, $this->rootdn, $this->rootpw);// or echo "Error Binding to LDAP server..."; // search for uname... $sr=ldap_search($ds,$this->basedn, $this- >attr_uname."=".addslashes($HTTP_POST_VARS["username "]) ); // get matching entries (should only be one) $info = ldap_get_entries($ds, $sr); // test all results, and get uid and permissions... for ($i=0; $i<$info["count"]; $i++) { // bind as user to test password $r=@ldap_bind($ds, $info[$i]["dn"], addslashes($HTTP_POST_VARS["password"]) ); // if bind is successful... if ($r) { // fetch UID and perms - not completed!! $uid = md5($info[$i]["dn"]); $this->auth["perm"] = $info[$i][$this- >attr_perms][0]; } } } ldap_close($ds); return $uid; ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=763113&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-06-26 11:04:30
|
Support Requests item #761127, was opened at 2003-06-26 11: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=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! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=761127&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-06-24 11:49:28
|
Support Requests item #759762, was opened at 2003-06-24 04:49 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=759762&group_id=31885 Category: None Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: CT_LDAP needs modification Initial Comment: I have been looking into methods for LDAP authentication and wanted to check an opinion I have formed. The way in which phpLib7.4pre2 checks user authentication in CT_LDAP is somewhere between wierd and useless. From what I can read in the source you can not authenticate "normal" LDAP users. Instead phpLib wants its own attributes for username and password (instead of using the DN for userID and so on.) I would prefer a method that looks for a DN (which is allways unique) and then tries to bind to the server with that DN and the provided password. This is the way that mod_auth in apache handles the password check and is more comaptible. What are the reasons for the implementation in phpLib and what are the plans for the future? In php4 you could have the whole page managment without an sql backend which is cool. Or, I could just be way off and I am mistaking totally? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=759762&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-06-03 18:27:35
|
Support Requests item #748356, was opened at 2003-06-03 11:27 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=748356&group_id=31885 Category: Install Problem (example) Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Internal Server Error Initial Comment: Hello. I've installed PHPLIB on W2K with Apache & PHP as a module. I did everythig by the book :-), however i always had internal server error when i tried to test it. The problem seems to be line 434 in sessions.inc. When I've commented "exit" everything started to work fine. Is it a bug, or is it something else? Best Regards - M. Gasiorowski ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=748356&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-05-27 02:42:14
|
Support Requests item #743978, was opened at 2003-05-27 12:10 Message generated for change (Comment added) made by richardarcher You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=743978&group_id=31885 Category: None Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: escaping {tag} Initial Comment: say i need to put a string with a { and a } somewhere in it, e.g.: var re = new RegExp('^[0-9]{1,9}$'); how can i handle that? ---------------------------------------------------------------------- >Comment By: Richard Archer (richardarcher) Date: 2003-05-27 12:42 Message: Logged In: YES user_id=279311 You could set $t->unknowns="keep" Or override the finish() method with one which includes a comma in the list of non-template-varname characters. Or call $t->parse() and not bother with finish() at all. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=743978&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-05-27 02:10:57
|
Support Requests item #743978, was opened at 2003-05-26 19: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=743978&group_id=31885 Category: None Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: escaping {tag} Initial Comment: say i need to put a string with a { and a } somewhere in it, e.g.: var re = new RegExp('^[0-9]{1,9}$'); how can i handle that? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=743978&group_id=31885 |
From: SourceForge.net <no...@so...> - 2003-05-15 14:08:18
|
Patches item #738245, was opened at 2003-05-15 16:08 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403613&aid=738245&group_id=31885 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Bernard BOISJOT (bboisjot) Assigned to: Nobody/Anonymous (nobody) Summary: New SQL function Initial Comment: Hi chaps, I need a function to get the name of a field in a query... I think I am not alone, so I suggest to you to add this function in db_mysql.inc, and to transpose for other engines : function field_name($offset) { return mysql_field_name ($this->Query_ID , $offset); } I hope it'll be usefull. Bernard BOISJOT bbo...@ai... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403613&aid=738245&group_id=31885 |