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 Follow Up Email * @version 1.0.2 * @revision 271 * @copyright Copyright (C) 2014 Mirasvit (http://mirasvit.com/) */ require_once 'abstract.php'; class Mirasvit_Shell_MailchimpConverter extends Mage_Shell_Abstract { public function run() { } public function getTemplate() { $template = ''; $mailchimp = Mage::app()->getRequest()->getParam('mailchimp'); $template = $mailchimp; $vars = array( '*|MC:SUBJECT|*' => '{{var subject}}', '*|ARCHIVE|*' => '{{var url_in_browser}}', '*|CURRENT_YEAR|*' => '{{var current_year}}', '*|UNSUB|*' => '{{var url_unsubscribe}}', '*|FACEBOOK:PROFILEURL|*' => '{{var facebook_url}}', '*|TWITTER:PROFILEURL|*' => '{{var twitter_url}}', '/*@editable*/ ' => '', 'mc:repeatable' => '', ); foreach ($vars as $old => $new) { $template = str_replace($old, $new, $template); } $constructions = array( '<!-- *|IFNOT:ARCHIVE_PAGE|* -->' => '', '<!-- *|END:IF|* -->' => '', 'mc:edit' => 'mcedit', ); foreach ($constructions as $old => $new) { $template = str_replace($old, $new, $template); } $dom = new DOMDocument(); $dom->loadHTML($template); $xpath = new DomXpath($dom); $items = $xpath->query('//*[@mcedit]'); foreach ($items as $mcedit) { $area = 'area.'.$mcedit->getAttribute('mcedit'); $mcedit->removeAttribute('mcedit'); $a = $dom->createComment('{{ivar '.$area.'}}'); $b = $dom->createComment('{{/ivar}}'); $mcedit->parentNode->insertBefore($a, $mcedit); $mcedit->parentNode->insertBefore($b); } $dom->formatOutput = true; $dom->preserveWhitespace = false; $html = $dom->saveHTML(); $html = str_replace('%7B', '{', $html); $html = str_replace('%7D', '}', $html); $html = str_replace('%20', ' ', $html); return $html; } public function _validate() { } } $shell = new Mirasvit_Shell_MailchimpConverter(); $shell->run(); function pr($arr) { echo '<pre>'; print_R($arr); echo '</pre>'; } ?> <form method="POST"> <textarea rows="30" cols="100" name="mailchimp"><?php echo Mage::app()->getRequest()->getParam('mailchimp') ?></textarea> <textarea rows="30" cols="100" name="template"><?php echo $shell->getTemplate() ?></textarea> <br> <input type="submit" value="Convert"> </form>