1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Preparation for drupal import upgrades.

This commit is contained in:
Cameron
2015-02-12 13:10:35 -08:00
parent 6811c479d1
commit 3e802c2751
2 changed files with 171 additions and 39 deletions

View File

@@ -181,25 +181,27 @@ class import_main_ui extends e_admin_ui
// print_a($_POST);
if(!empty($_POST['import_delete_existing_data']))
{
$this->deleteExisting = varset($_POST['import_delete_existing_data'],0);
}
$this->deleteExisting = varset($_POST['import_delete_existing_data'],0);
if(varset($_POST['classes_select']))
if(!empty($_POST['classes_select']))
{
$this->checked_class_list = implode(',',$_POST['classes_select']);
}
if(vartrue($_POST['createUserExtended'])) //TODO
if(!empty($_POST['createUserExtended'])) //TODO
{
$this->createUserExtended = true;
}
if(vartrue($_POST['selectedTables']))
if(!empty($_POST['selectedTables']))
{
$this->selectedTables = $_POST['selectedTables'];
}
if(vartrue($_POST['runConversion'])) // default method.
if(!empty($_POST['runConversion'])) // default method.
{
$this->runConversion($_POST['import_source']);
return;
@@ -481,7 +483,7 @@ class import_main_ui extends e_admin_ui
</tr>
<tr>
<td >$importType ".LAN_CONVERT_22."</td>
<td ><input class='tbox' type='text' name='dbParamDatabase' size='30' value='".varset($_POST['dbParamDatabase'])."' maxlength='100' /></td>
<td ><input class='tbox' type='text' name='dbParamDatabase' size='30' value='".varset($_POST['dbParamDatabase'])."' maxlength='100' required /></td>
</tr>
<tr>
<td >$importType ".LAN_CONVERT_23."</td>
@@ -585,8 +587,11 @@ class import_main_ui extends e_admin_ui
// if(varset($import_source)) { $temp .= "disp('{$import_source}');"; }
// if (varset($current_db_type)) $temp .= " flagbits('{$current_db_type}');";
// if (varset($temp)) $text .= "<script type=\"text/javascript\"> {$temp}</script>";
$ns -> tablerender(LAN_PLUGIN_IMPORT_NAME.SEP.$importType, $mes->render().$text);
$this->addTitle($importType);
echo $mes->render().$text;
// $ns -> tablerender(LAN_PLUGIN_IMPORT_NAME.SEP.$importType, $mes->render().$text);
}