7 $title =
"Select Site Content to be Imported";
16 trace(
"*** Importing $components", 3);
18 $tmp = $_FILES[
"import_file"][
"tmp_name"];
19 $base = basename($_FILES[
"import_file"][
"name"]);
22 move_uploaded_file($tmp,
$file);
24 $fs = filesize(
$file);
25 trace(
"Import File Path: $file", 3);
26 trace(
"Import File Size: $fs bytes", 3);
28 if ($fs > 10 * 1024 * 1024)
30 trace(
"Large Import File detected - launching background process", 3 );
33 redirect(
"/admin/import_background");
36 $xml = file_get_contents(
$file);
static using()
Import the datamodels, views and manifest for the specified component(s).
$method
Pull out a simple reference to the request method.