示例#1
0
 /**
  * Very rough integration test of the updater
  * Passes if no errors are thrown
  * Also defines $page for subsequent tests
  *
  */
 function UpdateOutputTest()
 {
     global $page;
     ob_start();
     $page = new \gp\admin\Update();
     \gp\tool\Output::HeadContent();
     includeFile('install/template.php');
     ob_get_clean();
 }
示例#2
0
<?php

define('is_running', true);
//define('gpdebug',true);
require_once '../common.php';
\gp\tool::EntryPoint(2, 'update.php');
/* check permissions */
if (!\gp\tool::LoggedIn()) {
    die('You must be logged in to access this area.');
}
if (!isset($gpAdmin['granted']) || $gpAdmin['granted'] !== 'all') {
    die('Sorry, you do not have sufficient privileges to access this area.');
}
\gp\tool::GetLangFile();
$page = new \gp\admin\Update();
\gp\tool\Output::HeadContent();
includeFile('install/template.php');