add seeders and migrations + rhilip/bencode

This commit is contained in:
xiaomlove
2021-06-08 20:43:47 +08:00
parent 6361f96d62
commit bf49c8c298
135 changed files with 12171 additions and 104 deletions

View File

@@ -0,0 +1,89 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class ModpanelTableSeeder extends Seeder
{
/**
* Auto generated seed file
*
* @return void
*/
public function run()
{
\DB::table('modpanel')->delete();
\DB::table('modpanel')->insert(array (
0 =>
array (
'id' => 1,
'name' => 'Abnormal Upload Speed Detector',
'url' => 'cheaters.php',
'info' => 'See cheaters',
),
1 =>
array (
'id' => 2,
'name' => 'Duplicate IP Check',
'url' => 'ipcheck.php',
'info' => 'Check for Duplicate IP Users',
),
2 =>
array (
'id' => 3,
'name' => 'All Clients (currently)',
'url' => 'allagents.php',
'info' => 'Show All Clients (currently downloading/uploading/seeding)',
),
3 =>
array (
'id' => 4,
'name' => 'Ad management',
'url' => 'admanage.php',
'info' => 'Manage ads at your site',
),
4 =>
array (
'id' => 5,
'name' => 'Uploaders',
'url' => 'uploaders.php',
'info' => 'See uploaders stats',
),
5 =>
array (
'id' => 6,
'name' => 'Stats',
'url' => 'stats.php',
'info' => 'Tracker Stats',
),
6 =>
array (
'id' => 7,
'name' => 'IP Test',
'url' => 'testip.php',
'info' => 'Test if IP is banned',
),
7 =>
array (
'id' => 8,
'name' => 'Add Bonus Points',
'url' => 'amountbonus.php',
'info' => 'Add Bonus Points to one or All Users.',
),
8 =>
array (
'id' => 9,
'name' => 'Clear cache',
'url' => 'clearcache.php',
'info' => 'Clear cache of memcached',
),
));
}
}