###################################################################
#                                                                 #
#           README                                                #
#       shcounter_multi V1		                                  #
#                                                                 #
#  Author: Seungho Choo                                           #
#  EMail: choo_sh@yahoo.com                                       #
#  URL: http://tangible.new21.org                                 #
#                                                                 #
###################################################################

#License
You may modify and distribute it for non-commercial use only.
Please, leave the name and e-mail address of the original author when you distribute it.
-----------------------------------------------------------------------------------------------------
#Feature
-  ϳ swfϰ cgiϸ  ġϰ ټ ڳ  ī͸   ֽϴ. (ī )
-  ڴ ڽŸ ī , ,ī ӿ  ð   ֽϴ.
- ,,湮,ü ȸ
- ó¥, ð
-----------------------------------------------------------------------------------------------------
#Installation
1. unzip 
- shcounter_multi.fla			: flash 5 (editable) file.
- shcounter_multi.swf			: shockwave file complied with flash 5
- shcounter_multi.cgi			: perl script 
- language/korean			: text file
- README_multi(korean).txt	: you are reading

2. ø
shcounter_multi.swf
shcounter_multi.cgi 

3.
 log			: ī Ÿ  
 language		:     ī    labelŸ  

* general hierarchy of shcounter_multi
  shcounter_multi -|--- shcounter_multi.html
			   |--- shcounter_multi.swf
			   |--- shcounter_mulit.cgi //or somewhere else cgi is allowed
			   |--- log ---- user1.log  //actual data 
			   |		|-  user2.log	
			   |--- language---
						|-- korean
						|-- german
						|-- ......

4.Permission
log			:chmod 766
shcounter.cgi	:chmod 755

-----------------------------------------------------------------------------------------------------
# Edit
	
1.variables

// define variables

  6 ֽ.
 ϴ  Ʒó...
//for instance,
 ?cgilocation=http://cgipath&id=userid&title=titlehere&language=korean&laguageBase=http://yoursite/labeldatadirectory&pauseTime=5


shcounter_multi.swf ΰ ...  ڿ ڿ  ٿ־ մϴ.
//html tag

	<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
		codebase="h ttp://download.macromedia.com/ pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
		WIDTH=120 HEIGHT=40>
		<PARAM NAME=movie VALUE="shcounter_multi.swf?cgilocation=http://cgipath&id=userid&title=titlehere&language=korean&languageBase=http://yoursite/labeldatadirectory&pauseTime=5">  
		<PARAM NAME=quality VALUE=high> 
		<PARAM NAME=bgcolor VALUE=#FFFFFF>
		<EMBED src="shcounter_multi.swf?cgilocation=http://cgipath&id=userid&title=titlehere&language=korean&languageBase=http://yoursite/labeldatadirectory&pauseTime=5"
			quality=high 
			bgcolor=#FFFFFF 
			WIDTH=120 HEIGHT=40 
			TYPE="application/x-shockwave-flash" 
			PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
	</EMBED>
	</OBJECT>

//÷ 񳻷 εϽǷ.. ε幫 Ͻ ǰ..
targetMovie.loadMovie("cgilocation=http://cgipath&id=userid&title=titlehere&language=korean&laguageBase=http://yoursite/labeldatadirectory&pauseTime=5");
⼭ targetMovie ε Ŭ νź̸Դϴ.

-. language
 ѱ īƮ  ǥõǱ⸦ Ͻø..
 language=korea  ø ǰ..,  korea ε صξ մϴ.
-. languageBase 
̰  language ִ ÷ ˷ݴϴ.
÷񳻿 صδ  ȿԴϴٸ,   ó..ϼŵ մϴ.
-. cgilocatioin 
̰..shcounter_mulit.cgi urlԴϴ. θ ŵ ˴ϴ.
-. id 
ϰ ϴ  idԴϴ.  id ο log ˴ϴ.
  ̸ ڰ   ...^^ 
-. title 
÷  ó  Ÿϴ. 13 ̳ ϼž մϴ.
-.pauseTime
÷  ǰ    ֽϴ.  ʴԴϴ.

   ÷ 񿡼 Ͻ  ..׷ Ǹ,  ÷  Ƽ 񽺸    ˴ϴ.

2. cgi file 
	
	///cgiù.
	#!/usr/bin/perl 
	- This is the path of perl interpreter on your server. if you don't know the path, ask your server admin 
	  or type "whereis perl" on the console window through telnet.

	//$lod_dir
	$log_dir = "./log"; ī Ÿ   ..
	  ó..丮  Ǿ ִٸ..״ νø..˴ϴ.
	ƴ   θ ֽðų θ ֽø ˴ϴ.
	 δ url ƴ϶  Դϴ. 
	telnet̳ ftp ؼ ̴ ΰ ٷ  Դϴ. ڽ θ   ڿ ñ ٶϴ.
	http:// ؼ ȵ˴ϴ. 

#. ϱ
  ϼǸ   ׽Ʈغ.ٷ ÷  ȣϽø,  ã ϴ.

	5-1. cgi   ȣغϴ.
	̶ ޼ ̸, 
	cgi ۹̼  Ǿ  ֽϴ.
	5-2. reload
	ΰħ   , ī  ״̰ų  0̸ log γ ۹̼ ߸ Ǿ  ֽϴ.
	5-3. flash 
	÷  ùӿ   , cgilocation   Ǿ Դϴ.


-----------------------------------------------------------------------------------------------------
#. Ÿ   label 

1. ѱۺκи  ɷ..ٲٽ ˴ϴ.
//////////////////////////////////////
&labeltoday=&
&labelyesterday=&
&labeltotal=ü&
&labelyou=&
&labelday=¥&
&labeltime=ð&
&loadingSign=Ÿ ε &
&eof=true&
/////////////////////////////////////
2. յڿ ִ &  .
3. Ͻð.
4.  "language" ε Ͻɵǰڽ.
-----------------------------------------------------------------------------------------------------
#bug report
 ׸ ߰Ͻø, choo_sh@yahoo.com ̸ ֽñ ٶϴ.
-----------------------------------------------------------------------------------------------------
#Enjoy!