How to checkout and install the latest CVS HEAD code | |
This needs a little explaining. The adodb code is a separate module (_adodb). It can be brought in from the cvs repository into
1. Clean checkout: $ cvs co tikiwiki The 'tikiwiki' module actually represents the 'tiki', '_adodb' and '_smarty' modules. Here's the CVSROOT/modules file: tiki tiki
This tell us there are three "real" modules: tiki, _smarty and _adodb. The 'adodb' and 'smarty' modules will checkout the _adodb and _smarty modules into their respective directories, lib/adodb and lib/smarty. The 'tikiwiki' module will checkout:
$ cd tiki
This also checks out the _adodb and _smarty module into their respective directories, lib/adodb and lib/smarty. 3. Update of existing code (alternate method): (for me this doesn't work. redflo)
Same as 2. above. Shown as an example only. 2. is obviously the preferred method. 4. Update of existing code (2nd alternate method): $ cd tiki
Same as 2. above. Shown as an example only. 2. is obviously the preferred method. Remember to set your ENV variables correctly:
For more information, see CvsForDevelopers. You can also submit patches here:
|
Why have the adodb code as a separate module? | |
wget http://phplens.com/lens/dl/adodb370.tgz
Which I just did a few minutes ago as it now includes support for sqllite. I am very interested to see if we can begin supporting sqllite, which is included by default in PHP 5. -Ross --
|
Help with the conversion to ADOdb | |
I just added the changes to make tiki independent of mysql. We also have
You all can help to rewrite the SQL queries. We use bind variables now.
$user=addslashes($user);
$query = "select `value` from `tiki_user_preferences` where `prefName`=? and `user`=?";
$query = "select value,prefName from tiki_user_preferences limit $offset, $numrows";
should be rewritten to: $query = "select value,prefName from tiki_user_preferences";
That's all for now, Flo |