diff --git a/views/bootstrap/class.AddFile.php b/views/bootstrap/class.AddFile.php index bad6bbb4d..d1bf2497e 100644 --- a/views/bootstrap/class.AddFile.php +++ b/views/bootstrap/class.AddFile.php @@ -38,7 +38,7 @@ class SeedDMS_View_AddFile extends SeedDMS_Theme_Style { header('Content-Type: application/javascript; charset=UTF-8'); parent::jsTranslations(array('js_form_error', 'js_form_errors')); if($enablelargefileupload) - $this->printFineUploaderJs('../op/op.UploadChunks.php', $partitionsize, $maxuploadsize); + $this->printFineUploaderJs($this->params['settings']->_httpRoot.'op/op.UploadChunks.php', $partitionsize, $maxuploadsize); $this->printFileChooserJs(); ?> @@ -113,10 +113,10 @@ $(document).ready( function() { $enablelargefileupload = $this->params['enablelargefileupload']; $maxuploadsize = $this->params['maxuploadsize']; - $this->htmlAddHeader(''."\n", 'js'); - $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'js'); if($enablelargefileupload) { - $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'js'); $this->htmlAddHeader($this->getFineUploaderTemplate(), 'js'); } diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 82d81eeef..a2af6cb46 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -91,38 +91,38 @@ class SeedDMS_Theme_Style extends SeedDMS_View_Common { echo ''."\n"; $sitename = trim(strip_tags($this->params['sitename'])); if($this->params['session']) - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; if($this->extraheader['css']) echo $this->extraheader['css']; if(method_exists($this, 'css')) echo ''."\n"; - echo ''."\n"; + echo ''."\n"; if($this->extraheader['js']) echo $this->extraheader['js']; - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; -// echo ''."\n"; -// echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; +// echo ''."\n"; +// echo ''."\n"; if(!empty($this->extraheader['favicon'])) echo $this->extraheader['favicon']; else { - echo ''."\n"; - echo ''."\n"; + echo ''."\n"; + echo ''."\n"; } if($this->params['session'] && $this->params['session']->getSu()) { ?> @@ -167,19 +167,19 @@ background-image: linear-gradient(to bottom, #882222, #111111);; $this->missingLanguageKeys(); } } - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; foreach(array('de', 'es', 'ar', 'el', 'bg', 'ru', 'hr', 'hu', 'ko', 'pl', 'ro', 'sk', 'tr', 'uk', 'ca', 'nl', 'fi', 'cs', 'it', 'fr', 'sv', 'sl', 'pt-BR', 'zh-CN', 'zh-TW') as $lang) - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; parse_str($_SERVER['QUERY_STRING'], $tmp); $tmp['action'] = 'webrootjs'; if(isset($tmp['formtoken'])) unset($tmp['formtoken']); echo ''."\n"; - echo ''."\n"; + echo ''."\n"; if($this->params['enablemenutasks'] && isset($this->params['user']) && $this->params['user']) { $this->addFooterJS('SeedDMSTask.run();'); } @@ -285,8 +285,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);; echo "
\n"; echo "
\n"; echo " \n"; echo "
\n"; echo "
\n"; @@ -301,16 +301,16 @@ background-image: linear-gradient(to bottom, #882222, #111111);; echo " \n"; echo " \n"; echo " \n"; - echo " \n"; + echo " params['settings']->_httpRoot."op/op.Logout.php\">\n"; echo " \n"; echo " \n"; - echo " params['dms']->getRootFolder()->getId()."\">".(!empty($this->extraheader['logo']) ? '' : '').""; - echo " params['dms']->getRootFolder()->getId()."\">".(strlen($this->params['sitename'])>0 ? $this->params['sitename'] : "SeedDMS")."\n"; + echo " params['settings']->_httpRoot."out/out.ViewFolder.php?folderid=".$this->params['dms']->getRootFolder()->getId()."\">".(!empty($this->extraheader['logo']) ? '' : '').""; + echo " params['settings']->_httpRoot."out/out.ViewFolder.php?folderid=".$this->params['dms']->getRootFolder()->getId()."\">".(strlen($this->params['sitename'])>0 ? $this->params['sitename'] : "SeedDMS")."\n"; /* user profile menu {{{ */ if(isset($this->params['session']) && isset($this->params['user']) && $this->params['user']) { /* search form {{{ */ - echo "
"; + echo " params['settings']->_httpRoot."out/out.Search.php\" class=\"form-inline navbar-search pull-left\" autocomplete=\"off\">"; if ($folder!=null && is_object($folder) && $folder->isType('folder')) { echo " getID()."\" />"; } @@ -333,9 +333,9 @@ background-image: linear-gradient(to bottom, #882222, #111111);; if (!$this->params['user']->isGuest()) { $menuitems = array(); if ($accessobject->check_view_access('MyDocuments')) - $menuitems['my_documents'] = array('link'=>"../out/out.MyDocuments.php?inProcess=1", 'label'=>'my_documents'); + $menuitems['my_documents'] = array('link'=>$this->params['settings']->_httpRoot."out/out.MyDocuments.php?inProcess=1", 'label'=>'my_documents'); if ($accessobject->check_view_access('MyAccount')) - $menuitems['my_account'] = array('link'=>"../out/out.MyAccount.php", 'label'=>'my_account'); + $menuitems['my_account'] = array('link'=>$this->params['settings']->_httpRoot."out/out.MyAccount.php", 'label'=>'my_account'); if($this->hasHook('userMenuItems')) $menuitems = $this->callHook('userMenuItems', $menuitems); if($menuitems) { @@ -357,7 +357,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);; echo "
  • "; else echo "
  • "; - echo ""; + echo "params['settings']->_httpRoot."op/op.SetLanguage.php?lang=".$currLang."&referer=".$_SERVER["REQUEST_URI"]."\">"; echo getMLText($currLang)."
  • \n"; } echo " \n"; @@ -366,15 +366,15 @@ background-image: linear-gradient(to bottom, #882222, #111111);; if(!$this->params['session']->getSu()) { if($this->params['user']->isAdmin()) { $showdivider = true; - echo "
  • ".getMLText("substitute_user")."
  • \n"; + echo "
  • params['settings']->_httpRoot."out/out.SubstituteUser.php\">".getMLText("substitute_user")."
  • \n"; } } if($showdivider) echo "
  • \n"; if($this->params['session']->getSu()) { - echo "
  • ".getMLText("sign_out_user")."
  • \n"; + echo "
  • params['settings']->_httpRoot."op/op.ResetSu.php\">".getMLText("sign_out_user")."
  • \n"; } else { - echo "
  • ".getMLText("sign_out")."
  • \n"; + echo "
  • params['settings']->_httpRoot."op/op.Logout.php\">".getMLText("sign_out")."
  • \n"; } echo " \n"; echo " \n"; @@ -427,11 +427,11 @@ background-image: linear-gradient(to bottom, #882222, #111111);; echo " \n"; print "\n"; @@ -1030,7 +1031,7 @@ $(document).ready( function() { print htmlspecialchars($a["comment"]); if($a['file']) { echo "
    "; - echo " ".getMLText('download').""; + echo "params['settings']->_httpRoot."op/op.Download.php?documentid=".$documentid."&approvelogid=".$a['approveLogID']."\" class=\"btn btn-secondary btn-mini\"> ".getMLText('download').""; } echo "\n"; print ""; @@ -1044,14 +1045,14 @@ $(document).ready( function() { if($accessop->mayApprove()) { if ($is_approver) { if ($a['status'] == 0) { - print "
  • getDocument()->getId()."&version=".$latestContent->getVersion()."&approveid=".$a['approveID']."\">".getMLText("add_approval")."
  • "; + print "
  • params['settings']->_httpRoot."out/out.ApproveDocument.php?documentid=".$latestContent->getDocument()->getId()."&version=".$latestContent->getVersion()."&approveid=".$a['approveID']."\">".getMLText("add_approval")."
  • "; } elseif ($accessop->mayUpdateApproval($updateUser) && (($a["status"]==1)||($a["status"]==-1))) { - print "
  • getDocument()->getId()."&version=".$latestContent->getVersion()."&approveid=".$a['approveID']."\">".getMLText("edit")."
  • "; + print "
  • params['settings']->_httpRoot."out/out.ApproveDocument.php?documentid=".$latestContent->getDocument()->getId()."&version=".$latestContent->getVersion()."&approveid=".$a['approveID']."\">".getMLText("edit")."
  • "; } } } if($enableremoverevapp && $user->isAdmin() && ($a['status'] == 1 || $a['status'] == -1)) - echo '
  • '; + echo '
  • '; print ""; print "\n"; @@ -1106,9 +1107,9 @@ $(document).ready( function() { $this->contentContainerStart(); if($user->isAdmin()) { if(!$workflowstate || SeedDMS_Core_DMS::checkIfEqual($workflow->getInitState(), $workflowstate)) { - print "getDocument()->getId()."\" />getVersion()."\" />
    "; + print "
    params['settings']->_httpRoot."out/out.RemoveWorkflowFromDocument.php\" method=\"get\">getDocument()->getId()."\" />getVersion()."\" />
    "; } else { - print "
    getDocument()->getId()."\" />getVersion()."\" />
    "; + print "
    params['settings']->_httpRoot."out/out.RewindWorkflow.php\" method=\"get\">getDocument()->getId()."\" />getVersion()."\" />
    "; } } @@ -1208,7 +1209,7 @@ $(document).ready( function() { echo ""; if($latestContent->triggerWorkflowTransitionIsAllowed($user, $transition)) { $action = $transition->getAction(); - print "
    getDocument()->getId()."\" />getVersion()."\" />getID()."\" />getName()), array(), htmlspecialchars($action->getName()))."\" />
    "; + print "
    params['settings']->_httpRoot."out/out.TriggerWorkflow.php\" method=\"get\">getDocument()->getId()."\" />getVersion()."\" />getID()."\" />getName()), array(), htmlspecialchars($action->getName()))."\" />
    "; $allowedtransitions[] = $transition; } echo ""; @@ -1227,7 +1228,7 @@ $(document).ready( function() { } } if($subworkflows) { - echo "
    getDocument()->getId()."\" />getVersion()."\" />"; + echo "params['settings']->_httpRoot."out/out.RunSubWorkflow.php\" method=\"get\">getDocument()->getId()."\" />getVersion()."\" />"; echo "getDocument()->getId()."\" />getVersion()."\" />"; + echo "params['settings']->_httpRoot."out/out.ReturnFromSubWorkflow.php\" method=\"get\">getDocument()->getId()."\" />getVersion()."\" />"; echo ""; echo "
    "; } else { @@ -1274,7 +1275,7 @@ $(document).ready( function() { foreach($transitions as $transition) { if($latestContent->triggerWorkflowTransitionIsAllowed($user, $transition)) { echo "Triggering transition is allowed
    "; - echo "
    getDocument()->getId()."\" />getVersion()."\" />getID()."\" />"; + echo "params['settings']->_httpRoot."out/out.ReturnFromSubWorkflow.php\" method=\"get\">getDocument()->getId()."\" />getVersion()."\" />getID()."\" />"; echo ""; echo "
    "; @@ -1343,12 +1344,12 @@ $(document).ready( function() { $previewer->createPreview($file, $previewwidthdetail); if($file_exists) { if ($viewonlinefiletypes && (in_array(strtolower($file->getFileType()), $viewonlinefiletypes) || in_array(strtolower($file->getMimeType()), $viewonlinefiletypes))) - print "getID()."\">"; + print "params['settings']->_httpRoot."op/op.ViewOnline.php?documentid=".$documentid."&file=". $file->getID()."\">"; else - print "getID()."\">"; + print "params['settings']->_httpRoot."op/op.Download.php?documentid=".$documentid."&file=".$file->getID()."\">"; } if($previewer->hasPreview($file)) { - print("getID()."&file=".$file->getID()."&width=".$previewwidthdetail."\" title=\"".htmlspecialchars($file->getMimeType())."\">"); + print("params['settings']->_httpRoot."op/op.Preview.php?documentid=".$document->getID()."&file=".$file->getID()."&width=".$previewwidthdetail."\" title=\"".htmlspecialchars($file->getMimeType())."\">"); } else { print "getMimeIcon($file->getFileType())."\" title=\"".htmlspecialchars($file->getMimeType())."\">"; } @@ -1376,9 +1377,9 @@ $(document).ready( function() { print "