'.$GLOBALS['I18N']->get('import is not available').'
'; return; } # import from a different PHPlist installation if ($require_login && !isSuperUser()) { $access = accessLevel("import4"); if ($access == "owner") $subselect = " where owner = ".$_SESSION["logindetails"]["id"]; elseif ($access == "all") $subselect = ""; elseif ($access == "none") $subselect = " where id = 0"; } function connectLocal() { $database_connection = Sql_Connect( $GLOBALS["database_host"], $GLOBALS["database_user"], $GLOBALS["database_password"], $GLOBALS["database_name"]); return $database_connection; } function connectRemote() { return Sql_Connect($_POST["remote_host"], $_POST["remote_user"], $_POST["remote_password"], $_POST["remote_database"]); } $result = Sql_query("SELECT id,name FROM ".$tables["list"]." $subselect ORDER BY listorder"); while ($row = Sql_fetch_array($result)) { $available_lists[$row["id"]] = $row["name"]; $some = 1; } if (!$some) # @@@@ not sure about this one: echo $GLOBALS['I18N']->get('No lists available').', '.PageLink2("editlist",$GLOBALS['I18N']->get('add_list')); #foreach ($_POST as $key => $val) { # print "$key => $val'.$GLOBALS['I18N']->get('remote_server').'
',$_POST["copyremotelists"] == "yes"?"checked":"",$_POST["markhtml"] == "yes"?"checked":"",$_POST["overwrite"] == "yes"?"checked":"" ); } else { set_time_limit(600); ob_end_flush(); include_once("structure.php"); print $GLOBALS['I18N']->get('connecting_remote')."