nextcloud/help/index.php

28 lines
533 B
PHP
Raw Normal View History

2011-04-16 19:49:57 +04:00
<?php
require_once('../lib/base.php');
2011-07-29 23:36:03 +04:00
if( !OC_User::isLoggedIn()){
2011-08-11 18:15:55 +04:00
header( "Location: ".OC_Helper::linkTo( "", "index.php" ));
2011-04-16 19:49:57 +04:00
exit();
}
//hardcode for testing
$pagecount=8;
$page=2;
// Load the files we need
2011-07-29 23:36:03 +04:00
OC_Util::addStyle( "help", "help" );
OC_App::setActiveNavigationEntry( "help" );
2011-04-16 19:49:57 +04:00
2011-07-29 23:36:03 +04:00
$kbe=OC_OCSClient::getKnownledgebaseEntries();
2011-04-16 19:49:57 +04:00
$tmpl = new OC_Template( "help", "index", "user" );
$tmpl->assign( "kbe", $kbe );
$tmpl->assign( "pagecount", $pagecount );
$tmpl->assign( "page", $page );
2011-04-16 19:49:57 +04:00
$tmpl->printPage();
?>