This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update && sudo apt upgrade && sudo apt autoremove && sudo apt autoclean && sudo apt clean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function _russianpostcalc_api_communicate($request) | |
{ | |
$curl = curl_init(); | |
curl_setopt($curl, CURLOPT_URL, "http://russianpostcalc.ru/api_beta_077.php"); | |
curl_setopt($curl, CURLOPT_POST, true); | |
curl_setopt($curl, CURLOPT_POSTFIELDS, $request); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
$data = curl_exec($curl); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $POZVONIM_Post_Call); | |
curl_setopt($ch, CURLOPT_TIMEOUT, 0); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$client = new JApplicationWebClient(); | |
if ($client->mobile) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
attrib.exe -s -r -h -a C:\Windows\system32\drivers\etc\hosts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net.exe stop NVDisplay.ContainerLocalSystem && net.exe start NVDisplay.ContainerLocalSystem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$LastOrders = JBModelOrder::model()->getList(); | |
$allitem = array(); | |
foreach ($LastOrders as $Order) { | |
$order = JBModelOrder::model()->getById($Order->id); | |
$cartItems = $order->getItems(false); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Class JBCartElementHookJBAdvert | |
*/ | |
class JBCartElementHookAddcomment extends JBCartElementHook | |
{ | |
/** | |
* @param array $params | |
*/ | |
public function notify($params = array()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$orderModel = JBModelOrder::model(); | |
$orderz = $orderModel->getById($idcz); | |
$object = new stdClass(); | |
$object->id = $idcz; | |
$object->status = 'coupon_end'; | |
$result = JFactory::getDbo()->updateObject(ZOO_TABLE_JBZOO_ORDER, $object, 'id'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define('_JEXEC', 1); | |
define('JBZOO_APP_GROUP', 'jbuniversal'); | |
define('DS', DIRECTORY_SEPARATOR); | |
// include Joomla! | |
if (file_exists(dirname(__FILE__) . '/defines.php')) { | |
include_once dirname(__FILE__) . '/defines.php'; | |
} |