mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
add seeders and migrations + rhilip/bencode
This commit is contained in:
89
database/seeders/ModpanelTableSeeder.php
Normal file
89
database/seeders/ModpanelTableSeeder.php
Normal 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',
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user