3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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; } ?>
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: adminloggedIn in /in/H72jQ on line 3
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: adminloggedIn in /in/H72jQ on line 3