help.php 1021 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * 2012 Frank Karlitschek frank@owncloud.org
  4. * This file is licensed under the Affero General Public License version 3 or later.
  5. * See the COPYING-README file.
  6. */
  7. OC_Util::checkLoggedIn();
  8. OC_App::loadApps();
  9. // Load the files we need
  10. OC_Util::addStyle( "settings", "settings" );
  11. OC_App::setActiveNavigationEntry( "help" );
  12. if(isset($_GET['mode']) and $_GET['mode'] === 'admin') {
  13. $url=OC_Helper::linkToAbsolute( 'core', 'doc/admin' );
  14. $style1='';
  15. $style2=' pressed';
  16. }else{
  17. $url=OC_Helper::linkToAbsolute( 'core', 'doc/user' );
  18. $style1=' pressed';
  19. $style2='';
  20. }
  21. $url1=OC_Helper::linkToRoute( "settings_help" ).'?mode=user';
  22. $url2=OC_Helper::linkToRoute( "settings_help" ).'?mode=admin';
  23. $tmpl = new OC_Template( "settings", "help", "user" );
  24. $tmpl->assign( "admin", OC_User::isAdminUser(OC_User::getUser()));
  25. $tmpl->assign( "url", $url );
  26. $tmpl->assign( "url1", $url1 );
  27. $tmpl->assign( "url2", $url2 );
  28. $tmpl->assign( "style1", $style1 );
  29. $tmpl->assign( "style2", $style2 );
  30. $tmpl->printPage();