Ticket #3368: freepbx.php.patch
| File freepbx.php.patch, 3.7 kB (added by Nick_Lewis, 3 years ago) |
|---|
-
freepbx.php
old new 39 39 } 40 40 41 41 ?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 42 <!-- should also validate ok with DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/xhtml1-transitional.dtd" --> 42 43 <html> 43 44 44 45 <head> 45 46 <title><?php echo _($title) ?></title> 46 <meta http-equiv="Content-Type" content="text/html" >47 <link href="common/mainstyle.css" rel="stylesheet" type="text/css" >47 <meta http-equiv="Content-Type" content="text/html" /> 48 <link href="common/mainstyle.css" rel="stylesheet" type="text/css" /> 48 49 <?php if (isset($use_nav_background) && $use_nav_background) { ?> 49 50 <style type="text/css"> 50 51 body { … … 54 55 } 55 56 </style> 56 57 <?php } ?> 57 <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="favicon.ico" >58 <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="favicon.ico" /> 58 59 <!--[if IE]> 59 <link href="common/ie.css" rel="stylesheet" type="text/css" >60 <link href="common/ie.css" rel="stylesheet" type="text/css" /> 60 61 <![endif]--> 61 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >62 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> 62 63 <?php 63 64 // check if in the amp configuration the user has set that 64 65 // he wants to use an alternative style-sheet. … … 68 69 if (($amp_conf["ALTERNATIVE_CSS"] == "1") || 69 70 ($amp_conf["ALTERNATIVE_CSS"] == "yes") || 70 71 ($amp_conf["ALTERNATIVE_CSS"] == "true")) 71 echo "\t<link href=\"common/mainstyle-alternative.css\" rel=\"stylesheet\" type=\"text/css\" >";72 echo "\t<link href=\"common/mainstyle-alternative.css\" rel=\"stylesheet\" type=\"text/css\" />"; 72 73 } 73 74 74 75 if (isset($module_name)) { 75 76 if (is_file('modules/'.$module_name.'/'.$module_name.'.css')) { 76 echo "\t".'<link href="'.$_SERVER['PHP_SELF'].'?handler=file&module='.$module_name.'&file='.$module_name.'.css" rel="stylesheet" type="text/css" >'."\n";77 echo "\t".'<link href="'.$_SERVER['PHP_SELF'].'?handler=file&module='.$module_name.'&file='.$module_name.'.css" rel="stylesheet" type="text/css" />'."\n"; 77 78 } 78 79 if (isset($module_page) && ($module_page != $module_name) && is_file('modules/'.$module_name.'/'.$module_page.'.css')) { 79 echo "\t".'<link href="'.$_SERVER['PHP_SELF'].'?handler=file&module='.$module_name.'&file='.$module_page.'.css" rel="stylesheet" type="text/css" >'."\n";80 echo "\t".'<link href="'.$_SERVER['PHP_SELF'].'?handler=file&module='.$module_name.'&file='.$module_page.'.css" rel="stylesheet" type="text/css" />'."\n"; 80 81 } 81 82 if (is_file('modules/'.$module_name.'/'.$module_name.'.js')) { 82 83 echo "\t".'<script type="text/javascript" src="'.$_SERVER['PHP_SELF'].'?handler=file&module='.$module_name.'&file='.$module_name.'.js"></script>'."\n"; … … 156 157 157 158 $help_args = "?freepbx_version=".urlencode($version); 158 159 if (isset($_REQUEST['display'])) { 159 $help_args .= "& freepbx_menuitem=".urlencode($_REQUEST['display']);160 $help_args .= "&freepbx_menuitem=".urlencode($_REQUEST['display']); 160 161 } 161 162 162 163 echo "\t\t<ul id=\"metanav\">\n"; … … 169 170 } 170 171 print_sub_tool( _("Recordings"), "../recordings/index.php" ,0, NULL, "ari" ); 171 172 print_sub_tool( _("Help"), "http://www.freepbx.org/freepbx-help-system$help_args" ,0, NULL, "help" ); 172 echo "<li class=\"last\"><a > </a></li>";173 echo "<li class=\"last\"><a> </a></li>"; 173 174 echo "\t\t</ul>\n"; 174 175 175 176 $freepbx_logo = (isset($amp_conf["AMPADMINLOGO"]) && is_file($amp_conf["AMPWEBROOT"]."/admin/images/".$amp_conf["AMPADMINLOGO"])) ? $amp_conf["AMPADMINLOGO"] : 'logo.png';
