server ver

This commit is contained in:
2021-06-20 13:49:07 +00:00
parent 36a8c92dec
commit 8877c0bad0
975 changed files with 555 additions and 6596 deletions

0
app/Console/Commands/AddTags.php Normal file → Executable file
View File

0
app/Console/Commands/Inspire.php Normal file → Executable file
View File

0
app/Console/Commands/ReadException.php Normal file → Executable file
View File

0
app/Console/Kernel.php Normal file → Executable file
View File

0
app/Events/Event.php Normal file → Executable file
View File

0
app/Exceptions/Handler.php Normal file → Executable file
View File

0
app/Helpers/HumanReadable.php Normal file → Executable file
View File

0
app/Http/Controllers/CategoryController.php Normal file → Executable file
View File

0
app/Http/Controllers/CommentController.php Normal file → Executable file
View File

0
app/Http/Controllers/Controller.php Normal file → Executable file
View File

0
app/Http/Controllers/MessageController.php Normal file → Executable file
View File

0
app/Http/Controllers/ReportController.php Normal file → Executable file
View File

2
app/Http/Controllers/UserController.php Normal file → Executable file
View File

@@ -126,7 +126,7 @@ class UserController extends Controller
\Session::flash('info', 'Cannot register when logged in');
return redirect('/');
}
return view('apply');
return view('apply_open');
}
public function loggain()

6
app/Http/Controllers/VideoController.php Normal file → Executable file
View File

@@ -125,9 +125,9 @@ class VideoController extends Controller
return new JsonResponse(['error' => 'erroneous_file_encoding']);
}
$video->videotitle = $request->get('videotitle', null);
$video->interpret = $request->get('interpret', null);
$video->songtitle = $request->get('songtitle', null);
$video->imgsource = $request->get('imgsource', null);
$video->interpret = htmlspecialchars($request->get('interpret', null));
$video->songtitle = htmlspecialchars($request->get('songtitle', null));
$video->imgsource = htmlspecialchars($request->get('imgsource', null));
$video->user()->associate($user);
$video->category()->associate(Category::findOrFail($request->get('category')));
$video->hash = $hash;

0
app/Http/Controllers/aboutController.php Normal file → Executable file
View File

0
app/Http/Controllers/rulezController.php Normal file → Executable file
View File

0
app/Http/Controllers/tmp/.gitkeep Normal file → Executable file
View File

BIN
app/Http/Controllers/tmp/test.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 485 KiB

0
app/Http/Kernel.php Normal file → Executable file
View File

0
app/Http/Middleware/Authenticate.php Normal file → Executable file
View File

0
app/Http/Middleware/EncryptCookies.php Normal file → Executable file
View File

0
app/Http/Middleware/Jsonp.php Normal file → Executable file
View File

0
app/Http/Middleware/LogoutBanned.php Normal file → Executable file
View File

0
app/Http/Middleware/RedirectIfAuthenticated.php Normal file → Executable file
View File

0
app/Http/Middleware/Theme.php Normal file → Executable file
View File

0
app/Http/Middleware/VerifyCsrfToken.php Normal file → Executable file
View File

0
app/Http/Requests/Request.php Normal file → Executable file
View File

2
app/Http/routes.php Normal file → Executable file
View File

@@ -130,7 +130,7 @@ Route::group(["middleware" => "theme"], function() {
Route::get('upload', 'VideoController@create')->middleware('auth');
Route::get('categories', 'CategoryController@index')->middleware('auth');
Route::get('webm', function() { return view('webm'); })->middleware('auth');
Route::get('settings', function() { return view('settings'); })->middleware('auth');
Route::get('settings', function() { return 404; })->middleware('auth');
Route::get('matrix', function() { return view('matrix'); })->middleware('auth');
#Route::get('about', function() { return view('about'); })->middleware('auth');
Route::get('about', 'aboutController@index')->middleware('auth');

0
app/Jobs/Job.php Normal file → Executable file
View File

0
app/Listeners/.gitkeep Normal file → Executable file
View File

0
app/Models/About.php Normal file → Executable file
View File

0
app/Models/Banner.php Normal file → Executable file
View File

0
app/Models/Category.php Normal file → Executable file
View File

0
app/Models/Comment.php Normal file → Executable file
View File

0
app/Models/Donation.php Normal file → Executable file
View File

0
app/Models/Icon.php Normal file → Executable file
View File

0
app/Models/Message.php Normal file → Executable file
View File

0
app/Models/ModeratorLog.php Normal file → Executable file
View File

0
app/Models/Role.php Normal file → Executable file
View File

0
app/Models/Rulez.php Normal file → Executable file
View File

0
app/Models/User.php Normal file → Executable file
View File

0
app/Models/UserFavorite.php Normal file → Executable file
View File

0
app/Models/Video.php Normal file → Executable file
View File

0
app/Models/aboutController.php Normal file → Executable file
View File

0
app/Policies/.gitkeep Normal file → Executable file
View File

0
app/Providers/AppServiceProvider.php Normal file → Executable file
View File

0
app/Providers/AuthServiceProvider.php Normal file → Executable file
View File

0
app/Providers/BladeServiceProvider.php Normal file → Executable file
View File

0
app/Providers/EventServiceProvider.php Normal file → Executable file
View File

0
app/Providers/MarkdownServiceProvider.php Normal file → Executable file
View File

0
app/Providers/RouteServiceProvider.php Normal file → Executable file
View File

1
app/Services/Markdown.php Normal file → Executable file
View File

@@ -258,6 +258,7 @@ class Markdown extends \Parsedown {
protected function inlineUrl($Excerpt) {
$e = parent::inlineUrl($Excerpt);
if (is_null($e)) return;
$e['element']['attributes']['href'] = htmlspecialchars($e['element']['attributes']['href']);
if (static::isImage($e['element']['attributes']['href'])) {
$e['element']['name'] = 'img';
$e['element']['attributes']['src'] = $e['element']['attributes']['href'];