🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-14 10:24:15 | PHP 8.1.34
📂
/ (Root)
/
home
/
therahul
/
web.janapremimavi.edu.np
/
wp-content
/
plugins
/
shopengine
/
core
/
export-import
📍 /home/therahul/web.janapremimavi.edu.np/wp-content/plugins/shopengine/core/export-import
🔄 Refresh
✏️
Editing: import.php
Writable
<?php namespace ShopEngine\Core\Export_Import; class Import { public function init() { add_action('import_start', [$this, 'rum_importer']); } public function rum_importer() { // phpcs:ignore WordPress.Security.NonceVerification.Missing -- This hook can access only admin and not possible nonce here if(empty($_POST['import_id'])) { return; } // phpcs:ignore WordPress.Security.NonceVerification.Missing -- This hook can access only admin and not possible nonce here $im_id = intval($_POST['import_id']); $file = get_attached_file($im_id); $dom = new \DOMDocument; $success = $dom->loadXML(file_get_contents($file)); if(!($success || isset($dom->doctype))) { return; } $xml = simplexml_import_dom($dom); unset($dom); if(!$xml) { return; } $options = $xml->xpath('/rss/channel/wp_options/wp_option'); foreach($options as $option) { $nm = (string)$option->name; $vl = (string)$option->val; update_option($nm, $vl); } } }
💾 Save Changes
❌ Cancel