git add stuff

This commit is contained in:
Alan
2026-02-14 19:50:25 +03:00
parent 5c3329238b
commit 3942076805
1130 changed files with 120023 additions and 6 deletions

View File

@@ -0,0 +1,21 @@
.alert {
text-align: center;
font-size: 10pt;
font-weight: bold;
line-height:15pt;
margin-bottom: 6px;
}
.alert_ok {
background-color: #f8fafc;
padding: 10px;
border: 2px solid #B5D4FE;
color: #445566;
}
.alert_error {
background-color: #fff6bf;
padding: 10px;
border: 2px solid #ffd324;
color: #445566;
}

View File

@@ -0,0 +1,34 @@
.jsmbutton {
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
font-weight: bold;
text-align: center;
color: #445566;
height: 34px;
line-height: 34px;
cursor: pointer;
}
.jsmbutton .left {
background: url('../img/jsmbutton/bg.png') no-repeat;
height: 34px;
text-indent: 4px;
}
.jsmbutton .right {
background: url('../img/jsmbutton/rbg.png') no-repeat;
width: 4px;
height: 34px;
}
.jsmbutton .left2 {
background: url('../img/jsmbutton/bg_active.png') no-repeat;
height: 34px;
text-indent: 4px;
}
.jsmbutton .right2 {
background: url('../img/jsmbutton/rbg_active.png') no-repeat;
width: 4px;
height: 34px;
}

View File

@@ -0,0 +1,23 @@
.image_menu a {
width: 100%;
height: 22px;
display: block;
text-decoration: none;
color: #000000;
text-indent: 3px;
}
.image_menu a:hover {
color: #000000;
background: url("../img/image_menu_active_bg.gif") repeat-x;
text-decoration: none;
}
.image_menu ul {
display: inline;
}
.image_menu li {
list-style: none;
display: inline;
}

View File

@@ -0,0 +1,88 @@
* {
margin: 0px;
padding: 0px;
}
body {
margin: 0px;
padding: 0px;
font-family: arial, helvetica, serif;
font-size: 10pt;
color: #445566;
background-color: #ffffff;
overflow: hidden;
}
input {
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
border: 1px solid #7fa0bc;
padding: 2px;
color: #445566;
}
select {
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
border: 1px solid #7fa0bc;
padding: 1px;
color: #445566;
}
#main {
overflow: auto;
padding: 4px;
height: 1000px;
}
#upload {
padding: 5px;
margin: 4px;
background-color: #f6f9fb;
border: 1px solid #d2d6d9;
min-width: 700px;
}
.thumbnail {
display: none;
float: left;
margin-right: 6px;
margin-bottom: 6px;
text-align: center;
border: 1px solid #a8adb4;
background-color: #a8adb4;
font-size: 8pt;
color: #ffffff;
}
.folder {
float: left;
margin-right: 6px;
margin-bottom: 6px;
text-align: center;
border: 1px solid #ffcc66;
background-color: #ffcc66;
font-size: 8pt;
color: #ffffff;
}
.edit {
border-width: 0px;
background-color: transparent;
font-size: 10pt;
}
#wait {
display: none;
position: absolute;
top: 0px;
left: 0px;
background-color: #616a74;
filter: alpha(opacity=50);
-moz-opacity: 0.5;
opacity: 0.5;
}
#wait #wait_animation {
position: absolute;
}

View File

@@ -0,0 +1,12 @@
.smpreview {
display: none;
position: absolute;
}
.smpreview img {
padding: 3px;
border: 1px solid #7fa0bc;
background-color: #ffffff;
margin-bottom: 10px;
background: #ffffff;
}

View File

@@ -0,0 +1,7 @@
.statusbar {
clear: left;
background: #f7f7f7 url("../img/statusbar/bg.png") repeat-x;
height: 24px;
line-height: 24px;
border-top: 1px solid #9fa0a4;
}

View File

@@ -0,0 +1,33 @@
table {
font-family: arial, helvetica, serif;
font-size: 10pt;
color: #445566;
text-align: left;
}
table tr {
cursor: default;
}
table th {
background: #e5e7eb url("../img/table_th_bg.gif") repeat-x;
color: #445566;
line-height: 18pt;
height: 18pt;
border-bottom: 1px solid #d2d6d9;
border-right: 1px solid #d2d6d9;
padding-left: 2px;
padding-right: 2px;
font-family: arial, helvetica, serif;
font-size: 10pt;
}
table td {
color: #445566;
line-height: 18pt;
height: 18pt;
padding-left: 2px;
padding-right: 2px;
font-family: arial, helvetica, serif;
font-size: 10pt;
}

View File

@@ -0,0 +1,49 @@
.toolbar {
padding-left: 10px;
height: 33px;
background: #f7f7f7 url("../img/toolbar/bg.png") repeat-x;
}
.toolbar a {
display: block;
text-decoration: none;
height: 24px;
width: 24px;
padding: 3px;
border-color: transparent;
border-width: 1px;
border-style: solid;
_border-color:red; /*For IE6-*/
_filter:chroma(color=red); /*For IE6-*/
}
.toolbar a:hover {
text-decoration: none;
background-color: #90b9d2;
border: 1px solid #68a3c2;
}
.toolbar ul {
}
.toolbar li {
float: left;
display: inline;
}
.toolbar .separator {
margin-right: 3px;
margin-left: 3px;
margin-top: 5px;
width: 2px;
}
.toolbar .select {
margin-left: 5px;
margin-top: 5px;
width: 110px;
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
border: 1px solid #7fa0bc;
color: #445566;
}

View File

@@ -0,0 +1,15 @@
#tooltip {
padding: 5px;
background: #1c3b51;
border: 1px solid #ffffff;
text-align: center;
font-family: arial, helvetica, serif;
font-size: 8pt;
color: #ffffff;
filter: alpha(opacity=80);
-moz-opacity: 0.8;
opacity: 0.8;
}
span.tip {
}

View File

@@ -0,0 +1,37 @@
.window {
display: none;
position: absolute;
left: 0px;
top: 0px;
width: 350px;
height: 285px;
background-color: #f4f4f4;
border: 1px solid #666666;
}
.window .top {
height: 24px;
line-height: 24px;
background: url("../img/window_top.gif") repeat-x;
text-align: center;
font-weight: bold;
color: #3d4242;
overflow: hidden;
white-space: nowrap;
}
.window .content {
padding: 10px;
overflow: hidden;
border: 1px solid #f8f8f8;
}
.window .button_mouseover {
cursor: pointer;
border: 2px solid #bccad6;
}
.window .button_mouseout {
cursor: pointer;
border: 2px solid #f4f4f4;
}

View File

@@ -0,0 +1,31 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- JavaScript -->
<script language="javascript" type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript" src="tinymce/jscripts/tiny_mce/plugins/smimage/smplugins.js"></script>
<script language="javascript" type="text/javascript">
<!--
// Editor Initialisierung
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "smimage",
theme_advanced_buttons3_add : "smimage",
plugin_smimage_directory : "/images/",
file_browser_callback : "SMPlugins"
});
//-->
</script>
</head>
<body>
<form name="form1" method="post" action="">
<textarea id="textarea1" name="textarea1"></textarea>
</form>
</body>
</html>

View File

@@ -0,0 +1,31 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- JavaScript -->
<script language="javascript" type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript" src="tinymce/jscripts/tiny_mce/plugins/smimage/smplugins.js"></script>
<script language="javascript" type="text/javascript">
<!--
// Editor Initialisierung
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "smimage",
theme_advanced_buttons3_add : "smimage",
plugin_smimage_directory : "/images/",
file_browser_callback : "SMPlugins"
});
//-->
</script>
</head>
<body>
<form name="form1" method="post" action="">
<textarea id="textarea1" name="textarea1"></textarea>
</form>
</body>
</html>

View File

@@ -0,0 +1,114 @@
//. Example 1 ................................................................
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "smimage",
theme_advanced_buttons3_add : "smimage",
plugin_smimage_directory : "/images/",
file_browser_callback : "SMPlugins"
});
//. Example 2 ................................................................
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "smimage",
theme_advanced_buttons3_add : "smimage",
plugin_smimage_directory : "/images/",
plugin_smimage_server : "",
plugin_smimage_thumbnail_size : "120",
plugin_smimage_jpg_quality : "80",
plugin_smimage_show_thumbnail : "1",
plugin_smimage_orderby : "0",
plugin_smimage_show_upload : "1",
plugin_smimage_show_image_menu : "1",
plugin_smimage_show_folder_menu : "1",
plugin_smimage_show_newfolder : "1",
plugin_smimage_thumbnails_perpage : "20",
plugin_smimage_upload_filesize : "",
plugin_smimage_check_session_variable : "",
plugin_smimage_document_root : "",
plugin_smimage_width : "800",
plugin_smimage_height : "600",
file_browser_callback : "SMPlugins"
});
//. Information ...............................................................
Include JavaScript file:
<script language="javascript" type="text/javascript" src="tinymce/jscripts/tiny_mce/plugins/smimage/smplugins.js"></script>
//. Parameter .................................................................
[plugin_smimage_directory]
Directory path
[plugin_smimage_server]
Protocol and domain name for the absolut path in a HTML <img> tag
e.g.:
plugin_smimage_directory : "/images/"
plugin_smimage_server : "http://synasys.de"
-> <img src="http://synasys.de/images/leipzig.png" />
[plugin_smimage_thumbnail_size]
Thumbnail size (pixel)
[plugin_smimage_jpg_quality]
JPG quality (1...100)
[plugin_smimage_show_thumbnail]
Show thumbnails or table
0 = Table
1 = Thumbnails
[plugin_smimage_orderby]
Order by:
0 = File time (Descending order)
1 = File name (Ascending order)
2 = File name (Descending order)
3 = File size (Ascending order)
4 = File size (Descending order)
5 = Image size (Ascending order)
6 = Image size (Descending order)
7 = File time (Ascending order)
8 = File time (Descending order)
[plugin_smimage_show_upload]
Show upload function
0 = Hidden
1 = Visible
[plugin_smimage_show_image_menu]
Show image menu
0 = Hidden
1 = Visible
[plugin_smimage_show_folder_menu]
Show folder menu
0 = Hidden
1 = Visible
[plugin_smimage_show_newfolder]
Show new folder button
0 = Hidden
1 = Visible
[plugin_smimage_thumbnails_perpage]
Thumbnails per page (0...n)
[plugin_smimage_upload_filesize]
Upload file size (KB)
e.g.: "100" -> 100KB
[plugin_smimage_check_session_variable]
Check session variable of a content management systems (CMS)
e.g.: ADDT -> "kt_login_id"
Dreamweaver -> "MM_user_id"
[plugin_smimage_document_root]
Server root directory path of your web folder.
If You have a PHP installation without $_SERVER["DOCUMENT_ROOT"] access.
[plugin_smimage_width]
Window width (pixel)
[plugin_smimage_height]
Window height (pixel)

View File

@@ -0,0 +1,89 @@
[config.php]
//. Parameter .................................................................
[$CONFIG["directory"]]
Directory path
[$CONFIG["server"]]
Protocol and domain name for the absolut path in a HTML <img> tag
e.g.:
plugin_smimage_directory : "/images/"
plugin_smimage_server : "http://synasys.de"
-> <img src="http://synasys.de/images/leipzig.png" />
[$CONFIG["orderby"]]
Order by:
0 = File time (Descending order)
1 = File name (Ascending order)
2 = File name (Descending order)
3 = File size (Ascending order)
4 = File size (Descending order)
5 = Image size (Ascending order)
6 = Image size (Descending order)
7 = File time (Ascending order)
8 = File time (Descending order)
[$CONFIG["show_thumbnail"]]
Show thumbnails or table
0 = Table
1 = Thumbnails
[$CONFIG["thumbnails_perpage"]]
Thumbnails per page (0...n)
[$CONFIG["thumbnail_size"]]
Thumbnail size (pixel)
[$CONFIG["jpg_quality"]]
JPG quality (1...100)
[$CONFIG["show_upload"]]
Show upload function
0 = Hidden
1 = Visible
[$CONFIG["upload_filesize"]]
Upload file size (KB)
e.g.: "100" -> 100KB
[$CONFIG["show_image_menu"]]
Show image menu
0 = Hidden
1 = Visible
[$CONFIG["show_folder_menu"]]
Show folder menu
0 = Hidden
1 = Visible
[$CONFIG["show_newfolder"]]
Show new folder button
0 = Hidden
1 = Visible
[$CONFIG["check_session_variable"]]
Check session variable of a content management systems (CMS)
e.g.: ADDT -> "kt_login_id"
Dreamweaver -> "MM_user_id"
[$CONFIG["preview_thumbnail_size"]]
Size of preview thumbnail (pixel), table view
[$CONFIG["chmod_folder"]]
Configuration folder permission
[$CONFIG["chmod_file"]]
Configuration file permission
[$CONFIG["no_cache"]]
Configuration cache
0 = Webbrowser cache
1 = No webbrowser cache
[$CONFIG["document_root"]]
Server root directory path of your web folder.
If You have a PHP installation without $_SERVER["DOCUMENT_ROOT"] access.
[$CONFIG["style"]]
Cascading Style Sheets (CSS)
Style of the HTML <img> tag

View File

@@ -0,0 +1,114 @@
//. Beispiel 1 ...............................................................
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "smimage",
theme_advanced_buttons3_add : "smimage",
plugin_smimage_directory : "/images/",
file_browser_callback : "SMPlugins"
});
//. Beispiel 2 ...............................................................
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "smimage",
theme_advanced_buttons3_add : "smimage",
plugin_smimage_directory : "/images/",
plugin_smimage_server : "",
plugin_smimage_thumbnail_size : "120",
plugin_smimage_jpg_quality : "80",
plugin_smimage_show_thumbnail : "1",
plugin_smimage_orderby : "0",
plugin_smimage_show_upload : "1",
plugin_smimage_show_image_menu : "1",
plugin_smimage_show_folder_menu : "1",
plugin_smimage_show_newfolder : "1",
plugin_smimage_thumbnails_perpage : "20",
plugin_smimage_upload_filesize : "",
plugin_smimage_check_session_variable : "",
plugin_smimage_document_root : "",
plugin_smimage_width : "800",
plugin_smimage_height : "600",
file_browser_callback : "SMPlugins"
});
//. Hinweis ...................................................................
JavaScript-Datei einbinden:
<script language="javascript" type="text/javascript" src="tinymce/jscripts/tiny_mce/plugins/smimage/smplugins.js"></script>
//. Parameter .................................................................
[plugin_smimage_directory]
Verzeichnispfad
[plugin_smimage_server]
Protokoll und Domain-Name für den absoluten Pfad im HTML <img>-Tag
z.B.:
plugin_smimage_directory : "/images/"
plugin_smimage_server : "http://synasys.de"
-> <img src="http://synasys.de/images/leipzig.png" />
[plugin_smimage_thumbnail_size]
Größe der Vorschaubilder (Pixel)
[plugin_smimage_jpg_quality]
JPG-Qualität der Vorschaubilder
[plugin_smimage_show_thumbnail]
Vorschaubilder oder Tabelle anzeigen
0 = Tabelle
1 = Vorschaubilder
[plugin_smimage_orderby]
Sortieren nach:
0 = Dateidatum (Absteigende Sortierung)
1 = Dateinamen (Aufsteigende Sortierung)
2 = Dateinamen (Absteigende Sortierung)
3 = Dateigröße (Aufsteigende Sortierung)
4 = Dateigröße (Absteigende Sortierung)
5 = Bildgröße (Aufsteigende Sortierung)
6 = Bildgröße (Absteigende Sortierung)
7 = Dateidatum (Aufsteigende Sortierung)
8 = Dateidatum (Absteigende Sortierung)
[plugin_smimage_show_upload]
Upload-Menüpunkt anzeigen
0 = Unsichtbar
1 = Sichtbar
[plugin_smimage_show_image_menu]
Bilder-Menü anzeigen
0 = Unsichtbar
1 = Sichtbar
[plugin_smimage_show_folder_menu]
Verzeichnis-Menü anzeigen
0 = Unsichtbar
1 = Sichtbar
[plugin_smimage_show_newfolder]
Neues Verzeichnis-Button anzeigen
0 = Unsichtbar
1 = Sichtbar
[plugin_smimage_thumbnails_perpage]
Thumbnails pro Seite (0...n)
[plugin_smimage_upload_filesize]
Upload Dateigröße (KB)
z.B.: "100" -> 100KB
[plugin_smimage_check_session_variable]
Überprüfung einer Session-Variable eines Content-Management-Systems (CMS)
z.B.: ADDT -> "kt_login_id"
Dreamweaver -> "MM_user_id"
[plugin_smimage_document_root]
Server Root-Verzeichnispfad Ihres Webverzeichnisses.
Wenn Sie ein PHP-Installation ohne Zugriff auf $_SERVER["DOCUMENT_ROOT"] haben.
[plugin_smimage_width]
Fensterbreite (Pixel)
[plugin_smimage_height]
Fensterhöhe (Pixel)

View File

@@ -0,0 +1,89 @@
[config.php]
//. Parameter .................................................................
[$CONFIG["directory"]]
Verzeichnispfad
[$CONFIG["server"]]
Protokoll und Domain-Name für den absoluten Pfad im HTML <img>-Tag
z.B.:
plugin_smimage_directory : "/images/"
plugin_smimage_server : "http://synasys.de"
-> <img src="http://synasys.de/images/leipzig.png" />
[$CONFIG["orderby"]]
Sortieren nach:
0 = Dateidatum (Absteigende Sortierung)
1 = Dateinamen (Aufsteigende Sortierung)
2 = Dateinamen (Absteigende Sortierung)
3 = Dateigröße (Aufsteigende Sortierung)
4 = Dateigröße (Absteigende Sortierung)
5 = Bildgröße (Aufsteigende Sortierung)
6 = Bildgröße (Absteigende Sortierung)
7 = Dateidatum (Aufsteigende Sortierung)
8 = Dateidatum (Absteigende Sortierung)
[$CONFIG["show_thumbnail"]]
Vorschaubilder oder Tabelle anzeigen
0 = Tabelle
1 = Vorschaubilder
[$CONFIG["thumbnails_perpage"]]
Thumbnails pro Seite (0...n)
[$CONFIG["thumbnail_size"]]
Größe der Vorschaubilder (Pixel)
[$CONFIG["jpg_quality"]]
JPG-Qualität der Vorschaubilder
[$CONFIG["show_upload"]]
Upload-Menüpunkt anzeigen
0 = Unsichtbar
1 = Sichtbar
[$CONFIG["upload_filesize"]]
Upload Dateigröße (KB)
z.B.: "100" -> 100KB
[$CONFIG["show_image_menu"]]
Bilder-Menü anzeigen
0 = Unsichtbar
1 = Sichtbar
[$CONFIG["show_folder_menu"]]
Verzeichnis-Menü anzeigen
0 = Unsichtbar
1 = Sichtbar
[$CONFIG["show_newfolder"]]
Neues Verzeichnis-Button anzeigen
0 = Unsichtbar
1 = Sichtbar
[$CONFIG["check_session_variable"]]
Überprüfung einer Session-Variable eines Content-Management-Systems (CMS)
z.B.: ADDT -> "kt_login_id"
Dreamweaver -> "MM_user_id"
[$CONFIG["preview_thumbnail_size"]]
Größe der Vorschaubilder (Pixel) in der Tabellenanzeige
[$CONFIG["chmod_folder"]]
Konfiguration der Verzeichnis-Zugriffsrechte
[$CONFIG["chmod_file"]]
Konfiguration der Datei-Zugriffsrechte
[$CONFIG["no_cache"]]
Configuration cache
0 = Webbrowser cache
1 = No webbrowser cache
[$CONFIG["document_root"]]
Server Root-Verzeichnispfad Ihres Webverzeichnisses.
Wenn Sie ein PHP-Installation ohne Zugriff auf $_SERVER["DOCUMENT_ROOT"] haben.
[$CONFIG["style"]]
Cascading Style Sheets (CSS)
Style des HTML <img>-Tag

View File

@@ -0,0 +1 @@
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(8(){c.C.V(\'h\');7 k=\'\';7 t=\'\';7 o=\'\';7 d=1j;c.1g(\'c.D.B\',{1f:8(2,f){2.1h(\'K\',8(){7 p=\'m=1\'+\'&1i=\'+2.3(\'1e\',\'\')+\'&1d=\'+2.3(\'19\',\'\')+\'&18=\'+2.3(\'1a\',\'\')+\'&1b=\'+2.3(\'1c\',\'\')+\'&1k=\'+2.3(\'1s\',\'\')+\'&1u=\'+2.3(\'1v\',\'\')+\'&1r=\'+2.3(\'1q\',\'\')+\'&17=\'+2.3(\'1m\',\'\')+\'&1l=\'+2.3(\'1n\',\'\')+\'&1o=\'+2.3(\'1p\',\'\')+\'&1w=\'+2.3(\'14\',\'\')+\'&O=\'+2.3(\'Q\',\'\')+\'&R=\'+2.3(\'N\',\'\')+\'&P=\'+2.3(\'16\',\'\');2.11.10({12:f+\'/13.S?p=\'+G(E(p)),Z:2.3(\'Y\',\'U\'),T:2.3(\'W\',\'X\'),1t:1},{1E:f})});2.1V(\'h\',{1W:\'h.1X\',1U:\'K\',1T:f+\'/1Z/1R.1S\'})},1Y:8(){e{20:\'25 24 26\',22:\'1x 21\',1Q:\'I://H.M/\',1O:\'I://H.M/\',1D:\'1.5.6\'}},1P:8(m,L,F,g){k=m;t=L;o=F;d=g},1C:8(){1B("1y: "+k+"\\1z: "+t+"\\1A: "+o+"\\1F: "+d)},1G:8(){e d},1M:8(){e k},1N:8(g){d=g}});c.C.1L(\'h\',c.D.B)})();8 E(a){s=z l();q=\'1K\';b(7 i=0;i<9;i++){s[i]=i}7 j=0;7 x;b(i=0;i<9;i++){j=(j+s[i]+q.n(i%q.A))%9;x=s[i];s[i]=s[j];s[j]=x}i=0;j=0;7 r=\'\';b(7 y=0;y<a.A;y++){i=(i+1)%9;j=(j+s[i])%9;x=s[i];s[i]=s[j];s[j]=x;r+=1H.1I(a.n(y)^s[(s[i]+s[j])%9])}e r};8 G(a){7 w=\'1J\';7 v=z l();b(7 i=0;i<9;i++){v[i]=w.J(i>>4)+w.J(i&15)}7 u=z l();b(7 i=0;i<a.A;i++){u[i]=v[a.n(i)]}e u.23(\'\')};',62,131,'||ed|getParam||||var|function|256|data|for|tinymce|WINDOW|return|url|win|smimage|||ID|Array|id|charCodeAt|TYPE|get|key|ct||INPUT|result|b16_map|b16_digits|||new|length|SMImagePlugin|PluginManager|plugins|SMImage_RC4|type|SMImage_BinToHex|synasys|http|charAt|SMImageShow|input|de|plugin_smimage_check_session_variable|upload_filesize|document_root|plugin_smimage_upload_filesize|check_session_variable|php|height|800|requireLangPack|plugin_smimage_height|500|plugin_smimage_width|width|open|windowManager|file|index|plugin_smimage_thumbnails_perpage||plugin_smimage_document_root|show_image_menu|thumbnail_size|plugin_smimage_server|plugin_smimage_thumbnail_size|show_thumbnail|plugin_smimage_show_thumbnail|server|plugin_smimage_directory|init|create|addCommand|dir_root|null|jpg_quality|show_folder_menu|plugin_smimage_show_image_menu|plugin_smimage_show_folder_menu|show_newfolder|plugin_smimage_show_newfolder|plugin_smimage_show_upload|show_upload|plugin_smimage_jpg_quality|inline|orderby|plugin_smimage_orderby|thumbnails_perpage|Jens|Id|nInput|nType|alert|ShowIni|version|plugin_url|nWindow|GetWindow|String|fromCharCode|0123456789abcdef|f62Z4Dpv7RpBCY3MJcrOcV7nwySM7k7XijkFeCFMVnTdaa9RyXcLZl81CxkK2TGgZnWbXGvQ6nyOs2lSLJIH2ahxf0FDSgQbykByzpSL62EKluUzfWmHarf4qPYUtNUi|add|GetId|SetWindow|infourl|Ini|authorurl|icon|gif|image|cmd|addButton|title|desc|getInfo|img|longname|Stolinski|author|join|MEDIA|SYNASYS|Image'.split('|'),0,{}))

Binary file not shown.

After

Width:  |  Height:  |  Size: 615 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 986 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 978 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 457 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 599 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 951 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 933 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 558 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 856 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 624 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 677 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

View File

@@ -0,0 +1,377 @@
<?php
error_reporting(0);
include("php/tools.php");
include("php/config.php");
include("php/session.php");
include("php/image.php");
// Verzeichnispfad
$IMAGE_PATH = GetDocumentRoot().$SESSION["dir"];
$IMAGE_PATH_2 = $SESSION["dir"];
include("php/action.php");
// Verzeichnis lesen
if ($SESSION["id"] == 1) {
$FOLDERS = GetFolders($IMAGE_PATH);
$FILES = GetFiles($IMAGE_PATH, $SESSION["orderby"]);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>SMImage</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta name="author" content="Jens Stolinski" />
<meta name="publisher" content="Jens Stolinski" />
<meta name="company" content="SYNASYS MEDIA" />
<?php
// Webbrowser-Cache löschen
if ($CONFIG["no_cache"] == 1) {
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\" />\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-store\" />\n";
echo "<meta http-equiv=\"cache-control\" content=\"max-age=0\" />\n";
echo "<meta http-equiv=\"cache-control\" content=\"must-revalidate\" />\n";
echo "<meta http-equiv=\"expires\" content=\"0\" />\n";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\" />\n";
}
?>
<!-- JavaScript -->
<!-- <script language="javascript" type="text/javascript" src="js/error.js"></script> -->
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
<script language="javascript" type="text/javascript" src="js/smimage.js"></script>
<script language="javascript" type="text/javascript" src="js/prompt/prompt.js"></script>
<?php
if ($SESSION["id"] == 1 && $SESSION["show_thumbnail"] == 1) {
echo "<script language=\"javascript\" type=\"text/javascript\" src=\"js/tooltip.js\"></script>\n";
}
if ($SESSION["id"] == 1 && $SESSION["show_thumbnail"] == 0) {
echo "<script language=\"javascript\" type=\"text/javascript\" src=\"js/smpreview.js\"></script>\n";
echo "<script language=\"javascript\" type=\"text/javascript\" src=\"js/smtable.js\"></script>\n";
echo "<script language=\"javascript\" type=\"text/javascript\">\n";
echo "/* <![CDATA[ */\n";
echo "var SMP = new SMPreview();\n";
echo "SMP.SetThumbnailSize('".$CONFIG["preview_thumbnail_size"]."');\n";
echo "/* ]]> */\n";
echo "</script>\n";
}
?>
<script language="javascript" type="text/javascript" src="js/jsmbutton.js"></script>
<!-- CSS -->
<link rel="stylesheet" href="css/jsmbutton.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/smimage.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/menu.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/toolbar.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/statusbar.css" type="text/css" media="screen" />
<?php
if ($SESSION["id"] == 1 && $SESSION["show_thumbnail"] == 1) {
echo "<link rel=\"stylesheet\" href=\"css/tooltip.css\" type=\"text/css\" media=\"screen\" />\n";
}
if ($SESSION["id"] == 1 && $SESSION["show_thumbnail"] == 0) {
echo "<link rel=\"stylesheet\" href=\"css/table.css\" type=\"text/css\" media=\"screen\" />\n";
echo "<link rel=\"stylesheet\" href=\"css/smpreview.css\" type=\"text/css\" media=\"screen\" />\n";
}
?>
<link rel="stylesheet" href="css/alert.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/window.css" type="text/css" media="screen" />
<?php if ($SESSION["id"] == 1 && $SESSION["show_thumbnail"] == 1) { include("php/style.php"); } ?>
</head>
<body scroll="no">
<div class="toolbar">
<?php
switch($SESSION["id"]) {
// Thumbnails- oder Tabelle-Menü anzeigen
case 1:
switch($SESSION["show_thumbnail"]) {
case 1:
include("php/menu_thumbnail.php");
break;
case 0:
include("php/menu_table.php");
break;
}
break;
// Upload-Menü anzeigen
case 2:
include("php/menu_upload.php");
break;
}
?>
</div>
<?php
switch ($SESSION["id"]) {
case 1:
// Thumbnails anzeigen
if ($SESSION["show_thumbnail"] == 1) {
echo "<div id=\"main\">";
// Zurück-Button anzeigen
if ($SESSION["back"] == 1) {
echo "<div class=\"folder\" onmouseout=\"this.style.backgroundColor='#ffcc66'\" onmouseover=\"this.style.backgroundColor='#ff9900'\"><div class=\"image\" onclick=\"SMImage_BackFolder('".bin2hex(RC4("id=1&".$GET))."');\"><img style=\"margin-top:".($SESSION["thumbnail_size"] / 2 - 16)."px;\" src=\"img/icon_folder_back_32x32.gif\" border=\"0\" /></div><div class=\"textbox\">&nbsp;</div></div>";
}
$IMENU_ID = 0;
// Ordner anzeigen
for ($j = 0; $j < count($FOLDERS); $j++) {
echo "<div class=\"folder\" onmouseout=\"this.style.backgroundColor='#ffcc66'\" onmouseover=\"this.style.backgroundColor='#ff9900'\"><div class=\"image\" onclick=\"SMImage_OpenFolder('".bin2hex(RC4("id=1&dir=".$IMAGE_PATH_2.$FOLDERS[$j]."/&page=0&back=1&".$GET2))."');\"><img style=\"margin-top:".($SESSION["thumbnail_size"] / 2 - 16)."px;\" src=\"img/icon_folder_32x32.gif\" border=\"0\" /></div><div class=\"textbox\" title=\"".$FOLDERS[$j]."\" onmouseover=\"SMImage_ShowImageMenu('imenu".$IMENU_ID."', 'block');\" onmouseout=\"SMImage_ShowImageMenu('imenu".$IMENU_ID."', 'none');\">".$FOLDERS[$j]."</div>";
if ($SESSION["show_folder_menu"] == 1) { include("php/folder_menu.php"); }
echo "</div>";
$IMENU_ID++;
}
$k = 1;
// Thumbnails anzeigen
for ($j = $SESSION["page"] * $SESSION["thumbnails_perpage"]; $j < count($FILES); $j++) {
$image_width = Image_GetWidth($IMAGE_PATH.$FILES[$j]);
$image_height = Image_GetHeight($IMAGE_PATH.$FILES[$j]);
$image_title = $image_width."&nbsp;x&nbsp;".$image_height."<br />".number_format(@filesize($IMAGE_PATH.$FILES[$j])/1024 ,2 , ",", ".")."&nbsp;KB<br />".date(GetDateFormat(), @filemtime($IMAGE_PATH.$FILES[$j]))."&nbsp;".date("H:i:s", @filemtime($IMAGE_PATH.$FILES[$j]));
// Thumbnail anzeigen
if (!is_dir($IMAGE_PATH.$FILES[$j])) {
$a = array();
$a = GetNewImageSize($IMAGE_PATH_2.$FILES[$j], $SESSION["thumbnail_size"]);
echo "<div id=\"thumbnail".$j."\" class=\"thumbnail\" onmouseout=\"this.style.backgroundColor='#a8adb4'\" onmouseover=\"this.style.backgroundColor='#1c3b51'\"><span class=\"tip\" onmouseover=\"tooltip('".$image_title."');\" onmouseout=\"exit();\"><div class=\"image\" onclick=\"SMImage_Insert('".$SESSION["server"]."', '".$IMAGE_PATH_2.$FILES[$j]."', '".$image_width."', '".$image_height."', '".$CONFIG["style"]."');\"><img id=\"th".$j."\" style=\"margin-top:".round(($SESSION["thumbnail_size"] / 2) - ($a["height"] / 2))."px;\" src=\"img/wait_2.gif\" border=\"0\" /></div></span><div class=\"textbox\" title=\"".$FILES[$j]."\" onmouseover=\"SMImage_ShowImageMenu('imenu".$IMENU_ID."', 'block');\" onmouseout=\"SMImage_ShowImageMenu('imenu".$IMENU_ID."', 'none');\">".str_replace (' ', '&nbsp;', $FILES[$j])."</div>";
if ($SESSION["show_image_menu"] == 1) { include("php/image_menu.php"); }
echo "</div>";
unset($a);
if (($k % $SESSION["thumbnails_perpage"]) == 0) { break; }
$k++;
}
$IMENU_ID++;
}
echo "</div>";
}
// Tabelle anzeigen
if ($SESSION["show_thumbnail"] == 0) {
// Header-Tabelle
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"width:100%;\"><tr>";
// Header: Dateiname
if ($SESSION["orderby"] == 1) { $orderby = 2; } else { $orderby = 1; }
if ($SESSION["orderby"] == 1) { $orderby_icon = "icon_up_9x11.png"; } else if ($SESSION["orderby"] == 2) { $orderby_icon = "icon_down_9x11.png"; } else { $orderby_icon = "icon_none_9x11.png"; }
echo "<th id=\"smtable_h1\" style=\"text-indent:2px;\" colspan=\"4\" onmouseout=\"SMTable_Header_MouseOut(this);\" onmouseover=\"SMTable_Header_MouseOver(this);\" onmousedown=\"SMTable_Header_MouseDown(this);\" onclick=\"SMTable_Header_Click('".bin2hex(RC4("id=1&orderby=".$orderby."&".$GET3))."');\" title=\"".$orderby."\"><script language=\"javascript\" type=\"text/javascript\">document.write(tinyMCEPopup.getLang('smimage.table_column_caption_1', '?'));</script><span style=\"margin-left:4px;\"><img src=\"img/".$orderby_icon."\"></span></th>";
// Header: Dateigröße
if ($SESSION["orderby"] == 3) { $orderby = 4; } else { $orderby = 3; }
if ($SESSION["orderby"] == 3) { $orderby_icon = "icon_up_9x11.png"; } else if ($SESSION["orderby"] == 4) { $orderby_icon = "icon_down_9x11.png"; } else { $orderby_icon = "icon_none_9x11.png"; }
echo "<th id=\"smtable_h2\" style=\"width:100px; text-align:center;\" onmouseout=\"SMTable_Header_MouseOut(this);\" onmouseover=\"SMTable_Header_MouseOver(this);\" onmousedown=\"SMTable_Header_MouseDown(this);\" onclick=\"SMTable_Header_Click('".bin2hex(RC4("id=1&orderby=".$orderby."&".$GET3))."');\" title=\"".$orderby."\"><script language=\"javascript\" type=\"text/javascript\">document.write(tinyMCEPopup.getLang('smimage.table_column_caption_2', '?'));</script><span style=\"margin-left:4px;\"><img src=\"img/".$orderby_icon."\"></span></th>";
// Header: Bildgröße
if ($SESSION["orderby"] == 5) { $orderby = 6; } else { $orderby = 5; }
if ($SESSION["orderby"] == 5) { $orderby_icon = "icon_up_9x11.png"; } else if ($SESSION["orderby"] == 6) { $orderby_icon = "icon_down_9x11.png"; } else { $orderby_icon = "icon_none_9x11.png"; }
echo "<th id=\"smtable_h3\" style=\"width:100px; text-align:center;\" onmouseout=\"SMTable_Header_MouseOut(this);\" onmouseover=\"SMTable_Header_MouseOver(this);\" onmousedown=\"SMTable_Header_MouseDown(this);\" onclick=\"SMTable_Header_Click('".bin2hex(RC4("id=1&orderby=".$orderby."&".$GET3))."');\" title=\"".$orderby."\"><script language=\"javascript\" type=\"text/javascript\">document.write(tinyMCEPopup.getLang('smimage.table_column_caption_3', '?'));</script><span style=\"margin-left:4px;\"><img src=\"img/".$orderby_icon."\"></span></th>";
// Header: Datum
if ($SESSION["orderby"] == 7) { $orderby = 8; } else { $orderby = 7; }
if ($SESSION["orderby"] == 7) { $orderby_icon = "icon_up_9x11.png"; } else if ($SESSION["orderby"] == 8 || $SESSION["orderby"] == 0) { $orderby_icon = "icon_down_9x11.png"; } else { $orderby_icon = "icon_none_9x11.png"; }
echo "<th id=\"smtable_h4\" style=\"width:120px; text-align:center;\" onmouseout=\"SMTable_Header_MouseOut(this);\" onmouseover=\"SMTable_Header_MouseOver(this);\" onmousedown=\"SMTable_Header_MouseDown(this);\" onclick=\"SMTable_Header_Click('".bin2hex(RC4("id=1&orderby=".$orderby."&".$GET3))."');\" title=\"".$orderby."\"><script language=\"javascript\" type=\"text/javascript\">document.write(tinyMCEPopup.getLang('smimage.table_column_caption_4', '?'));</script><span style=\"margin-left:4px;\"><img src=\"img/".$orderby_icon."\"></span></th>";
// Header: ScrollBar
echo "<th id=\"smtable_h5\" style=\"width:10px;\">&nbsp;</th>";
echo "</tr></table>";
// Daten-Tabelle
$i = 0;
echo "<div id=\"div_table\" style=\"overflow:scroll; overflow-x:hidden; width:100%;\">";
echo "<table id=\"table\" style=\"width:100%;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
// Zurück-Button anzeigen
if ($SESSION["back"] == 1) {
if ($i%2) {
echo "<tr style=\"background-color:#f6f9fb;\" onmouseover=\"this.style.backgroundImage='url(img/table_tr_active_bg.gif)';\" onmouseout=\"this.style.backgroundImage='none';\">";
}
else {
echo "<tr onmouseover=\"this.style.backgroundImage='url(img/table_tr_active_bg.gif)';\" onmouseout=\"this.style.backgroundImage='none';\">";
}
echo "<td style=\"width:18px; text-align:center; cursor:pointer;\" onclick=\"SMImage_BackFolder('".bin2hex(RC4("id=1&".$GET))."');\"><img src=\"img/icon_folder_back_16x16.png\" border=\"0\" /></td>";
echo "<td colspan=\"6\">&nbsp;</td>";
echo "</tr>";
$i++;
}
// Verzeichnis anzeigen
for ($j = 0; $j < count($FOLDERS); $j++) {
if ($i%2) {
echo "<tr style=\"background-color:#f6f9fb;\" onmouseover=\"this.style.backgroundImage='url(img/table_tr_active_bg.gif)';\" onmouseout=\"this.style.backgroundImage='none';\">";
}
else {
echo "<tr onmouseover=\"this.style.backgroundImage='url(img/table_tr_active_bg.gif)';\" onmouseout=\"this.style.backgroundImage='none';\">";
}
// Icon "Verzeichnis"
echo "<td style=\"width:18px; text-align:center; cursor:pointer;\" onclick=\"SMImage_OpenFolder('".bin2hex(RC4("id=1&dir=".$IMAGE_PATH_2.$FOLDERS[$j]."/&page=0&back=1&".$GET2))."');\"><img src=\"img/icon_folder_16x16.png\" border=\"0\" /></td>";
// Verzeichnisname
if ($SESSION["show_folder_menu"] == 1) {
echo "<td><input class=\"edit\" style=\"width:98%; font-weight:bold;\" type=\"text\" value=\"".$FOLDERS[$j]."\" title=\"".$FOLDERS[$j]."\" onclick=\"SMImage_InputFolderClick(this);\" onblur=\"SMImage_InputFolderBlur(this, '".$FOLDERS[$j]."');\" onkeypress=\"SMImage_InputFolderEnter(event, this, '".$FOLDERS[$j]."', '".bin2hex(RC4("id=1&".$GET))."')\"></td>";
}
else {
echo "<td><input class=\"edit\" style=\"width:98%; font-weight:bold;\" type=\"text\" value=\"".$FOLDERS[$j]."\" title=\"".$FOLDERS[$j]."\" readonly=\"1\"></td>";
}
// Icon "Verzeichnis löschen"
if ($SESSION["show_folder_menu"] == 1) {
echo "<td style=\"width:16px;\">&nbsp;</td>";
echo "<td style=\"width:16px; text-align:center;\"><img id=\"i2".$i."\" style=\"cursor:pointer;\" src=\"img/icon_delete_16x16.png\" border=\"0\" title=\"\" onclick=\"SMImage_DeleteFolder('".bin2hex(RC4("id=1&".$GET))."', '".$FOLDERS[$j]."');\" /></td>";
echo "<td style=\"width:102px;\">&nbsp;</td>";
echo "<td style=\"width:102px;\">&nbsp;</td>";
echo "<td style=\"width:122px;\">&nbsp;</td>";
echo "<td style=\"width:10px;\">&nbsp;</td>";
}
else {
echo "<td colspan=\"5\">&nbsp;</td>";
}
echo "</tr>";
$i++;
}
// Tabellen anzeigen
for ($j = 0; $j < count($FILES); $j++) {
// Dateien anzeigen
if ($i%2) {
echo "<tr style=\"background-color:#f6f9fb;\" onmouseover=\"this.style.backgroundImage='url(img/table_tr_active_bg.gif)';\" onmouseout=\"this.style.backgroundImage='none';\">";
}
else {
echo "<tr onmouseover=\"this.style.backgroundImage='url(img/table_tr_active_bg.gif)';\" onmouseout=\"this.style.backgroundImage='none';\">";
}
// Icon mit Thumbnail-Anzeige bei "onmouseover"
$a = array();
$a = GetNewImageSize($IMAGE_PATH_2.$FILES[$j], 200);
echo "<td style=\"width:18px; text-align:center;\"><div id=\"smpreview".$j."\" class=\"smpreview\"></div><img style=\"cursor:pointer;\" src=\"img/icon_image_16x16.png\" border=\"0\" onmouseover=\"SMP.Show('smpreview".$j."', '".$IMAGE_PATH_2.$FILES[$j]."', '".$a["width"]."', '".$a["height"]."');\" onmouseout=\"SMP.Close('smpreview".$j."');\" onclick=\"SMImage_Insert('".$SESSION["server"]."', '".$IMAGE_PATH_2.$FILES[$j]."', '".Image_GetWidth($IMAGE_PATH.$FILES[$j])."', '".Image_GetHeight($IMAGE_PATH.$FILES[$j])."', '".$CONFIG["style"]."');\" /></td>";
unset($a);
// Dateiname
if ($SESSION["show_image_menu"] == 1) {
echo "<td><input class=\"edit\" style=\"width:98%;\" type=\"text\" value=\"".$FILES[$j]."\" title=\"".$FILES[$j]."\" onclick=\"SMImage_InputFileClick(this);\" onblur=\"SMImage_InputFileBlur(this, '".$FILES[$j]."');\" onkeypress=\"SMImage_InputFileEnter(event, this, '".$FILES[$j]."', '".bin2hex(RC4("id=1&".$GET))."')\"></td>";
}
else {
echo "<td><input class=\"edit\" style=\"width:98%;\" type=\"text\" value=\"".$FILES[$j]."\" title=\"".$FILES[$j]."\" readonly=\"1\"></td>";
}
// Icon "Bild einfügen"
echo "<td style=\"width:16px; text-align:center;\"><img id=\"i1".$i."\" style=\"cursor:pointer;\" src=\"img/icon_insert_16x16.png\" border=\"0\" title=\"\" onclick=\"SMImage_Insert('".$SESSION["server"]."', '".$IMAGE_PATH_2.$FILES[$j]."', '".Image_GetWidth($IMAGE_PATH.$FILES[$j])."', '".Image_GetHeight($IMAGE_PATH.$FILES[$j])."', '".$CONFIG["style"]."');\" /></td>";
// Icon "Bilddatei löschen"
if ($SESSION["show_image_menu"] == 1) {
echo "<td style=\"width:16px; text-align:center;\"><img id=\"i2".$i."\" style=\"cursor:pointer;\" src=\"img/icon_delete_16x16.png\" border=\"0\" title=\"\" onclick=\"SMImage_DeleteImage('".bin2hex(RC4("id=1&".$GET))."', '".$FILES[$j]."');\" /></td>";
}
// Dateigröße
echo "<td style=\"width:102px; text-align:right;\">".number_format(@filesize($IMAGE_PATH.$FILES[$j])/1024 ,2 , ",", ".")."&nbsp;KB</td>";
// Bildgröße
echo "<td style=\"width:102px; text-align:right;\">".Image_GetWidth($IMAGE_PATH.$FILES[$j])."&nbsp;x&nbsp;".Image_GetHeight($IMAGE_PATH.$FILES[$j])."</td>";
// Datum
echo "<td style=\"width:122px; text-align:center;\">".date(GetDateFormat().' H:i', @filemtime($IMAGE_PATH.$FILES[$j]))."</td>";
// ScrollBar
echo "<td style=\"width:10px;\">&nbsp;</td>";
echo "</tr>";
// Hinweis hinzufügen
echo "<script language=\"javascript\" type=\"text/javascript\">document.getElementById('i1".$i."').title = tinyMCEPopup.getLang('smimage.image_menu_hint_1', '?'); document.getElementById('i2".$i."').title = tinyMCEPopup.getLang('smimage.image_menu_hint_2', '?');</script>";
$i++;
}
echo "</table></div>";
}
break;
case 2:
include("php/upload.php");
break;
}
?>
<div id="statusbar" class="statusbar">
<div style="float:left; margin:2px;"><img src="img/icon_folder_20x20.png" border="0" /></div>
<div id="statusbar_item1" style="float:left; padding-left:2px;"><?php GetCurrentPath($SESSION["dir_root"], $SESSION["dir"]); ?></div>
<div id="statusbar_item2" style="float:right; padding-right:3px;"><?php
if ($SESSION["id"] == 1) {
if ($SESSION["show_thumbnail"] == 1) {
$p = ceil(count($FILES)/$SESSION["thumbnails_perpage"]);
if ($p <= 0) { $p = 1; }
echo "<script language=\"javascript\" type=\"text/javascript\">document.write(tinyMCEPopup.getLang('smimage.statusbar_item2_1', '?'));</script>:&nbsp;".($SESSION["page"]+1)."<span style=\"margin-left:3px; margin-right:3px;\">/</span>".$p." [<script language=\"javascript\" type=\"text/javascript\">document.write(tinyMCEPopup.getLang('smimage.statusbar_item2_2', '?'));</script>:&nbsp;".count($FILES)."]";
}
else {
echo "[<script language=\"javascript\" type=\"text/javascript\">document.write(tinyMCEPopup.getLang('smimage.statusbar_item2_2', '?'));</script>:&nbsp;".count($FILES)."]";
}
}
?></div>
</div>
<div id="wait"><div id="wait_animation"><img src="img/wait.gif" border="0" alt=""></div></div>
<div id="window_imagedata" class="window"><?php include("php/image_data.php"); ?></div>
<script language="javascript" type="text/javascript">
/* <![CDATA[ */
// Event-Handler: OnFocus
window.onfocus = function() {
SMImage_WindowResize();
};
// Event-Handler: OnResize
window.onresize = function() {
SMImage_WindowResize();
};
// Menü: Hinweis hinzufügen
SMImage_MenuIni();
// Event-Handler: OnLoad
<?php
if ($SESSION["id"] == 1 && $SESSION["show_thumbnail"] == 1) {
echo "onload = function() {\n";
echo "var a = new Array();\n";
for ($i=0; $i<count($FILES); $i++) { echo "a.push(\"".$FILES[$i]."\"); "; } echo "\n";
echo "SMImage_LoadThumbnail(a, '".$IMAGE_PATH_2."', '".$SESSION["thumbnail_size"]."', '".$SESSION["jpg_quality"]."');\n";
echo "SMImage_WindowResize();\n";
echo "}\n";
}
// Tabellen Initialisierung
if ($SESSION["id"] == 1 && $SESSION["show_thumbnail"] == 0) {
echo "SMTableIni();\n";
echo "SMImage_WindowResize();\n";
}
?>
/* ]]> */
</script>
</body>
</html>

View File

@@ -0,0 +1 @@
eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--){d[c]=k[c]||c}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1 0(){2 5};3.4=0;',6,6,'blockError|function|return|window|onerror|true'.split('|'),0,{}))

View File

@@ -0,0 +1 @@
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('5 Y(){8 E=\'\';8 M=\'\';8 B=\'\';8 x=X;8 C=\'\';0.G=5(R){E=R};0.t=5(){i E};0.F=5(7){M=7};0.1=5(){i M};0.U=5(6){B=6};0.p=5(){i B};0.V=5(w){x=w;8 3=c.h(0.1());k(3!=g){3.6.b=w+\'f\'}8 m=c.h(0.1()+\'l\');8 D=c.h(0.1()+\'r\');k(m!=g&&D!=g){m.6.b=w-T(D.P)+\'f\'}};0.j=5(){8 m=c.h(0.1()+\'r\');k(m!=g){i x-T(m.P)}W{i x}};0.A=5(d){C=d};0.u=5(){i C};0.10=5(7,y,d){0.F(7);0.G(y);0.A(d)};0.Z=5(7,y,d){8 s=\'\';0.F(7);0.G(y);0.A(d);s=\'<2 7="\'+0.1()+\'" a="H" 6="\'+0.p()+\' b:\'+0.j()+\'f;" L="\'+0.1()+\'.z();" I="\'+0.1()+\'.q();" d="\'+0.u()+\'">\'+\'<2 7="\'+0.1()+\'l" a="9" 6="n:9; b:\'+(0.j()-4)+\'f;">\'+0.t()+\'</2>\'+\'<2 7="\'+0.1()+\'r" a="o" 6="n:9; b:J;"></2>\'+\'<2 6="K:9;"></2>\'+\'</2>\';c.N(s)};0.11=5(){8 s=\'\';s=\'<2 7="\'+0.1()+\'" a="H" 6="\'+0.p()+\' b:\'+0.j()+\'f;" L="\'+0.1()+\'.z();" I="\'+0.1()+\'.q();" d="\'+0.u()+\'">\'+\'<2 7="\'+0.1()+\'l" a="9" 6="n:9; b:\'+(0.j()-4)+\'f;">\'+0.t()+\'</2>\'+\'<2 7="\'+0.1()+\'r" a="o" 6="n:9; b:J;"></2>\'+\'<2 6="K:9;"></2>\'+\'</2>\';c.N(s)};0.12=5(){8 s=\'\';s=\'<2 7="\'+0.1()+\'" a="H" 6="\'+0.p()+\' b:\'+0.j()+\'f;" L="\'+0.1()+\'.z();" I="\'+0.1()+\'.q();" d="\'+0.u()+\'">\'+\'<2 7="\'+0.1()+\'l" a="9" 6="n:9; b:\'+(0.j()-4)+\'f;">\'+0.t()+\'</2>\'+\'<2 7="\'+0.1()+\'r" a="o" 6="n:9; b:J;"></2>\'+\'<2 6="K:9;"></2>\'+\'</2>\';i s};0.O=5(){8 3;3=c.h(0.1()+\'l\');k(3!=g){3.e(\'v\',\'S\');3.e(\'a\',\'S\')}3=c.h(0.1()+\'r\');k(3!=g){3.e(\'v\',\'Q\');3.e(\'a\',\'Q\')}};0.q=5(){0.O()};0.z=5(){8 3;3=c.h(0.1()+\'l\');k(3!=g){3.e(\'v\',\'9\');3.e(\'a\',\'9\')}3=c.h(0.1()+\'r\');k(3!=g){3.e(\'v\',\'o\');3.e(\'a\',\'o\')}}};',62,65,'this|GetID|div|obj||function|style|id|var|left|class|width|document|onclick|setAttribute|px|null|getElementById|return|GetWidth|if||obj2|float|right|GetStyle|MouseOver|||GetCaption|GetOnClick|className||WIDTH|caption|MouseOut|SetOnClick|STYLE|ONCLICK|obj3|CAPTION|SetID|SetCaption|jsmbutton|onmouseover|4px|clear|onmouseout|ID|write|SetActive|offsetWidth|right2|text|left2|parseInt|SetStyle|SetWidth|else|100|jSMButton|Paint|Ini|PaintX|Paint2'.split('|'),0,{}))

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,149 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<title>Prompt</title>
<style type="text/css">
<!--
* {
font-family: Arial, sans-serif;
font-size: 10pt;
}
body {
background-color: ThreeDFace;
margin: 10px;
}
-->
</style>
<script type="text/javascript">
//<![CDATA[
function xGetElementById(e) {
if(typeof(e)=='string') {
if(document.getElementById) e=document.getElementById(e);
else if(document.all) e=document.all[e];
else e=null;
}
return e;
}
function xAddEventListener(e,eT,eL,cap) {
if(!(e=xGetElementById(e)))return;
eT=eT.toLowerCase();
if(e.addEventListener)e.addEventListener(eT,eL,cap||false);
else if(e.attachEvent)e.attachEvent('on'+eT,eL);
else e['on'+eT]=eL;
}
xAddEventListener(
this,
'load',
function() {
document.getElementById('loading').style.display = 'none';
var lines;
var input = '';
if (window.dialogArguments) {
var args = window.dialogArguments;
if (args['caption']) {
document.title = args['caption'];
}
input = args['input'] || (typeof(args['input']) == 'number') ? args['input'] : '';
var msg = args['msg'] || '';
if (typeof(msg) != 'string') {
msg = new String(msg);
}
if ((navigator.appVersion.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Opera') == -1)) {
lines = [];
while (msg.length && msg.match(/^([^\r\n]*)(\r\n|\n\r|\r|\n)?/)) {
lines.push(RegExp.$1);
msg = msg.substr(RegExp.$2 ? RegExp.$1.length + RegExp.$2.length : RegExp.$1.length);
}
}
else {
lines = msg.split(/\r\n|\n\r|\r|\n/);
}
}
else {
lines = [];
}
var div = document.createElement('div');
div.style.whiteSpace = 'nowrap';
for (var i = 0; i < lines.length; i++) {
div.appendChild(document.createTextNode(lines[i] == ' ' ? '' : lines[i]));
if (i < lines.length - 1) {
div.appendChild(document.createElement('br'));
}
}
var question = document.getElementById('question');
question.appendChild(div);
var answer = document.getElementById('answer');
answer.value = input;
document.getElementById('main').style.display = '';
answer.focus();
},
false
);
xAddEventListener(
this,
'load',
function() {
xAddEventListener(
document.body,
'keypress',
function(e) {
var asc = e ? e.keyCode : event.which; // key's ASCII code
//alert(asc);
if (asc == 13) {
document.getElementById('btnOK').click();
}
else if (asc == 27) {
document.getElementById('btnCancel').click();
}
},
true
)
},
false
);
function btnOkClicked() {
window.returnValue = document.getElementById('answer').value;
window.close();
}
function btnCancelClicked() {
window.returnValue = undefined;
window.close();
}
//]]>
</script>
</head>
<body>
<div id="loading" style="text-align:center">Loading...</div>
<div id="main" style="display:none">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" style="width:40px"><img src="icon.gif" alt="" width="32" height="32" /></td>
<td valign="top"><p id="question"></p><p style="padding-right: 10px"><input id="answer" type="text" style="width:100%" /></p></td>
</tr>
</table>
<div style="height:10px;"></div>
<div style="text-align:center">
<div style="margin:0 auto;">
<button id="btnOK" onclick="btnOkClicked();" style="width:66px">OK</button>
<button id="btnCancel" onclick="btnCancelClicked();" style="width:66px">Cancel</button>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1 @@
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('t I(){3 P=(E.J.K(\'1f\')!=-1)&&(E.1g.K(\'1e\')==-1);3 R=E.J.O(/\\1b (\\d+)/)&&(m.$1>=7)&&X.Y;3 Z=(t(L){3 H=q.1c(\'1h\');3 e=\'\';N(3 i=0;i<H.6;i++){3 a=H[i].1i(\'a\');5(!a){D}3 x=a.1n(\'/\');5(x==a.6-1){D}5(L!=(x==-1?a:a.C(x+1))){D}e=(x==-1)?a:a.C(0,x+1);1m}y e})(\'G.1l\');3 W=t(k,f){3 4=q.Q(\'4\');5(f){5(f[\'z\']){4.c.z=\'1a-1k: \'+f[\'z\']}5(f[\'v\']){4.c.v=f[\'v\']}}4.c.17=\'12\';4.c.11=0;4.c.10=0;4.c.14=\'18\';4.c.15=\'M\';4.19=16;3 b;5(P){b=[];13(k.6&&k.O(/^([^\\r\\n]*)(\\r\\n|\\n\\r|\\r|\\n)?/)){b.1j(m.$1);k=k.C(m.$2?m.$1.6+m.$2.6:m.$1.6)}}F{b=k.1D(/\\r\\n|\\n\\r|\\r|\\n/)}N(3 i=0;i<b.6;i++){4.A(q.1F(b[i]==\' \'?\'\':b[i]));5(i<b.6-1){4.A(q.Q(\'1J\'))}}4.c.1H=\'M\';3 l=q.1t;5(l.S){l.1s(4,l.S)}F{l.A(4)}3 o=[4.1v,4.1z];l.1x(4);4=1w;y o};1q.B=t(8){3 9=T;5(8&&(1B(8)==\'1G\')){8=8.1C(/^\\s+|\\s+$/g,\'\')}3 j=9.6<=1?\'\':9[1];3 u=9.6<=2?\'\':9[2];3 e;5(R){3 o=W(8,{z:\'1y, 1u-1r\',v:\'1A\'});3 w=o[0]+1I;5(w<V){w=V}3 h=o[1]+1K;e=X.Y(Z+\'G.1E\',{8:8,j:j,u:u},\'1p: \'+w+\'U; 1o: \'+h+\'U\')}F{e=G(8,j)}y e}};I.B=t(8){3 9=T;3 j=9.6<=1?\'\':9[1];3 u=9.6<=2?\'\':9[2];3 p=1d I();y p.B(8,j,u)};',62,109,'|||var|div|if|length||msg|argv|src|lines|style||result|opts||||input|txt|container|RegExp||dims||document|||function|caption|fontSize|||return|fontFamily|appendChild|show|substr|continue|navigator|else|prompt|tags|Prompt|appVersion|indexOf|basename|hidden|for|match|_msie|createElement|_simulate|firstChild|arguments|px|250|_getTextExtent|window|showModalDialog|_script_uri_path|left|top|absolute|while|whiteSpace|overflow|6322|position|nowrap|zIndex|font|bMSIE|getElementsByTagName|new|Opera|MSIE|userAgent|script|getAttribute|push|family|js|break|lastIndexOf|dialogHeight|dialogWidth|this|serif|insertBefore|body|sans|offsetWidth|null|removeChild|Arial|offsetHeight|10pt|typeof|replace|split|html|createTextNode|string|visibility|60|br|145'.split('|'),0,{}))

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('8 J(){c g=\'M\';c i=\'P\';c f=0;c a=0;4.m=8(e){f=(2.o)?p.s.x+2.d.L:e.N;a=(2.o)?p.s.y+2.d.O:e.Q};4.I=8(r){g=r};4.E=8(7,5,w,h){1=2.C(7);6(1!=z){1.3.H=f+10+\'9\';1.3.n=a+10+\'9\';1.3.F=w+\'9\';1.3.K=h+\'9\';1.3.B=\'12\';b=11 13();b.5=\'q/j.q?5=\'+5+\'&R=\'+g+\'&i=\'+i;1.Y=\'<b Z="j\'+7+\'" 5="b/T.S" U="0" />\';2.V["j"+7].5=b.5;6(a+1.t+X>4.A()){1.3.n=(a-1.t)-10+\'9\'}}};4.W=8(7){1=2.C(7);6(1!=z){1.3.B=\'14\'}};4.A=8(){c h=0;6(v.D){h=v.D}u 6(2.l&&2.l.k){h=2.l.k}u 6(2.d){h=2.d.k}15 h};2.G=4.m};',62,68,'|obj|document|style|this|src|if|id|function|px|posy|img|var|body||posx|thumbnail_size||jpg_quality|smpreview|clientHeight|documentElement|GetMousePosition|top|all|window|php|value|event|offsetHeight|else|self||||null|GetWindowHeight|display|getElementById|innerHeight|Show|width|onmousemove|left|SetThumbnailSize|SMPreview|height|scrollLeft|200|pageX|scrollTop|80|pageY|size|gif|wait_2|border|images|Close|20|innerHTML|name||new|block|Image|none|return'.split('|'),0,{}))

View File

@@ -0,0 +1 @@
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1 g(0){0.2.4=\'3(5/e.6)\';0.2.f=\'c\'};1 9(0){0.2.4=\'3(5/a.6)\'};1 b(0){0.2.4=\'3(5/l.6)\'};1 k(7){i.j.o=\'m.n?7=\'+7};1 h(0,8){0.d=8};',25,25,'obj|function|style|url|backgroundImage|img|gif|get|text|SMTable_Header_MouseOut|table_th_bg|SMTable_Header_MouseDown|pointer|title|table_th_active_bg|cursor|SMTable_Header_MouseOver|SMTable_Header_SetTitle|window|location|SMTable_Header_Click|table_th_down_bg|index|php|href'.split('|'),0,{}))

View File

@@ -0,0 +1 @@
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3 E=12;3 w=8;b z(n){d(2.o){3 7=2.o(\'N\');7.P=n;Q(7.a){g=\'i\';M=\'S\'}7.G=\'&R;\';2.s.T(7)}};3 9=(2.4&&2.p);3 f=(2.4&&!2.p);3 m=K.J.H();3 c=(m.Y(\'10\')!=-1?1:0);b B(e){d(2.4){3 h=(2.r&&2.r!=\'U\')?2.13:2.s;D=(c==1?0:(9)?h.14:k.Z);v=(c==1?0:(9)?h.V:k.W);F=(9)?l.x:(f)?t=e.t:q;C=(9)?l.y:(f)?j=e.j:q;3 5=2.4(\'6\');5.a.11=(F+D+E)+\'A\';5.a.X=(C+v+w)+\'A\'}};b 6(u){d(!2.4(\'6\'))z(\'6\');3 5=2.4(\'6\');5.G=u;5.a.g=\'I\';2.L=B};b O(){2.4(\'6\').a.g=\'i\'};',62,67,'||document|var|getElementById|lixlpixel_tooltip|tooltip|el||ie5|style|function|isapple|if||ns6|display|iebody|none|clientY|window|event|ua|newid|createElement|all|false|compatMode|body|clientX|tip|pagey|offsety|||newelement|px|getmouseposition|mousey|pagex|offsetx|mousex|innerHTML|toLowerCase|block|userAgent|navigator|onmousemove|position|div|exit|id|with|nbsp|absolute|appendChild|BackCompat|scrollTop|pageYOffset|top|indexOf|pageXOffset|applewebkit|left||documentElement|scrollLeft'.split('|'),0,{}))

View File

@@ -0,0 +1,56 @@
tinyMCE.addI18n('de.smimage',{
desc : 'SMImage - Bildermanager',
button_ok_caption : 'OK',
button_save_caption : 'Speichern',
button_cancel_caption : 'Abbrechen',
menu_hint_11 : 'Datei Upload',
menu_hint_12 : 'Bilder',
menu_hint_2 : 'Neues Verzeichnis erstellen',
menu_hint_3 : 'Zur\u00FCck',
menu_hint_4 : 'Vorw\u00E4rts',
menu_hint_5 : 'Aktualisieren',
menu_view_select_1 : 'Vorschaubild',
menu_view_select_2 : 'Tabelle',
insert_label_1 : 'Beschreibung',
insert_label_2 : 'Titel',
insert_label_3 : 'Ausrichtung',
insert_label_4 : 'Format',
insert_alignment_1_hint : 'Keine',
insert_alignment_2_hint : 'Links',
insert_alignment_3_hint : 'Rechts',
table_column_caption_1 : 'Dateiname',
table_column_caption_2 : 'Dateigr\u00F6\u00DFe',
table_column_caption_3 : 'Bildgr\u00F6\u00DFe',
table_column_caption_4 : 'Datum',
table_sort_hint_1 : 'Aufsteigend sortieren',
table_sort_hint_2 : 'Absteigend sortieren',
upload_label_1 : 'Dateipfad',
upload_label_2 : 'Dateiname',
upload_label_3 : 'Neue Bildgr\u00F6\u00DFe',
upload_label_4 : 'Filter',
upload_filter_select_1 : 'Graustufen',
upload_filter_select_2 : 'Graustufen 2',
upload_filter_select_3 : 'Sepia',
upload_info_1 : 'Maximale Dateigr\u00F6\u00DFe',
image_menu_caption_0 : 'Einf\u00FCgen',
image_menu_caption_1 : 'L\u00F6schen',
image_menu_caption_2 : 'Umbenennen',
image_menu_caption_3 : 'Rechts drehen',
image_menu_caption_4 : 'Links drehen',
image_menu_hint_1 : 'Einf\u00FCgen',
image_menu_hint_2 : 'L\u00F6schen',
image_rename : 'Neuer Dateiname',
folder_rename : 'Neuer Verzeichnisname',
folder_new : 'Neues Verzeichnis',
statusbar_item2_1 : 'Seite',
statusbar_item2_2 : 'Dateien',
message_image_delete : 'M\u00F6chten Sie die Datei l\u00F6schen ?',
message_image_rename : 'M\u00F6chten Sie die Datei umbenennen ?',
message_image_rotate : 'M\u00F6chten Sie das Bild drehen ?',
message_folder_rename : 'M\u00F6chten Sie das Verzeichnis umbenennen ?',
message_folder_delete : 'M\u00F6chten Sie das Verzeichnis l\u00F6schen ?',
message_upload_1 : 'Die Datei wurde nicht zum Server \u00FCbertragen !',
message_upload_2 : 'Es wurde keine Datei ausgew\u00E4hlt !',
message_upload_3 : 'Falsches Dateiformat !',
message_upload_4 : 'Falsches Format !'
});

View File

@@ -0,0 +1,56 @@
tinyMCE.addI18n('en.smimage',{
desc : 'SMImage - Image manager',
button_ok_caption : 'OK',
button_save_caption : 'Save',
button_cancel_caption : 'Cancel',
menu_hint_11 : 'Upload file',
menu_hint_12 : 'Images',
menu_hint_2 : 'Create new folder',
menu_hint_3 : 'Back',
menu_hint_4 : 'Forward',
menu_hint_5 : 'Reload',
menu_view_select_1 : 'Thumbnail',
menu_view_select_2 : 'Table',
insert_label_1 : 'Description',
insert_label_2 : 'Title',
insert_label_3 : 'Alignment',
insert_label_4 : 'Style',
insert_alignment_1_hint : 'None',
insert_alignment_2_hint : 'Left',
insert_alignment_3_hint : 'Right',
table_column_caption_1 : 'File name',
table_column_caption_2 : 'File size',
table_column_caption_3 : 'Image size',
table_column_caption_4 : 'Date',
table_sort_hint_1 : 'Sort ascending',
table_sort_hint_2 : 'Sort descending',
upload_label_1 : 'File path',
upload_label_2 : 'File name',
upload_label_3 : 'New Image Size',
upload_label_4 : 'Filter',
upload_filter_select_1 : 'Grayscale',
upload_filter_select_2 : 'Grayscale 2',
upload_filter_select_3 : 'Sepia',
upload_info_1 : 'Maximum file size',
image_menu_caption_0 : 'Insert',
image_menu_caption_1 : 'Delete',
image_menu_caption_2 : 'Rename',
image_menu_caption_3 : 'Rotate Right',
image_menu_caption_4 : 'Rotate Left',
image_menu_hint_1 : 'Insert',
image_menu_hint_2 : 'Delete',
image_rename : 'New image name',
folder_rename : 'New folder name',
folder_new : 'New folder',
statusbar_item2_1 : 'Page',
statusbar_item2_2 : 'Files',
message_image_delete : 'Do you want to delete this file ?',
message_image_rename : 'Do you want to rename this file ?',
message_image_rotate : 'Do you want to rotate this image ?',
message_folder_rename : 'Do you want to rename this folder ?',
message_folder_delete : 'Do you want to delete this folder ?',
message_upload_1 : 'The file has not been uploaded to the server !',
message_upload_2 : 'No file was selected !',
message_upload_3 : 'Wrong file format !',
message_upload_4 : 'Wrong format !'
});

View File

@@ -0,0 +1,56 @@
tinyMCE.addI18n('ru.smimage',{
desc : 'Менеджер изображений',
button_ok_caption : 'OK',
button_save_caption : 'Сохранить',
button_cancel_caption : 'Отмена',
menu_hint_11 : 'Загрузить изображение с копьютера',
menu_hint_12 : 'Изображения',
menu_hint_2 : 'Новая папка',
menu_hint_3 : 'Назад',
menu_hint_4 : 'Вперед',
menu_hint_5 : 'Обновить',
menu_view_select_1 : 'Иконки',
menu_view_select_2 : 'Список',
insert_label_1 : 'Описание',
insert_label_2 : 'Заголовок',
insert_label_3 : 'Выравнивание',
insert_label_4 : 'Стиль',
insert_alignment_1_hint : 'Нет',
insert_alignment_2_hint : 'Налево',
insert_alignment_3_hint : 'Направо',
table_column_caption_1 : 'Имя файла',
table_column_caption_2 : 'Объем',
table_column_caption_3 : 'Размеры',
table_column_caption_4 : 'Дата',
table_sort_hint_1 : 'Сортировать по возрастанию',
table_sort_hint_2 : 'Сортировать по убыванию',
upload_label_1 : 'Путь к файлу',
upload_label_2 : 'Имя файла',
upload_label_3 : 'Уменьшить до',
upload_label_4 : 'Фильтр',
upload_filter_select_1 : 'Градации серого',
upload_filter_select_2 : 'Градации серого 2',
upload_filter_select_3 : 'Сепия',
upload_info_1 : 'Максимальный размер файла',
image_menu_caption_0 : 'Вставить',
image_menu_caption_1 : 'Удалить',
image_menu_caption_2 : 'Переименовать',
image_menu_caption_3 : 'Повернуть направо',
image_menu_caption_4 : 'Повернуть налево',
image_menu_hint_1 : 'Вставить',
image_menu_hint_2 : 'Удалить',
image_rename : 'Новое имя изображения',
folder_rename : 'Новое имя папки',
folder_new : 'Новая папка',
statusbar_item2_1 : 'Страница',
statusbar_item2_2 : 'Файлов',
message_image_delete : 'Вы действительно хотите удалить этот файл?',
message_image_rename : 'Вы действительно хотите переименовать этот файл?',
message_image_rotate : 'Вы действительно хотите повернуть это изображение?',
message_folder_rename : 'Вы действительно хотите переименовать эту папку?',
message_folder_delete : 'Вы действительно хотите удалить эту папку?',
message_upload_1 : 'Ошибка: файл не загружен на сервер',
message_upload_2 : 'Ошибка: файл не выбран',
message_upload_3 : 'Ошибка: неправильный формат файла',
message_upload_4 : 'Неверный формат!'
});

View File

@@ -0,0 +1,50 @@
<?php
// Löschen
if (isset($_GET["action"]) && $_GET["action"] == "delete") {
// Datei löschen
if (isset($_GET["file"])) { @unlink($IMAGE_PATH.$_GET["file"]); }
// Verzeichnis löschen
else if (isset($_GET["folder"])) { DeleteFolder($IMAGE_PATH.$_GET["folder"]); }
}
// Umbenennen
else if (isset($_GET["action"]) && $_GET["action"] == "rename") {
// Datei umbenennen
if (isset($_GET["file"])) {
// Dateinamen formatieren
$_GET["name"] = FormatFileName($_GET["name"]);
// Umbenennen
@rename($IMAGE_PATH.$_GET["file"], $IMAGE_PATH.$_GET["name"]);
}
// Verzeichnis umbenennen
else if (isset($_GET["folder"])) {
// Verzeichnisnamen formatieren
$_GET["name"] = FormatFolderName($_GET["name"]);
// Umbenennen
@rename($IMAGE_PATH.$_GET["folder"], $IMAGE_PATH.$_GET["name"]);
}
}
// Bild drehen
else if (isset($_GET["action"]) && $_GET["action"] == "rotate") { Image_Rotate($IMAGE_PATH.$_GET["file"], $_GET["degrees"], $SESSION["jpg_quality"]); }
// Neues Verzeichnis erstellen
else if (isset($_GET["action"]) && $_GET["action"] == "newfolder") {
// Verzeichnisnamen formatieren
$_GET["name"] = FormatFolderName($_GET["name"]);
// Verzeichnis erstellen
@mkdir($IMAGE_PATH.$_GET["name"], $CONFIG["chmod_folder"]);
}
?>

View File

@@ -0,0 +1,38 @@
<?php
$CONFIG = array();
// Allgemeine Konfiguration / General configuration
$CONFIG["server"] = "";
$CONFIG["directory"] = "";
$CONFIG["orderby"] = "0";
$CONFIG["show_thumbnail"] = "1";
$CONFIG["thumbnails_perpage"] = "20";
$CONFIG["thumbnail_size"] = "110";
$CONFIG["jpg_quality"] = "80";
$CONFIG["show_upload"] = "1";
$CONFIG["upload_filesize"] = "";
$CONFIG["show_image_menu"] = "1";
$CONFIG["show_folder_menu"] = "1";
$CONFIG["show_newfolder"] = "1";
$CONFIG["check_session_variable"] = "";
// Konfiguration der Oberfläche / Configuration of the surface
$CONFIG["preview_thumbnail_size"] = "200";
// Konfiguration Verzeichnis- und Dateirechte / Configuration folder and file rights
$CONFIG["chmod_folder"] = 0777;
$CONFIG["chmod_file"] = 0644;
// Konfiguration Cache / Configuration cache
$CONFIG["no_cache"] = "0";
// Spezial Konfiguration / Special configuration
$CONFIG["document_root"] = "";
$CONFIG["style"] = "";
?>

View File

@@ -0,0 +1,20 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>SMImage - Error</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="Jens Stolinski" />
<meta name="publisher" content="Jens Stolinski" />
<meta name="company" content="SYNASYS MEDIA" />
<!-- CSS -->
<link rel="stylesheet" href="css/smimage.css" type="text/css" media="screen" />
</head>
<body>
<div style="text-align:center; margin-top:100px;"><div><img src="img/icon_lock_128x128.png" border="0"></div></div>
</body>
</html>

View File

@@ -0,0 +1,6 @@
<div class="image_menu folder_menu" id="imenu<?php echo $IMENU_ID; ?>" onmouseover="SMImage_ShowImageMenu('imenu<?php echo $IMENU_ID; ?>', 'block');" onmouseout="SMImage_ShowImageMenu('imenu<?php echo $IMENU_ID; ?>', 'none');">
<ul>
<li><a href="javascript:;" onclick="SMImage_RenameFolder('<?php echo bin2hex(RC4("id=1&".$GET)); ?>', '<?php echo $FOLDERS[$j]; ?>');"><img style="vertical-align:text-bottom; margin-top:3px; margin-right:6px;" src="img/icon_rename_16x16.png" border="0"><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.image_menu_caption_2', '?'));</script></a></li>
<li><a href="javascript:;" onclick="SMImage_DeleteFolder('<?php echo bin2hex(RC4("id=1&".$GET)); ?>', '<?php echo $FOLDERS[$j]; ?>');"><img style="vertical-align:text-bottom; margin-top:3px; margin-right:6px;" src="img/icon_delete_16x16.png" border="0"><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.image_menu_caption_1', '?'));</script></a></li>
</ul>
</div>

View File

@@ -0,0 +1,496 @@
<?php
// Bildbreite zurückgeben
function Image_GetWidth($img) {
$image_infos = @getimagesize($img);
return $image_infos[0];
}
// Bildhöhe zurückgeben
function Image_GetHeight($img) {
$image_infos = @getimagesize($img);
return $image_infos[1];
}
// Neue Bildgröße brechnen
function GetNewImageSize($file, $size) {
$a = array();
$a["width"] = $size;
$a["height"] = $size;
if (list($width_orig, $height_orig, $image_type) = getimagesize(GetDocumentRoot().$file)) {
if ($height_orig > $size || $width_orig > $size) {
if ($height_orig >= $width_orig) {
$ratio_orig = $height_orig / $width_orig;
$a["width"] = round($size / $ratio_orig);
}
else if ($width_orig >= $height_orig) {
$ratio_orig = $width_orig / $height_orig;
$a["height"] = round($size / $ratio_orig);
}
}
else {
$a["width"] = $width_orig;
$a["height"] = $height_orig;
}
}
return $a;
}
// Bild schärfen
function Image_Sharpen($img, $amount, $radius, $threshold) {
if ($amount > 500) { $amount = 500; }
$amount = $amount * 0.016;
if ($radius > 50) { $radius = 50; }
$radius = $radius * 2;
if ($threshold > 255) { $threshold = 255; }
$radius = abs(round($radius));
if ($radius == 0) { return $img; imagedestroy($img); break; }
$w = imagesx($img); $h = imagesy($img);
$imgCanvas = imagecreatetruecolor($w, $h);
$imgBlur = imagecreatetruecolor($w, $h);
if (function_exists('imageconvolution')) {
$matrix = array(
array( 1, 2, 1 ),
array( 2, 4, 2 ),
array( 1, 2, 1 )
);
imagecopy($imgBlur, $img, 0, 0, 0, 0, $w, $h);
imageconvolution($imgBlur, $matrix, 16, 0);
}
else {
for ($i = 0; $i < $radius; $i++) {
imagecopy($imgBlur, $img, 0, 0, 1, 0, $w - 1, $h);
imagecopymerge($imgBlur, $img, 1, 0, 0, 0, $w, $h, 50);
imagecopymerge($imgBlur, $img, 0, 0, 0, 0, $w, $h, 50);
imagecopy($imgCanvas, $imgBlur, 0, 0, 0, 0, $w, $h);
imagecopymerge($imgBlur, $imgCanvas, 0, 0, 0, 1, $w, $h - 1, 33.33333 );
imagecopymerge($imgBlur, $imgCanvas, 0, 1, 0, 0, $w, $h, 25);
}
}
if($threshold>0) {
for ($x = 0; $x < $w-1; $x++) {
for ($y = 0; $y < $h; $y++) {
$rgbOrig = ImageColorAt($img, $x, $y);
$rOrig = (($rgbOrig >> 16) & 0xFF);
$gOrig = (($rgbOrig >> 8) & 0xFF);
$bOrig = ($rgbOrig & 0xFF);
$rgbBlur = ImageColorAt($imgBlur, $x, $y);
$rBlur = (($rgbBlur >> 16) & 0xFF);
$gBlur = (($rgbBlur >> 8) & 0xFF);
$bBlur = ($rgbBlur & 0xFF);
$rNew = (abs($rOrig - $rBlur) >= $threshold)
? max(0, min(255, ($amount * ($rOrig - $rBlur)) + $rOrig))
: $rOrig;
$gNew = (abs($gOrig - $gBlur) >= $threshold)
? max(0, min(255, ($amount * ($gOrig - $gBlur)) + $gOrig))
: $gOrig;
$bNew = (abs($bOrig - $bBlur) >= $threshold)
? max(0, min(255, ($amount * ($bOrig - $bBlur)) + $bOrig))
: $bOrig;
if (($rOrig != $rNew) || ($gOrig != $gNew) || ($bOrig != $bNew)) {
$pixCol = ImageColorAllocate($img, $rNew, $gNew, $bNew);
ImageSetPixel($img, $x, $y, $pixCol);
}
}
}
}
else {
for ($x = 0; $x < $w; $x++) {
for ($y = 0; $y < $h; $y++) {
$rgbOrig = ImageColorAt($img, $x, $y);
$rOrig = (($rgbOrig >> 16) & 0xFF);
$gOrig = (($rgbOrig >> 8) & 0xFF);
$bOrig = ($rgbOrig & 0xFF);
$rgbBlur = ImageColorAt($imgBlur, $x, $y);
$rBlur = (($rgbBlur >> 16) & 0xFF);
$gBlur = (($rgbBlur >> 8) & 0xFF);
$bBlur = ($rgbBlur & 0xFF);
$rNew = ($amount * ($rOrig - $rBlur)) + $rOrig;
if($rNew > 255) { $rNew = 255; }
else if($rNew < 0) { $rNew = 0; }
$gNew = ($amount * ($gOrig - $gBlur)) + $gOrig;
if($gNew > 255) {$gNew = 255;}
else if($gNew < 0) { $gNew = 0; }
$bNew = ($amount * ($bOrig - $bBlur)) + $bOrig;
if( $bNew > 255) { $bNew = 255; }
else if ( $bNew < 0 ) { $bNew = 0; }
$rgbNew = ($rNew << 16) + ($gNew <<8) + $bNew;
ImageSetPixel($img, $x, $y, $rgbNew);
}
}
}
imagedestroy($imgCanvas);
imagedestroy($imgBlur);
return $img;
}
// Bilddatei verkleinern und speichern
function Image_Resize($file, $size, $jpg_quality) {
$width = $size;
$height = $size;
// Neue Bildgröße und Typ ermitteln
list($width_orig, $height_orig, $type) = @getimagesize($file);
// Neue Bildgröße und Typ brechnen
if ($width_orig > $width || $height_orig > $height) {
$ratio_orig = $width_orig/$height_orig;
if ($width/$height > $ratio_orig) {
$width = $height*$ratio_orig;
} else {
$height = $width/$ratio_orig;
}
}
else {
$width = $width_orig;
$height = $height_orig;
}
// Neues Bild erstellen
$image_p = imagecreatetruecolor($width, $height);
switch($type) {
case 1:
if (ImageTypes() & IMG_GIF) {
// Bilddatei laden
$image = imagecreatefromgif($file);
// Transparenz erhalten
$trnprt_indx = imagecolortransparent($image);
if ($trnprt_indx >= 0) {
$trnprt_color = @imagecolorsforindex($image, $trnprt_indx);
$trnprt_indx = @imagecolorallocate($image_p, $trnprt_color['red'], $trnprt_color['green'], $trnprt_color['blue']);
imagefill($image_p, 0, 0, $trnprt_indx);
imagecolortransparent($image_p, $trnprt_indx);
}
// Resample
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
// Bild schärfen
$image_p = Image_Sharpen($image_p, 80, 0.5, 3);
// Bilddatei speichern
@imagegif($image_p, $file);
}
else {
//
}
break;
case 2:
if (ImageTypes() & IMG_JPG) {
// Bilddatei laden
$image = imagecreatefromjpeg($file);
// Resample
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
// Bild schärfen
$image_p = Image_Sharpen($image_p, 80, 0.5, 3);
// Bilddatei speichern
@imagejpeg($image_p, $file, $jpg_quality);
}
else {
//
}
break;
case 3:
if (ImageTypes() & IMG_PNG) {
// Bilddatei laden
$image = imagecreatefrompng($file);
// Transparenz erhalten
imagealphablending($image_p, false);
$colorTransparent = imagecolorallocatealpha($image_p, 0, 0, 0, 127);
imagefill($image_p, 0, 0, $colorTransparent);
imagesavealpha($image_p, true);
// Resample
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
// Bild schärfen
$image_p = Image_Sharpen($image_p, 80, 0.5, 3);
// Bilddatei speichern
@imagepng($image_p, $file);
}
else {
//
}
break;
default:
//
break;
}
// Speicher freigeben
if (isset($image)) { imagedestroy($image); }
if (isset($image_p)) { imagedestroy($image_p); }
}
// Bilddatei drehen und speichern
function Image_Rotate($file, $degrees, $jpg_quality) {
// Bildgröße und Type ermitteln
list($width, $height, $type) = @getimagesize($file);
// Neues Bild erstellen
if ($degrees != 180) {
$h = $width;
$w = $height;
$width = $w;
$height = $h;
}
$image_p = imagecreatetruecolor($width, $height);
switch($type) {
case 1:
if (ImageTypes() & IMG_GIF) {
// Bilddatei laden
$image = imagecreatefromgif($file);
// Bild drehen
$image = imagerotate($image, $degrees, -1);
// Transparenz erhalten
$trnprt_indx = imagecolortransparent($image);
if ($trnprt_indx >= 0) {
$trnprt_color = imagecolorsforindex($image, $trnprt_indx);
$trnprt_indx = imagecolorallocate($image_p, $trnprt_color['red'], $trnprt_color['green'], $trnprt_color['blue']);
imagefill($image_p, 0, 0, $trnprt_indx);
imagecolortransparent($image_p, $trnprt_indx);
}
// Bild kopieren
imagecopy($image_p ,$image, 0, 0, 0, 0, $width, $height);
// Bilddatei speichern
@imagegif($image_p, $file);
}
else {
//
}
break;
case 2:
if (ImageTypes() & IMG_JPG) {
// Bilddatei laden
$image = imagecreatefromjpeg($file);
// Bild drehen
$image = imagerotate($image, $degrees, -1);
// Bild kopieren
imagecopy($image_p ,$image, 0, 0, 0, 0, $width, $height);
// Bilddatei speichern
@imagejpeg($image_p, $file, $jpg_quality);
}
else {
//
}
break;
case 3:
if (ImageTypes() & IMG_PNG) {
// Bilddatei laden
$image = imagecreatefrompng($file);
// Bild drehen
$image = imagerotate($image, $degrees, -1);
// Transparenz erhalten
imagealphablending($image_p, false);
$colorTransparent = imagecolorallocatealpha($image_p, 0, 0, 0, 127);
imagefill($image_p, 0, 0, $colorTransparent);
imagesavealpha($image_p, true);
// Bild kopieren
imagecopy($image_p ,$image, 0, 0, 0, 0, $width, $height);
// Bilddatei speichern
@imagepng($image_p, $file);
}
else {
//
}
break;
default:
//
break;
}
// Speicher freigeben
if (isset($image)) { imagedestroy($image); }
if (isset($image_p)) { imagedestroy($image_p); }
}
// Filter auf das Bild anwenden
// 1 = Graustufen
// 2 = Graustufen + Kontrast
// 3 = Sepia
function Image_Filter($file, $jpg_quality, $filter) {
// Bildgröße und Type ermitteln
list($width, $height, $type) = @getimagesize($file);
// Neues Bild erstellen
$image_p = imagecreatetruecolor($width, $height);
switch($type) {
case 1:
if (ImageTypes() & IMG_GIF) {
// Bilddatei laden
$image = imagecreatefromgif($file);
// Filter anwenden
switch($filter) {
case 1:
@imagefilter($image, IMG_FILTER_GRAYSCALE);
break;
case 2:
@imagefilter($image, IMG_FILTER_GRAYSCALE);
@imagefilter($image, IMG_FILTER_CONTRAST, -5);
break;
case 3:
@imagefilter($image, IMG_FILTER_GRAYSCALE);
@imagefilter($image, IMG_FILTER_COLORIZE, 100, 50, 0);
break;
}
// Transparenz erhalten
$trnprt_indx = imagecolortransparent($image);
if ($trnprt_indx >= 0) {
$trnprt_color = imagecolorsforindex($image, $trnprt_indx);
$trnprt_indx = imagecolorallocate($image_p, $trnprt_color['red'], $trnprt_color['green'], $trnprt_color['blue']);
imagefill($image_p, 0, 0, $trnprt_indx);
imagecolortransparent($image_p, $trnprt_indx);
}
// Bild kopieren
imagecopy($image_p ,$image, 0, 0, 0, 0, $width, $height);
// Bilddatei speichern
@imagegif($image_p, $file);
}
else {
//
}
break;
case 2:
if (ImageTypes() & IMG_JPG) {
// Bilddatei laden
$image = imagecreatefromjpeg($file);
// Filter anwenden
switch($filter) {
case 1:
@imagefilter($image, IMG_FILTER_GRAYSCALE);
break;
case 2:
@imagefilter($image, IMG_FILTER_GRAYSCALE);
@imagefilter($image, IMG_FILTER_CONTRAST, -5);
break;
case 3:
@imagefilter($image, IMG_FILTER_GRAYSCALE);
@imagefilter($image, IMG_FILTER_COLORIZE, 100, 50, 0);
break;
}
// Bild kopieren
imagecopy($image_p ,$image, 0, 0, 0, 0, $width, $height);
// Bilddatei speichern
@imagejpeg($image_p, $file, $jpg_quality);
}
else {
//
}
break;
case 3:
if (ImageTypes() & IMG_PNG) {
// Bilddatei laden
$image = imagecreatefrompng($file);
// Filter anwenden
switch($filter) {
case 1:
@imagefilter($image, IMG_FILTER_GRAYSCALE);
break;
case 2:
@imagefilter($image, IMG_FILTER_GRAYSCALE);
@imagefilter($image, IMG_FILTER_CONTRAST, -5);
break;
case 3:
@imagefilter($image, IMG_FILTER_GRAYSCALE);
@imagefilter($image, IMG_FILTER_COLORIZE, 100, 50, 0);
break;
}
// Transparenz erhalten
imagealphablending($image_p, false);
$colorTransparent = imagecolorallocatealpha($image_p, 0, 0, 0, 127);
imagefill($image_p, 0, 0, $colorTransparent);
imagesavealpha($image_p, true);
// Bild kopieren
imagecopy($image_p ,$image, 0, 0, 0, 0, $width, $height);
// Bilddatei speichern
@imagepng($image_p, $file);
}
else {
//
}
break;
default:
//
break;
}
// Speicher freigeben
if (isset($image)) { imagedestroy($image); }
if (isset($image_p)) { imagedestroy($image_p); }
}
?>

View File

@@ -0,0 +1,37 @@
<div id="window_imagedata_top" class="top"></div>
<div class="content">
<form name="form_imagedata" action="" method="post" enctype="multipart/form-data">
<div>
<div style="margin-bottom:2px;"><b><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.insert_label_1', '?'));</script>:</b></div>
<div><input style="margin-bottom:8px; width:98%;" type="text" name="edit1" onfocus="Input_OnFocus(this);" onblur="Input_OnBlur(this);"></div>
</div>
<div>
<div style="margin-bottom:2px;"><b><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.insert_label_2', '?'));</script>:</b></div>
<div><input style="margin-bottom:8px; width:98%;" type="text" name="edit2" onfocus="Input_OnFocus(this);" onblur="Input_OnBlur(this);"></div>
</div>
<div>
<div style="margin-bottom:2px;"><b><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.insert_label_3', '?'));</script>:</b></div>
<div style="margin-bottom:6px;">
<img id="imagedata_alignment_1" class="button_mouseout" style="margin-right:8px;" src="img/icon_float_none_24x24.png" height="24" width="24" border="0" onmouseover="Button_MouseOver(this);" onmouseout="Button_MouseOut(this);" onclick="SMImage_SetImageDataAlignment(this, '');" /><img id="imagedata_alignment_2" class="button_mouseout" style="margin-right:8px;" src="img/icon_float_left_24x24.png" height="24" width="24" border="0" onmouseover="Button_MouseOver(this);" onmouseout="Button_MouseOut(this);" onclick="SMImage_SetImageDataAlignment(this, 'float:left;');" /><img id="imagedata_alignment_3" class="button_mouseout" style="margin-right:8px;" src="img/icon_float_right_24x24.png" height="24" width="24" border="0" onmouseover="Button_MouseOver(this);" onmouseout="Button_MouseOut(this);" onclick="SMImage_SetImageDataAlignment(this, 'float:right;');" />
</div>
</div>
<div>
<div style="margin-bottom:2px;"><b><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.insert_label_4', '?'));</script>:</b></div>
<div><input style="margin-bottom:14px; width:98%;" type="text" name="edit3" onfocus="Input_OnFocus(this);" onblur="Input_OnBlur(this);"></div>
</div>
<div style="margin:0 auto; width:215px;">
<script language="javascript" type="text/javascript">
/* <![CDATA[ */
var jSMB1 = new jSMButton();
var jSMB2 = new jSMButton();
jSMB1.SetStyle('float:left;');
jSMB2.SetStyle('float:left; margin-left:15px;');
jSMB1.Paint('jSMB1', tinyMCEPopup.getLang('smimage.button_ok_caption', '?'), 'SMImage_InsertNewImage(document.form_imagedata.edit1.value, document.form_imagedata.edit2.value, document.form_imagedata.edit3.value);');
jSMB2.Paint('jSMB2', tinyMCEPopup.getLang('smimage.button_cancel_caption', '?'), 'SMImage_CloseImageData();');
/* ]]> */
</script>
</div>
</form>
</div>

View File

@@ -0,0 +1,8 @@
<div class="image_menu" id="imenu<?php echo $IMENU_ID; ?>" onmouseover="SMImage_ShowImageMenu('imenu<?php echo $IMENU_ID; ?>', 'block');" onmouseout="SMImage_ShowImageMenu('imenu<?php echo $IMENU_ID; ?>', 'none');">
<ul>
<li><a href="javascript:;" onclick="SMImage_RotateImage('<?php echo bin2hex(RC4("id=1&".$GET)); ?>', '<?php echo $FILES[$j]; ?>', '90');"><img style="vertical-align:text-bottom; margin-top:3px; margin-right:6px;" src="img/icon_rotate_left_16x16.png" border="0"><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.image_menu_caption_4', '?'));</script></a></li>
<li><a href="javascript:;" onclick="SMImage_RotateImage('<?php echo bin2hex(RC4("id=1&".$GET)); ?>', '<?php echo $FILES[$j]; ?>', '-90');"><img style="vertical-align:text-bottom; margin-top:3px; margin-right:6px;" src="img/icon_rotate_right_16x16.png" border="0"><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.image_menu_caption_3', '?'));</script></a></li>
<li><a href="javascript:;" onclick="SMImage_RenameImage('<?php echo bin2hex(RC4("id=1&page=".$SESSION["page"]."&".$GET)); ?>', '<?php echo $FILES[$j]; ?>');"><img style="vertical-align:text-bottom; margin-top:3px; margin-right:6px;" src="img/icon_rename_16x16.png" border="0"><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.image_menu_caption_2', '?'));</script></a></li>
<li><a href="javascript:;" onclick="SMImage_DeleteImage('<?php echo bin2hex(RC4("id=1&".$GET)); ?>', '<?php echo $FILES[$j]; ?>');"><img align="middle" style="vertical-align:text-bottom; margin-top:3px; margin-right:6px;" src="img/icon_delete_16x16.png" border="0"><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.image_menu_caption_1', '?'));</script></a></li>
</ul>
</div>

View File

@@ -0,0 +1,16 @@
<ul>
<?php
if ($SESSION["show_upload"] == 1) {
echo "<li><a id=\"m11\" href=\"javascript:;\" title=\"\" onclick=\"window.location.href='index.php?get=".bin2hex(RC4("id=2&".$GET))."'; if (window.event){ window.event.returnValue = false; }\"><img src=\"img/icon_upload_24x24.png\" border=\"0\" /></a></li>";
echo "<li><img class=\"separator\" src=\"img/icon_separator.png\" border=\"0\" /></li>";
}
if ($SESSION["show_newfolder"] == 1) {
echo "<li><a id=\"m2\" href=\"javascript:;\" title=\"\" onclick=\"SMImage_NewFolder('".bin2hex(RC4("id=1&".$GET))."');\"><img src=\"img/icon_new_folder_24x24.png\" border=\"0\" /></a></li>";
echo "<li><img class=\"separator\" src=\"img/icon_separator.png\" border=\"0\" /></li>";
}
?>
<li><a id="m5" href="javascript:;" title="" onclick="SMImage_PageReload('<?php echo bin2hex(RC4("id=1&".$GET)); ?>'); if (window.event){ window.event.returnValue = false; }"><img src="img/icon_reload_24x24.png" border="0" /></a></li>
<li><img class="separator" src="img/icon_separator.png" border="0" /></li>
<li><select class="select" id="Select1" name="Select1" size="1" onchange="location.href=this.options[this.selectedIndex].value"><option <?php if($SESSION["show_thumbnail"] == 1) { echo "selected"; } ?> value="index.php?get=<?php echo bin2hex(RC4("id=1&show_thumbnail=1&".str_replace("&show_thumbnail=0", "", $GET))); ?>"><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.menu_view_select_1', '?'));</script></option><option <?php if($SESSION["show_thumbnail"] == 0) { echo "selected"; } ?> value="index.php?get=<?php echo bin2hex(RC4("id=1&show_thumbnail=0&".str_replace("&show_thumbnail=1", "", $GET))); ?>"><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.menu_view_select_2', '?'));</script></option></select></li>
</ul>

View File

@@ -0,0 +1,35 @@
<ul>
<?php
if ($SESSION["show_upload"] == 1) {
if ($SESSION["id"] == 1) {
echo "<li><a id=\"m11\" href=\"javascript:;\" title=\"\" onclick=\"window.location.href='index.php?get=".bin2hex(RC4("id=2&".$GET))."'; if (window.event){ window.event.returnValue = false; }\"><img src=\"img/icon_upload_24x24.png\" border=\"0\" /></a></li>";
echo "<li><img class=\"separator\" src=\"img/icon_separator.png\" border=\"0\" /></li>";
}
}
if ($SESSION["show_newfolder"] == 1) {
echo "<li><a id=\"m2\" href=\"javascript:;\" title=\"\" onclick=\"SMImage_NewFolder('".bin2hex(RC4("id=1&".$GET))."');\"><img src=\"img/icon_new_folder_24x24.png\" border=\"0\" /></a></li>";
echo "<li><img class=\"separator\" src=\"img/icon_separator.png\" border=\"0\" /></li>";
}
if ($SESSION["id"] == 1 && $SESSION["show_thumbnail"] == 1) {
if ($SESSION["page"] > 0) {
echo "<li><a id=\"m3\" href=\"javascript:;\" title=\"\" onclick=\"window.location.href='index.php?get=".bin2hex(RC4("id=1&page=".($SESSION["page"]-1)."&".$GET))."'; if (window.event){ window.event.returnValue = false; }\"><img src=\"img/icon_back_24x24.png\" border=\"0\" /></a></li>";
}
else {
echo "<li><a id=\"m3\" href=\"javascript:;\" title=\"\"><img src=\"img/icon_back_2_24x24.png\" border=\"0\" /></a></li>";
}
if ((($SESSION["page"]+1) * $SESSION["thumbnails_perpage"]) < count($FILES)) {
echo "<li><a id=\"m4\" href=\"javascript:;\" title=\"\" onclick=\"window.location.href='index.php?get=".bin2hex(RC4("id=1&page=".($SESSION["page"]+1)."&".$GET))."'; if (window.event){ window.event.returnValue = false; }\"><img src=\"img/icon_forward_24x24.png\" border=\"0\" /></a></li>";
}
else {
echo "<li><a id=\"m4\" href=\"javascript:;\" title=\"\"><img src=\"img/icon_forward_2_24x24.png\" border=\"0\" /></a></li>";
}
}
?>
<li><img class="separator" src="img/icon_separator.png" border="0" /></li>
<li><a id="m5" href="javascript:;" title="" onclick="SMImage_PageReload('<?php echo bin2hex(RC4("id=1&".$GET)); ?>'); if (window.event){ window.event.returnValue = false; }"><img src="img/icon_reload_24x24.png" border="0" /></a></li>
<li><img class="separator" src="img/icon_separator.png" border="0" /></li>
<li><select class="select" id="Select1" name="Select1" size="1" onChange="location.href=this.options[this.selectedIndex].value;"><option <?php if($SESSION["show_thumbnail"] == 1) { echo "selected"; } ?> value="index.php?get=<?php echo bin2hex(RC4("id=1&show_thumbnail=1&".str_replace("&show_thumbnail=0", "", $GET))); ?>"><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.menu_view_select_1', '?'));</script></option><option <?php if($SESSION["show_thumbnail"] == 0) { echo "selected"; } ?> value="index.php?get=<?php echo bin2hex(RC4("id=1&show_thumbnail=0&".str_replace("&show_thumbnail=1", "", $GET))); ?>"><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.menu_view_select_2', '?'));</script></option></select></li>
</ul>

View File

@@ -0,0 +1,6 @@
<ul>
<?php
echo "<li><a id=\"m12\" href=\"javascript:;\" title=\"\" onclick=\"window.location.href='index.php?get=".bin2hex(RC4("id=1&".$GET))."'; if (window.event){ window.event.returnValue = false; }\"><img src=\"img/icon_image_24x24.png\" border=\"0\" /></a></li>";
echo "<li><img class=\"separator\" src=\"img/icon_separator.png\" border=\"0\" /></li>";
?>
</ul>

View File

@@ -0,0 +1,183 @@
<?php
// Initialisierung
$SESSION = array();
$QUERY = array();
// Query-Zeichenkette entschlüsseln
if (isset($_GET["get"])) {
parse_str(RC4(@pack("H*", $_GET["get"])), $QUERY);
}
else {
include("error.php");
die;
}
// Query-Zeichenkette auf Vollständigkeit überprüfen
if (!isset($QUERY["id"]) || !isset($QUERY["check_session_variable"])) {
include("error.php");
die;
}
// Verzeichnispfad überprüfen
if ($CONFIG["directory"] != "" && $CONFIG["directory"][0] != "/") { $CONFIG["directory"] = "/".$CONFIG["directory"]; }
if ($CONFIG["directory"] != "" && $CONFIG["directory"][strlen($CONFIG["directory"])-1] != "/") { $CONFIG["directory"] = $CONFIG["directory"]."/"; }
// Serverpfad überprüfen
if ($CONFIG["server"] != "" && $CONFIG["server"][strlen($CONFIG["server"])-1] == "/") { $CONFIG["server"] = substr($CONFIG["server"], 0, -1); }
// Initialisierung
$SESSION["id"] = "1";
$SESSION["back"] = "0";
$SESSION["page"] = "0";
$SESSION["dir_root"] = $CONFIG["directory"];
$SESSION["dir"] = $CONFIG["directory"];
$SESSION["server"] = $CONFIG["server"];
$SESSION["thumbnail_size"] = $CONFIG["thumbnail_size"];
$SESSION["jpg_quality"] = $CONFIG["jpg_quality"];
$SESSION["show_thumbnail"] = $CONFIG["show_thumbnail"];
$SESSION["orderby"] = $CONFIG["orderby"];
$SESSION["show_upload"] = $CONFIG["show_upload"];
$SESSION["show_image_menu"] = $CONFIG["show_image_menu"];
$SESSION["show_folder_menu"] = $CONFIG["show_folder_menu"];
$SESSION["show_newfolder"] = $CONFIG["show_newfolder"];
$SESSION["thumbnails_perpage"] = $CONFIG["thumbnails_perpage"];
$SESSION["upload_filesize"] = $CONFIG["upload_filesize"];
$SESSION["check_session_variable"] = $CONFIG["check_session_variable"];
$SESSION["document_root"] = $CONFIG["document_root"];
// Query auswerten
if (isset($QUERY["id"])) { $SESSION["id"] = $QUERY["id"]; }
if (isset($QUERY["back"])) { $SESSION["back"] = $QUERY["back"]; }
if (isset($QUERY["page"])) { $SESSION["page"] = $QUERY["page"]; }
if (isset($QUERY["dir_root"]) && $QUERY["dir_root"] != "") {
$SESSION["dir_root"] = $QUERY["dir_root"];
// Verzeichnispfad überprüfen
if ($SESSION["dir_root"] != "" && $SESSION["dir_root"][0] != "/") { $SESSION["dir_root"] = "/".$SESSION["dir_root"]; }
if ($SESSION["dir_root"] != "" && $SESSION["dir_root"][strlen($SESSION["dir_root"])-1] != "/") { $SESSION["dir_root"] = $SESSION["dir_root"]."/"; }
$SESSION["dir"] = $SESSION["dir_root"];
}
if (isset($QUERY["dir"])) { $SESSION["dir"] = $QUERY["dir"]; }
if (isset($QUERY["server"]) && $QUERY["server"] != "") {
// Serverpfad überprüfen
if ($QUERY["server"] != "" && $QUERY["server"][strlen($QUERY["server"])-1] == "/") { $QUERY["server"] = substr($QUERY["server"], 0, -1); }
$SESSION["server"] = $QUERY["server"];
}
if (isset($QUERY["thumbnail_size"]) && $QUERY["thumbnail_size"] != "") {
$SESSION["thumbnail_size"] = $QUERY["thumbnail_size"];
}
if (isset($QUERY["jpg_quality"]) && $QUERY["jpg_quality"] != "") {
$SESSION["jpg_quality"] = $QUERY["jpg_quality"];
}
if (isset($QUERY["show_thumbnail"]) && $QUERY["show_thumbnail"] != "") {
$SESSION["show_thumbnail"] = $QUERY["show_thumbnail"];
}
if (isset($QUERY["orderby"]) && $QUERY["orderby"] != "") {
$SESSION["orderby"] = $QUERY["orderby"];
}
if (isset($QUERY["show_upload"]) && $QUERY["show_upload"] != "") {
$SESSION["show_upload"] = $QUERY["show_upload"];
}
if (isset($QUERY["show_image_menu"]) && $QUERY["show_image_menu"] != "") {
$SESSION["show_image_menu"] = $QUERY["show_image_menu"];
}
if (isset($QUERY["show_folder_menu"]) && $QUERY["show_folder_menu"] != "") {
$SESSION["show_folder_menu"] = $QUERY["show_folder_menu"];
}
if (isset($QUERY["show_newfolder"]) && $QUERY["show_newfolder"] != "") {
$SESSION["show_newfolder"] = $QUERY["show_newfolder"];
}
if (isset($QUERY["thumbnails_perpage"]) && $QUERY["thumbnails_perpage"] != "") {
$SESSION["thumbnails_perpage"] = $QUERY["thumbnails_perpage"];
}
if (isset($QUERY["upload_filesize"]) && $QUERY["upload_filesize"] != "") {
$SESSION["upload_filesize"] = $QUERY["upload_filesize"];
}
if (isset($QUERY["check_session_variable"]) && $QUERY["check_session_variable"] != "") {
$SESSION["check_session_variable"] = $QUERY["check_session_variable"];
}
if (isset($QUERY["document_root"]) && $QUERY["document_root"] != "") {
$SESSION["document_root"] = $QUERY["document_root"];
}
// Session-Variable überprüfen
if ($SESSION["check_session_variable"] != "") {
// Session Starten
session_start();
// Session-Variable überprüfen
if (!isset($_SESSION[$SESSION["check_session_variable"]])) {
include("error.php");
die;
}
}
// Eine Verzeichnisebene höher anzeigen
if (isset($_GET["action"]) && $_GET["action"] == "back") {
$array = explode ("/", $SESSION["dir"]);
$SESSION["dir"] = "";
for ($i = 0; $i < count($array)-2; $i++ ) {
$SESSION["dir"] = $SESSION["dir"].$array[$i]."/";
}
if ($SESSION["dir_root"] == $SESSION["dir"]) { $SESSION["back"] = 0; }
}
// Query-Zeichenkette 1
$GET = "dir_root=".$SESSION["dir_root"]
."&dir=".$SESSION["dir"]
."&server=".$SESSION["server"]
."&thumbnail_size=".$SESSION["thumbnail_size"]
."&show_thumbnail=".$SESSION["show_thumbnail"]
."&jpg_quality=".$SESSION["jpg_quality"]
."&back=".$SESSION["back"]
."&orderby=".$SESSION["orderby"]
."&show_upload=".$SESSION["show_upload"]
."&show_image_menu=".$SESSION["show_image_menu"]
."&show_folder_menu=".$SESSION["show_folder_menu"]
."&show_newfolder=".$SESSION["show_newfolder"]
."&thumbnails_perpage=".$SESSION["thumbnails_perpage"]
."&upload_filesize=".$SESSION["upload_filesize"]
."&check_session_variable=".$SESSION["check_session_variable"]
."&document_root=".$SESSION["document_root"];
// Query-Zeichenkette 2
$GET2 = "dir_root=".$SESSION["dir_root"]
."&server=".$SESSION["server"]
."&thumbnail_size=".$SESSION["thumbnail_size"]
."&show_thumbnail=".$SESSION["show_thumbnail"]
."&jpg_quality=".$SESSION["jpg_quality"]
."&orderby=".$SESSION["orderby"]
."&show_upload=".$SESSION["show_upload"]
."&show_image_menu=".$SESSION["show_image_menu"]
."&show_folder_menu=".$SESSION["show_folder_menu"]
."&show_newfolder=".$SESSION["show_newfolder"]
."&thumbnails_perpage=".$SESSION["thumbnails_perpage"]
."&upload_filesize=".$SESSION["upload_filesize"]
."&check_session_variable=".$SESSION["check_session_variable"]
."&document_root=".$SESSION["document_root"];
// Query-Zeichenkette 3
$GET3 = "dir_root=".$SESSION["dir_root"]
."&dir=".$SESSION["dir"]
."&server=".$SESSION["server"]
."&thumbnail_size=".$SESSION["thumbnail_size"]
."&show_thumbnail=".$SESSION["show_thumbnail"]
."&jpg_quality=".$SESSION["jpg_quality"]
."&back=".$SESSION["back"]
."&show_upload=".$SESSION["show_upload"]
."&show_image_menu=".$SESSION["show_image_menu"]
."&show_folder_menu=".$SESSION["show_folder_menu"]
."&show_newfolder=".$SESSION["show_newfolder"]
."&thumbnails_perpage=".$SESSION["thumbnails_perpage"]
."&upload_filesize=".$SESSION["upload_filesize"]
."&check_session_variable=".$SESSION["check_session_variable"]
."&document_root=".$SESSION["document_root"];
?>

View File

@@ -0,0 +1,148 @@
<?php
include("tools.php");
function SendEmptyImage() {
header ("Content-type: image/png");
$img = @imagecreatetruecolor(200, 100);
imagefill($img, 255, 255, 255);
$c = imagecolorallocate($img, 255, 255, 255);
imagefill($img, 0, 0, $c);
$text_color = imagecolorallocate($img, 68, 85, 102);
imagestring($img, 10, 80, 40, "???", $text_color);
imagepng($img);
imagedestroy($img);
}
// Neue Bildgröße brechnen
function GetNewImageSize($file, $size) {
$a = array();
$a["width"] = $size;
$a["height"] = $size;
if (list($width_orig, $height_orig, $image_type) = getimagesize($file)) {
if ($height_orig > $size || $width_orig > $size) {
if ($height_orig >= $width_orig) {
$ratio_orig = $height_orig / $width_orig;
$a["width"] = round($size / $ratio_orig);
}
else if ($width_orig >= $height_orig) {
$ratio_orig = $width_orig / $height_orig;
$a["height"] = round($size / $ratio_orig);
}
}
else {
$a["width"] = $width_orig;
$a["height"] = $height_orig;
}
}
return $a;
}
// Neue Bildgröße brechnen
$a = array();
$a = GetNewImageSize(GetDocumentRoot().$_GET["src"], $_GET["size"]);
$width = $a["width"];
$height = $a["height"];
unset($a);
// Originale Bildgröße und Bilddateityp ermitteln
if (!list($width_orig, $height_orig, $image_type) = getimagesize(GetDocumentRoot().$_GET["src"])) {
SendEmptyImage();
exit;
}
// Neues Bild erstellen
if (!$image_p = imagecreatetruecolor($width, $height)) {
SendEmptyImage();
exit;
}
// GIF-, JPG- und PNG-Bildformat
switch($image_type) {
case 1:
if (ImageTypes() & IMG_GIF) {
// Content type
header("Content-type: image/gif");
// Bilddatei laden
$image = imagecreatefromgif(GetDocumentRoot().$_GET["src"]);
// Transparenz erhalten
$trnprt_indx = imagecolortransparent($image);
if ($trnprt_indx >= 0) {
$trnprt_color = @imagecolorsforindex($image, $trnprt_indx);
$trnprt_indx = @imagecolorallocate($image_p, $trnprt_color['red'], $trnprt_color['green'], $trnprt_color['blue']);
imagefill($image_p, 0, 0, $trnprt_indx);
imagecolortransparent($image_p, $trnprt_indx);
}
// Resample
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
// Output
imagegif($image_p);
}
else {
SendEmptyImage();
}
break;
case 2:
if (ImageTypes() & IMG_JPG) {
// Content type
header("Content-type: image/jpeg");
// Bilddatei laden
$image = imagecreatefromjpeg(GetDocumentRoot().$_GET["src"]);
// Resample
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
// Output
imagejpeg($image_p, null, $_GET["jpg_quality"]);
}
else {
SendEmptyImage();
}
break;
case 3:
if (ImageTypes() & IMG_PNG) {
// Content type
header("Content-type: image/png");
// Bilddatei laden
$image = imagecreatefrompng(GetDocumentRoot().$_GET["src"]);
// Transparenz erhalten
imagealphablending($image_p, false);
$colorTransparent = imagecolorallocatealpha($image_p, 0, 0, 0, 127);
imagefill($image_p, 0, 0, $colorTransparent);
imagesavealpha($image_p, true);
// Resample
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
// Output
imagepng($image_p);
}
else {
SendEmptyImage();
}
break;
default:
SendEmptyImage();
break;
}
// Speicher freigeben
if (isset($image)) { imagedestroy($image); }
if (isset($image_p)) { imagedestroy($image_p); }
?>

View File

@@ -0,0 +1,62 @@
<style type="text/css">
/* <![CDATA[ */
.image {
padding-top: 5px;
height: <?php echo($SESSION["thumbnail_size"] + 5); ?>px;
width: <?php echo($SESSION["thumbnail_size"] + 10); ?>px;
background-color: #f6f9fb;
cursor: pointer;
}
.textbox {
line-height: 20px;
width: <?php echo($SESSION["thumbnail_size"] + 10); ?>px;
overflow: hidden;
white-space: nowrap;
}
.image_menu {
display: none;
white-space: nowrap;
overflow: hidden;
position: absolute;
margin-top: -110px;
margin-left: -1px;
list-style: none;
font-size: 10pt;
width: <?php echo($SESSION["thumbnail_size"] + 10); ?>px;
background: #ffffff url("img/image_menu_bg.gif") repeat-y;
border: 1px solid #a8adb4;
text-align: left;
filter: alpha(opacity=90);
-moz-opacity: 0.9;
opacity: 0.9;
}
.image_menu2 {
display: none;
white-space: nowrap;
overflow: hidden;
margin-top: -78px;
width: 130px;
margin-left: 6px;
}
.image_menu2_default {
display: none;
white-space: nowrap;
overflow: hidden;
margin-top: -34px;
width: 130px;
margin-left: 6px;
}
.folder_menu {
display: none;
white-space: nowrap;
overflow: hidden;
margin-top: -65px;
border: 1px solid #ffcc66;
}
-->
</style>

View File

@@ -0,0 +1,153 @@
<?php
include("tools.php");
function SendEmptyImage() {
// Content type
header("Content-type: image/gif");
// Output
imagegif(imagecreatefromgif("../img/icon_image_32x32.gif"));
}
// Neue Bildgröße brechnen
function GetNewImageSize($file, $size) {
$a = array();
$a["width"] = $size;
$a["height"] = $size;
if (list($width_orig, $height_orig, $image_type) = getimagesize($file)) {
if ($height_orig > $size || $width_orig > $size) {
if ($height_orig >= $width_orig) {
$ratio_orig = $height_orig / $width_orig;
$a["width"] = round($size / $ratio_orig);
}
else if ($width_orig >= $height_orig) {
$ratio_orig = $width_orig / $height_orig;
$a["height"] = round($size / $ratio_orig);
}
}
else {
$a["width"] = $width_orig;
$a["height"] = $height_orig;
}
}
return $a;
}
// Neue Bildgröße brechnen
$a = array();
$a = GetNewImageSize(GetDocumentRoot().$_GET["src"], $_GET["size"]);
$width = $a["width"];
$height = $a["height"];
unset($a);
// Originale Bildgröße und Bilddateityp ermitteln
if (!list($width_orig, $height_orig, $image_type) = getimagesize(GetDocumentRoot().$_GET["src"])) {
SendEmptyImage();
exit;
}
// Neues Bild erstellen
if (!$image_p = imagecreatetruecolor($width, $height)) {
SendEmptyImage();
exit;
}
// GIF-, JPG- und PNG-Bildformat
switch($image_type) {
case 1:
if (ImageTypes() & IMG_GIF) {
// Content type
header("Content-type: image/gif");
// Bilddatei laden
if ($image = imagecreatefromgif(GetDocumentRoot().$_GET["src"])) {
// Transparenz erhalten
$trnprt_indx = imagecolortransparent($image);
if ($trnprt_indx >= 0) {
$trnprt_color = @imagecolorsforindex($image, $trnprt_indx);
$trnprt_indx = @imagecolorallocate($image_p, $trnprt_color['red'], $trnprt_color['green'], $trnprt_color['blue']);
imagefill($image_p, 0, 0, $trnprt_indx);
imagecolortransparent($image_p, $trnprt_indx);
}
// Resample
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
// Output
imagegif($image_p);
}
else { SendEmptyImage(); }
}
else {
SendEmptyImage();
}
break;
case 2:
if (ImageTypes() & IMG_JPG) {
// Content type
header("Content-type: image/jpeg");
// Bilddatei laden
if ($image = imagecreatefromjpeg(GetDocumentRoot().$_GET["src"])) {
// Resample
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
// Output
imagejpeg($image_p, null, $_GET["jpg_quality"]);
}
else { SendEmptyImage(); }
}
else {
SendEmptyImage();
}
break;
case 3:
if (ImageTypes() & IMG_PNG) {
// Content type
header("Content-type: image/png");
// Bilddatei laden
if ($image = imagecreatefrompng(GetDocumentRoot().$_GET["src"])) {
// Transparenz erhalten
imagealphablending($image_p, false);
$colorTransparent = imagecolorallocatealpha($image_p, 0, 0, 0, 127);
imagefill($image_p, 0, 0, $colorTransparent);
imagesavealpha($image_p, true);
// Resample
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
// Output
imagepng($image_p);
}
else { SendEmptyImage(); }
}
else {
SendEmptyImage();
}
break;
default:
SendEmptyImage();
break;
}
// Speicher freigeben
if (isset($image)) { imagedestroy($image); }
if (isset($image_p)) { imagedestroy($image_p); }
?>

View File

@@ -0,0 +1,291 @@
<?php
include("config.php");
// Server Root-Pfad zurückgeben
function GetDocumentRoot() {
global $SESSION;
if ($SESSION["document_root"] != "") {
$s = $SESSION["document_root"];
if ($s[strlen($s)-1] == "/") { $s = substr($s, 0, -1); }
return $s;
}
if (isset($_SERVER["DOCUMENT_ROOT"])) { return $_SERVER["DOCUMENT_ROOT"]; }
else if (isset($_SERVER["APPL_PHYSICAL_PATH"])) {
$s = $_SERVER["APPL_PHYSICAL_PATH"];
$s = str_replace('\\', '/', $_SERVER["APPL_PHYSICAL_PATH"]);
if ($s[strlen($s)-1] == "/") { $s = substr($s, 0, -1); }
return $s;
}
}
// Datei-Erweiterung zurückgeben
function GetFileExt($file) {
$pfad_info = @pathinfo($file);
return $pfad_info['extension'];
}
// Datei-Erweiterung prüfen
function IsFileExt($file, $ext) {
if (GetFileExt(strtolower($file)) == strtolower($ext)) { return true; }
else { return false; }
}
// Verzeichnis lesen und alle Dateien ermitteln
function GetFiles($dir, $orderby) {
$files = array();
if ($dh = @opendir($dir)) {
while($file = readdir($dh)) {
if (!preg_match("/^\.+$/", $file)) {
if (is_file($dir.$file) && (IsFileExt($file, "jpg") || IsFileExt($file, "jpeg") || IsFileExt($file, "gif") || IsFileExt($file, "png"))) {
$files[0][] = $file;
$files[1][] = filemtime($dir.$file);
$files[2][] = filesize($dir.$file);
$files[3][] = Image_GetWidth($dir.$file);
}
}
}
closedir($dh);
}
switch ($orderby) {
case "0":
@array_multisort($files[1], SORT_NUMERIC, SORT_DESC, $files[0], SORT_STRING, SORT_DESC);
break;
case "1":
@array_multisort($files[0], SORT_STRING, SORT_ASC);
break;
case "2":
@array_multisort($files[0], SORT_STRING, SORT_DESC);
break;
case "3":
@array_multisort($files[2], SORT_NUMERIC, SORT_ASC, $files[0], SORT_STRING, SORT_DESC);
break;
case "4":
@array_multisort($files[2], SORT_NUMERIC, SORT_DESC, $files[0], SORT_STRING, SORT_DESC);
break;
case "5":
@array_multisort($files[3], SORT_NUMERIC, SORT_ASC, $files[0], SORT_STRING, SORT_DESC);
break;
case "6":
@array_multisort($files[3], SORT_NUMERIC, SORT_DESC, $files[0], SORT_STRING, SORT_DESC);
break;
case "7":
@array_multisort($files[1], SORT_NUMERIC, SORT_ASC, $files[0], SORT_STRING, SORT_DESC);
break;
case "8":
@array_multisort($files[1], SORT_NUMERIC, SORT_DESC, $files[0], SORT_STRING, SORT_DESC);
break;
}
// Server-Cache löschen
clearstatcache();
// Datei-Array zurückgeben
return $files[0];
}
// Verzeichnis lesen und alle Ordner ermitteln
function GetFolders($dir) {
$folders = array();
if ($dh = @opendir($dir)) {
while($file = readdir($dh)) {
if (!preg_match("/^\.+$/", $file)) {
if (is_dir($dir.$file)) { $folders[] = $file; }
}
}
closedir($dh);
}
@sort($folders, SORT_STRING);
// Server-Cache löschen
clearstatcache();
// Ordner-Array zurückgeben
return $folders;
}
// Verzeichnis rekursiv löschen
// Rückgabewerte:
// 0 - O.K.
// -1 - Kein Verzeichnis
// -2 - Fehler beim Löschen
// -3 - Ein Eintrag eines Verzeichnisses war keine Datei und kein Verzeichnis und kein Link
function DeleteFolder($path) {
// Auf Verzeichnis testen
if (!is_dir($path)) { return -1; }
// Verzeichnis öffnen
$dir = @opendir($path);
// Fehler?
if (!$dir) { return -2; }
while (($entry = @readdir($dir)) != false) {
if ($entry == '.' || $entry == '..') continue;
if (is_dir($path.'/'.$entry)) {
$res = DeleteFolder($path.'/'.$entry);
// Fehler ?
if ($res == -1) {
@closedir($dir);
return -2;
}
else if ($res == -2) {
@closedir($dir);
return -2;
}
else if ($res == -3) {
@closedir($dir);
return -3;
}
else if ($res != 0) {
@closedir($dir);
return -2;
}
}
else if (is_file($path.'/'.$entry) || is_link($path.'/'.$entry)) {
// Datei löschen
$res = @unlink($path.'/'.$entry);
// Fehler?
if (!$res) {
@closedir($dir);
return -2;
}
}
else {
@closedir($dir);
return -3;
}
}
// Verzeichnis schliessen
@closedir($dir);
// Verzeichnis löschen
$res = @rmdir($path);
// Fehler?
if (!$res) { return -2; }
return 0;
}
// Datumsformat zurückgeben
function GetDateFormat() {
$lang = $_SERVER["HTTP_ACCEPT_LANGUAGE"];
$curlang = substr($lang, 0, 2);
if (isset($lang)) {
if ($curlang == "en") { return "Y-m-d"; }
elseif ($curlang == "de" || $curlang == "nl") { return "d.m.Y"; }
else { return "Y-m-d"; }
}
else { return "Y-m-d"; }
}
// Dateinamen richtig formatieren und zurückgeben
function FormatFileName($name) {
// Leerzeichen entfernen
$name = ltrim($name);
$name = rtrim($name);
// Umlaute ersetzen
$name = str_replace(array('ä','ö','ü','ß','Ä','Ö','Ü'), array('ae','oe','ue','ss','Ae','Oe','Ue'), $name);
// Zeichen ersetzen
$name = str_replace(" ", "_", $name);
$name = preg_replace('/[^a-z0-9_\.\-]/i', '', $name);
return $name;
}
// Verzeichnisnamen richtig formatieren und zurückgeben
function FormatFolderName($name) {
// Leerzeichen entfernen
$name = ltrim($name);
$name = rtrim($name);
// Umlaute ersetzen
$name = str_replace(array('ä','ö','ü','ß','Ä','Ö','Ü'), array('ae','oe','ue','ss','Ae','Oe','Ue'), $name);
// Zeichen ersetzen
$name = str_replace(" ", "_", $name);
$name = preg_replace('/[^a-z0-9_\-]/i', '', $name);
return $name;
}
// Aktuellen Verzeichnispfad zurückgeben
function GetCurrentPath($dir_root, $dir) {
$a = explode ('/', $dir_root);
$s = $a[count($a)-2];
unset($a);
echo "/".$s."/".@str_replace($dir_root,"" , $dir);
}
// RC4 Verschlüsselung
function RC4($data) {
$s = array();
$key = 'f62Z4Dpv7RpBCY3MJcrOcV7nwySM7k7XijkFeCFMVnTdaa9RyXcLZl81CxkK2TGgZnWbXGvQ6nyOs2lSLJIH2ahxf0FDSgQbykByzpSL62EKluUzfWmHarf4qPYUtNUi';
for ($i = 0; $i < 256; $i++) { $s[$i] = $i; }
$j = 0;
$x;
for ($i = 0; $i < 256; $i++) {
$j = ($j + $s[$i] + ord($key[$i % strlen($key)])) % 256;
$x = $s[$i];
$s[$i] = $s[$j];
$s[$j] = $x;
}
$i = 0;
$j = 0;
$ct = '';
$y;
for ($y = 0; $y < strlen($data); $y++) {
$i = ($i + 1) % 256;
$j = ($j + $s[$i]) % 256;
$x = $s[$i];
$s[$i] = $s[$j];
$s[$j] = $x;
$ct .= $data[$y] ^ chr($s[($s[$i] + $s[$j]) % 256]);
}
return $ct;
}
// PHP-Version zurückgeben
function GetPHPVersion_Major() {
$v = phpversion();
$version = Array();
foreach(explode('.', $v) as $bit) {
if(is_numeric($bit)) { $version[] = $bit; }
}
return $version[0];
}
// PHP-Ini "safe_mode" zurückgeben
function GetPHPIni_SafeMode() {
if(ini_get('safe_mode')) { return(true); } else { return(false); }
}
?>

View File

@@ -0,0 +1,86 @@
<?php
$UPLOAD_RESULT = true;
// Bilddatei speichern
if (isset($_GET["action"]) && $_GET["action"] == "upload") {
// Dateierweiterung prüfen
if (strtolower($_POST["edit2"]) == ".jpg" || strtolower($_POST["edit2"]) == ".jpeg" || strtolower($_POST["edit2"]) == ".gif" || strtolower($_POST["edit2"]) == ".png") {
// Dateinamen formatieren
$_POST["edit1"] = FormatFileName($_POST["edit1"]);
// Bild verkleinern und speichern
if (is_numeric($_POST["edit3"])) { Image_Resize($_FILES['input1']['tmp_name'], $_POST["edit3"], $SESSION["jpg_quality"]); }
// Filter auf das Bild anwenden
if (is_numeric($_POST["select1"])) { Image_Filter($_FILES['input1']['tmp_name'], $SESSION["jpg_quality"], $_POST["select1"]); }
// Prüfen ob die Bilddatei bereits existiert, wenn ja den Dateinamen anpassen
while (file_exists(GetDocumentRoot().$SESSION["dir"].$_POST["edit1"].$_POST["edit2"])) {
$_POST["edit1"] = "_".$_POST["edit1"];
}
// Bilddatei kopieren
if ($SESSION["upload_filesize"] != "") {
if (filesize($_FILES['input1']['tmp_name']) / 1024 <= $SESSION["upload_filesize"]) {
$UPLOAD_RESULT = @move_uploaded_file($_FILES['input1']['tmp_name'], GetDocumentRoot().$SESSION["dir"].$_POST["edit1"].$_POST["edit2"]);
}
else { $UPLOAD_RESULT = false; }
}
else {
$UPLOAD_RESULT = @move_uploaded_file($_FILES['input1']['tmp_name'], GetDocumentRoot().$SESSION["dir"].$_POST["edit1"].$_POST["edit2"]);
}
// Dateirechte anpassen
if ($UPLOAD_RESULT) { @chmod(GetDocumentRoot().$SESSION["dir"].$_POST["edit1"].$_POST["edit2"], $CONFIG["chmod_file"]); }
}
else { $UPLOAD_RESULT = false; }
}
?>
<div id="upload">
<form name="form1" action="" method="post" enctype="multipart/form-data">
<div style="margin-bottom:2px;"><b><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.upload_label_1', '?'));</script>:</b>&nbsp;<span style="color:#8a95a2;">(<script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.upload_info_1', '?'));</script>:&nbsp;<?php if ($SESSION["upload_filesize"] != "") { echo $SESSION["upload_filesize"]."&nbsp;KB"; } else { echo (str_replace("M", "", ini_get('post_max_size')) * 1024)."&nbsp;KB"; } ?>)</span></div>
<div><input style="margin-bottom:8px;" type="file" name="input1" size="82" onchange="Upload_ShowFileName();" onfocus="Input_OnFocus(this);" onblur="Input_OnBlur(this);"></div>
<div style="float:left;">
<div style="margin-bottom:2px;"><b><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.upload_label_2', '?'));</script>:</b></div>
<div><input style="margin-bottom:8px; width:200px;" type="text" name="edit1" maxlength="50" onfocus="Input_OnFocus(this);" onblur="Input_OnBlur(this);"><input style="width:40px; border-left:0px; font-weight:bold; background-color:#f6f9fb; margin-bottom:8px;" type="text" name="edit2" readonly></div>
</div>
<div style="float:left; margin-left:25px;">
<div style="margin-bottom:2px;"><b><script language="javascript" type="text/javascript">document.write(tinyMCEPopup.getLang('smimage.upload_label_3', '?'));</script>:</b></div>
<div><input style="width:60px;" type="text" name="edit3" value="<?php if (isset($_POST["edit3"])) { echo $_POST["edit3"]; }else{echo 1024;} ?>" maxlength="4" onchange="SMImage_CheckFormIsNaN(this);" onfocus="Input_OnFocus(this);" onblur="Input_OnBlur(this);"><b style="margin-left:5px;">px</b></div>
</div>
<?php
if (GetPHPVersion_Major() >= 5) {
echo "<div style=\"float:left; margin-left:25px; margin-right:25px;\"><div style=\"margin-bottom:2px;\"><b><script language=\"javascript\" type=\"text/javascript\">document.write(tinyMCEPopup.getLang('smimage.upload_label_4', '?'));</script>:</b></div><div><select style=\"width:120px;\" name=\"select1\" size=\"1\" ><option selected value=\"\"></option><option value=\"1\"><script language=\"javascript\" type=\"text/javascript\">document.write(tinyMCEPopup.getLang('smimage.upload_filter_select_1', '?'));</script></option><option value=\"2\"><script language=\"javascript\" type=\"text/javascript\">document.write(tinyMCEPopup.getLang('smimage.upload_filter_select_2', '?'));</script></option><option value=\"3\"><script language=\"javascript\" type=\"text/javascript\">document.write(tinyMCEPopup.getLang('smimage.upload_filter_select_3', '?'));</script></option></select></div></div>";
}
?>
<div style="margin-top:12px; margin-bottom:50px;">
<script language="javascript" type="text/javascript">
/* <![CDATA[ */
var jSMB = new jSMButton();
jSMB.SetStyle('float:left;');
jSMB.Paint('jSMB', tinyMCEPopup.getLang('smimage.button_save_caption', '?'), 'SMImage_Upload(\'<?php echo bin2hex(RC4("id=2&".$GET)); ?>\', document.form1.edit1.value + document.form1.edit2.value);');
/* ]]> */
</script>
</div>
</form>
</div>
<div id="main_upload" style="overflow:scroll; margin-left:4px; background-color:#e9edf2;">
<?php
if (isset($_GET["action"]) && $_GET["action"] == "upload" && $UPLOAD_RESULT) {
echo "<img style=\"border:1px solid #616A74;\"src=\"".$SESSION["dir"].$_POST["edit1"].$_POST["edit2"]."\" border=\"0\" alt=\"\">";
}
else if (isset($_GET["action"]) && $_GET["action"] == "upload" && !$UPLOAD_RESULT) { echo "<div class=\"alert alert_error\"><script language=\"javascript\" type=\"text/javascript\">document.write(tinyMCEPopup.getLang('smimage.message_upload_1', '?'));</script></div>"; }
?>
</div>
<div style="height:4px; background-color:#ffffff; font-size:0px";></div>

View File

@@ -0,0 +1 @@
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('i g(7,5,2,6){f(2){e\'h\':c(0.1.4.a.3){0.1.4.a.3(7,5,2,6);0.1.9(\'m\',d)}b;l:c(0.1.4.8.3){0.1.4.8.3(7,5,2,6);0.1.9(\'j\',d)}b}k n};',24,24,'tinyMCE|activeEditor|type|Ini|plugins|url|win|field_name|smexplorer|execCommand|smimage|break|if|true|case|switch|SMPlugins|image|function|SMExplorerShow|return|default|SMImageShow|false'.split('|'),0,{}))