Update of /cvsroot/openfirst/update
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16290
Modified Files:
selectinstalldir.php sql.php
Log Message:
Make system sort of work moreso (fix parse errors, typos, etc.)
Index: selectinstalldir.php
===================================================================
RCS file: /cvsroot/openfirst/update/selectinstalldir.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** selectinstalldir.php 1 Dec 2004 22:16:55 -0000 1.5
--- selectinstalldir.php 1 Dec 2004 22:23:24 -0000 1.6
***************
*** 24,43 ****
mysql_query("UPDATE ofirst_systems SET
dbasetype='" . $_REQUEST["dbasetype"] . "',
! peardb='" . $_REQUEST["dbasetype"] . "',
! ostype='" . $_REQUEST["dbasetype"] . "',
! encryption='" . $_REQUEST["dbasetype"] . "',
! title='" . $_REQUEST["dbasetype"] . "',
! version='" . $_REQUEST["dbasetype"] . "',
! sqlserver='" . $_REQUEST["dbasetype"] . "',
! sqluser='" . $_REQUEST["dbasetype"] . "',
! sqlpassword='" . $_REQUEST["dbasetype"] . "',
! sqldatabase='" . $_REQUEST["dbasetype"] . "',
! regenabled='" . $_REQUEST["dbasetype"] . "',
! home='" . $_REQUEST["dbasetype"] . "',
! header='" . $_REQUEST["dbasetype"] . "',
! footer='" . $_REQUEST["dbasetype"] . "',
! mailnotify='" . $_REQUEST["dbasetype"] . "',
! mailfrom='" . $_REQUEST["dbasetype"] . "',
! fbasepath='" . $_REQUEST["dbasetype"] . "'
WHERE id='" . $_REQUEST["sysid"] . "' AND owner='$user->id';");
--- 24,43 ----
mysql_query("UPDATE ofirst_systems SET
dbasetype='" . $_REQUEST["dbasetype"] . "',
! peardb='" . $_REQUEST["peardb"] . "',
! ostype='" . $_REQUEST["ostype"] . "',
! encryption='" . $_REQUEST["encryption"] . "',
! title='" . $_REQUEST["title"] . "',
! version='" . $_REQUEST["version"] . "',
! sqlserver='" . $_REQUEST["sqlserver"] . "',
! sqluser='" . $_REQUEST["sqluser"] . "',
! sqlpassword='" . $_REQUEST["sqlpassword"] . "',
! sqldatabase='" . $_REQUEST["sqldatabase"] . "',
! regenabled='" . $_REQUEST["regenabled"] . "',
! home='" . $_REQUEST["home"] . "',
! header='" . $_REQUEST["header"] . "',
! footer='" . $_REQUEST["footer"] . "',
! mailnotify='" . $_REQUEST["mailnotify"] . "',
! mailfrom='" . $_REQUEST["mailfrom"] . "',
! fbasepath='" . $_REQUEST["fbasepath"] . "'
WHERE id='" . $_REQUEST["sysid"] . "' AND owner='$user->id';");
Index: sql.php
===================================================================
RCS file: /cvsroot/openfirst/update/sql.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** sql.php 1 Dec 2004 22:17:21 -0000 1.1
--- sql.php 1 Dec 2004 22:23:24 -0000 1.2
***************
*** 53,87 ****
echo("<td><b><font color='Green'>Module Installed</font></b></td></tr>");
}
- } else {
- chdir("..");
- $handle=@opendir(getcwd());
- while ($file = readdir($handle)){
- if(is_dir("$file") && $file != "." && $file != "..") {
- $handl=@opendir(getcwd() . "/$file/setup/");
- while ($fil = @readdir($handl)){
- if($fil != ".." && $fil != "." && $fil != "" && strpos($fil, $dbasetype) > 0) {
- $filename = "../$file/setup/$fil";
- $sqlf = str_replace(".", "-", str_replace(".$dbasetype", "",substr(strrchr($filename, "/"), 1)));
- $dir = str_replace(".", "-", str_replace(".$dbasetype", "", substr(strchr($filename, "/"), 1)));
- echo("<br /> <input type='checkbox' name='$dir'>$sqlf - $dir</input>");
-
- $q = ofirst_dbquery("CREATE table IF NOT EXISTS `ofirst_config` (`modulename` CHAR(25) NOT NULL,
- `showonmenu` BOOL, `active` BOOL, `adminnavigation` TEXT,
- `modulenavigation` TEXT, `includes` TEXT, PRIMARY KEY (`modulename`));");
-
- $filename = "$file/setup/$fil";
- $sf = fopen($filename, "r");
- $query = "";
- while($line = fgets($sf, 4096)) {
- if(substr($line, 0, 2) != "--" && substr($line, 0, 1) != "#" && strlen($line) > 0) {
- $q = ofirst_dbquery(trim($line));
- }
- }
- echo(" - <b>Submitted, and added.</b>");
- fclose($sf);
- $filename = "../$file/setup/$fil";
- }
- }
- }
}
?>
--- 53,56 ----
|