Permalink
Browse files

Removed several files from the tools directory that shouldn't be part…

… of the repo:

* attributes.php - created/modified by db2fs.php (though I had to update db2fs.php so that it works correctly when the file is not present).  It is updated to contain the latest attributes once the script has run.
* db2fs.log - stores output of db2fs.php, and created automatically if not already present.  Default contents is already the default value used when reading it in if not already present, therefore safe to remove.
* error_log - not referenced anywhere.  Presumably committed in error.
  • Loading branch information...
1 parent 2ed1a3e commit 4087455e504177599bc0d559e166a7ccde7498f6 @MarkMaldaba MarkMaldaba committed Nov 13, 2012
Showing with 6 additions and 12 deletions.
  1. +0 −5 tools/attributes.php
  2. +0 −1 tools/db2fs.log
  3. +6 −3 tools/db2fs.php
  4. +0 −3 tools/error_log
@@ -1,5 +0,0 @@
-<?php
-
-return array (
-);
-?>
View
@@ -1 +0,0 @@
-Converted files from database to file system:
View
@@ -9,9 +9,12 @@
} // if
$log_data = file_exists('db2fs.log') ? file_get_contents('db2fs.log') : "Converted files from database to file system: ";
-
- $file_attributes = require_once 'attributes.php';
-
+
+ $file_attributes = @require_once 'attributes.php';
+ if (!is_array($file_attributes)) {
+ $file_attributes = array();
+ }
+
$link = @mysql_connect(DB_HOST, DB_USER, DB_PASS);
$file_repo_table = DB_PREFIX . 'file_repo';
$file_repo_attributes_table = DB_PREFIX . 'file_repo_attributes';
View
@@ -1,3 +0,0 @@
-[22-Jul-2011 12:32:29] PHP Warning: require() [<a href='function.require'>function.require</a>]: Unable to access ../../config/config.php in /home/sharec/public_html/pp088/tools/dbinfo.php on line 4
-[22-Jul-2011 12:32:29] PHP Warning: require(../../config/config.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/sharec/public_html/pp088/tools/dbinfo.php on line 4
-[22-Jul-2011 12:32:29] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '../../config/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sharec/public_html/pp088/tools/dbinfo.php on line 4

0 comments on commit 4087455

Please sign in to comment.