Changeset 533 for trunk/bin/module_maker/validation.cli.php
- Timestamp:
- Jul 13, 2015 8:48:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/module_maker/validation.cli.php
r468 r533 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/>. … … 26 26 */ 27 27 28 include_once dirname(__FILE__) . '/_config.inc.php'; 28 if ($_SERVER['argc'] > 1 && isset($_SERVER['argv'][1]) && '' != $_SERVER['argv'][1] && is_dir($_SERVER['argv'][1])) { 29 // First arg is path to current site. Realpath removes trailing /s 30 define('COMMON_BASE', realpath($_SERVER['argv'][1])); 31 } else { 32 die("Error: First argument must be the directory path to an existing site (ex: /home/sc/www.strangecode.com).\n"); 33 } 34 35 include_once dirname(__FILE__) . '/../_config.inc.php'; 29 36 30 37 // Test arguments.
Note: See TracChangeset
for help on using the changeset viewer.