19 lines
694 B
PHP
19 lines
694 B
PHP
|
<?php
|
||
|
session_start();
|
||
|
define("DOC_ROOT", dirname(__FILE__));
|
||
|
//echo DOC_ROOT.'['.$_SESSION['niceditor']['path1'].']';
|
||
|
//echo __FILE__;
|
||
|
///var/www/www-root/data/www/learn.mkgtu.ru/inc/editor1
|
||
|
//[../..//upload/tests/6/59]
|
||
|
///var/www/www-root/data/www/learn.mkgtu.ru/inc/editor1/script.php
|
||
|
//echo '<pre>'.print_r($_GET,1).'</pre>';
|
||
|
//echo '<pre>'.print_r($_POST,1).'</pre>';
|
||
|
//echo '<pre>'.print_r($_SESSION['niceditor'],1).'</pre>';
|
||
|
//[niceditor] => Array([path1] => ../../upload/tests/6/59 [path2] => /upload/tests/6/59)
|
||
|
|
||
|
if (@$_GET['q'] == 'imanager') {
|
||
|
include(DOC_ROOT . '/nicEdit/nicedit.lib.php');
|
||
|
$p = new NicEdit($_SESSION['niceditor']['path1']);
|
||
|
$p->imanager();
|
||
|
}
|
||
|
?>
|