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 // Advise installs to perform a reindex in order to rebuild the Ferret engine // in..

Decoded Output download

<?php

// Advise installs to perform a reindex in order to rebuild the Ferret engine
// indexes.

// If the install is completely empty with no user accounts, don't require
// a rebuild. In particular, this happens when rebuilding the quickstart file.
$users = id(new PhabricatorUser())->loadAllWhere('1 = 1 LIMIT 1');
if (!$users) {
  return;
}

try {
  id(new PhabricatorConfigManualActivity())
    ->setActivityType(PhabricatorConfigManualActivity::TYPE_REINDEX)
    ->save();
} catch (AphrontDuplicateKeyQueryException $ex) {
  // If we've already noted that this activity is required, just move on.
}
 ?>

Did this file decode correctly?

Original Code

<?php

// Advise installs to perform a reindex in order to rebuild the Ferret engine
// indexes.

// If the install is completely empty with no user accounts, don't require
// a rebuild. In particular, this happens when rebuilding the quickstart file.
$users = id(new PhabricatorUser())->loadAllWhere('1 = 1 LIMIT 1');
if (!$users) {
  return;
}

try {
  id(new PhabricatorConfigManualActivity())
    ->setActivityType(PhabricatorConfigManualActivity::TYPE_REINDEX)
    ->save();
} catch (AphrontDuplicateKeyQueryException $ex) {
  // If we've already noted that this activity is required, just move on.
}

Function Calls

None

Variables

None

Stats

MD5 40b8722d35d48dd8ccfe06efabad0d02
Eval Count 0
Decode Time 88 ms