Skip to content

Commit

Permalink
Fix: Remove space char at end of document and viewimage.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Apr 28, 2013
1 parent 27ae971 commit 670d01e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/search_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@
if (empty($reshook)) $searchform.=$hookmanager->resPrint;
else $searchform=$hookmanager->resPrint;

print '<style>.menu_titre { padding-top: 6px; }</style>';

print "\n";
print "<!-- Begin SearchForm -->\n";
print '<div class="center">';
print '<div class="center" data-role="page">';
print '<style>.menu_titre { padding-top: 6px; }</style>';
//print '<div id="distance"></div><div id="container" class="center">';
print '<div id="blockvmenusearch">'."\n";
print $searchform;
Expand Down
3 changes: 2 additions & 1 deletion htdocs/document.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function llxHeader() { }
*/
function llxFooter() { }


require 'main.inc.php'; // Load $user and permissions
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';

Expand Down Expand Up @@ -177,4 +178,4 @@ function llxFooter() { }

readfile($original_file_osencoded);

?>
?>
17 changes: 11 additions & 6 deletions htdocs/main.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ function analyse_sql_and_script(&$var, $type)
// Include the conf.php and functions.lib.php
require_once 'filefunc.inc.php';

/*var_dump("Define dolgetprefix ".$_SERVER["SERVER_NAME"]." - ".$_SERVER["DOCUMENT_ROOT"]." - ".DOL_DOCUMENT_ROOT." - ".DOL_URL_ROOT);
var_dump("Cookie ".join($_COOKIE,','));
var_dump("Cookie ".$_SERVER["HTTP_COOKIE"]);
var_dump("Cookie ".$_SERVER["HTTP_USER_AGENT"]);*/

// Init session. Name of session is specific to Dolibarr instance.
$prefix=dol_getprefix();
$sessionname='DOLSESSID_'.$prefix;
Expand Down Expand Up @@ -992,11 +997,11 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
}
$themeparam='?lang='.$langs->defaultlang.'&amp;theme='.$conf->theme.(GETPOST('optioncss')?'&amp;optioncss='.GETPOST('optioncss','alpha',1):'').'&amp;userid='.$user->id.'&amp;entity='.$conf->entity;
if (! empty($_SESSION['dol_resetcache'])) $themeparam.='&amp;dol_resetcache='.$_SESSION['dol_resetcache'];
if (GETPOST('dol_hide_topmenu')) $themeparam.='&amp;dol_hide_topmenu=1';
if (GETPOST('dol_hide_leftmenu')) $themeparam.='&amp;dol_hide_leftmenu=1';
if (GETPOST('dol_optimize_smallscreen')) $themeparam.='&amp;dol_optimize_smallscreen=1';
if (GETPOST('dol_no_mouse_hover')) $themeparam.='&amp;dol_no_mouse_hover=1';
if (GETPOST('dol_use_jmobile')) $themeparam.='&amp;dol_use_jmobile=1';
if (GETPOST('dol_hide_topmenu')) { $themeparam.='&amp;dol_hide_topmenu='.GETPOST('dol_hide_topmenu'); }
if (GETPOST('dol_hide_leftmenu')) { $themeparam.='&amp;dol_hide_leftmenu='.GETPOST('dol_hide_leftmenu'); }
if (GETPOST('dol_optimize_smallscreen')) { $themeparam.='&amp;dol_optimize_smallscreen='.GETPOST('dol_optimize_smallscreen'); }
if (GETPOST('dol_no_mouse_hover')) { $themeparam.='&amp;dol_no_mouse_hover='.GETPOST('dol_no_mouse_hover'); }
if (GETPOST('dol_use_jmobile')) { $themeparam.='&amp;dol_use_jmobile='.GETPOST('dol_use_jmobile'); $conf->dol_use_jmobile=GETPOST('dol_use_jmobile'); }
//print 'themepath='.$themepath.' themeparam='.$themeparam;exit;
print '<link rel="stylesheet" type="text/css" title="default" href="'.$themepath.$themeparam.'">'."\n";

Expand Down Expand Up @@ -1132,7 +1137,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
print '<script type="text/javascript" src="'.DOL_URL_ROOT.'/core/js/timepicker.js.php?lang='.$langs->defaultlang.'"></script>'."\n";
}
// jQuery jMobile
if (! empty($conf->global->MAIN_USE_JQUERY_JMOBILE) || defined('REQUIRE_JQUERY_JMOBILE') || ! empty($conf->dol_use_jmobile))
if (! empty($conf->global->MAIN_USE_JQUERY_JMOBILE) || defined('REQUIRE_JQUERY_JMOBILE') || (! empty($conf->dol_use_jmobile) && $conf->dol_use_jmobile > 0))
{
print '<script type="text/javascript" src="'.DOL_URL_ROOT.'/includes/jquery/plugins/mobile/jquery.mobile-latest.min.js"></script>'."\n";
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/viewimage.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,4 @@ function llxFooter() { }


if (is_object($db)) $db->close();
?>
?>

0 comments on commit 670d01e

Please sign in to comment.