mirror of
				https://github.com/Mibew/java.git
				synced 2025-10-31 18:41:09 +03:00 
			
		
		
		
	install page: links to check the sound
This commit is contained in:
		
							parent
							
								
									40655b8a47
								
							
						
					
					
						commit
						df590adf81
					
				| @ -787,6 +787,16 @@ table.awaiting td.visitor { | ||||
| 	margin-left: 2em; | ||||
| } | ||||
| 
 | ||||
| #check-nv, #check-nm { | ||||
| 	color: #2f7599; | ||||
| 	text-decoration: none; | ||||
| } | ||||
| 
 | ||||
| #check-nv:hover, #check-nm:hover { | ||||
| 	text-decoration: underline; | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| /* chat */ | ||||
| 
 | ||||
| .message { | ||||
|  | ||||
| @ -31,6 +31,7 @@ $page = array( | ||||
| $page['done'] = array(); | ||||
| $page['nextstep'] = false; | ||||
| $page['nextnotice'] = false; | ||||
| $page['soundcheck'] = false; | ||||
| $errors = array(); | ||||
| 
 | ||||
| function check_webimroot() | ||||
| @ -143,6 +144,16 @@ function check_columns($link) | ||||
| 	return true; | ||||
| } | ||||
| 
 | ||||
| function check_sound() { | ||||
| 	global $page; | ||||
| 
 | ||||
| 	$page['soundcheck'] = true; | ||||
| 	$page['done'][] = getlocal2("install.5.text", array( | ||||
| 							"<a id='check-nv' href='javascript:void(0)'>".getlocal("install.5.newvisitor")."</a>", | ||||
| 							"<a id='check-nm' href='javascript:void(0)'>".getlocal("install.5.newmessage")."</a>" | ||||
| 					)); | ||||
| } | ||||
| 
 | ||||
| function check_status() | ||||
| { | ||||
| 	global $page, $webimroot, $settings, $dbversion; | ||||
| @ -171,6 +182,8 @@ function check_status() | ||||
| 		return; | ||||
| 	} | ||||
| 
 | ||||
| 	check_sound(); | ||||
| 
 | ||||
| 	$page['done'][] = getlocal("installed.message"); | ||||
| 
 | ||||
| 	$page['nextstep'] = getlocal("installed.login_link"); | ||||
|  | ||||
							
								
								
									
										1
									
								
								src/messenger/webim/js/164/soundcheck.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/messenger/webim/js/164/soundcheck.js
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| pr.ir({'a#check-nv':function(vh){vh.onclick=function(){ys(wroot+'/sounds/new_user.wav');} ;} ,'a#check-nm':function(vh){vh.onclick=function(){ys(wroot+'/sounds/new_message.wav')} ;} } ); | ||||
| @ -2,33 +2,34 @@ | ||||
| <!DOCTYPE project [<!ENTITY buildfile SYSTEM "file:./build-user.xml">]> | ||||
| 
 | ||||
| <project basedir="." default="update" name="Obfuscator"> | ||||
|   <property name="obfuscator.location" value="." /> | ||||
|   <property name="webim.location" value="../164" /> | ||||
| 	<property name="obfuscator.location" value="."/> | ||||
| 	<property name="webim.location" value="../164"/> | ||||
| 
 | ||||
|   <target name="update" depends="build"> | ||||
|     <java classname="JSO" fork="true" error="${obfuscator.location}/bin/obfuscation.log"> | ||||
|       <arg value="${obfuscator.location}/common.js" /> | ||||
|       <arg value="${obfuscator.location}/chat.js" /> | ||||
|       <arg value="${obfuscator.location}/users.js" /> | ||||
|       <arg value="${obfuscator.location}/brws.js" /> | ||||
|       <arg value="d=${webim.location}" /> | ||||
|       <!-- <arg value="debug"/> --> | ||||
|       <!-- <arg value="debugnames"/> --> | ||||
|       <arg value="o=0,0"/> | ||||
|       <classpath> | ||||
|         <pathelement location="${obfuscator.location}/bin/" /> | ||||
|       </classpath> | ||||
|     </java> | ||||
|   </target> | ||||
| 	<target name="update" depends="build"> | ||||
| 		<java classname="JSO" fork="true" error="${obfuscator.location}/bin/obfuscation.log"> | ||||
| 			<arg value="${obfuscator.location}/common.js"/> | ||||
| 			<arg value="${obfuscator.location}/chat.js"/> | ||||
| 			<arg value="${obfuscator.location}/users.js"/> | ||||
| 			<arg value="${obfuscator.location}/brws.js"/> | ||||
| 			<arg value="${obfuscator.location}/soundcheck.js"/> | ||||
| 			<arg value="d=${webim.location}"/> | ||||
| 			<!-- <arg value="debug"/> --> | ||||
| 			<!-- <arg value="debugnames"/> --> | ||||
| 			<arg value="o=0,0"/> | ||||
| 			<classpath> | ||||
| 				<pathelement location="${obfuscator.location}/bin/"/> | ||||
| 			</classpath> | ||||
| 		</java> | ||||
| 	</target> | ||||
| 
 | ||||
|   <target name="build" depends="init"> | ||||
|     <javac destdir="${obfuscator.location}/bin" fork="false"> | ||||
|       <src path="${obfuscator.location}" /> | ||||
|     </javac> | ||||
|   </target> | ||||
| 	<target name="build" depends="init"> | ||||
| 		<javac destdir="${obfuscator.location}/bin" fork="false"> | ||||
| 			<src path="${obfuscator.location}"/> | ||||
| 		</javac> | ||||
| 	</target> | ||||
| 
 | ||||
|   <target name="init"> | ||||
|     <mkdir dir="${obfuscator.location}/bin"/> | ||||
|   </target> | ||||
| 	<target name="init"> | ||||
| 		<mkdir dir="${obfuscator.location}/bin"/> | ||||
| 	</target> | ||||
| 
 | ||||
| </project> | ||||
|  | ||||
							
								
								
									
										12
									
								
								src/messenger/webim/js/source/soundcheck.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								src/messenger/webim/js/source/soundcheck.js
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | ||||
| Behaviour.register({ | ||||
| 	'a#check-nv' : function(el) { | ||||
| 		el.onclick = function() { | ||||
| 			playSound(wroot + '/sounds/new_user.wav'); | ||||
| 		}; | ||||
| 	}, | ||||
| 	'a#check-nm' : function(el) { | ||||
| 		el.onclick = function() { | ||||
| 			playSound(wroot + '/sounds/new_message.wav') | ||||
| 		}; | ||||
| 	} | ||||
| }); | ||||
| @ -173,7 +173,10 @@ install.3.create=Create required tables. | ||||
| install.3.tables_exist=Requred tables are created. | ||||
| install.4.create=Update tables | ||||
| install.4.done=Tables structure is up to date. | ||||
| install.4.notice=Structure of your tables should be adjusted for new version of Messenger.  | ||||
| install.4.notice=Structure of your tables should be adjusted for new version of Messenger. | ||||
| install.5.text=Click to check the sound: {0} and {1} | ||||
| install.5.newmessage=New Message | ||||
| install.5.newvisitor=New Visitor | ||||
| install.connection.error=Could not connect, please check server settings in config.php. Error: {0} | ||||
| install.done=Completed: | ||||
| install.err.back=Resvole problem and try again. Press <a>back</a> to return to wizard. | ||||
|  | ||||
| @ -25,6 +25,18 @@ if(isset($page) && isset($page['localeLinks'])) { | ||||
| $page['title'] = getlocal("install.title"); | ||||
| $page['fixedwrap'] = true; | ||||
| 
 | ||||
| function tpl_header() { global $page, $webimroot, $jsver; | ||||
| 	if($page['soundcheck']) { | ||||
| ?>
 | ||||
| <script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/<?php echo $jsver ?>/common.js"></script> | ||||
| <script type="text/javascript" language="javascript"><!-- | ||||
| var wroot ="<?php echo $webimroot ?>"; | ||||
| //--></script>
 | ||||
| <script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/<?php echo $jsver ?>/soundcheck.js"></script> | ||||
| <?php | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| function tpl_content() { global $page, $webimroot, $errors; | ||||
| ?>
 | ||||
| <?php echo getlocal("install.message") ?>
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user