help.php 1023 B

123456789101112131415161718192021222324252627282930313233343536
  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. // Load the files we need
  9. OC_Util::addStyle( "settings", "settings" );
  10. OC_App::setActiveNavigationEntry( "help" );
  11. if(isset($_GET['mode']) and $_GET['mode'] === 'admin') {
  12. $url=OC_Helper::linkToAbsolute( 'core', 'doc/admin/index.html' );
  13. $style1='';
  14. $style2=' pressed';
  15. }else{
  16. $url=OC_Helper::linkToAbsolute( 'core', 'doc/user/index.html' );
  17. $style1=' pressed';
  18. $style2='';
  19. }
  20. $url1=OC_Helper::linkToRoute( "settings_help" ).'?mode=user';
  21. $url2=OC_Helper::linkToRoute( "settings_help" ).'?mode=admin';
  22. $tmpl = new OC_Template( "settings", "help", "user" );
  23. $tmpl->assign( "admin", OC_User::isAdminUser(OC_User::getUser()));
  24. $tmpl->assign( "url", $url );
  25. $tmpl->assign( "url1", $url1 );
  26. $tmpl->assign( "url2", $url2 );
  27. $tmpl->assign( "style1", $style1 );
  28. $tmpl->assign( "style2", $style2 );
  29. $tmpl->printPage();