Changeset 1498
- Timestamp:
- 06/14/06 07:36:31 (2 years ago)
- Files:
-
- trunk/gregarius/INSTALL (modified) (1 diff)
- trunk/gregarius/schema.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/gregarius/INSTALL
r1497 r1498 37 37 38 38 1. For a graphical installation, point your browser at the root 39 directory of your installation. Enter the necessary information about your database structure and continue. 39 directory of your installation. Enter the necessary information 40 about your database structure and continue. 40 41 41 42 2. For a manual installation, create a configuration file, based on the trunk/gregarius/schema.php
r1483 r1498 26 26 ############################################################################### 27 27 28 define('DBSTRUCT', dirname(__FILE__) . '/dbstruct.sql'); 28 29 29 30 require_once('util.php'); … … 92 93 93 94 function rss_query_wrapper($query, $dieOnError=true, $preventRecursion=false) { 95 global $out; 96 94 97 if (defined('DUMP_SCHEMA')) { 95 echo$query . ";\n";98 $out .= $query . ";\n"; 96 99 } else { 97 100 rss_query(trim($query),$dieOnError,$preventRecursion); … … 716 719 @require_once('init.php'); 717 720 718 721 $out = "################ 722 # Gregarius " . _VERSION_ . " 723 # database structure 724 ################# 725 726 "; 719 727 foreach (array("channels","config","folders","item","metatag","tag","rating", "users", "dashboard") as $tbl) { 720 728 call_user_func("_init_$tbl"); 721 729 } 722 723 730 // shamelessly copied from install.php 731 $fp = @fopen(DBSTRUCT, 'w'); 732 if(!$fp) { 733 // unable to open file for writing 734 echo($out); 735 exit(); 736 } else { 737 // write the file 738 fwrite($fp, $out); 739 fclose($fp); 740 echo "The database structure has been written to the file 'dbstruct.sql'.\n"; 741 exit(); 742 } 724 743 } 725 744
