UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
lms_cae11bf34d84
/
database
/
seeds
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
adjustLtmTranslationTable.php
<?php use Illuminate\Database\Seeder; class adjustLtmTranslationTable extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $today = Carbon\Carbon::now(); $dataEN = [ 'status' => 0, 'locale' => 'en', 'key' => 'mainCheckTermsOfUse', 'group' => 'admin_config', 'value' => 'Enable term of use at checkout? <small><a href="/admin/page/edit/3/en" target="_blank">Edit Terms of Use.</a></small><br> <small class="text-muted"><i class="glyphicon glyphicon-info-sign"></i> Check this option only if you want your student to check that they have read your terms of use, before hiring one. course on your website.</small>', 'created_at' => $today, 'updated_at' => $today ]; $dataES = [ 'status' => 0, 'locale' => 'es', 'key' => 'mainCheckTermsOfUse', 'group' => 'admin_config', 'value' => '¿Habilitar término de uso al finalizar la compra? <small> <a href="/admin/page/edit/3/es" target="_blank"> Edite las condiciones de uso </a> </small> <br> <small class = "text-muted"> <i class = "glyphicon glyphicon-info-sign"> </i> Marque esta opción solo si desea que su estudiante compruebe que ha leído sus términos de uso, antes de contratar uno . curso en su sitio web. </small>', 'created_at' => $today, 'updated_at' => $today ]; $dataPT = [ 'status' => 0, 'locale' => 'pt', 'key' => 'mainCheckTermsOfUse', 'group' => 'admin_config', 'value' => 'Habilitar termo de uso no checkout? <small><a href="/admin/page/edit/3/pt" target="_blank">Editar Termo de Uso.</a></small><br><small class="text-muted"><i class="glyphicon glyphicon-info-sign"></i> Marque está opção somente, se deseja que seu aluno marque que leu o seu termo de uso, antes de contratar um curso no seu site.</small>', 'created_at' => $today, 'updated_at' => $today ]; $existEN = \DB::table('ltm_translations') ->where('key', '=', 'mainCheckTermsOfUse') ->where('locale', '=', 'en') ->first(); if ($existEN) { \DB::table('ltm_translations') ->where('key', '=', 'mainCheckTermsOfUse') ->where('locale', '=', 'en') ->update($dataEN); } else { \DB::table('ltm_translations') ->insert($dataEN); } $existES = \DB::table('ltm_translations') ->where('key', '=', 'mainCheckTermsOfUse') ->where('locale', '=', 'es') ->first(); if ($existES) { \DB::table('ltm_translations') ->where('key', '=', 'mainCheckTermsOfUse') ->where('locale', '=', 'es') ->update($dataES); } else { \DB::table('ltm_translations') ->insert($dataES); } $existPT = \DB::table('ltm_translations') ->where('key', '=', 'mainCheckTermsOfUse') ->where('locale', '=', 'pt') ->first(); if ($existPT) { \DB::table('ltm_translations') ->where('key', '=', 'mainCheckTermsOfUse') ->where('locale', '=', 'pt') ->update($dataPT); } else { \DB::table('ltm_translations') ->insert($dataPT); } } }
Copyright © 2026 - UnknownSec