Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .buildpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<buildpath>
<buildpathentry kind="src" path=""/>
<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
</buildpath>
22 changes: 22 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Tinymce4Filemanager</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.dltk.core.scriptbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.php.core.PHPNature</nature>
</natures>
</projectDescription>
3 changes: 3 additions & 0 deletions .settings/org.eclipse.php.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
eclipse.preferences.version=1
include_path=0;/FileManager4TinyMCE
use_asp_tags_as_php=false
8 changes: 4 additions & 4 deletions tinymce/plugins/filemanager/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
if($_SESSION["verify"] != "FileManager4TinyMCE") die('forbidden');
include_once 'session_auth.php';

$root = rtrim($_SERVER['DOCUMENT_ROOT'],'/'); // don't touch this configuration

Expand All @@ -8,17 +8,17 @@
//**********************
// In this configuration the folder tree is
// root
// |- uploads <- upload folder
// |- tinymce
// | |- source <- upload folder
// | |- js
// | | |- tinymce
// | | | |- plugins
// | | | |- |- filemanager
// | | | |- |- |- thumbs <- folder of thumbs [must have the write permission]

$base_url="http://localhost"; //url base of site if you want only relative url leave empty
$upload_dir = '/tinymce/source/'; // path from base_url to upload base dir
$current_path = '../../../../source/'; // relative path from filemanager folder to upload files folder
$upload_dir = '/uploads/'; // path from base_url to upload base dir
$current_path = '../../../../../uploads/'; // relative path from filemanager folder to upload files folder

$MaxSizeUpload=100; //Mb

Expand Down
4 changes: 1 addition & 3 deletions tinymce/plugins/filemanager/create_folder.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

session_start();
if($_SESSION["verify"] != "FileManager4TinyMCE") die('forbiden');
include_once 'session_auth.php';
include 'config.php';
include('utils.php');

Expand Down
4 changes: 1 addition & 3 deletions tinymce/plugins/filemanager/delete_file.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

session_start();
if($_SESSION["verify"] != "FileManager4TinyMCE") die('forbiden');
include_once 'session_auth.php';
include 'config.php';
include('utils.php');

Expand Down
4 changes: 1 addition & 3 deletions tinymce/plugins/filemanager/delete_folder.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

session_start();
if($_SESSION["verify"] != "FileManager4TinyMCE") die('forbiden');
include_once 'session_auth.php';
include 'config.php';
include('utils.php');

Expand Down
4 changes: 1 addition & 3 deletions tinymce/plugins/filemanager/dialog.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

session_start();
$_SESSION["verify"] = "FileManager4TinyMCE";
include_once 'session_auth.php';

if(isset($_POST['submit'])){

Expand Down
4 changes: 1 addition & 3 deletions tinymce/plugins/filemanager/force_download.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

session_start();
if($_SESSION["verify"] != "FileManager4TinyMCE") die('forbiden');
include_once 'session_auth.php';
include 'config.php';

$path=$_POST['path'];
Expand Down
Empty file modified tinymce/plugins/filemanager/plugin.min.js
100644 → 100755
Empty file.
4 changes: 4 additions & 0 deletions tinymce/plugins/filemanager/session_auth.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
session_start();
if(!isset($_SESSION["FileManager4TinyMCE"]) || !$_SESSION["FileManager4TinyMCE"])
die('forbidden');
4 changes: 1 addition & 3 deletions tinymce/plugins/filemanager/upload.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

session_start();
if($_SESSION["verify"] != "FileManager4TinyMCE") die('forbiden');
include_once 'session_auth.php';

include('config.php');
include('utils.php');
Expand Down
3 changes: 1 addition & 2 deletions tinymce/plugins/filemanager/utils.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

if($_SESSION["verify"] != "FileManager4TinyMCE") die('forbiden');
include_once 'session_auth.php';

function deleteDir($dir) {
if (!file_exists($dir)) return true;
Expand Down