Completely wiped out the old application name
							
								
								
									
										10
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						| @ -1,6 +1,6 @@ | ||||
| bin | ||||
| src/messenger/.idea/workspace.xml | ||||
| src/messenger/webim/install/package | ||||
| src/messenger/mibew/install/package | ||||
| src/messenger/absent_* | ||||
| src/messenger/release* | ||||
| src/mibewjava/.idea/workspace.xml | ||||
| @ -9,9 +9,9 @@ mibew.ini | ||||
| .DS_Store | ||||
| 
 | ||||
| # No index actual configuration files | ||||
| src/messenger/webim/libs/config.php | ||||
| src/messenger/tests/server_side/webim/libs/config.php | ||||
| src/messenger/mibew/libs/config.php | ||||
| src/messenger/tests/server_side/mibew/libs/config.php | ||||
| 
 | ||||
| # No index plugins | ||||
| src/messenger/webim/plugins/* | ||||
| !src/messenger/webim/plugins/.keep | ||||
| src/messenger/mibew/plugins/* | ||||
| !src/messenger/mibew/plugins/.keep | ||||
| @ -2,12 +2,12 @@ | ||||
| <project version="4"> | ||||
|   <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false"> | ||||
|     <file url="file://$PROJECT_DIR$" charset="UTF-8" /> | ||||
|     <file url="file://$PROJECT_DIR$/webim/locales/be/properties" charset="windows-1251" /> | ||||
|     <file url="file://$PROJECT_DIR$/webim/locales/bg/properties" charset="windows-1251" /> | ||||
|     <file url="file://$PROJECT_DIR$/webim/locales/ca/properties" charset="ISO-8859-1" /> | ||||
|     <file url="file://$PROJECT_DIR$/webim/locales/ru/properties" charset="windows-1251" /> | ||||
|     <file url="file://$PROJECT_DIR$/webim/locales/sp/properties" charset="ISO-8859-1" /> | ||||
|     <file url="file://$PROJECT_DIR$/webim/locales/ua/properties" charset="windows-1251" /> | ||||
|     <file url="file://$PROJECT_DIR$/mibew/locales/be/properties" charset="windows-1251" /> | ||||
|     <file url="file://$PROJECT_DIR$/mibew/locales/bg/properties" charset="windows-1251" /> | ||||
|     <file url="file://$PROJECT_DIR$/mibew/locales/ca/properties" charset="ISO-8859-1" /> | ||||
|     <file url="file://$PROJECT_DIR$/mibew/locales/ru/properties" charset="windows-1251" /> | ||||
|     <file url="file://$PROJECT_DIR$/mibew/locales/sp/properties" charset="ISO-8859-1" /> | ||||
|     <file url="file://$PROJECT_DIR$/mibew/locales/ua/properties" charset="windows-1251" /> | ||||
|   </component> | ||||
| </project> | ||||
| 
 | ||||
|  | ||||
| @ -1,11 +1,11 @@ | ||||
| <project name="mibew messenger" default="all"> | ||||
| 
 | ||||
| 
 | ||||
|     <property name="webim_path" value="webim" /> | ||||
|     <property name="mibew_path" value="mibew" /> | ||||
|     <property name="closure.c" value="/opt/closure/compiler.jar" /> | ||||
|     <property name="handlebars" value="handlebars" /> | ||||
|     <property name="dialogs_styles_path" value="${webim_path}/styles/dialogs" /> | ||||
|     <property name="js_path" value="${webim_path}/js" /> | ||||
|     <property name="dialogs_styles_path" value="${mibew_path}/styles/dialogs" /> | ||||
|     <property name="js_path" value="${mibew_path}/js" /> | ||||
| 
 | ||||
| 
 | ||||
|     <!-- Compile Handlebars templates for dialogs styles --> | ||||
|  | ||||
| @ -3,7 +3,7 @@ | ||||
| sub read_transl($) { | ||||
| 	my($from) = @_; | ||||
| 	my %translation = (); | ||||
| 	open(IN, "webim/locales/$from/properties"); | ||||
| 	open(IN, "mibew/locales/$from/properties"); | ||||
| 	while(<IN>) { | ||||
| 		chomp; | ||||
| 		if(/^([\w\.]+)=(.*)$/) { | ||||
|  | ||||
| @ -46,25 +46,25 @@ use Digest::MD5 qw(md5 md5_hex md5_base64); | ||||
| 	["operator/getcode.php", 2], | ||||
| 	["operator/.*\\.php", 1], | ||||
| 	 | ||||
| 	["webim/client.php", 0], | ||||
| 	["webim/leavemessage.php", 0], | ||||
| 	["webim/captcha.php", 0], | ||||
| 	["webim/license.php", 0], | ||||
| 	["webim/mail.php", 0],	 | ||||
| 	["mibew/client.php", 0], | ||||
| 	["mibew/leavemessage.php", 0], | ||||
| 	["mibew/captcha.php", 0], | ||||
| 	["mibew/license.php", 0], | ||||
| 	["mibew/mail.php", 0],	 | ||||
| 
 | ||||
| 	["libs/operator_settings.php", 2], | ||||
| 	["webim/libs/chat.php", 0], | ||||
| 	["mibew/libs/chat.php", 0], | ||||
| 	["libs/pagination.php", 1], | ||||
| 	["libs/settings.php", 2], | ||||
| 	["libs/groups.php", 2], | ||||
| 	["libs/demothread.php", 2], | ||||
| 
 | ||||
| 	["webim/thread.php", 0], | ||||
| 	["webim/b.php", 0], | ||||
| 	["webim/button.php", 0], | ||||
| 	["webim/index.php", 0], | ||||
| 	["mibew/thread.php", 0], | ||||
| 	["mibew/b.php", 0], | ||||
| 	["mibew/button.php", 0], | ||||
| 	["mibew/index.php", 0], | ||||
| 
 | ||||
| 	["webim/libs/.*\\.php", 1], | ||||
| 	["mibew/libs/.*\\.php", 1], | ||||
| ); | ||||
| 
 | ||||
| %messagekeys = ( | ||||
| @ -95,7 +95,7 @@ use Digest::MD5 qw(md5 md5_hex md5_base64); | ||||
| ); | ||||
| 
 | ||||
| 
 | ||||
| $webimPath = "webim"; | ||||
| $mibewPath = "mibew"; | ||||
| 
 | ||||
| %urls = (); | ||||
| 
 | ||||
| @ -173,7 +173,7 @@ sub file_checksum($) { | ||||
| 
 | ||||
| sub process_one($) { | ||||
| 	my($source) = @_; | ||||
| 	push @allsources, $source unless $source =~ /$webimPath\/locales/ && $source !~ /$webimPath\/locales\/(en|names)/ || $source =~ /\/package$/; | ||||
| 	push @allsources, $source unless $source =~ /$mibewPath\/locales/ && $source !~ /$mibewPath\/locales\/(en|names)/ || $source =~ /\/package$/; | ||||
| 
 | ||||
| 	if($source !~ /\.(php|tpl)$/) { | ||||
| 		return; | ||||
| @ -217,29 +217,29 @@ sub process_files($) { | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| process_files($webimPath); | ||||
| process_files($mibewPath); | ||||
| 
 | ||||
| # fix | ||||
| $messagekeys{'page.analysis.userhistory.title'} = 1; | ||||
| $messagekeys{'errors.failed.uploading.file'} = 2; | ||||
| 
 | ||||
| 
 | ||||
| open( OUT, "> $webimPath/locales/names/level1") or die "cannot write file, $!"; | ||||
| open( OUT, "> $mibewPath/locales/names/level1") or die "cannot write file, $!"; | ||||
| for $key(sort grep { $messagekeys{$_} == 0 } keys %messagekeys) { | ||||
| 	print OUT "$key\n"; | ||||
| } | ||||
| close( OUT ); | ||||
| 
 | ||||
| open( OUT, "> $webimPath/locales/names/level2") or die "cannot write file, $!"; | ||||
| open( OUT, "> $mibewPath/locales/names/level2") or die "cannot write file, $!"; | ||||
| for $key(sort grep { $messagekeys{$_} == 1 } keys %messagekeys) { | ||||
| 	print OUT "$key\n"; | ||||
| } | ||||
| close( OUT ); | ||||
| 
 | ||||
| open( OUT, "> $webimPath/install/package") or die "cannot write file, $!"; | ||||
| open( OUT, "> $mibewPath/install/package") or die "cannot write file, $!"; | ||||
| for $key(sort @allsources) { | ||||
|     $digest = file_checksum($key); | ||||
|     $key =~ s/$webimPath\///; | ||||
|     $key =~ s/$mibewPath\///; | ||||
|     print OUT "$key $digest\n"; | ||||
| } | ||||
| close( OUT ); | ||||
|  | ||||
| Before Width: | Height: | Size: 372 B After Width: | Height: | Size: 372 B | 
| Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB | 
| Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB | 
| Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB | 
| Before Width: | Height: | Size: 732 B After Width: | Height: | Size: 732 B | 
| Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB | 
| Before Width: | Height: | Size: 340 B After Width: | Height: | Size: 340 B | 
| Before Width: | Height: | Size: 728 B After Width: | Height: | Size: 728 B | 
| Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB | 
| Before Width: | Height: | Size: 604 B After Width: | Height: | Size: 604 B | 
| Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB | 
| Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB | 
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB | 
| Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB | 
| Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB | 
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB | 
| Before Width: | Height: | Size: 162 B After Width: | Height: | Size: 162 B | 
| Before Width: | Height: | Size: 43 B After Width: | Height: | Size: 43 B | 
| Before Width: | Height: | Size: 49 B After Width: | Height: | Size: 49 B | 
| Before Width: | Height: | Size: 43 B After Width: | Height: | Size: 43 B | 
| Before Width: | Height: | Size: 162 B After Width: | Height: | Size: 162 B | 
| Before Width: | Height: | Size: 713 B After Width: | Height: | Size: 713 B | 
| Before Width: | Height: | Size: 60 B After Width: | Height: | Size: 60 B | 
| Before Width: | Height: | Size: 377 B After Width: | Height: | Size: 377 B | 
| Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 68 B | 
| Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 148 B | 
| Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 199 B | 
| Before Width: | Height: | Size: 139 B After Width: | Height: | Size: 139 B | 
| Before Width: | Height: | Size: 142 B After Width: | Height: | Size: 142 B | 
| Before Width: | Height: | Size: 796 B After Width: | Height: | Size: 796 B | 
| Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB | 
| Before Width: | Height: | Size: 915 B After Width: | Height: | Size: 915 B | 
| Before Width: | Height: | Size: 905 B After Width: | Height: | Size: 905 B | 
| Before Width: | Height: | Size: 906 B After Width: | Height: | Size: 906 B | 
| Before Width: | Height: | Size: 914 B After Width: | Height: | Size: 914 B | 
| Before Width: | Height: | Size: 75 B After Width: | Height: | Size: 75 B | 
| Before Width: | Height: | Size: 74 B After Width: | Height: | Size: 74 B | 
| Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB | 
| Before Width: | Height: | Size: 55 B After Width: | Height: | Size: 55 B | 
| Before Width: | Height: | Size: 89 B After Width: | Height: | Size: 89 B | 
| Before Width: | Height: | Size: 43 B After Width: | Height: | Size: 43 B | 
| Before Width: | Height: | Size: 92 B After Width: | Height: | Size: 92 B | 
| Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 329 B | 
| Before Width: | Height: | Size: 309 B After Width: | Height: | Size: 309 B | 
| Before Width: | Height: | Size: 291 B After Width: | Height: | Size: 291 B | 
| Before Width: | Height: | Size: 554 B After Width: | Height: | Size: 554 B | 
| Before Width: | Height: | Size: 338 B After Width: | Height: | Size: 338 B | 
| Before Width: | Height: | Size: 640 B After Width: | Height: | Size: 640 B | 
| Before Width: | Height: | Size: 53 B After Width: | Height: | Size: 53 B | 
| Before Width: | Height: | Size: 70 B After Width: | Height: | Size: 70 B |