various changes, fixes to css etc
This commit is contained in:
@@ -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 404; })->middleware('auth');
|
||||
Route::get('settings', function() { return view('settings'); })->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');
|
||||
@@ -181,26 +181,4 @@ Route::group(["middleware" => "theme"], function() {
|
||||
##Category View
|
||||
Route::get('{shortname}', 'CategoryController@showVideo')->where('shortname', '[a-z][a-z0-9]+');
|
||||
Route::get('{shortname}/{id}', 'CategoryController@showVideo')->where(['shortname' => '[a-z][a-z0-9]+', 'id' => '[0-9]+']);
|
||||
|
||||
|
||||
Route::any('captcha-test', function() {
|
||||
if (request()->getMethod() == 'POST') {
|
||||
$rules = ['captcha' => 'required|captcha'];
|
||||
$validator = validator()->make(request()->all(), $rules);
|
||||
if ($validator->fails()) {
|
||||
echo '<p style="color: #ff0000;">Incorrect!</p>';
|
||||
} else {
|
||||
echo '<p style="color: #00ff30;">Matched :)</p>';
|
||||
}
|
||||
}
|
||||
|
||||
$form = '<form method="post" action="captcha-test">';
|
||||
$form .= '<input type="hidden" name="_token" value="' . csrf_token() . '">';
|
||||
$form .= '<p>' . captcha_img() . '</p>';
|
||||
$form .= '<p><input type="text" name="captcha"></p>';
|
||||
$form .= '<p><button type="submit" name="check">Check</button></p>';
|
||||
$form .= '</form>';
|
||||
return $form;
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user