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 $table = new PhabricatorProjectColumn(); $conn_w = $table->establishConnection('w')..

Decoded Output download

<?php

$table = new PhabricatorProjectColumn();
$conn_w = $table->establishConnection('w');

foreach (new LiskMigrationIterator($table) as $column) {
  $id = $column->getID();

  echo pht('Adjusting column %d...', $id)."
";
  if ($column->getSequence() == 0) {

    $properties = $column->getProperties();
    $properties['isDefault'] = true;

    queryfx(
      $conn_w,
      'UPDATE %T SET properties = %s WHERE id = %d',
      $table->getTableName(),
      json_encode($properties),
      $id);
  }
}

echo pht('Done.')."
";
 ?>

Did this file decode correctly?

Original Code

<?php

$table = new PhabricatorProjectColumn();
$conn_w = $table->establishConnection('w');

foreach (new LiskMigrationIterator($table) as $column) {
  $id = $column->getID();

  echo pht('Adjusting column %d...', $id)."\n";
  if ($column->getSequence() == 0) {

    $properties = $column->getProperties();
    $properties['isDefault'] = true;

    queryfx(
      $conn_w,
      'UPDATE %T SET properties = %s WHERE id = %d',
      $table->getTableName(),
      json_encode($properties),
      $id);
  }
}

echo pht('Done.')."\n";

Function Calls

None

Variables

None

Stats

MD5 d82f4eeb5771da48a235c66a8af0f08b
Eval Count 0
Decode Time 87 ms