예제 #1
0
if (!isset($_GET["debug"])) {
    error_reporting(0);
}
if (isset($_GET["phpinfo"])) {
    phpinfo();
}
?>
    
  </head>
  <body>
  	<!-- Updater -->
  	 <?php 
$icon = '<i class="fa fa-check"></i> ' . $updater->getCurrentVersion() . ' (#' . $updater->getUniqueId() . ')';
$checker = $updater->checkNewVersion();
if ($checker == true) {
    $update = $updater->makeUpdate();
    if ($update == true) {
        $icon = '<i class="fa fa-refresh fa-spin"></i> Restart for update';
    } else {
        $icon = '<i class="fa fa-ban danger"></i> Error ' . ' (#' . $updater->getUniqueId() . ')';
    }
}
?>
   
  	 <div class="screen top put right update">
  	 	<?php 
echo $icon;
?>
  	 </div>
  	
  	<!-- Main Script -->