7 | Your IP address or username has been banned from using the UTRS system.
8 | @if($expire!=="0000-00-00 00:00:00")
9 | The ban expires on {{$expire}}.
10 | @endif
11 | If you contact UTRS Admins about this ban, please mention the following ban ID: {{$id}}.
12 |
13 |
14 |
15 |
16 | @endsection
--------------------------------------------------------------------------------
/routes/console.php:
--------------------------------------------------------------------------------
1 | comment(Inspiring::quote());
18 | })->describe('Display an inspiring quote');
19 |
--------------------------------------------------------------------------------
/server.php:
--------------------------------------------------------------------------------
1 |
8 | */
9 |
10 | $uri = urldecode(
11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
12 | );
13 |
14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the
15 | // built-in PHP web server. This provides a convenient way to test a Laravel
16 | // application without having installed a "real" web server software here.
17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
18 | return false;
19 | }
20 |
21 | require_once __DIR__.'/public/index.php';
22 |
--------------------------------------------------------------------------------
/app/Http/Middleware/RedirectIfAuthenticated.php:
--------------------------------------------------------------------------------
1 | check()) {
21 | return redirect('/home');
22 | }
23 |
24 | return $next($request);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/resources/views/admin/verifyme.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('content')
3 |
4 |
5 |
6 |
7 | Your account has not been verified at this time. You will not be able to proceed until the system has verified your account. Verifications should take less than 5 minutes to send to your Wikipedia email. If you do not recieve one, make sure you have an email verified your preferences on Wikipedia, and login again.
8 |
7 | It has been detected that you or someone else is trying to spam our system with appeals. Please wait until your previous appeal is closed, or if it's already closed, please try again later.
8 |
9 | If you are applying for an unblock of an IP address, this could mean that an appeal has already been submitted for your IP. In this case, please try again later or contact us to help clarify the issue.
10 |
11 |
12 |
13 |
14 | @endsection
--------------------------------------------------------------------------------
/resources/lang/en/passwords.php:
--------------------------------------------------------------------------------
1 | 'Your password has been reset!',
17 | 'sent' => 'We have e-mailed your password reset link!',
18 | 'token' => 'This password reset token is invalid.',
19 | 'user' => "We can't find a user with that e-mail address.",
20 |
21 | ];
22 |
--------------------------------------------------------------------------------
/resources/views/admin/newtemplate.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('content')
3 |
4 |
5 |
6 |
7 |
8 | New template
9 |
10 |
11 | {{ Form::open(array('url' => 'admin/templates/create')) }}
12 | {{Form::token()}}
13 |
14 | {{Form::label('name', 'What is the name of the template')}}
15 | {{Form::text('name')}}
11 | {{ Form::open(array('url' => 'admin/templates/'.$template->id)) }}
12 | {{Form::token()}}
13 |
14 | {{Form::label('name', 'What is the name of the template')}}
15 | {{Form::text('name',$template->name)}}
13 | {{ __('A fresh verification link has been sent to your email address.') }}
14 |
15 | @endif
16 |
17 | {{ __('Before proceeding, please check your email for a verification link.') }}
18 | {{ __('If you did not receive the email') }},
19 |
23 |
20 | {{Form::label('wiki', 'Which Wiki are you blocked on?')}}
21 | {{Form::select('wiki', array('enwiki' => 'English Wikipedia','ptwiki' => 'Portuguese Wikipedia', 'global' => 'Global Locks/Blocks'), $appeal->wiki)}}
22 | {{Form::label('appealfor', 'What is your Username?')}}
23 | {{Form::text('appealfor',$appeal->appealfor)}}
24 |
25 | {{Form::label('blocktype', 'Is your account directly blocked?')}}
26 | @if($appeal->blocktype===0)
27 | {{Form::radio('blocktype', 1)}} Yes
28 | {{Form::radio('blocktype', 0,true)}} No, I don't have an account.
29 | {{Form::radio('blocktype', 2)}} No, the underlying IP address is blocked
30 | @elseif($appeal->blocktype===1)
31 | {{Form::radio('blocktype', 1,true)}} Yes
32 | {{Form::radio('blocktype', 0)}} No, I don't have an account.
33 | {{Form::radio('blocktype', 2)}} No, the underlying IP address is blocked
34 | @elseif($appeal->blocktype===2)
35 | {{Form::radio('blocktype', 1)}} Yes
36 | {{Form::radio('blocktype', 0)}} No, I don't have an account.
37 | {{Form::radio('blocktype', 2,true)}} No, the underlying IP address is blocked
38 | @endif
39 |
40 | {{Form::label('hiddenip', 'If you selected "No, the underlying IP address is blocked" above, what is the IP?')}}
41 | {{Form::text('hiddenip',$appeal->appealfor)}}
42 | {{Form::hidden('hash', $hash)}}
43 |
44 |
45 | {{ Form::close() }}
46 |
{{$userlist[Auth::id()]}} English Wikipedia Administrator
Template hidden
37 |
38 |
39 |
40 |
41 | @endforeach
42 |
43 |
44 |
45 |
46 |
47 |
48 | @endsection
--------------------------------------------------------------------------------
/config/filesystems.php:
--------------------------------------------------------------------------------
1 | env('FILESYSTEM_DRIVER', 'local'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Default Cloud Filesystem Disk
21 | |--------------------------------------------------------------------------
22 | |
23 | | Many applications store files both locally and in the cloud. For this
24 | | reason, you may specify a default "cloud" driver here. This driver
25 | | will be bound as the Cloud disk implementation in the container.
26 | |
27 | */
28 |
29 | 'cloud' => env('FILESYSTEM_CLOUD', 's3'),
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Filesystem Disks
34 | |--------------------------------------------------------------------------
35 | |
36 | | Here you may configure as many filesystem "disks" as you wish, and you
37 | | may even configure multiple disks of the same driver. Defaults have
38 | | been setup for each driver as an example of the required options.
39 | |
40 | | Supported Drivers: "local", "ftp", "sftp", "s3", "rackspace"
41 | |
42 | */
43 |
44 | 'disks' => [
45 |
46 | 'local' => [
47 | 'driver' => 'local',
48 | 'root' => storage_path('app'),
49 | ],
50 |
51 | 'public' => [
52 | 'driver' => 'local',
53 | 'root' => storage_path('app/public'),
54 | 'url' => env('APP_URL').'/storage',
55 | 'visibility' => 'public',
56 | ],
57 |
58 | 's3' => [
59 | 'driver' => 's3',
60 | 'key' => env('AWS_ACCESS_KEY_ID'),
61 | 'secret' => env('AWS_SECRET_ACCESS_KEY'),
62 | 'region' => env('AWS_DEFAULT_REGION'),
63 | 'bucket' => env('AWS_BUCKET'),
64 | 'url' => env('AWS_URL'),
65 | ],
66 |
67 | ],
68 |
69 | ];
70 |
--------------------------------------------------------------------------------
/resources/views/appeals/makeappeal/ip.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('content')
3 |
4 |
5 |
6 |
7 | On the next page, you will be issued a Appeal Key. Keep it in a safe place. If you forget it, you WILL NOT able to recover it. DO NOT SHARE this key with anyone.
8 |
9 |
10 | After filing this appeal, you will get an appeal key. For security reasons, we do not send email updates for IP blocks. You will have to check back here for updates.
11 |
12 | An administrator will look at your request in due time. Depending on which language and site you are appealing from, appeal times may vary excessively.
13 |
14 | Please note, any text you input for your appeal you agree to release under a public domain licence so that it can be copied over to Wikipedia if needed. If you do not agree, do not file an appeal.
15 |
16 | If you have any questions, you can contact us. Please note: We will not expidite, approve, deny, or edit your appeal. It is for information only.
17 |
69 | @endsection
70 |
--------------------------------------------------------------------------------
/config/auth.php:
--------------------------------------------------------------------------------
1 | [
17 | 'guard' => 'web',
18 | 'passwords' => 'users',
19 | ],
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | Authentication Guards
24 | |--------------------------------------------------------------------------
25 | |
26 | | Next, you may define every authentication guard for your application.
27 | | Of course, a great default configuration has been defined for you
28 | | here which uses session storage and the Eloquent user provider.
29 | |
30 | | All authentication drivers have a user provider. This defines how the
31 | | users are actually retrieved out of your database or other storage
32 | | mechanisms used by this application to persist your user's data.
33 | |
34 | | Supported: "session", "token"
35 | |
36 | */
37 |
38 | 'guards' => [
39 | 'web' => [
40 | 'driver' => 'session',
41 | 'provider' => 'users',
42 | ],
43 |
44 | 'api' => [
45 | 'driver' => 'token',
46 | 'provider' => 'users',
47 | ],
48 | ],
49 |
50 | /*
51 | |--------------------------------------------------------------------------
52 | | User Providers
53 | |--------------------------------------------------------------------------
54 | |
55 | | All authentication drivers have a user provider. This defines how the
56 | | users are actually retrieved out of your database or other storage
57 | | mechanisms used by this application to persist your user's data.
58 | |
59 | | If you have multiple user tables or models you may configure multiple
60 | | sources which represent each model / table. These sources may then
61 | | be assigned to any extra authentication guards you have defined.
62 | |
63 | | Supported: "database", "eloquent"
64 | |
65 | */
66 |
67 | 'providers' => [
68 | 'users' => [
69 | 'driver' => 'eloquent',
70 | 'model' => App\User::class,
71 | ],
72 |
73 | // 'users' => [
74 | // 'driver' => 'database',
75 | // 'table' => 'users',
76 | // ],
77 | ],
78 |
79 | /*
80 | |--------------------------------------------------------------------------
81 | | Resetting Passwords
82 | |--------------------------------------------------------------------------
83 | |
84 | | You may specify multiple password reset configurations if you have more
85 | | than one user table or model in the application and you want to have
86 | | separate password reset settings based on the specific user types.
87 | |
88 | | The expire time is the number of minutes that the reset token should be
89 | | considered valid. This security feature keeps tokens short-lived so
90 | | they have less time to be guessed. You may change this as needed.
91 | |
92 | */
93 |
94 | 'passwords' => [
95 | 'users' => [
96 | 'provider' => 'users',
97 | 'table' => 'password_resets',
98 | 'expire' => 60,
99 | ],
100 | ],
101 |
102 | ];
103 |
--------------------------------------------------------------------------------
/resources/views/appeals/makeappeal/account.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('content')
3 |
4 |
5 |
6 |
7 | On the next page, you will be issued a Appeal Key. Keep it in a safe place. If you forget it, you are able to recover it, but only if your Wikimedia Account has a valid email address. DO NOT SHARE this key with anyone.
8 |
9 |
10 | After filing this appeal, you will get an appeal key. Update emails will be sent via the Wikimedia interface. If you do not have an email associated with your Wikimedia account, you will have to check back here for updates.
11 |
12 | An administrator will look at your request in due time. Depending on which language and site you are appealing from, appeal times may vary excessively.
13 |
14 | Please note, any text you input for your appeal you agree to release under a public domain licence so that it can be copied over to Wikipedia if needed. If you do not agree, do not file an appeal.
15 |
16 | If you have any questions, you can contact us. Please note: We will not expidite, approve, deny, or edit your appeal. It is for information only.
17 |
36 | {{Form::label('wiki', 'Which Wiki are you blocked on?')}}
37 | {{Form::select('wiki', array('enwiki' => 'English Wikipedia','ptwiki' => 'Portuguese Wikipedia', 'global' => 'Global Locks/Blocks'), 'enwiki')}}
38 | {{Form::label('appealfor', 'What is your Username?')}}
39 | {{Form::text('appealfor')}}
40 |
41 | {{Form::label('blocktype', 'Is your account directly blocked?')}}
42 | {{Form::radio('blocktype', 1)}} Yes
43 | {{Form::radio('blocktype', 2)}} No, the underlying IP address is blocked
44 |
45 |
Block appeal information
46 |
47 |
48 | Please note that your answer to the following question does not guarentee that your appeal will be private. It will be reviewed by select users and a determination will be made about if the appeal contains private data and needs to be hidden from public view. Any information you put in this appeal may be posted publicly.
49 |
50 | {{Form::label('privacyreview', 'Does your appeal contain private information?')}}
51 | {{Form::radio('privacyreview', 0)}} No
52 | {{Form::radio('privacyreview', 1)}} No, but I prefer my appeal be private
53 | {{Form::radio('privacyreview', 2)}} Yes, my appeal contains private data
54 |
55 |
56 | There is a 4,000 word maximum in this textbox. If you go over it, you will be prevented from filing an appeal.
57 |
58 | {{Form::label('blocktype', 'Why should you be unblocked?')}}
59 | {{Form::textarea('appealtext')}}
60 |
61 |
62 | {{ Form::close() }}
63 |
5 | IMPORTANT MESSAGE
6 | UTRS is in the process of moving over to UTRS 2.0 of the software. We needed to do this because several users were unable to file proper appeals due to IPv6 IP addresses not being accepted by our severs. Therefore, we made the decision to move over to a rudimentary beta software instead to allow everyone to appeal properly.
7 | In doing this, please understand that there will be bugs and issues. We will try our best to keep up with those issues. You can get assistance at the UTRS talkpage or by placing {!! "{{tl|UTRS help me}}" !!} on your talkpage.
8 | Note: During this time, no emails will be sent out for appeals except for blocks that are not found for accounts. That means you need to keep your appeal secret key on hand at all times (DON'T SHARE IT) and check back regularly.
9 | We thank you for your patience.
10 | UTRS Development Team
11 |
12 |
13 |
14 |
15 |
16 |
17 |
Blocked user
18 |
19 |
If you have a user account
20 |
on Wikipedia and are blocked, please select the button below
21 | to start your appeal.
to comment on, process or assist with appeals,
39 | please select the button below. Please note that only user accounts
40 | over 500 edits are allowed to participate in this form.
You are currently reading an appeal made in UTRS 1.8. Backwards compatability is availible for viewing only. Taking action on legacy appeals is restricted. If you feel this is in error, please file a request with the developers.
31 |
32 |
33 |
34 |
35 | Appeal content
36 |
37 |
38 |
39 |
40 | Why should you be unblocked?
41 |
{{$info['appealText']}}
42 | What articles do you intend to edit?
43 |
{{$info['intendedEdits']}}
44 | Why do you think a block is affecting you?
45 |
{{$info['blockReason']}}
46 | Anything else we should consider?
47 |
{{$info['otherInfo']}}
48 |
49 |
50 |
This is a legacy appeal. The success of this appeal is unknown.
51 |
52 |
53 |
54 |
This is a legacy appeal. This appeal is automatically considered private.
55 |
You are currently reading an appeal made in UTRS 1.8. Backwards compatability is availible for viewing only. Commenting on legacy appeals is restricted. If you feel this is in error, please file a request with the developers.
9 |
10 | ## About Laravel
11 |
12 | Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
13 |
14 | - [Simple, fast routing engine](https://laravel.com/docs/routing).
15 | - [Powerful dependency injection container](https://laravel.com/docs/container).
16 | - Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
17 | - Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
18 | - Database agnostic [schema migrations](https://laravel.com/docs/migrations).
19 | - [Robust background job processing](https://laravel.com/docs/queues).
20 | - [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
21 |
22 | Laravel is accessible, powerful, and provides tools required for large, robust applications.
23 |
24 | ## Learning Laravel
25 |
26 | Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
27 |
28 | If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 1500 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
29 |
30 | ## Laravel Sponsors
31 |
32 | We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell).
33 |
34 | - **[Vehikl](https://vehikl.com/)**
35 | - **[Tighten Co.](https://tighten.co)**
36 | - **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
37 | - **[64 Robots](https://64robots.com)**
38 | - **[Cubet Techno Labs](https://cubettech.com)**
39 | - **[Cyber-Duck](https://cyber-duck.co.uk)**
40 | - **[British Software Development](https://www.britishsoftware.co)**
41 | - **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
42 | - **[DevSquad](https://devsquad.com)**
43 | - [UserInsights](https://userinsights.com)
44 | - [Fragrantica](https://www.fragrantica.com)
45 | - [SOFTonSOFA](https://softonsofa.com/)
46 | - [User10](https://user10.com)
47 | - [Soumettre.fr](https://soumettre.fr/)
48 | - [CodeBrisk](https://codebrisk.com)
49 | - [1Forge](https://1forge.com)
50 | - [TECPRESSO](https://tecpresso.co.jp/)
51 | - [Runtime Converter](http://runtimeconverter.com/)
52 | - [WebL'Agence](https://weblagence.com/)
53 | - [Invoice Ninja](https://www.invoiceninja.com)
54 | - [iMi digital](https://www.imi-digital.de/)
55 | - [Earthlink](https://www.earthlink.ro/)
56 | - [Steadfast Collective](https://steadfastcollective.com/)
57 | - [We Are The Robots Inc.](https://watr.mx/)
58 | - [Understand.io](https://www.understand.io/)
59 | - [Abdel Elrafa](https://abdelelrafa.com)
60 | - [Hyper Host](https://hyper.host)
61 |
62 | ## Contributing
63 |
64 | Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
65 |
66 | ## Security Vulnerabilities
67 |
68 | If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
69 |
70 | ## License
71 |
72 | The Laravel framework is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).
73 |
--------------------------------------------------------------------------------
/resources/views/appeals/appeallist.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('content')
3 |
4 | IMPORTANT MESSAGE
5 | UTRS is in the process of moving over to UTRS 2.0 of the software. We needed to do this because several users were unable to file proper appeals due to IPv6 IP addresses not being accepted by our severs. Therefore, we made the decision to move over to a rudimentary beta software instead to allow everyone to appeal properly.
6 |
7 | Please note:
8 |
9 |
In doing this, please understand that there will be bugs and issues. We will try our best to keep up with those issues. You can get assistance at [[WT:UTRS|the UTRS talkpage]] (preferably) or by placing {!! "{{tl|UTRS help me}}" !!} on your talkpage.
10 |
New features are not being considered at this time. Though your idea may have already been thought of and be in development.
11 |
Administrators will need to create a new login to use UTRS 2.0. The only thing that needs to match is your Wikipedia username. You should receive a confirmation email to verify your account within 5 minutes. At this time, there is no plans for reintegrating OAuth for login (for multiple reasons).
12 |
Temporary tool administrator status can be requested on [[WT:UTRS]], and will be granted liberally at this time to help create templates from the [https://utrs.wmflabs.org/tempMgmt.php old version]. All bans, user management, and other tool administration functions are only available via the database or automated scripts already running on the server at this time.
13 |
More information will be available in the days to come about the features of UTRS.
14 |
15 |
16 | We appreciate your patience in advance,
17 | UTRS Development Team
18 |
19 | @if($tooladmin)
20 |
21 |
Admin tools
22 |
23 |
24 | Managing templates is the only functional option at this time.
25 |
85 |
86 | @endsection
87 |
--------------------------------------------------------------------------------
/config/database.php:
--------------------------------------------------------------------------------
1 | env('DB_CONNECTION', 'mysql'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Database Connections
21 | |--------------------------------------------------------------------------
22 | |
23 | | Here are each of the database connections setup for your application.
24 | | Of course, examples of configuring each database platform that is
25 | | supported by Laravel is shown below to make development simple.
26 | |
27 | |
28 | | All database work in Laravel is done through the PHP PDO facilities
29 | | so make sure you have the driver for your particular database of
30 | | choice installed on your machine before you begin development.
31 | |
32 | */
33 |
34 | 'connections' => [
35 |
36 | 'sqlite' => [
37 | 'driver' => 'sqlite',
38 | 'database' => env('DB_DATABASE', database_path('database.sqlite')),
39 | 'prefix' => '',
40 | 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
41 | ],
42 |
43 | 'mysql' => [
44 | 'driver' => 'mysql',
45 | 'host' => env('DB_HOST', '127.0.0.1'),
46 | 'port' => env('DB_PORT', '3306'),
47 | 'database' => env('DB_DATABASE', 'forge'),
48 | 'username' => env('DB_USERNAME', 'forge'),
49 | 'password' => env('DB_PASSWORD', ''),
50 | 'unix_socket' => env('DB_SOCKET', ''),
51 | 'charset' => 'utf8mb4',
52 | 'collation' => 'utf8mb4_unicode_ci',
53 | 'prefix' => '',
54 | 'prefix_indexes' => true,
55 | 'strict' => true,
56 | 'engine' => null,
57 | ],
58 |
59 | 'pgsql' => [
60 | 'driver' => 'pgsql',
61 | 'host' => env('DB_HOST', '127.0.0.1'),
62 | 'port' => env('DB_PORT', '5432'),
63 | 'database' => env('DB_DATABASE', 'forge'),
64 | 'username' => env('DB_USERNAME', 'forge'),
65 | 'password' => env('DB_PASSWORD', ''),
66 | 'charset' => 'utf8',
67 | 'prefix' => '',
68 | 'prefix_indexes' => true,
69 | 'schema' => 'public',
70 | 'sslmode' => 'prefer',
71 | ],
72 |
73 | 'sqlsrv' => [
74 | 'driver' => 'sqlsrv',
75 | 'host' => env('DB_HOST', 'localhost'),
76 | 'port' => env('DB_PORT', '1433'),
77 | 'database' => env('DB_DATABASE', 'forge'),
78 | 'username' => env('DB_USERNAME', 'forge'),
79 | 'password' => env('DB_PASSWORD', ''),
80 | 'charset' => 'utf8',
81 | 'prefix' => '',
82 | 'prefix_indexes' => true,
83 | ],
84 |
85 | ],
86 |
87 | /*
88 | |--------------------------------------------------------------------------
89 | | Migration Repository Table
90 | |--------------------------------------------------------------------------
91 | |
92 | | This table keeps track of all the migrations that have already run for
93 | | your application. Using this information, we can determine which of
94 | | the migrations on disk haven't actually been run in the database.
95 | |
96 | */
97 |
98 | 'migrations' => 'migrations',
99 |
100 | /*
101 | |--------------------------------------------------------------------------
102 | | Redis Databases
103 | |--------------------------------------------------------------------------
104 | |
105 | | Redis is an open source, fast, and advanced key-value store that also
106 | | provides a richer body of commands than a typical key-value system
107 | | such as APC or Memcached. Laravel makes it easy to dig right in.
108 | |
109 | */
110 |
111 | 'redis' => [
112 |
113 | 'client' => 'predis',
114 |
115 | 'default' => [
116 | 'host' => env('REDIS_HOST', '127.0.0.1'),
117 | 'password' => env('REDIS_PASSWORD', null),
118 | 'port' => env('REDIS_PORT', 6379),
119 | 'database' => env('REDIS_DB', 0),
120 | ],
121 |
122 | 'cache' => [
123 | 'host' => env('REDIS_HOST', '127.0.0.1'),
124 | 'password' => env('REDIS_PASSWORD', null),
125 | 'port' => env('REDIS_PORT', 6379),
126 | 'database' => env('REDIS_CACHE_DB', 1),
127 | ],
128 |
129 | ],
130 |
131 | ];
132 |
--------------------------------------------------------------------------------
/config/mail.php:
--------------------------------------------------------------------------------
1 | env('MAIL_DRIVER', 'smtp'),
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | SMTP Host Address
24 | |--------------------------------------------------------------------------
25 | |
26 | | Here you may provide the host address of the SMTP server used by your
27 | | applications. A default option is provided that is compatible with
28 | | the Mailgun mail service which will provide reliable deliveries.
29 | |
30 | */
31 |
32 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
33 |
34 | /*
35 | |--------------------------------------------------------------------------
36 | | SMTP Host Port
37 | |--------------------------------------------------------------------------
38 | |
39 | | This is the SMTP port used by your application to deliver e-mails to
40 | | users of the application. Like the host we have set this value to
41 | | stay compatible with the Mailgun e-mail application by default.
42 | |
43 | */
44 |
45 | 'port' => env('MAIL_PORT', 587),
46 |
47 | /*
48 | |--------------------------------------------------------------------------
49 | | Global "From" Address
50 | |--------------------------------------------------------------------------
51 | |
52 | | You may wish for all e-mails sent by your application to be sent from
53 | | the same address. Here, you may specify a name and address that is
54 | | used globally for all e-mails that are sent by your application.
55 | |
56 | */
57 |
58 | 'from' => [
59 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
60 | 'name' => env('MAIL_FROM_NAME', 'Example'),
61 | ],
62 |
63 | /*
64 | |--------------------------------------------------------------------------
65 | | E-Mail Encryption Protocol
66 | |--------------------------------------------------------------------------
67 | |
68 | | Here you may specify the encryption protocol that should be used when
69 | | the application send e-mail messages. A sensible default using the
70 | | transport layer security protocol should provide great security.
71 | |
72 | */
73 |
74 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
75 |
76 | /*
77 | |--------------------------------------------------------------------------
78 | | SMTP Server Username
79 | |--------------------------------------------------------------------------
80 | |
81 | | If your SMTP server requires a username for authentication, you should
82 | | set it here. This will get used to authenticate with your server on
83 | | connection. You may also set the "password" value below this one.
84 | |
85 | */
86 |
87 | 'username' => env('MAIL_USERNAME'),
88 |
89 | 'password' => env('MAIL_PASSWORD'),
90 |
91 | /*
92 | |--------------------------------------------------------------------------
93 | | Sendmail System Path
94 | |--------------------------------------------------------------------------
95 | |
96 | | When using the "sendmail" driver to send e-mails, we will need to know
97 | | the path to where Sendmail lives on this server. A default path has
98 | | been provided here, which will work well on most of your systems.
99 | |
100 | */
101 |
102 | 'sendmail' => '/usr/sbin/sendmail -bs',
103 |
104 | /*
105 | |--------------------------------------------------------------------------
106 | | Markdown Mail Settings
107 | |--------------------------------------------------------------------------
108 | |
109 | | If you are using Markdown based email rendering, you may configure your
110 | | theme and component paths here, allowing you to customize the design
111 | | of the emails. Or, you may simply stick with the Laravel defaults!
112 | |
113 | */
114 |
115 | 'markdown' => [
116 | 'theme' => 'default',
117 |
118 | 'paths' => [
119 | resource_path('views/vendor/mail'),
120 | ],
121 | ],
122 |
123 | /*
124 | |--------------------------------------------------------------------------
125 | | Log Channel
126 | |--------------------------------------------------------------------------
127 | |
128 | | If you are using the "log" driver, you may specify the logging channel
129 | | if you prefer to keep mail messages separate from other log entries
130 | | for simpler reading. Otherwise, the default channel will be used.
131 | |
132 | */
133 |
134 | 'log_channel' => env('MAIL_LOG_CHANNEL'),
135 |
136 | ];
137 |
--------------------------------------------------------------------------------
/public/svg/503.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/Permission.php:
--------------------------------------------------------------------------------
1 | where('wiki','=','*')->get()->first();
18 | return $specific;
19 | }
20 | else {
21 | $specific = Permission::where('userid','=',$id)->where('wiki','rlike','\\*|'.$wiki)->get()->first();
22 | return $specific;
23 | }
24 | abort(500,'Permissions Failure');
25 | }
26 | public static function checkSecurity($id, $level,$wiki) {
27 | if(is_null($id)) {
28 | abort(403,'No logged in user');
29 | }
30 | if ($wiki=="*") {
31 | $specific = Permission::where('userid','=',$id)->where('wiki','=','*')->get()->first();
32 | }
33 | else {
34 | $specific = Permission::where('userid','=',$id)->where('wiki','rlike','\\*|'.$wiki)->get()->first();
35 | }
36 | if ($level == "OVERSIGHT") {
37 | if ($specific['oversight']==1) {return True;}
38 | else {return False;}
39 | }
40 | if ($level == "CHECKUSER") {
41 | if ($specific['checkuser']==1) {return True;}
42 | else {return False;}
43 | }
44 | if ($level == "STEWARD") {
45 | if ($specific['steward']==1) {return True;}
46 | else {return False;}
47 | }
48 | if ($level == "STAFF") {
49 | if ($specific['staff']==1) {return True;}
50 | else {return False;}
51 | }
52 | if ($level == "DEVELOPER") {
53 | if ($specific['developer']==1) {return True;}
54 | else {return False;}
55 | }
56 | if ($level == "TOOLADMIN") {
57 | if ($specific['tooladmin']==1) {return True;}
58 | else {return False;}
59 | }
60 | if ($level == "PRIVACY") {
61 | if ($specific['privacy']==1) {return True;}
62 | else {return False;}
63 | }
64 | if ($level == "ADMIN") {
65 | if ($specific['admin']==1) {return True;}
66 | else {return False;}
67 | }
68 | if ($level == "USER") {
69 | if ($specific['user']==1) {return True;}
70 | else {return False;}
71 | }
72 | }
73 | public static function checkCheckuser($id,$wiki) {
74 | if(Permission::checkSecurity($id, "CHECKUSER",$wiki)) {
75 | return True;
76 | }
77 | if(Permission::checkSecurity($id, "STEWARD","*")) {
78 | return True;
79 | }
80 | if(Permission::checkSecurity($id, "STAFF","*")) {
81 | return True;
82 | }
83 | if(Permission::checkSecurity($id, "DEVELOPER","*")) {
84 | return True;
85 | }
86 | return False;
87 | }
88 | public static function checkOversight($id,$wiki) {
89 | if(Permission::checkSecurity($id, "OVERSIGHT",$wiki)) {
90 | return True;
91 | }
92 | if(Permission::checkSecurity($id, "STEWARD","*")) {
93 | return True;
94 | }
95 | if(Permission::checkSecurity($id, "STAFF","*")) {
96 | return True;
97 | }
98 | if(Permission::checkSecurity($id, "DEVELOPER","*")) {
99 | return True;
100 | }
101 | return False;
102 | }
103 | public static function checkPrivacy($id) {
104 | if(Permission::checkSecurity($id, "DEVELOPER","*")) {
105 | return True;
106 | }
107 | if(Permission::checkSecurity($id, "STEWARD","*")) {
108 | return True;
109 | }
110 | if(Permission::checkSecurity($id, "STAFF","*")) {
111 | return True;
112 | }
113 | if(Permission::checkSecurity($id, "PRIVACY","*")) {
114 | return True;
115 | }
116 | return False;
117 | }
118 | public static function checkAdmin($id,$wiki) {
119 | if(Permission::checkSecurity($id, "ADMIN",$wiki)) {
120 | return True;
121 | }
122 | if(Permission::checkSecurity($id, "DEVELOPER","*")) {
123 | return True;
124 | }
125 | if(Permission::checkSecurity($id, "STEWARD","*")) {
126 | return True;
127 | }
128 | if(Permission::checkSecurity($id, "STAFF","*")) {
129 | return True;
130 | }
131 | if(Permission::checkSecurity($id, "PRIVACY","*")) {
132 | return True;
133 | }
134 | return False;
135 | }
136 | public static function checkToolAdmin($id,$wiki) {
137 | if(Permission::checkSecurity($id, "TOOLADMIN",$wiki)) {
138 | return True;
139 | }
140 | if(Permission::checkSecurity($id, "DEVELOPER","*")) {
141 | return True;
142 | }
143 | if(Permission::checkSecurity($id, "STEWARD","*")) {
144 | return True;
145 | }
146 | if(Permission::checkSecurity($id, "STAFF","*")) {
147 | return True;
148 | }
149 | if(Permission::checkSecurity($id, "PRIVACY","*")) {
150 | return True;
151 | }
152 | if(Permission::checkSecurity($id, "OVERSIGHT",$wiki)) {
153 | return True;
154 | }
155 | if(Permission::checkSecurity($id, "CHECKUSER",$wiki)) {
156 | return True;
157 | }
158 | return False;
159 | }
160 | }
161 |
--------------------------------------------------------------------------------
/public/svg/403.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/Http/Controllers/AdminController.php:
--------------------------------------------------------------------------------
1 | wikis);
25 | foreach($wikilist as $wiki) {
26 | if (Permission::checkToolAdmin(Auth::id(),$wiki)==True) {
27 | $permission=True;
28 | }
29 | }
30 | if (!$permission) {
31 | abort(403);
32 | }
33 | $tableheaders = ['ID','Username','Verified','Wikis'];
34 | $rowcontents = [];
35 | foreach ($allusers as $user) {
36 | $idbutton = '';
37 | if ($user->verified) {$verified = "Yes";}
38 | else {$verified="No";}
39 | $rowcontents[$user->id] = [$idbutton,$user->username,$verified,$user->wikis];
40 | }
41 | return view ('admin.tables', ['title'=>'All Users','tableheaders'=>$tableheaders, 'rowcontents'=>$rowcontents]);
42 | }
43 | public function listbans() {
44 | $allbans=Ban::all();
45 | $currentuser = User::findOrFail(Auth::id());
46 | $permission=False;
47 | $wikilist = explode(",",$currentuser->wikis);
48 | foreach($wikilist as $wiki) {
49 | if (Permission::checkToolAdmin(Auth::id(),$wiki)==True) {
50 | $permission=True;
51 | }
52 | }
53 | if (!$permission) {
54 | abort(403);
55 | }
56 | $tableheaders = ['ID','Target','Expires','Reason'];
57 | $rowcontents = [];
58 | foreach ($allbans as $ban) {
59 | $idbutton = '';
60 | $rowcontents[$ban->id] = [$idbutton,$ban->target,$ban->expiry,$ban->reason];
61 | }
62 | return view ('admin.tables', ['title'=>'All Bans','tableheaders'=>$tableheaders, 'rowcontents'=>$rowcontents]);
63 | }
64 | public function listsitenotices() {
65 | $allsitenotice=Sitenotice::all();
66 | $currentuser = User::findOrFail(Auth::id());
67 | $permission=False;
68 | $wikilist = explode(",",$currentuser->wikis);
69 | foreach($wikilist as $wiki) {
70 | if (Permission::checkToolAdmin(Auth::id(),$wiki)==True) {
71 | $permission=True;
72 | }
73 | }
74 | if (!$permission) {
75 | abort(403);
76 | }
77 | $tableheaders = ['ID','Message'];
78 | $rowcontents = [];
79 | foreach ($allsitenotice as $sitenotice) {
80 | $idbutton = '';
81 | $rowcontents[$ban->id] = [$idbutton,$sitenotice->message];
82 | }
83 | return view ('admin.tables', ['title'=>'All Sitenotices','tableheaders'=>$tableheaders, 'rowcontents'=>$rowcontents]);
84 | }
85 | public function listtemplates() {
86 | $alltemplates=Template::all();
87 | $currentuser = User::findOrFail(Auth::id());
88 | $permission=False;
89 | $wikilist = explode(",",$currentuser->wikis);
90 | foreach($wikilist as $wiki) {
91 | if (Permission::checkToolAdmin(Auth::id(),$wiki)==True) {
92 | $permission=True;
93 | }
94 | }
95 | if (!$permission) {
96 | abort(403);
97 | }
98 | $tableheaders = ['ID','Target','Expires','Active'];
99 | $rowcontents = [];
100 | foreach ($alltemplates as $template) {
101 | $idbutton = '';
102 | if($template->active) {$active="Yes";}
103 | else {$active="No";}
104 | $rowcontents[$template->id] = [$idbutton,$template->name,$template->template,$active];
105 | }
106 | return view ('admin.tables', ['title'=>'All Templates','tableheaders'=>$tableheaders, 'rowcontents'=>$rowcontents, 'new'=>True]);
107 | }
108 | public function verifyAccount() {
109 | if (Auth::user()->verified) {
110 | return Redirect::to('/home');
111 | }
112 | else {
113 | Wikitask::create(['task'=>'verifyaccount','actionid'=>Auth::id()]);
114 | return view('admin.verifyme');
115 | }
116 | }
117 | public function verify($code) {
118 | $user = User::where('u_v_token','=',$code)->first();
119 | $user->verified=1;
120 | $user->save();
121 | return Redirect::to('/home');
122 | }
123 | public function makeTemplate(Request $request) {
124 | if(!Permission::checkToolAdmin(Auth::id(),"*")) {
125 | abort(401);
126 | }
127 | $ua = $request->server('HTTP_USER_AGENT');
128 | $ip = $request->server('HTTP_X_FORWARDED_FOR');
129 | $lang = $request->server('HTTP_ACCEPT_LANGUAGE');
130 | $newtemplate = $request->all();
131 | $name = $newtemplate['name'];
132 | $template = $newtemplate['template'];
133 | $creation = Template::create(['name'=>$name,'template'=>$template,'active'=>1]);
134 | $log = Log::create(array('user' => Auth::id(), 'referenceobject'=>$creation->id,'objecttype'=>'template','action'=>'create','ip' => $ip, 'ua' => $ua . " " .$lang));
135 | return Redirect::to('/admin/templates');
136 | }
137 | public function saveTemplate(Request $request, $id) {
138 | if(!Permission::checkToolAdmin(Auth::id(),"*")) {
139 | abort(401);
140 | }
141 | $ua = $request->server('HTTP_USER_AGENT');
142 | $ip = $request->server('HTTP_X_FORWARDED_FOR');
143 | $lang = $request->server('HTTP_ACCEPT_LANGUAGE');
144 | $data = $request->all();
145 | $template = Template::findOrFail($id);
146 | $template->name = $data['name'];
147 | $template->template = $data['template'];
148 | $template->save();
149 | $log = Log::create(array('user' => Auth::id(), 'referenceobject'=>$template->id,'objecttype'=>'template','action'=>'update','ip' => $ip, 'ua' => $ua . " " .$lang));
150 | return Redirect::to('/admin/templates');
151 | }
152 | public function showNewTemplate() {
153 | return view ('admin.newtemplate');
154 | }
155 | public function modifyTemplate($id) {
156 | $template = Template::findOrFail($id);
157 | return view ('admin.edittemplate',["template"=>$template]);
158 | }
159 | }
160 |
--------------------------------------------------------------------------------
/config/session.php:
--------------------------------------------------------------------------------
1 | env('SESSION_DRIVER', 'file'),
22 |
23 | /*
24 | |--------------------------------------------------------------------------
25 | | Session Lifetime
26 | |--------------------------------------------------------------------------
27 | |
28 | | Here you may specify the number of minutes that you wish the session
29 | | to be allowed to remain idle before it expires. If you want them
30 | | to immediately expire on the browser closing, set that option.
31 | |
32 | */
33 |
34 | 'lifetime' => env('SESSION_LIFETIME', 120),
35 |
36 | 'expire_on_close' => false,
37 |
38 | /*
39 | |--------------------------------------------------------------------------
40 | | Session Encryption
41 | |--------------------------------------------------------------------------
42 | |
43 | | This option allows you to easily specify that all of your session data
44 | | should be encrypted before it is stored. All encryption will be run
45 | | automatically by Laravel and you can use the Session like normal.
46 | |
47 | */
48 |
49 | 'encrypt' => false,
50 |
51 | /*
52 | |--------------------------------------------------------------------------
53 | | Session File Location
54 | |--------------------------------------------------------------------------
55 | |
56 | | When using the native session driver, we need a location where session
57 | | files may be stored. A default has been set for you but a different
58 | | location may be specified. This is only needed for file sessions.
59 | |
60 | */
61 |
62 | 'files' => storage_path('framework/sessions'),
63 |
64 | /*
65 | |--------------------------------------------------------------------------
66 | | Session Database Connection
67 | |--------------------------------------------------------------------------
68 | |
69 | | When using the "database" or "redis" session drivers, you may specify a
70 | | connection that should be used to manage these sessions. This should
71 | | correspond to a connection in your database configuration options.
72 | |
73 | */
74 |
75 | 'connection' => env('SESSION_CONNECTION', null),
76 |
77 | /*
78 | |--------------------------------------------------------------------------
79 | | Session Database Table
80 | |--------------------------------------------------------------------------
81 | |
82 | | When using the "database" session driver, you may specify the table we
83 | | should use to manage the sessions. Of course, a sensible default is
84 | | provided for you; however, you are free to change this as needed.
85 | |
86 | */
87 |
88 | 'table' => 'sessions',
89 |
90 | /*
91 | |--------------------------------------------------------------------------
92 | | Session Cache Store
93 | |--------------------------------------------------------------------------
94 | |
95 | | When using the "apc" or "memcached" session drivers, you may specify a
96 | | cache store that should be used for these sessions. This value must
97 | | correspond with one of the application's configured cache stores.
98 | |
99 | */
100 |
101 | 'store' => env('SESSION_STORE', null),
102 |
103 | /*
104 | |--------------------------------------------------------------------------
105 | | Session Sweeping Lottery
106 | |--------------------------------------------------------------------------
107 | |
108 | | Some session drivers must manually sweep their storage location to get
109 | | rid of old sessions from storage. Here are the chances that it will
110 | | happen on a given request. By default, the odds are 2 out of 100.
111 | |
112 | */
113 |
114 | 'lottery' => [2, 100],
115 |
116 | /*
117 | |--------------------------------------------------------------------------
118 | | Session Cookie Name
119 | |--------------------------------------------------------------------------
120 | |
121 | | Here you may change the name of the cookie used to identify a session
122 | | instance by ID. The name specified here will get used every time a
123 | | new session cookie is created by the framework for every driver.
124 | |
125 | */
126 |
127 | 'cookie' => env(
128 | 'SESSION_COOKIE',
129 | Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
130 | ),
131 |
132 | /*
133 | |--------------------------------------------------------------------------
134 | | Session Cookie Path
135 | |--------------------------------------------------------------------------
136 | |
137 | | The session cookie path determines the path for which the cookie will
138 | | be regarded as available. Typically, this will be the root path of
139 | | your application but you are free to change this when necessary.
140 | |
141 | */
142 |
143 | 'path' => '/',
144 |
145 | /*
146 | |--------------------------------------------------------------------------
147 | | Session Cookie Domain
148 | |--------------------------------------------------------------------------
149 | |
150 | | Here you may change the domain of the cookie used to identify a session
151 | | in your application. This will determine which domains the cookie is
152 | | available to in your application. A sensible default has been set.
153 | |
154 | */
155 |
156 | 'domain' => env('SESSION_DOMAIN', null),
157 |
158 | /*
159 | |--------------------------------------------------------------------------
160 | | HTTPS Only Cookies
161 | |--------------------------------------------------------------------------
162 | |
163 | | By setting this option to true, session cookies will only be sent back
164 | | to the server if the browser has a HTTPS connection. This will keep
165 | | the cookie from being sent to you if it can not be done securely.
166 | |
167 | */
168 |
169 | 'secure' => env('SESSION_SECURE_COOKIE', false),
170 |
171 | /*
172 | |--------------------------------------------------------------------------
173 | | HTTP Access Only
174 | |--------------------------------------------------------------------------
175 | |
176 | | Setting this value to true will prevent JavaScript from accessing the
177 | | value of the cookie and the cookie will only be accessible through
178 | | the HTTP protocol. You are free to modify this option if needed.
179 | |
180 | */
181 |
182 | 'http_only' => true,
183 |
184 | /*
185 | |--------------------------------------------------------------------------
186 | | Same-Site Cookies
187 | |--------------------------------------------------------------------------
188 | |
189 | | This option determines how your cookies behave when cross-site requests
190 | | take place, and can be used to mitigate CSRF attacks. By default, we
191 | | do not enable this as other CSRF protection services are in place.
192 | |
193 | | Supported: "lax", "strict"
194 | |
195 | */
196 |
197 | 'same_site' => null,
198 |
199 | ];
200 |
--------------------------------------------------------------------------------
/resources/lang/en/validation.php:
--------------------------------------------------------------------------------
1 | 'The :attribute must be accepted.',
17 | 'active_url' => 'The :attribute is not a valid URL.',
18 | 'after' => 'The :attribute must be a date after :date.',
19 | 'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
20 | 'alpha' => 'The :attribute may only contain letters.',
21 | 'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.',
22 | 'alpha_num' => 'The :attribute may only contain letters and numbers.',
23 | 'array' => 'The :attribute must be an array.',
24 | 'before' => 'The :attribute must be a date before :date.',
25 | 'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
26 | 'between' => [
27 | 'numeric' => 'The :attribute must be between :min and :max.',
28 | 'file' => 'The :attribute must be between :min and :max kilobytes.',
29 | 'string' => 'The :attribute must be between :min and :max characters.',
30 | 'array' => 'The :attribute must have between :min and :max items.',
31 | ],
32 | 'boolean' => 'The :attribute field must be true or false.',
33 | 'confirmed' => 'The :attribute confirmation does not match.',
34 | 'date' => 'The :attribute is not a valid date.',
35 | 'date_equals' => 'The :attribute must be a date equal to :date.',
36 | 'date_format' => 'The :attribute does not match the format :format.',
37 | 'different' => 'The :attribute and :other must be different.',
38 | 'digits' => 'The :attribute must be :digits digits.',
39 | 'digits_between' => 'The :attribute must be between :min and :max digits.',
40 | 'dimensions' => 'The :attribute has invalid image dimensions.',
41 | 'distinct' => 'The :attribute field has a duplicate value.',
42 | 'email' => 'The :attribute must be a valid email address.',
43 | 'ends_with' => 'The :attribute must end with one of the following: :values',
44 | 'exists' => 'The selected :attribute is invalid.',
45 | 'file' => 'The :attribute must be a file.',
46 | 'filled' => 'The :attribute field must have a value.',
47 | 'gt' => [
48 | 'numeric' => 'The :attribute must be greater than :value.',
49 | 'file' => 'The :attribute must be greater than :value kilobytes.',
50 | 'string' => 'The :attribute must be greater than :value characters.',
51 | 'array' => 'The :attribute must have more than :value items.',
52 | ],
53 | 'gte' => [
54 | 'numeric' => 'The :attribute must be greater than or equal :value.',
55 | 'file' => 'The :attribute must be greater than or equal :value kilobytes.',
56 | 'string' => 'The :attribute must be greater than or equal :value characters.',
57 | 'array' => 'The :attribute must have :value items or more.',
58 | ],
59 | 'image' => 'The :attribute must be an image.',
60 | 'in' => 'The selected :attribute is invalid.',
61 | 'in_array' => 'The :attribute field does not exist in :other.',
62 | 'integer' => 'The :attribute must be an integer.',
63 | 'ip' => 'The :attribute must be a valid IP address.',
64 | 'ipv4' => 'The :attribute must be a valid IPv4 address.',
65 | 'ipv6' => 'The :attribute must be a valid IPv6 address.',
66 | 'json' => 'The :attribute must be a valid JSON string.',
67 | 'lt' => [
68 | 'numeric' => 'The :attribute must be less than :value.',
69 | 'file' => 'The :attribute must be less than :value kilobytes.',
70 | 'string' => 'The :attribute must be less than :value characters.',
71 | 'array' => 'The :attribute must have less than :value items.',
72 | ],
73 | 'lte' => [
74 | 'numeric' => 'The :attribute must be less than or equal :value.',
75 | 'file' => 'The :attribute must be less than or equal :value kilobytes.',
76 | 'string' => 'The :attribute must be less than or equal :value characters.',
77 | 'array' => 'The :attribute must not have more than :value items.',
78 | ],
79 | 'max' => [
80 | 'numeric' => 'The :attribute may not be greater than :max.',
81 | 'file' => 'The :attribute may not be greater than :max kilobytes.',
82 | 'string' => 'The :attribute may not be greater than :max characters.',
83 | 'array' => 'The :attribute may not have more than :max items.',
84 | ],
85 | 'mimes' => 'The :attribute must be a file of type: :values.',
86 | 'mimetypes' => 'The :attribute must be a file of type: :values.',
87 | 'min' => [
88 | 'numeric' => 'The :attribute must be at least :min.',
89 | 'file' => 'The :attribute must be at least :min kilobytes.',
90 | 'string' => 'The :attribute must be at least :min characters.',
91 | 'array' => 'The :attribute must have at least :min items.',
92 | ],
93 | 'not_in' => 'The selected :attribute is invalid.',
94 | 'not_regex' => 'The :attribute format is invalid.',
95 | 'numeric' => 'The :attribute must be a number.',
96 | 'present' => 'The :attribute field must be present.',
97 | 'regex' => 'The :attribute format is invalid.',
98 | 'required' => 'The :attribute field is required.',
99 | 'required_if' => 'The :attribute field is required when :other is :value.',
100 | 'required_unless' => 'The :attribute field is required unless :other is in :values.',
101 | 'required_with' => 'The :attribute field is required when :values is present.',
102 | 'required_with_all' => 'The :attribute field is required when :values are present.',
103 | 'required_without' => 'The :attribute field is required when :values is not present.',
104 | 'required_without_all' => 'The :attribute field is required when none of :values are present.',
105 | 'same' => 'The :attribute and :other must match.',
106 | 'size' => [
107 | 'numeric' => 'The :attribute must be :size.',
108 | 'file' => 'The :attribute must be :size kilobytes.',
109 | 'string' => 'The :attribute must be :size characters.',
110 | 'array' => 'The :attribute must contain :size items.',
111 | ],
112 | 'starts_with' => 'The :attribute must start with one of the following: :values',
113 | 'string' => 'The :attribute must be a string.',
114 | 'timezone' => 'The :attribute must be a valid zone.',
115 | 'unique' => 'The :attribute has already been taken.',
116 | 'uploaded' => 'The :attribute failed to upload.',
117 | 'url' => 'The :attribute format is invalid.',
118 | 'uuid' => 'The :attribute must be a valid UUID.',
119 |
120 | /*
121 | |--------------------------------------------------------------------------
122 | | Custom Validation Language Lines
123 | |--------------------------------------------------------------------------
124 | |
125 | | Here you may specify custom validation messages for attributes using the
126 | | convention "attribute.rule" to name the lines. This makes it quick to
127 | | specify a specific custom language line for a given attribute rule.
128 | |
129 | */
130 |
131 | 'custom' => [
132 | 'attribute-name' => [
133 | 'rule-name' => 'custom-message',
134 | ],
135 | ],
136 |
137 | /*
138 | |--------------------------------------------------------------------------
139 | | Custom Validation Attributes
140 | |--------------------------------------------------------------------------
141 | |
142 | | The following language lines are used to swap our attribute placeholder
143 | | with something more reader friendly such as "E-Mail Address" instead
144 | | of "email". This simply helps us make our message more expressive.
145 | |
146 | */
147 |
148 | 'attributes' => [],
149 |
150 | ];
151 |
--------------------------------------------------------------------------------
/resources/views/appeals/publicappeal.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('content')
3 |
4 | IMPORTANT MESSAGE
5 | UTRS is in the process of moving over to UTRS 2.0 of the software. We needed to do this because several users were unable to file proper appeals due to IPv6 IP addresses not being accepted by our severs. Therefore, we made the decision to move over to a rudimentary beta software instead to allow everyone to appeal properly.
6 | In doing this, please understand that there will be bugs and issues. We will try our best to keep up with those issues. You can get assistance at the UTRS talkpage or by placing {!! "{{tl|UTRS help me}}" !!} on your talkpage.
7 | Note: During this time, no emails will be sent out for appeals except for blocks that are not found for accounts. That means you need to keep your appeal secret key on hand at all times (DON'T SHARE IT) and check back regularly.
8 | We thank you for your patience.
9 | UTRS Development Team
10 |