update v1.0.7.5

This commit is contained in:
Sujit Prasad
2016-06-14 14:45:24 +05:30
parent 32a73e76d1
commit 050086df09
46 changed files with 2009 additions and 1437 deletions

View File

@@ -7,22 +7,19 @@ use Closure;
/**
* CheckBoard.
* Checking if the system board is online or offline.
* Checking if the system board is online or offline
*
* @author Ladybird <info@ladybirdweb.com>
*/
class CheckBoard
{
class CheckBoard {
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @param \Closure $next
* @return type Mixed
*/
public function handle($request, Closure $next)
{
public function handle($request, Closure $next) {
if ($this->checkBoard() == '1') {
return $next($request);
} else {
@@ -31,18 +28,16 @@ class CheckBoard
}
/**
* Function to get the system offline details.
*
* Function to get the system offline details
* @return type Mixed
*/
public function checkBoard()
{
public function checkBoard() {
$res = 0;
$system = new System();
$system = new System;
if ($system->first()) {
$res = $system->first()->status;
}
return $res;
}
}

View File

@@ -31,7 +31,6 @@ class CheckUpdate
return redirect('file-update');
}
}
return $next($request);
}
@@ -47,11 +46,11 @@ class CheckUpdate
public function checkNewUpdate()
{
$notify = new BarNotification();
if (!\Schema::hasTable('bar_notifications')) {
if(!\Schema::hasTable('bar_notifications')){
$url = url('database-upgrade');
//$string = "Your Database is outdated please upgrade <a href=$url>Now !</a>";
echo view('themes.default1.update.database', compact('url'));
exit;
exit;
}
$not = $notify->get();
if ($not->count() > 0) {