Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php class m140605_125227_create_account_login_history_table extends CDbMigration { ..

Decoded Output download

<?php

class m140605_125227_create_account_login_history_table extends CDbMigration
{
    public function safeUp()
    {
        $this->createTable(
            'account_login_history',
            array(
                'id' => 'pk',
                'accountId' => "int NOT NULL DEFAULT '0'",
                'success' => "boolean NOT NULL DEFAULT '0'",
                'numFailedAttempts' => "int NOT NULL DEFAULT '0'",
                'createdAt' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
            )
        );
    }

    public function safeDown()
    {
        $this->dropTable('account_login_history');
    }
} ?>

Did this file decode correctly?

Original Code

<?php

class m140605_125227_create_account_login_history_table extends CDbMigration
{
    public function safeUp()
    {
        $this->createTable(
            'account_login_history',
            array(
                'id' => 'pk',
                'accountId' => "int NOT NULL DEFAULT '0'",
                'success' => "boolean NOT NULL DEFAULT '0'",
                'numFailedAttempts' => "int NOT NULL DEFAULT '0'",
                'createdAt' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
            )
        );
    }

    public function safeDown()
    {
        $this->dropTable('account_login_history');
    }
}

Function Calls

None

Variables

None

Stats

MD5 89c5650f1e3e3b0d3a8342d1ceabfc17
Eval Count 0
Decode Time 1134 ms