One Hat Cyber Team
Your IP :
216.73.216.14
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
backup
/
oldserver
/
2
/
bin
/
Edit File:
mnemo-import-text-note
#!/usr/bin/php <?php /** * This script imports plain text data into Mnemo notepads. * * The data is read from standard input, the notepad and user name passed as * parameters. * * Copyright 2005-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file LICENSE for license information (ASL). If you * did not receive this file, see http://www.horde.org/licenses/apache. * * @author Jan Schneider <jan@horde.org> */ if (file_exists(__DIR__ . '/../../mnemo/lib/Application.php')) { $baseDir = __DIR__ . '/../'; } else { require_once 'PEAR/Config.php'; $baseDir = PEAR_Config::singleton() ->get('horde_dir', null, 'pear.horde.org') . '/mnemo/'; } require_once $baseDir . 'lib/Application.php'; Horde_Registry::appInit('mnemo', array('cli' => true)); // Read command line parameters. if (count($argv) != 4) { $cli->message('Too many or too few parameters.', 'cli.error'); usage(); } $notepad = $argv[1]; $user = $argv[2]; $file = $argv[3]; // Read standard input. if (!file_exists($file)) { $cli>message("$file does not exist", 'cli.error'); usage(); } $data = file_get_contents($file); if (empty($data)) { $cli->message('No import data provided.', 'cli.error'); usage(); } $data = pathinfo($file, PATHINFO_FILENAME) . "\n\n" . $data; // Set user. $registry->setAuth($user, array()); // Import data. try { $result = $registry->notes->import($data, 'text/plain', $notepad); $cli->message('Imported successfully ' . count($result) . ' notes', 'cli.success'); } catch (Mnemo_Exception $e) { $cli->fatal($e->getMessage()); } function usage() { $GLOBALS['cli']->writeln('Usage: mnemo-import-text-note notepad user file'); exit; }
Simpan