コード例 #1
0
ファイル: index.php プロジェクト: ljvblfz/mysoftwarebrasil
                 $content .= "</td></tr></table>\n";
                 $content .= "<p>" . _INSTALL_L111 . "</p>";
                 $b_next = array('createTables', _INSTALL_L40);
             } else {
                 $content .= _OKIMG . 'Table workorders exists, continue with upgrade.<br />';
                 $content .= "</td></tr></table>\n";
                 $b_next = array('updateTables', 'Update Tables');
             }
         }
     }
     include 'install_tpl.php';
     break;
 case "createDB":
     include_once "../inc/config.php";
     $oDB = new dclDB();
     if (!$oDB->CreateDatabase()) {
         $content = "<p>" . _INSTALL_L31 . "</p>";
         $b_next = array('checkDB', _INSTALL_L104);
         $b_back = array('start', _INSTALL_L103);
     } else {
         $content = "<p>" . sprintf(_INSTALL_L43, $dcl_domain_info[$dcl_domain]['dbName']) . "</p>";
         $b_next = array('checkDB', _INSTALL_L104);
     }
     include 'install_tpl.php';
     break;
 case "createTables":
     include_once "../inc/config.php";
     include_once "../inc/functions.inc.php";
     include_once 'tables_current.inc.php';
     $oProc = CreateObject('dcl.schema_proc', $dcl_domain_info[$dcl_domain]['dbType']);
     $oProc->m_odb = new dclDB();