| [ PHPXref.com ] | [ Generated: Sun Jul 20 19:55:59 2008 ] | [ phpSQLDiff 2.2 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /*################################################################# 3 # 4 # Name: local_config.php 5 # 6 # Description: 7 # Use this to provide global flags to control options for your 8 # local installation. 9 # 10 # Copyright (C) 2001-2006 Dmitriy Katsman, Terry Gliedt, University of Michigan 11 # This is free software; you can redistribute it and/or modify it under the 12 # terms of the GNU General Public License as published by the Free Software 13 # Foundation; See http://www.gnu.org/copyleft/gpl.html 14 #################################################################*/ 15 $VERSION = '2.2'; // This changes with each public release 16 17 /*--------------------------------------------------------------- 18 # Local options are controlled by the array LOCALOPT. 19 # 20 # You can override the default tables etc by providing an optional 21 # field when invoking index.php. For instance: 22 # 23 # .../sqldiff/index.php?what2show=test 24 # 25 # Set the default $LDB[] fields and then 26 # if ($what2show == 'test') { 27 # $LDB[diffdb1] = 'testmysql'; 28 # $LDB[diffuser1] = 'tester'; 29 # $LDB[diffpass1] = 'gofast'; 30 # } 31 # 32 # You can also set values based on some sort of logic 33 # // Update allowed only on one table 34 # if ($LDB[difftable2] == 'test_table') { 35 # $LOCALOPT['updaterecord'] = TRUE; 36 # } 37 # else { $LOCALOPT['updaterecord'] = FALSE; } 38 # 39 # Additionally this code could read values from some 40 # file in the system to set the proper variables. 41 # It's only limited by your cleverness. :-) 42 #----------------------------------------------------------------*/ 43 // Be sure I can see syntax errors 44 //ini_set('error_reporting', E_ALL ^ E_NOTICE); 45 46 // Defaults for connecting to database 47 $LDB['difftype1'] = 'mysql'; 48 $LDB['diffhost1'] = 'localhost'; 49 $LDB['diffdb1'] = ''; 50 $LDB['diffuser1'] = ''; 51 $LDB['diffpass1'] = ''; 52 $LDB['difftable1'] = ''; 53 $LDB['difftable2'] = ''; 54 $LDB['diffcomp1'] = ''; 55 $LDB['diffcomp2'] = ''; 56 $LDB['diffcomp1'] = 'prikey'; 57 $LDB['diffcomp2'] = 'prikey'; 58 59 $LDB['difftype2'] = $LDB['difftype1']; 60 $LDB['diffhost2'] = $LDB['diffhost1']; 61 $LDB['diffdb2'] = $LDB['diffdb1']; 62 $LDB['diffuser2'] = $LDB['diffuser1']; 63 $LDB['diffpass2'] = $LDB['diffpass1']; 64 65 // Optional path to the directory containing project includes 66 // If relative path, this is relative to DOCUMENT_ROOT 67 // Can be absolute path (better if it is outside of htdocs tree) 68 // This cannot be usefully changed in a project file. 69 $LDB['projects_dir'] = 'sqldiff/projects'; 70 71 // Array of users allowed to use this project 72 // If open access is wanted, make this an empty array 73 // e.g. $CFG['allow_list'] = array(); 74 $LDB['allow_list'] = array(); 75 76 // What fields should the first page prompt for? 77 // Choices are: 'type', 'host', 'db', 'user', 'pass', 'table', 'comp' 78 $LOCALOPT['promptfor'] = array('type', 'db', 'user', 'pass', 'table', 'comp'); 79 80 // Set the main header on the first page, or leave as '' for the default 81 $LOCALOPT['title'] = "Compare Two SQL Tables"; 82 83 // Set the main header on the first page 84 // This can be arbitrary HTML, including H2, P or other HTML commands. 85 //$LOCALOPT['text'] = "<H2>Isn't this a GREAT Application?</H2>" . 86 // "<P>This demonstrates how you can provide additional HTML " . 87 // " to tailor what the user sees.</P>\n"; 88 89 // Add these links at the top of each page 90 $LOCALOPT['toplinks'] = array(); 91 92 // Add these links at the bottom of first page 93 $LOCALOPT['bottomlinks'] = array(); // array('SQLView' => '/sqlview/',); 94 95 // Delimiter used to separate columns 96 $LCFG['delimiter'] = '~;~'; 97 98 // Provide link to Delete a record 99 $LOCALOPT['delrecord'] = FALSE; 100 101 // Provide link to Update based on primary key 102 $LOCALOPT['updaterecord'] = TRUE; 103 104 // Provide link to Insert based on primary key 105 $LOCALOPT['insertrecord'] = TRUE; 106 107 // Specify URL to CSS file. Project could override this. 108 $LOCALOPT['stylesheet'] = 'stylesheet.css'; 109 110 // If he wants to see details, here's a way to show even more 111 // Set $showdetails to higher values to see even more or not offer this 112 $LOCALOPT['showdetails'] = FALSE; // Do not show checkbox for this 113 114 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |