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