dolibarr  16.0.5
frmactualfolder.php
1 <?php
2 /* Copyright (C) 2011 Laurent Destailleur <eldy@users.sourceforge.net>
3  * Copyright (C) 2003-2010 Frederico Caldeira Knabben
4  *
5  * Source modified from part of fckeditor (http://www.fckeditor.net)
6  * retrieved as GPL v2 or later
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <https://www.gnu.org/licenses/>.
20  */
21 
22 define('NOTOKENRENEWAL', 1); // Disables token renewal
23 
24 require '../../../../main.inc.php';
25 
26 ?>
27 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
28 <!--
29  * FCKeditor - The text editor for Internet - http://www.fckeditor.net
30  * Copyright (C) 2003-2010 Frederico Caldeira Knabben
31  *
32  * == BEGIN LICENSE ==
33  *
34  * Licensed under the terms of any of the following licenses at your
35  * choice:
36  *
37  * - GNU General Public License Version 2 or later (the "GPL")
38  * https://www.gnu.org/licenses/gpl.html
39  *
40  * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
41  * https://www.gnu.org/licenses/lgpl.html
42  *
43  * - Mozilla Public License Version 1.1 or later (the "MPL")
44  * http://www.mozilla.org/MPL/MPL-1.1.html
45  *
46  * == END LICENSE ==
47  *
48  * This page shows the actual folder path.
49 -->
50 <html>
51  <head>
52  <title>Folder path</title>
53  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
54 <?php
55 print '<!-- Includes CSS for Dolibarr theme -->'."\n";
56 // Output style sheets (optioncss='print' or ''). Note: $conf->css looks like '/theme/eldy/style.css.php'
57 $themepath = dol_buildpath($conf->css, 1);
58 $themesubdir = '';
59 if (!empty($conf->modules_parts['theme'])) { // This slow down
60  foreach ($conf->modules_parts['theme'] as $reldir) {
61  if (file_exists(dol_buildpath($reldir.$conf->css, 0))) {
62  $themepath = dol_buildpath($reldir.$conf->css, 1);
63  $themesubdir = $reldir;
64  break;
65  }
66  }
67 }
68 
69 //print 'themepath='.$themepath.' themeparam='.$themeparam;exit;
70 print '<link rel="stylesheet" type="text/css" href="'.$themepath.'">'."\n";
71 ?>
72  <link href="browser.css" type="text/css" rel="stylesheet">
73  <script type="text/javascript">
74 // Automatically detect the correct document.domain (#1919).
75 (function()
76 {
77  var d = document.domain ;
78 
79  while ( true )
80  {
81  // Test if we can access a parent property.
82  try
83  {
84  var test = window.top.opener.document.domain ;
85  break ;
86  }
87  catch( e )
88  {}
89 
90  // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ...
91  d = d.replace( /.*?(?:\.|$)/, '' );
92 
93  if ( d.length == 0 )
94  break ; // It was not able to detect the domain.
95 
96  try
97  {
98  document.domain = d ;
99  }
100  catch (e)
101  {
102  break ;
103  }
104  }
105 })();
106 
107 function SetCurrentFolder( resourceType, folderPath )
108 {
109  document.getElementById('tdName').innerHTML = folderPath ;
110 }
111 
112 window.onload = function()
113 {
114  window.top.IsLoadedActualFolder = true ;
115 }
116 
117  </script>
118  </head>
119  <body>
120  <table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0">
121  <tr>
122  <td>
123  <button style="WIDTH: 100%" type="button">
124  <table cellSpacing="0" cellPadding="0" width="100%" border="0">
125  <tr>
126  <td><?php echo img_picto_common('', 'treemenu/folder.gif', 'width="16" height="16"'); ?></td>
127  <td>&nbsp;</td>
128  <td id="tdName" width="100%" class="ActualFolder nowrap">/</td>
129  <td>&nbsp;</td>
130  <td>&nbsp;</td>
131  <td>&nbsp;</td>
132  </tr>
133  </table>
134  </button>
135  </td>
136  </tr>
137  </table>
138  </body>
139 </html>
img_picto_common
img_picto_common($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $notitle=0)
Show picto (generic function)
Definition: functions.lib.php:4259
dol_buildpath
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
Definition: functions.lib.php:1062
type
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
Definition: repair.php:119