This repository has been archived by the owner on Mar 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ice_index.php
428 lines (400 loc) · 28.8 KB
/
ice_index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
<?php //check for a valid redaxo backend admin user session.
$baseUrl = 'https://%%HOST%%'.$_SERVER['REQUEST_URI'];
$url = preg_replace('{icecoder(.*)}', 'redaxo/index.php?page=users/users&rex-api-call=has_user_session&perm=admin', $baseUrl);
// passthru cookies, so the called api-function can determine the current users' session
$passCookies = [];
foreach($_COOKIE as $name => $value) {
$passCookies[] = $name. '='. $value;
}
$passCookies = implode(';', $passCookies);
$curl = curl_init($url);
// curl_setopt($curl, CURLOPT_VERBOSE, 1);
curl_setopt($curl, CURLOPT_COOKIE, $passCookies);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
// allow self-signed certificates
// curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
// curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
$json = curl_exec($curl);
if ($error = curl_error($curl)) {
echo 'Curl error '. curl_errno($curl) .': '. $error;
die();
}
curl_close($curl);
if (!$json || !($result = json_decode($json)) || !$result) {
header("HTTP/1.0 404 Not Found");
die();
}
// END OF REDAXO-CODE
// Now follows original index
// Version 8.1
use ICEcoder\ExtraProcesses;
include "lib/headers.php";
include "lib/settings.php";
$t = $text['index'];
$updateMsg = '';
// Check for updates
if (true === $ICEcoder["checkUpdates"]) {
$icvURL = "https://icecoder.net/latest-version?thisVersion=" . $ICEcoder["versionNo"];
$icvData = getData($icvURL, 'curl', false, 5);
if ("" == $icvData) {
$icvData = "1.0\nICEcoder version placeholder";
}
$icvInfo = str_replace("\n", "", $icvData);
$icv = preg_match("/^[0-9.]+/", $icvInfo, $matches);
$icv = $matches[0];
$icvInfo = [
0 => $icv,
1 => substr($icvInfo, strlen($matches[0]))
];
$icvI = str_replace('"', '\\\'', $icvInfo[1]);
$thisV = $ICEcoder["versionNo"];
if (-1 < strpos($thisV, "beta") && false === strpos($icv, "beta") && str_replace(" beta", "", $thisV) === $icv) {
$thisV-=0.1;
};
if ($thisV < $icv) {
$updateMsg =
";ICEcoder.dataMessage('<b>" . $t['UPDATE INFO'] .
":</b> ICEcoder " . explode("\n", $icvData)[0] ." " . $t['now available'] . ". (" . $t['Your version is'] . " " . $ICEcoder["versionNo"] .
").<br><br><a href=\\'https://icecoder.net\\' target=\\'_blank\\' style=\\'color:#fff; background: #b00; padding: 5px; text-decoration: none; cursor: pointer\\'>" .
$t['Update now'] . "</a><br><br>" . $icvI ."');";
}
}
$isMac = false !== strpos($_SERVER['HTTP_USER_AGENT'], "Macintosh") ? true : false;
?>
<!DOCTYPE html>
<html = true; ICEcoder.resetAutoLogoutTimer();" = false; ICEcoder.resetAutoLogoutTimer(); ICEcoder.mouseDownInCM = false; if (!ICEcoder.overCloseLink) {ICEcoder.tabDragEnd()}" ('undefined' !== typeof ICEcoder) {ICEcoder.getMouseXY(event, 'top'); ICEcoder.resetAutoLogoutTimer(); ICEcoder.canResizeFilesW()}" if (ICEcoder.getcMInstance() && !ICEcoder.getcMInstance().hasFocus() && !ICEcoder.getcMdiffInstance().hasFocus()) {event.wheelDelta > 0 ? ICEcoder.nextTab() : ICEcoder.previousTab();}">
<head>
<title>ICEcoder <?php echo $ICEcoder["versionNo"];?></title>
<!--Updated via settings so must remain 1st stylesheet//-->
<style>
#tabsBar.tabsBar .tab { font-size: <?php echo $ICEcoder["fontSize"];?>; }
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow">
<meta name="viewport" content="width=device-width, initial-scale=0.5, user-scalable=no">
<link rel="stylesheet" type="text/css" href="<?php echo $iceURLPath;?>/assets/css/resets.css?microtime=<?php echo microtime(true);?>">
<link rel="stylesheet" type="text/css" href="<?php echo $iceURLPath;?>/assets/css/icecoder.css?microtime=<?php echo microtime(true);?>">
<link rel="stylesheet" type="text/css" href="<?php echo $iceURLPath;?>/assets/css/file-type-icons.css?microtime=<?php echo microtime(true);?>">
<link rel="stylesheet" href="<?php
echo $iceURLPath . "/assets/css/theme/";
echo "default" === $ICEcoder["theme"] ? 'icecoder.css' : $ICEcoder["theme"] . '.css';
echo "?microtime=" . microtime(true);
?>">
<link rel="icon" type="image/png" href="<?php echo $iceURLPath;?>/assets/images/favicon.png">
<script>
iceRoot = "<?php echo $ICEcoder['root']; ?>";
window. {
if (ICEcoder.autoLogoutTimer < ICEcoder.autoLogoutMins * 60) {
for (var i = 1; i <= ICEcoder.savedPoints.length; i++) {
if (ICEcoder.savedPoints[i - 1] != ICEcoder.getcMInstance(i).changeGeneration()) {
return "<?php echo $t['You have some...'];?>.";
}
}
return "<?php echo $t['Are you sure...'];?>";
}
}
t = {
<?php
// Load the lang array for what's in the JS file
$t = $text['icecoder'];
$tOutput = "";
foreach ($t as $key => $value) {
$tOutput .= '"' . $key . '" : "' . $value . '",' . PHP_EOL;
}
echo rtrim($tOutput, "," . PHP_EOL) . PHP_EOL;
// Back to the lang array for index
$t = $text['index'];
?>
}
</script>
<script language="JavaScript" src="<?php echo $iceURLPath;?>/assets/js/icecoder.js?microtime=<?php echo microtime(true);?>"></script>
<?php
$havePrettier = false;
foreach ($ICEcoder['plugins'] as $plugin) {
if ("Prettier" === $plugin[0]) {
$havePrettier = true;
}
}
if (true === $havePrettier && true === file_exists(dirname(__FILE__) . "/plugins/prettier/standalone.js")) {
?>
<script language="JavaScript" src="<?php echo $iceURLPath;?>/plugins/prettier/standalone.js?microtime=<?php echo microtime(true);?>"></script>
<script language="JavaScript" src="<?php echo $iceURLPath;?>/plugins/prettier/parser-babel.js?microtime=<?php echo microtime(true);?>"></script>
<script language="JavaScript" src="<?php echo $iceURLPath;?>/plugins/prettier/parser-postcss.js?microtime=<?php echo microtime(true);?>"></script>
<script language="JavaScript" src="<?php echo $iceURLPath;?>/plugins/prettier/parser-typescript.js?microtime=<?php echo microtime(true);?>"></script>
<script language="JavaScript" src="<?php echo $iceURLPath;?>/plugins/prettier/parser-html.js?microtime=<?php echo microtime(true);?>"></script>
<script language="JavaScript" src="<?php echo $iceURLPath;?>/plugins/prettier/parser-markdown.js?microtime=<?php echo microtime(true);?>"></script>
<script language="JavaScript" src="<?php echo $iceURLPath;?>/plugins/prettier/parser-yaml.js?microtime=<?php echo microtime(true);?>"></script>
<script language="JavaScript" src="<?php echo $iceURLPath;?>/plugins/prettier/parser-php.js?microtime=<?php echo microtime(true);?>"></script>
<?php
}
?>
<script src="<?php echo $iceURLPath;?>/assets/js/mmd.js?microtime=<?php echo microtime(true);?>"></script>
<script src="<?php echo $iceURLPath;?>/assets/js/farbtastic.js?microtime=<?php echo microtime(true);?>"></script>
<script src="<?php echo $iceURLPath;?>/assets/js/difflib.js?microtime=<?php echo microtime(true);?>"></script>
<link rel="stylesheet" href="<?php echo $iceURLPath;?>/assets/css/farbtastic.css?microtime=<?php echo microtime(true);?>" type="text/css">
</head>
<body >
echo "ICEcoder.versionNo = '" . $ICEcoder["versionNo"] . "';".
'ICEcoder.previousFiles = [';
if (false === empty($ICEcoder["previousFiles"])) {
echo "'" . implode("','", $ICEcoder["previousFiles"]) . "'";
}
echo "];";
echo "ICEcoder.theme = '" . ("default" === $ICEcoder["theme"] ? 'icecoder' : $ICEcoder["theme"]) . "';" .
"ICEcoder.autoLogoutMins = " . $ICEcoder["autoLogoutMins"] . ";" .
"ICEcoder.fontSize = '" . $ICEcoder["fontSize"] . "';" .
"ICEcoder.openLastFiles = " . ($ICEcoder["openLastFiles"] ? 'true' : 'false') . ";" .
"ICEcoder.updateDiffOnSave = " . ($ICEcoder["updateDiffOnSave"] ? 'true' : 'false') . ";" .
"ICEcoder.languageUser = '".$ICEcoder["languageUser"] . "';" .
"ICEcoder.codeAssist = " . ($ICEcoder["codeAssist"] ? 'true' : 'false') . ";" .
"ICEcoder.lockedNav = " . ($ICEcoder["lockedNav"] ? 'true' : 'false') . ";" .
"ICEcoder.lineWrapping = " . ($ICEcoder["lineWrapping"] ? 'true' : 'false') . ";" .
"ICEcoder.lineNumbers = " . ($ICEcoder["lineNumbers"] ? 'true' : 'false') . ";" .
"ICEcoder.showTrailingSpace = " . ($ICEcoder["showTrailingSpace"] ? 'true' : 'false') . ";" .
"ICEcoder.matchBrackets = " . ($ICEcoder["matchBrackets"] ? 'true' : 'false') . ";" .
"ICEcoder.autoCloseTags = " . ($ICEcoder["autoCloseTags"] ? 'true' : 'false') . ";" .
"ICEcoder.autoCloseBrackets = " . ($ICEcoder["autoCloseBrackets"] ? 'true' : 'false') . ";" .
"ICEcoder.indentType = '" . $ICEcoder["indentType"] . "';" .
"ICEcoder.indentAuto = " . ($ICEcoder["indentAuto"] ? 'true' : 'false') . ";" .
"ICEcoder.indentSize = " . $ICEcoder["indentSize"] . ";" .
"ICEcoder.scrollbarStyle = '" . $ICEcoder["scrollbarStyle"] . "';" .
"ICEcoder.demoMode = " . ($ICEcoder["demoMode"] ? 'true' : 'false') . ";" .
"ICEcoder.tagWrapperCommand = '" . $ICEcoder["tagWrapperCommand"] . "';" .
"ICEcoder.autoComplete = '" . $ICEcoder["autoComplete"] . "';" .
"ICEcoder.selectNextOnFindInput = " . ($ICEcoder["selectNextOnFindInput"] ? 'true' : 'false') . ";" .
"ICEcoder.goToLineScrollSpeed = '" . $ICEcoder["goToLineScrollSpeed"] . "';" .
"ICEcoder.bugFilePaths = ['" . implode("','",$ICEcoder["bugFilePaths"]) . "'];" .
"ICEcoder.bugFileCheckTimer = ".$ICEcoder["bugFileCheckTimer"] . ";" .
"ICEcoder.bugFileMaxLines = " . $ICEcoder["bugFileMaxLines"] . ";" .
"ICEcoder.fileDirResOutput = '" . $ICEcoder["fileDirResOutput"] . "';" .
"ICEcoder.newDirPerms = " . $ICEcoder["newDirPerms"] . ";" .
"ICEcoder.newFilePerms = " . $ICEcoder["newFilePerms"] . ";";
echo "ICEcoder.csrf = '" . $_SESSION["csrf"] . "';";
if (true === $ICEcoder["tutorialOnLogin"]) {
echo "ICEcoder.viewTutorial(false, 700);";
}
$extraProcessesClass = new ExtraProcesses();
$>
?>ICEcoder.init()<?php echo $updateMsg . $onLoadExtras;?>;ICEcoder.content.style.visibility = 'visible';<?php echo $onLoad;?><?php if (true === isset($_GET["display"]) && "updated" === $_GET["display"]) {echo "ICEcoder.updated();";};?>" ICEcoder.interceptKeys('coder', event);" ('visible' === get('blackMask').style.visibility) {ICEcoder.handleModalKeyUp(event, 'modalGeneralCatch')}; ICEcoder.resetKeys(event);" >
<div id="blackMask" class="blackMask" (!ICEcoder.overPopup) {ICEcoder.showHide('hide', this)}" false">
<div class="popupVCenter">
<div class="popup" id="mediaContainer"></div>
</div>
<div class="floatingContainer" id="floatingContainer"></div>
</div>
<div id="loadingMask" class="blackMask" style="visibility: visible" false">
<div class="popupVCenter">
<div class="popup">
<div class="spinner"></div>
<?php echo $t['working'];?>...
</div>
</div>
</div>
<div id="infoBlackMask" class="infoBlackMask" false"></div>
<div id="infoMessageContainer" class="infoMessageContainer" false">
<div id="infoMessage" class="infoMessage"></div>
</div>
<div id="plugins" class="plugins" style="<?php echo $ICEcoder["pluginPanelAligned"];?>: 0" >
<div style="padding: 15px">
<a nohref ? document.getElementById('color').value : '#123456')" title="Farbtastic
<?php echo $t['Color picker'];?>"><img src="<?php echo $iceURLPath;?>/assets/images/color-picker.png" style="cursor: pointer" alt="Color Picker"></a><br><br>
<div id="pluginsOptional"><?php echo $pluginsDisplay; ?></div>
<a nohref title="<?php echo $t['Plugins Manager'];?>" style="color: #ddd; margin-left: 2px; cursor: pointer"><?php echo file_get_contents(dirname(__FILE__) . "/assets/images/icons/plus.svg");?></a>
</div>
</div>
<div id="fileMenu" class="fileMenu" ICEcoder.hideFileMenu()" style="opacity: 0" false">
<span id="folderMenuItems">
<a href="javascript:ICEcoder.newFile()" echo $t['New File'];?></a>
<a href="javascript:ICEcoder.newFolder()" echo $t['New Folder'];?></a>
<div style="padding: 2px 0"><hr></div>
<a href="javascript:ICEcoder.uploadFilesSelect(ICEcoder.selectedFiles[ICEcoder.selectedFiles.length - 1])" echo $t['Upload File(s)'];?></a>
<div style="display: none">
<form enctype="multipart/form-data" id="uploadFilesForm" action="<?php echo $iceURLPath;?>/lib/file-control.php?action=upload&file=/uploaded" method="POST" target="fileControl">
<input type="hidden" name="folder" id="uploadDir" value="/">
<input type="file" name="filesInput[]" id="fileInput" multiple>
<input type="submit" value="Upload File">
<input type="hidden" name="csrf" value="<?php echo $_SESSION["csrf"]; ?>">
</form>
</div>
<a href="javascript:ICEcoder.pasteFiles(ICEcoder.selectedFiles[ICEcoder.selectedFiles.length - 1])" id="fmMenuPasteOption" style="display: none"><?php echo $t['Paste'];?></a>
<div style="padding: 2px 0"><hr></div>
</span>
<a href="javascript:ICEcoder.openFilesFromList(ICEcoder.selectedFiles)" echo $t['Open'];?></a>
<a href="javascript:ICEcoder.copyFiles(ICEcoder.selectedFiles)" echo $t['Copy'];?></a>
<a href="javascript:ICEcoder.duplicateFiles(ICEcoder.selectedFiles)" echo $t['Duplicate'];?></a>
<a href="javascript:ICEcoder.deleteFiles(ICEcoder.selectedFiles)" echo $t['Delete'];?></a>
<span id="singleFileMenuItems">
<a href="javascript:ICEcoder.renameFile(ICEcoder.selectedFiles[ICEcoder.selectedFiles.length - 1])" echo $t['Rename'];?></a>
<div style="padding: 2px 0"><hr></div>
<a nohref echo $_SERVER['HTTP_HOST'];?>' + iceRoot + ICEcoder.selectedFiles[ICEcoder.selectedFiles.length - 1].replace(/\|/g, '/'))" style="cursor: pointer"><?php echo $t['View Webpage'];?></a>
</span>
<div style="padding: 2px 0"><hr></div>
<?php
if (true === file_exists(dirname(__FILE__) . "/plugins/zip-it/index.php")) {
echo '<a href="javascript:ICEcoder.zipIt(ICEcoder.selectedFiles[ICEcoder.selectedFiles.length - 1])" It!</a>' . PHP_EOL;
};
?>
<a href="javascript:ICEcoder.downloadFile(ICEcoder.selectedFiles[ICEcoder.selectedFiles.length - 1])" echo $t['Download'];?></a>
<div style="padding: 2px 0"><hr></div>
<a href="javascript:ICEcoder.propertiesScreen(ICEcoder.selectedFiles[ICEcoder.selectedFiles.length - 1])" echo $t['Properties'];?></a>
</div>
<div id="header" class="header" false"></div>
<div id="files" class="files" ICEcoder.hideFileMenu();" false">
<div id="fileNav" class="fileNav">
<ul>
<li><a nohref = true; ICEcoder.showHideFileNav('show', 'optionsFile')" (ICEcoder.canShowFMNav) {ICEcoder.showHideFileNav('show', 'optionsFile')}" id="optionsFileNav"><?php echo $t['File'];?></a></li>
<li><a nohref = true; ICEcoder.showHideFileNav('show', 'optionsEdit')" (ICEcoder.canShowFMNav) {ICEcoder.showHideFileNav('show', 'optionsEdit')}" id="optionsEditNav"><?php echo $t['Edit'];?></a></li>
<li><a nohref = true; ICEcoder.showHideFileNav('show', 'optionsSettings')" (ICEcoder.canShowFMNav) {ICEcoder.showHideFileNav('show', 'optionsSettings')}" id="optionsSettingsNav"><?php echo $t['Settings'];?></a></li>
<li><a nohref = true; ICEcoder.showHideFileNav('show', 'optionsHelp')" (ICEcoder.canShowFMNav) {ICEcoder.showHideFileNav('show', 'optionsHelp')}" id="optionsHelpNav"><?php echo $t['Help'];?></a></li>
</ul>
</div>
<div class="options" id="fileOptions">
<div id="optionsFile" class="optionsList" this.id)" this.id); ICEcoder.canShowFMNav = false">
<ul>
<li><a nohref echo $t['New File'];?>...</a></li>
<li><a nohref echo $t['New Folder'];?>...</a></li>
<li><a nohref echo $t['Open'];?>...</a></li>
<li><a nohref false)"><?php echo $t['Save'];?></a></li>
<li><a nohref false)"><?php echo $t['Save As'];?>...</a></li>
<li><a nohref echo $t['Live Preview'];?></a></li>
<li><a nohref - 1])"><?php echo $t['Download'];?></a></li>
<li><a nohref echo $t['Copy'];?></a></li>
<li><a nohref - 1])"><?php echo $t['Paste'];?></a></li>
<li><a nohref echo $t['Delete'];?></a></li>
<li><a nohref echo $t['Duplicate'];?></a></li>
<li><a nohref - 1])"><?php echo $t['Rename'];?></a></li>
<li><a nohref - 1])"><?php echo $t['Upload'];?>...</a></li>
<li><a nohref - 1])"><?php echo $t['Zip'];?></a></li>
<li><a nohref - 1])"><?php echo $t['Properties'];?>...</a></li>
<li><a nohref echo $t['Print'];?>...</a></li>
<li><a nohref echo $t['Fullscreen toggle'];?></a></li>
<?php if (true === $ICEcoder['loginRequired']) {?>
<li><a nohref echo $t['Logout'];?></a></li>
<?php ;}; ?>
</ul>
</div>
<div id="optionsEdit" class="optionsList" this.id)" this.id); ICEcoder.canShowFMNav = false">
<ul>
<li><a nohref echo $t['Undo'];?></a></li>
<li><a nohref echo $t['Redo'];?></a></li>
<li><a nohref echo $t['Indent more'];?></a></li>
<li><a nohref echo $t['Indent less'];?></a></li>
<li><a nohref echo $t['Autocomplete'];?></a></li>
<li><a nohref echo $t['Comment/Uncomment'];?></a></li>
<li><a nohref echo $t['Jump to Definition'];?></a></li>
</ul>
</div>
<div id="optionsSettings" class="optionsList" this.id)" this.id);ICEcoder.canShowFMNav = false">
<ul>
<li><a nohref 'general')">General</a></li>
<li><a nohref 'style')">Style</a></li>
<li><a nohref 'accounts')">Accounts</a></li>
<li><a nohref 'security')">Security</a></li>
<li><a nohref >
</ul>
</div>
<div id="optionsHelp" class="optionsList" this.id)" this.id);ICEcoder.canShowFMNav = false">
<ul>
<li><a nohref 500)">Tutorial</a></li>
<li><a href="https://icecoder.net/usage" target="_blank">Usage</a></li>
<li><a href="https://icecoder.net/tips-tricks" target="_blank">Tips & Tricks</a></li>
<li><a nohref echo $ICEcoder["versionNo"];?>')"><?php echo $t['Manual'];?></a></li>
<li><a nohref echo $t['Shortcuts'];?></a></li>
<li><a nohref echo $t['Search for selected'];?></a></li>
<li><a href="https://icecoder.net" target="_blank">ICEcoder <?php echo $t['website'];?></a></li>
</ul>
</div>
</div>
<iframe id="filesFrame" class="frame" name="ff" src="<?php echo $iceURLPath;?>/files.php" style="opacity: 0" = '1'; this.contentWindow. = false; ICEcoder.mouseDownInCM = false}"></iframe>
<div class="tools" id="tools">
<div id="toolLinkTerminal" title="Terminal"><?php echo file_get_contents(dirname(__FILE__) . "/assets/images/icons/terminal-2.svg");?></div>
<div this.className = ''" id="toolLinkOutput" title="Output"><?php echo file_get_contents(dirname(__FILE__) . "/assets/images/icons/layout-list.svg");?></div>
<div id="toolLinkDatabase" title="Database"><?php echo file_get_contents(dirname(__FILE__) . "/assets/images/icons/database.svg");?></div>
<div id="toolLinkGit" title="Git"><?php echo file_get_contents(dirname(__FILE__) . "/assets/images/icons/git-compare.svg");?></div>
</div>
</div>
<div id="editor" class="editor">
<div id="tabsBar" class="tabsBar" false">
<a nohref src="<?php echo $iceURLPath;?>/assets/images/nav-close-all.gif" class="closeAllTabs" title="<?php echo $t['Close all tabs'];?>"></a>
<a nohref src="<?php echo $iceURLPath;?>/assets/images/nav-alpha.png" class="alphaTabs" title="<?php echo $t['Alphabetize tabs'];?>"></a>
<?php
for ($i = 1; $i <= 100; $i++) {
echo '<div id="tab' . $i . '" class="tab" (false === ICEcoder.overCloseLink) {ICEcoder.switchTab(parseInt(this.id.slice(3), 10)); ICEcoder.tabDragStart(parseInt(this.id.slice(3), 10))}; if (1 === event.button) {ICEcoder.closeTab(parseInt(this.id.slice(3), 10)); return false}; thisColor = ICEcoder.colorSelectedText;" = this.style.color; this.style.color = ICEcoder.colorSelectedText" = thisColor" >
}
?><div class="newTab" id="newTab">+</div>
</div>
<div id="findBar" class="findBar" false">
<form name="findAndReplace" false, false, false); ICEcoder.getcMInstance().focus(); return false">
<div class="findReplace">
<div class="findRegexToggle" id="findRegexToggle" title="RegEx">^$</div><div class="findText"><?php echo $t['Find'];?></div>
<input type="text" name="find" value="" id="find" class="textbox find" >
<div class="selectWrapper" style="width: 41px">
<select name="connector" style="width: 40px; margin-top: 4px">
<option><?php echo $t['in'];?></option>
<option><?php echo $t['and'];?></option>
</select>
</div>
<div class="replaceText" id="rText" style="display: none">
<div class="selectWrapper" style="width: 75px; overflow: visible">
<select name="replaceAction" style="width: 72px; margin-top: -2px">
<option><?php echo $t['replace'];?></option>
<option><?php echo $t['replace all'];?></option>
</select>
</div>
<div class="withText">with</div>
</div>
<input type="text" name="replace" value="" id="replace" class="textbox replace" style="display: none">
<div class="targetText" id="rTarget" style="display: none">in</div>
<div class="selectWrapper" style="width: 104px">
<select name="target" document' === this.value ? 'show' : 'hide')" style="width: 101px; margin-top: 4px; margin-left: 2px">
<option><?php echo $t['this document'];?></option>
<option><?php echo $t['open documents'];?></option>
<option><?php echo $t['all files'];?></option>
<option><?php echo $t['all filenames'];?></option>
</select>
</div>
<input type="button" name="prev" value="<<" class="button" true, true, true);">
<input type="button" name="next" value=">>" class="button" true, true, false);">
<input type="submit" name="sub" value="sub" style="display: none">
<div class="results" id="results"></div>
</div>
<input type="hidden" name="csrf" value="<?php echo $_SESSION["csrf"]; ?>">
</form>
<form ICEcoder.goToLine(get('goToLineNo').value, 0, false)">
<div class="goLine"><?php echo $t['Go to Line'];?> <input type="text" name="goToLine" value="" maxlength="5" id="goToLineNo" 0, true)" class="textbox goToLine"></div>
<div class="view" title="<?php echo $t['View'];?>" id="fMView"><?php echo file_get_contents(dirname(__FILE__) . "/assets/images/icons/browser.svg");?></div>
<div class="bug" title="<?php echo $t['Bug reporting not active'];?>" id="bugIcon"><?php echo file_get_contents(dirname(__FILE__) . "/assets/images/icons/bug.svg");?></div>
<input type="hidden" name="csrf" value="<?php echo $_SESSION["csrf"]; ?>">
</form>
</div>
<iframe name="terminalFrame" id="terminal" src="<?php echo $iceURLPath;?>/terminal.php" class="terminal"></iframe>
<pre id="output" class="output" style="font-family: monospace"><b>Output</b><br>via ICEcoder.output(message);<br><br></pre>
<iframe name="databaseFrame" id="database" src="<?php echo $iceURLPath;?>/lib/database.php" class="database"></iframe>
<div id="git" class="git" style="font-family: monospace"><?php
if (file_exists($docRoot . $ICEcoderDir . "/data/git-diff.php")) {
echo "Looking for git status...";
} else {
echo "To provide git diff data to ICEcoder, please run...<br><br>sudo nohup php server/run-tasks.php > data/nohup.log 2>&1 &<br><br>...to run as a background process";
};?></div>
<iframe name="contentFrame" id="content" src="<?php echo $iceURLPath;?>/editor.php" class="code" scrolling="no"></iframe>
</div>
<div class="footer" id="footer" false">
<div class="versionsDisplay" id="versionsDisplay" - 1].replace(/\//g, '|'))"></div>
<div class="serverMessage" id="serverMessage"></div>
<div class="splitPaneControls" id="splitPaneControls"><div class="off" id="splitPaneControlsOff" title="<?php echo $t['Single pane'];?>" style="opacity: 0.8"><?php echo file_get_contents(dirname(__FILE__) . "/assets/images/icons/square.svg");?></div><div class="on" id="splitPaneControlsOn" title="<?php echo $t['Diff pane also'];?>" style="opacity: 0.2"><?php echo file_get_contents(dirname(__FILE__) . "/assets/images/icons/layout-columns.svg");?></div></div>
<div class="splitPaneNames" id="splitPaneNamesMain">Main Pane</div>
<div class="splitPaneNames" id="splitPaneNamesDiff">Diff Pane</div>
<div class="byteDisplay" id="byteDisplay" style="display: none" >
<div class="charDisplay" id="charDisplay" style="display: inline-block" >
</div>
<div id="tooltip" class="tooltip" style="display: none"></div>
<div class="closeIcon" style="display: none" id="closeIcon"><?php echo file_get_contents(dirname(__FILE__) . "/assets/images/icons/x.svg");?></div>
<?php
echo $systemClass->getDemoModeIndicator(false);
?>
<script>
ICEcoder.initAliases();
ICEcoder.setLayout(false);
</script>
</body>
</html>
You can’t perform that action at this time.