From d912da3d47089a6b9c42e1852255e3ac6d7d006c Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Mon, 24 Nov 2008 00:21:17 +0000 Subject: [PATCH] *.tpl -> templates/, *.gif -> images/ git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@197 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/libs/expand.php | 4 ++-- .../webim/styles/default/{ => images}/bg_btn.gif | Bin .../webim/styles/default/{ => images}/bg_domain.gif | Bin .../webim/styles/default/{ => images}/butbg.gif | Bin .../webim/styles/default/{ => images}/quadrat.gif | Bin .../webim/styles/{ => default/templates}/.htaccess | 0 .../styles/default/{ => templates}/agentchat.tpl | 0 .../styles/default/{ => templates}/agentrochat.tpl | 0 .../webim/styles/default/{ => templates}/chat.tpl | 6 +++--- .../styles/default/{ => templates}/chatsimple.tpl | 0 .../webim/styles/default/{ => templates}/error.tpl | 4 ++-- .../styles/default/{ => templates}/leavemessage.tpl | 6 +++--- .../default/{ => templates}/leavemessagesent.tpl | 4 ++-- .../webim/styles/default/{ => templates}/mail.tpl | 4 ++-- .../styles/default/{ => templates}/mailsent.tpl | 4 ++-- .../webim/styles/default/{ => templates}/nochat.tpl | 4 ++-- .../styles/default/{ => templates}/redirect.tpl | 6 +++--- .../styles/default/{ => templates}/redirected.tpl | 4 ++-- src/messenger/webim/styles/original/.htaccess | 1 - .../{default => original/templates}/.htaccess | 0 .../styles/original/{ => templates}/agentchat.tpl | 0 .../styles/original/{ => templates}/agentrochat.tpl | 0 .../webim/styles/original/{ => templates}/chat.tpl | 0 .../styles/original/{ => templates}/chatsimple.tpl | 0 .../webim/styles/original/{ => templates}/error.tpl | 0 .../original/{ => templates}/leavemessage.tpl | 0 .../original/{ => templates}/leavemessagesent.tpl | 0 .../webim/styles/original/{ => templates}/mail.tpl | 0 .../styles/original/{ => templates}/mailsent.tpl | 0 .../styles/original/{ => templates}/nochat.tpl | 0 .../styles/original/{ => templates}/redirect.tpl | 0 .../styles/original/{ => templates}/redirected.tpl | 0 32 files changed, 23 insertions(+), 24 deletions(-) rename src/messenger/webim/styles/default/{ => images}/bg_btn.gif (100%) rename src/messenger/webim/styles/default/{ => images}/bg_domain.gif (100%) rename src/messenger/webim/styles/default/{ => images}/butbg.gif (100%) rename src/messenger/webim/styles/default/{ => images}/quadrat.gif (100%) rename src/messenger/webim/styles/{ => default/templates}/.htaccess (100%) rename src/messenger/webim/styles/default/{ => templates}/agentchat.tpl (100%) rename src/messenger/webim/styles/default/{ => templates}/agentrochat.tpl (100%) rename src/messenger/webim/styles/default/{ => templates}/chat.tpl (98%) rename src/messenger/webim/styles/default/{ => templates}/chatsimple.tpl (100%) rename src/messenger/webim/styles/default/{ => templates}/error.tpl (94%) rename src/messenger/webim/styles/default/{ => templates}/leavemessage.tpl (95%) rename src/messenger/webim/styles/default/{ => templates}/leavemessagesent.tpl (94%) rename src/messenger/webim/styles/default/{ => templates}/mail.tpl (97%) rename src/messenger/webim/styles/default/{ => templates}/mailsent.tpl (94%) rename src/messenger/webim/styles/default/{ => templates}/nochat.tpl (94%) rename src/messenger/webim/styles/default/{ => templates}/redirect.tpl (94%) rename src/messenger/webim/styles/default/{ => templates}/redirected.tpl (94%) delete mode 100644 src/messenger/webim/styles/original/.htaccess rename src/messenger/webim/styles/{default => original/templates}/.htaccess (100%) rename src/messenger/webim/styles/original/{ => templates}/agentchat.tpl (100%) rename src/messenger/webim/styles/original/{ => templates}/agentrochat.tpl (100%) rename src/messenger/webim/styles/original/{ => templates}/chat.tpl (100%) rename src/messenger/webim/styles/original/{ => templates}/chatsimple.tpl (100%) rename src/messenger/webim/styles/original/{ => templates}/error.tpl (100%) rename src/messenger/webim/styles/original/{ => templates}/leavemessage.tpl (100%) rename src/messenger/webim/styles/original/{ => templates}/leavemessagesent.tpl (100%) rename src/messenger/webim/styles/original/{ => templates}/mail.tpl (100%) rename src/messenger/webim/styles/original/{ => templates}/mailsent.tpl (100%) rename src/messenger/webim/styles/original/{ => templates}/nochat.tpl (100%) rename src/messenger/webim/styles/original/{ => templates}/redirect.tpl (100%) rename src/messenger/webim/styles/original/{ => templates}/redirected.tpl (100%) diff --git a/src/messenger/webim/libs/expand.php b/src/messenger/webim/libs/expand.php index 42394a9d..a28d964d 100644 --- a/src/messenger/webim/libs/expand.php +++ b/src/messenger/webim/libs/expand.php @@ -98,11 +98,11 @@ function expand($basedir,$style,$filename) { if(!is_dir("$basedir/$style")) { $style = "default"; } - $expand_include_path = "$basedir/$style/"; + $expand_include_path = "$basedir/$style/templates/"; $current_style = $style; $contents = @file_get_contents($expand_include_path.$filename); if($contents === false) { - $expand_include_path = "$basedir/default/"; + $expand_include_path = "$basedir/default/templates/"; $current_style = "default"; $contents = @file_get_contents($expand_include_path.$filename) or die("cannot load template"); } diff --git a/src/messenger/webim/styles/default/bg_btn.gif b/src/messenger/webim/styles/default/images/bg_btn.gif similarity index 100% rename from src/messenger/webim/styles/default/bg_btn.gif rename to src/messenger/webim/styles/default/images/bg_btn.gif diff --git a/src/messenger/webim/styles/default/bg_domain.gif b/src/messenger/webim/styles/default/images/bg_domain.gif similarity index 100% rename from src/messenger/webim/styles/default/bg_domain.gif rename to src/messenger/webim/styles/default/images/bg_domain.gif diff --git a/src/messenger/webim/styles/default/butbg.gif b/src/messenger/webim/styles/default/images/butbg.gif similarity index 100% rename from src/messenger/webim/styles/default/butbg.gif rename to src/messenger/webim/styles/default/images/butbg.gif diff --git a/src/messenger/webim/styles/default/quadrat.gif b/src/messenger/webim/styles/default/images/quadrat.gif similarity index 100% rename from src/messenger/webim/styles/default/quadrat.gif rename to src/messenger/webim/styles/default/images/quadrat.gif diff --git a/src/messenger/webim/styles/.htaccess b/src/messenger/webim/styles/default/templates/.htaccess similarity index 100% rename from src/messenger/webim/styles/.htaccess rename to src/messenger/webim/styles/default/templates/.htaccess diff --git a/src/messenger/webim/styles/default/agentchat.tpl b/src/messenger/webim/styles/default/templates/agentchat.tpl similarity index 100% rename from src/messenger/webim/styles/default/agentchat.tpl rename to src/messenger/webim/styles/default/templates/agentchat.tpl diff --git a/src/messenger/webim/styles/default/agentrochat.tpl b/src/messenger/webim/styles/default/templates/agentrochat.tpl similarity index 100% rename from src/messenger/webim/styles/default/agentrochat.tpl rename to src/messenger/webim/styles/default/templates/agentrochat.tpl diff --git a/src/messenger/webim/styles/default/chat.tpl b/src/messenger/webim/styles/default/templates/chat.tpl similarity index 98% rename from src/messenger/webim/styles/default/chat.tpl rename to src/messenger/webim/styles/default/templates/chat.tpl index 70391484..916f1dcf 100644 --- a/src/messenger/webim/styles/default/chat.tpl +++ b/src/messenger/webim/styles/default/templates/chat.tpl @@ -16,18 +16,18 @@ var threadParams = { servl:"${webimroot}/thread.php",wroot:"${webimroot}",freque diff --git a/src/messenger/webim/styles/default/leavemessage.tpl b/src/messenger/webim/styles/default/templates/leavemessage.tpl similarity index 95% rename from src/messenger/webim/styles/default/leavemessage.tpl rename to src/messenger/webim/styles/default/templates/leavemessage.tpl index 96367982..6d93960a 100644 --- a/src/messenger/webim/styles/default/leavemessage.tpl +++ b/src/messenger/webim/styles/default/templates/leavemessage.tpl @@ -9,13 +9,13 @@ diff --git a/src/messenger/webim/styles/default/mail.tpl b/src/messenger/webim/styles/default/templates/mail.tpl similarity index 97% rename from src/messenger/webim/styles/default/mail.tpl rename to src/messenger/webim/styles/default/templates/mail.tpl index 61046cc0..435a15db 100644 --- a/src/messenger/webim/styles/default/mail.tpl +++ b/src/messenger/webim/styles/default/templates/mail.tpl @@ -8,7 +8,7 @@ diff --git a/src/messenger/webim/styles/default/nochat.tpl b/src/messenger/webim/styles/default/templates/nochat.tpl similarity index 94% rename from src/messenger/webim/styles/default/nochat.tpl rename to src/messenger/webim/styles/default/templates/nochat.tpl index 2dc491da..b0ee87ee 100644 --- a/src/messenger/webim/styles/default/nochat.tpl +++ b/src/messenger/webim/styles/default/templates/nochat.tpl @@ -8,13 +8,13 @@ diff --git a/src/messenger/webim/styles/default/redirect.tpl b/src/messenger/webim/styles/default/templates/redirect.tpl similarity index 94% rename from src/messenger/webim/styles/default/redirect.tpl rename to src/messenger/webim/styles/default/templates/redirect.tpl index c1ba4367..13f22f4d 100644 --- a/src/messenger/webim/styles/default/redirect.tpl +++ b/src/messenger/webim/styles/default/templates/redirect.tpl @@ -9,13 +9,13 @@ diff --git a/src/messenger/webim/styles/original/.htaccess b/src/messenger/webim/styles/original/.htaccess deleted file mode 100644 index 14249c50..00000000 --- a/src/messenger/webim/styles/original/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all \ No newline at end of file diff --git a/src/messenger/webim/styles/default/.htaccess b/src/messenger/webim/styles/original/templates/.htaccess similarity index 100% rename from src/messenger/webim/styles/default/.htaccess rename to src/messenger/webim/styles/original/templates/.htaccess diff --git a/src/messenger/webim/styles/original/agentchat.tpl b/src/messenger/webim/styles/original/templates/agentchat.tpl similarity index 100% rename from src/messenger/webim/styles/original/agentchat.tpl rename to src/messenger/webim/styles/original/templates/agentchat.tpl diff --git a/src/messenger/webim/styles/original/agentrochat.tpl b/src/messenger/webim/styles/original/templates/agentrochat.tpl similarity index 100% rename from src/messenger/webim/styles/original/agentrochat.tpl rename to src/messenger/webim/styles/original/templates/agentrochat.tpl diff --git a/src/messenger/webim/styles/original/chat.tpl b/src/messenger/webim/styles/original/templates/chat.tpl similarity index 100% rename from src/messenger/webim/styles/original/chat.tpl rename to src/messenger/webim/styles/original/templates/chat.tpl diff --git a/src/messenger/webim/styles/original/chatsimple.tpl b/src/messenger/webim/styles/original/templates/chatsimple.tpl similarity index 100% rename from src/messenger/webim/styles/original/chatsimple.tpl rename to src/messenger/webim/styles/original/templates/chatsimple.tpl diff --git a/src/messenger/webim/styles/original/error.tpl b/src/messenger/webim/styles/original/templates/error.tpl similarity index 100% rename from src/messenger/webim/styles/original/error.tpl rename to src/messenger/webim/styles/original/templates/error.tpl diff --git a/src/messenger/webim/styles/original/leavemessage.tpl b/src/messenger/webim/styles/original/templates/leavemessage.tpl similarity index 100% rename from src/messenger/webim/styles/original/leavemessage.tpl rename to src/messenger/webim/styles/original/templates/leavemessage.tpl diff --git a/src/messenger/webim/styles/original/leavemessagesent.tpl b/src/messenger/webim/styles/original/templates/leavemessagesent.tpl similarity index 100% rename from src/messenger/webim/styles/original/leavemessagesent.tpl rename to src/messenger/webim/styles/original/templates/leavemessagesent.tpl diff --git a/src/messenger/webim/styles/original/mail.tpl b/src/messenger/webim/styles/original/templates/mail.tpl similarity index 100% rename from src/messenger/webim/styles/original/mail.tpl rename to src/messenger/webim/styles/original/templates/mail.tpl diff --git a/src/messenger/webim/styles/original/mailsent.tpl b/src/messenger/webim/styles/original/templates/mailsent.tpl similarity index 100% rename from src/messenger/webim/styles/original/mailsent.tpl rename to src/messenger/webim/styles/original/templates/mailsent.tpl diff --git a/src/messenger/webim/styles/original/nochat.tpl b/src/messenger/webim/styles/original/templates/nochat.tpl similarity index 100% rename from src/messenger/webim/styles/original/nochat.tpl rename to src/messenger/webim/styles/original/templates/nochat.tpl diff --git a/src/messenger/webim/styles/original/redirect.tpl b/src/messenger/webim/styles/original/templates/redirect.tpl similarity index 100% rename from src/messenger/webim/styles/original/redirect.tpl rename to src/messenger/webim/styles/original/templates/redirect.tpl diff --git a/src/messenger/webim/styles/original/redirected.tpl b/src/messenger/webim/styles/original/templates/redirected.tpl similarity index 100% rename from src/messenger/webim/styles/original/redirected.tpl rename to src/messenger/webim/styles/original/templates/redirected.tpl