- Timestamp:
- Nov 15, 2014 9:34:39 PM (9 years ago)
- Location:
- trunk/bin/module_maker
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/module_maker/_config.inc.php
r468 r500 35 35 36 36 // Make sure necessary files exist. 37 if (!file_exists(COMMON_BASE . '/global/db_auth.inc.php')) { 37 $db_auth_file = false; 38 $rii = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(COMMON_BASE)); 39 $rii->setMaxDepth(2); 40 foreach ($rii as $filename => $file) { 41 if (mb_strpos($filename, 'db_auth.inc.php') !== false) { 42 $db_auth_file = $filename; 43 break; 44 } 45 } 46 47 if (!$db_auth_file) { 38 48 die("Error: First argument directory must contain the global/db_auth.inc.php file with valid MySQL credentials.\n"); 39 49 } … … 63 73 'log_screen_priority' => LOG_DEBUG, 64 74 )); 65 require_once 'global/db_auth.inc.php';75 require_once $db_auth_file; 66 76 67 77 // Start application-based functionality: database, session, environment, ini setup, etc. -
trunk/bin/module_maker/module.cli.php
r468 r500 5 5 * For details visit the project site: <http://trac.strangecode.com/codebase/> 6 6 * Copyright 2001-2012 Strangecode, LLC 7 * 7 * 8 8 * This file is part of The Strangecode Codebase. 9 9 * … … 12 12 * Free Software Foundation, either version 3 of the License, or (at your option) 13 13 * any later version. 14 * 14 * 15 15 * The Strangecode Codebase is distributed in the hope that it will be useful, but 16 16 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 17 17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 18 18 * details. 19 * 19 * 20 20 * You should have received a copy of the GNU General Public License along with 21 21 * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>. … … 39 39 40 40 " . basename($_SERVER['argv'][0]) . " site_directory name_singular name_plural [operation] 41 41 42 42 Valid operations include: " . join(', ', $valid_ops) . " 43 43 … … 149 149 if (!is_dir("$public_tpl_dir")) { 150 150 die(basename($_SERVER['argv'][0]) . " Error: public_tpl_dir '$public_tpl_dir' directory not found.\n"); 151 } 151 } 152 152 } 153 153 … … 196 196 $type = preg_replace('/^(\w+).*$/', '\\1', $col[1]); 197 197 $default = $col[4]; 198 198 199 199 if (mb_strpos($default, '0000') !== false || '0' == $default) { 200 200 $default = ''; -
trunk/bin/module_maker/skel/admin.php
r479 r500 408 408 "; 409 409 410 // Use a ca shhash to determine if the result-set has changed.410 // Use a cache hash to determine if the result-set has changed. 411 411 // A unique key for this query, with the total_items in case db records 412 412 // were added since the last cache. This identifies a unique set of
Note: See TracChangeset
for help on using the changeset viewer.