3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Admin Panel if ($adminloggedIn) { global $config, $adminOptions, $successImg, $failImg; $app = json_decode(file_get_contents('https://graph.facebook.com/'.$config['appId'].'?access_token='.$config['appId'].'|'.$config['secret'])); $output = "<div id='admindiv'><h3>Settings Information:</h3>"; if (isset($app->id)) $output .= "$successImg <strong>Application ID</strong>: ".$app->id."<br />"; else $output .= "$failImg <strong>Application ID</strong>: <span title='App ID and/or App Secret is Invalid'>".$config['appId']."</span><br />"; if (isset($app->name)) $output .= "$successImg <strong>Application Name</strong>: ".$app->name."<br />"; else $output .= "$failImg <strong>Application Name</strong>: <br />"; if (isset($adminOptions["admintoken"]) && $adminOptions["admintoken"] != "") { $output .= "$successImg <strong>Application Administrator Token</strong>: Installed"; } else { $output .= "$failImg <strong>Application Administrator Token</strong>: <span title='Logout and Signup + Authorize with a user who is an administrator of the configured facebook application to install this token'> Not Installed </span><br />"; } $output .= "</div> <script>$( \"#admindiv\" ).tooltip();</script>"; return $output; } ?>

preferences:
44.88 ms | 402 KiB | 5 Q