This file contains 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
ip | tag_name | |
---|---|---|
18.27.197.252 | Apache Log4j RCE Attempt | |
23.129.64.131 | Apache Log4j RCE Attempt | |
23.129.64.141 | Apache Log4j RCE Attempt | |
23.129.64.146 | Apache Log4j RCE Attempt | |
23.129.64.148 | Apache Log4j RCE Attempt | |
45.12.134.108 | Apache Log4j RCE Attempt | |
45.155.205.233 | Apache Log4j RCE Attempt | |
46.166.139.111 | Apache Log4j RCE Attempt | |
46.182.21.248 | Apache Log4j RCE Attempt |
This file contains 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 Item extends AppModel | |
{ | |
public $recursive = -1; | |
public $actsAs = array('Containable'); | |
public $hasMany = array( | |
'Review' => array( | |
'ClassName' => 'Review', | |
'foreignKey' => 'item_id' | |
) |
This file contains 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 pear install --alldeps phpunit/PHPUnit | |
sudo pear install phpunit/PHPUnit_MockObject | |
sudo pear install phpunit/DBUnit |
This file contains 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 defined('_JEXEC') or die; | |
jimport('joomla.application.component.view'); | |
abstract class HelloWorldViewBase extends JView { | |
public function __construct($config = array()) { | |
parent::__construct($config); | |
// Using addTemplatePath will give this a high priority, so we push instead | |
array_push($this->_path['template'], JPATH_COMPONENT . '/views/base/tmpl'); |
This file contains 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 | |
class DonkeyController extends JController | |
{ | |
public function doshit() | |
{ | |
$model = $this->getModel(); | |
$model->setState('foo', 'bar'); | |
$model->foo = 'bar'; | |
$this->setRedirect('index.php?option=com_donkey&view=shit'); |
This file contains 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
+-- administrator // This is where the administrator application lives | |
¦ +-- cache | |
¦ +-- components // Components specific to administrator | |
¦ +-- help // Help files for administrator | |
¦ +-- includes | |
¦ +-- language // Administrator language files | |
¦ +-- manifests // Installation manifests | |
¦ +-- modules // Administrator modules | |
¦ +-- templates // Administrator templates | |
+-- cache |
This file contains 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 | |
foreach ($form->getFieldsets() as $group => $fieldset) { | |
foreach ($form->getFieldset($group) as $field) { | |
$form->removeField($field->fieldname); // This will remove only the fields outside <fields> elements | |
// $form->removeField($field->fieldname, $group); // This will remove only the fields inside the <fields> element | |
} | |
} | |
?> |
This file contains 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 ... extends JControllerForm | |
{ | |
public function save($key = null, $urlVar = null) | |
{ | |
$result = parent::save($key, $urlVar); | |
$model = $this->getModel(); | |
$state = $model->getState(); | |
if($result){ | |
$link = JRoute::_($this->getRedirectToItem().'&id='.$state->get('item.id'), false); | |
$this->setRedirect($link); |
This file contains 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
<script> | |
function destroyLessCache(pathToCss) { // e.g. '/css/' or '/stylesheets/' | |
if (!window.localStorage || !less || less.env !== 'development') { | |
// return; | |
} | |
var host = window.location.host; | |
var protocol = window.location.protocol; | |
var keyPrefix = protocol + '//' + host + pathToCss; | |
for (var key in window.localStorage) { | |
if (key.indexOf(keyPrefix) === 0) { |
This file contains 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 | |
class BaseController extends JControllerForm | |
{ | |
public function delete() | |
{ | |
// Do shit | |
$this->setRedirect(JRoute::_($this->getRedirectToList(), false)); | |
} | |
NewerOlder