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
.babelrc Normal file → Executable file
View File

0
.gitattributes vendored Normal file → Executable file
View File

11
.gitignore vendored Normal file
View File

@@ -0,0 +1,11 @@
node_modules/
.env
vendor/
storage/
public/b/
public/thumbs/
public/old/
public/database/
public/asbach/
public/images/
resources/views/unused/

0
.phpstorm.meta.php Normal file → Executable file
View File

0
_ide_helper.php Normal file → Executable file
View File

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'];

0
artisan Normal file → Executable file
View File

0
bootstrap/app.php Normal file → Executable file
View File

0
bootstrap/autoload.php Normal file → Executable file
View File

0
bootstrap/cache/.gitignore vendored Normal file → Executable file
View File

0
composer.json Normal file → Executable file
View File

0
composer.lock generated Normal file → Executable file
View File

0
config/app.php Normal file → Executable file
View File

0
config/auth.php Normal file → Executable file
View File

0
config/broadcasting.php Normal file → Executable file
View File

0
config/cache.php Normal file → Executable file
View File

0
config/captcha.php Normal file → Executable file
View File

0
config/comments.php Normal file → Executable file
View File

0
config/compile.php Normal file → Executable file
View File

0
config/database.php Normal file → Executable file
View File

0
config/discord.php Normal file → Executable file
View File

0
config/filesystems.php Normal file → Executable file
View File

0
config/ide-helper.php Normal file → Executable file
View File

0
config/mail.php Normal file → Executable file
View File

0
config/queue.php Normal file → Executable file
View File

0
config/recaptcha.php Normal file → Executable file
View File

0
config/sentry.php Normal file → Executable file
View File

0
config/services.php Normal file → Executable file
View File

0
config/session.php Normal file → Executable file
View File

0
config/taggable.php Normal file → Executable file
View File

0
config/verify.php Normal file → Executable file
View File

0
config/view.php Normal file → Executable file
View File

0
database/.gitignore vendored Normal file → Executable file
View File

0
database/factories/ModelFactory.php Normal file → Executable file
View File

0
database/migrations/.gitkeep Normal file → Executable file
View File

0
database/migrations/2015_03_20_193906_verify_init.php Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

View File

View File

0
database/migrations/2016_09_22_092717_add_icons.php Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More