openfirst-cvscommit Mailing List for openFIRST (Page 38)
Brought to you by:
xtimg
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(41) |
Jun
(210) |
Jul
(39) |
Aug
(153) |
Sep
(147) |
Oct
(173) |
Nov
(81) |
Dec
(163) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(33) |
Feb
(18) |
Mar
|
Apr
(62) |
May
|
Jun
(100) |
Jul
(38) |
Aug
(58) |
Sep
(1) |
Oct
|
Nov
(25) |
Dec
(172) |
2005 |
Jan
(31) |
Feb
(12) |
Mar
(67) |
Apr
(92) |
May
(247) |
Jun
(34) |
Jul
(36) |
Aug
(192) |
Sep
(15) |
Oct
(42) |
Nov
(92) |
Dec
(4) |
2006 |
Jan
|
Feb
(21) |
Mar
|
Apr
|
May
|
Jun
(53) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
(4) |
Apr
(4) |
May
|
Jun
(15) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <bug...@we...> - 2005-02-26 13:05:27
|
http://bugzilla.openfirst.org/show_bug.cgi?id=243 Summary: Offer new type of module for download Product: openFIRST Version: 1.0.x Platform: All URL: http://sourceforge.net/project/showfiles.php?group_id=78 233 OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: www AssignedTo: de...@op... ReportedBy: ti...@op... From the phpBB release information for version 2.0.12: "As with previous releases three different packages are available: * Full Package Contains entire phpBB2 source and English language package * Changed Files Only Contains only those files changed from previous versions of phpBB. Please note this archive contains changed files for each previous release * Patch Files Contains patch compatible patches from the previous versions of phpBB. " Perhaps we should automate the process of creating the last two options to the point where it's feasible to offer those types of packages as downloads from our project site. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. |
From: <bug...@we...> - 2005-02-26 12:57:27
|
http://bugzilla.openfirst.org/show_bug.cgi?id=241 ti...@op... changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Platform| |All Resolution| |INVALID Summary|Automated Bug Report - poll |Error in poll module in file | |that does not exist in CVS. ------- Additional Comments From ti...@op... 2005-02-26 06:57 ------- Error in poll module in file that does not exist in CVS -> Invalid ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. You reported the bug, or are watching the reporter. |
From: <bug...@we...> - 2005-02-26 12:57:26
|
http://bugzilla.openfirst.org/show_bug.cgi?id=240 ti...@op... changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Platform| |All Resolution| |INVALID Summary|Automated Bug Report - poll |Error in poll module in file | |that does not exist in CVS. ------- Additional Comments From ti...@op... 2005-02-26 06:57 ------- Error in poll module in file that does not exist in CVS -> Invalid ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. You reported the bug, or are watching the reporter. |
From: <bug...@we...> - 2005-02-26 12:57:10
|
http://bugzilla.openfirst.org/show_bug.cgi?id=239 ti...@op... changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Platform| |All Resolution| |INVALID Summary|Automated Bug Report - poll |Error in poll module in file | |that does not exist in CVS. ------- Additional Comments From ti...@op... 2005-02-26 06:57 ------- Error in poll module in file that does not exist in CVS -> Invalid ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. You reported the bug, or are watching the reporter. |
From: <bug...@we...> - 2005-02-26 12:56:59
|
http://bugzilla.openfirst.org/show_bug.cgi?id=238 ti...@op... changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Platform| |All Resolution| |INVALID Summary|Automated Bug Report - poll |Error in poll module in file | |that does not exist in CVS. ------- Additional Comments From ti...@op... 2005-02-26 06:56 ------- Error in poll module in file that does not exist in CVS -> Invalid ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. You reported the bug, or are watching the reporter. |
From: <bug...@we...> - 2005-02-26 12:56:52
|
http://bugzilla.openfirst.org/show_bug.cgi?id=237 ti...@op... changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Platform| |All Resolution| |INVALID Summary|Automated Bug Report - poll |Error in poll module in file | |that does not exist in CVS. ------- Additional Comments From de...@op... 2005-02-25 22:03 ------- MD5: fc6583ab5a9a48eb75ed9aee6d079f31 Database Type: mysql Operating System: windows SQL Server: localhost Current Module: poll Error Number: 8 ------- Additional Comments From de...@op... 2005-02-25 22:03 ------- PHP SELF: /poll/admin/remove.php HTTP Host: localhost:8080 HTTP Referer: http://localhost:8080/poll/admin/ Translated Path: D:/Development/Apache2/htdocs/poll/admin/remove.php User (if exists): admin User Access Level: administrator Error Description: Undefined variable: article in D:\Development\Apache2\htdocs\poll\admin\remove.php on line 36 ------- Additional Comments From ti...@op... 2005-02-26 06:56 ------- Error in poll module in file that does not exist in CVS -> Invalid ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. You reported the bug, or are watching the reporter. |
From: <bug...@we...> - 2005-02-26 12:56:44
|
http://bugzilla.openfirst.org/show_bug.cgi?id=236 ti...@op... changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Platform| |All Resolution| |INVALID Summary|Automated Bug Report - poll |Error in poll module in file | |that does not exist in CVS. ------- Additional Comments From ti...@op... 2005-02-26 06:56 ------- Error in poll module in file that does not exist in CVS -> Invalid ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. You reported the bug, or are watching the reporter. |
From: <bug...@we...> - 2005-02-26 12:56:33
|
http://bugzilla.openfirst.org/show_bug.cgi?id=235 ti...@op... changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Platform| |All Resolution| |INVALID Summary|Automated Bug Report - poll |Error in poll module in file | |that does not exist in CVS. ------- Additional Comments From ti...@op... 2005-02-26 06:56 ------- Error in poll module in file that does not exist in CVS -> Invalid ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. You reported the bug, or are watching the reporter. |
From: <bug...@we...> - 2005-02-26 12:51:16
|
http://bugzilla.openfirst.org/show_bug.cgi?id=234 ti...@op... changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Platform| |All Resolution| |INVALID Summary|Automated Bug Report - poll |Undefined variable: array | |in poll/admin/add.php (which | |doesn't exist as a file in | |CVS) ------- Additional Comments From ti...@op... 2005-02-26 06:51 ------- Mark as invalid since there is no poll/admin/add.php in CVS. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. You reported the bug, or are watching the reporter. |
From: <ti...@op...> - 2005-02-26 04:17:29
|
Hello, I hope you've all had a chance to relax now that the build season is over. I'd like to take this opportunity to remind you of some outstanding bugs and to get some opinions off of you regarding some possible future directions that the project could take. (Yes, I realise some of you don't actively contribute anymore, but I'd still like your opinions). First of all, in regards to bugs, there are a number of open bugs. I'd appreciate it if everyone who's able to (eg is still a high school student and can therefore work on the modules themselves) could mark a few bugs as assigned to themselves and start working on fixing them. I'm sure the bug fixes would be appreciated, as for the past while all I've been able to tell people who have asked is to wait until the build season is over and people come back to openFIRST to work on things. In regards to a possible future direction for the project, one thing that I've been looking into is the feasibility of distributing a software CD in the Kit of Parts for next year's FIRST Robotics competition. I've come to the conclusion that it's a realistic goal, provided we can get a sponsorship from some large internationally-recognised organisation. Possibilities for such a sponsorship that have been brainstormed by Jamie, Stephanie and I include: Apple, Queen's University, Queen's University School of Computing, Stanford University, Google, SourceForge, OSI, Dell, PHP. Basically in terms of cost, we're looking at around $2500 to $3000 USD for duplication of CDs, printing of a CD case, and getting the CDs shipped to FIRST in order to be distributed in the kit of parts. What a sponsor would get out of the deal would be their logo printed on the CD leaflet and/or the CD itself, on the CD's autorun software, and on the openFIRST.org website. This would give them exposure to computer-inclined people of close to 1000 FIRST robotics teams. Since there's a large number of high school students in that group, I'm thinking that the ideal candidate for a sponsor would be someone who caters to the high school student demographic, or wishes to recruit high school students (such as a university [or college if American] looking for potential students, or a computer company producing/distributing technology like portable MP3 players, laptop computers, etc. that such students may be interested in purchasing in the near future before starting their university career). I'd like it if the three countries of contributors (Canada, America, and Brasil) were all represented in some way, perhaps by the choice of Universities to get sponsorships from, etc. In terms of the CD itself, I'd like it to have an autorun. Something flashy, that serves as an interesting introduction to the project and it's purpose and a guide as to how to set it up; perhaps a custom installer thing for Windows webservers similar to the ones that Dave made about a year ago. The autorun would have to have sponsor logos for whoever it is that ends up helping with it. It should also encourage people to volunteer to help with the project, and provide contact information for getting support (eg the openFIRST Chief Delphi forum, e-mail, etc.). I'm thinking a cross-platform autorun would be good; perhaps launch a web browser to an HTML file if autorun is supported, otherwise make it clear that the HTML file should be started for instructions (by calling it README, or similar, and printing directions on the CD/CD cover). It is also be feasible to offer discounted web hosting rates for FIRST teams as something that's an added bonus to teams, whether they use openFIRST or not (of course, we hope they do); that much I can guarantee is possible. So, does anyone have any opinions about that idea? I'd like to hear some feedback, other ideas for potential sponsors, some estimate for whether it's a feasable timeline, etc. Also, which of you would be interested in helping with the fundraising side of the project, if we decide to go ahead with it? Who would be up for designing the CD cover/CD/autorun/what-not? Thanks for your time reading this rather long-winded message, Tim |
From: <bug...@we...> - 2005-02-25 03:50:37
|
http://bugzilla.openfirst.org/show_bug.cgi?id=10 jon...@op... changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. You reported the bug, or are watching the reporter. |
From: Tim G. <xt...@us...> - 2005-01-11 01:11:18
|
Update of /cvsroot/openfirst/www/htdocs/doc/tut/howto In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12997 Modified Files: information.php Log Message: These should be targets, not links. Index: information.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/doc/tut/howto/information.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** information.php 5 Jan 2005 19:13:59 -0000 1.3 --- information.php 11 Jan 2005 01:11:08 -0000 1.4 *************** *** 11,15 **** ! <h2><a href="urls">URLs</a></h2> <h3>Applies to: All</h3> <p>The openFIRST Project has several official and unofficial URLs. The list, including who they are relevant to, follows:</p> --- 11,15 ---- ! <h2><a name="urls">URLs</a></h2> <h3>Applies to: All</h3> <p>The openFIRST Project has several official and unofficial URLs. The list, including who they are relevant to, follows:</p> *************** *** 23,27 **** </ul> ! <h2><a href="mailinglists">Mailing lists</a></h2> <h3>Applies to: All</h3> --- 23,27 ---- </ul> ! <h2><a name="mailinglists">Mailing lists</a></h2> <h3>Applies to: All</h3> |
From: Tim G. <xt...@us...> - 2005-01-08 14:18:04
|
Update of /cvsroot/openfirst/www/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20308 Modified Files: headers.php Log Message: Add a reference to the Contributor's HOWTO in the header file. Index: headers.php =================================================================== RCS file: /cvsroot/openfirst/www/inc/headers.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** headers.php 1 Jan 2005 20:56:46 -0000 1.9 --- headers.php 8 Jan 2005 14:17:53 -0000 1.10 *************** *** 112,116 **** #1227, and #1257. You may <a href="http://www.openfirst.org/developers/">read more about the ! developers</a>.</td> </tr> <tr> --- 112,116 ---- #1227, and #1257. You may <a href="http://www.openfirst.org/developers/">read more about the ! developers</a>. To learn how to contribute to the project, and for a technical reference about writing modifications / patches / enhancements for the openFIRST system, read the <a href="http://www.openfirst.org/doc/tut/howto/">openFIRST Contributor's HOWTO</a>. New contributors are always welcome.</td> </tr> <tr> |
From: Tim G. <xt...@us...> - 2005-01-08 14:14:06
|
Update of /cvsroot/openfirst/www/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19555 Modified Files: about.php Log Message: Add a link to the Contributor's HOWTO in about section. Index: about.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/about.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** about.php 31 Dec 2004 07:40:35 -0000 1.4 --- about.php 8 Jan 2005 14:13:57 -0000 1.5 *************** *** 24,26 **** <h2>Contributing</h2> ! <p>New contributions to the openFIRST project are always welcome.</p> --- 24,26 ---- <h2>Contributing</h2> ! <p>New contributions to the openFIRST project are always welcome. For more information and help about contributing (ranging from what the project needs, to an introduction to contributing to the project, to in depth technical specifications and details) refer to the <a href="http://www.openfirst.org/doc/tut/howto/">openFIRST Contributor's HOWTO</a>.</p> |
From: Tim G. <xt...@us...> - 2005-01-08 14:09:32
|
Update of /cvsroot/openfirst/www/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18737 Modified Files: downloads.php Log Message: Mention in yet another place that there's help available. Index: downloads.php =================================================================== RCS file: /cvsroot/openfirst/www/htdocs/downloads.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** downloads.php 31 Dec 2004 06:05:02 -0000 1.2 --- downloads.php 8 Jan 2005 14:09:19 -0000 1.3 *************** *** 4,7 **** --- 4,9 ---- </tr> </table> + <p>If you encounter a problem while using the openFIRST system, please <a href='mailto: ti...@op...'>report the bug via e-mail</a> or <a href='http://bugzilla.openfirst.org/'>via Bugzilla</a>. We greatly appreciate all bug reports, and will work with you to resolve all issues you encounter while using the openFIRST system, including feature requests and information about customising/extending the system with your own custom coding.</p> + <br> The following components have been created (you may <a |
From: <bug...@we...> - 2005-01-07 20:43:10
|
http://bugzilla.openfirst.org/show_bug.cgi?id=191 ja...@op... changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID ------- Additional Comments From ja...@op... 2005-01-07 14:43 ------- This is a bug only in a new branch of the bleeding-edge CVS. You should not be using it. ------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter. |
From: <bug...@we...> - 2005-01-07 20:41:35
|
http://bugzilla.openfirst.org/show_bug.cgi?id=191 ja...@op... changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|de...@op... |ja...@op... URL|localhost/openFIRST/config/i|http://astro73.com/openFIRST |ndex.php |/config/index.php Status|NEW |UNCONFIRMED Platform| |All ------- Additional Comments From ja...@op... 2005-01-07 14:41 ------- This is an error in the NewDB branch. Anyone using this branch probably should not since it has undergone little to no debugging. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. You reported the bug, or are watching the reporter. |
From: Astronouth7303 <ast...@us...> - 2005-01-07 20:31:16
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3536/config Modified Files: first.php Log Message: Fixed replacement bug. Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.45 retrieving revision 1.46 diff -C2 -d -r1.45 -r1.46 *** first.php 6 Jan 2005 23:25:06 -0000 1.45 --- first.php 7 Jan 2005 20:31:06 -0000 1.46 *************** *** 37,41 **** } - var_export(isset($_POST['ostype'])); if(isset($_POST["ostype"])) { --- 37,40 ---- *************** *** 111,118 **** GetVarValue($_POST['fbasepath'])); ! str_replace($find, $replace, $file); ! $hfile = fopen('./globals.php'); ! fwrite($hfile, $file); ! fclose($hfile); include("../config/globals.php"); include("$header"); --- 110,116 ---- GetVarValue($_POST['fbasepath'])); ! $file = str_replace($find, $replace, $file); ! $hfile = fopen('./globals.php','w'); fwrite($hfile, $file); fclose($hfile); ! include("../config/globals.php"); include("$header"); *************** *** 127,132 **** die(include("$footer")); } else { if(is_readable("config/headers.php")) { ! include("config/headers.php"); } else { include("../config/headers.php"); --- 125,131 ---- die(include("$footer")); } else { + echo "Globals.php is not writable\n"; if(is_readable("config/headers.php")) { ! include("config/headers.php"); } else { include("../config/headers.php"); *************** *** 152,156 **** // Detect default options $basepath = substr($_SERVER["SCRIPT_NAME"], 0, -17); ! $server = 'http://'.$_SERVER["SERVER_NAME"]; chdir('..'); $fbasepath = str_replace("\\", '/', getcwd()); --- 151,155 ---- // Detect default options $basepath = substr($_SERVER["SCRIPT_NAME"], 0, -17); ! $server = $_SERVER["SERVER_NAME"]; chdir('..'); $fbasepath = str_replace("\\", '/', getcwd()); *************** *** 204,209 **** ?> <h1>Base Configuration</h1> ! <p><form action="<?php echo htmlentities("$server$basepath"); ?>" method="post"> ! <!--form action="/globals.php" method="post"--> Congratulations on your choice of openFIRST software. Please proceed through this setup wizard to get your new openFIRST portal software set up and working --- 203,207 ---- ?> <h1>Base Configuration</h1> ! <p><form action="<?php echo htmlentities("http://$server$basepath/config/first.php"); ?>" method="post"> Congratulations on your choice of openFIRST software. Please proceed through this setup wizard to get your new openFIRST portal software set up and working |
From: Astronouth7303 <ast...@us...> - 2005-01-07 20:30:48
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3392/config Modified Files: Tag: NewDB globals.tpl Log Message: Incomplete variable. Index: globals.tpl =================================================================== RCS file: /cvsroot/openfirst/base/config/globals.tpl,v retrieving revision 1.2.2.1 retrieving revision 1.2.2.2 diff -C2 -d -r1.2.2.1 -r1.2.2.2 *** globals.tpl 6 Jan 2005 22:28:46 -0000 1.2.2.1 --- globals.tpl 7 Jan 2005 20:30:35 -0000 1.2.2.2 *************** *** 41,45 **** $mailfrom = %BOTMAIL%; $basepath = %BASEPATH%; ! $fbasepath = %FBASEPATH; // Determine what module the user is viewing --- 41,45 ---- $mailfrom = %BOTMAIL%; $basepath = %BASEPATH%; ! $fbasepath = %FBASEPATH%; // Determine what module the user is viewing |
From: Astronouth7303 <ast...@us...> - 2005-01-07 20:28:34
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2888/config Modified Files: globals.php Log Message: Posting error fixed, but now not replacing correctly. Index: globals.php =================================================================== RCS file: /cvsroot/openfirst/base/config/globals.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** globals.php 28 Jun 2003 17:29:29 -0000 1.3 --- globals.php 7 Jan 2005 20:28:25 -0000 1.4 *************** *** 1,15 **** <?php /* ! * openFIRST globals.php ! * This is a placeholder file. It will be recreated ! * by first.php when you first access and configure ! * your OpenFIRST portal software. ! */ ! if(file_exists("../config/first.php")) { ! header("Location: ../config/first.php"); ! } elseif(file_exists("config/first.php")) { ! header("Location: config/first.php"); ! } elseif(file_exists("../../config/first.php")) { ! header("Location: ../../config/first.php"); } ! ?> \ No newline at end of file --- 1,115 ---- <?php /* ! * openFIRST base configuration file ! * This file has been automatically generated by first.php. ! * it contains the basic configuration options required to ! * operate the OpenFIRST web portal software. Note, that ! * most configuration options are now stored in the MySQL ! * database, in the ofirst_config table. ! */ ! $dbasetype = %DBTYPE%; ! $peardb = %PEAR%; ! $ostype = %OS%; ! if ($ostype == "windows") { ! ini_set("include_path", ini_get("include_path") . ";../config/;."); ! } else { ! ini_set("include_path", ini_get("include_path") . ":../config/:."); } ! include_once('dbase.php'); ! ! $encryption = %ENCRYPT%; ! ! $title = %TITLE%; ! $version = %VER%; ! $sqlserver = %DBSERVER%; ! $sqluser = %DBUSER%; ! $sqlpassword = %DBPASS%; ! $sqldatabase = %DBNAME%; ! if(function_exists("ofirst_dbconnect") == false) { ! die("Your version of PHP has not been compiled with SQL support, therefore the openFIRST web portal system cannot run on this system. Please contact your system administrator to request SQL support for your version of PHP."); ! } ! ! $sqlconnection = ofirst_dbconnect("$sqlserver","$sqluser","$sqlpassword"); ! ofirst_select_db($sqldatabase); ! ! $pass_save_disabled=%COOKIE%; ! $regenabled=%REG%; ! $home = %HOME%; ! $header = %HEADER%; ! $footer = %FOOTER%; ! $mailnotify = %MASTERMAIL%; ! $mailfrom = %BOTMAIL%; ! $basepath = %BASEPATH%; ! $fbasepath = %FBASEPATH; ! ! // Determine what module the user is viewing ! ! $currentmodule = str_replace($basepath, "", $_SERVER["SCRIPT_NAME"]); ! $currentmodule = substr($currentmodule, 1, strpos($currentmodule, "/", 2) - 1); ! ! #FIXME: Use $fbasepath instead of getcwd() ! session_start(); ! include('auth.php'); ! if(function_exists("glob")) { ! // Include the functions using glob(); ! if(is_readable(getcwd() . "/../config/functions/")) { ! foreach (glob(getcwd() . "/../config/functions/*.php") as $filename) { ! include($filename); ! } ! } elseif (is_readable(getcwd() . "/../../config/functions/")) { ! foreach (glob(getcwd() . "/../../config/functions/*.php") as $filename) { ! include($filename); ! } ! } ! } else { ! // Include the functions without using glob(); ! } ! ! $headers = ""; ! ! $incl = ofirst_dbquery("SELECT * FROM ofirst_config"); ! ! // If there is no error then run the module add feature ! if(ofirst_dberrno() == 0) { ! // Begin to loop through modules from the databaes ! while($module = ofirst_dbfetch_object($incl)) { ! // Check if the value is try, if it is then run an include ! if( (bool) $module->active == true) { ! // Check if there are includes that need to be included ! if(! $module->includes == ""){ ! // If the list is not empty then explode the value and put it into inclist ! $inclist = explode(",",$module->includes); ! // This is to remove an error that you have if you don't check if there are more then 2 ! if(count($inclist) >= 2){ ! ! // Loop through the inclist and add them according to their paths ! foreach($inclist As $inc){ ! include("$fbasepath/$module->modulename/$inc"); ! } ! } else { ! // If there is only 1 include available then use this line to include it instead ! include("$fbasepath/$module->modulename/$module->includes"); ! } ! } ! ! // If the module has requested to be shown on the menu then add it ! if( (bool) $module->showonmenu == true) { ! // If it is the current module then color the item ! if ($currentmodule == $module->modulename){ ! $headers .= " » <font color='red'><u><a class='menu' href='$basepath/$module->modulename'>".ucwords($module->modulename)."</a></u></font> |"; ! ! // Declare important variables so that headers can pick them up and preview them ! ! $adminnav = str_replace("\$basepath", $basepath, $module->adminnavigation) . " <a href='http://bugzilla.openfirst.org'>Report Bug</a>"; ! $subnav = str_replace("\$basepath", $basepath, $module->modulenavigation); ! ! } else { ! $headers .= " » <a class='menu' href='$basepath/$module->modulename'>".ucwords($module->modulename)."</a> |"; ! } ! } ! } ! } ! } ! ! session_write_close(); ! ?> |
From: Astronouth7303 <ast...@us...> - 2005-01-06 23:25:22
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16882/config Modified Files: first.php Log Message: Fixed syntax errors. WON'T WRITE GLOBALS.PHP!!! Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** first.php 29 Dec 2004 22:00:38 -0000 1.44 --- first.php 6 Jan 2005 23:25:06 -0000 1.45 *************** *** 37,40 **** --- 37,42 ---- } + var_export(isset($_POST['ostype'])); + if(isset($_POST["ostype"])) { include_once("./dbase.php"); *************** *** 53,117 **** ofirst_select_db($sqldatabase); ! function GetVarValue($var) { ! ob_Start(); ! var_export($var); $Value = ob_Get_Contents(); ! ob_End_Clean(); ! return $Value; ! } ! // They have submitted the form, write a new globals.php file and test // options. ! if(is_writable("./globals.php")) { ! $file = file_get_contents('./globals.tpl'); $cookielogins = ((isset($_POST["cookielogins"]) && $_POST["cookielogins"]=="yes") ? true : false); ! $allowreg = ((isset($_POST["allowreg"]) && $_POST["allowreg"]=="yes") ? true : false); if(! isset($_POST["peardb"])) { $_POST["peardb"] = false; } ! $find = array('%DBTYPE%', ! '%PEAR%', ! '%OS%', ! '%ENCRYPT%', ! '%TITLE%', ! '%VER%', ! '%DBSERVER%', ! '%DBUSER%', ! '%DBPASS%', ! '%DBNAME%' ! '%COOKIE%', ! '%REG%', ! '%HOME%', ! '%HEADER%', ! '%FOOTER%', ! '%MASTERMAIL%', ! '%BOTMAIL%', ! '%BASEPATH%', ! '%FBASEPATH%'); ! ! $replace = array(GetVarValue($_POST['dbasetype']), ! GetVarValue($_POST['peardb']), ! GetVarValue($_POST['ostype']), ! GetVarValue($_POST['encryption']), ! GetVarValue($_POST['title']), ! GetVarValue($_POST['version']), ! GetVarValue($_POST['sqlserver']), ! GetVarValue($_POST['sqluser']), ! GetVarValue($_POST['sqlpassword']), ! GetVarValue($_POST['sqldatabase']), ! GetVarValue($cookielogins), ! GetVarValue($allowreg), ! GetVarValue($_POST['home']), ! GetVarValue($_POST['header']), ! GetVarValue($_POST['footer']), ! GetVarValue($_POST['mailnotify']), ! GetVarValue($_POST['mailfrom']), ! GetVarValue($_POST['basepath']), ! GetVarValue($_POST['fbasepath'])); ! ! str_replace($find, $replace, $file); ! file_put_contents('./globals.php', $file); ! include("../config/globals.php"); ! include("$header"); ! echo("<h1>openFIRST Software Configured</h1> <p>If this page does not display errors elsewhere, then your openFIRST has now been successfully configured. If there are errors, check your configuration options and try again. You may now --- 55,121 ---- ofirst_select_db($sqldatabase); ! function GetVarValue($var) { ! ob_Start(); ! var_export($var); $Value = ob_Get_Contents(); ! ob_End_Clean(); ! return $Value; ! } ! // They have submitted the form, write a new globals.php file and test // options. ! if (is_writable("./globals.php")) { ! $file = file_get_contents('./globals.tpl'); $cookielogins = ((isset($_POST["cookielogins"]) && $_POST["cookielogins"]=="yes") ? true : false); ! $allowreg = ((isset($_POST["allowreg"]) && $_POST["allowreg"]=="yes") ? true : false); if(! isset($_POST["peardb"])) { $_POST["peardb"] = false; } ! $find = array('%DBTYPE%', ! '%PEAR%', ! '%OS%', ! '%ENCRYPT%', ! '%TITLE%', ! '%VER%', ! '%DBSERVER%', ! '%DBUSER%', ! '%DBPASS%', ! '%DBNAME%', ! '%COOKIE%', ! '%REG%', ! '%HOME%', ! '%HEADER%', ! '%FOOTER%', ! '%MASTERMAIL%', ! '%BOTMAIL%', ! '%BASEPATH%', ! '%FBASEPATH%'); ! ! $replace = array(GetVarValue($_POST['dbasetype']), ! GetVarValue($_POST['peardb']), ! GetVarValue($_POST['ostype']), ! GetVarValue($_POST['encryption']), ! GetVarValue($_POST['title']), ! GetVarValue($_POST['version']), ! GetVarValue($_POST['sqlserver']), ! GetVarValue($_POST['sqluser']), ! GetVarValue($_POST['sqlpassword']), ! GetVarValue($_POST['sqldatabase']), ! GetVarValue($cookielogins), ! GetVarValue($allowreg), ! GetVarValue($_POST['home']), ! GetVarValue($_POST['header']), ! GetVarValue($_POST['footer']), ! GetVarValue($_POST['mailnotify']), ! GetVarValue($_POST['mailfrom']), ! GetVarValue($_POST['basepath']), ! GetVarValue($_POST['fbasepath'])); ! ! str_replace($find, $replace, $file); ! $hfile = fopen('./globals.php'); ! fwrite($hfile, $file); ! fclose($hfile); ! include("../config/globals.php"); ! include("$header"); ! echo("<h1>openFIRST Software Configured</h1> <p>If this page does not display errors elsewhere, then your openFIRST has now been successfully configured. If there are errors, check your configuration options and try again. You may now *************** *** 120,124 **** <b>openfirst</b>, if not, then either the password for that account has been changed, or the MySQL settings are incorrect.</p>"); ! showlogin(); die(include("$footer")); } else { --- 124,128 ---- <b>openfirst</b>, if not, then either the password for that account has been changed, or the MySQL settings are incorrect.</p>"); ! showlogin(); die(include("$footer")); } else { *************** *** 138,143 **** <br />chmod 666 globals.php </code></p>"); ! } ! } else { if(is_readable("config/headers.php")) { include("config/headers.php"); --- 142,147 ---- <br />chmod 666 globals.php </code></p>"); ! } ! } else { if(is_readable("config/headers.php")) { include("config/headers.php"); *************** *** 145,227 **** include("../config/headers.php"); } ! ! // Detect default options ! $basepath = substr($_SERVER["SCRIPT_NAME"], 0, -17)); ! $server = $_SERVER["SERVER_NAME"]; ! $basepath = str_replace("\\", '/', getcwd()); ! chdir('..'); ! $fbasepath = str_replace("\\", '/', getcwd()); $windows = (isset($_ENV['OS']) && strpos(' ' . $_ENV['OS'], 'Windows')) ? true : false; ! $fd = explode(($windows ? ';' : ':'), ini_get('include_path')); ! ! $peardb = false; ! foreach($fd as $d) { ! if(file_exists("$d/DB.php")) { ! $peardb = true; ! } ! } ! ! $sqlhost = 'localhost'; ! if(ini_get('mysql.default_host') != '') { ! $sqlhost = ini_get('mysql.default_host'); ! } ! ! $sqluser = 'sqluser'; ! if(ini_get('mysql.default_user') != '') { ! $sqluser = ini_get('mysql.default_user'); ! } ! ! $sqlpass = ''; ! if(ini_get('mysql.default_password') != '') { ! $sqlpass = ini_get('mysql.default_password'); ! } ! ! $mailto = $_SERVER['SERVER_ADMIN']; ! $mailfrom = "openfirst@$server"; ! // User is visiting the configuration page, present them with a form // of options to fill out. ! ?> <h1>Base Configuration</h1> ! <p><form action="<?php echo htmlentities($_SERVER["PHP_SELF"]); ?>" method="post"> ! Congratulations on your choice of openFIRST software. Please proceed through ! this setup wizard to get your new openFIRST portal software set up and working ! quickly and painlessly. Also please make sure that before installing this script ! that you have the appropriate permissions set on config/globals.php (if not then you may receive a collection of errors after submitting this form).<br> <br> <table width="608"> ! <tr> <th width="390">Option</th> <th width="206">Value</th> </tr> ! <tr> <td class="sub"><div align="center">Database Setup</div></td> <td class="sub"> </td> </tr> ! <tr> <td>Operating System of Web Server</td> <td><select name="ostype"> ! <?php ! if ($windows) { ! echo("<option value='unix'>UNIX</option> <option value='windows' selected='selected'>Windows</option>"); ! } else { ! echo("<option value='unix' selected='selected'>UNIX</option> ! <option value='windows'>Windows</option>"); ! } ?> ! </select> <font size="2">(UNIX includes variants, such as Linux, Mac OS X, and BeOS) </font></td> </tr> ! <tr> <td>Database Type <?php ! if ($peardb) { ! echo ("<br />The PEAR Database Abstraction layer exists and will be used."); ! } ?> </td> ! <td><?php if(! $peardb) { ?> --- 149,248 ---- include("../config/headers.php"); } ! ! // Detect default options ! $basepath = substr($_SERVER["SCRIPT_NAME"], 0, -17); ! $server = 'http://'.$_SERVER["SERVER_NAME"]; ! chdir('..'); ! $fbasepath = str_replace("\\", '/', getcwd()); $windows = (isset($_ENV['OS']) && strpos(' ' . $_ENV['OS'], 'Windows')) ? true : false; ! ! if (!$windows) { ! $windows = (strstr(getcwd(), "\\")) ? true : false; ! } ! if (!$windows && isset($_SERVER['SERVER_SIGNATURE'])) { ! $windows = (strstr($_SERVER['SERVER_SIGNATURE'], '(win32)')) ? true : false; ! } ! if (!$windows && isset($_SERVER['PATH'])) { ! $windows = (strstr($_SERVER['PATH'], "\\")) ? true : false; ! } ! if (!$windows && isset($_SERVER['SystemRoot'])) { ! $windows = (strstr($_SERVER['SystemRoot'], "\\")) ? true : false; ! } ! if (!$windows && isset($_SERVER['SystemRoot'])) { ! $windows = (substr($_SERVER['SystemRoot'], 0, 1) == "C:") ? true : false; ! } ! ! $fd = explode(($windows ? ';' : ':'), ini_get('include_path')); ! ! $peardb = false; ! foreach($fd as $d) { ! if(file_exists("$d/DB.php")) { ! $peardb = true; ! } ! } ! ! $sqlhost = 'localhost'; ! if(ini_get('mysql.default_host') != '') { ! $sqlhost = ini_get('mysql.default_host'); ! } ! ! $sqluser = 'sqluser'; ! if(ini_get('mysql.default_user') != '') { ! $sqluser = ini_get('mysql.default_user'); ! } ! ! $sqlpass = ''; ! if(ini_get('mysql.default_password') != '') { ! $sqlpass = ini_get('mysql.default_password'); ! } ! ! $mailto = $_SERVER['SERVER_ADMIN']; ! $mailfrom = "openfirst@$server"; ! // User is visiting the configuration page, present them with a form // of options to fill out. ! ?> <h1>Base Configuration</h1> ! <p><form action="<?php echo htmlentities("$server$basepath"); ?>" method="post"> ! <!--form action="/globals.php" method="post"--> ! Congratulations on your choice of openFIRST software. Please proceed through ! this setup wizard to get your new openFIRST portal software set up and working ! quickly and painlessly. Also please make sure that before installing this script ! that you have the appropriate permissions set on config/globals.php (if not then you may receive a collection of errors after submitting this form).<br> <br> <table width="608"> ! <tr> <th width="390">Option</th> <th width="206">Value</th> </tr> ! <tr> <td class="sub"><div align="center">Database Setup</div></td> <td class="sub"> </td> </tr> ! <tr> <td>Operating System of Web Server</td> <td><select name="ostype"> ! <?php ! if ($windows) { ! echo("<option value='unix'>UNIX</option> <option value='windows' selected='selected'>Windows</option>"); ! } else { ! echo("<option value='unix' selected='selected'>UNIX</option> ! <option value='windows'>Windows</option>"); ! } ?> ! </select> <font size="2">(UNIX includes variants, such as Linux, Mac OS X, and BeOS) </font></td> </tr> ! <tr> <td>Database Type <?php ! if ($peardb) { ! echo ("<br />The PEAR Database Abstraction layer exists and will be used."); ! } ?> </td> ! <td><?php if(! $peardb) { ?> *************** *** 231,239 **** <option value="mssql">Microsoft SQL</option> <option value="odbc">ODBC</option> ! </select> ! ! <?php } else { ! ?> <input type='hidden' name='peardb' value='true'> <select name="dbasetype"> --- 252,260 ---- <option value="mssql">Microsoft SQL</option> <option value="odbc">ODBC</option> ! </select> ! ! <?php } else { ! ?> <input type='hidden' name='peardb' value='true'> <select name="dbasetype"> *************** *** 253,311 **** </select> <?php ! } ?> ! <tr> <td>Title of Website</td> <td><input type="text" name="title" value="openFIRST" /></td> </tr> ! <tr> <td>Version of Website</td> <td><input type="text" name="version" value="1.0" /></td> </tr> ! <tr> <td>Database Server Address</td> <td><input type="text" name="sqlserver" value="<?php echo htmlentities($sqlhost); ?>" /></td> </tr> ! <tr> <td>Database User Name</td> <td><input type="text" name="sqluser" value="<?php echo htmlentities($sqluser); ?>" /></td> </tr> ! <tr> <td>Database User Password</td> <td><input type="password" name="sqlpassword" value="<?php echo htmlentities($sqlpass); ?>" /></td> </tr> ! <tr> <td>Database Name<br> <font size="1">(if this database does not already exist, the user entered above must have access to create it)</font></td> <td><input type="text" name="sqldatabase" value="openfirst" /></td> </tr> ! <tr> <td class="sub"><div align="center">Linking Options</div></td> <td class="sub"> </td> </tr> ! <tr> ! <td>Home Site<br> <font size="1">(the address scripts will use for linking ! to your main page) <em>Note:</em> Do not place a slash after the link ie. http://www.yoursite.com</font></td> <td> <input type="text" name="home" value="<?php echo htmlentities("http://$server$basepath"); ?>" ></td> </tr> ! <tr> ! <td>Header file<br> <font size="1">(this should be a full system path) ie. c:\inetpub\wwwroot\openfirst\config\header.php or /home/site/public_html/openfirst/config/headers.php</font></td> ! <td><input type="text" name="header" value="<?php echo htmlentities($basepath); ?>/headers.php" /></td> </tr> ! <tr> ! <td>Footer file<br> <font size="1">(this should be a full system path) ie. c:\inetpub\wwwroot\openfirst\config\footers.php or /home/site/public_html/openfirst/config/footers.php</font></td> ! <td><input type="text" name="footer" value="<?php echo htmlentities($basepath); ?>/footers.php" /></td> </tr> <tr> ! <td>The base path to the openFIRST software<br> <font size="1">ie. example: ! http://openfirst.sourceforge.net<strong>/openfirst</strong>) this should always have a beginning slash but no ending slash.</font></td> <td><input type="text" name="basepath" value="<?php echo htmlentities($basepath); ?>"></td> </tr> ! <tr> ! <td>The file system path to the basepath<br> <font size="1">(example: <strong>/home/openfirst/htdocs/openfirst</strong> or c:\inetpub\wwwroot\openfirst) this should not have a ending slash.</font></td> <td><input type="text" name="fbasepath" value="<?php echo htmlentities($fbasepath); ?>"></td> --- 274,332 ---- </select> <?php ! } ?> ! <tr> <td>Title of Website</td> <td><input type="text" name="title" value="openFIRST" /></td> </tr> ! <tr> <td>Version of Website</td> <td><input type="text" name="version" value="1.0" /></td> </tr> ! <tr> <td>Database Server Address</td> <td><input type="text" name="sqlserver" value="<?php echo htmlentities($sqlhost); ?>" /></td> </tr> ! <tr> <td>Database User Name</td> <td><input type="text" name="sqluser" value="<?php echo htmlentities($sqluser); ?>" /></td> </tr> ! <tr> <td>Database User Password</td> <td><input type="password" name="sqlpassword" value="<?php echo htmlentities($sqlpass); ?>" /></td> </tr> ! <tr> <td>Database Name<br> <font size="1">(if this database does not already exist, the user entered above must have access to create it)</font></td> <td><input type="text" name="sqldatabase" value="openfirst" /></td> </tr> ! <tr> <td class="sub"><div align="center">Linking Options</div></td> <td class="sub"> </td> </tr> ! <tr> ! <td>Home Site<br> <font size="1">(the address scripts will use for linking ! to your main page) <em>Note:</em> Do not place a slash after the link ie. http://www.yoursite.com</font></td> <td> <input type="text" name="home" value="<?php echo htmlentities("http://$server$basepath"); ?>" ></td> </tr> ! <tr> ! <td>Header file<br> <font size="1">(this should be a full system path) ie. c:\inetpub\wwwroot\openfirst\config\header.php or /home/site/public_html/openfirst/config/headers.php</font></td> ! <td><input type="text" name="header" value="<?php echo htmlentities($fbasepath); ?>/config/headers.php" /></td> </tr> ! <tr> ! <td>Footer file<br> <font size="1">(this should be a full system path) ie. c:\inetpub\wwwroot\openfirst\config\footers.php or /home/site/public_html/openfirst/config/footers.php</font></td> ! <td><input type="text" name="footer" value="<?php echo htmlentities($fbasepath); ?>/config/footers.php" /></td> </tr> <tr> ! <td>The base path to the openFIRST software<br> <font size="1">ie. example: ! http://openfirst.sourceforge.net<strong>/openfirst</strong>) this should always have a beginning slash but no ending slash.</font></td> <td><input type="text" name="basepath" value="<?php echo htmlentities($basepath); ?>"></td> </tr> ! <tr> ! <td>The file system path to the basepath<br> <font size="1">(example: <strong>/home/openfirst/htdocs/openfirst</strong> or c:\inetpub\wwwroot\openfirst) this should not have a ending slash.</font></td> <td><input type="text" name="fbasepath" value="<?php echo htmlentities($fbasepath); ?>"></td> *************** *** 315,322 **** <td class="sub"> </td> </tr> ! <tr> <td>Type of encryption to use on database passwords?<br> ! <font size="1">If you are migrating from an existing system, this should be the same encryption ! style that system uses, otherwise all users will have to reset their password; otherwise, in most cases the default option is fine.</font></td> <td> --- 336,343 ---- <td class="sub"> </td> </tr> ! <tr> <td>Type of encryption to use on database passwords?<br> ! <font size="1">If you are migrating from an existing system, this should be the same encryption ! style that system uses, otherwise all users will have to reset their password; otherwise, in most cases the default option is fine.</font></td> <td> *************** *** 330,334 **** <td>Allow openFIRST users to save their passwords?<br> <font size="1">This feature uses cookies to automatically log in users into the openFIRST portal.</font></td> ! <td><input type="checkbox" name="cookielogins" id="cookielogins" value="yes" checked> <label for="cookielogins">Allowed</label></td> </tr> --- 351,355 ---- <td>Allow openFIRST users to save their passwords?<br> <font size="1">This feature uses cookies to automatically log in users into the openFIRST portal.</font></td> ! <td><input type="checkbox" name="cookielogins" id="cookielogins" value="yes" checked> <label for="cookielogins">Allowed</label></td> </tr> *************** *** 340,358 **** <label for="allowreg">Allowed</label></td> </tr> ! <tr> <td class="sub"><div align="center">Mailing Options</div></td> <td class="sub"> </td> </tr> ! <tr> ! <td>Mail Notification<br> <font size="1">(the e-mail address used to notify you when significant events occur)</font></td> <td><input type="text" name="mailnotify" value="<?php echo htmlentities($mailto); ?>"></td> </tr> ! <tr> ! <td>Mail From<br> <font size="1">(the e-mail address that mail from the openFIRST site should appear to be from)</font></td> <td><input type="text" name="mailfrom" value="<?php echo htmlentities($mailfrom); ?>"></td> </tr> ! <tr> <td></td> <td><input type="submit" value="Set up OpenFIRST"></td> --- 361,379 ---- <label for="allowreg">Allowed</label></td> </tr> ! <tr> <td class="sub"><div align="center">Mailing Options</div></td> <td class="sub"> </td> </tr> ! <tr> ! <td>Mail Notification<br> <font size="1">(the e-mail address used to notify you when significant events occur)</font></td> <td><input type="text" name="mailnotify" value="<?php echo htmlentities($mailto); ?>"></td> </tr> ! <tr> ! <td>Mail From<br> <font size="1">(the e-mail address that mail from the openFIRST site should appear to be from)</font></td> <td><input type="text" name="mailfrom" value="<?php echo htmlentities($mailfrom); ?>"></td> </tr> ! <tr> <td></td> <td><input type="submit" value="Set up OpenFIRST"></td> |
From: Astronouth7303 <ast...@us...> - 2005-01-06 22:28:55
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv961/config Modified Files: Tag: NewDB globals.tpl Log Message: Fixing for new DBase setup Index: globals.tpl =================================================================== RCS file: /cvsroot/openfirst/base/config/globals.tpl,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** globals.tpl 29 Dec 2004 22:03:20 -0000 1.2 --- globals.tpl 6 Jan 2005 22:28:46 -0000 1.2.2.1 *************** *** 31,40 **** $sqlconnection = ofirst_dbconnect("$sqlserver","$sqluser","$sqlpassword"); ! ! if($peardb) { ! $sqlconnection = ofirst_select_db($sqldatabase); ! } else { ! ofirst_select_db($sqldatabase); ! } $pass_save_disabled=%COOKIE%; --- 31,35 ---- $sqlconnection = ofirst_dbconnect("$sqlserver","$sqluser","$sqlpassword"); ! ofirst_select_db($sqldatabase); $pass_save_disabled=%COOKIE%; |
From: Astronouth7303 <ast...@us...> - 2005-01-06 22:01:18
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26916/config Modified Files: dbase.php Log Message: Finally fixed the bad branch issue. Index: dbase.php =================================================================== RCS file: /cvsroot/openfirst/base/config/dbase.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** dbase.php 29 Dec 2004 02:45:10 -0000 1.16 --- dbase.php 6 Jan 2005 22:01:07 -0000 1.17 *************** *** 26,33 **** // without having to be completely rewritten or released as two // different versions. ! $lastquery = ""; //Used for debugging if(isset($dbasetype) == false) { $dbasetype = "mysql"; } ! ! $connections = array(0 => array('conn' => NULL, 'res' => NULL, 'db' => NULL)); $connectdsn = ""; --- 26,32 ---- // without having to be completely rewritten or released as two // different versions. ! $lastquery; if(isset($dbasetype) == false) { $dbasetype = "mysql"; } ! $connectdsn = ""; *************** *** 35,39 **** // Include the PEAR Database Abstraction Layer include_once("DB.php"); - echo "PEAR is being used<br />\n"; } elseif(! isset($peardb)) { $peardb = false; --- 34,37 ---- *************** *** 42,50 **** // Wrapper for database selection. function ofirst_dbconnect($server = "", $username = "", $password = "", ! $newlink = "", $intclientflags = "", $ID = 0) { ! global $connections, $dbasetype, $peardb; if($peardb) { ! $connections[$ID] = "$dbasetype://$username:$password@$server/"; ! return($ID); } elseif($dbasetype == "mysql") { if(function_exists("mysql_connect") == false) { --- 40,48 ---- // Wrapper for database selection. function ofirst_dbconnect($server = "", $username = "", $password = "", ! $newlink = "", $intclientflags = "") { ! global $dbasetype, $peardb, $connectdsn; if($peardb) { ! $connectdsn = "$dbasetype://$username:$password@$server/"; ! return(0); } elseif($dbasetype == "mysql") { if(function_exists("mysql_connect") == false) { *************** *** 52,60 **** } if($intclientflags != "") { ! $connections[$ID]['conn'] = mysql_connect($server, $username, $password, $newlink, $intclientflags); } elseif($newlink != "") { ! $connections[$ID]['conn'] = mysql_connect($server, $username, $password, $newlink); } else { ! $connections[$ID]['conn'] = mysql_connect($server, $username, $password); } } elseif ($dbasetype == "mssql") { --- 50,58 ---- } if($intclientflags != "") { ! return(mysql_connect($server, $username, $password, $newlink, $intclientflags)); } elseif($newlink != "") { ! return(mysql_connect($server, $username, $password, $newlink)); } else { ! return(mysql_connect($server, $username, $password)); } } elseif ($dbasetype == "mssql") { *************** *** 62,66 **** die("Microsoft SQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable Microsoft SQL support, or choose another database type."); } ! $connections[$ID]['conn'] = mssql_connect($server, $username, $password); } elseif ($dbasetype == "odbc") { if(function_exists("odbc_connect") == false) { --- 60,64 ---- die("Microsoft SQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable Microsoft SQL support, or choose another database type."); } ! return(mssql_connect($server, $username, $password)); } elseif ($dbasetype == "odbc") { if(function_exists("odbc_connect") == false) { *************** *** 68,128 **** } if($newlink != "") { ! $connections[$ID]['conn'] = odbc_connect($server, $username, $password, $newlink); } else { ! $connections[$ID]['conn'] = odbc_connect($server, $username, $password); } } ! return $ID; } ! function ofirst_select_db($databasename, $ID = 0) { ! global $connections, $dbasetype, $peardb; ! $connections[$ID]['db'] = $databasename; if($peardb) { ! $connections[$ID]['conn'] = $connections[$ID]['conn'] =& DB::connect($connections[$ID]['conn'].$databasename); ! ! if (DB::isError ($connections[$ID])) ! return FALSE; } elseif($dbasetype == "mysql") { if(function_exists("mysql_select_db") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } ! // if($linkidentifier != "") { ! return(mysql_select_db($databasename, $connections[$ID]['conn'])); ! /* } else { return(mysql_select_db($databasename)); ! }*/ } elseif ($dbasetype == "mssql") { if(function_exists("mssql_select_db") == false) { die("Microsoft SQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable Microsoft SQL support, or choose another database type."); } ! // if($linkidentifier != "") { ! return(mssql_select_db($databasename, $connections[$ID]['conn'])); ! /* } else { return(mssql_select_db($databasename)); ! / }*/ ! } elseif ($dbasetype == "odbc") { ! // ODBC doesn't require selecting a DB ! return TRUE; } } ! function ofirst_dberrno($ID = 0) { ! global $connections, $dbasetype, $peardb; if($peardb) { ! // if($linkidentifier != "") { ! return(DB_Error::getCode($connections[$ID]['conn'])); #FIXME: Use last return ! /* } else { return(DB_Error::getCode()); ! }*/ } elseif($dbasetype == "mysql") { if(function_exists("mysql_errno") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } ! // if($linkidentifier != "") { ! return(mysql_errno($connections[$ID]['conn'])); ! /* } else { return(mysql_errno()); ! }*/ } elseif ($dbasetype == "mssql") { if(function_exists("mssql_connect") == false) { --- 66,121 ---- } if($newlink != "") { ! return(odbc_connect($server, $username, $password, $newlink)); } else { ! return(odbc_connect($server, $username, $password)); } } ! exit(0); } ! function ofirst_select_db($databasename, $linkidentifier = "") { ! global $dbasetype, $peardb, $connectdsn; if($peardb) { ! return($connectdsn =& DB::connect("$connectdsn$databasename")); } elseif($dbasetype == "mysql") { if(function_exists("mysql_select_db") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } ! if($linkidentifier != "") { ! return(mysql_select_db($databasename, $linkidentifier)); ! } else { return(mysql_select_db($databasename)); ! } } elseif ($dbasetype == "mssql") { if(function_exists("mssql_select_db") == false) { die("Microsoft SQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable Microsoft SQL support, or choose another database type."); } ! if($linkidentifier != "") { ! return(mssql_select_db($databasename, $linkidentifier)); ! } else { return(mssql_select_db($databasename)); ! } ! //ODBC does not require slecting a DB } + exit(0); } ! function ofirst_dberrno($linkidentifier = "") { ! global $dbasetype, $peardb; if($peardb) { ! if($linkidentifier != "") { ! return(DB_Error::getCode($linkidentifier)); ! } else { return(DB_Error::getCode()); ! } } elseif($dbasetype == "mysql") { if(function_exists("mysql_errno") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } ! if($linkidentifier != "") { ! return(mysql_errno($linkidentifier)); ! } else { return(mysql_errno()); ! } } elseif ($dbasetype == "mssql") { if(function_exists("mssql_connect") == false) { *************** *** 134,163 **** die("ODBC support is not enabled in your version of PHP. To use the openFIRST Web Portal Software, please either enable ODBC support, or choose another database type."); } ! // if($linkidentifier != "") { ! return(odbc_error($connections[$ID]['conn'])); ! /* } else { return(odbc_error()); ! }*/ } exit(0); } ! function ofirst_dberror($ID = 0) { ! global $connections, $dbasetype, $peardb; if($peardb) { ! // if($linkidentifier != "") { ! return(DB_Error::getMessage($connections[$ID]['conn'])); ! /* } else { return(DB_Error::getMessage()); ! }*/ } elseif($dbasetype == "mysql") { if(function_exists("mysql_error") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } ! // if($linkidentifier != "") { ! return(mysql_error($connections[$ID]['conn'])); ! /* } else { return(mysql_error()); ! }*/ } elseif ($dbasetype == "mssql") { if(function_exists("mssql_connect") == false) { --- 127,156 ---- die("ODBC support is not enabled in your version of PHP. To use the openFIRST Web Portal Software, please either enable ODBC support, or choose another database type."); } ! if($linkidentifier != "") { ! return(odbc_error($linkidentifier)); ! } else { return(odbc_error()); ! } } exit(0); } ! function ofirst_dberror($linkidentifier = "") { ! global $dbasetype, $peardb; if($peardb) { ! if($linkidentifier != "") { ! return(DB_Error::getMessage($linkidentifier)); ! } else { return(DB_Error::getMessage()); ! } } elseif($dbasetype == "mysql") { if(function_exists("mysql_error") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } ! if($linkidentifier != "") { ! return(mysql_error($linkidentifier)); ! } else { return(mysql_error()); ! } } elseif ($dbasetype == "mssql") { if(function_exists("mssql_connect") == false) { *************** *** 169,202 **** die("ODBC support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable ODBC support, or choose another database type."); } ! // if($linkidentifier != "") { ! return(odbc_errormsg($connections[$ID]['conn'])); ! /* } else { return(odbc_errormsg()); ! }*/ } exit(0); } ! function ofirst_dbquery($string, $ID = 0, $batchsize = "") { ! global $connections, $dbasetype, $peardb, $sqlconnection, $lastquery; ! $lastquery = "ofirst_dbquery(): \$string = \"$string\", \$linkidentifier = \"$linkidentifier\", \$batchsize = \"$batchsize\""; if($peardb) { if($batchsize != "") { ! return($sqlconnection->query($string, $connections[$ID]['conn'], $batchsize)); ! } else/*if($linkidentifier != "")*/ { ! return($sqlconnection->query($string, $connections[$ID]['conn'])); ! }/* else { return($sqlconnection->query($string)); ! }*/ } elseif($dbasetype == "mysql") { if(function_exists("mysql_query") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } ! // if($linkidentifier != "") { ! return(mysql_query($string, $connections[$ID]['conn'])); ! /* } else { return(mysql_query($string)); ! }*/ } elseif($dbasetype == "mssql") { if(function_exists("mssql_query") == false) { --- 162,195 ---- die("ODBC support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable ODBC support, or choose another database type."); } ! if($linkidentifier != "") { ! return(odbc_errormsg($linkidentifer)); ! } else { return(odbc_errormsg()); ! } } exit(0); } ! function ofirst_dbquery($string, $linkidentifier = "", $batchsize = "") { ! global $dbasetype, $peardb, $sqlconnection, $lastquery; ! $lastquery = "\$string = \"$string\", \$linkidentifier = \"$linkidentifier\", \$batchsize = \"$batchsize\""; if($peardb) { if($batchsize != "") { ! return($sqlconnection->query($string, $linkidentifier, $batchsize)); ! } elseif($linkidentifier != "") { ! return($sqlconnection->query($string, $linkidentifier)); ! } else { return($sqlconnection->query($string)); ! } } elseif($dbasetype == "mysql") { if(function_exists("mysql_query") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } ! if($linkidentifier != "") { ! return(mysql_query($string, $linkidentifier)); ! } else { return(mysql_query($string)); ! } } elseif($dbasetype == "mssql") { if(function_exists("mssql_query") == false) { *************** *** 204,213 **** } if($batchsize != "") { ! return(mssql_query($string, $connections[$ID]['conn'], $batchsize)); ! } else/*if($linkidentifier != "")*/ { ! return(mssql_query($string, $connections[$ID]['conn'])); ! }/* else { return(mssql_query($string)); ! }*/ } elseif ($dbasetype == "odbc") { if(function_exists("odbc_exec") == false) { --- 197,206 ---- } if($batchsize != "") { ! return(mssql_query($string, $linkidentifier, $batchsize)); ! } elseif($linkidentifier != "") { ! return(mssql_query($string, $linkidentifier)); ! } else { return(mssql_query($string)); ! } } elseif ($dbasetype == "odbc") { if(function_exists("odbc_exec") == false) { *************** *** 215,227 **** } // Note: this may be misleading, the variable names are not reflective of their content in this particular line, as the odbc function uses an order different from the other databases. ! return(odbc_exec($string, $connections[$ID]['conn'])); } exit(0); } ! #FIXME: Make associative arrays ! #FIXME: Use $connections[$ID]['res'] ! function ofirst_dbfetch_object($resource, $rownumber = "", $ID = 0) { ! global $connections, $dbasetype, $peardb; if($peardb) { if($rownumber != "") { --- 208,218 ---- } // Note: this may be misleading, the variable names are not reflective of their content in this particular line, as the odbc function uses an order different from the other databases. ! return(odbc_exec($string, $linkidentifer)); } exit(0); } ! function ofirst_dbfetch_object($resource, $rownumber = "") { ! global $dbasetype, $peardb; if($peardb) { if($rownumber != "") { *************** *** 256,262 **** } - #FIXME: Use $connections[$ID]['res'] function ofirst_dbnum_rows($resource) { ! global $connections, $dbasetype, $peardb; if($peardb) { if($resource != "") { --- 247,252 ---- } function ofirst_dbnum_rows($resource) { ! global $dbasetype, $peardb; if($peardb) { if($resource != "") { *************** *** 288,293 **** } ! function ofirst_dbname_version($ID = 0) { ! global $connections, $dbasetype, $peardb; if($peardb) { return "PEAR DB"; --- 278,283 ---- } ! function ofirst_dbname_version() { ! global $dbasetype, $peardb; if($peardb) { return "PEAR DB"; *************** *** 305,313 **** } ! function ofirst_dbsize($ID = 0) { ! global $connections, $dbasetype, $peardb; if($dbasetype == "mysql") { $dbsize = 0; ! $dq = ofirst_dbquery("SHOW TABLE STATUS FROM " $connections[$ID]['db'], 0); while($d = ofirst_dbfetch_object($dq)) { $dbsize += $d->Data_length + $d->Index_length; --- 295,303 ---- } ! function ofirst_dbsize() { ! global $dbasetype, $peardb; if($dbasetype == "mysql") { $dbsize = 0; ! $dq = ofirst_dbquery("SHOW TABLE STATUS FROM $sqldatabase"); while($d = ofirst_dbfetch_object($dq)) { $dbsize += $d->Data_length + $d->Index_length; *************** *** 315,319 **** return (int) (($dbsize + 0.5) / 1024 * 10) / 10 . " KB"; } elseif($dbasetype == "mssql") { ! $s = ofirst_dbfetch_object(ofirst_dbquery("SELECT ((SUM(size) * 8.0) * 1024.0) as dbsize FROM sysfiles", 0)); return (int) (( $s->dbsize + 0.5) / 1024 * 10) / 10 . " KB"; } else { --- 305,309 ---- return (int) (($dbsize + 0.5) / 1024 * 10) / 10 . " KB"; } elseif($dbasetype == "mssql") { ! $s = ofirst_dbfetch_object(ofirst_dbquery("SELECT ((SUM(size) * 8.0) * 1024.0) as dbsize FROM sysfiles")); return (int) (( $s->dbsize + 0.5) / 1024 * 10) / 10 . " KB"; } else { |
From: Astronouth7303 <ast...@us...> - 2005-01-06 21:58:02
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26030/config Modified Files: Tag: NewDB dbase.php Log Message: Did I finally get it? Index: dbase.php =================================================================== RCS file: /cvsroot/openfirst/base/config/dbase.php,v retrieving revision 1.15 retrieving revision 1.15.2.1 diff -C2 -d -r1.15 -r1.15.2.1 *** dbase.php 20 Dec 2004 16:21:24 -0000 1.15 --- dbase.php 6 Jan 2005 21:57:52 -0000 1.15.2.1 *************** *** 26,32 **** // without having to be completely rewritten or released as two // different versions. ! $lastquery; if(isset($dbasetype) == false) { $dbasetype = "mysql"; } ! $connectdsn = ""; --- 26,33 ---- // without having to be completely rewritten or released as two // different versions. ! $lastquery = ""; //Used for debugging if(isset($dbasetype) == false) { $dbasetype = "mysql"; } ! ! $connections = array(0 => array('conn' => NULL, 'res' => NULL, 'db' => NULL)); $connectdsn = ""; *************** *** 34,37 **** --- 35,39 ---- // Include the PEAR Database Abstraction Layer include_once("DB.php"); + echo "PEAR is being used<br />\n"; } elseif(! isset($peardb)) { $peardb = false; *************** *** 40,48 **** // Wrapper for database selection. function ofirst_dbconnect($server = "", $username = "", $password = "", ! $newlink = "", $intclientflags = "") { ! global $dbasetype, $peardb, $connectdsn; if($peardb) { ! $connectdsn = "$dbasetype://$username:$password@$server/"; ! return(0); } elseif($dbasetype == "mysql") { if(function_exists("mysql_connect") == false) { --- 42,50 ---- // Wrapper for database selection. function ofirst_dbconnect($server = "", $username = "", $password = "", ! $newlink = "", $intclientflags = "", $ID = 0) { ! global $connections, $dbasetype, $peardb; if($peardb) { ! $connections[$ID] = "$dbasetype://$username:$password@$server/"; ! return($ID); } elseif($dbasetype == "mysql") { if(function_exists("mysql_connect") == false) { *************** *** 50,58 **** } if($intclientflags != "") { ! return(mysql_connect($server, $username, $password, $newlink, $intclientflags)); } elseif($newlink != "") { ! return(mysql_connect($server, $username, $password, $newlink)); } else { ! return(mysql_connect($server, $username, $password)); } } elseif ($dbasetype == "mssql") { --- 52,60 ---- } if($intclientflags != "") { ! $connections[$ID]['conn'] = mysql_connect($server, $username, $password, $newlink, $intclientflags); } elseif($newlink != "") { ! $connections[$ID]['conn'] = mysql_connect($server, $username, $password, $newlink); } else { ! $connections[$ID]['conn'] = mysql_connect($server, $username, $password); } } elseif ($dbasetype == "mssql") { *************** *** 60,64 **** die("Microsoft SQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable Microsoft SQL support, or choose another database type."); } ! return(mssql_connect($server, $username, $password)); } elseif ($dbasetype == "odbc") { if(function_exists("odbc_connect") == false) { --- 62,66 ---- die("Microsoft SQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable Microsoft SQL support, or choose another database type."); } ! $connections[$ID]['conn'] = mssql_connect($server, $username, $password); } elseif ($dbasetype == "odbc") { if(function_exists("odbc_connect") == false) { *************** *** 66,121 **** } if($newlink != "") { ! return(odbc_connect($server, $username, $password, $newlink)); } else { ! return(odbc_connect($server, $username, $password)); } } ! exit(0); } ! function ofirst_select_db($databasename, $linkidentifier = "") { ! global $dbasetype, $peardb, $connectdsn; if($peardb) { ! return($connectdsn =& DB::connect("$connectdsn$databasename")); } elseif($dbasetype == "mysql") { if(function_exists("mysql_select_db") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } ! if($linkidentifier != "") { ! return(mysql_select_db($databasename, $linkidentifier)); ! } else { return(mysql_select_db($databasename)); ! } } elseif ($dbasetype == "mssql") { if(function_exists("mssql_select_db") == false) { die("Microsoft SQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable Microsoft SQL support, or choose another database type."); } ! if($linkidentifier != "") { ! return(mssql_select_db($databasename, $linkidentifier)); ! } else { return(mssql_select_db($databasename)); ! } ! //ODBC does not require slecting a DB } - exit(0); } ! function ofirst_dberrno($linkidentifier = "") { ! global $dbasetype, $peardb; if($peardb) { ! if($linkidentifier != "") { ! return(DB_Error::getCode($linkidentifier)); ! } else { return(DB_Error::getCode()); ! } } elseif($dbasetype == "mysql") { if(function_exists("mysql_errno") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } ! if($linkidentifier != "") { ! return(mysql_errno($linkidentifier)); ! } else { return(mysql_errno()); ! } } elseif ($dbasetype == "mssql") { if(function_exists("mssql_connect") == false) { --- 68,128 ---- } if($newlink != "") { ! $connections[$ID]['conn'] = odbc_connect($server, $username, $password, $newlink); } else { ! $connections[$ID]['conn'] = odbc_connect($server, $username, $password); } } ! return $ID; } ! function ofirst_select_db($databasename, $ID = 0) { ! global $connections, $dbasetype, $peardb; ! $connections[$ID]['db'] = $databasename; if($peardb) { ! $connections[$ID]['conn'] = $connections[$ID]['conn'] =& DB::connect($connections[$ID]['conn'].$databasename); ! ! if (DB::isError ($connections[$ID])) ! return FALSE; } elseif($dbasetype == "mysql") { if(function_exists("mysql_select_db") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } ! // if($linkidentifier != "") { ! return(mysql_select_db($databasename, $connections[$ID]['conn'])); ! /* } else { return(mysql_select_db($databasename)); ! }*/ } elseif ($dbasetype == "mssql") { if(function_exists("mssql_select_db") == false) { die("Microsoft SQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable Microsoft SQL support, or choose another database type."); } ! // if($linkidentifier != "") { ! return(mssql_select_db($databasename, $connections[$ID]['conn'])); ! /* } else { return(mssql_select_db($databasename)); ! / }*/ ! } elseif ($dbasetype == "odbc") { ! // ODBC doesn't require selecting a DB ! return TRUE; } } ! function ofirst_dberrno($ID = 0) { ! global $connections, $dbasetype, $peardb; if($peardb) { ! // if($linkidentifier != "") { ! return(DB_Error::getCode($connections[$ID]['conn'])); #FIXME: Use last return ! /* } else { return(DB_Error::getCode()); ! }*/ } elseif($dbasetype == "mysql") { if(function_exists("mysql_errno") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } ! // if($linkidentifier != "") { ! return(mysql_errno($connections[$ID]['conn'])); ! /* } else { return(mysql_errno()); ! }*/ } elseif ($dbasetype == "mssql") { if(function_exists("mssql_connect") == false) { *************** *** 127,156 **** die("ODBC support is not enabled in your version of PHP. To use the openFIRST Web Portal Software, please either enable ODBC support, or choose another database type."); } ! if($linkidentifier != "") { ! return(odbc_error($linkidentifier)); ! } else { return(odbc_error()); ! } } exit(0); } ! function ofirst_dberror($linkidentifier = "") { ! global $dbasetype, $peardb; if($peardb) { ! if($linkidentifier != "") { ! return(DB_Error::getMessage($linkidentifier)); ! } else { return(DB_Error::getMessage()); ! } } elseif($dbasetype == "mysql") { if(function_exists("mysql_error") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } ! if($linkidentifier != "") { ! return(mysql_error($linkidentifier)); ! } else { return(mysql_error()); ! } } elseif ($dbasetype == "mssql") { if(function_exists("mssql_connect") == false) { --- 134,163 ---- die("ODBC support is not enabled in your version of PHP. To use the openFIRST Web Portal Software, please either enable ODBC support, or choose another database type."); } ! // if($linkidentifier != "") { ! return(odbc_error($connections[$ID]['conn'])); ! /* } else { return(odbc_error()); ! }*/ } exit(0); } ! function ofirst_dberror($ID = 0) { ! global $connections, $dbasetype, $peardb; if($peardb) { ! // if($linkidentifier != "") { ! return(DB_Error::getMessage($connections[$ID]['conn'])); ! /* } else { return(DB_Error::getMessage()); ! }*/ } elseif($dbasetype == "mysql") { if(function_exists("mysql_error") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } ! // if($linkidentifier != "") { ! return(mysql_error($connections[$ID]['conn'])); ! /* } else { return(mysql_error()); ! }*/ } elseif ($dbasetype == "mssql") { if(function_exists("mssql_connect") == false) { *************** *** 162,195 **** die("ODBC support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable ODBC support, or choose another database type."); } ! if($linkidentifier != "") { ! return(odbc_errormsg($linkidentifer)); ! } else { return(odbc_errormsg()); ! } } exit(0); } ! function ofirst_dbquery($string, $linkidentifier = "", $batchsize = "") { ! global $dbasetype, $peardb, $sqlconnection, $lastquery; ! $lastquery = "\$string = \"$string\", \$linkidentifier = \"$linkidentifier\", \$batchsize = \"$batchsize\""; if($peardb) { if($batchsize != "") { ! return($sqlconnection->query($string, $linkidentifier, $batchsize)); ! } elseif($linkidentifier != "") { ! return($sqlconnection->query($string, $linkidentifier)); ! } else { return($sqlconnection->query($string)); ! } } elseif($dbasetype == "mysql") { if(function_exists("mysql_query") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } ! if($linkidentifier != "") { ! return(mysql_query($string, $linkidentifier)); ! } else { return(mysql_query($string)); ! } } elseif($dbasetype == "mssql") { if(function_exists("mssql_query") == false) { --- 169,202 ---- die("ODBC support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable ODBC support, or choose another database type."); } ! // if($linkidentifier != "") { ! return(odbc_errormsg($connections[$ID]['conn'])); ! /* } else { return(odbc_errormsg()); ! }*/ } exit(0); } ! function ofirst_dbquery($string, $ID = 0, $batchsize = "") { ! global $connections, $dbasetype, $peardb, $sqlconnection, $lastquery; ! $lastquery = "ofirst_dbquery(): \$string = \"$string\", \$linkidentifier = \"$linkidentifier\", \$batchsize = \"$batchsize\""; if($peardb) { if($batchsize != "") { ! return($sqlconnection->query($string, $connections[$ID]['conn'], $batchsize)); ! } else/*if($linkidentifier != "")*/ { ! return($sqlconnection->query($string, $connections[$ID]['conn'])); ! }/* else { return($sqlconnection->query($string)); ! }*/ } elseif($dbasetype == "mysql") { if(function_exists("mysql_query") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } ! // if($linkidentifier != "") { ! return(mysql_query($string, $connections[$ID]['conn'])); ! /* } else { return(mysql_query($string)); ! }*/ } elseif($dbasetype == "mssql") { if(function_exists("mssql_query") == false) { *************** *** 197,206 **** } if($batchsize != "") { ! return(mssql_query($string, $linkidentifier, $batchsize)); ! } elseif($linkidentifier != "") { ! return(mssql_query($string, $linkidentifier)); ! } else { return(mssql_query($string)); ! } } elseif ($dbasetype == "odbc") { if(function_exists("odbc_exec") == false) { --- 204,213 ---- } if($batchsize != "") { ! return(mssql_query($string, $connections[$ID]['conn'], $batchsize)); ! } else/*if($linkidentifier != "")*/ { ! return(mssql_query($string, $connections[$ID]['conn'])); ! }/* else { return(mssql_query($string)); ! }*/ } elseif ($dbasetype == "odbc") { if(function_exists("odbc_exec") == false) { *************** *** 208,218 **** } // Note: this may be misleading, the variable names are not reflective of their content in this particular line, as the odbc function uses an order different from the other databases. ! return(odbc_exec($string, $linkidentifer)); } exit(0); } ! function ofirst_dbfetch_object($resource, $rownumber = "") { ! global $dbasetype, $peardb; if($peardb) { if($rownumber != "") { --- 215,227 ---- } // Note: this may be misleading, the variable names are not reflective of their content in this particular line, as the odbc function uses an order different from the other databases. ! return(odbc_exec($string, $connections[$ID]['conn'])); } exit(0); } ! #FIXME: Make associative arrays ! #FIXME: Use $connections[$ID]['res'] ! function ofirst_dbfetch_object($resource, $rownumber = "", $ID = 0) { ! global $connections, $dbasetype, $peardb; if($peardb) { if($rownumber != "") { *************** *** 247,252 **** } function ofirst_dbnum_rows($resource) { ! global $dbasetype, $peardb; if($peardb) { if($resource != "") { --- 256,262 ---- } + #FIXME: Use $connections[$ID]['res'] function ofirst_dbnum_rows($resource) { ! global $connections, $dbasetype, $peardb; if($peardb) { if($resource != "") { *************** *** 278,283 **** } ! function ofirst_dbname_version() { ! global $dbasetype, $peardb; if($peardb) { return "PEAR DB"; --- 288,293 ---- } ! function ofirst_dbname_version($ID = 0) { ! global $connections, $dbasetype, $peardb; if($peardb) { return "PEAR DB"; *************** *** 295,303 **** } ! function ofirst_dbsize() { ! global $dbasetype, $peardb, $sqldatabase; if($dbasetype == "mysql") { $dbsize = 0; ! $dq = ofirst_dbquery("SHOW TABLE STATUS FROM $sqldatabase"); while($d = ofirst_dbfetch_object($dq)) { $dbsize += $d->Data_length + $d->Index_length; --- 305,313 ---- } ! function ofirst_dbsize($ID = 0) { ! global $connections, $dbasetype, $peardb; if($dbasetype == "mysql") { $dbsize = 0; ! $dq = ofirst_dbquery("SHOW TABLE STATUS FROM " $connections[$ID]['db'], 0); while($d = ofirst_dbfetch_object($dq)) { $dbsize += $d->Data_length + $d->Index_length; *************** *** 305,309 **** return (int) (($dbsize + 0.5) / 1024 * 10) / 10 . " KB"; } elseif($dbasetype == "mssql") { ! $s = ofirst_dbfetch_object(ofirst_dbquery("SELECT ((SUM(size) * 8.0) * 1024.0) as dbsize FROM sysfiles")); return (int) (( $s->dbsize + 0.5) / 1024 * 10) / 10 . " KB"; } else { --- 315,319 ---- return (int) (($dbsize + 0.5) / 1024 * 10) / 10 . " KB"; } elseif($dbasetype == "mssql") { ! $s = ofirst_dbfetch_object(ofirst_dbquery("SELECT ((SUM(size) * 8.0) * 1024.0) as dbsize FROM sysfiles", 0)); return (int) (( $s->dbsize + 0.5) / 1024 * 10) / 10 . " KB"; } else { |
From: <bug...@we...> - 2005-01-06 18:28:10
|
http://bugzilla.openfirst.org/show_bug.cgi?id=197 Summary: Allow addition of phpNuke/Drupal blocks to openFIRST sites Product: openFIRST Version: unspecified Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: base AssignedTo: de...@op... ReportedBy: ti...@op... It would be a nice feature to allow the use of phpNuke/Drupal blocks on openFIRST sites. Ideally this would come with some form of editor for placement of the blocks on pages. Basically, this would help with users who are migrating from other software to the openFIRST system and would allow openFIRST to easily make use of more modules which aren't coded directly by the project team, as desired. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. |