Commit 568ee869 authored by Nigel McNie's avatar Nigel McNie
Browse files

Removed testing files we don't need any more.

parent 0439ed93
<?php
define('INTERNAL', 1);
require_once(dirname(dirname(__FILE__)) . '/init.php');
safe_require('export', 'leap');
$userobj = new User();
$userobj->find_by_id(1);
$exporter = new PluginExportLeap($userobj, EXPORT_ALL_VIEWS, EXPORT_ALL_ARTEFACTS);
$exporter->export();
//header('Content-Type: text/xml');
header('Content-Disposition: inline; filename=leap.xml');
echo '<pre>';
echo hsc($exporter->get('xml'));
echo '</pre>';
?>
<?php
define('INTERNAL', 1);
define('PUBLIC', 1);
require_once(dirname(dirname(__FILE__)) . '/init.php');
require_once(dirname(dirname(__FILE__)) . '/import/lib.php');
$userid = 1;
// NOTE: artefact.file can't import files that aren't in dataroot, the export file has to be in dataroot too.
$filename = /*get_config('dataroot') .*/ 'nigeltest/leap2a.xml';
//$userobj = new User();
//$userobj->find_by_id($userid);
$importer = PluginImport::create_importer(null, (object)array(
'token' => '',
//'host' => '',
'usr' => $userid,
'queue' => (int)!(PluginImport::import_immediately_allowed()), // import allowed straight away? Then don't queue
'ready' => 0, // maybe 1?
'expirytime' => db_format_timestamp(time()+(60*60*24)),
'format' => 'leap',
'data' => array('filename' => $filename)
));
$importer->process();
?>
<?php
error_reporting(E_ALL);
define('INTERNAL', 1);
require_once(dirname(dirname(__FILE__)) . '/init.php');
$replacearray = array(
'<br>' => '<br />',
'&nbsp;' => '&#160;',
'&#160' => '&#160;',
);
db_replace($replacearray);
echo 'done';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment