| Server IP : 127.0.1.1 / Your IP : 216.73.216.83 Web Server : Apache/2.4.58 (Ubuntu) System : Linux nepub 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/public_html/tools/ |
Upload File : |
<?php
/**
* @file tools/dbXMLtoSQL.php
*
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class dbXMLtoSQL
* @ingroup tools
*
* @brief CLI tool to output the SQL statements corresponding to an XML database schema.
*/
require(dirname(__FILE__) . '/bootstrap.inc.php');
import('lib.pkp.classes.cliTool.XmlToSqlTool');
/** Default XML file to parse if none is specified */
define('DATABASE_XML_FILE', 'dbscripts/xml/ojs_schema.xml');
class dbXMLtoSQL extends XmlToSqlTool {
/**
* Constructor.
* @param $argv array command-line arguments
* If specified, the first argument should be the file to parse
*/
function __construct($argv = array()) {
parent::__construct($argv);
}
}
$tool = new dbXMLtoSQL(isset($argv) ? $argv : array());
$tool->execute();