dolibarr  21.0.0-alpha
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 // Load Dolibarr environment
25 require '../../../../main.inc.php';
26 
27 top_httphead();
28 
29 ?>
30 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
31 <!--
32  * FCKeditor - The text editor for Internet - http://www.fckeditor.net
33  * Copyright (C) 2003-2010 Frederico Caldeira Knabben
34  *
35  * == BEGIN LICENSE ==
36  *
37  * Licensed under the terms of any of the following licenses at your
38  * choice:
39  *
40  * - GNU General Public License Version 2 or later (the "GPL")
41  * https://www.gnu.org/licenses/gpl.html
42  *
43  * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
44  * https://www.gnu.org/licenses/lgpl.html
45  *
46  * - Mozilla Public License Version 1.1 or later (the "MPL")
47  * http://www.mozilla.org/MPL/MPL-1.1.html
48  *
49  * == END LICENSE ==
50  *
51  * This page shows the actual folder path.
52 -->
53 <html>
54  <head>
55  <title>Folder path</title>
56  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
57 <?php
58 print '<!-- Includes CSS for Dolibarr theme -->'."\n";
59 // Output style sheets (optioncss='print' or ''). Note: $conf->css looks like '/theme/eldy/style.css.php'
60 $themepath = dol_buildpath($conf->css, 1);
61 $themesubdir = '';
62 if (!empty($conf->modules_parts['theme'])) { // This slow down
63  foreach ($conf->modules_parts['theme'] as $reldir) {
64  if (file_exists(dol_buildpath($reldir.$conf->css, 0))) {
65  $themepath = dol_buildpath($reldir.$conf->css, 1);
66  $themesubdir = $reldir;
67  break;
68  }
69  }
70 }
71 
72 //print 'themepath='.$themepath.' themeparam='.$themeparam;exit;
73 print '<link rel="stylesheet" type="text/css" href="'.$themepath.'">'."\n";
74 ?>
75  <link href="browser.css" type="text/css" rel="stylesheet">
76  <script type="text/javascript">
77 // Automatically detect the correct document.domain (#1919).
78 (function()
79 {
80  var d = document.domain ;
81 
82  while ( true )
83  {
84  // Test if we can access a parent property.
85  try
86  {
87  var test = window.top.opener.document.domain ;
88  break ;
89  }
90  catch( e )
91  {}
92 
93  // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ...
94  d = d.replace( /.*?(?:\.|$)/, '' );
95 
96  if ( d.length == 0 )
97  break ; // It was not able to detect the domain.
98 
99  try
100  {
101  document.domain = d ;
102  }
103  catch (e)
104  {
105  break ;
106  }
107  }
108 })();
109 
110 function SetCurrentFolder( resourceType, folderPath )
111 {
112  document.getElementById('tdName').innerHTML = folderPath ;
113 }
114 
115 window.onload = function()
116 {
117  window.top.IsLoadedActualFolder = true ;
118 }
119 
120  </script>
121  </head>
122  <body>
123  <table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0">
124  <tr>
125  <td>
126  <button style="WIDTH: 100%" type="button">
127  <table cellSpacing="0" cellPadding="0" width="100%" border="0">
128  <tr>
129  <td><?php echo img_picto_common('', 'treemenu/folder.gif', 'width="16" height="16"'); ?></td>
130  <td>&nbsp;</td>
131  <td id="tdName" width="100%" class="ActualFolder nowrap">/</td>
132  <td>&nbsp;</td>
133  <td>&nbsp;</td>
134  <td>&nbsp;</td>
135  </tr>
136  </table>
137  </button>
138  </td>
139  </tr>
140  </table>
141  </body>
142 </html>
img_picto_common($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $notitle=0)
Show picto (generic function)
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
ui state ui widget content ui state ui widget header ui state a ui button
0 = Do not include form tag and submit button -1 = Do not include form tag but include submit button
treeview li table
No Email.
if(!defined('NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.
Definition: main.inc.php:1650
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
Definition: repair.php:139