One Hat Cyber Team
Your IP :
172.70.80.191
Server IP :
188.114.97.3
Server :
Linux thuru 6.5.11-4-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.11-4 (2023-11-20T10:19Z) x86_64
Server Software :
Apache/2.4.51 (Unix) OpenSSL/1.0.2k-fips
PHP Version :
7.3.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
thuruk
/
public_html
/
App
/
web
/
Edit File:
migration.tpl.php
<@php namespace {namespace}; use CodeIgniter\Database\Migration; class {class} extends Migration { <?php if ($session): ?> protected $DBGroup = '<?= $DBGroup ?>'; public function up() { $this->forge->addField([ 'id' => ['type' => 'VARCHAR', 'constraint' => 128, 'null' => false], 'ip_address' => ['type' => 'VARCHAR', 'constraint' => 45, 'null' => false], 'timestamp' => ['type' => 'INT', 'unsigned' => true, 'null' => false, 'default' => 0], 'data' => ['type' => 'TEXT', 'null' => false, 'default' => ''], ]); <?php if ($matchIP) : ?> $this->forge->addKey(['id', 'ip_address'], true); <?php else: ?> $this->forge->addKey('id', true); <?php endif ?> $this->forge->addKey('timestamp'); $this->forge->createTable('<?= $table ?>', true); } public function down() { $this->forge->dropTable('<?= $table ?>', true); } <?php else: ?> public function up() { // } public function down() { // } <?php endif ?> }
Simpan