Matt Pass
394067ff07
Need <b> and <br> after cleaning and https used
2014-04-26 12:23:04 +01:00
Matt Pass
ed800a01ce
https: used
2014-04-26 12:22:31 +01:00
Matt Pass
9a2881cd7b
Remove comma
2014-04-24 12:10:17 +01:00
Matt Pass
6e7612d3ec
Inform user they can't delete the root
...
Stops the root accidentally being deleted
2014-04-23 08:22:44 +01:00
Matt Pass
0413ec4414
xssClean using 'html' filter
2014-04-23 07:43:17 +01:00
Matt Pass
c88d4f46e3
Rewrite of xssClean function to be neater
2014-04-23 07:41:30 +01:00
Matt Pass
1306853e1e
Cannot use $_REQUEST, should be $_GET || $_POST
...
$_REQUEST appears to contain other system info, need to check on the
existence of $_GET or $_POST data
2014-04-23 07:23:02 +01:00
Matt Pass
078068e252
Don't allow directory traversal
2014-04-23 07:12:13 +01:00
Matt Pass
69d8ddce77
Need to target on top.ICEcoder.xssClean
2014-04-22 09:25:18 +01:00
Matt Pass
3926d4468c
xssClean function added & used by serverMessage
...
Replaces 5 x based HTML chars
2014-04-22 08:55:09 +01:00
Matt Pass
d6a7db8f3e
xssClean function added
...
Had 4 different contexts, the first 2 alter parts of strings, the last 2
remove those parts
2014-04-22 08:05:40 +01:00
Matt Pass
d6fcf5a121
Need CSRF on URL called on logout
2014-04-21 08:32:22 +01:00
Matt Pass
328a8a9808
Adjustment to value, should just be nosniff
2014-04-21 08:15:34 +01:00
Matt Pass
0daf6c3081
Redo security headers
2014-04-21 07:57:41 +01:00
Matt Pass
1d5c74e424
Add CSRF and clickjacking protection
...
This header file included in all PHP files as first item.
CSRF checks happen on GET or POST instances
Security related headers also added to prevent clickjacking
2014-04-18 18:21:17 +01:00
Matt Pass
c6bb782118
Add csrf to end of all querystrings
2014-04-18 18:19:58 +01:00
Matt Pass
b45817ec65
headers.php included and csrf POST added
2014-04-18 18:10:50 +01:00
Matt Pass
a15dfda92c
headers.php included and csrf POST and GET added
2014-04-18 18:07:49 +01:00
Matt Pass
6030e9a4ca
This is now set, in headers.php
2014-04-18 17:59:27 +01:00
Matt Pass
a3c0243772
Include headers lib & csrf hidden form field
...
To help protect against CSRF and clickjacking
Also include hidden form field containing this for postback
top.ICEcoder.csrf also set
2014-04-18 17:57:54 +01:00
Matt Pass
3d89af7e17
Add trailing slash to path
...
Otherwise, will ignore files such as lib/plugins-display.php etc
2014-04-18 12:44:36 +01:00
Matt Pass
03655c4c4b
Find config- files and update those
...
No longer using 3 hardcoded examples in array, but scanning the old dir
and updating files beginning 'config-'. That covers the .php and old
files also.
2014-04-18 12:21:49 +01:00
Matt Pass
acfcb6bf9d
$context added & sub function to transpose
...
$context added as global so we don't get undefined
transposeSettings function added as sub function we can all with params
copyOverSettings is now a function which calls that sub function 3
times.
2014-04-18 11:39:14 +01:00
Matt Pass
57593d730f
Now copying over users template & settings
...
Coping over system settings now won't set line if $thisKey is blank
2 more functions added to copy over users template and users settings
files. These are largely the same as copying over settings, so will make
a sub function and call will params as a next step.
2014-04-18 10:17:48 +01:00
Matt Pass
a141a4bdf5
Remove line breaks and extra tabs
...
Makes it easier to update in the updater process
2014-04-18 10:11:10 +01:00
Matt Pass
33e751027d
Get rid of line breaks, puts settings onto 1 line
...
Makes it easier to update in the updater process
2014-04-18 10:10:05 +01:00
Matt Pass
e65d2b0805
Copying over settings now completed
...
Gets old and new settings info, counts through each line of new settings
and if we have a match on the old settings, copy that over if it's not
versionNo or codeMirrorDir.
Saves settings once the $content is established
2014-04-18 08:35:21 +01:00
Matt Pass
9d7f7f8e93
Start copying settings over
...
$updateDone = true moved to end of new function, copyOverSettings
Extra echo line in openNewZip and then calls this function
Get settings from old config___settings.php file
For now, for each one, get $key and $value
Need to save these info new config___settings.php file
2014-04-16 08:48:24 +01:00
Matt Pass
91f14785b7
Don't move plugins dir
2014-04-16 08:10:45 +01:00
Matt Pass
1267a3c895
String replace on beta in filename and fopen alt
...
Establish $remoteFile which replaces ' beta' with '-beta'
Add fopen method also as not everyone has cURL
Display die message if both of those fail
2014-04-16 07:44:29 +01:00
Matt Pass
0748f495df
On moving files pass fileOrFolder with add action
2014-04-15 08:40:37 +01:00
Matt Pass
83f6c5cf53
Only move to different folder and 3 x bug fixes
...
Global iceRoot so it can be used
Escape apostrophe's in $fileName on upload
Establish $srcDir and $tgtDir and only consider moving if $srcDir !=
$tgtDir and $fileLoc != ""
$fileOrFolder now established on moving and passed as param to
updateFileManagerList
2014-04-15 08:39:46 +01:00
Matt Pass
1385d65a2b
Use new fileOrFolder param to determin type
...
Rather than rely on a . in the name
2014-04-14 08:36:23 +01:00
Matt Pass
68e5e0b5a5
Specify if it's a file or folder on updating FM
...
folder on new folder
set $fileOrFolder on pasting, that is used then on updating
file on uploading
file on saving
2014-04-14 08:35:26 +01:00
Matt Pass
72e98816f0
Need to check dir exists before removing
...
Subdirs could end up being removed in a race condition via rmdir at end
of deletePlugin function
Tweak die error messages to indicate dir or file
2014-04-14 07:35:44 +01:00
Matt Pass
641ff79493
Only use location if iceRoot is blank
...
Because setting an root path has its own relative file path
2014-04-11 08:50:23 +01:00
Matt Pass
7264deee67
8 new languages added
...
C, C++, C#, Go, Lua, Perl, Rust and Sass added
2014-04-10 10:04:28 +01:00
Matt Pass
f08552c5e3
Upgrade to CodeMirror 3.23
2014-04-10 10:04:26 +01:00
Matt Pass
842d7e5b37
Julia lib removed, in main codemirror JS lib now
2014-04-10 10:04:21 +01:00
Matt Pass
1c81713063
Break down into var and then array usage
...
Won't work this way on old versions of PHP
2014-03-24 07:32:23 +00:00
Matt Pass
43ddc3d78f
Moved into sub function
...
adjustCursor not available from child scope
2014-03-20 14:33:08 +00:00
Matt Pass
6b35c5dd2c
Update to match main JS
2014-03-20 07:18:55 +00:00
Matt Pass
33b2c7a06c
Should be an array, not a string
2014-03-19 19:05:07 +00:00
Matt Pass
04a11bdc4a
Using CodeMirror 3.22 now
2014-03-19 18:48:16 +00:00
Matt Pass
9ee6a80209
Julia added as a seperate file as a temp measure
...
Not available in CodeMirror minification helper right now
2014-03-19 18:48:04 +00:00
Matt Pass
08c17154a8
4 new languages added
...
Erlang, Java, Julia and YAML
2014-03-19 18:46:55 +00:00
Matt Pass
147a3863a6
v4.0 beta
2014-03-15 14:12:57 +00:00
Matt Pass
fba79948c8
Formatting with indents only
2014-03-15 14:09:31 +00:00
Matt Pass
29e5dc0eae
Language related items moved to seperate files
...
Makes it easier for users to customise languages supported
2014-03-15 14:09:06 +00:00
Matt Pass
949e5790a3
Clear and set bug interval and minor tweaks
...
If we have a bug path, start checking on bugs, otherwise clear interval
(needed when removing the paths during our usage
Don't push into our array, but set the array params on our i counter
px needed on CSS values
If our timer is 0, fall into an else statement and clear the interval if
it exists
Return false after handling shortcut for fold/unfold line
2014-03-15 13:33:36 +00:00