Ignore:
Timestamp:
Dec 16, 2007 7:21:57 AM (16 years ago)
Author:
quinn
Message:

Updated example config file. Added admin2.inc.css and minor corrections into HTML. Module maker fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/module_maker/module.cli.php

    r259 r295  
    137137
    138138// Make sure requested table is in database.
     139if (!isset($tables)) {
     140    die(sprintf("%s Warning: %s does not exist in database %s. No DB tables found!", basename($_SERVER['argv'][0]), $db_tbl, $app->getParam('db_name')));
     141}
    139142if (!in_array($db_tbl, $tables)) {
    140143    die(sprintf("%s Warning: %s does not exist in database %s. Please select one of: \n\n%s\n\n", basename($_SERVER['argv'][0]), $db_tbl, $app->getParam('db_name'), join("\n", $tables)));
     
    207210
    208211$search['admin_form_tag_init'] = '/%ADMIN_FORM_TAG_INIT%/';
    209 $replace['admin_form_tag_init'] = '<form method="post" action="<\x3fphp echo \$_SERVER[\'PHP_SELF\']; \x3f>" class="sc-form">';
     212$replace['admin_form_tag_init'] = "<form method=\"post\" action=\"<\x3fphp echo oTxt(\$_SERVER['PHP_SELF']); \x3f>\" class=\"sc-form\">";
    210213$search['admin_upload_include'] = '/%ADMIN_UPLOAD_INCLUDE%/';
    211214$replace['admin_upload_include'] = '';
Note: See TracChangeset for help on using the changeset viewer.