!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/laravel/framework/src/Illuminate/Auth/Console/   drwxr-xr-x
Free 117.29 GB of 200.55 GB (58.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     MakeAuthCommand.php (3.15 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Auth\Console;

use 
Illuminate\Console\Command;
use 
Illuminate\Console\AppNamespaceDetectorTrait;

class 
MakeAuthCommand extends Command
{
    use 
AppNamespaceDetectorTrait;

    
/**
     * The name and signature of the console command.
     *
     * @var string
     */
    
protected $signature 'make:auth {--views : Only scaffold the authentication views}';

    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description 'Scaffold basic login and registration views and routes';

    
/**
     * The views that need to be exported.
     *
     * @var array
     */
    
protected $views = [
        
'auth/login.stub' => 'auth/login.blade.php',
        
'auth/register.stub' => 'auth/register.blade.php',
        
'auth/passwords/email.stub' => 'auth/passwords/email.blade.php',
        
'auth/passwords/reset.stub' => 'auth/passwords/reset.blade.php',
        
'auth/emails/password.stub' => 'auth/emails/password.blade.php',
        
'layouts/app.stub' => 'layouts/app.blade.php',
        
'home.stub' => 'home.blade.php',
        
'welcome.stub' => 'welcome.blade.php',
    ];

    
/**
     * Execute the console command.
     *
     * @return void
     */
    
public function fire()
    {
        
$this->createDirectories();

        
$this->exportViews();

        if (! 
$this->option('views')) {
            
$this->info('Installed HomeController.');

            
file_put_contents(
                
app_path('Http/Controllers/HomeController.php'),
                
$this->compileControllerStub()
            );

            
$this->info('Updated Routes File.');

            
file_put_contents(
                
app_path('Http/routes.php'),
                
file_get_contents(__DIR__.'/stubs/make/routes.stub'),
                
FILE_APPEND
            
);
        }

        
$this->comment('Authentication scaffolding generated successfully!');
    }

    
/**
     * Create the directories for the files.
     *
     * @return void
     */
    
protected function createDirectories()
    {
        if (! 
is_dir(base_path('resources/views/layouts'))) {
            
mkdir(base_path('resources/views/layouts'), 0755true);
        }

        if (! 
is_dir(base_path('resources/views/auth/passwords'))) {
            
mkdir(base_path('resources/views/auth/passwords'), 0755true);
        }

        if (! 
is_dir(base_path('resources/views/auth/emails'))) {
            
mkdir(base_path('resources/views/auth/emails'), 0755true);
        }
    }

    
/**
     * Export the authentication views.
     *
     * @return void
     */
    
protected function exportViews()
    {
        foreach (
$this->views as $key => $value) {
            
$path base_path('resources/views/'.$value);

            
$this->line('<info>Created View:</info> '.$path);

            
copy(__DIR__.'/stubs/make/views/'.$key$path);
        }
    }

    
/**
     * Compiles the HomeController stub.
     *
     * @return string
     */
    
protected function compileControllerStub()
    {
        return 
str_replace(
            
'{{namespace}}',
            
$this->getAppNamespace(),
            
file_get_contents(__DIR__.'/stubs/make/controllers/HomeController.stub')
        );
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0243 ]--