-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#385: add update page admin/includes/update.pgp
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
// IMPORT REQUIRED CLASSES | ||
use YAWK\alert; | ||
use YAWK\backend; | ||
use YAWK\db; | ||
use YAWK\language; | ||
use YAWK\update; | ||
|
||
/** @var $db db */ | ||
/** @var $lang language */ | ||
|
||
// CHECK REQUIRED OBJECTS | ||
if (!isset($page)) // if no page object is set | ||
{ // create new page object | ||
$page = new YAWK\page(); | ||
} | ||
|
||
// TEMPLATE WRAPPER - HEADER & breadcrumbs | ||
echo " | ||
<!-- Content Wrapper. Contains page content --> | ||
<div class=\"content-wrapper\" id=\"content-FX\"> | ||
<!-- Content Header (Page header) --> | ||
<section class=\"content-header\">"; | ||
/* draw Title on top */ | ||
echo backend::getTitle($lang['UPDATE'], $lang['UPDATE_SUBTEXT']); | ||
echo"<ol class=\"breadcrumb\"> | ||
<li><a href=\"index.php\" title=\"$lang[DASHBOARD]\"><i class=\"fa fa-dashboard\"></i> $lang[DASHBOARD]</a></li> | ||
<li class=\"active\"><a href=\"index.php?page=update\" title=\"".$lang['UPDATE']."\"><i class=\"fa fa-code-fork\"></i> ".$lang['UPDATE']."</a></li> | ||
</ol> | ||
</section> | ||
<!-- Main content --> | ||
<section class=\"content\">"; | ||
/* page content start here */ | ||
|
||
?> | ||
<!-- CONTENT --> | ||
<div class="box box-default"> | ||
<div class="box-body"> | ||
<a href="#update" id="update" class="btn btn-success pull-right"><i class="fa fa-refresh"></i> <?php echo $lang['UPDATE_CHECK']; ?></a> | ||
<h3 class="box-title"><?php echo $lang['UPDATE_CURRENT_INSTALLED_VERSION']; echo ' '; echo \YAWK\settings::getSetting($db,'yawkversion');?> </h3> | ||
<br> | ||
|
||
<?php | ||
// CHECK FOR UPDATES | ||
$update = new update($db); | ||
$update->readFilebase($db, $lang); | ||
|
||
?> | ||
|
||
|
||
|
||
</div> | ||
</div> | ||
|
||
<script type="text/javascript" src="js/checkForUpdates.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters