@@ -468,7 +468,7 @@ |
||
468 | 468 | $PMF_LANG["ad_start_comments"] = "Коментарів"; |
469 | 469 | |
470 | 470 | |
471 | - // Added v1.1 - 30.01.2002 - Bastian |
|
471 | + // Added v1.1 - 30.01.2002 - Bastian |
|
472 | 472 | |
473 | 473 | $PMF_LANG["ad_categ_paste"] = "вставити"; |
474 | 474 | $PMF_LANG["ad_categ_cut"] = "cut"; |
@@ -436,8 +436,8 @@ discard block |
||
436 | 436 | $users = $faqsession->getUsersOnline(); |
437 | 437 | $totUsers = $users[0] + $users[1]; |
438 | 438 | $usersOnline = $plr->getMsg('plmsgUserOnline', $totUsers) . ' | ' . |
439 | - $plr->getMsg('plmsgGuestOnline', $users[0]) . |
|
440 | - $plr->getMsg('plmsgRegisteredOnline',$users[1]); |
|
439 | + $plr->getMsg('plmsgGuestOnline', $users[0]) . |
|
440 | + $plr->getMsg('plmsgRegisteredOnline',$users[1]); |
|
441 | 441 | } else { |
442 | 442 | $usersOnline = ''; |
443 | 443 | } |
@@ -488,7 +488,7 @@ discard block |
||
488 | 488 | 'switchLanguages' => PMF_Language::selectLanguages($LANGCODE, true), |
489 | 489 | 'userOnline' => $usersOnline, |
490 | 490 | 'copyright' => 'powered by <a href="http://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> ' . |
491 | - $faqConfig->get('main.currentVersion'), |
|
491 | + $faqConfig->get('main.currentVersion'), |
|
492 | 492 | 'registerUser' => '<a href="?action=register">' . $PMF_LANG['msgRegistration'] . '</a>', |
493 | 493 | 'sendPassword' => '<a href="?action=password">' . $PMF_LANG['lostPassword'] . '</a>', |
494 | 494 | 'loginHeader' => $PMF_LANG['msgLoginUser'], |
@@ -517,7 +517,7 @@ discard block |
||
517 | 517 | '<a class="help" href="%sindex.php?action=search">%s</a>', |
518 | 518 | $faqSystem->getSystemUri($faqConfig), |
519 | 519 | $PMF_LANG["msgAdvancedSearch"] |
520 | - ) |
|
520 | + ) |
|
521 | 521 | ) |
522 | 522 | ); |
523 | 523 | } else { |
@@ -602,8 +602,8 @@ discard block |
||
602 | 602 | |
603 | 603 | $message = array( |
604 | 604 | 'success' => trim($PMF_LANG['successMessage']) . |
605 | - ' ' . |
|
606 | - trim($PMF_LANG['msgRegThankYou']) |
|
605 | + ' ' . |
|
606 | + trim($PMF_LANG['msgRegThankYou']) |
|
607 | 607 | ); |
608 | 608 | } |
609 | 609 | |
@@ -698,7 +698,7 @@ discard block |
||
698 | 698 | $mailto = PMF_Filter::filterInputArray(INPUT_POST, |
699 | 699 | array('mailto' => |
700 | 700 | array('filter' => FILTER_VALIDATE_EMAIL, |
701 | - 'flags' => FILTER_REQUIRE_ARRAY | FILTER_NULL_ON_FAILURE |
|
701 | + 'flags' => FILTER_REQUIRE_ARRAY | FILTER_NULL_ON_FAILURE |
|
702 | 702 | ) |
703 | 703 | ) |
704 | 704 | ); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $changeFreq = PMF_SITEMAP_GOOGLE_CHANGEFREQ_DAILY; |
71 | 71 | } |
72 | 72 | $node = |
73 | - '<url>' |
|
73 | + '<url>' |
|
74 | 74 | .'<loc>'.PMF_String::htmlspecialchars($location).'</loc>' |
75 | 75 | .'<lastmod>'.$lastmod.'</lastmod>' |
76 | 76 | .'<changefreq>'.$changeFreq.'</changefreq>' |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | // Sitemap header |
103 | 103 | $sitemap = |
104 | - '<?xml version="1.0" encoding="UTF-8"?>' |
|
104 | + '<?xml version="1.0" encoding="UTF-8"?>' |
|
105 | 105 | .'<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"' |
106 | 106 | .' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' |
107 | 107 | .' xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84' |
@@ -1,33 +1,33 @@ |
||
1 | 1 | <?php |
2 | - /** |
|
3 | - * ajax preview |
|
4 | - * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn) |
|
5 | - * @link www.phpletter.com |
|
6 | - * @since 22/April/2007 |
|
7 | - * |
|
8 | - */ |
|
9 | - include_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php"); |
|
10 | - if(!empty($_GET['path']) && file_exists($_GET['path']) && is_file($_GET['path'])) |
|
11 | - { |
|
12 | - include_once(CLASS_IMAGE); |
|
13 | - $image = new Image(true); |
|
14 | - if($image->loadImage($_GET['path'])) |
|
15 | - { |
|
16 | - if($image->resize(CONFIG_IMG_THUMBNAIL_MAX_X, CONFIG_IMG_THUMBNAIL_MAX_Y, true, true)) |
|
17 | - { |
|
18 | - $image->showImage(); |
|
19 | - }else |
|
20 | - { |
|
21 | - echo PREVIEW_NOT_PREVIEW . "."; |
|
22 | - } |
|
23 | - }else |
|
24 | - { |
|
25 | - echo PREVIEW_NOT_PREVIEW . ".."; |
|
26 | - } |
|
2 | + /** |
|
3 | + * ajax preview |
|
4 | + * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn) |
|
5 | + * @link www.phpletter.com |
|
6 | + * @since 22/April/2007 |
|
7 | + * |
|
8 | + */ |
|
9 | + include_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php"); |
|
10 | + if(!empty($_GET['path']) && file_exists($_GET['path']) && is_file($_GET['path'])) |
|
11 | + { |
|
12 | + include_once(CLASS_IMAGE); |
|
13 | + $image = new Image(true); |
|
14 | + if($image->loadImage($_GET['path'])) |
|
15 | + { |
|
16 | + if($image->resize(CONFIG_IMG_THUMBNAIL_MAX_X, CONFIG_IMG_THUMBNAIL_MAX_Y, true, true)) |
|
17 | + { |
|
18 | + $image->showImage(); |
|
19 | + }else |
|
20 | + { |
|
21 | + echo PREVIEW_NOT_PREVIEW . "."; |
|
22 | + } |
|
23 | + }else |
|
24 | + { |
|
25 | + echo PREVIEW_NOT_PREVIEW . ".."; |
|
26 | + } |
|
27 | 27 | |
28 | 28 | |
29 | - }else |
|
30 | - { |
|
31 | - echo PREVIEW_NOT_PREVIEW . "..."; |
|
32 | - } |
|
29 | + }else |
|
30 | + { |
|
31 | + echo PREVIEW_NOT_PREVIEW . "..."; |
|
32 | + } |
|
33 | 33 |
@@ -1,94 +1,94 @@ |
||
1 | 1 | <?php |
2 | - /** |
|
3 | - * ajax image undo function |
|
4 | - * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn) |
|
5 | - * @link www.phpletter.com |
|
6 | - * @since 22/May/2007 |
|
7 | - * |
|
8 | - */ |
|
9 | - require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php"); |
|
10 | - require_once(CLASS_HISTORY); |
|
11 | - $history = new History($_POST['file_path'], $session); |
|
12 | - $lastestSessionImageInfo = $history->getLastestRestorable(); |
|
13 | - echo "{"; |
|
14 | - $error = ""; |
|
15 | - $info = ""; |
|
16 | - if(CONFIG_SYS_VIEW_ONLY) |
|
17 | - { |
|
18 | - $error = SYS_DISABLED; |
|
19 | - } |
|
20 | - elseif(empty($_POST['file_path'])) |
|
21 | - { |
|
22 | - $error = IMG_SAVE_EMPTY_PATH; |
|
23 | - }elseif(!file_exists($_POST['file_path'])) |
|
24 | - { |
|
25 | - $error = IMG_SAVE_NOT_EXISTS; |
|
26 | - }elseif(!isUnderRoot($_POST['file_path'])) |
|
27 | - { |
|
28 | - $error = IMG_SAVE_PATH_DISALLOWED; |
|
29 | - }else if(!sizeof($lastestSessionImageInfo)) |
|
30 | - { |
|
31 | - $error = IMG_UNDO_NO_HISTORY_AVAIALBE; |
|
32 | - } |
|
33 | - else |
|
34 | - { |
|
35 | - //get the original image which is the lastest session image if any when the system is in demo |
|
36 | - $sessionImage = $session->getSessionDir() . $lastestSessionImageInfo['name']; |
|
37 | - $originalSessionImageInfo = $history->getOriginalImage(); |
|
38 | - if(CONFIG_SYS_DEMO_ENABLE && sizeof($originalSessionImageInfo)) |
|
39 | - { |
|
40 | - $originalImage = $session->getSessionDir() . $originalSessionImageInfo['info']['name']; |
|
41 | - }else |
|
42 | - { |
|
43 | - $originalImage = $_POST['file_path']; |
|
44 | - } |
|
2 | + /** |
|
3 | + * ajax image undo function |
|
4 | + * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn) |
|
5 | + * @link www.phpletter.com |
|
6 | + * @since 22/May/2007 |
|
7 | + * |
|
8 | + */ |
|
9 | + require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php"); |
|
10 | + require_once(CLASS_HISTORY); |
|
11 | + $history = new History($_POST['file_path'], $session); |
|
12 | + $lastestSessionImageInfo = $history->getLastestRestorable(); |
|
13 | + echo "{"; |
|
14 | + $error = ""; |
|
15 | + $info = ""; |
|
16 | + if(CONFIG_SYS_VIEW_ONLY) |
|
17 | + { |
|
18 | + $error = SYS_DISABLED; |
|
19 | + } |
|
20 | + elseif(empty($_POST['file_path'])) |
|
21 | + { |
|
22 | + $error = IMG_SAVE_EMPTY_PATH; |
|
23 | + }elseif(!file_exists($_POST['file_path'])) |
|
24 | + { |
|
25 | + $error = IMG_SAVE_NOT_EXISTS; |
|
26 | + }elseif(!isUnderRoot($_POST['file_path'])) |
|
27 | + { |
|
28 | + $error = IMG_SAVE_PATH_DISALLOWED; |
|
29 | + }else if(!sizeof($lastestSessionImageInfo)) |
|
30 | + { |
|
31 | + $error = IMG_UNDO_NO_HISTORY_AVAIALBE; |
|
32 | + } |
|
33 | + else |
|
34 | + { |
|
35 | + //get the original image which is the lastest session image if any when the system is in demo |
|
36 | + $sessionImage = $session->getSessionDir() . $lastestSessionImageInfo['name']; |
|
37 | + $originalSessionImageInfo = $history->getOriginalImage(); |
|
38 | + if(CONFIG_SYS_DEMO_ENABLE && sizeof($originalSessionImageInfo)) |
|
39 | + { |
|
40 | + $originalImage = $session->getSessionDir() . $originalSessionImageInfo['info']['name']; |
|
41 | + }else |
|
42 | + { |
|
43 | + $originalImage = $_POST['file_path']; |
|
44 | + } |
|
45 | 45 | |
46 | - include_once(CLASS_IMAGE); |
|
47 | - $image = new Image(); |
|
48 | - if($image->loadImage($sessionImage)) |
|
49 | - { |
|
50 | - $imageInfo = $image->getOriginalImageInfo(); |
|
51 | - if(!@copy($sessionImage, $originalImage)) |
|
52 | - { |
|
53 | - $error = IMG_UNDO_COPY_FAILED; |
|
54 | - }else |
|
55 | - { |
|
46 | + include_once(CLASS_IMAGE); |
|
47 | + $image = new Image(); |
|
48 | + if($image->loadImage($sessionImage)) |
|
49 | + { |
|
50 | + $imageInfo = $image->getOriginalImageInfo(); |
|
51 | + if(!@copy($sessionImage, $originalImage)) |
|
52 | + { |
|
53 | + $error = IMG_UNDO_COPY_FAILED; |
|
54 | + }else |
|
55 | + { |
|
56 | 56 | |
57 | - //remove the session image |
|
58 | - if(@unlink($sessionImage)) |
|
59 | - { |
|
60 | - $history->restore(); |
|
61 | - } |
|
62 | - //only one left, remove the session original if demo |
|
57 | + //remove the session image |
|
58 | + if(@unlink($sessionImage)) |
|
59 | + { |
|
60 | + $history->restore(); |
|
61 | + } |
|
62 | + //only one left, remove the session original if demo |
|
63 | 63 | |
64 | - if($history->getNumRestorable() == 0 && CONFIG_SYS_DEMO_ENABLE && sizeof($originalSessionImageInfo)) |
|
65 | - { |
|
66 | - @unlink($session->getSessionDir() . $originalSessionImageInfo['info']['name']); |
|
67 | - $originalImage = $_POST['file_path']; |
|
68 | - } |
|
69 | - } |
|
70 | - $imagePath = $originalImage; |
|
64 | + if($history->getNumRestorable() == 0 && CONFIG_SYS_DEMO_ENABLE && sizeof($originalSessionImageInfo)) |
|
65 | + { |
|
66 | + @unlink($session->getSessionDir() . $originalSessionImageInfo['info']['name']); |
|
67 | + $originalImage = $_POST['file_path']; |
|
68 | + } |
|
69 | + } |
|
70 | + $imagePath = $originalImage; |
|
71 | 71 | |
72 | - }else |
|
73 | - { |
|
74 | - $error = IMG_SAVE_IMG_OPEN_FAILED; |
|
75 | - } |
|
76 | - if(isset($imageInfo)) |
|
77 | - { |
|
78 | - $info .= ",width:" . $imageInfo['width'] . "\n"; |
|
79 | - $info .= ",height:" . $imageInfo['height'] . "\n"; |
|
80 | - $info .= ",size:'" . transformFileSize($imageInfo['size']) . "'\n"; |
|
81 | - $info .= ",path:'" . backslashToSlash($imagePath) . "'\n"; |
|
82 | - } |
|
72 | + }else |
|
73 | + { |
|
74 | + $error = IMG_SAVE_IMG_OPEN_FAILED; |
|
75 | + } |
|
76 | + if(isset($imageInfo)) |
|
77 | + { |
|
78 | + $info .= ",width:" . $imageInfo['width'] . "\n"; |
|
79 | + $info .= ",height:" . $imageInfo['height'] . "\n"; |
|
80 | + $info .= ",size:'" . transformFileSize($imageInfo['size']) . "'\n"; |
|
81 | + $info .= ",path:'" . backslashToSlash($imagePath) . "'\n"; |
|
82 | + } |
|
83 | 83 | |
84 | - } |
|
84 | + } |
|
85 | 85 | |
86 | - echo "error:'" . $error . "'\n"; |
|
87 | - if(isset($image) && is_object($image)) |
|
88 | - { |
|
89 | - $image->DestroyImages(); |
|
90 | - } |
|
91 | - echo $info; |
|
92 | - echo ",history:" . ($history->getNumRestorable()) . "\n"; |
|
93 | - echo "}"; |
|
86 | + echo "error:'" . $error . "'\n"; |
|
87 | + if(isset($image) && is_object($image)) |
|
88 | + { |
|
89 | + $image->DestroyImages(); |
|
90 | + } |
|
91 | + echo $info; |
|
92 | + echo ",history:" . ($history->getNumRestorable()) . "\n"; |
|
93 | + echo "}"; |
|
94 | 94 | ?> |
95 | 95 | \ No newline at end of file |
@@ -1,77 +1,77 @@ |
||
1 | 1 | <?php |
2 | - /** |
|
3 | - * delete selected files |
|
4 | - * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn) |
|
5 | - * @link www.phpletter.com |
|
6 | - * @since 22/April/2007 |
|
7 | - * |
|
8 | - */ |
|
9 | - require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php"); |
|
10 | - $error = ""; |
|
11 | - if(CONFIG_SYS_VIEW_ONLY || !CONFIG_OPTIONS_DELETE) |
|
12 | - { |
|
13 | - $error = SYS_DISABLED; |
|
14 | - } |
|
15 | - elseif(!empty($_GET['delete'])) |
|
16 | - {//delete the selected file from context menu |
|
17 | - if(!file_exists($_GET['delete'])) |
|
18 | - { |
|
19 | - $error = ERR_FILE_NOT_AVAILABLE; |
|
20 | - } |
|
21 | - elseif(!isUnderRoot($_GET['delete'])) |
|
22 | - { |
|
23 | - $error = ERR_FOLDER_PATH_NOT_ALLOWED; |
|
24 | - }else |
|
25 | - { |
|
26 | - include_once(CLASS_FILE); |
|
27 | - $file = new file(); |
|
28 | - if(is_dir($_GET['delete']) |
|
29 | - && isValidPattern(CONFIG_SYS_INC_DIR_PATTERN, getBaseName($_GET['delete'])) |
|
30 | - && !isInvalidPattern(CONFIG_SYS_EXC_DIR_PATTERN, getBaseName($_GET['delete']))) |
|
31 | - { |
|
32 | - $file->delete(addTrailingSlash(backslashToSlash($_GET['delete']))); |
|
33 | - }elseif(is_file($_GET['delete']) |
|
34 | - && isValidPattern(CONFIG_SYS_INC_FILE_PATTERN, getBaseName($_GET['delete'])) |
|
35 | - && !isInvalidPattern(CONFIG_SYS_EXC_FILE_PATTERN, getBaseName($_GET['delete'])) |
|
36 | - ) |
|
37 | - { |
|
38 | - $file->delete(($_GET['delete'])); |
|
39 | - } |
|
40 | - } |
|
41 | - }else |
|
42 | - { |
|
43 | - if(!isset($_POST['selectedDoc']) || !is_array($_POST['selectedDoc']) || sizeof($_POST['selectedDoc']) < 1) |
|
44 | - { |
|
45 | - $error = ERR_NOT_FILE_SELECTED; |
|
46 | - } |
|
47 | - else |
|
48 | - { |
|
2 | + /** |
|
3 | + * delete selected files |
|
4 | + * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn) |
|
5 | + * @link www.phpletter.com |
|
6 | + * @since 22/April/2007 |
|
7 | + * |
|
8 | + */ |
|
9 | + require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php"); |
|
10 | + $error = ""; |
|
11 | + if(CONFIG_SYS_VIEW_ONLY || !CONFIG_OPTIONS_DELETE) |
|
12 | + { |
|
13 | + $error = SYS_DISABLED; |
|
14 | + } |
|
15 | + elseif(!empty($_GET['delete'])) |
|
16 | + {//delete the selected file from context menu |
|
17 | + if(!file_exists($_GET['delete'])) |
|
18 | + { |
|
19 | + $error = ERR_FILE_NOT_AVAILABLE; |
|
20 | + } |
|
21 | + elseif(!isUnderRoot($_GET['delete'])) |
|
22 | + { |
|
23 | + $error = ERR_FOLDER_PATH_NOT_ALLOWED; |
|
24 | + }else |
|
25 | + { |
|
26 | + include_once(CLASS_FILE); |
|
27 | + $file = new file(); |
|
28 | + if(is_dir($_GET['delete']) |
|
29 | + && isValidPattern(CONFIG_SYS_INC_DIR_PATTERN, getBaseName($_GET['delete'])) |
|
30 | + && !isInvalidPattern(CONFIG_SYS_EXC_DIR_PATTERN, getBaseName($_GET['delete']))) |
|
31 | + { |
|
32 | + $file->delete(addTrailingSlash(backslashToSlash($_GET['delete']))); |
|
33 | + }elseif(is_file($_GET['delete']) |
|
34 | + && isValidPattern(CONFIG_SYS_INC_FILE_PATTERN, getBaseName($_GET['delete'])) |
|
35 | + && !isInvalidPattern(CONFIG_SYS_EXC_FILE_PATTERN, getBaseName($_GET['delete'])) |
|
36 | + ) |
|
37 | + { |
|
38 | + $file->delete(($_GET['delete'])); |
|
39 | + } |
|
40 | + } |
|
41 | + }else |
|
42 | + { |
|
43 | + if(!isset($_POST['selectedDoc']) || !is_array($_POST['selectedDoc']) || sizeof($_POST['selectedDoc']) < 1) |
|
44 | + { |
|
45 | + $error = ERR_NOT_FILE_SELECTED; |
|
46 | + } |
|
47 | + else |
|
48 | + { |
|
49 | 49 | |
50 | - include_once(CLASS_FILE); |
|
51 | - $file = new file(); |
|
50 | + include_once(CLASS_FILE); |
|
51 | + $file = new file(); |
|
52 | 52 | |
53 | - foreach($_POST['selectedDoc'] as $doc) |
|
54 | - { |
|
55 | - if(file_exists($doc) && isUnderRoot($doc)) |
|
56 | - { |
|
57 | - if(is_dir($doc) |
|
58 | - && isValidPattern(CONFIG_SYS_INC_DIR_PATTERN, $doc) |
|
59 | - && !isInvalidPattern(CONFIG_SYS_EXC_DIR_PATTERN, $doc)) |
|
60 | - { |
|
61 | - $file->delete(addTrailingSlash(backslashToSlash($doc))); |
|
62 | - }elseif(is_file($doc) |
|
63 | - && isValidPattern(CONFIG_SYS_INC_FILE_PATTERN, $doc) |
|
64 | - && !isInvalidPattern(CONFIG_SYS_EXC_FILE_PATTERN, $doc) |
|
65 | - ) |
|
66 | - { |
|
67 | - $file->delete($doc); |
|
68 | - } |
|
69 | - } |
|
53 | + foreach($_POST['selectedDoc'] as $doc) |
|
54 | + { |
|
55 | + if(file_exists($doc) && isUnderRoot($doc)) |
|
56 | + { |
|
57 | + if(is_dir($doc) |
|
58 | + && isValidPattern(CONFIG_SYS_INC_DIR_PATTERN, $doc) |
|
59 | + && !isInvalidPattern(CONFIG_SYS_EXC_DIR_PATTERN, $doc)) |
|
60 | + { |
|
61 | + $file->delete(addTrailingSlash(backslashToSlash($doc))); |
|
62 | + }elseif(is_file($doc) |
|
63 | + && isValidPattern(CONFIG_SYS_INC_FILE_PATTERN, $doc) |
|
64 | + && !isInvalidPattern(CONFIG_SYS_EXC_FILE_PATTERN, $doc) |
|
65 | + ) |
|
66 | + { |
|
67 | + $file->delete($doc); |
|
68 | + } |
|
69 | + } |
|
70 | 70 | |
71 | 71 | |
72 | - } |
|
73 | - } |
|
74 | - } |
|
72 | + } |
|
73 | + } |
|
74 | + } |
|
75 | 75 | |
76 | - echo "{error:'" . $error . "'}"; |
|
76 | + echo "{error:'" . $error . "'}"; |
|
77 | 77 | ?> |
78 | 78 | \ No newline at end of file |
@@ -1,33 +1,33 @@ |
||
1 | 1 | <?php |
2 | - /** |
|
3 | - * cut file |
|
4 | - * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn) |
|
5 | - * @link www.phpletter.com |
|
6 | - * @since 22/May/2007 |
|
7 | - * |
|
8 | - */ |
|
9 | - require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php"); |
|
10 | - $error = ""; |
|
11 | - $info = ''; |
|
12 | - if(CONFIG_SYS_VIEW_ONLY || !CONFIG_OPTIONS_CUT) |
|
13 | - { |
|
14 | - $error = SYS_DISABLED; |
|
15 | - } |
|
16 | - elseif(!isset($_POST['selectedDoc']) || !is_array($_POST['selectedDoc']) || sizeof($_POST['selectedDoc']) < 1) |
|
17 | - { |
|
18 | - $error = ERR_NOT_DOC_SELECTED_FOR_CUT; |
|
19 | - } |
|
20 | - elseif(empty($_POST['currentFolderPath']) || !isUnderRoot($_POST['currentFolderPath'])) |
|
21 | - { |
|
22 | - $error = ERR_FOLDER_PATH_NOT_ALLOWED; |
|
23 | - }else |
|
24 | - { |
|
25 | - require_once(CLASS_SESSION_ACTION); |
|
26 | - $sessionAction = new SessionAction(); |
|
27 | - $sessionAction->setAction($_POST['action_value']); |
|
28 | - $sessionAction->setFolder($_POST['currentFolderPath']); |
|
29 | - $sessionAction->set($_POST['selectedDoc']); |
|
30 | - $info = ',num:' . sizeof($_POST['selectedDoc']); |
|
31 | - } |
|
32 | - echo "{error:'" . $error . "'\n" . $info . "}"; |
|
2 | + /** |
|
3 | + * cut file |
|
4 | + * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn) |
|
5 | + * @link www.phpletter.com |
|
6 | + * @since 22/May/2007 |
|
7 | + * |
|
8 | + */ |
|
9 | + require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php"); |
|
10 | + $error = ""; |
|
11 | + $info = ''; |
|
12 | + if(CONFIG_SYS_VIEW_ONLY || !CONFIG_OPTIONS_CUT) |
|
13 | + { |
|
14 | + $error = SYS_DISABLED; |
|
15 | + } |
|
16 | + elseif(!isset($_POST['selectedDoc']) || !is_array($_POST['selectedDoc']) || sizeof($_POST['selectedDoc']) < 1) |
|
17 | + { |
|
18 | + $error = ERR_NOT_DOC_SELECTED_FOR_CUT; |
|
19 | + } |
|
20 | + elseif(empty($_POST['currentFolderPath']) || !isUnderRoot($_POST['currentFolderPath'])) |
|
21 | + { |
|
22 | + $error = ERR_FOLDER_PATH_NOT_ALLOWED; |
|
23 | + }else |
|
24 | + { |
|
25 | + require_once(CLASS_SESSION_ACTION); |
|
26 | + $sessionAction = new SessionAction(); |
|
27 | + $sessionAction->setAction($_POST['action_value']); |
|
28 | + $sessionAction->setFolder($_POST['currentFolderPath']); |
|
29 | + $sessionAction->set($_POST['selectedDoc']); |
|
30 | + $info = ',num:' . sizeof($_POST['selectedDoc']); |
|
31 | + } |
|
32 | + echo "{error:'" . $error . "'\n" . $info . "}"; |
|
33 | 33 | ?> |
34 | 34 | \ No newline at end of file |
@@ -1,332 +1,332 @@ |
||
1 | 1 | <?php |
2 | - /** |
|
3 | - * language pack |
|
4 | - * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn) |
|
5 | - * @link www.phpletter.com |
|
6 | - * @since 22/April/2007 |
|
7 | - * |
|
8 | - */ |
|
9 | - define('DATE_TIME_FORMAT', 'd/M/Y H:i:s'); |
|
10 | - //Common |
|
11 | - //Menu |
|
2 | + /** |
|
3 | + * language pack |
|
4 | + * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn) |
|
5 | + * @link www.phpletter.com |
|
6 | + * @since 22/April/2007 |
|
7 | + * |
|
8 | + */ |
|
9 | + define('DATE_TIME_FORMAT', 'd/M/Y H:i:s'); |
|
10 | + //Common |
|
11 | + //Menu |
|
12 | 12 | |
13 | 13 | |
14 | 14 | |
15 | 15 | |
16 | - define('MENU_SELECT', 'Select'); |
|
17 | - define('MENU_DOWNLOAD', 'Download'); |
|
18 | - define('MENU_PREVIEW', 'Preview'); |
|
19 | - define('MENU_RENAME', 'Rename'); |
|
20 | - define('MENU_EDIT', 'Edit'); |
|
21 | - define('MENU_CUT', 'Cut'); |
|
22 | - define('MENU_COPY', 'Copy'); |
|
23 | - define('MENU_DELETE', 'Delete'); |
|
24 | - define('MENU_PLAY', 'Play'); |
|
25 | - define('MENU_PASTE', 'Paste'); |
|
16 | + define('MENU_SELECT', 'Select'); |
|
17 | + define('MENU_DOWNLOAD', 'Download'); |
|
18 | + define('MENU_PREVIEW', 'Preview'); |
|
19 | + define('MENU_RENAME', 'Rename'); |
|
20 | + define('MENU_EDIT', 'Edit'); |
|
21 | + define('MENU_CUT', 'Cut'); |
|
22 | + define('MENU_COPY', 'Copy'); |
|
23 | + define('MENU_DELETE', 'Delete'); |
|
24 | + define('MENU_PLAY', 'Play'); |
|
25 | + define('MENU_PASTE', 'Paste'); |
|
26 | 26 | |
27 | - //Label |
|
28 | - //Top Action |
|
29 | - define('LBL_ACTION_REFRESH', 'Refresh'); |
|
30 | - define('LBL_ACTION_DELETE', 'Delete'); |
|
31 | - define('LBL_ACTION_CUT', 'Cut'); |
|
32 | - define('LBL_ACTION_COPY', 'Copy'); |
|
33 | - define('LBL_ACTION_PASTE', 'Paste'); |
|
34 | - define('LBL_ACTION_CLOSE', 'Close'); |
|
35 | - define('LBL_ACTION_SELECT_ALL', 'Select All'); |
|
36 | - //File Listing |
|
37 | - define('LBL_NAME', 'Name'); |
|
38 | - define('LBL_SIZE', 'Size'); |
|
39 | - define('LBL_MODIFIED', 'Modified At'); |
|
40 | - //File Information |
|
41 | - define('LBL_FILE_INFO', 'File Information:'); |
|
42 | - define('LBL_FILE_NAME', 'Name:'); |
|
43 | - define('LBL_FILE_CREATED', 'Created:'); |
|
44 | - define('LBL_FILE_MODIFIED', 'Modified:'); |
|
45 | - define('LBL_FILE_SIZE', 'File Size:'); |
|
46 | - define('LBL_FILE_TYPE', 'File Type:'); |
|
47 | - define('LBL_FILE_WRITABLE', 'Writable?'); |
|
48 | - define('LBL_FILE_READABLE', 'Readable?'); |
|
49 | - //Folder Information |
|
50 | - define('LBL_FOLDER_INFO', 'Folder Information'); |
|
51 | - define('LBL_FOLDER_PATH', 'Folder:'); |
|
52 | - define('LBL_CURRENT_FOLDER_PATH', 'Current Folder Path:'); |
|
53 | - define('LBL_FOLDER_CREATED', 'Created:'); |
|
54 | - define('LBL_FOLDER_MODIFIED', 'Modified:'); |
|
55 | - define('LBL_FOLDER_SUDDIR', 'Subfolders:'); |
|
56 | - define('LBL_FOLDER_FIELS', 'Files:'); |
|
57 | - define('LBL_FOLDER_WRITABLE', 'Writable?'); |
|
58 | - define('LBL_FOLDER_READABLE', 'Readable?'); |
|
59 | - define('LBL_FOLDER_ROOT', 'Root Folder'); |
|
60 | - //Preview |
|
61 | - define('LBL_PREVIEW', 'Preview'); |
|
62 | - define('LBL_CLICK_PREVIEW', 'Click here to preview it.'); |
|
63 | - //Buttons |
|
64 | - define('LBL_BTN_SELECT', 'Select'); |
|
65 | - define('LBL_BTN_CANCEL', 'Cancel'); |
|
66 | - define('LBL_BTN_UPLOAD', 'Upload'); |
|
67 | - define('LBL_BTN_CREATE', 'Create'); |
|
68 | - define('LBL_BTN_CLOSE', 'Close'); |
|
69 | - define('LBL_BTN_NEW_FOLDER', 'New Folder'); |
|
70 | - define('LBL_BTN_NEW_FILE', 'New File'); |
|
71 | - define('LBL_BTN_EDIT_IMAGE', 'Edit'); |
|
72 | - define('LBL_BTN_VIEW', 'Select View'); |
|
73 | - define('LBL_BTN_VIEW_TEXT', 'Text'); |
|
74 | - define('LBL_BTN_VIEW_DETAILS', 'Details'); |
|
75 | - define('LBL_BTN_VIEW_THUMBNAIL', 'Thumbnails'); |
|
76 | - define('LBL_BTN_VIEW_OPTIONS', 'View In:'); |
|
77 | - //pagination |
|
78 | - define('PAGINATION_NEXT', 'Next'); |
|
79 | - define('PAGINATION_PREVIOUS', 'Previous'); |
|
80 | - define('PAGINATION_LAST', 'Last'); |
|
81 | - define('PAGINATION_FIRST', 'First'); |
|
82 | - define('PAGINATION_ITEMS_PER_PAGE', 'Display %s items per page'); |
|
83 | - define('PAGINATION_GO_PARENT', 'Go Parent Folder'); |
|
84 | - //System |
|
85 | - define('SYS_DISABLED', 'Permission denied: The system is disabled.'); |
|
27 | + //Label |
|
28 | + //Top Action |
|
29 | + define('LBL_ACTION_REFRESH', 'Refresh'); |
|
30 | + define('LBL_ACTION_DELETE', 'Delete'); |
|
31 | + define('LBL_ACTION_CUT', 'Cut'); |
|
32 | + define('LBL_ACTION_COPY', 'Copy'); |
|
33 | + define('LBL_ACTION_PASTE', 'Paste'); |
|
34 | + define('LBL_ACTION_CLOSE', 'Close'); |
|
35 | + define('LBL_ACTION_SELECT_ALL', 'Select All'); |
|
36 | + //File Listing |
|
37 | + define('LBL_NAME', 'Name'); |
|
38 | + define('LBL_SIZE', 'Size'); |
|
39 | + define('LBL_MODIFIED', 'Modified At'); |
|
40 | + //File Information |
|
41 | + define('LBL_FILE_INFO', 'File Information:'); |
|
42 | + define('LBL_FILE_NAME', 'Name:'); |
|
43 | + define('LBL_FILE_CREATED', 'Created:'); |
|
44 | + define('LBL_FILE_MODIFIED', 'Modified:'); |
|
45 | + define('LBL_FILE_SIZE', 'File Size:'); |
|
46 | + define('LBL_FILE_TYPE', 'File Type:'); |
|
47 | + define('LBL_FILE_WRITABLE', 'Writable?'); |
|
48 | + define('LBL_FILE_READABLE', 'Readable?'); |
|
49 | + //Folder Information |
|
50 | + define('LBL_FOLDER_INFO', 'Folder Information'); |
|
51 | + define('LBL_FOLDER_PATH', 'Folder:'); |
|
52 | + define('LBL_CURRENT_FOLDER_PATH', 'Current Folder Path:'); |
|
53 | + define('LBL_FOLDER_CREATED', 'Created:'); |
|
54 | + define('LBL_FOLDER_MODIFIED', 'Modified:'); |
|
55 | + define('LBL_FOLDER_SUDDIR', 'Subfolders:'); |
|
56 | + define('LBL_FOLDER_FIELS', 'Files:'); |
|
57 | + define('LBL_FOLDER_WRITABLE', 'Writable?'); |
|
58 | + define('LBL_FOLDER_READABLE', 'Readable?'); |
|
59 | + define('LBL_FOLDER_ROOT', 'Root Folder'); |
|
60 | + //Preview |
|
61 | + define('LBL_PREVIEW', 'Preview'); |
|
62 | + define('LBL_CLICK_PREVIEW', 'Click here to preview it.'); |
|
63 | + //Buttons |
|
64 | + define('LBL_BTN_SELECT', 'Select'); |
|
65 | + define('LBL_BTN_CANCEL', 'Cancel'); |
|
66 | + define('LBL_BTN_UPLOAD', 'Upload'); |
|
67 | + define('LBL_BTN_CREATE', 'Create'); |
|
68 | + define('LBL_BTN_CLOSE', 'Close'); |
|
69 | + define('LBL_BTN_NEW_FOLDER', 'New Folder'); |
|
70 | + define('LBL_BTN_NEW_FILE', 'New File'); |
|
71 | + define('LBL_BTN_EDIT_IMAGE', 'Edit'); |
|
72 | + define('LBL_BTN_VIEW', 'Select View'); |
|
73 | + define('LBL_BTN_VIEW_TEXT', 'Text'); |
|
74 | + define('LBL_BTN_VIEW_DETAILS', 'Details'); |
|
75 | + define('LBL_BTN_VIEW_THUMBNAIL', 'Thumbnails'); |
|
76 | + define('LBL_BTN_VIEW_OPTIONS', 'View In:'); |
|
77 | + //pagination |
|
78 | + define('PAGINATION_NEXT', 'Next'); |
|
79 | + define('PAGINATION_PREVIOUS', 'Previous'); |
|
80 | + define('PAGINATION_LAST', 'Last'); |
|
81 | + define('PAGINATION_FIRST', 'First'); |
|
82 | + define('PAGINATION_ITEMS_PER_PAGE', 'Display %s items per page'); |
|
83 | + define('PAGINATION_GO_PARENT', 'Go Parent Folder'); |
|
84 | + //System |
|
85 | + define('SYS_DISABLED', 'Permission denied: The system is disabled.'); |
|
86 | 86 | |
87 | - //Cut |
|
88 | - define('ERR_NOT_DOC_SELECTED_FOR_CUT', 'No document(s) selected for cut.'); |
|
89 | - //Copy |
|
90 | - define('ERR_NOT_DOC_SELECTED_FOR_COPY', 'No document(s) selected for copy.'); |
|
91 | - //Paste |
|
92 | - define('ERR_NOT_DOC_SELECTED_FOR_PASTE', 'No document(s) selected for paste.'); |
|
93 | - define('WARNING_CUT_PASTE', 'Are you sure to move selected documents to current folder?'); |
|
94 | - define('WARNING_COPY_PASTE', 'Are you sure to copy selected documents to current folder?'); |
|
95 | - define('ERR_NOT_DEST_FOLDER_SPECIFIED', 'No destination folder specified.'); |
|
96 | - define('ERR_DEST_FOLDER_NOT_FOUND', 'Destination folder not found.'); |
|
97 | - define('ERR_DEST_FOLDER_NOT_ALLOWED', 'You are not allowed to move files to this folder'); |
|
98 | - define('ERR_UNABLE_TO_MOVE_TO_SAME_DEST', 'Failed to move this file (%s): Original path is same as destination path.'); |
|
99 | - define('ERR_UNABLE_TO_MOVE_NOT_FOUND', 'Failed to move this file (%s): Original file does not exist.'); |
|
100 | - define('ERR_UNABLE_TO_MOVE_NOT_ALLOWED', 'Failed to move this file (%s): Original file access denied.'); |
|
87 | + //Cut |
|
88 | + define('ERR_NOT_DOC_SELECTED_FOR_CUT', 'No document(s) selected for cut.'); |
|
89 | + //Copy |
|
90 | + define('ERR_NOT_DOC_SELECTED_FOR_COPY', 'No document(s) selected for copy.'); |
|
91 | + //Paste |
|
92 | + define('ERR_NOT_DOC_SELECTED_FOR_PASTE', 'No document(s) selected for paste.'); |
|
93 | + define('WARNING_CUT_PASTE', 'Are you sure to move selected documents to current folder?'); |
|
94 | + define('WARNING_COPY_PASTE', 'Are you sure to copy selected documents to current folder?'); |
|
95 | + define('ERR_NOT_DEST_FOLDER_SPECIFIED', 'No destination folder specified.'); |
|
96 | + define('ERR_DEST_FOLDER_NOT_FOUND', 'Destination folder not found.'); |
|
97 | + define('ERR_DEST_FOLDER_NOT_ALLOWED', 'You are not allowed to move files to this folder'); |
|
98 | + define('ERR_UNABLE_TO_MOVE_TO_SAME_DEST', 'Failed to move this file (%s): Original path is same as destination path.'); |
|
99 | + define('ERR_UNABLE_TO_MOVE_NOT_FOUND', 'Failed to move this file (%s): Original file does not exist.'); |
|
100 | + define('ERR_UNABLE_TO_MOVE_NOT_ALLOWED', 'Failed to move this file (%s): Original file access denied.'); |
|
101 | 101 | |
102 | - define('ERR_NOT_FILES_PASTED', 'No file(s) has been pasted.'); |
|
102 | + define('ERR_NOT_FILES_PASTED', 'No file(s) has been pasted.'); |
|
103 | 103 | |
104 | - //Search |
|
105 | - define('LBL_SEARCH', 'Search'); |
|
106 | - define('LBL_SEARCH_NAME', 'Full/Partial File Name:'); |
|
107 | - define('LBL_SEARCH_FOLDER', 'Look in:'); |
|
108 | - define('LBL_SEARCH_QUICK', 'Quick Search'); |
|
109 | - define('LBL_SEARCH_MTIME', 'File Modified Time(Range):'); |
|
110 | - define('LBL_SEARCH_SIZE', 'File Size:'); |
|
111 | - define('LBL_SEARCH_ADV_OPTIONS', 'Advanced Options'); |
|
112 | - define('LBL_SEARCH_FILE_TYPES', 'File Types:'); |
|
113 | - define('SEARCH_TYPE_EXE', 'Application'); |
|
104 | + //Search |
|
105 | + define('LBL_SEARCH', 'Search'); |
|
106 | + define('LBL_SEARCH_NAME', 'Full/Partial File Name:'); |
|
107 | + define('LBL_SEARCH_FOLDER', 'Look in:'); |
|
108 | + define('LBL_SEARCH_QUICK', 'Quick Search'); |
|
109 | + define('LBL_SEARCH_MTIME', 'File Modified Time(Range):'); |
|
110 | + define('LBL_SEARCH_SIZE', 'File Size:'); |
|
111 | + define('LBL_SEARCH_ADV_OPTIONS', 'Advanced Options'); |
|
112 | + define('LBL_SEARCH_FILE_TYPES', 'File Types:'); |
|
113 | + define('SEARCH_TYPE_EXE', 'Application'); |
|
114 | 114 | |
115 | - define('SEARCH_TYPE_IMG', 'Image'); |
|
116 | - define('SEARCH_TYPE_ARCHIVE', 'Archive'); |
|
117 | - define('SEARCH_TYPE_HTML', 'HTML'); |
|
118 | - define('SEARCH_TYPE_VIDEO', 'Video'); |
|
119 | - define('SEARCH_TYPE_MOVIE', 'Movie'); |
|
120 | - define('SEARCH_TYPE_MUSIC', 'Music'); |
|
121 | - define('SEARCH_TYPE_FLASH', 'Flash'); |
|
122 | - define('SEARCH_TYPE_PPT', 'PowerPoint'); |
|
123 | - define('SEARCH_TYPE_DOC', 'Document'); |
|
124 | - define('SEARCH_TYPE_WORD', 'Word'); |
|
125 | - define('SEARCH_TYPE_PDF', 'PDF'); |
|
126 | - define('SEARCH_TYPE_EXCEL', 'Excel'); |
|
127 | - define('SEARCH_TYPE_TEXT', 'Text'); |
|
128 | - define('SEARCH_TYPE_UNKNOWN', 'Unknown'); |
|
129 | - define('SEARCH_TYPE_XML', 'XML'); |
|
130 | - define('SEARCH_ALL_FILE_TYPES', 'All File Types'); |
|
131 | - define('LBL_SEARCH_RECURSIVELY', 'Search Recursively:'); |
|
132 | - define('LBL_RECURSIVELY_YES', 'Yes'); |
|
133 | - define('LBL_RECURSIVELY_NO', 'No'); |
|
134 | - define('BTN_SEARCH', 'Search Now'); |
|
135 | - //thickbox |
|
136 | - define('THICKBOX_NEXT', 'Next>'); |
|
137 | - define('THICKBOX_PREVIOUS', '<Prev'); |
|
138 | - define('THICKBOX_CLOSE', 'Close'); |
|
139 | - //Calendar |
|
140 | - define('CALENDAR_CLOSE', 'Close'); |
|
141 | - define('CALENDAR_CLEAR', 'Clear'); |
|
142 | - define('CALENDAR_PREVIOUS', '<Prev'); |
|
143 | - define('CALENDAR_NEXT', 'Next>'); |
|
144 | - define('CALENDAR_CURRENT', 'Today'); |
|
145 | - define('CALENDAR_MON', 'Mon'); |
|
146 | - define('CALENDAR_TUE', 'Tue'); |
|
147 | - define('CALENDAR_WED', 'Wed'); |
|
148 | - define('CALENDAR_THU', 'Thu'); |
|
149 | - define('CALENDAR_FRI', 'Fri'); |
|
150 | - define('CALENDAR_SAT', 'Sat'); |
|
151 | - define('CALENDAR_SUN', 'Sun'); |
|
152 | - define('CALENDAR_JAN', 'Jan'); |
|
153 | - define('CALENDAR_FEB', 'Feb'); |
|
154 | - define('CALENDAR_MAR', 'Mar'); |
|
155 | - define('CALENDAR_APR', 'Apr'); |
|
156 | - define('CALENDAR_MAY', 'May'); |
|
157 | - define('CALENDAR_JUN', 'Jun'); |
|
158 | - define('CALENDAR_JUL', 'Jul'); |
|
159 | - define('CALENDAR_AUG', 'Aug'); |
|
160 | - define('CALENDAR_SEP', 'Sep'); |
|
161 | - define('CALENDAR_OCT', 'Oct'); |
|
162 | - define('CALENDAR_NOV', 'Nov'); |
|
163 | - define('CALENDAR_DEC', 'Dec'); |
|
164 | - //ERROR MESSAGES |
|
165 | - //deletion |
|
166 | - define('ERR_NOT_FILE_SELECTED', 'Please select a file.'); |
|
167 | - define('ERR_NOT_DOC_SELECTED', 'No document(s) selected for deletion.'); |
|
168 | - define('ERR_DELTED_FAILED', 'Unable to delete selected document(s).'); |
|
169 | - define('ERR_FOLDER_PATH_NOT_ALLOWED', 'The folder path is not allowed.'); |
|
170 | - //class manager |
|
171 | - define('ERR_FOLDER_NOT_FOUND', 'Unable to locate the specific folder: '); |
|
172 | - //rename |
|
173 | - define('ERR_RENAME_FORMAT', 'Please give it a name which only contain letters, digits, space, hyphen and underscore.'); |
|
174 | - define('ERR_RENAME_EXISTS', 'Please give it a name which is unique under the folder.'); |
|
175 | - define('ERR_RENAME_FILE_NOT_EXISTS', 'The file/folder does not exist.'); |
|
176 | - define('ERR_RENAME_FAILED', 'Unable to rename it, please try again.'); |
|
177 | - define('ERR_RENAME_EMPTY', 'Please give it a name.'); |
|
178 | - define('ERR_NO_CHANGES_MADE', 'No changes has been made.'); |
|
179 | - define('ERR_RENAME_FILE_TYPE_NOT_PERMITED', 'You are not permitted to change the file to such extension.'); |
|
180 | - //folder creation |
|
181 | - define('ERR_FOLDER_FORMAT', 'Please give it a name which only contain letters, digits, space, hyphen and underscore.'); |
|
182 | - define('ERR_FOLDER_EXISTS', 'Please give it a name which is unique under the folder.'); |
|
183 | - define('ERR_FOLDER_CREATION_FAILED', 'Unable to create a folder, please try again.'); |
|
184 | - define('ERR_FOLDER_NAME_EMPTY', 'Please give it a name.'); |
|
185 | - define('FOLDER_FORM_TITLE', 'New Folder Form'); |
|
186 | - define('FOLDER_LBL_TITLE', 'Folder Title:'); |
|
187 | - define('FOLDER_LBL_CREATE', 'Create Folder'); |
|
188 | - //New File |
|
189 | - define('NEW_FILE_FORM_TITLE', 'New File Form'); |
|
190 | - define('NEW_FILE_LBL_TITLE', 'File Name:'); |
|
191 | - define('NEW_FILE_CREATE', 'Create File'); |
|
192 | - //file upload |
|
193 | - define('ERR_FILE_NAME_FORMAT', 'Please give it a name which only contain letters, digits, space, hyphen and underscore.'); |
|
194 | - define('ERR_FILE_NOT_UPLOADED', 'No file has been selected for uploading.'); |
|
195 | - define('ERR_FILE_TYPE_NOT_ALLOWED', 'You are not allowed to upload such file type.'); |
|
196 | - define('ERR_FILE_MOVE_FAILED', 'Failed to move the file.'); |
|
197 | - define('ERR_FILE_NOT_AVAILABLE', 'The file is unavailable.'); |
|
198 | - define('ERROR_FILE_TOO_BID', 'File too large. (max: %s)'); |
|
199 | - define('FILE_FORM_TITLE', 'File Upload Form'); |
|
200 | - define('FILE_LABEL_SELECT', 'Select File'); |
|
201 | - define('FILE_LBL_MORE', 'Add File Uploader'); |
|
202 | - define('FILE_CANCEL_UPLOAD', 'Cancel File Upload'); |
|
203 | - define('FILE_LBL_UPLOAD', 'Upload'); |
|
204 | - //file download |
|
205 | - define('ERR_DOWNLOAD_FILE_NOT_FOUND', 'No files selected for download.'); |
|
206 | - //Rename |
|
207 | - define('RENAME_FORM_TITLE', 'Rename Form'); |
|
208 | - define('RENAME_NEW_NAME', 'New Name'); |
|
209 | - define('RENAME_LBL_RENAME', 'Rename'); |
|
115 | + define('SEARCH_TYPE_IMG', 'Image'); |
|
116 | + define('SEARCH_TYPE_ARCHIVE', 'Archive'); |
|
117 | + define('SEARCH_TYPE_HTML', 'HTML'); |
|
118 | + define('SEARCH_TYPE_VIDEO', 'Video'); |
|
119 | + define('SEARCH_TYPE_MOVIE', 'Movie'); |
|
120 | + define('SEARCH_TYPE_MUSIC', 'Music'); |
|
121 | + define('SEARCH_TYPE_FLASH', 'Flash'); |
|
122 | + define('SEARCH_TYPE_PPT', 'PowerPoint'); |
|
123 | + define('SEARCH_TYPE_DOC', 'Document'); |
|
124 | + define('SEARCH_TYPE_WORD', 'Word'); |
|
125 | + define('SEARCH_TYPE_PDF', 'PDF'); |
|
126 | + define('SEARCH_TYPE_EXCEL', 'Excel'); |
|
127 | + define('SEARCH_TYPE_TEXT', 'Text'); |
|
128 | + define('SEARCH_TYPE_UNKNOWN', 'Unknown'); |
|
129 | + define('SEARCH_TYPE_XML', 'XML'); |
|
130 | + define('SEARCH_ALL_FILE_TYPES', 'All File Types'); |
|
131 | + define('LBL_SEARCH_RECURSIVELY', 'Search Recursively:'); |
|
132 | + define('LBL_RECURSIVELY_YES', 'Yes'); |
|
133 | + define('LBL_RECURSIVELY_NO', 'No'); |
|
134 | + define('BTN_SEARCH', 'Search Now'); |
|
135 | + //thickbox |
|
136 | + define('THICKBOX_NEXT', 'Next>'); |
|
137 | + define('THICKBOX_PREVIOUS', '<Prev'); |
|
138 | + define('THICKBOX_CLOSE', 'Close'); |
|
139 | + //Calendar |
|
140 | + define('CALENDAR_CLOSE', 'Close'); |
|
141 | + define('CALENDAR_CLEAR', 'Clear'); |
|
142 | + define('CALENDAR_PREVIOUS', '<Prev'); |
|
143 | + define('CALENDAR_NEXT', 'Next>'); |
|
144 | + define('CALENDAR_CURRENT', 'Today'); |
|
145 | + define('CALENDAR_MON', 'Mon'); |
|
146 | + define('CALENDAR_TUE', 'Tue'); |
|
147 | + define('CALENDAR_WED', 'Wed'); |
|
148 | + define('CALENDAR_THU', 'Thu'); |
|
149 | + define('CALENDAR_FRI', 'Fri'); |
|
150 | + define('CALENDAR_SAT', 'Sat'); |
|
151 | + define('CALENDAR_SUN', 'Sun'); |
|
152 | + define('CALENDAR_JAN', 'Jan'); |
|
153 | + define('CALENDAR_FEB', 'Feb'); |
|
154 | + define('CALENDAR_MAR', 'Mar'); |
|
155 | + define('CALENDAR_APR', 'Apr'); |
|
156 | + define('CALENDAR_MAY', 'May'); |
|
157 | + define('CALENDAR_JUN', 'Jun'); |
|
158 | + define('CALENDAR_JUL', 'Jul'); |
|
159 | + define('CALENDAR_AUG', 'Aug'); |
|
160 | + define('CALENDAR_SEP', 'Sep'); |
|
161 | + define('CALENDAR_OCT', 'Oct'); |
|
162 | + define('CALENDAR_NOV', 'Nov'); |
|
163 | + define('CALENDAR_DEC', 'Dec'); |
|
164 | + //ERROR MESSAGES |
|
165 | + //deletion |
|
166 | + define('ERR_NOT_FILE_SELECTED', 'Please select a file.'); |
|
167 | + define('ERR_NOT_DOC_SELECTED', 'No document(s) selected for deletion.'); |
|
168 | + define('ERR_DELTED_FAILED', 'Unable to delete selected document(s).'); |
|
169 | + define('ERR_FOLDER_PATH_NOT_ALLOWED', 'The folder path is not allowed.'); |
|
170 | + //class manager |
|
171 | + define('ERR_FOLDER_NOT_FOUND', 'Unable to locate the specific folder: '); |
|
172 | + //rename |
|
173 | + define('ERR_RENAME_FORMAT', 'Please give it a name which only contain letters, digits, space, hyphen and underscore.'); |
|
174 | + define('ERR_RENAME_EXISTS', 'Please give it a name which is unique under the folder.'); |
|
175 | + define('ERR_RENAME_FILE_NOT_EXISTS', 'The file/folder does not exist.'); |
|
176 | + define('ERR_RENAME_FAILED', 'Unable to rename it, please try again.'); |
|
177 | + define('ERR_RENAME_EMPTY', 'Please give it a name.'); |
|
178 | + define('ERR_NO_CHANGES_MADE', 'No changes has been made.'); |
|
179 | + define('ERR_RENAME_FILE_TYPE_NOT_PERMITED', 'You are not permitted to change the file to such extension.'); |
|
180 | + //folder creation |
|
181 | + define('ERR_FOLDER_FORMAT', 'Please give it a name which only contain letters, digits, space, hyphen and underscore.'); |
|
182 | + define('ERR_FOLDER_EXISTS', 'Please give it a name which is unique under the folder.'); |
|
183 | + define('ERR_FOLDER_CREATION_FAILED', 'Unable to create a folder, please try again.'); |
|
184 | + define('ERR_FOLDER_NAME_EMPTY', 'Please give it a name.'); |
|
185 | + define('FOLDER_FORM_TITLE', 'New Folder Form'); |
|
186 | + define('FOLDER_LBL_TITLE', 'Folder Title:'); |
|
187 | + define('FOLDER_LBL_CREATE', 'Create Folder'); |
|
188 | + //New File |
|
189 | + define('NEW_FILE_FORM_TITLE', 'New File Form'); |
|
190 | + define('NEW_FILE_LBL_TITLE', 'File Name:'); |
|
191 | + define('NEW_FILE_CREATE', 'Create File'); |
|
192 | + //file upload |
|
193 | + define('ERR_FILE_NAME_FORMAT', 'Please give it a name which only contain letters, digits, space, hyphen and underscore.'); |
|
194 | + define('ERR_FILE_NOT_UPLOADED', 'No file has been selected for uploading.'); |
|
195 | + define('ERR_FILE_TYPE_NOT_ALLOWED', 'You are not allowed to upload such file type.'); |
|
196 | + define('ERR_FILE_MOVE_FAILED', 'Failed to move the file.'); |
|
197 | + define('ERR_FILE_NOT_AVAILABLE', 'The file is unavailable.'); |
|
198 | + define('ERROR_FILE_TOO_BID', 'File too large. (max: %s)'); |
|
199 | + define('FILE_FORM_TITLE', 'File Upload Form'); |
|
200 | + define('FILE_LABEL_SELECT', 'Select File'); |
|
201 | + define('FILE_LBL_MORE', 'Add File Uploader'); |
|
202 | + define('FILE_CANCEL_UPLOAD', 'Cancel File Upload'); |
|
203 | + define('FILE_LBL_UPLOAD', 'Upload'); |
|
204 | + //file download |
|
205 | + define('ERR_DOWNLOAD_FILE_NOT_FOUND', 'No files selected for download.'); |
|
206 | + //Rename |
|
207 | + define('RENAME_FORM_TITLE', 'Rename Form'); |
|
208 | + define('RENAME_NEW_NAME', 'New Name'); |
|
209 | + define('RENAME_LBL_RENAME', 'Rename'); |
|
210 | 210 | |
211 | - //Tips |
|
212 | - define('TIP_FOLDER_GO_DOWN', 'Single Click to get to this folder...'); |
|
213 | - define('TIP_DOC_RENAME', 'Double Click to edit...'); |
|
214 | - define('TIP_FOLDER_GO_UP', 'Single Click to get to the parent folder...'); |
|
215 | - define('TIP_SELECT_ALL', 'Select All'); |
|
216 | - define('TIP_UNSELECT_ALL', 'Unselect All'); |
|
217 | - //WARNING |
|
218 | - define('WARNING_DELETE', 'Are you sure to delete selected document(s).'); |
|
219 | - define('WARNING_IMAGE_EDIT', 'Please select an image for edit.'); |
|
220 | - define('WARNING_NOT_FILE_EDIT', 'Please select a file for edit.'); |
|
221 | - define('WARING_WINDOW_CLOSE', 'Are you sure to close the window?'); |
|
222 | - //Preview |
|
223 | - define('PREVIEW_NOT_PREVIEW', 'No preview available.'); |
|
224 | - define('PREVIEW_OPEN_FAILED', 'Unable to open the file.'); |
|
225 | - define('PREVIEW_IMAGE_LOAD_FAILED', 'Unable to load the image'); |
|
211 | + //Tips |
|
212 | + define('TIP_FOLDER_GO_DOWN', 'Single Click to get to this folder...'); |
|
213 | + define('TIP_DOC_RENAME', 'Double Click to edit...'); |
|
214 | + define('TIP_FOLDER_GO_UP', 'Single Click to get to the parent folder...'); |
|
215 | + define('TIP_SELECT_ALL', 'Select All'); |
|
216 | + define('TIP_UNSELECT_ALL', 'Unselect All'); |
|
217 | + //WARNING |
|
218 | + define('WARNING_DELETE', 'Are you sure to delete selected document(s).'); |
|
219 | + define('WARNING_IMAGE_EDIT', 'Please select an image for edit.'); |
|
220 | + define('WARNING_NOT_FILE_EDIT', 'Please select a file for edit.'); |
|
221 | + define('WARING_WINDOW_CLOSE', 'Are you sure to close the window?'); |
|
222 | + //Preview |
|
223 | + define('PREVIEW_NOT_PREVIEW', 'No preview available.'); |
|
224 | + define('PREVIEW_OPEN_FAILED', 'Unable to open the file.'); |
|
225 | + define('PREVIEW_IMAGE_LOAD_FAILED', 'Unable to load the image'); |
|
226 | 226 | |
227 | - //Login |
|
228 | - define('LOGIN_PAGE_TITLE', 'Ajax File Manager Login Form'); |
|
229 | - define('LOGIN_FORM_TITLE', 'Login Form'); |
|
230 | - define('LOGIN_USERNAME', 'Username:'); |
|
231 | - define('LOGIN_PASSWORD', 'Password:'); |
|
232 | - define('LOGIN_FAILED', 'Invalid username/password.'); |
|
227 | + //Login |
|
228 | + define('LOGIN_PAGE_TITLE', 'Ajax File Manager Login Form'); |
|
229 | + define('LOGIN_FORM_TITLE', 'Login Form'); |
|
230 | + define('LOGIN_USERNAME', 'Username:'); |
|
231 | + define('LOGIN_PASSWORD', 'Password:'); |
|
232 | + define('LOGIN_FAILED', 'Invalid username/password.'); |
|
233 | 233 | |
234 | 234 | |
235 | - //88888888888 Below for Image Editor 888888888888888888888 |
|
236 | - //Warning |
|
237 | - define('IMG_WARNING_NO_CHANGE_BEFORE_SAVE', 'You have not made any changes to the images.'); |
|
235 | + //88888888888 Below for Image Editor 888888888888888888888 |
|
236 | + //Warning |
|
237 | + define('IMG_WARNING_NO_CHANGE_BEFORE_SAVE', 'You have not made any changes to the images.'); |
|
238 | 238 | |
239 | - //General |
|
240 | - define('IMG_GEN_IMG_NOT_EXISTS', 'Image does not exist'); |
|
241 | - define('IMG_WARNING_LOST_CHANAGES', 'All unsaved changes made to the image will lost, are you sure you wish to continue?'); |
|
242 | - define('IMG_WARNING_REST', 'All unsaved changes made to the image will be lost, are you sure to reset?'); |
|
243 | - define('IMG_WARNING_EMPTY_RESET', 'No changes has been made to the image so far'); |
|
244 | - define('IMG_WARING_WIN_CLOSE', 'Are you sure to close the window?'); |
|
245 | - define('IMG_WARNING_UNDO', 'Are you sure to restore the image to previous state?'); |
|
246 | - define('IMG_WARING_FLIP_H', 'Are you sure to flip the image horizotally?'); |
|
247 | - define('IMG_WARING_FLIP_V', 'Are you sure to flip the image vertically'); |
|
248 | - define('IMG_INFO', 'Image Information'); |
|
239 | + //General |
|
240 | + define('IMG_GEN_IMG_NOT_EXISTS', 'Image does not exist'); |
|
241 | + define('IMG_WARNING_LOST_CHANAGES', 'All unsaved changes made to the image will lost, are you sure you wish to continue?'); |
|
242 | + define('IMG_WARNING_REST', 'All unsaved changes made to the image will be lost, are you sure to reset?'); |
|
243 | + define('IMG_WARNING_EMPTY_RESET', 'No changes has been made to the image so far'); |
|
244 | + define('IMG_WARING_WIN_CLOSE', 'Are you sure to close the window?'); |
|
245 | + define('IMG_WARNING_UNDO', 'Are you sure to restore the image to previous state?'); |
|
246 | + define('IMG_WARING_FLIP_H', 'Are you sure to flip the image horizotally?'); |
|
247 | + define('IMG_WARING_FLIP_V', 'Are you sure to flip the image vertically'); |
|
248 | + define('IMG_INFO', 'Image Information'); |
|
249 | 249 | |
250 | - //Mode |
|
251 | - define('IMG_MODE_RESIZE', 'Resize:'); |
|
252 | - define('IMG_MODE_CROP', 'Crop:'); |
|
253 | - define('IMG_MODE_ROTATE', 'Rotate:'); |
|
254 | - define('IMG_MODE_FLIP', 'Flip:'); |
|
255 | - //Button |
|
250 | + //Mode |
|
251 | + define('IMG_MODE_RESIZE', 'Resize:'); |
|
252 | + define('IMG_MODE_CROP', 'Crop:'); |
|
253 | + define('IMG_MODE_ROTATE', 'Rotate:'); |
|
254 | + define('IMG_MODE_FLIP', 'Flip:'); |
|
255 | + //Button |
|
256 | 256 | |
257 | - define('IMG_BTN_ROTATE_LEFT', '90°CCW'); |
|
258 | - define('IMG_BTN_ROTATE_RIGHT', '90°CW'); |
|
259 | - define('IMG_BTN_FLIP_H', 'Flip Horizontal'); |
|
260 | - define('IMG_BTN_FLIP_V', 'Flip Vertical'); |
|
261 | - define('IMG_BTN_RESET', 'Reset'); |
|
262 | - define('IMG_BTN_UNDO', 'Undo'); |
|
263 | - define('IMG_BTN_SAVE', 'Save'); |
|
264 | - define('IMG_BTN_CLOSE', 'Close'); |
|
265 | - define('IMG_BTN_SAVE_AS', 'Save As'); |
|
266 | - define('IMG_BTN_CANCEL', 'Cancel'); |
|
267 | - //Checkbox |
|
268 | - define('IMG_CHECKBOX_CONSTRAINT', 'Constraint?'); |
|
269 | - //Label |
|
270 | - define('IMG_LBL_WIDTH', 'Width:'); |
|
271 | - define('IMG_LBL_HEIGHT', 'Height:'); |
|
272 | - define('IMG_LBL_X', 'X:'); |
|
273 | - define('IMG_LBL_Y', 'Y:'); |
|
274 | - define('IMG_LBL_RATIO', 'Ratio:'); |
|
275 | - define('IMG_LBL_ANGLE', 'Angle:'); |
|
276 | - define('IMG_LBL_NEW_NAME', 'New Name:'); |
|
277 | - define('IMG_LBL_SAVE_AS', 'Save As Form'); |
|
278 | - define('IMG_LBL_SAVE_TO', 'Save To:'); |
|
279 | - define('IMG_LBL_ROOT_FOLDER', 'Root Folder'); |
|
280 | - //Editor |
|
281 | - //Save as |
|
282 | - define('IMG_NEW_NAME_COMMENTS', 'Please do not contain the image extension.'); |
|
283 | - define('IMG_SAVE_AS_ERR_NAME_INVALID', 'Please give it a name which only contain letters, digits, space, hyphen and underscore.'); |
|
284 | - define('IMG_SAVE_AS_NOT_FOLDER_SELECTED', 'No distination folder selected.'); |
|
285 | - define('IMG_SAVE_AS_FOLDER_NOT_FOUND', 'The destination folder doest not exist.'); |
|
286 | - define('IMG_SAVE_AS_NEW_IMAGE_EXISTS', 'There exists an image with same name.'); |
|
257 | + define('IMG_BTN_ROTATE_LEFT', '90°CCW'); |
|
258 | + define('IMG_BTN_ROTATE_RIGHT', '90°CW'); |
|
259 | + define('IMG_BTN_FLIP_H', 'Flip Horizontal'); |
|
260 | + define('IMG_BTN_FLIP_V', 'Flip Vertical'); |
|
261 | + define('IMG_BTN_RESET', 'Reset'); |
|
262 | + define('IMG_BTN_UNDO', 'Undo'); |
|
263 | + define('IMG_BTN_SAVE', 'Save'); |
|
264 | + define('IMG_BTN_CLOSE', 'Close'); |
|
265 | + define('IMG_BTN_SAVE_AS', 'Save As'); |
|
266 | + define('IMG_BTN_CANCEL', 'Cancel'); |
|
267 | + //Checkbox |
|
268 | + define('IMG_CHECKBOX_CONSTRAINT', 'Constraint?'); |
|
269 | + //Label |
|
270 | + define('IMG_LBL_WIDTH', 'Width:'); |
|
271 | + define('IMG_LBL_HEIGHT', 'Height:'); |
|
272 | + define('IMG_LBL_X', 'X:'); |
|
273 | + define('IMG_LBL_Y', 'Y:'); |
|
274 | + define('IMG_LBL_RATIO', 'Ratio:'); |
|
275 | + define('IMG_LBL_ANGLE', 'Angle:'); |
|
276 | + define('IMG_LBL_NEW_NAME', 'New Name:'); |
|
277 | + define('IMG_LBL_SAVE_AS', 'Save As Form'); |
|
278 | + define('IMG_LBL_SAVE_TO', 'Save To:'); |
|
279 | + define('IMG_LBL_ROOT_FOLDER', 'Root Folder'); |
|
280 | + //Editor |
|
281 | + //Save as |
|
282 | + define('IMG_NEW_NAME_COMMENTS', 'Please do not contain the image extension.'); |
|
283 | + define('IMG_SAVE_AS_ERR_NAME_INVALID', 'Please give it a name which only contain letters, digits, space, hyphen and underscore.'); |
|
284 | + define('IMG_SAVE_AS_NOT_FOLDER_SELECTED', 'No distination folder selected.'); |
|
285 | + define('IMG_SAVE_AS_FOLDER_NOT_FOUND', 'The destination folder doest not exist.'); |
|
286 | + define('IMG_SAVE_AS_NEW_IMAGE_EXISTS', 'There exists an image with same name.'); |
|
287 | 287 | |
288 | - //Save |
|
289 | - define('IMG_SAVE_EMPTY_PATH', 'Empty image path.'); |
|
290 | - define('IMG_SAVE_NOT_EXISTS', 'Image does not exist.'); |
|
291 | - define('IMG_SAVE_PATH_DISALLOWED', 'You are not allowed to access this file.'); |
|
292 | - define('IMG_SAVE_UNKNOWN_MODE', 'Unexpected Image Operation Mode'); |
|
293 | - define('IMG_SAVE_RESIZE_FAILED', 'Failed to resize the image.'); |
|
294 | - define('IMG_SAVE_CROP_FAILED', 'Failed to crop the image.'); |
|
295 | - define('IMG_SAVE_FAILED', 'Failed to save the image.'); |
|
296 | - define('IMG_SAVE_BACKUP_FAILED', 'Unable to backup the original image.'); |
|
297 | - define('IMG_SAVE_ROTATE_FAILED', 'Unable to rotate the image.'); |
|
298 | - define('IMG_SAVE_FLIP_FAILED', 'Unable to flip the image.'); |
|
299 | - define('IMG_SAVE_SESSION_IMG_OPEN_FAILED', 'Unable to open image from session.'); |
|
300 | - define('IMG_SAVE_IMG_OPEN_FAILED', 'Unable to open image'); |
|
288 | + //Save |
|
289 | + define('IMG_SAVE_EMPTY_PATH', 'Empty image path.'); |
|
290 | + define('IMG_SAVE_NOT_EXISTS', 'Image does not exist.'); |
|
291 | + define('IMG_SAVE_PATH_DISALLOWED', 'You are not allowed to access this file.'); |
|
292 | + define('IMG_SAVE_UNKNOWN_MODE', 'Unexpected Image Operation Mode'); |
|
293 | + define('IMG_SAVE_RESIZE_FAILED', 'Failed to resize the image.'); |
|
294 | + define('IMG_SAVE_CROP_FAILED', 'Failed to crop the image.'); |
|
295 | + define('IMG_SAVE_FAILED', 'Failed to save the image.'); |
|
296 | + define('IMG_SAVE_BACKUP_FAILED', 'Unable to backup the original image.'); |
|
297 | + define('IMG_SAVE_ROTATE_FAILED', 'Unable to rotate the image.'); |
|
298 | + define('IMG_SAVE_FLIP_FAILED', 'Unable to flip the image.'); |
|
299 | + define('IMG_SAVE_SESSION_IMG_OPEN_FAILED', 'Unable to open image from session.'); |
|
300 | + define('IMG_SAVE_IMG_OPEN_FAILED', 'Unable to open image'); |
|
301 | 301 | |
302 | 302 | |
303 | - //UNDO |
|
304 | - define('IMG_UNDO_NO_HISTORY_AVAIALBE', 'No history avaiable for undo.'); |
|
305 | - define('IMG_UNDO_COPY_FAILED', 'Unable to restore the image.'); |
|
306 | - define('IMG_UNDO_DEL_FAILED', 'Unable to delete the session image'); |
|
303 | + //UNDO |
|
304 | + define('IMG_UNDO_NO_HISTORY_AVAIALBE', 'No history avaiable for undo.'); |
|
305 | + define('IMG_UNDO_COPY_FAILED', 'Unable to restore the image.'); |
|
306 | + define('IMG_UNDO_DEL_FAILED', 'Unable to delete the session image'); |
|
307 | 307 | |
308 | - //88888888888 Above for Image Editor 888888888888888888888 |
|
308 | + //88888888888 Above for Image Editor 888888888888888888888 |
|
309 | 309 | |
310 | - //88888888888 Session 888888888888888888888 |
|
311 | - define('SESSION_PERSONAL_DIR_NOT_FOUND', 'Unable to find the dedicated folder which should have been created under session folder'); |
|
312 | - define('SESSION_COUNTER_FILE_CREATE_FAILED', 'Unable to open the session counter file.'); |
|
313 | - define('SESSION_COUNTER_FILE_WRITE_FAILED', 'Unable to write the session counter file.'); |
|
314 | - //88888888888 Session 888888888888888888888 |
|
310 | + //88888888888 Session 888888888888888888888 |
|
311 | + define('SESSION_PERSONAL_DIR_NOT_FOUND', 'Unable to find the dedicated folder which should have been created under session folder'); |
|
312 | + define('SESSION_COUNTER_FILE_CREATE_FAILED', 'Unable to open the session counter file.'); |
|
313 | + define('SESSION_COUNTER_FILE_WRITE_FAILED', 'Unable to write the session counter file.'); |
|
314 | + //88888888888 Session 888888888888888888888 |
|
315 | 315 | |
316 | - //88888888888 Below for Text Editor 888888888888888888888 |
|
317 | - define('TXT_FILE_NOT_FOUND', 'File is not found.'); |
|
318 | - define('TXT_EXT_NOT_SELECTED', 'Please select file extension'); |
|
319 | - define('TXT_DEST_FOLDER_NOT_SELECTED', 'Please select destination folder'); |
|
320 | - define('TXT_UNKNOWN_REQUEST', 'Unknown Request.'); |
|
321 | - define('TXT_DISALLOWED_EXT', 'You are allowed to edit/add such file type.'); |
|
322 | - define('TXT_FILE_EXIST', 'Such file already exits.'); |
|
323 | - define('TXT_FILE_NOT_EXIST', 'No such found.'); |
|
324 | - define('TXT_CREATE_FAILED', 'Failed to create a new file.'); |
|
325 | - define('TXT_CONTENT_WRITE_FAILED', 'Failed to write content to the file.'); |
|
326 | - define('TXT_FILE_OPEN_FAILED', 'Failed to open the file.'); |
|
327 | - define('TXT_CONTENT_UPDATE_FAILED', 'Failed to update content to the file.'); |
|
328 | - define('TXT_SAVE_AS_ERR_NAME_INVALID', 'Please give it a name which only contain letters, digits, space, hyphen and underscore.'); |
|
329 | - //88888888888 Above for Text Editor 888888888888888888888 |
|
316 | + //88888888888 Below for Text Editor 888888888888888888888 |
|
317 | + define('TXT_FILE_NOT_FOUND', 'File is not found.'); |
|
318 | + define('TXT_EXT_NOT_SELECTED', 'Please select file extension'); |
|
319 | + define('TXT_DEST_FOLDER_NOT_SELECTED', 'Please select destination folder'); |
|
320 | + define('TXT_UNKNOWN_REQUEST', 'Unknown Request.'); |
|
321 | + define('TXT_DISALLOWED_EXT', 'You are allowed to edit/add such file type.'); |
|
322 | + define('TXT_FILE_EXIST', 'Such file already exits.'); |
|
323 | + define('TXT_FILE_NOT_EXIST', 'No such found.'); |
|
324 | + define('TXT_CREATE_FAILED', 'Failed to create a new file.'); |
|
325 | + define('TXT_CONTENT_WRITE_FAILED', 'Failed to write content to the file.'); |
|
326 | + define('TXT_FILE_OPEN_FAILED', 'Failed to open the file.'); |
|
327 | + define('TXT_CONTENT_UPDATE_FAILED', 'Failed to update content to the file.'); |
|
328 | + define('TXT_SAVE_AS_ERR_NAME_INVALID', 'Please give it a name which only contain letters, digits, space, hyphen and underscore.'); |
|
329 | + //88888888888 Above for Text Editor 888888888888888888888 |
|
330 | 330 | |
331 | 331 | |
332 | 332 | ?> |
333 | 333 | \ No newline at end of file |