You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
(32) |
Sep
|
Oct
|
Nov
(100) |
Dec
(22) |
---|
From: <jhe...@us...> - 2002-12-05 10:35:27
|
Update of /cvsroot/upcase-project/UpCase/install In directory sc8-pr-cvs1:/tmp/cvs-serv24379 Removed Files: install.php Log Message: not used --- install.php DELETED --- |
From: <jhe...@us...> - 2002-12-05 10:33:31
|
Update of /cvsroot/upcase-project/UpCase In directory sc8-pr-cvs1:/tmp/cvs-serv23659 Added Files: home.php Log Message: home page redirection --- NEW FILE: home.php --- <?php include("UpCase/config/uc_config.inc"); include("uc_sql.php"); // Include this file in your index.php at the root of your site // if you want to be able to choose a home page in the packages // installed by upcase. $query = sprintf($GLOBALS["ucsql_getvars"], "home_page"); $db = new UcSql(); $res = $db->Execute($query) or die("Unable toget home page"); $o = $res->FetchNextObject(true); header("Location: " . $o->VALUE); |
From: <jhe...@us...> - 2002-12-05 10:31:09
|
Update of /cvsroot/upcase-project/UpCase In directory sc8-pr-cvs1:/tmp/cvs-serv22771 Modified Files: README Log Message: added comment for ADOdb license Index: README =================================================================== RCS file: /cvsroot/upcase-project/UpCase/README,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** README 5 Dec 2002 10:28:48 -0000 1.1 --- README 5 Dec 2002 10:31:05 -0000 1.2 *************** *** 14,17 **** --- 14,20 ---- See COPYING for more details about the license and (no) warranty. + The library ADOdb is subject to the conditions described in + lib/adodb/license.txt. + The installer is based of the concept of Linux distributions : Available applications are packaged and packages are published on a server. The installer |
From: <jhe...@us...> - 2002-12-05 10:28:51
|
Update of /cvsroot/upcase-project/UpCase In directory sc8-pr-cvs1:/tmp/cvs-serv21998 Added Files: COPYING INSTALL README Log Message: usual stuff --- NEW FILE: COPYING --- GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) 19yy <name of author> 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; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. <signature of Ty Coon>, 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. --- NEW FILE: INSTALL --- 1) Unpack the archive in one local directory and mirror it in the root of your web site. All the scripts should be under a upcase/ directory. 2) Once this is done, chmod 777 upcase/config/ as the scripts will write the config files there. Also chmod 777 upcase/packages/ upcase/packages/dl/ and upcase/packages/db/ as the web server will need write access to it to store packages archives and packages informations. 3) Create in the document root of your web site a directory that is writeable by your web server. That's the place where the applications will be installed. 4) Point your browser at http://your.web.site/upcase/install.php and fill in the form. If everything goes well, your browser should be redirected to the index page of upcase, that is http://your.web.site/upcase/. !!!WARNING!!! This project is in very early stage of development. It contains a lot of bugs and security risks, use it at your own risks. It will also be subject to big changes that may result in totally incompatible versions. Upgrade path will be provided when possible, but that is not guaranteed. --- NEW FILE: README --- U.P.C.A.S.E. This project is distributed under the terms of the GNU General Public License, version 2 or later. The purpose of the upcase plateform is to provide a user friendly environment for the management of a web site. Management with the meaning of installing and uninstalling web applications written in PHP. !!!WARNING!!! This release (upcase-0.0.1) is a proof of concept. There are a lot of bugs and it needs a full rewrite with intensive testing and debugging before being considered as stable and ready for production use. You use it at your own risks. See COPYING for more details about the license and (no) warranty. The installer is based of the concept of Linux distributions : Available applications are packaged and packages are published on a server. The installer interface show to the user the list of available packages and give him the possibility to install them by a simple click. The installer takes care to download the package on the target web site, unpack and configure the application. Once this is done, the application is ready to work. Some links : http://www.upcase.be - Web site of the U.P.C.A.S.E. project http://dev.upcase.be/wiki/ - Development notes http://sourceforge.net/projects/upcase-project/ - SourceForge project page |
From: <jhe...@us...> - 2002-12-05 10:22:39
|
Update of /cvsroot/upcase-project/UpCase In directory sc8-pr-cvs1:/tmp/cvs-serv19681 Removed Files: index.php Log Message: not used --- index.php DELETED --- |
From: <jhe...@us...> - 2002-12-05 10:20:57
|
Update of /cvsroot/upcase-project/UpCase/templates/en/blocs In directory sc8-pr-cvs1:/tmp/cvs-serv19236/blocs Modified Files: admmenu.mxt appmenu.mxt login.mxt Log Message: updated templates Index: admmenu.mxt =================================================================== RCS file: /cvsroot/upcase-project/UpCase/templates/en/blocs/admmenu.mxt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** admmenu.mxt 20 Nov 2002 12:15:07 -0000 1.2 --- admmenu.mxt 5 Dec 2002 10:20:54 -0000 1.3 *************** *** 4,6 **** --- 4,7 ---- <li><a mXattribut="href:accounts" target="content">Accounts Management</a></li> <li><a mXattribut="href:permissions" target="content">Permissions Management</a></li> + <li><a mXattribut="href:homepage" target="content">Home Page Setting</a></li> </ul> Index: appmenu.mxt =================================================================== RCS file: /cvsroot/upcase-project/UpCase/templates/en/blocs/appmenu.mxt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** appmenu.mxt 13 Nov 2002 08:41:32 -0000 1.1 --- appmenu.mxt 5 Dec 2002 10:20:54 -0000 1.2 *************** *** 1,3 **** ! <h4>Applications</h4> <ul> <mx:bloc id="appmenu"> --- 1,3 ---- ! <h4>Installed Applications</h4> <ul> <mx:bloc id="appmenu"> Index: login.mxt =================================================================== RCS file: /cvsroot/upcase-project/UpCase/templates/en/blocs/login.mxt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** login.mxt 13 Nov 2002 08:41:32 -0000 1.1 --- login.mxt 5 Dec 2002 10:20:54 -0000 1.2 *************** *** 1,9 **** <form> - <font size=-3> Username : <br> <input type="text" name="username"><br> Password : <br> ! <input type="text" name="password"><br> <input type="submit" value="login"><br> </font> --- 1,8 ---- <form> <font size=-3> Username : <br> <input type="text" name="username"><br> Password : <br> ! <input type="password" name="password"><br> <input type="submit" value="login"><br> </font> |
From: <jhe...@us...> - 2002-12-05 10:20:57
|
Update of /cvsroot/upcase-project/UpCase/templates/en In directory sc8-pr-cvs1:/tmp/cvs-serv19236 Modified Files: configure.mxt login.mxt preinstall.mxt Added Files: homepage.mxt Log Message: updated templates --- NEW FILE: homepage.mxt --- <html> <body> <h1>Home page setting</h1> <form> <table> <mx:bloc id="applist"> <tr> <td><mx:text id="appurl" /></td> <td><mx:checker id="choice" /></td> </tr> </mx:bloc id="applist"> </table> <input type="submit" value="Apply Changes"> </form> </body> </html> Index: configure.mxt =================================================================== RCS file: /cvsroot/upcase-project/UpCase/templates/en/configure.mxt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** configure.mxt 28 Nov 2002 14:56:24 -0000 1.1 --- configure.mxt 5 Dec 2002 10:20:54 -0000 1.2 *************** *** 12,17 **** <form mXattribut="action:installer"> - <mx:hidden id="params" /> - <table> --- 12,15 ---- Index: login.mxt =================================================================== RCS file: /cvsroot/upcase-project/UpCase/templates/en/login.mxt,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** login.mxt 16 Jul 2002 15:32:14 -0000 1.1.1.1 --- login.mxt 5 Dec 2002 10:20:54 -0000 1.2 *************** *** 1,9 **** <html> <head> ! <title><mx:text id="upcase" />::Login Page</title> </head> <body> <form mxAttribut="action:next"> <table align="center"> <tr> --- 1,13 ---- <html> <head> ! <title>Login</title> </head> <body> + <mx:bloc id="message"> + </mx:bloc id="message"> + <form mxAttribut="action:next"> + <mx:hidden id="params" /> <table align="center"> <tr> *************** *** 18,22 **** <tr> <td>Password : </td> ! <td><input type="text" name="password" /></td> </tr> <tr> --- 22,26 ---- <tr> <td>Password : </td> ! <td><input type="password" name="password" /></td> </tr> <tr> Index: preinstall.mxt =================================================================== RCS file: /cvsroot/upcase-project/UpCase/templates/en/preinstall.mxt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** preinstall.mxt 28 Nov 2002 14:56:24 -0000 1.1 --- preinstall.mxt 5 Dec 2002 10:20:54 -0000 1.2 *************** *** 14,19 **** </div> ! <form mXattribut="action:installer"> ! <mx:hidden id="params" /> <table> --- 14,18 ---- </div> ! <form mXattribut="action:configure"> <table> |
From: <jhe...@us...> - 2002-12-05 10:18:57
|
Update of /cvsroot/upcase-project/UpCase In directory sc8-pr-cvs1:/tmp/cvs-serv18541 Modified Files: install.php Log Message: added new tables in xml file, point to packages rep 2 Index: install.php =================================================================== RCS file: /cvsroot/upcase-project/UpCase/install.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** install.php 28 Nov 2002 15:01:52 -0000 1.8 --- install.php 5 Dec 2002 10:18:54 -0000 1.9 *************** *** 1,5 **** <?php ! include_once("./config/uc_tables.inc"); include_once("./lib/adodb/adodb.inc.php"); --- 1,7 ---- <?php + define("ADMINS_GID", "1"); + define("ALL_GID", "2"); ! require_once("./config/uc_tables.inc"); include_once("./lib/adodb/adodb.inc.php"); *************** *** 100,104 **** $query = "INSERT INTO " . $tblprefix . "users (groupid, username, firstname, " . "lastname, email, password, preferred_lang)" ! . " values('0', '" . $admname . "', '" . $admfirst . "', '" . $admlast . "', '" . $admmail . "', '" . $admpasswd . "', 'en')"; --- 102,106 ---- $query = "INSERT INTO " . $tblprefix . "users (groupid, username, firstname, " . "lastname, email, password, preferred_lang)" ! . " values('" . ADMINS_GID . "', '" . $admname . "', '" . $admfirst . "', '" . $admlast . "', '" . $admmail . "', '" . $admpasswd . "', 'en')"; *************** *** 146,149 **** --- 148,153 ---- <table data="users">users</table> <table data="installer">installer</table> + <table data="files">files</table> + <table data="vars">vars</table> </database> *************** *** 171,175 **** $ucConfig = '<?php ! ini_set("include_path", ".:' . $upcaseRoot . ':' . $upcaseRoot . '/config:' . $upcaseRoot . '/lib'); include_once("uc_config.php"); $xmlConf = "' . $upcaseRoot . '/config/upcase.xml"; --- 175,179 ---- $ucConfig = '<?php ! ini_set("include_path", ".:' . $upcaseRoot . ':' . $upcaseRoot . '/config:' . $upcaseRoot . '/lib"); include_once("uc_config.php"); $xmlConf = "' . $upcaseRoot . '/config/upcase.xml"; *************** *** 188,193 **** $uc_info["adminsOnly"] = $msgdir . "/adminsonly.php"; $uc_info["sessionSteal"] = $msgdir . "/sessionsteal.php"; ! $packagesList = "http://galaad/UPCASE/packages/packages.xml"; ! $packagesSource = "http://dev.upcase.be/packages"; define("ADMINS_GID", "1"); define("ALL_GID", "2"); --- 192,196 ---- $uc_info["adminsOnly"] = $msgdir . "/adminsonly.php"; $uc_info["sessionSteal"] = $msgdir . "/sessionsteal.php"; ! $packagesSource = "http://dev.upcase.be/packages2"; define("ADMINS_GID", "1"); define("ALL_GID", "2"); |
From: <jhe...@us...> - 2002-12-05 10:17:38
|
Update of /cvsroot/upcase-project/UpCase/config In directory sc8-pr-cvs1:/tmp/cvs-serv18186 Modified Files: uc_tables.inc Log Message: added tables for installer, package manifests, variables Index: uc_tables.inc =================================================================== RCS file: /cvsroot/upcase-project/UpCase/config/uc_tables.inc,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** uc_tables.inc 13 Nov 2002 09:17:51 -0000 1.4 --- uc_tables.inc 5 Dec 2002 10:17:35 -0000 1.5 *************** *** 12,24 **** UNIQUE KEY groupname (groupname) ) TYPE=MyISAM;", - "CREATE TABLE ${tblprefix}installer ( - pkgname varchar(50) default NULL, - pkgversion varchar(50) default NULL, - tblprefix varchar(50) default NULL, - pkgpath varchar(255) default NULL, - installed tinyint(1) NOT NULL default '0', - UNIQUE KEY tblprefix (tblprefix), - UNIQUE KEY pkgpath (pkgpath) - ) TYPE=MyISAM;", "CREATE TABLE ${tblprefix}permissions ( oid varchar(50) NOT NULL default '', --- 12,15 ---- *************** *** 51,60 **** UNIQUE KEY username (username) ) TYPE=MyISAM;", ! "INSERT INTO ${tblprefix}groups VALUES (0,'admins');", ! "UPDATE ${tblprefix}groups SET gid='0' WHERE groupname='admins';", ! "INSERT INTO ${tblprefix}groups VALUES (1,'all');", ! "INSERT INTO ${tblprefix}permissions VALUES ('menu', '1');", ! "INSERT INTO ${tblprefix}permissions VALUES ('mainIndex', '1');", ! "INSERT INTO ${tblprefix}permissions VALUES ('mainPage', '1');" ); --- 42,74 ---- UNIQUE KEY username (username) ) TYPE=MyISAM;", ! "CREATE TABLE ${tblprefix}vars ( ! name varchar(255) NOT NULL default '', ! value varchar(255) NOT NULL default '' ! ) TYPE=MyISAM;", ! "CREATE TABLE ${tblprefix}installer ( ! appid int(4) NOT NULL auto_increment, ! pkgname varchar(50) default NULL, ! pkgversion varchar(50) default NULL, ! tblprefix varchar(50) default NULL, ! pkgpath varchar(255) default NULL, ! installed tinyint(1) NOT NULL default '0', ! PRIMARY KEY (appid), ! UNIQUE KEY tblprefix (tblprefix), ! UNIQUE KEY pkgpath (pkgpath) ! ) TYPE=MyISAM;", ! "CREATE TABLE ${tblprefix}files ( ! appid int(4) NOT NULL default '0', ! type enum('R','D') NOT NULL default 'R', ! filename blob NOT NULL, ! checksum int(4) NOT NULL default '0', ! mtime timestamp(14) NOT NULL, ! mode int(1) NOT NULL default '0' ! ) TYPE=MyISAM;", ! "INSERT INTO ${tblprefix}groups VALUES ('" . ADMINS_GID . "','admins');", ! "INSERT INTO ${tblprefix}groups VALUES ('" . ALL_GID . "','all');", ! "INSERT INTO ${tblprefix}permissions VALUES ('menu', '". ALL_GID . "');", ! "INSERT INTO ${tblprefix}permissions VALUES ('mainIndex', '" . ALL_GID . "');", ! "INSERT INTO ${tblprefix}permissions VALUES ('mainPage', '" . ALL_GID . "');", ! "INSERT INTO ${tblprefix}vars VALUES ('home_page', 'upcase/conditions.html');" ); |
From: <jhe...@us...> - 2002-12-05 10:16:12
|
Update of /cvsroot/upcase-project/UpCase/config In directory sc8-pr-cvs1:/tmp/cvs-serv17743 Modified Files: uc_templates.inc Log Message: added templates for login page and home page setting Index: uc_templates.inc =================================================================== RCS file: /cvsroot/upcase-project/UpCase/config/uc_templates.inc,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** uc_templates.inc 28 Nov 2002 15:03:00 -0000 1.4 --- uc_templates.inc 5 Dec 2002 10:16:09 -0000 1.5 *************** *** 31,34 **** --- 31,35 ---- $uc_tmpl["APP_MENU"] = $uc_lang . "/blocs/appmenu.mxt"; $uc_tmpl["LOGIN"] = $uc_lang . "/blocs/login.mxt"; + $uc_tmpl["FORCE_LOGIN"] = $uc_lang . "/login.mxt"; $uc_tmpl["LOGOUT"] = $uc_lang . "/blocs/logout.mxt"; $uc_tmpl["MY_ACCOUNT"] = $uc_lang . "/myaccount.mxt"; *************** *** 38,40 **** --- 39,42 ---- $uc_tmpl["CONFIGURE"] = $uc_lang . "/configure.mxt"; $uc_tmpl["PREINSTALL"] = $uc_lang . "/preinstall.mxt"; + $uc_tmpl["HOME_PAGE"] = $uc_lang . "/homepage.mxt"; ?> |
From: <jhe...@us...> - 2002-12-05 10:13:59
|
Update of /cvsroot/upcase-project/UpCase/lib In directory sc8-pr-cvs1:/tmp/cvs-serv17105 Modified Files: uc_sql-mysql.inc Log Message: use defines for ADMINS_GID instead of 0 Index: uc_sql-mysql.inc =================================================================== RCS file: /cvsroot/upcase-project/UpCase/lib/uc_sql-mysql.inc,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** uc_sql-mysql.inc 4 Dec 2002 09:00:44 -0000 1.10 --- uc_sql-mysql.inc 5 Dec 2002 10:13:57 -0000 1.11 *************** *** 70,74 **** $ucsql_allperms = "SELECT * FROM $perm_tbl"; ! $ucsql_objadd = "INSERT INTO $perm_tbl (oid, gid) VALUES ('%s', '0')"; $ucsql_objdel = "DELETE FROM $perm_tbl WHERE oid = '%s'"; $ucsql_objget = "SELECT * FROM $perm_tbl WHERE oid = '%s'"; --- 70,74 ---- $ucsql_allperms = "SELECT * FROM $perm_tbl"; ! $ucsql_objadd = "INSERT INTO $perm_tbl (oid, gid) VALUES ('%s', '" . ADMINS_GID . "')"; $ucsql_objdel = "DELETE FROM $perm_tbl WHERE oid = '%s'"; $ucsql_objget = "SELECT * FROM $perm_tbl WHERE oid = '%s'"; |
From: <jhe...@us...> - 2002-12-05 10:06:11
|
Update of /cvsroot/upcase-project/UpCase/admin In directory sc8-pr-cvs1:/tmp/cvs-serv14668 Modified Files: menu.php Added Files: homepage.php Log Message: added site home page selection --- NEW FILE: homepage.php --- <?php include_once("../config/uc_config.inc"); include_once("uc_sql.php"); include_once("uc_installer.php"); include_once("uc_page.php"); $page = new UcPage("homePageSetting"); $page->open(); // Get all installed packages in the installer $query = sprintf($ucsql_packageinstalled, '%'); $db = new UcSql(); $res = $db->Execute($query) or die("Unable to execute " . $query . " - " . $db->ErrorMsg()); $p = checkVar("choice", false); include("uc_templates.php"); $tmpl = new ModeliXe($uc_tmpl["HOME_PAGE"]); $tmpl->SetModeliXe(); while (($o = $res->FetchNextObject(true))) { $tmpl->MxText("applist.appurl", $o->PKGPATH); if ($p == $o->PKGPATH) $tmpl->MxCheckerField("applist.choice", "radio", "choice", $o->PKGPATH, true); else $tmpl->MxCheckerField("applist.choice", "radio", "choice", $o->PKGPATH); $tmpl->MxBloc("applist", "loop"); } if ($p) { $query = sprintf($GLOBALS["ucsql_setvars"], $p, "home_page"); $db->Execute($query) or die("Home page not set: " . $db->ErrorMsg()); } $tmpl->MxWrite(); ?> Index: menu.php =================================================================== RCS file: /cvsroot/upcase-project/UpCase/admin/menu.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** menu.php 20 Nov 2002 15:54:04 -0000 1.4 --- menu.php 5 Dec 2002 10:06:07 -0000 1.5 *************** *** 75,78 **** --- 75,79 ---- $tmpl->MxUrl("menu.accounts", $ucConfig->upcaseUrl . "/admin/userslist.php"); $tmpl->MxUrl("menu.permissions", $ucConfig->upcaseUrl . "/admin/permissions.php"); + $tmpl->MxUrl("menu.homepage", $ucConfig->upcaseUrl . "/admin/homepage.php"); } |
From: <jhe...@us...> - 2002-12-05 10:04:09
|
Update of /cvsroot/upcase-project/UpCase/admin In directory sc8-pr-cvs1:/tmp/cvs-serv13759 Modified Files: category.php Log Message: call pkg_install.php instead of installer.php, transmit only id of package to uninstall to pkg_uninstall.php Index: category.php =================================================================== RCS file: /cvsroot/upcase-project/UpCase/admin/category.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** category.php 28 Nov 2002 14:35:57 -0000 1.6 --- category.php 5 Dec 2002 10:04:06 -0000 1.7 *************** *** 43,47 **** $tmpl->MxText("packages.pkgver", $package->version); $tmpl->MxUrl("packages.installer", ! $ucConfig->upcaseUrl . "/admin/installer.php", array("cat" => $catname, "pkg" => $package->name, --- 43,47 ---- $tmpl->MxText("packages.pkgver", $package->version); $tmpl->MxUrl("packages.installer", ! $ucConfig->upcaseUrl . "/admin/pkg_preinstall.php", array("cat" => $catname, "pkg" => $package->name, *************** *** 63,72 **** $tmpl->MxText("packages.instances.pkgstatus", $instance->status); $tmpl->MxUrl("packages.instances.uninstall", ! $ucConfig->upcaseUrl . "/admin/installer.php", ! array("pkg" => $instance->name, ! "ver" => $instance->version, ! "url" => $instance->path, ! "cat" => $catname, ! "op" => "uninstall")); $tmpl->MxBloc("packages.instances", "loop"); } --- 63,68 ---- $tmpl->MxText("packages.instances.pkgstatus", $instance->status); $tmpl->MxUrl("packages.instances.uninstall", ! $ucConfig->upcaseUrl . "/admin/pkg_uninstall.php", ! array("appid" => $instance->appid)); $tmpl->MxBloc("packages.instances", "loop"); } |
From: <jhe...@us...> - 2002-12-05 10:01:56
|
Update of /cvsroot/upcase-project/UpCase/admin In directory sc8-pr-cvs1:/tmp/cvs-serv13245 Removed Files: installer.php Log Message: splitted big installer.php in smaller units --- installer.php DELETED --- |
From: <jhe...@us...> - 2002-12-05 10:00:45
|
Update of /cvsroot/upcase-project/UpCase/admin In directory sc8-pr-cvs1:/tmp/cvs-serv12921 Added Files: pkg_configure.php pkg_install.php pkg_preinstall.php pkg_uninstall.php Log Message: splitted big installer.php in smaller units --- NEW FILE: pkg_configure.php --- <?php // input : pkgpath = relative path of the package // tblprefix = tables prefix for the package // session : get package = package to install // set packageInstance = specialized instance of the package // (with a path and a tables prefix) // unset package // output : array with config data created from package description file include_once("../config/uc_config.inc"); include_once("lib/uc_utils.php"); include_once("lib/uc_repository.php"); include_once("lib/uc_installer.php"); include_once("lib/uc_page.php"); $p = new UcPage("installer"); $p->open(); $pkgPath = checkVar("pkgpath", false) or die("No destination path defined"); $tblPrefix = checkVar("tblprefix", false) or die("No tables prefix defined"); $pkg = $_SESSION["package"]; $inst = new UcInstaller(); include("config/uc_templates.inc"); $pkgInst = $inst->preinstall($package, $pkgPath, $tblPrefix); $_SESSION["packageInstance"] = $pkgInst; unset($_SESSION["package"]); if ($pkgInst->supported == 0) { header("Location: " . $ucConfig->upcaseUrl . "/admin/pkg_install.php"); exit(); } $inputs = $inst->getConfigInputs($pkgInst); if ($inputs) { $tmpl = new ModeliXe($uc_tmpl["CONFIGURE"]); $tmpl->SetModeliXe(); $tmpl->MxAttribut("installer", $ucConfig->upcaseUrl . "/admin/pkg_install.php"); $tmpl->MxText("pkgname", $pkgInst->name); foreach ($inputs as $inputVar => $inputInfo) { $tmpl->MxText("inputs.label", $inputInfo[2]); if ($inputInfo[0] == "text") { $tmpl->MxBloc("inputs.enums", "delete"); $tmpl->MxBloc("inputs.booleans", "delete"); $tmpl->MxFormField("inputs.fields.field", "text", $inputVar, $inputInfo[1]); } else if ($inputInfo[0] == "password") { $tmpl->MxBloc("inputs.enums", "delete"); $tmpl->MxBloc("inputs.booleans", "delete"); $tmpl->MxFormField("inputs.fields.field", "password", $inputVar, ""); } else if ($inputInfo[0] == "boolean") { $tmpl->MxBloc("inputs.fields", "delete"); $tmpl->MxBloc("inputs.enums", "delete"); $tmpl->MxCheckerField("inputs.booleans.boolean", "checkbox", $inputVar, $inputInfo[1]); } else if ($inputInfo[0] == "enum") { $tmpl->MxBloc("inputs.fields", "delete"); $tmpl->MxBloc("inputs.booleans", "delete"); $tmpl->MxSelect("inputs.enums.enum", $inputVar, $inputInfo[1], $inputInfo[3]); } $tmpl->MxBloc("inputs", "loop"); } $tmpl->MxWrite(); } else { header("Location: " . $ucConfig->upcaseUrl . "/admin/pkg_install.php"); } ?> --- NEW FILE: pkg_install.php --- <?php // input : array of the data from the configure step (from the package file // description) // session : get packageInstance // unset packageInstance include_once("../config/uc_config.inc"); include_once("lib/uc_utils.php"); include_once("lib/uc_installer.php"); include_once("lib/uc_repository.php"); include_once("lib/uc_page.php"); $p = new UcPage("installer"); $p->open(); $inst = new UcInstaller(); include("config/uc_templates.inc"); $configData = array(); $pkgInst = $_SESSION["packageInstance"]; unset($_SESSION["packageInstance"]); if ($pkgInst->supported == 1) { $configInputs = $inst->getConfigInputs($pkgInst); if ($configInputs) { foreach (array_keys($configInputs) as $key) { if (checkVar($key, false)) { $configData[$key] = checkVar($key); } } } } $redirect = $inst->install($pkgInst, $configData); header("Location: " . $redirect); ?> --- NEW FILE: pkg_preinstall.php --- <?php // Ask the user a relative path for the package installation and a prefix // for the tables. // input : cat = name of the category // pkg = name of the package // to session : package = new package object // output : pkgpath = relative path of the package // tblprefix = talbes prefix for the package include_once("../config/uc_config.inc"); include_once("lib/uc_utils.php"); include_once("lib/uc_repository.php"); include_once("lib/uc_installer.php"); include_once("lib/uc_page.php"); $p = new UcPage("installer"); $p->open(); $rep = new UcLocalRepository(); $inst = new UcInstaller(); // Check HTTP input vars $catname = checkVarIn("cat", $rep->categories, false) or die("Invalid category"); $category = $rep->getCategory($catname); if (!$category) die("Invalid category"); $pkgname = checkVarIn("pkg", $category->packages, false) or die("Invalid package1"); $pkg = $category->getPackage($pkgname); if (!$pkg) die("Invalid package2"); $_SESSION["package"] = $pkg; // don't use the include_once directive unless you want // to always display this page in the default language include("config/uc_templates.inc"); $tmpl = new ModeliXe($uc_tmpl["PREINSTALL"]); $tmpl->SetModeliXe(); $tmpl->MxAttribut("configure", $ucConfig->upcaseUrl . "/admin/pkg_configure.php"); $tmpl->MxText("siteurl", $ucConfig->siteUrl); $tmpl->MxText("pkgname", $package->name); $tmpl->MxWrite(); ?> --- NEW FILE: pkg_uninstall.php --- <?php include_once("../config/uc_config.inc"); include_once("uc_page.php"); include_once("uc_utils.php"); include_once("uc_accounts.php"); include_once("uc_installer.php"); $page = new UcPage("unInstall"); $page->open(); $packageId = checkVar("appid", false) or die("No package id given"); $user = $page->session->getUser(); include("uc_templates.php"); $userName = checkVar("username", false); $userPassword = checkVar("password", false); if (!$userName || !$userPassword) { $tmpl = new ModeliXe($uc_tmpl["FORCE_LOGIN"]); $tmpl->SetModeliXe(); $tmpl->MxHidden("params", "appid=$packageId"); $tmpl->MxWrite(); } else { if ($userName != $user->name) { die("Go out !"); } $accountMgr = new UcAccountManager($page->session->db); if (!$accountMgr->checkUserPassword($userName, $userPassword)) { die("Go out 2nd time !"); } $inst = new UcInstaller(); $inst->unInstall($packageId); header("Location: " . $ucConfig->upcaseUrl . "/admin/repository.php"); } ?> |
From: <jhe...@us...> - 2002-12-04 09:16:09
|
Update of /cvsroot/upcase-project/UpCase/lib/adodb/drivers In directory sc8-pr-cvs1:/tmp/cvs-serv5086/drivers Added Files: adodb-mssqlpo.inc.php Log Message: cleaning up adodb update --- NEW FILE: adodb-mssqlpo.inc.php --- <?php /** * @version V2.50 14 Nov 2002 (c) 2000-2002 John Lim (jl...@na...). All rights reserved. * Released under both BSD license and Lesser GPL library license. * Whenever there is any discrepancy between the two licenses, * the BSD license will take precedence. * * Set tabs to 4 for best viewing. * * Latest version is available at http://php.weblogs.com * * Portable MSSQL Driver that supports || instead of + * */ include_once(ADODB_DIR.'/drivers/adodb-mssql.inc.php'); class ADODB_mssqlpo extends ADODB_mssql { var $databaseType = "mssqlpo"; /* The big difference between mssqlpo and it's parent mssql is that mssqlpo supports the more standard || string concatenation operator. */ function _query($sql,$inputarr) { return ADODB_mssql::_query(str_replace('||','+',$sql),$inputarr); } } class ADORecordset_mssqlpo extends ADORecordset_mssql { var $databaseType = "mssqlpo"; function ADORecordset_mssqlpo($id) { $this->ADORecordset_mssql($id); } function MoveNext() { if (!$this->EOF) { $this->_currentRow++; if ($this->fetchMode & ADODB_FETCH_ASSOC) { global $ADODB_mssql_has_datetimeconvert; if ($ADODB_mssql_has_datetimeconvert) // only for PHP 4.2.0 or later $this->fields = @mssql_fetch_assoc($this->_queryID); else { $flds = @mssql_fetch_array($this->_queryID); if (is_array($flds)) { $fassoc = array(); foreach($flds as $k => $v) { if (is_numeric($k)) continue; $fassoc[$k] = $v; } $this->fields = $fassoc; } else $this->fields = $flds; } } else { $this->fields = @mssql_fetch_row($this->_queryID); } if (is_array($this->fields)) return true; $this->EOF = true; } return false; } } ?> |
Update of /cvsroot/upcase-project/UpCase/lib/adodb In directory sc8-pr-cvs1:/tmp/cvs-serv5086 Added Files: pivottable.inc.php rsfilter.inc.php Removed Files: readme.htm readme.txt tips_portable_sql.htm tute.htm Log Message: cleaning up adodb update --- NEW FILE: pivottable.inc.php --- <?php /** * @version V2.50 14 Nov 2002 (c) 2000-2002 John Lim (jl...@na...). All rights reserved. * Released under both BSD license and Lesser GPL library license. * Whenever there is any discrepancy between the two licenses, * the BSD license will take precedence. * * Set tabs to 4 for best viewing. * * Latest version is available at http://php.weblogs.com * * Requires PHP4.01pl2 or later because it uses include_once */ /* * Concept from dan...@aj.... * * @param db Adodb database connection * @param tables List of tables to join * @rowfields List of fields to display on each row * @colfield Pivot field to slice and display in columns, if we want to calculate * ranges, we pass in an array (see example2) * @where Where clause. Optional. * @aggfield This is the field to sum. Optional. * Since 2.3.1, if you can use your own aggregate function * instead of SUM, eg. $sumfield = 'AVG(fieldname)'; * @sumlabel Prefix to display in sum columns. Optional. * @aggfn Aggregate function to use (could be AVG, SUM, COUNT) * @showcount Show count of records * * @returns Sql generated */ function PivotTableSQL($db,$tables,$rowfields,$colfield, $where=false, $aggfield = false,$sumlabel='Sum ',$aggfn ='SUM', $showcount = true) { if ($aggfield) $hidecnt = true; else $hidecnt = false; //$hidecnt = false; if ($where) $where = "\nWHERE $where"; if (!is_array($colfield)) $colarr = $db->GetCol("select distinct $colfield from $tables $where order by 1"); if (!$aggfield) $hidecnt = false; $sel = "$rowfields, "; if (is_array($colfield)) { foreach ($colfield as $k => $v) { if (!$hidecnt) $sel .= "\n\t$aggfn(CASE WHEN $v THEN 1 ELSE 0 END) AS \"$k\", "; if ($aggfield) $sel .= "\n\t$aggfn(CASE WHEN $v THEN $aggfield ELSE 0 END) AS \"$sumlabel$k\", "; } } else { foreach ($colarr as $v) { if (!is_numeric($v)) $vq = $db->qstr($v); else $vq = $v; if (strlen($v) == 0 ) $v = 'null'; if (!$hidecnt) $sel .= "\n\t$aggfn(CASE WHEN $colfield=$vq THEN 1 ELSE 0 END) AS \"$v\", "; if ($aggfield) { if ($hidecnt) $label = $v; else $label = "{$v}_$aggfield"; $sel .= "\n\t$aggfn(CASE WHEN $colfield=$vq THEN $aggfield ELSE 0 END) AS \"$label\", "; } } } if ($aggfield && $aggfield != '1'){ $agg = "$aggfn($aggfield)"; $sel .= "\n\t$agg as \"$sumlabel$aggfield\", "; } if ($showcount) $sel .= "\n\tSUM(1) as Total"; $sql = "SELECT $sel \nFROM $tables $where \nGROUP BY $rowfields"; return $sql; } /* EXAMPLES USING MS NORTHWIND DATABASE */ if (0) { # example1 # # Query the main "product" table # Set the rows to CompanyName and QuantityPerUnit # and the columns to the Categories # and define the joins to link to lookup tables # "categories" and "suppliers" # $sql = PivotTableSQL( $gDB, # adodb connection 'products p ,categories c ,suppliers s', # tables 'CompanyName,QuantityPerUnit', # row fields 'CategoryName', # column fields 'p.CategoryID = c.CategoryID and s.SupplierID= p.SupplierID' # joins/where ); print "<pre>$sql"; $rs = $gDB->Execute($sql); rs2html($rs); /* Generated SQL: SELECT CompanyName,QuantityPerUnit, SUM(CASE WHEN CategoryName='Beverages' THEN 1 ELSE 0 END) AS "Beverages", SUM(CASE WHEN CategoryName='Condiments' THEN 1 ELSE 0 END) AS "Condiments", SUM(CASE WHEN CategoryName='Confections' THEN 1 ELSE 0 END) AS "Confections", SUM(CASE WHEN CategoryName='Dairy Products' THEN 1 ELSE 0 END) AS "Dairy Products", SUM(CASE WHEN CategoryName='Grains/Cereals' THEN 1 ELSE 0 END) AS "Grains/Cereals", SUM(CASE WHEN CategoryName='Meat/Poultry' THEN 1 ELSE 0 END) AS "Meat/Poultry", SUM(CASE WHEN CategoryName='Produce' THEN 1 ELSE 0 END) AS "Produce", SUM(CASE WHEN CategoryName='Seafood' THEN 1 ELSE 0 END) AS "Seafood", SUM(1) as Total FROM products p ,categories c ,suppliers s WHERE p.CategoryID = c.CategoryID and s.SupplierID= p.SupplierID GROUP BY CompanyName,QuantityPerUnit */ //===================================================================== # example2 # # Query the main "product" table # Set the rows to CompanyName and QuantityPerUnit # and the columns to the UnitsInStock for different ranges # and define the joins to link to lookup tables # "categories" and "suppliers" # $sql = PivotTableSQL( $gDB, # adodb connection 'products p ,categories c ,suppliers s', # tables 'CompanyName,QuantityPerUnit', # row fields # column ranges array( ' 0 ' => 'UnitsInStock <= 0', "1 to 5" => '0 < UnitsInStock and UnitsInStock <= 5', "6 to 10" => '5 < UnitsInStock and UnitsInStock <= 10', "11 to 15" => '10 < UnitsInStock and UnitsInStock <= 15', "16+" =>'15 < UnitsInStock' ), ' p.CategoryID = c.CategoryID and s.SupplierID= p.SupplierID', # joins/where 'UnitsInStock', # sum this field 'Sum' # sum label prefix ); print "<pre>$sql"; $rs = $gDB->Execute($sql); rs2html($rs); /* Generated SQL: SELECT CompanyName,QuantityPerUnit, SUM(CASE WHEN UnitsInStock <= 0 THEN UnitsInStock ELSE 0 END) AS "Sum 0 ", SUM(CASE WHEN 0 < UnitsInStock and UnitsInStock <= 5 THEN UnitsInStock ELSE 0 END) AS "Sum 1 to 5", SUM(CASE WHEN 5 < UnitsInStock and UnitsInStock <= 10 THEN UnitsInStock ELSE 0 END) AS "Sum 6 to 10", SUM(CASE WHEN 10 < UnitsInStock and UnitsInStock <= 15 THEN UnitsInStock ELSE 0 END) AS "Sum 11 to 15", SUM(CASE WHEN 15 < UnitsInStock THEN UnitsInStock ELSE 0 END) AS "Sum 16+", SUM(UnitsInStock) AS "Sum UnitsInStock", SUM(1) as Total FROM products p ,categories c ,suppliers s WHERE p.CategoryID = c.CategoryID and s.SupplierID= p.SupplierID GROUP BY CompanyName,QuantityPerUnit */ } ?> --- NEW FILE: rsfilter.inc.php --- <?php /** * @version V2.50 14 Nov 2002 (c) 2000-2002 John Lim (jl...@na...). All rights reserved. * Released under both BSD license and Lesser GPL library license. * Whenever there is any discrepancy between the two licenses, * the BSD license will take precedence. * * Set tabs to 4 for best viewing. * * Latest version is available at http://php.weblogs.com * * Requires PHP4.01pl2 or later because it uses include_once */ /* Filter all fields and all rows in a recordset and returns the processed recordset. We scroll to the beginning of the new recordset after processing. We pass a recordset and function name to RSFilter($rs,'rowfunc'); and the function will be called multiple times, once for each row in the recordset. The function will be passed an array containing one row repeatedly. Example: // ucwords() every element in the recordset function do_ucwords(&$arr,$rs) { foreach($arr as $k => $v) { $arr[$k] = ucwords($v); } } $rs = RSFilter($rs,'do_ucwords'); */ function &RSFilter($rs,$fn) { if ($rs->databaseType != 'array') { $rs = &$rs->connection->_rs2rs($rs); } $rows = $rs->RecordCount(); for ($i=0; $i < $rows; $i++) { $fn($rs->_array[$i],$rs); } if (!$rs->EOF) { $rs->_currentRow = 0; $rs->fields = $rs->_array[0]; } return $rs; } ?> --- readme.htm DELETED --- --- readme.txt DELETED --- --- tips_portable_sql.htm DELETED --- --- tute.htm DELETED --- |
From: <jhe...@us...> - 2002-12-04 09:07:59
|
Update of /cvsroot/upcase-project/UpCase/lib In directory sc8-pr-cvs1:/tmp/cvs-serv32314 Removed Files: sql2php.sh Log Message: should go in something like a tools directory --- sql2php.sh DELETED --- |
From: <jhe...@us...> - 2002-12-04 09:05:28
|
Update of /cvsroot/upcase-project/UpCase/lib In directory sc8-pr-cvs1:/tmp/cvs-serv30521 Modified Files: Tar.php Log Message: little bug correction in extractList method Index: Tar.php =================================================================== RCS file: /cvsroot/upcase-project/UpCase/lib/Tar.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Tar.php 8 Aug 2002 13:53:37 -0000 1.1 --- Tar.php 4 Dec 2002 09:05:24 -0000 1.2 *************** *** 2,8 **** /* vim: set ts=4 sw=4: */ // +----------------------------------------------------------------------+ ! // | PHP version 4.0 | // +----------------------------------------------------------------------+ ! // | Copyright (c) 1997-2001 The PHP Group | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.02 of the PHP license, | --- 2,8 ---- /* vim: set ts=4 sw=4: */ // +----------------------------------------------------------------------+ [...1283 lines suppressed...] + + // {{{ _translateWinPath() + function _translateWinPath($p_path, $p_remove_disk_letter=true) + { + if (OS_WINDOWS) { + // ----- Look for potential disk letter + if (($p_remove_disk_letter) && (($v_position = strpos($p_path, ':')) != false)) { + $p_path = substr($p_path, $v_position+1); + } + // ----- Change potential windows directory separator + if ((strpos($p_path, '\\') > 0) || (substr($p_path, 0,1) == '\\')) { + $p_path = strtr($p_path, '\\', '/'); + } + } + return $p_path; + } // }}} } ! ?> |
From: <jhe...@us...> - 2002-12-04 09:03:20
|
Update of /cvsroot/upcase-project/UpCase/lib In directory sc8-pr-cvs1:/tmp/cvs-serv28745 Modified Files: uc_installer.php Log Message: restructuration to better split the different steps of installation : pre-configuration, configuration, installation Index: uc_installer.php =================================================================== RCS file: /cvsroot/upcase-project/UpCase/lib/uc_installer.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** uc_installer.php 28 Nov 2002 14:27:22 -0000 1.8 --- uc_installer.php 4 Dec 2002 09:03:17 -0000 1.9 *************** *** 12,15 **** --- 12,16 ---- define("LOCAL_METADATA_DIR", "/packages/db"); + define("LOCAL_DL_DIR", "/packages/dl"); class UcPackageDBInfo *************** *** 26,44 **** var $metaDataFile; ! function UcPackageInstance($name, $version, $configData) { - $cfg = $GLOBALS["ucConfig"]; $this->name = $name; ! $this->metaDataFile = $cfg->upcaseRoot . LOCAL_METADATA_DIR ! . "/" . $name . "-" . $version . ".inc"; include($this->metaDataFile); $this->description = $description; $this->homePage = $home_page; - $this->version = $version; $this->source = $source; $this->supported = $supported; - $this->path = $configData["PACKAGE_PATH"]; $this->tables = $tables; ! $this->prefix = $configData["TABLES_PREFIX"]; $this->configData = $configData; } --- 27,58 ---- var $metaDataFile; ! function UcPackageInstance($name, $version, $destPath, $tblPrefix, ! $appid = -1) { $this->name = $name; ! $this->version = $version; ! $this->path = $destPath; ! $this->prefix = $tblPrefix; ! $this->fullName = $this->name . "-" . $this->version . "-uc"; ! $this->appid = $appid; ! } ! ! function setMetaData() ! { ! $cfg = $GLOBALS["ucConfig"]; ! $this->metaDataFile = $cfg->upcaseRoot . LOCAL_METADATA_DIR ! . "/" . $this->fullName . "/meta.inc"; include($this->metaDataFile); $this->description = $description; $this->homePage = $home_page; $this->source = $source; $this->supported = $supported; $this->tables = $tables; ! $this->setupScript = $setup_script; ! return true; ! } ! ! function setConfigData($configData) ! { $this->configData = $configData; } *************** *** 52,64 **** class UcInstaller { ! var $metaBackup; var $db; function UcInstaller() { ! $cfg = $GLOBALS["ucConfig"]; ! $this->metaBackup = $cfg->upcaseRoot . LOCAL_METADATA_DIR; $this->db = new UcSql(); - $this->tmpDir = $cfg->upcaseRoot . "/packages/dl"; } --- 66,80 ---- class UcInstaller { ! var $metaDir; ! var $dlDir; ! var $cfg; var $db; function UcInstaller() { ! $this->cfg = $GLOBALS["ucConfig"]; ! $this->metaDir = $this->cfg->upcaseRoot . LOCAL_METADATA_DIR; ! $this->dlDir = $this->cfg->upcaseRoot . LOCAL_DL_DIR; $this->db = new UcSql(); } *************** *** 77,82 **** { $pkg = new UcPackageInstance($o->PKGNAME, $o->PKGVERSION, ! array("PACKAGE_PATH" => $o->PKGPATH, ! "TABLES_PREFIX" => $o->TBLPREFIX)); $pkg->setStatus($o->INSTALLED); $ret[] = $pkg; --- 93,98 ---- { $pkg = new UcPackageInstance($o->PKGNAME, $o->PKGVERSION, ! $o->PKGPATH, $o->TBLPREFIX, ! $o->APPID); $pkg->setStatus($o->INSTALLED); $ret[] = $pkg; *************** *** 85,95 **** return $ret; } ! function saveMetaData($package) { $srcFile = $package->metaDataFile; ! $dstFile = $this->metaBackup . "/" . $package->name ! . "-" . $package->version . ".inc"; ! copy($srcFile, $dstFile); } --- 101,129 ---- return $ret; } ! ! function getPackageById($appid) ! { ! $query = sprintf($GLOBALS["ucsql_getpackagebyid"], $appid); ! $res = $this->db->Execute($query) ! or die("Unable to get package $appid: " . $this->db->ErrorMsg()); ! if ($res->RowCount() == 0) ! return false; ! if ($res->RowCount() != 1) ! die("Problem with your db, more than one application with same appid"); ! $o = $res->FetchNextObject(true); ! $pkgInst = new UcPackageInstance($o->PKGNAME, $o->PKGVERSION, ! $o->PKGPATH, $o->TBLPREFIX, ! $o->APPID); ! $pkgInst->setStatus($o->INSTALLED); ! $pkgInst->setMetaData(); ! return $pkgInst; ! } ! function saveMetaData($package) { $srcFile = $package->metaDataFile; ! $pkgFullName = $package->name . "-" . $package->version . "-uc"; ! $dstFile = $this->metaDir . "/" . $pkgFullName . "/" . "meta.inc"; ! return copy($srcFile, $dstFile); } *************** *** 97,101 **** { $res = download($package->sourceDir . "/" . $package->source, ! $this->tmpDir . "/" . $package->source); if ($res < 0) return false; --- 131,135 ---- { $res = download($package->sourceDir . "/" . $package->source, ! $this->dlDir . "/" . $package->source); if ($res < 0) return false; *************** *** 103,106 **** --- 137,162 ---- } + function extractScripts($package) + { + $pkgFullName = $package->name . "-" . $package->version . "-uc"; + $destDir = $this->metaDir . "/" . $pkgFullName; + if (!createDirectory($destDir)) + return false; + $archive = new Archive_Tar($this->dlDir . "/" + . $package->source, true); + return $archive->extractList($pkgFullName . "/upcase/", + $destDir, $pkgFullName); + } + + function getConfigInputs($package) + { + $pkgFullName = $package->name . "-" . $package->version . "-uc"; + include_once($this->metaDir . "/" . $pkgFullName . PACKAGE_SETUP); + if (!empty($config_input) || count($config_input) > 0) + return $config_input; + else + return false; + } + // Check if a path does not contains '..' and symlinks // Used to check the validity of the module URL given *************** *** 133,151 **** } ! function unpack($package, $toPath) { ! $archive = new Archive_Tar($this->tmpDir ! . "/" . $package->source, true); ! return $archive->extractModify($toPath, $package->name . "-" ! . $package->version ! . "-uc"); } ! function setupMySQL($packageInstance) { ! $cfg = $GLOBALS["ucConfig"]; ! $sqlPath = $cfg->siteRoot . "/" . $packageInstance->path . "/" ! . MYSQL_QUERIES; if (!file_exists($sqlPath)) return false; --- 189,267 ---- } ! function unpack($packageInstance, $toPath) { ! $archive = new Archive_Tar($this->dlDir . "/" ! . $packageInstance->source, true); ! return $archive->extractModify($toPath, $packageInstance->fullName); } ! function createManifest($packageInstance) { ! $archive = new Archive_Tar($this->dlDir ! . "/" . $packageInstance->source, true); ! $manifest = $archive->listContent(); ! $ar = array(); ! $skip = strlen($packageInstance->fullName) + 1; ! foreach ($manifest as $file) ! { ! $fileName = substr($file["filename"], $skip); ! $fileType = "R"; ! if ($file["typeflag"] == 5) ! $fileType = "D"; ! $ar[] = "('" . $packageInstance->appid . ! "', '" . $fileType . ! "', '" . $packageInstance->path . "/" . $fileName . ! "', '" . $file["checksum"] . ! "', '" . $file["mtime"] . ! "', '" . $file["mode"] . "')"; ! } ! $queryParams = join(',', $ar); ! $query = $GLOBALS["ucsql_packagemanifest"] . $queryParams; ! $this->db->Execute($query) ! or die("Unable to create manifest for package: " ! . $this->db->ErrorMsg()); ! return true; ! } + function removeFiles($packageId) + { + $query = sprintf($GLOBALS["ucsql_getfiles"], $packageId); + $res = $this->db->Execute($query) + or die("Unable to retrieve file list for package: " + . $this->db->ErrorMsg()); + $notRemovedFiles = array(); + while (($o = $res->FetchNextObject(true))) + { + $file = $this->cfg->siteRoot . "/" . $o->FILENAME; + if ($o->TYPE == "D") + { + if (!@rmdir($file)) + { + $notRemovedFiles[] = $file; + } + } + else + { + if (!@unlink($file)) + { + $notRemovedFiles[] = $file; + } + } + } + return $notRemovedFiles; + } + + function removeManifest($packageId) + { + $query = sprintf($GLOBALS["ucsql_rmmanifest"], $packageId); + $this->db->Execute($query) + or die("Unable to delete manifest: " . $this->db->ErrorMsg()); + return true; + } + + function setupMySQL(&$packageInstance) + { + $sqlPath = $this->metaDir . "/" . $packageInstance->fullName . "/" + . MYSQL_QUERIES; if (!file_exists($sqlPath)) return false; *************** *** 162,213 **** } - function getConfigInputs($package, $pkgPath) - { - $cfg = $GLOBALS["ucConfig"]; - - include_once($cfg->siteRoot . "/" - . $pkgPath . PACKAGE_SETUP); - if (!empty($config_input) || count($config_input) > 0) - return $config_input; - else - return false; - } ! function setupPackage($packageInstance) { - $cfg = $GLOBALS["ucConfig"]; - $dbinf = new UcPackageDBInfo(); ! $dbinf->name = $cfg->dbName; ! $dbinf->user = $cfg->dbUser; ! $dbinf->passwd = $cfg->dbPasswd; ! $dbinf->host = $cfg->dbHost; $dbinf->prefix = $packageInstance->prefix . "_"; ! include_once($cfg->siteRoot . "/" ! . $packageInstance->path . "/" . PACKAGE_SETUP); ! setup($dbinf, $cfg->siteUrl, $cfg->siteRoot, $packageInstance) or die("Unable to setup package"); return true; } ! function registerPackage($package, $destPath, $tblPrefix) { $query = sprintf($GLOBALS["ucsql_packageregister"], ! $package->name, $package->version, ! $destPath, $tblPrefix); $this->db->Execute($query) or die("Unable to register package: " . $this->db->ErrorMsg()); return true; } ! function unregisterPackage($packageInstance) { ! $query = sprintf($GLOBALS["ucsql_packageunregister"], ! $packageInstance->name, ! $packageInstance->version, ! $packageInstance->path, ! $packageInstance->prefix); $this->db->Execute($query) or die("Unable to unregister package: " . $this->db->ErrorMsg()); --- 278,314 ---- } ! function setupPackage(&$packageInstance) { $dbinf = new UcPackageDBInfo(); ! $dbinf->name = $this->cfg->dbName; ! $dbinf->user = $this->cfg->dbUser; ! $dbinf->passwd = $this->cfg->dbPasswd; ! $dbinf->host = $this->cfg->dbHost; $dbinf->prefix = $packageInstance->prefix . "_"; ! include_once($this->metaDir . "/" ! . $packageInstance->fullName . "/" . PACKAGE_SETUP); ! setup($dbinf, $this->cfg->siteUrl, $this->cfg->siteRoot, ! $packageInstance) or die("Unable to setup package"); return true; } ! function registerPackage(&$packageInstance) { $query = sprintf($GLOBALS["ucsql_packageregister"], ! $packageInstance->name, $packageInstance->version, ! $packageInstance->path, $packageInstance->prefix); $this->db->Execute($query) or die("Unable to register package: " . $this->db->ErrorMsg()); + $packageInstance->appid = $this->db->Insert_ID(); return true; } ! function unregisterPackage($packageId) { ! $query = sprintf($GLOBALS["ucsql_packageunregister"], $packageId); $this->db->Execute($query) or die("Unable to unregister package: " . $this->db->ErrorMsg()); *************** *** 227,252 **** function preInstall($package, $destPath, $tblPrefix) { ! $cfg = $GLOBALS["ucConfig"]; ! $this->saveMetaData($package); $this->download($package) or die("Unable to get package archive"); ! $fullPath = $cfg->siteRoot . "/" .$destPath; ! $this->checkPathValidity($fullPath) or die("Invalid destination path"); ! $this->registerPackage($package, $destPath, $tblPrefix) ! or die("Unable to register package to be installed"); ! createDirectory($fullPath) ! or die("Unable to create directory $pkgPath"); ! $this->unpack($package, $fullPath) ! or die("Unable to unpack package"); } ! function install($package, $configData) { ! $cfg = $GLOBALS["ucConfig"]; ! $packageInstance = new UcPackageInstance($package->name, ! $package->version, ! $configData); ! if ($package->supported == 1) { $this->setupMySQL($packageInstance) --- 328,365 ---- function preInstall($package, $destPath, $tblPrefix) { ! $pkgInst = new UcPackageInstance($package->name, ! $package->version, ! $destPath, ! $tblPrefix); ! ! $this->registerPackage($pkgInst) ! or die("Unable to register package to be installed"); ! $this->download($package) or die("Unable to get package archive"); ! $this->extractScripts($package) ! or die("Unable to get install scripts for package"); ! $this->saveMetaData($package) ! or die("Unable to save meta data for package"); ! $pkgInst->setMetaData() ! or die("Unable to set meta data for package"); ! $this->checkPathValidity($this->cfg->siteRoot . "/" . $destPath) or die("Invalid destination path"); ! ! return $pkgInst; } ! function install(&$packageInstance, $configData) { ! $packageInstance->setConfigData($configData); ! $fullPath = $this->cfg->siteRoot . "/" . $packageInstance->path; ! createDirectory($fullPath) ! or die("Unable to create directory $fullPath"); ! $this->createManifest($packageInstance) ! or die("Unable to store manifest for package"); ! $this->unpack($packageInstance, $fullPath) ! or die("Unable to unpack package"); ! ! if ($packageInstance->supported == 1) { $this->setupMySQL($packageInstance) *************** *** 258,263 **** else { ! $redirect = $cfg->siteUrl . "/" . $packageInstance->path ! . "/" . $package->setupScript; } $this->setInstallComplete($packageInstance); --- 371,376 ---- else { ! $redirect = $this->cfg->siteUrl . "/" . $packageInstance->path ! . "/" . $packageInstance->setupScript; } $this->setInstallComplete($packageInstance); *************** *** 265,281 **** } ! function uninstall($packageName, $packageVersion, $relUrl) { ! $cfg = $GLOBALS["ucConfig"]; ! $pkgAr = $this->getPackages($packageName, $packageVersion, $relUrl); ! $package = $pkgAr[0]; $tablesAr = array(); ! foreach ($package->tables as $table) ! $tablesAr[] = $package->prefix . "_" . $table; $tablesList = join(',', $tablesAr); $query = "DROP TABLE " . $tablesList; $this->db->Execute($query); ! $this->unregisterPackage($package); ! rrmdir($cfg->siteRoot . "/" . $relUrl); } } --- 378,394 ---- } ! function unInstall($packageId) { ! $pkgInst = $this->getPackageById($packageId) ! or die("Unable to get package $packageID"); $tablesAr = array(); ! foreach ($pkgInst->tables as $table) ! $tablesAr[] = $pkgInst->prefix . "_" . $table; $tablesList = join(',', $tablesAr); $query = "DROP TABLE " . $tablesList; $this->db->Execute($query); ! $this->unregisterPackage($packageId); ! $nrm = $this->removeFiles($packageId); ! $this->removeManifest($packageId); } } |
From: <jhe...@us...> - 2002-12-04 09:00:47
|
Update of /cvsroot/upcase-project/UpCase/lib In directory sc8-pr-cvs1:/tmp/cvs-serv23843 Modified Files: uc_sql-mysql.inc Log Message: added queries to handle package manifest and variables stored in th db Index: uc_sql-mysql.inc =================================================================== RCS file: /cvsroot/upcase-project/UpCase/lib/uc_sql-mysql.inc,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** uc_sql-mysql.inc 28 Nov 2002 14:23:24 -0000 1.9 --- uc_sql-mysql.inc 4 Dec 2002 09:00:44 -0000 1.10 *************** *** 91,94 **** --- 91,95 ---- // INSTALLER $installer_tbl = $ucConfig->tblPrefix . $ucConfig->dbTables["installer"]; + $files_tbl = $ucConfig->tblPrefix . $ucConfig->dbTables["files"]; $ucsql_packagestatus = "SELECT * FROM $installer_tbl WHERE pkgname = '%s'" . " AND pkgversion LIKE '%s'" *************** *** 97,106 **** . " AND pkgversion LIKE '%s' AND pkgpath LIKE '%s'" . " AND tblprefix LIKE '%s' AND installed LIKE '%s'"; $ucsql_packageregister = "INSERT INTO $installer_tbl" . " (pkgname, pkgversion, pkgpath, tblprefix)" . " VALUES ('%s', '%s', '%s', '%s')"; $ucsql_packageunregister = "DELETE FROM $installer_tbl" ! . " WHERE pkgname = '%s' AND pkgversion = '%s'" ! . " AND pkgpath = '%s' AND tblprefix = '%s'"; $ucsql_packageinstcomp = "UPDATE $installer_tbl SET installed = '1'" . " WHERE pkgname = '%s' AND pkgversion = '%s'" --- 98,107 ---- . " AND pkgversion LIKE '%s' AND pkgpath LIKE '%s'" . " AND tblprefix LIKE '%s' AND installed LIKE '%s'"; + $ucsql_getpackagebyid = "SELECT * FROM $installer_tbl WHERE appid = '%s'"; $ucsql_packageregister = "INSERT INTO $installer_tbl" . " (pkgname, pkgversion, pkgpath, tblprefix)" . " VALUES ('%s', '%s', '%s', '%s')"; $ucsql_packageunregister = "DELETE FROM $installer_tbl" ! . " WHERE appid = '%s'"; $ucsql_packageinstcomp = "UPDATE $installer_tbl SET installed = '1'" . " WHERE pkgname = '%s' AND pkgversion = '%s'" *************** *** 108,111 **** $ucsql_packageinstalled = "SELECT * FROM $installer_tbl" . " WHERE pkgname LIKE '%s' AND installed = '1'"; ! ?> --- 109,120 ---- $ucsql_packageinstalled = "SELECT * FROM $installer_tbl" . " WHERE pkgname LIKE '%s' AND installed = '1'"; ! $ucsql_packagemanifest = "INSERT INTO $files_tbl" ! . " (appid, type, filename, checksum, mtime, mode) VALUES "; ! $ucsql_rmmanifest = "DELETE FROM $files_tbl WHERE appid = '%s'"; ! $ucsql_getfiles = "SELECT * FROM $files_tbl WHERE appid = '%s'" ! . " ORDER BY filename DESC"; ! ! $vars_tbl = $ucConfig->tblPrefix . $ucConfig->dbTables["vars"]; ! $ucsql_getvars = "SELECT VALUE FROM $vars_tbl WHERE name = '%s'"; ! $ucsql_setvars = "UPDATE $vars_tbl SET value = '%s' WHERE name = '%s'"; ?> |
From: <jhe...@us...> - 2002-12-04 08:54:02
|
Update of /cvsroot/upcase-project/UpCase/lib In directory sc8-pr-cvs1:/tmp/cvs-serv23059 Modified Files: uc_sql.php Log Message: added Insert_ID method Index: uc_sql.php =================================================================== RCS file: /cvsroot/upcase-project/UpCase/lib/uc_sql.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** uc_sql.php 5 Aug 2002 08:51:09 -0000 1.2 --- uc_sql.php 4 Dec 2002 08:53:59 -0000 1.3 *************** *** 34,38 **** --- 34,44 ---- return $this->db->ErrorMsg(); } + + function Insert_ID() + { + return $this->db->Insert_ID(); + } } + ?> |
From: <jhe...@us...> - 2002-11-28 15:03:03
|
Update of /cvsroot/upcase-project/UpCase/config In directory sc8-pr-cvs1:/tmp/cvs-serv1806 Modified Files: uc_templates.inc Log Message: added some templates Index: uc_templates.inc =================================================================== RCS file: /cvsroot/upcase-project/UpCase/config/uc_templates.inc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** uc_templates.inc 13 Nov 2002 08:59:02 -0000 1.3 --- uc_templates.inc 28 Nov 2002 15:03:00 -0000 1.4 *************** *** 24,27 **** --- 24,29 ---- $uc_tmpl["PERMISSIONS"] = $uc_lang . "/permissions.mxt"; $uc_tmpl["BAD_LOGIN"] = $uc_lang . "/badlogin.mxt"; + $uc_tmpl["ADMINS_ONLY"] = $uc_lang . "/adminsonly.mxt"; + $uc_tmpl["ACCESS_DENIED"] = $uc_lang . "/accessdenied.mxt"; $uc_tmpl["NEW_OBJECT"] = $uc_lang . "/newobject.mxt"; $uc_tmpl["MENU"] = $uc_lang . "/menu.mxt"; *************** *** 34,36 **** --- 36,40 ---- $uc_tmpl["CATEGORY"] = $uc_lang . "/category.mxt"; $uc_tmpl["INSTALLER"] = $uc_lang . "/installer.mxt"; + $uc_tmpl["CONFIGURE"] = $uc_lang . "/configure.mxt"; + $uc_tmpl["PREINSTALL"] = $uc_lang . "/preinstall.mxt"; ?> |
From: <jhe...@us...> - 2002-11-28 15:01:55
|
Update of /cvsroot/upcase-project/UpCase In directory sc8-pr-cvs1:/tmp/cvs-serv652 Modified Files: install.php Log Message: added defines for admis and all gids, packagesSource poit to http://dev.upcase.be/packages Index: install.php =================================================================== RCS file: /cvsroot/upcase-project/UpCase/install.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** install.php 20 Nov 2002 12:11:24 -0000 1.7 --- install.php 28 Nov 2002 15:01:52 -0000 1.8 *************** *** 171,176 **** $ucConfig = '<?php ! ini_set("include_path", ".:' . $upcaseRoot . ':' . $upcaseRoot . '/config"); ! include_once("lib/uc_config.php"); $xmlConf = "' . $upcaseRoot . '/config/upcase.xml"; $ucConfig = new UcConfig($xmlConf); --- 171,176 ---- $ucConfig = '<?php ! ini_set("include_path", ".:' . $upcaseRoot . ':' . $upcaseRoot . '/config:' . $upcaseRoot . '/lib'); ! include_once("uc_config.php"); $xmlConf = "' . $upcaseRoot . '/config/upcase.xml"; $ucConfig = new UcConfig($xmlConf); *************** *** 189,193 **** $uc_info["sessionSteal"] = $msgdir . "/sessionsteal.php"; $packagesList = "http://galaad/UPCASE/packages/packages.xml"; ! $packagesSource = "http://galaad/UPCASE/packages"; ?>'; --- 189,195 ---- $uc_info["sessionSteal"] = $msgdir . "/sessionsteal.php"; $packagesList = "http://galaad/UPCASE/packages/packages.xml"; ! $packagesSource = "http://dev.upcase.be/packages"; ! define("ADMINS_GID", "1"); ! define("ALL_GID", "2"); ?>'; |
From: <jhe...@us...> - 2002-11-28 14:56:27
|
Update of /cvsroot/upcase-project/UpCase/templates/en In directory sc8-pr-cvs1:/tmp/cvs-serv26330 Added Files: configure.mxt preinstall.mxt Log Message: template for preinstall and configure steps --- NEW FILE: configure.mxt --- <html> <head> <title>Package Configuration</title> </head> <body> <h1>Configuration of <mx:text id="pkgname" /></h1> Please fill in the following form to configure your new package. Some values maybe defined by default. <form mXattribut="action:installer"> <mx:hidden id="params" /> <table> <mx:bloc id="inputs"> <tr> <td><mx:text id="label" /> : </td> <td colspan="2"> <mx:bloc id="fields"> <mx:formField id="field" /> </mx:bloc id="fields"> <mx:bloc id="enums"> <mx:select id="enum" /> </mx:bloc id="enums"> <mx:bloc id="booleans"> <mx:checker id="boolean" /> </mx:bloc id="booleans"> <td> </tr> </mx:bloc id="inputs"> <tr> <td><input type="submit" value="Install"></td> <td><input type="reset"></td> </tr> </table> </form> </body> </html> --- NEW FILE: preinstall.mxt --- <html> <head> <title>Package pre-installation</title> </head> <body> <h1>Pre-installation of <mx:text id="pkgname" /></h1> <div> This step will unpack the archive in the place you specify here. If you want to cancel the installation procedure, point your browser back to the page where you selected the package for installation and click on "uninstall" for the instance you want to remove. </div> <form mXattribut="action:installer"> <mx:hidden id="params" /> <table> <tr> <td>Installation Path : </td> <td><mx:text id="siteurl" />/<input type="text" name="pkgpath"></td> </tr> <tr> <td>Database tables prefix : </td> <td><input type="text" name="tblprefix"></td> </tr> <tr> <td><input type="submit" value="Continue"></td> </tr> </table> </form> </body> </html> |