phpfreechat-svn Mailing List for phpFreeChat (Page 33)
Status: Beta
Brought to you by:
kerphi
You can subscribe to this list here.
2006 |
Jan
|
Feb
(2) |
Mar
|
Apr
(61) |
May
(56) |
Jun
(96) |
Jul
(23) |
Aug
(62) |
Sep
(76) |
Oct
(48) |
Nov
(28) |
Dec
(28) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(31) |
Feb
(40) |
Mar
(29) |
Apr
(11) |
May
(6) |
Jun
(18) |
Jul
(18) |
Aug
(108) |
Sep
(24) |
Oct
(6) |
Nov
(21) |
Dec
|
2008 |
Jan
|
Feb
(1) |
Mar
(16) |
Apr
|
May
(3) |
Jun
|
Jul
(7) |
Aug
(1) |
Sep
(3) |
Oct
|
Nov
(3) |
Dec
(2) |
2009 |
Jan
(2) |
Feb
|
Mar
(2) |
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
(1) |
2010 |
Jan
(2) |
Feb
|
Mar
|
Apr
(6) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <ne...@us...> - 2006-04-24 15:33:58
|
Revision: 468 Author: nemako Date: 2006-04-24 08:33:52 -0700 (Mon, 24 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=468&view=rev Log Message: ----------- Add a session to change dynamically the language. Modified Paths: -------------- trunk/admin/inc.conf.php Modified: trunk/admin/inc.conf.php =================================================================== --- trunk/admin/inc.conf.php 2006-04-24 15:21:04 UTC (rev 467) +++ trunk/admin/inc.conf.php 2006-04-24 15:33:52 UTC (rev 468) @@ -1,6 +1,4 @@ <?php -//$lang = "en_US"; -$lang = "fr_FR"; -//$lang = isset($_GET["lang"]) ? $_GET["lang"] : (isset($_SESSION["lang"]) ? $_SESSION["lang"] : "en_US" ); //$_SESSION["lang"] = $lang; - +session_start(); +$lang = isset($_GET["lang"]) ? $_GET["lang"] : (isset($_SESSION["lang"]) ? $_SESSION["lang"] : "en_US" ); $_SESSION["lang"] = $lang; ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ne...@us...> - 2006-04-24 15:21:19
|
Revision: 467 Author: nemako Date: 2006-04-24 08:21:04 -0700 (Mon, 24 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=467&view=rev Log Message: ----------- Change the php declaratino : <? to <?php Modified Paths: -------------- trunk/admin/configuration.php trunk/admin/htaccess.class.php trunk/admin/inc.conf.php trunk/admin/index.php trunk/admin/themes.class.php trunk/admin/themes.php trunk/admin/themes_avant.php trunk/admin/user.php trunk/admin/version.class.php Modified: trunk/admin/configuration.php =================================================================== --- trunk/admin/configuration.php 2006-04-24 15:15:04 UTC (rev 466) +++ trunk/admin/configuration.php 2006-04-24 15:21:04 UTC (rev 467) @@ -1,4 +1,4 @@ -<? +<?php // TOP // include("index_html_top.php"); ?> @@ -8,7 +8,7 @@ </div> -<? +<?php // BOTTOM include("index_html_bottom.php"); ?> \ No newline at end of file Modified: trunk/admin/htaccess.class.php =================================================================== --- trunk/admin/htaccess.class.php 2006-04-24 15:15:04 UTC (rev 466) +++ trunk/admin/htaccess.class.php 2006-04-24 15:21:04 UTC (rev 467) @@ -1,4 +1,4 @@ -<? +<?php /** * Class to manage .htaccess file of Apache Modified: trunk/admin/inc.conf.php =================================================================== --- trunk/admin/inc.conf.php 2006-04-24 15:15:04 UTC (rev 466) +++ trunk/admin/inc.conf.php 2006-04-24 15:21:04 UTC (rev 467) @@ -1,4 +1,6 @@ -<? +<?php //$lang = "en_US"; $lang = "fr_FR"; +//$lang = isset($_GET["lang"]) ? $_GET["lang"] : (isset($_SESSION["lang"]) ? $_SESSION["lang"] : "en_US" ); //$_SESSION["lang"] = $lang; + ?> \ No newline at end of file Modified: trunk/admin/index.php =================================================================== --- trunk/admin/index.php 2006-04-24 15:15:04 UTC (rev 466) +++ trunk/admin/index.php 2006-04-24 15:21:04 UTC (rev 467) @@ -1,4 +1,4 @@ -<? +<?php # lang require_once("../src/pfci18n.class.php"); require_once("inc.conf.php"); @@ -10,52 +10,52 @@ $version = new version(); ?> -<? +<?php // TOP // include("index_html_top.php"); ?> <div class="content"> - <h2><? echo _pfc("Administration"); ?></h2> + <h2><?php echo _pfc("Administration"); ?></h2> -<? +<?php if ($version->getPFCOfficialCurrentVersion()==0){ ?> - <div><h3><? echo _pfc("Internet connection is not possible"); ?></h3> + <div><h3><?php echo _pfc("Internet connection is not possible"); ?></h3> <ul> - <li><? echo _pfc("PFC version"); ?> : <? echo $version->getLocalVersion(); ?></li> + <li><?php echo _pfc("PFC version"); ?> : <?php echo $version->getLocalVersion(); ?></li> </ul> </div> -<? +<?php } elseif (($version->getLocalVersion())==($version->getPFCOfficialCurrentVersion())){ ?> - <div class="ok"><h3><img src="style/check_on.png" alt="<? echo _pfc("PFC is update"); ?>"> <? echo _pfc("PFC is update"); ?></h3> + <div class="ok"><h3><img src="style/check_on.png" alt="<?php echo _pfc("PFC is update"); ?>"> <?php echo _pfc("PFC is update"); ?></h3> <ul> - <li><? echo _pfc("PFC version"); ?> : <? echo $version->getLocalVersion(); ?></li> + <li><?php echo _pfc("PFC version"); ?> : <?php echo $version->getLocalVersion(); ?></li> </ul> </div> -<? +<?php } else{ ?> - <div class="ko"><h3><img src="style/check_off.png" alt="<? echo _pfc("PFC is not update"); ?>"> <? echo _pfc("PFC is not update"); ?></h3> + <div class="ko"><h3><img src="style/check_off.png" alt="<?php echo _pfc("PFC is not update"); ?>"> <?php echo _pfc("PFC is not update"); ?></h3> <ul> - <li><? echo _pfc("Your version"); ?> : <? echo $version->getLocalVersion(); ?></li> - <li><? echo _pfc("The last official version"); ?> : <? echo $version->getPFCOfficialCurrentVersion(); ?></li> - <li><? echo _pfc("Download the last version %s here %s.","<a href=\"http://sourceforge.net/project/showfiles.php?group_id=158880\">","</a>"); ?></li> + <li><?php echo _pfc("Your version"); ?> : <?php echo $version->getLocalVersion(); ?></li> + <li><?php echo _pfc("The last official version"); ?> : <?php echo $version->getPFCOfficialCurrentVersion(); ?></li> + <li><?php echo _pfc("Download the last version %s here %s.","<a href=\"http://sourceforge.net/project/showfiles.php?group_id=158880\">","</a>"); ?></li> </ul> </div> -<? +<?php } ?> </div> -<? +<?php // BOTTOM include("index_html_bottom.php"); ?> \ No newline at end of file Modified: trunk/admin/themes.class.php =================================================================== --- trunk/admin/themes.class.php 2006-04-24 15:15:04 UTC (rev 466) +++ trunk/admin/themes.class.php 2006-04-24 15:21:04 UTC (rev 467) @@ -1,4 +1,4 @@ -<? +<?php /** * Class to manage theme of pfc Modified: trunk/admin/themes.php =================================================================== --- trunk/admin/themes.php 2006-04-24 15:15:04 UTC (rev 466) +++ trunk/admin/themes.php 2006-04-24 15:21:04 UTC (rev 467) @@ -1,4 +1,4 @@ -<? +<?php # lang require_once("../src/pfci18n.class.php"); require_once("inc.conf.php"); @@ -10,14 +10,14 @@ ?> -<? +<?php // TOP // include("index_html_top.php"); ?> <div class="content"> - <h2><? echo _pfc("Available themes"); ?></h2> -<? + <h2><?php echo _pfc("Available themes"); ?></h2> +<?php $themes_list = $themes->getThemesList(); for($i=0;$i<count($themes_list);$i++) { @@ -60,7 +60,7 @@ ?> </div> -<? +<?php // BOTTOM include("index_html_bottom.php"); ?> \ No newline at end of file Modified: trunk/admin/themes_avant.php =================================================================== --- trunk/admin/themes_avant.php 2006-04-24 15:15:04 UTC (rev 466) +++ trunk/admin/themes_avant.php 2006-04-24 15:21:04 UTC (rev 467) @@ -1,18 +1,18 @@ -<? +<?php require_once("themes.class.php"); $themes = new themes(); ?> -<? +<?php // TOP // include("index_html_top.php"); ?> <div class="content"> <h2>Liste des themes disponibles</h2> -<? +<?php echo "<ul>"; $themes_list = $themes->getThemesList(); for($i=0;$i<count($themes_list);$i++) { @@ -55,7 +55,7 @@ ?> </div> -<? +<?php // BOTTOM include("index_html_bottom.php"); ?> \ No newline at end of file Modified: trunk/admin/user.php =================================================================== --- trunk/admin/user.php 2006-04-24 15:15:04 UTC (rev 466) +++ trunk/admin/user.php 2006-04-24 15:21:04 UTC (rev 467) @@ -82,15 +82,15 @@ } ?> -<? +<?php // TOP // include("index_html_top.php"); ?> <div class="content"> -<h2><? echo _pfc("Users management"); ?></h2> +<h2><?php echo _pfc("Users management"); ?></h2> -<? +<?php if(!file_exists($ht->get_file_Htaccess())) echo "<div class=\"ko\"><h3><img src=\"style/check_off.png\" alt=\""._pfc("Authentication disable")."\"> "._pfc("Authentication disable")." - <a href=\"".$_SERVER['PHP_SELF']."?active=1\">"._pfc("Enable here")."</a></h3></div>"; else{ @@ -155,7 +155,7 @@ </div> -<? +<?php // BOTTOM include("index_html_bottom.php"); ?> \ No newline at end of file Modified: trunk/admin/version.class.php =================================================================== --- trunk/admin/version.class.php 2006-04-24 15:15:04 UTC (rev 466) +++ trunk/admin/version.class.php 2006-04-24 15:21:04 UTC (rev 467) @@ -1,4 +1,4 @@ -<? +<?php /** * Class to manage theme of pfc This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ne...@us...> - 2006-04-24 15:15:14
|
Revision: 466 Author: nemako Date: 2006-04-24 08:15:04 -0700 (Mon, 24 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=466&view=rev Log Message: ----------- add require_once("pfctools.php"); in pfci18n.class.php to support the iconv function Modified Paths: -------------- trunk/src/pfci18n.class.php Modified: trunk/src/pfci18n.class.php =================================================================== --- trunk/src/pfci18n.class.php 2006-04-24 14:56:29 UTC (rev 465) +++ trunk/src/pfci18n.class.php 2006-04-24 15:15:04 UTC (rev 466) @@ -19,6 +19,8 @@ * Free Software Foundation, 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301 USA */ + +require_once("pfctools.php"); function _pfc() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ne...@us...> - 2006-04-24 14:56:36
|
Revision: 465 Author: nemako Date: 2006-04-24 07:56:29 -0700 (Mon, 24 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=465&view=rev Log Message: ----------- + change the default value $type for Init in pfci18n.class.php Modified Paths: -------------- trunk/src/pfci18n.class.php Modified: trunk/src/pfci18n.class.php =================================================================== --- trunk/src/pfci18n.class.php 2006-04-24 14:40:06 UTC (rev 464) +++ trunk/src/pfci18n.class.php 2006-04-24 14:56:29 UTC (rev 465) @@ -31,7 +31,7 @@ class pfcI18N { - function Init($language,$type='admin') + function Init($language,$type='main') { if (!in_array($language, pfcI18N::GetAcceptedLanguage())) $language = pfcI18N::GetDefaultLanguage(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ne...@us...> - 2006-04-24 14:40:37
|
Revision: 464 Author: nemako Date: 2006-04-24 07:40:06 -0700 (Mon, 24 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=464&view=rev Log Message: ----------- Add the administration interface + admin folder with users access, version and themes management + change in src/pfci18n.class.php to support the admin parameter + add admin.php files in the i18n folder for en_US and fr_FR + add info.php description file in themes folder Modified Paths: -------------- trunk/src/pfci18n.class.php Added Paths: ----------- trunk/admin/ trunk/admin/configuration.php trunk/admin/htaccess.class.php trunk/admin/inc.conf.php trunk/admin/index.php trunk/admin/index_html_bottom.php trunk/admin/index_html_top.php trunk/admin/style/ trunk/admin/style/bulle.png trunk/admin/style/check_off.png trunk/admin/style/check_on.png trunk/admin/style/content.css trunk/admin/style/footer.css trunk/admin/style/generic.css trunk/admin/style/header.css trunk/admin/style/logo_88x31.gif trunk/admin/style/menu.css trunk/admin/style/show.js trunk/admin/style/valid-css.png trunk/admin/style/valid-xhtml.png trunk/admin/themes.class.php trunk/admin/themes.php trunk/admin/themes_avant.php trunk/admin/user.php trunk/admin/version.class.php trunk/i18n/en_US/admin.php trunk/i18n/fr_FR/admin.php trunk/themes/blune/info.php trunk/themes/cerutti/info.php trunk/themes/default/info.php Added: trunk/admin/configuration.php =================================================================== --- trunk/admin/configuration.php (rev 0) +++ trunk/admin/configuration.php 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,14 @@ +<? +// TOP // +include("index_html_top.php"); +?> + +<div class="content"> + <h2>Configuration</h2> + +</div> + +<? +// BOTTOM +include("index_html_bottom.php"); +?> \ No newline at end of file Added: trunk/admin/htaccess.class.php =================================================================== --- trunk/admin/htaccess.class.php (rev 0) +++ trunk/admin/htaccess.class.php 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,556 @@ +<? + +/** +* Class to manage .htaccess file of Apache +* @author Fred Delaunay <fr...@ne...> +*/ + +class htaccess{ + var $authType; // authentification type + var $authName; // authentification name + + var $admin_files; // array of files limited to the administrators + var $modo_files; // array of files limited to the moderators + + var $file_Htpasswd; // .htpasswd file (AuthUserFile) + var $file_Htgroup; // .htgroup file (AuthGroupFile) + var $file_Htaccess; // .htaccess file + + + + function htaccess(){ + $this->authType = "Basic"; + $this->authName = "PhpFreeChat Admin Zone"; + + $this->admin_files = array("admin.php", "admin2.php"); + $this->modo_files = array("mod.php", "mod2.php"); + + + $this->file_Htpasswd = dirname(__FILE__)."/.htpasswd"; + if(!file_exists($this->file_Htpasswd)) + touch($this->file_Htpasswd); + $this->file_Htgroup = dirname(__FILE__)."/.htgroup"; + if(!file_exists($this->file_Htgroup)) { + touch($this->file_Htgroup); + $this->addGroup("admin"); + $this->addGroup("modo"); + } + $this->file_Htaccess = dirname(__FILE__)."/.htaccess"; + + } + + /***************************************/ + /* SET AND GET */ + /***************************************/ + + /** + * Set the AuthType + * @param string $authtype - AuthType is Basic or Digest (crypted) + */ + function setAuthType($authtype){ + $this->authType=$authtype; + } + /** + * Get the AuthType + * @return string $authtype - AuthType is Basic or Digest (crypted) + */ + function getAuthType(){ + return $this->authType; + } + + /** + * Set the AuthName message + * @param string $authname - AuthName message is the text display in the dialog box + */ + function setAuthName($authname){ + $this->authName=$authname; + } + /** + * Get the AuthName message + * @return string $authname - AuthName message is the text display in the dialog box + */ + function getAuthName(){ + return $this->authName; + } + + /** + * Set the .htaccess file + * @param string $filename - absolute file-path + */ + function set_file_Htaccess($filename){ + $this->file_Htaccess=$filename; + } + /** + * Get the .htaccess file + * @return string $filename - absolute file-path + */ + function get_file_Htaccess(){ + return $this->file_Htaccess; + } + + /** + * Set the .htpasswd file (AuthUserFile) + * @param string $filename - absolute file-path + */ + function set_file_Htpasswd($filename){ + $this->file_Htpasswd=$filename; + } + /** + * Get the .htpasswd file (AuthUserFile) + * @return string $filename - absolute file-path + */ + function get_file_Htpasswd(){ + return $this->file_Htpasswd; + } + + /** + * Set the .htgroup file (AuthGroupFile) + * @param string $filename - absolute file-path + */ + function set_file_Htgroup($filename){ + $this->file_Htgroup=$filename; + } + /** + * Get the .htgroup file (AuthGroupFile) + * @return string $filename - absolute file-path + */ + function get_file_Htgroup(){ + return $this->file_Htgroup; + } + + + /***************************************/ + /* USER METHODS */ + /***************************************/ + + + /** + * Check if the user exists + * @param string $username - Username + * @return boolean $UserExist - Returns true it the user exists, false if not + */ + function isUser($username){ + $UserExist = false; + $file = fopen($this->file_Htpasswd,"r"); + + while($line = fgets($file)){ + $lineArr=explode(":",$line); + if($username==$lineArr[0]){ + fclose($file); + return true; // the user exists + } + } + fclose($file); + + return false; // the user does not exist + } + + /** + * Add a user to the password file + * @param string $username - Username + * @param string $password - Password for Username + * @return boolean $created - Returns true if ok, false if the user already exists + */ + function addUser($username,$password){ + + if($this->isUser($username)==false){ + $file=fopen($this->file_Htpasswd,"a"); + if(strtolower(substr(getenv("OS"),0,7))!="windows"){ + $password=crypt($password); + } + $newLine=$username.":".$password."\n"; + fputs($file,$newLine); + fclose($file); + return true; + } + else{ + return false; // the user already exists + } + } + + + /** + * Delete a user in the password file + * @param string $username - Username to delete + * @return boolean $deleted - Returns true if user have been deleted otherwise false + */ + function delUser($username){ + // Read names from file + $file=fopen($this->file_Htpasswd,"r"); + $i=0; + $deleted = false; + while($line=fgets($file)){ + $lineArr=explode(":",trim($line)); + if($username!=$lineArr[0]){ + $newUserlist[$i][0]=$lineArr[0]; + $newUserlist[$i][1]=$lineArr[1]; + $i++; + }else{ + $deleted=true; + } + } + fclose($file); + + if($deleted==true){ + if($i==0) { // There are no more users + unlink($this->file_Htpasswd); + touch($this->file_Htpasswd); + } + else{ // Writing names back to file (without the user to delete) + $file=fopen($this->file_Htpasswd,"w"); + for($i=0;$i<count($newUserlist);$i++){ + fputs($file,$newUserlist[$i][0].":".$newUserlist[$i][1]."\n"); + } + fclose($file); + } + return true; + } + else{ + return false; + } + } + + /** + * Return an array of all users + * @return array $users - 0 if the are no user + */ + function getUsers() { + $file=fopen($this->file_Htpasswd,"r"); + for($i=0;$line=fgets($file);$i++) { + $lineArr=explode(":",$line); + if($lineArr[0]!="") { + $userlist[$i]=$lineArr[0]; + } + } + fclose($file); + if (!empty($userlist)==0) + return 0; + else + return $userlist; + } + + /** + * Return the number of users + * @return integer - the number of users + */ + function getNumberOfUsers() { + $users=$this->getUsers(); + if($users==0) + return 0; + else + return count($users); + } + + /** + * Sets a password to the given username + * @param string $username - The name of the User for changing password + * @param string $password - New Password for the User + * @return boolean $isSet - Returns true if password have been set + */ + function setPasswd($username,$new_password){ + if($this->isUser($username)==true){ + $this->delUser($username); + $this->addUser($username,$new_password); + return true; + } + else{ + return false; + } + } + + + /***************************************/ + /* GROUP METHODS */ + /***************************************/ + + /** + * Check if the group exists + * @param string $groupname - Groupname + * @return boolean $GroupExist - Returns true it the group exists, false otherwise + */ + function isGroup($groupname){ + $GroupExist = false; + $file = fopen($this->file_Htgroup,"r"); + + while($line = fgets($file)){ + $lineArr=explode(":",trim($line)); + if($groupname==trim($lineArr[0])){ + fclose($file); + return true; // the group exists + } + } + fclose($file); + + return false; // the group does not exist + } + + /** + * Add a group to the group file + * @param string $groupname - Groupname + * @return boolean $created - Returns false if the group already exists + */ + function addGroup($groupname){ + + if($this->isGroup($groupname)==false){ + $file=fopen($this->file_Htgroup,"a"); + $newLine=$groupname.": "."\n"; // Take care, it should not have a space before : + fputs($file,$newLine); + fclose($file); + return true; + } + else{ + return false; // the group already exists + } + } + + + /** + * Delete a group in the group file + * @param string $groupname - Groupname to delete + * @return boolean $deleted - Returns true if group have been deleted otherwise false + */ + function delGroup($groupname){ + // Read names from file + $file=fopen($this->file_Htgroup,"r"); + $i=0; + $newGrouplist=0; + while($line=fgets($file)){ + $lineArr=explode(":",trim($line)); + if($groupname!=trim($lineArr[0])){ + $newGrouplist[$i]=trim($line); + $i++; + }else{ + $deleted=true; + } + } + fclose($file); + + if($deleted==true){ + if($i==0) { // There are no more users + unlink($this->file_Htpasswd); + touch($this->file_Htpasswd); + } + else{ // Writing names back to file (without the user to delete) + $file=fopen($this->file_Htgroup,"w"); + for($i=0;$i<count($newGrouplist);$i++){ + fputs($file,$newGrouplist[$i]."\n"); + } + fclose($file); + } + return true; + } + else{ + return false; + } + } + + /** + * Return an array of all groups + * @return array $groups + */ + function getGroups() { + $file=fopen($this->file_Htgroup,"r"); + for($i=0;$line=fgets($file);$i++) { + $lineArr=explode(":",trim($line)); + if($lineArr[0]!="") { + $grouplist[$i]=trim($lineArr[0]); + } + } + fclose($file); + if (!empty($grouplist)==0) + return 0; + else + return $grouplist; + } + + /***************************************/ + /* USER AND GROUP METHODs */ + /***************************************/ + + /** + * Check if the user is in the group + * @param string $username - Username + * @param string $groupname - Groupname + * @return boolean $exist - Returns true it the user is in the group + */ + function isUserInGroup($username,$groupname){ + $file = fopen($this->file_Htgroup,"r"); + + while($line = fgets($file)){ + $lineArr=explode(":",trim($line)); + if($groupname==trim($lineArr[0])){ + + $lineArrUser=explode(" ",trim($lineArr[1])); + for($i=0;$i<count($lineArrUser);$i++){ + if(trim($lineArrUser[$i])==$username) + fclose($file); + return true; // the user is in the group + } + + } + } + fclose($file); + + return false; // the user in not in the group + } + + /** + * Add a user to the group file + * @param string $username - Username + * @param string $groupname - Groupname + * @return boolean $created - Returns false if the user is already in the group + */ + function addUserInGroup($username,$groupname){ + + if($this->isGroup($groupname)==false){ + $this->addGroup($groupname); + } + + if($this->isUserInGroup($username,$groupname)==false){ + // Read names from file + $file = fopen($this->file_Htgroup,"r"); + $i=0; + while($line = fgets($file)){ + $lineArr=explode(":",trim($line)); + if($groupname==trim($lineArr[0])){ + $newlist[$i]=trim($line)." ".$username; + } + else{ + $newlist[$i]=trim($line); + } + $i++; + } + fclose($file); + + + // Writing names back to file (without the user to delete) + $file=fopen($this->file_Htgroup,"w"); + for($i=0;$i<count($newlist);$i++){ + fputs($file,$newlist[$i]."\n"); + } + fclose($file); + return true; + } + else{ + return false; // the user is already in the group + } + } + + /** + * Delete a user from the group file + * @param string $username - Username + * @param string $groupname - Groupname + * @return boolean $created - Returns false if the user was not in the group + */ + function delUserFromGroup($username,$groupname){ + + if($this->isUserInGroup($username,$groupname)==true){ + + // Read names from file + $file = fopen($this->file_Htgroup,"r"); + $i=0; + while($line = fgets($file)){ + $lineArr=explode(":",trim($line)); + if($groupname==trim($lineArr[0])){ + + $lineArrUser=explode(" ",trim($lineArr[1])); + $newlist[$i]=$groupname." : "; + + for($j=0;$j<count($lineArrUser);$j++){ + if(trim($lineArrUser[$j])!=$username) + $newlist[$i].=$lineArrUser[$j]." "; + } + + } + else{ + $newlist[$i]=trim($line); + + } + $i++; + } + fclose($file); + + + // Writing names back to file (without the user to delete) + $file=fopen($this->file_Htgroup,"w"); + for($i=0;$i<count($newlist);$i++){ + fputs($file,$newlist[$i]."\n"); + } + fclose($file); + return true; + + } + else{ + return false; // the user is not in the group + } + } + + /** + * Return an array of groups from which the user belongs to + * -- Normaly, user belongs to only one group -- + * @return array $groups or 0 if the user is in none of the groups + */ + function getGroupOfUser($username) { + $file=fopen($this->file_Htgroup,"r"); + $i=0; + //$grouplist=0; + while($line = fgets($file)){ + $lineArr=explode(":",trim($line)); + $lineArrUser=explode(" ",trim($lineArr[1])); + + for($j=0;$j<count($lineArrUser);$j++){ + if(trim($lineArrUser[$j])==$username){ + $grouplist[$i]=trim($lineArr[0]); + $i++; + } + } + } + fclose($file); + if(empty($grouplist)) + return 0; + else + return $grouplist; + } + + /***************************************/ + /* WRITE the .htaccess file */ + /***************************************/ + + + + /** + * Writes the .htaccess file + */ + function printHtaccess(){ + $file=fopen($this->file_Htaccess,"w+"); + fputs($file,"AuthName \"".$this->authName."\"\n"); + fputs($file,"AuthType ".$this->authType."\n"); + fputs($file,"AuthUserFile \"".$this->file_Htpasswd."\"\n"); + fputs($file,"AuthGroupFile \"".$this->file_Htgroup."\"\n\n"); + + fputs($file,"\nrequire valid-user\n"); + + for($i=0;$i<count($this->admin_files);$i++){ + fputs($file,"\n<Files ".$this->admin_files[$i].">\n"); + fputs($file," require group admin\n"); + fputs($file,"</Files>\n"); + } + + for($i=0;$i<count($this->modo_files);$i++){ + fputs($file,"\n<Files ".$this->modo_files[$i].">\n"); + fputs($file," require group modo\n"); + fputs($file,"</Files>\n"); + } + + fclose($file); + } + + /** + * Deletes the protection of the given directory + */ + function delHtaccess(){ + unlink($this->file_Htaccess); + } + +} +?> \ No newline at end of file Added: trunk/admin/inc.conf.php =================================================================== --- trunk/admin/inc.conf.php (rev 0) +++ trunk/admin/inc.conf.php 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,4 @@ +<? +//$lang = "en_US"; +$lang = "fr_FR"; +?> \ No newline at end of file Added: trunk/admin/index.php =================================================================== --- trunk/admin/index.php (rev 0) +++ trunk/admin/index.php 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,61 @@ +<? +# lang +require_once("../src/pfci18n.class.php"); +require_once("inc.conf.php"); +pfcI18N::Init($lang,"admin"); + + +# version class +require_once("version.class.php"); +$version = new version(); +?> + +<? +// TOP // +include("index_html_top.php"); +?> + +<div class="content"> + <h2><? echo _pfc("Administration"); ?></h2> + +<? +if ($version->getPFCOfficialCurrentVersion()==0){ +?> + <div><h3><? echo _pfc("Internet connection is not possible"); ?></h3> + <ul> + <li><? echo _pfc("PFC version"); ?> : <? echo $version->getLocalVersion(); ?></li> + </ul> + </div> + +<? +} +elseif (($version->getLocalVersion())==($version->getPFCOfficialCurrentVersion())){ +?> + + <div class="ok"><h3><img src="style/check_on.png" alt="<? echo _pfc("PFC is update"); ?>"> <? echo _pfc("PFC is update"); ?></h3> + <ul> + <li><? echo _pfc("PFC version"); ?> : <? echo $version->getLocalVersion(); ?></li> + </ul> + </div> + +<? +} +else{ +?> + <div class="ko"><h3><img src="style/check_off.png" alt="<? echo _pfc("PFC is not update"); ?>"> <? echo _pfc("PFC is not update"); ?></h3> + <ul> + <li><? echo _pfc("Your version"); ?> : <? echo $version->getLocalVersion(); ?></li> + <li><? echo _pfc("The last official version"); ?> : <? echo $version->getPFCOfficialCurrentVersion(); ?></li> + <li><? echo _pfc("Download the last version %s here %s.","<a href=\"http://sourceforge.net/project/showfiles.php?group_id=158880\">","</a>"); ?></li> + </ul> + </div> + +<? +} +?> +</div> + +<? +// BOTTOM +include("index_html_bottom.php"); +?> \ No newline at end of file Added: trunk/admin/index_html_bottom.php =================================================================== --- trunk/admin/index_html_bottom.php (rev 0) +++ trunk/admin/index_html_bottom.php 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,13 @@ + +<div class="footer"> + <div class="valid"> + <a href="http://validator.w3.org/check?uri=referer"> + <img alt="Valid XHTML 1.0!" src="style/valid-xhtml.png"> + </a> + <a href="http://jigsaw.w3.org/css-validator/check/referer"> + <img alt="Valid CSS!" src="style/valid-css.png"> + </a> + </div> + <p>\xA92006 phpFreeChat</p> + </div> +</body></html> \ No newline at end of file Added: trunk/admin/index_html_top.php =================================================================== --- trunk/admin/index_html_top.php (rev 0) +++ trunk/admin/index_html_top.php 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,57 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>phpFreeChat - Administration</title> + <link rel="stylesheet" title="classic" type="text/css" href="style/generic.css"> + <link rel="stylesheet" title="classic" type="text/css" href="style/header.css"> + <link rel="stylesheet" title="classic" type="text/css" href="style/footer.css"> + <link rel="stylesheet" title="classic" type="text/css" href="style/menu.css"> + <link rel="stylesheet" title="classic" type="text/css" href="style/content.css"> + <script type="text/javascript" src="style/show.js"></script> + </head> + <body> + +<div class="header"> + <h1>phpFreeChat - Administration</h1> + <img alt="logo bulle" src="style/bulle.png" class="logo2"> +</div> + +<div class="menu"> + <ul> + <li class="sub title">General</li> + <li> + <ul class="sub"> + <li class="item"> + <a href="index.php">Administration Index</a> + <li class="item"> + <a href="../index.php">PFC Index</a> + </li> + </li> + <li class="item"> + <a href="user.php">Users</a> + </li> + <li class="item"> + <a href="configuration.php">Configuration</a> + </li> + <li class="item"> + <a href="themes.php">Themes</a> + </li> + </ul> + </li> + <li class="sub title">Other</li> + <li> + <ul> + <li class="item"> + <a href="#">other</a> + </li> + <li class="item"> + <a href="#">other</a> + </li> + </ul> + </li> + </ul> + <p class="partner"> + <a href="http://www.phpfreechat.net"><img alt="logo big" src="style/logo_88x31.gif"></a> + </p> +</div> Added: trunk/admin/style/bulle.png =================================================================== (Binary files differ) Property changes on: trunk/admin/style/bulle.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/admin/style/check_off.png =================================================================== (Binary files differ) Property changes on: trunk/admin/style/check_off.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/admin/style/check_on.png =================================================================== (Binary files differ) Property changes on: trunk/admin/style/check_on.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/admin/style/content.css =================================================================== --- trunk/admin/style/content.css (rev 0) +++ trunk/admin/style/content.css 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,34 @@ +/* --- CONTENT --- */ +div.content { + margin: 0.5em; + padding: 1em; + margin-left: 12.2em; + background-color: #FFF; + border: 1px #acd233 solid; + min-height: 40em; +} +div.content * { margin-top: 0.5em; margin-bottom: 0.5em; } +div.content h2 { border-bottom: 1px #444 solid; } +div.content h3 { text-decoration: underline; font-size: 100%; margin: 1em 0 1em 0; } +div.content a:link, div.content a:visited, div.content a:hover, div.content a:visited{ color: #0081ac; } +div.content code { background-color: #EFE; border: 1px #444 dotted; } +div.content pre { padding: 1em; background-color: #EFE; border: 1px #444 dotted; } +div.content ul { margin-left: 2em; } +div.content ol { margin-left: 3em; } +div.content dd { margin-left: 3em; } +div.content dt { font-weight: bold; margin: 2em 0 2em 0; } +div.content img { vertical-align: bottom;} +div.content .abstract { border: 2px #999 solid; background-color: #EEE; padding: 1em; color: #000; text-align: justify; } + +/* ----------------- */ +div.ok h3, div.message h3 { text-decoration: none; font-size: 100%; margin: 1em 0 1em 0; color: #339933;} +div.ko h3 { text-decoration: none; font-size: 100%; margin: 1em 0 1em 0; color: #FF0000;} + +div.showbox * { margin-top: 0; margin-bottom: 0; } +div.showbox p { margin-top: 0.2em; } +div.showbox { border : 1px solid #ccc; border-top-width : 2px; padding : 0 0.5em; margin : 0 0 0.5em 0;} +div.showbox h4 { background : #eceade; margin : 0 -0.5em; padding : 0.2em 0.5em; font-size : 1em; font-family : Verdana,Arial,Helevetica,sans-serif; } +.field label { display : block; float : left; width : 10em;} + + + Added: trunk/admin/style/footer.css =================================================================== --- trunk/admin/style/footer.css (rev 0) +++ trunk/admin/style/footer.css 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,21 @@ +/* --- FOOTER --- */ +div.footer { + position: relative; + text-align: center; + background-color: #99cc33; + color: #FFF; + border-top: 1px #acd233 solid; + border-bottom: 1px #acd233 solid; + font-size: 80%; + clear: both; + padding-left: 12em; +} +div.footer div.valid { + display: inline; + float: right; +} +div.footer div.rss { + position: absolute; + left: 5px; + float: left; +} Added: trunk/admin/style/generic.css =================================================================== --- trunk/admin/style/generic.css (rev 0) +++ trunk/admin/style/generic.css 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,20 @@ +/* --- GENERIC --- */ +* { padding: 0; margin: 0; } +a img { border: none; } +body { + color: #000000; + background: #339933; + font-family: Verdana, Sans-Serif; + font-size: 100%; + padding: 0; + margin: 0; +} + +a:link, a:visited, a:hover { + font-weight: bold; + text-decoration: none; +} +a:hover { + text-decoration: underline; +} +.nospace { word-spacing: -0.35em; } Added: trunk/admin/style/header.css =================================================================== --- trunk/admin/style/header.css (rev 0) +++ trunk/admin/style/header.css 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,23 @@ +/* --- HEADER --- */ +div.header { + position: relative; + display: block; + background-color: #99cc33; + border-bottom: 1px #acd233 solid; + height: 45px; +} +div.header h1 { + color: #FFF; + text-align: center; +} +div.header .logo2 { + position: absolute; + bottom: 0; + right: 0; +} +div.header .flags { + position: absolute; + bottom: 2px; + left: 0px; +} +div.header .flags a { margin-left: 0.5em; } Added: trunk/admin/style/logo_88x31.gif =================================================================== (Binary files differ) Property changes on: trunk/admin/style/logo_88x31.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/admin/style/menu.css =================================================================== --- trunk/admin/style/menu.css (rev 0) +++ trunk/admin/style/menu.css 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,63 @@ +/* --- MENU --- */ +div.menu { + position: absolute; + top: 55px; + left: 0.5em; +/* float: left; + margin-top: 0.5em; + margin-left: 0.4em;*/ + color: #FFF; + width: 11em; + text-align: center; +} +div.menu * { font-size: 95%; } +div.menu ul { + background-color: #99cc33; + border: 1px #acd233 solid; + text-align: left; + list-style: none; +} +div.menu li { + display: inline; +} +div.menu img { margin-top: 10px; } +div.menu .title { + padding: 4px; + text-align: center; + color: #888; + background-color: #FFF; +} +div.menu li.sub { + font-weight: bold; + padding: 0; + margin: 0; + display: block; +} +div.menu li a { + display: block; + margin: 0px; + padding: 4px; + padding-left: 10px; + width: auto; +} +div.menu li.item { + display: inline; +} +div.menu a:link, div.menu a:visited, div.menu a:hover { color: #FFF; } +div.menu a:visited { color: #FFF; } +div.menu li.item a:hover, div.menu ul.sub li.item a:hover { + display: block; + background-color: #acd233; + text-decoration: none; +} + +div.menu .partner { + margin-top: 5px; +} +div.menu div.rating { + margin-top: 10px; +} +div.menu div.rating table, div.menu div.rating table td { + text-align: center; + margin: auto; +} Added: trunk/admin/style/show.js =================================================================== --- trunk/admin/style/show.js (rev 0) +++ trunk/admin/style/show.js 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,34 @@ +function getE(id) +{ + if(document.getElementById) { + return document.getElementById(id); + } else if(document.all) { + return document.all[id]; + } else return; +} + +function openClose(id,mode) +{ + element = getE(id); + img = getE('img_'+id); + + if(element.style) { + if(mode == 0) { + if(element.style.display == 'block' ) { + element.style.display = 'none'; + img.src = 'pics/plus.gif'; + } else { + element.style.display = 'block'; + img.src = 'pics/moins.gif'; + } + } else if(mode == 1) { + element.style.display = 'block'; + img.src = 'pics/moins.gif'; + } else if(mode == -1) { + element.style.display = 'none'; + img.src = 'pics/plus.gif'; + } + } +} + + Added: trunk/admin/style/valid-css.png =================================================================== (Binary files differ) Property changes on: trunk/admin/style/valid-css.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/admin/style/valid-xhtml.png =================================================================== (Binary files differ) Property changes on: trunk/admin/style/valid-xhtml.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/admin/themes.class.php =================================================================== --- trunk/admin/themes.class.php (rev 0) +++ trunk/admin/themes.class.php 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,181 @@ +<? + +/** +* Class to manage theme of pfc +* @author Fred Delaunay <fr...@ne...> +*/ + +class themes{ + var $dir_themes; // directory of themes + + + + function themes(){ + $this->dir_themes = dirname(__FILE__)."/../themes/"; + } + + /** + * Get the list of themes + * @return array $themes_list + */ + function getThemesList(){ + $i=0; + $dir = opendir($this->dir_themes); + while ($f = readdir($dir)) { + if(is_dir($this->dir_themes.$f) && $f!="." && $f!="..") { + $themes_list[$i] = $f; + $i++; + } + } + + if($i>0) + return $themes_list; + else + return 0; + } + + /** + * Get the Author of a theme + * @param string $theme + * @return string $author + */ + function getThemeAuthor($theme){ + if(file_exists($this->dir_themes.$theme."/info.php")){ + include($this->dir_themes.$theme."/info.php"); + if(empty($author)) + return 0; + else + return $author; + } + else{ + return 0; + } + } + + + /** + * Get the Website of a theme + * @param string $theme + * @return string $website + */ + function getThemeWebsite($theme){ + if(file_exists($this->dir_themes.$theme."/info.php")){ + include($this->dir_themes.$theme."/info.php"); + if(empty($website)) + return 0; + else + return $website; + } + else{ + return 0; + } + } + + /** + * Get the info of a theme + * @param string $theme + * @return string $info + */ + function getThemeInfo($theme){ + $author = $this->getThemeAuthor($theme); + $website = $this->getThemeWebsite($theme); + $screenshot = $this->getThemeScreenshot($theme); + + if ($author!='0') $info = "$author"; + if ($author!='0' && $website!='0') $info .= " - "; + if ($website!='0') $info .= "<a href=\"$website\">$website</a>"; + if (($author!='0' || $website!='0') && ($screenshot!='0')) $info .= " - "; + if ($screenshot!='0') $info .= "<a href=\"$screenshot\">"._pfc("Screenshot")."</a>"; + + if(empty($info)) + return 0; + else + return $info; + } + + + /** + * Get the screenshot of a theme + * @param string $theme + * @return string $screenshot + */ + function getThemeScreenshot($theme){ + if(file_exists($this->dir_themes.$theme."/info.php")){ + include($this->dir_themes.$theme."/info.php"); + if(empty($screenshot)) + return 0; + else + return $screenshot; + } + else{ + return 0; + } + } + + /** + * Search if the imagess folder theme is present + * @param string $theme + * @return boolean - true if the /themes/name/images folder is present + */ + function isThemeImages($theme){ + if(is_dir($this->dir_themes.$theme."/images")){ + return true; + } + else{ + return false; + } + } + + /** + * Search if the smiley theme is present + * @param string $theme + * @return boolean - true if the /themes/name/smiley/theme file is present + */ + function isThemeSmiley($theme){ + if(file_exists($this->dir_themes.$theme."/smileys/theme")){ + return true; + } + else{ + return false; + } + } + + /** + * Search if the templates folder theme is present + * @param string $theme + * @return boolean - true if the /themes/name/templates folder is present + */ + function isThemeTemplates($theme){ + if(is_dir($this->dir_themes.$theme."/templates")){ + return true; + } + else{ + return false; + } + } + + + /** + * Get the file from the templates themes/name/ directory + * @return array $templates_files_list + */ + function getThemesTemplatesFilesList($theme){ + $i=0; + $dir_templates = $this->dir_themes.$theme."/templates/"; + $dir = opendir($dir_templates); + while ($f = readdir($dir)) { + if(is_file($dir_templates.$f) && $f!="." && $f!="..") { + $templates_files_list[$i] = $f; + $i++; + } + } + + if($i>0) + return $templates_files_list; + else + return 0; + } + +} + +?> \ No newline at end of file Added: trunk/admin/themes.php =================================================================== --- trunk/admin/themes.php (rev 0) +++ trunk/admin/themes.php 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,66 @@ +<? +# lang +require_once("../src/pfci18n.class.php"); +require_once("inc.conf.php"); +pfcI18N::Init($lang,"admin"); + +# themes class +require_once("themes.class.php"); +$themes = new themes(); + +?> + +<? +// TOP // +include("index_html_top.php"); +?> + +<div class="content"> + <h2><? echo _pfc("Available themes"); ?></h2> +<? + + $themes_list = $themes->getThemesList(); + for($i=0;$i<count($themes_list);$i++) { + + echo "<div class=\"showbox\">"; + echo "<h4><a href=\"#\" onclick=\"openClose('$themes_list[$i]', 0); return false;\">".$themes_list[$i]."</a>"; + $info = $themes->getThemeInfo($themes_list[$i]); + if ($info!='0') echo " ( $info ) "; + echo "</h4>"; + + echo "<div id=\"$themes_list[$i]\" style=\"display: none;\">"; + echo "<ul>"; + + if($themes->isThemeImages($themes_list[$i])) + echo "<li>Images <img src=\"style/check_on.png\" alt=\"On\" /></li>"; + else + echo "<li>Images <img src=\"style/check_off.png\" alt=\"Off\" /></li>"; + + if($themes->isThemeSmiley($themes_list[$i])) + echo "<li>Smiley <img src=\"style/check_on.png\" alt=\"On\" /></li>"; + else + echo "<li>Smiley <img src=\"style/check_off.png\" alt=\"Off\" /></li>"; + + if($themes->isThemeTemplates($themes_list[$i])){ + echo "<li>Templates <img src=\"style/check_on.png\" alt=\"On\" /></li>"; + $templates_files_list = $themes->getThemesTemplatesFilesList($themes_list[$i]); + echo "<ul>"; + for($j=0;$j<count($templates_files_list);$j++) { + echo "<li>$templates_files_list[$j]</li>"; + } + echo "</ul>"; + } + else + echo "<li>Templates <img src=\"style/check_off.png\" alt=\"Off\" /></li>"; + echo "</ul>"; + echo "</div>"; + echo "</div>"; + } + +?> +</div> + +<? +// BOTTOM +include("index_html_bottom.php"); +?> \ No newline at end of file Added: trunk/admin/themes_avant.php =================================================================== --- trunk/admin/themes_avant.php (rev 0) +++ trunk/admin/themes_avant.php 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,61 @@ +<? +require_once("themes.class.php"); +$themes = new themes(); + + +?> + +<? +// TOP // +include("index_html_top.php"); +?> + +<div class="content"> + <h2>Liste des themes disponibles</h2> +<? + echo "<ul>"; + $themes_list = $themes->getThemesList(); + for($i=0;$i<count($themes_list);$i++) { + $author = $themes->getThemeAuthor($themes_list[$i]); + $website = $themes->getThemeWebsite($themes_list[$i]); + + echo "<li><strong>$themes_list[$i]</strong>"; + if ($author!='0' || $website!='0') echo " ( $author - <a href=\"$website\">$website</a> )"; + echo "</li>"; + echo "<ul>"; + + + + + if($themes->isThemeImages($themes_list[$i])) + echo "<li>Images <img src=\"style/check_on.png\" alt=\"On\" /></li>"; + else + echo "<li>Images <img src=\"style/check_off.png\" alt=\"Off\" /></li>"; + + if($themes->isThemeSmiley($themes_list[$i])) + echo "<li>Smiley <img src=\"style/check_on.png\" alt=\"On\" /></li>"; + else + echo "<li>Smiley <img src=\"style/check_off.png\" alt=\"Off\" /></li>"; + + if($themes->isThemeTemplates($themes_list[$i])){ + echo "<li>Templates <img src=\"style/check_on.png\" alt=\"On\" /></li>"; + $templates_files_list = $themes->getThemesTemplatesFilesList($themes_list[$i]); + echo "<ul>"; + for($j=0;$j<count($templates_files_list);$j++) { + echo "<li>$templates_files_list[$j]</li>"; + } + echo "</ul>"; + } + else + echo "<li>Templates <img src=\"style/check_off.png\" alt=\"Off\" /></li>"; + + echo "</ul>"; + } + echo "</ul>"; +?> +</div> + +<? +// BOTTOM +include("index_html_bottom.php"); +?> \ No newline at end of file Added: trunk/admin/user.php =================================================================== --- trunk/admin/user.php (rev 0) +++ trunk/admin/user.php 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,161 @@ +<?php + +# lang +require_once("../src/pfci18n.class.php"); +require_once("inc.conf.php"); +pfcI18N::Init($lang,"admin"); + +# htaccess class +require_once ('htaccess.class.php'); +$ht = new htaccess(); + +# Activate Authentification +if(!empty($_GET['active'])){ + if($_GET['active']==1 && $ht->getNumberOfUsers()>0) $ht->printHtaccess(); + elseif($_GET['active']==1 && $ht->getNumberOfUsers()==0){ + $msg = _pfc("At least one user must be declare to activate authentication."); + header('Location: '.$_SERVER['PHP_SELF'].'?msg='.rawurlencode($msg)); + exit; + } + elseif($_GET['active']==2 && file_exists($ht->get_file_Htaccess())) $ht->delHtaccess(); +} + +# Delete a user +if(!empty($_GET['del']) && !empty($_GET['username']) ) +{ + if($ht->getNumberOfUsers()==1){ + $msg = _pfc("It is not possible to delete the last user."); + header('Location: '.$_SERVER['PHP_SELF'].'?msg='.rawurlencode($msg)); + exit; + } + else{ + $username = $_GET['username']; + $ht->delUser($username); + + $groups = $ht->getGroupOfUser($username); + if ($groups!=0){ #User is not in a group + for($i=0;$i<count($groups);$i++) { + $ht->delUserFromGroup($username,$groups[$i]); + } + } + + $msg = _pfc("User %s deleted.",$username); + header('Location: '.$_SERVER['PHP_SELF'].'?msg='.rawurlencode($msg)); + exit; + } +} + +# Modification or Creation of a user +if(!empty($_POST['username'])){ + $username = $_POST['username']; + $password = $_POST['password']; + $create=0; + + if(!$ht->isUser($username)){ #Add User + if(!empty($password)) { + $ht->addUser($username,$password); + $create=1; + } + } + else{ #Modify User + if(!empty($password)) + $ht->setPasswd($username,$password); + } + + $groups= $ht->getGroups(); + for($j=0;$j<count($groups);$j++) { + $group = $_POST['group']; + if($group==$groups[$j]) + $ht->addUserInGroup($username,$groups[$j]); + else + $ht->delUserFromGroup($username,$groups[$j]); + } + + + if($create==1) + $msg = _pfc("User %s added.", $username); + else + $msg = _pfc("User %s edited.", $username); + header('Location: '.$_SERVER['PHP_SELF'].'?msg='.rawurlencode($msg)); + exit; + +} +?> + +<? +// TOP // +include("index_html_top.php"); +?> + +<div class="content"> +<h2><? echo _pfc("Users management"); ?></h2> + +<? + if(!file_exists($ht->get_file_Htaccess())) + echo "<div class=\"ko\"><h3><img src=\"style/check_off.png\" alt=\""._pfc("Authentication disable")."\"> "._pfc("Authentication disable")." - <a href=\"".$_SERVER['PHP_SELF']."?active=1\">"._pfc("Enable here")."</a></h3></div>"; + else{ + echo "<div class=\"ok\"><h3><img src=\"style/check_on.png\" alt=\""._pfc("Authentication enable")."\"> "._pfc("Authentication enable")." - <a href=\"".$_SERVER['PHP_SELF']."?active=2\">"._pfc("Disable here")."</a></h3></div>"; + + } + + + if(!empty($_GET['msg'])) + echo "<div class=\"message\"><h3>".$_GET['msg']."</h3></div>"; + + $users= $ht->getUsers(); + if($users!=0) { + for($i=0;$i<count($users);$i++) { + echo "<div class=\"showbox\">"; + echo "<h4>".$users[$i]; + echo " [ <a style=\"font-weight: normal;\" href=\"#\" onclick=\"openClose('$users[$i]', 0); return false;\">"._pfc("Edit")."</a> - <a style=\"font-weight: normal;\" href=\"".$_SERVER['PHP_SELF']."?username=$users[$i]&del=1\" onclick=\"return window.confirm('"._pfc("Do you really want to delete %s ?",$users[$i])."')\">"._pfc("Delete")."</a> ]</p>"; + echo "</h4>"; + echo "<div id=\"$users[$i]\" style=\"display: none;\">"; + echo "<form action=\"".$_SERVER['PHP_SELF']."\" method=\"post\">"; + echo " <input type=\"hidden\" name=\"username\" id=\"username\" value=\"$users[$i]\" />"; + echo " <p class=\"field\"><label for=\"password\">"._pfc("Password").": </label><input type=\"text\" size=\"30\" name=\"password\" id=\"password\" /></p>"; + + echo " <p class=\"field\"><label for=\"group\">"._pfc("Group").": </label><select name=\"group\" id=\"group\">"; + $groups= $ht->getGroups(); + for($j=0;$j<count($groups);$j++) { + if ($ht->isUserInGroup($users[$i],$groups[$j])) + $selected = "selected=\"selected\""; + else + $selected = ""; + echo "<option value=\"".$groups[$j]."\" $selected>".$groups[$j]."</option>"; + } + echo " </select></p>"; + + echo " <p class=\"field\"><input class=\"submit\" type=\"submit\" value=\"ok\"/></p>"; + echo "</form>"; + echo "</div>"; + echo "</div>"; + } + } + + + + echo "<div class=\"showbox\">"; + echo "<h4>"._pfc("Add a new user")."</h4>"; + echo "<form action=\"".$_SERVER['PHP_SELF']."\" method=\"post\">"; + echo " <p class=\"field\"><label for=\"username\" >"._pfc("Username").": </label><input type=\"text\" size=\"30\" maxlength=\"32\" name=\"username\" id=\"username\" /> </p>"; + echo " <p class=\"field\"><label for=\"password\" >"._pfc("Password").": </label><input type=\"text\" size=\"30\" name=\"password\" id=\"password\" /></p>"; + + echo " <p class=\"field\"><label for=\"group\" >"._pfc("Group").": </label><select name=\"group\" id=\"group\" >"; + $groups= $ht->getGroups(); + for($j=0;$j<count($groups);$j++) { + echo "<option value=\"".$groups[$j]."\" >".$groups[$j]."</option>"; + } + echo " </select></p>"; + + echo " <p class=\"field\"><input class=\"submit\" type=\"submit\" value=\"ok\"/></p>"; + echo "</form>"; + echo "</div>"; + +?> + +</div> + +<? +// BOTTOM +include("index_html_bottom.php"); +?> \ No newline at end of file Added: trunk/admin/version.class.php =================================================================== --- trunk/admin/version.class.php (rev 0) +++ trunk/admin/version.class.php 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,46 @@ +<? + +/** +* Class to manage theme of pfc +* @author Fred Delaunay <fr...@ne...> +*/ + +class version{ + var $local_version; // file of the user version + var $pfc_official_current_version; // file of the pfc official current version + + + function version(){ + $this->local_version = dirname(__FILE__)."/../version"; + $this->pfc_official_current_version = "http://www.phpfreechat.net/version"; + } + + /** + * Get the local version + * @return integer version + */ + function getLocalVersion(){ + $fp = fopen($this->local_version,"r"); + $version = trim(fgets($fp)); + fclose($fp); + return $version; + } + + /** + * Get the pfc official current version + * @return integer version + */ + function getPFCOfficialCurrentVersion(){ + if (file_exists($this->pfc_official_current_version)) { + $fp = fopen($this->pfc_official_current_version,"r"); + $version = trim(fgets($fp)); + fclose($fp); + return $version; + } + else + return 0; + } + +} + +?> \ No newline at end of file Added: trunk/i18n/en_US/admin.php =================================================================== --- trunk/i18n/en_US/admin.php (rev 0) +++ trunk/i18n/en_US/admin.php 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,68 @@ +<?php +/** + * i18n/en_US/main.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +/** + * English translation of the messages (utf8 encoded!) + * + * @author Nemako <fr...@ne...> + */ + +// admin/index.php +$GLOBALS["i18n"]["Administration"] = "Administration"; +$GLOBALS["i18n"]["Internet connection is not possible"] = "Internet connection is not possible"; +$GLOBALS["i18n"]["PFC is update"] = "PFC is update"; +$GLOBALS["i18n"]["PFC version"] = "PFC version"; +$GLOBALS["i18n"]["The last official version"] = "The last official version"; +$GLOBALS["i18n"]["PFC is not update"] = "PFC is not update"; +$GLOBALS["i18n"]["Your version"] = "Your version"; +$GLOBALS["i18n"]["Download the last version %s here %s."] = "Télécharger la dernière version %s ici %s."; + + +// admin/user.php +$GLOBALS["i18n"]["Users management"] = "Users management"; +$GLOBALS["i18n"]["At least one user must be declare to activate authentication."] = "At least one user must be declare to activate authentication."; +$GLOBALS["i18n"]["It is not possible to delete the last user."] = "It is not possible to delete the last user."; + +$GLOBALS["i18n"]["User %s deleted."] = "User %s deleted."; +$GLOBALS["i18n"]["User %s added."] = "User %s added."; +$GLOBALS["i18n"]["User %s edited."] = "User %s edited."; + +$GLOBALS["i18n"]["Authentication disable"] = "Authentication disable"; +$GLOBALS["i18n"]["Enable here"] = "Activate here"; +$GLOBALS["i18n"]["Authentication enable"] = "Authentication enable"; +$GLOBALS["i18n"]["Disable here"] = "Disable here"; + +$GLOBALS["i18n"]["Username"] = "Username"; +$GLOBALS["i18n"]["Password"] = "Password"; +$GLOBALS["i18n"]["Group"] = "Group"; + +$GLOBALS["i18n"]["Do you really want to delete %s ?"] = "Do you really want to delete %s ?"; +$GLOBALS["i18n"]["Add a new user"] = "Add a new user"; + +$GLOBALS["i18n"]["Edit"] = "Edit"; +$GLOBALS["i18n"]["Delete"] = "Delete"; + +// admin/themes.php +$GLOBALS["i18n"]["Available themes"] = "Available themes"; +$GLOBALS["i18n"]["Screenshot"] = "Screenshot"; + +?> Added: trunk/i18n/fr_FR/admin.php =================================================================== --- trunk/i18n/fr_FR/admin.php (rev 0) +++ trunk/i18n/fr_FR/admin.php 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,70 @@ +<?php +/** + * i18n/en_US/main.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +/** + * English translation of the messages (utf8 encoded!) + * + * @author Stephane Gully <ste...@gm...> + */ + +// admin/index.php +$GLOBALS["i18n"]["Administration"] = "Administration"; +$GLOBALS["i18n"]["Internet connection is not possible"] = "La connexion à Internet n'est pas possible"; +$GLOBALS["i18n"]["PFC is update"] = "PFC est pas à jour"; +$GLOBALS["i18n"]["PFC version"] = "version de PFC"; +$GLOBALS["i18n"]["The last official version"] = "La dernière version officielle"; +$GLOBALS["i18n"]["PFC is not update"] = "PFC n'est pas à jour"; +$GLOBALS["i18n"]["Your version"] = "Votre version"; +$GLOBALS["i18n"]["The last official version"] = "La dernière version officielle"; +$GLOBALS["i18n"]["Download the last version %s here %s."] = "Download the last version %s here %s."; + + +// admin/user.php +$GLOBALS["i18n"]["Users management"] = "Gestion des utilisateurs"; + +$GLOBALS["i18n"]["At least one user must be declare to activate authentication."] = "Au moins un utilisateur doit être créé pour activer une authentification."; +$GLOBALS["i18n"]["It is not possible to delete the last user."] = "Il est impossible de supprimer le dernier utilisateur."; + +$GLOBALS["i18n"]["User %s deleted."] = "Utilisateur %s supprimé."; +$GLOBALS["i18n"]["User %s added."] = "Utilisateur %s ajouté."; +$GLOBALS["i18n"]["User %s edited."] = "Utilisateur %s modifé."; + +$GLOBALS["i18n"]["Authentication disable"] = "Authentification désactivée"; +$GLOBALS["i18n"]["Enable here"] = "Activer ici"; +$GLOBALS["i18n"]["Authentication enable"] = "Authentification activée"; +$GLOBALS["i18n"]["Disable here"] = "Désactiver ici"; + +$GLOBALS["i18n"]["Username"] = "Utilisateur"; +$GLOBALS["i18n"]["Password"] = "Mot de passe"; +$GLOBALS["i18n"]["Group"] = "Groupe"; + +$GLOBALS["i18n"]["Do you really want to delete %s ?"] = "Voulez-vous vraiment supprimer %s ?"; +$GLOBALS["i18n"]["Add a new user"] = "Ajouter un nouvel utilisateur"; + +$GLOBALS["i18n"]["Edit"] = "Modifier"; +$GLOBALS["i18n"]["Delete"] = "Supprimer"; + +// admin/themes.php +$GLOBALS["i18n"]["Available themes"] = "Liste des themes disponibles"; +$GLOBALS["i18n"]["Screenshot"] = "Capture d'écran"; + +?> Modified: trunk/src/pfci18n.class.php =================================================================== --- trunk/src/pfci18n.class.php 2006-04-24 14:01:11 UTC (rev 463) +++ trunk/src/pfci18n.class.php 2006-04-24 14:40:06 UTC (rev 464) @@ -31,11 +31,14 @@ class pfcI18N { - function Init($language) + function Init($language,$type='admin') { if (!in_array($language, pfcI18N::GetAcceptedLanguage())) $language = pfcI18N::GetDefaultLanguage(); - require_once(dirname(__FILE__)."/../i18n/".$language."/main.php"); + if ($type=="admin") + require_once(dirname(__FILE__)."/../i18n/".$language."/admin.php"); + else + require_once(dirname(__FILE__)."/../i18n/".$language."/main.php"); $GLOBALS["output_encoding"] = "UTF-8"; // by default client/server communication is utf8 encoded } Added: trunk/themes/blune/info.php =================================================================== --- trunk/themes/blune/info.php (rev 0) +++ trunk/themes/blune/info.php 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,5 @@ +<? +$author = "Nemako"; +$website = "http://www.nemako.net"; +$screenshot = "http://img111.imageshack.us/img111/1681/blune1xe.png"; +?> \ No newline at end of file Added: trunk/themes/cerutti/info.php =================================================================== --- trunk/themes/cerutti/info.php (rev 0) +++ trunk/themes/cerutti/info.php 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,3 @@ +<? +$author = "Victor Cerutti"; +?> \ No newline at end of file Added: trunk/themes/default/info.php =================================================================== --- trunk/themes/default/info.php (rev 0) +++ trunk/themes/default/info.php 2006-04-24 14:40:06 UTC (rev 464) @@ -0,0 +1,4 @@ +<? +$author = "kerphi"; +$website = "http://www.phpfreechat.net"; +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ne...@us...> - 2006-04-24 14:01:33
|
Revision: 463 Author: nemako Date: 2006-04-24 07:01:11 -0700 (Mon, 24 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=463&view=rev Log Message: ----------- Add pfc website templates for index.php and demo/index.php Modified Paths: -------------- trunk/demo/index.php trunk/index.php Added Paths: ----------- trunk/style/ trunk/style/bulle.png trunk/style/check_off.png trunk/style/check_on.png trunk/style/content.css trunk/style/footer.css trunk/style/generic.css trunk/style/header.css trunk/style/logo_88x31.gif trunk/style/menu.css trunk/style/show.js trunk/style/valid-css.png trunk/style/valid-xhtml.png Modified: trunk/demo/index.php =================================================================== --- trunk/demo/index.php 2006-04-20 20:26:36 UTC (rev 462) +++ trunk/demo/index.php 2006-04-24 14:01:11 UTC (rev 463) @@ -1,12 +1,53 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> + <head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>phpFreeChat Demos</title> + <link rel="stylesheet" title="classic" type="text/css" href="../style/generic.css"> + <link rel="stylesheet" title="classic" type="text/css" href="../style/header.css"> + <link rel="stylesheet" title="classic" type="text/css" href="../style/footer.css"> + <link rel="stylesheet" title="classic" type="text/css" href="../style/menu.css"> + <link rel="stylesheet" title="classic" type="text/css" href="../style/content.css"> + </head> + <body> + +<div class="header"> + <h1>phpFreeChat - Demos</h1> + <img alt="logo bulle" src="../style/bulle.png" class="logo2"> +</div> + +<div class="menu"> + <ul> + <li class="sub title">General</li> + <li> + <ul class="sub"> + <li class="item"> + <a href="../index.php">PFC Index</a> + </li> + </ul> + </li> + <li class="sub title">Demos</li> + <li> + <ul class="sub"> + <li class="item"> + <a href="#Miscellaneous">Miscellaneous</a> + </li> + <li class="item"> + <a href="#Themes">Themes</a> + </li> + <li class="item"> + <a href="#Translations">Translations</a> + </li> + </ul> + </li> + </ul> + <p class="partner"> + <a href="http://www.phpfreechat.net"><img alt="logo big" src="../style/logo_88x31.gif"></a> + </p> +</div> + +<div class="content"> - <head> - <meta http-equiv="content-type" content="text/html; charset=utf-8" /> - <title>phpFreeChat demos</title> - </head> - - <body> <h2>Miscellaneous</h2> <ul> @@ -68,6 +109,18 @@ <li><a href="demo41_in_greek.php">demo41 - the greek translation of the chat</a></li> <li><a href="demo42_in_chinese_from_taiwan.php">demo42 - the Chinese from taiwan (traditional Chinese) translation of the chat</a></li> </ul> - </body> - -</html> + +</div> + +<div class="footer"> + <div class="valid"> + <a href="http://validator.w3.org/check?uri=referer"> + <img alt="Valid XHTML 1.0!" src="../style/valid-xhtml.png"> + </a> + <a href="http://jigsaw.w3.org/css-validator/check/referer"> + <img alt="Valid CSS!" src="../style/valid-css.png"> + </a> + </div> + <p>\xA92006 phpFreeChat</p> + </div> +</body></html> \ No newline at end of file Modified: trunk/index.php =================================================================== --- trunk/index.php 2006-04-20 20:26:36 UTC (rev 462) +++ trunk/index.php 2006-04-24 14:01:11 UTC (rev 463) @@ -7,29 +7,77 @@ $chat = new phpFreeChat( $params ); ?> -<!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"> - <head> - <meta http-equiv="content-type" content="text/html; charset=utf-8" /> - <title>phpFreeChat sources index</title> - <?php $chat->printJavascript(); ?> - <?php $chat->printStyle(); ?> - </head> - - <body> - <ul> - <li><a href="demo/">Demos</a></li> - <li><a href="README.en">Documentation - readme [en]</a></li> - <li><a href="README.fr">Documentation - readme [fr]</a></li> - <li><a href="INSTALL.en">Documentation - install [en]</a></li> - <li><a href="INSTALL.fr">Documentation - install [fr]</a></li> - </ul> - - <p>See the quick demo :</p> - <?php $chat->printChat(); ?> - - </body> - -</html> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>phpFreeChat Sources Index</title> + <link rel="stylesheet" title="classic" type="text/css" href="style/generic.css"> + <link rel="stylesheet" title="classic" type="text/css" href="style/header.css"> + <link rel="stylesheet" title="classic" type="text/css" href="style/footer.css"> + <link rel="stylesheet" title="classic" type="text/css" href="style/menu.css"> + <link rel="stylesheet" title="classic" type="text/css" href="style/content.css"> + <?php $chat->printJavascript(); ?> + <?php $chat->printStyle(); ?> + </head> + <body> + +<div class="header"> + <h1>phpFreeChat - Sources Index</h1> + <img alt="logo bulle" src="style/bulle.png" class="logo2"> +</div> + +<div class="menu"> + <ul> + <li class="sub title">General</li> + <li> + <ul class="sub"> + <li class="item"> + <a href="demo/">Demos</a> + </li> + <li class="item"> + <a href="admin/">Administration</a> + </li> + </ul> + </li> + <li class="sub title">Documentation</li> + <li> + <ul> + <li class="item"> + <a href="README.en">readme [en]</a> + </li> + <li class="item"> + <a href="README.fr">readme [fr]</a> + </li> + <li class="item"> + <a href="INSTALL.en">install [en]</a> + </li> + <li class="item"> + <a href="INSTALL.fr">install [fr]</a> + </li> + </ul> + </li> + </ul> + <p class="partner"> + <a href="http://www.phpfreechat.net"><img alt="logo big" src="style/logo_88x31.gif"></a> + </p> +</div> + +<div class="content"> + <h2>See the quick demo</h2> + <?php $chat->printChat(); ?> +</div> + +<div class="footer"> + <div class="valid"> + <a href="http://validator.w3.org/check?uri=referer"> + <img alt="Valid XHTML 1.0!" src="style/valid-xhtml.png"> + </a> + <a href="http://jigsaw.w3.org/css-validator/check/referer"> + <img alt="Valid CSS!" src="style/valid-css.png"> + </a> + </div> + <p>\xA92006 phpFreeChat</p> + </div> +</body></html> \ No newline at end of file Added: trunk/style/bulle.png =================================================================== (Binary files differ) Property changes on: trunk/style/bulle.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/style/check_off.png =================================================================== (Binary files differ) Property changes on: trunk/style/check_off.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/style/check_on.png =================================================================== (Binary files differ) Property changes on: trunk/style/check_on.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/style/content.css =================================================================== --- trunk/style/content.css (rev 0) +++ trunk/style/content.css 2006-04-24 14:01:11 UTC (rev 463) @@ -0,0 +1,22 @@ +/* --- CONTENT --- */ +div.content { + margin: 0.5em; + padding: 1em; + margin-left: 12.2em; + background-color: #FFF; + border: 1px #acd233 solid; + min-height: 40em; +} +div.content * { margin-top: 0.5em; margin-bottom: 0.5em; } +div.content h2 { border-bottom: 1px #444 solid; } +div.content h3 { text-decoration: underline; font-size: 100%; margin: 1em 0 1em 0; } +div.content a:link, div.content a:visited, div.content a:hover, div.content a:visited{ color: #0081ac; } +div.content code { background-color: #EFE; border: 1px #444 dotted; } +div.content pre { padding: 1em; background-color: #EFE; border: 1px #444 dotted; } +div.content ul { margin-left: 3em; } +div.content ol { margin-left: 3em; } +div.content dd { margin-left: 3em; } +div.content dt { font-weight: bold; margin: 2em 0 2em 0; } +div.content .abstract { border: 2px #999 solid; background-color: #EEE; padding: 1em; color: #000; text-align: justify; } + + Added: trunk/style/footer.css =================================================================== --- trunk/style/footer.css (rev 0) +++ trunk/style/footer.css 2006-04-24 14:01:11 UTC (rev 463) @@ -0,0 +1,21 @@ +/* --- FOOTER --- */ +div.footer { + position: relative; + text-align: center; + background-color: #99cc33; + color: #FFF; + border-top: 1px #acd233 solid; + border-bottom: 1px #acd233 solid; + font-size: 80%; + clear: both; + padding-left: 12em; +} +div.footer div.valid { + display: inline; + float: right; +} +div.footer div.rss { + position: absolute; + left: 5px; + float: left; +} Added: trunk/style/generic.css =================================================================== --- trunk/style/generic.css (rev 0) +++ trunk/style/generic.css 2006-04-24 14:01:11 UTC (rev 463) @@ -0,0 +1,20 @@ +/* --- GENERIC --- */ +* { padding: 0; margin: 0; } +a img { border: none; } +body { + color: #000000; + background: #339933; + font-family: Verdana, Sans-Serif; + font-size: 100%; + padding: 0; + margin: 0; +} + +a:link, a:visited, a:hover { + font-weight: bold; + text-decoration: none; +} +a:hover { + text-decoration: underline; +} +.nospace { word-spacing: -0.35em; } Added: trunk/style/header.css =================================================================== --- trunk/style/header.css (rev 0) +++ trunk/style/header.css 2006-04-24 14:01:11 UTC (rev 463) @@ -0,0 +1,23 @@ +/* --- HEADER --- */ +div.header { + position: relative; + display: block; + background-color: #99cc33; + border-bottom: 1px #acd233 solid; + height: 45px; +} +div.header h1 { + color: #FFF; + text-align: center; +} +div.header .logo2 { + position: absolute; + bottom: 0; + right: 0; +} +div.header .flags { + position: absolute; + bottom: 2px; + left: 0px; +} +div.header .flags a { margin-left: 0.5em; } Added: trunk/style/logo_88x31.gif =================================================================== (Binary files differ) Property changes on: trunk/style/logo_88x31.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/style/menu.css =================================================================== --- trunk/style/menu.css (rev 0) +++ trunk/style/menu.css 2006-04-24 14:01:11 UTC (rev 463) @@ -0,0 +1,63 @@ +/* --- MENU --- */ +div.menu { + position: absolute; + top: 55px; + left: 0.5em; +/* float: left; + margin-top: 0.5em; + margin-left: 0.4em;*/ + color: #FFF; + width: 11em; + text-align: center; +} +div.menu * { font-size: 95%; } +div.menu ul { + background-color: #99cc33; + border: 1px #acd233 solid; + text-align: left; + list-style: none; +} +div.menu li { + display: inline; +} +div.menu img { margin-top: 10px; } +div.menu .title { + padding: 4px; + text-align: center; + color: #888; + background-color: #FFF; +} +div.menu li.sub { + font-weight: bold; + padding: 0; + margin: 0; + display: block; +} +div.menu li a { + display: block; + margin: 0px; + padding: 4px; + padding-left: 10px; + width: auto; +} +div.menu li.item { + display: inline; +} +div.menu a:link, div.menu a:visited, div.menu a:hover { color: #FFF; } +div.menu a:visited { color: #FFF; } +div.menu li.item a:hover, div.menu ul.sub li.item a:hover { + display: block; + background-color: #acd233; + text-decoration: none; +} + +div.menu .partner { + margin-top: 5px; +} +div.menu div.rating { + margin-top: 10px; +} +div.menu div.rating table, div.menu div.rating table td { + text-align: center; + margin: auto; +} Added: trunk/style/show.js =================================================================== --- trunk/style/show.js (rev 0) +++ trunk/style/show.js 2006-04-24 14:01:11 UTC (rev 463) @@ -0,0 +1,34 @@ +function getE(id) +{ + if(document.getElementById) { + return document.getElementById(id); + } else if(document.all) { + return document.all[id]; + } else return; +} + +function openClose(id,mode) +{ + element = getE(id); + img = getE('img_'+id); + + if(element.style) { + if(mode == 0) { + if(element.style.display == 'block' ) { + element.style.display = 'none'; + img.src = 'pics/plus.gif'; + } else { + element.style.display = 'block'; + img.src = 'pics/moins.gif'; + } + } else if(mode == 1) { + element.style.display = 'block'; + img.src = 'pics/moins.gif'; + } else if(mode == -1) { + element.style.display = 'none'; + img.src = 'pics/plus.gif'; + } + } +} + + Added: trunk/style/valid-css.png =================================================================== (Binary files differ) Property changes on: trunk/style/valid-css.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/style/valid-xhtml.png =================================================================== (Binary files differ) Property changes on: trunk/style/valid-xhtml.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-20 20:26:43
|
Revision: 462 Author: kerphi Date: 2006-04-20 13:26:36 -0700 (Thu, 20 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=462&view=rev Log Message: ----------- Clicking on the nickname in the user list, write the nickname + ', ' to the text input area (thanks to void). Modified Paths: -------------- trunk/themes/default/templates/pfcclient.js.tpl.php Modified: trunk/themes/default/templates/pfcclient.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcclient.js.tpl.php 2006-04-20 19:54:00 UTC (rev 461) +++ trunk/themes/default/templates/pfcclient.js.tpl.php 2006-04-20 20:26:36 UTC (rev 462) @@ -682,7 +682,11 @@ // nobr is not xhtml valid but it's a workeround // for IE which doesn't support 'white-space: pre' css rule var nobr = document.createElement('nobr'); - nobr.appendChild(document.createTextNode(nicks[i])); + var span = document.createElement('span'); + span.pfc_nick = nicks[i]; + span.onclick = function(){pfc.insert_text(this.pfc_nick+", ",""); return false;} + span.appendChild(document.createTextNode(nicks[i])); + nobr.appendChild(span); li.appendChild(nobr); li.style.borderBottom = '1px solid #AAA'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-20 19:54:15
|
Revision: 461 Author: kerphi Date: 2006-04-20 12:54:00 -0700 (Thu, 20 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=461&view=rev Log Message: ----------- New traditional Chinese zh_TW translation (many thanks to Alex Wu) Modified Paths: -------------- trunk/demo/index.php Added Paths: ----------- trunk/demo/demo42_in_chinese_from_taiwan.php trunk/i18n/zh_TW/ Copied: trunk/demo/demo42_in_chinese_from_taiwan.php (from rev 460, branches/0.x/demo/demo42_in_chinese_from_taiwan.php) =================================================================== --- trunk/demo/demo42_in_chinese_from_taiwan.php (rev 0) +++ trunk/demo/demo42_in_chinese_from_taiwan.php 2006-04-20 19:54:00 UTC (rev 461) @@ -0,0 +1,36 @@ +<?php + +require_once dirname(__FILE__)."/../src/phpfreechat.class.php"; + +$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat +$params["language"] = "zh_TW"; +$chat = new phpFreeChat( $params ); + +?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <title>phpFreeChat demo</title> + + <?php $chat->printJavascript(); ?> + <?php $chat->printStyle(); ?> + + </head> + + <body> + <?php $chat->printChat(); ?> + +<?php + // print the current file + echo "<h2>The source code</h2>"; + $filename = __FILE__; + echo "<p><code>".$filename."</code></p>"; + echo "<pre style=\"margin: 0 50px 0 50px; padding: 10px; background-color: #DDD;\">"; + $content = file_get_contents($filename); + echo htmlentities($content); + echo "</pre>"; +?> + + </body> +</html> Modified: trunk/demo/index.php =================================================================== --- trunk/demo/index.php 2006-04-20 19:52:59 UTC (rev 460) +++ trunk/demo/index.php 2006-04-20 19:54:00 UTC (rev 461) @@ -66,6 +66,7 @@ <li><a href="demo39_in_bosnian.php">demo39 - the bosnian translation of the chat</a></li> <li><a href="demo40_in_turkish.php">demo40 - the turkish translation of the chat</a></li> <li><a href="demo41_in_greek.php">demo41 - the greek translation of the chat</a></li> + <li><a href="demo42_in_chinese_from_taiwan.php">demo42 - the Chinese from taiwan (traditional Chinese) translation of the chat</a></li> </ul> </body> Copied: trunk/i18n/zh_TW (from rev 460, branches/0.x/i18n/zh_TW) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-20 19:53:21
|
Revision: 460 Author: kerphi Date: 2006-04-20 12:52:59 -0700 (Thu, 20 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=460&view=rev Log Message: ----------- New traditional Chinese zh_TW translation (many thanks to Alex Wu) Modified Paths: -------------- branches/0.x/demo/index.php Added Paths: ----------- branches/0.x/demo/demo42_in_chinese_from_taiwan.php branches/0.x/i18n/zh_TW/ branches/0.x/i18n/zh_TW/main.php Added: branches/0.x/demo/demo42_in_chinese_from_taiwan.php =================================================================== --- branches/0.x/demo/demo42_in_chinese_from_taiwan.php (rev 0) +++ branches/0.x/demo/demo42_in_chinese_from_taiwan.php 2006-04-20 19:52:59 UTC (rev 460) @@ -0,0 +1,36 @@ +<?php + +require_once dirname(__FILE__)."/../src/phpfreechat.class.php"; + +$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat +$params["language"] = "zh_TW"; +$chat = new phpFreeChat( $params ); + +?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <title>phpFreeChat demo</title> + + <?php $chat->printJavascript(); ?> + <?php $chat->printStyle(); ?> + + </head> + + <body> + <?php $chat->printChat(); ?> + +<?php + // print the current file + echo "<h2>The source code</h2>"; + $filename = __FILE__; + echo "<p><code>".$filename."</code></p>"; + echo "<pre style=\"margin: 0 50px 0 50px; padding: 10px; background-color: #DDD;\">"; + $content = file_get_contents($filename); + echo htmlentities($content); + echo "</pre>"; +?> + + </body> +</html> Modified: branches/0.x/demo/index.php =================================================================== --- branches/0.x/demo/index.php 2006-04-20 19:37:19 UTC (rev 459) +++ branches/0.x/demo/index.php 2006-04-20 19:52:59 UTC (rev 460) @@ -66,6 +66,7 @@ <li><a href="demo39_in_bosnian.php">demo39 - the bosnian translation of the chat</a></li> <li><a href="demo40_in_turkish.php">demo40 - the turkish translation of the chat</a></li> <li><a href="demo41_in_greek.php">demo41 - the greek translation of the chat</a></li> + <li><a href="demo42_in_chinese_from_taiwan.php">demo42 - the Chinese from taiwan (traditional Chinese) translation of the chat</a></li> </ul> </body> Added: branches/0.x/i18n/zh_TW/main.php =================================================================== --- branches/0.x/i18n/zh_TW/main.php (rev 0) +++ branches/0.x/i18n/zh_TW/main.php 2006-04-20 19:52:59 UTC (rev 460) @@ -0,0 +1,176 @@ +<?php +/** + * i18n/zh_TW/main.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +/** + * Traditional Chinese translation of the messages (utf8 encoded!) + * + * @author Stephane Gully <ste...@gm...> + * @translated by Alex Wu<ale...@gm...> + */ + +// line 45 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["My Chat"] = "我的聊天室"; + +// line 201 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["%s not found, %s library can't be found."] = "沒有找到 %s, 沒有找到 %s 程式庫。"; + +// line 355 in phpfreechat.class.php +$GLOBALS["i18n"]["Please enter your nickname"] = "請輸入您的暱稱"; + +// line 565 in phpfreechat.class.php +$GLOBALS["i18n"]["Text cannot be empty"] = "聊天內容不能為空白"; + +// line 392 in phpfreechat.class.php +$GLOBALS["i18n"]["%s changes his nickname to %s"] = "%s 把暱稱改為 %s"; + +// line 398 in phpfreechat.class.php +$GLOBALS["i18n"]["%s is connected"] = "%s 上線了"; + +// line 452 in phpfreechat.class.php +$GLOBALS["i18n"]["%s quit"] = "%s 退出了"; + +// line 468 in phpfreechat.class.php +$GLOBALS["i18n"]["%s disconnected (timeout)"] = "%s 離線了(逾時)"; + +// line 262 in phpfreechat.class.php +$GLOBALS["i18n"]["Unknown command [%s]"] = "不明指令 [%s]"; + +// line 149 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["%s doesn't exist: %s"] = "%s 不存在: %s"; + +// line 180 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["You need %s"] = "您需要 %s"; + +// line 241 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["%s doesn't exist, %s library can't be found"] = "%s 不存在, 找不到 %s 程式庫"; + +// line 280 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["%s doesn't exist"] = "%s 不存在"; + +// line 433 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["%s directory must be specified"] = "必須指定 %s 目錄"; + +// line 439 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["%s must be a directory"] = "%s 必須為一目錄"; + +// line 446 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["%s can't be created"] = "無法新增 %s"; + +// line 451 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["%s is not writeable"] = "無法寫入 %s"; + +// line 496 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["%s is not readable"] = "無法讀取 %s"; + +// line 469 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["%s is not a file"] = "%s 不是文件檔案格式"; + +// line 491 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["%s is not a directory"] = "%s 不是目錄"; + +// line 23 in chat.html.tpl.php +$GLOBALS["i18n"]["PHP FREE CHAT [powered by phpFreeChat-%s]"] = "PHP FREE CHAT [powered by phpFreeChat-%s]"; + +// line 296 in javascript1.js.tpl.php +$GLOBALS["i18n"]["Hide nickname marker"] = "隱藏暱稱顏色"; + +// line 304 in javascript1.js.tpl.php +$GLOBALS["i18n"]["Show nickname marker"] = "顯示暱稱顏色"; + +// line 389 in javascript1.js.tpl.php +$GLOBALS["i18n"]["Disconnect"] = "離線"; + +// line 395 in javascript1.js.tpl.php +$GLOBALS["i18n"]["Connect"] = "上線"; + +// line 427 in javascript1.js.tpl.php +$GLOBALS["i18n"]["Magnify"] = "放大聊天室視窗"; + +// line 434 in javascript1.js.tpl.php +$GLOBALS["i18n"]["Cut down"] = "縮小聊天室視窗"; + +// line 345 in javascript1.js.tpl.php +$GLOBALS["i18n"]["Hide dates and hours"] = "隱藏日期和時間"; + +// line 353 in javascript1.js.tpl.php +$GLOBALS["i18n"]["Show dates and hours"] = "顯示日期和時間"; + +// line 21 in chat.html.tpl.php +$GLOBALS["i18n"]["Enter your message here"] = "輸入聊天內容"; + +// line 24 in chat.html.tpl.php +$GLOBALS["i18n"]["Enter your nickname here"] = "輸入您的暱稱"; + +// line 93 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["Error: undefined or obsolete parameter '%s', please correct or remove this parameter"] = "錯誤:'%s'是未定義或過時的參數,請修改或刪除之。"; + +// line 86 in pfcclient.js.tpl.php +$GLOBALS["i18n"]["Hide smiley box"] = "隱藏表情符號區"; + +// line 87 in pfcclient.js.tpl.php +$GLOBALS["i18n"]["Show smiley box"] = "顯示表情符號區"; + +// line 88 in pfcclient.js.tpl.php +$GLOBALS["i18n"]["Hide online users box"] = "隱藏線上用戶區"; + +// line 89 in pfcclient.js.tpl.php +$GLOBALS["i18n"]["Show online users box"] = "顯示線上用戶區"; + +// line 33 in chat.html.tpl.php +$GLOBALS["i18n"]["Bold"] = "粗體"; + +// line 34 in chat.html.tpl.php +$GLOBALS["i18n"]["Italics"] = "斜體"; + +// line 35 in chat.html.tpl.php +$GLOBALS["i18n"]["Underline"] = "底線"; + +// line 36 in chat.html.tpl.php +$GLOBALS["i18n"]["Delete"] = "刪除線"; + +// line 37 in chat.html.tpl.php +$GLOBALS["i18n"]["Pre"] = "Pre"; + +// line 38 in chat.html.tpl.php +$GLOBALS["i18n"]["Mail"] = "email"; + +// line 39 in chat.html.tpl.php +$GLOBALS["i18n"]["Color"] = "顏色"; + +// line 48 in phpfreechattemplate.class.php +$GLOBALS["i18n"]["%s template could not be found"] = "找不到模版 %s"; + +// line 512 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["Error: '%s' could not be found, please check your themepath '%s' and your theme '%s' are correct"] = "錯誤:找不到 '%s',請檢查您的 themepath '%s' 和您的 theme '%s' 是否正確。"; + +// line 75 in pfccommand.class.php +$GLOBALS["i18n"]["%s must be implemented"] = "必須實現 %s"; + +// line 343 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["'%s' parameter is mandatory by default use '%s' value"] = "參數 '%s' 是必須的,預設值為 '%s'"; + +// line 378 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["'%s' parameter must be a positive number"] = "參數 '%s' 必須為一正值"; + +// line 386 in phpfreechatconfig.class.php +$GLOBALS["i18n"]["'%s' parameter is not valid. Available values are : '%s'"] = "參數 '%s' 不合法,適用的值有:'%s'"; +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-20 19:37:34
|
Revision: 459 Author: kerphi Date: 2006-04-20 12:37:19 -0700 (Thu, 20 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=459&view=rev Log Message: ----------- typo Modified Paths: -------------- trunk/testcase/container_generic.php Modified: trunk/testcase/container_generic.php =================================================================== --- trunk/testcase/container_generic.php 2006-04-19 19:58:43 UTC (rev 458) +++ trunk/testcase/container_generic.php 2006-04-20 19:37:19 UTC (rev 459) @@ -31,7 +31,7 @@ $params["title"] = "testcase -> pfccontainer_".$this->type; $params["serverid"] = md5(__FILE__ . time()); $params["container_type"] = $this->type; - $this->c =& pcGlobalConfig::Instance($params); + $this->c =& pfcGlobalConfig::Instance($params); $this->ct =& $this->c->getContainerInstance(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-19 19:58:51
|
Revision: 458 Author: kerphi Date: 2006-04-19 12:58:43 -0700 (Wed, 19 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=458&view=rev Log Message: ----------- Bug fix: IE doesn't support white-space:pre CSS rule, a workaround is to use <nobr> element. This is not XHTML complient but it's just a workeround for this crappy IE... (thanks to Rhialto for the tip) Modified Paths: -------------- trunk/themes/default/templates/pfcclient.js.tpl.php Modified: trunk/themes/default/templates/pfcclient.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcclient.js.tpl.php 2006-04-19 19:54:05 UTC (rev 457) +++ trunk/themes/default/templates/pfcclient.js.tpl.php 2006-04-19 19:58:43 UTC (rev 458) @@ -678,7 +678,12 @@ li.appendChild(img); } - li.appendChild(document.createTextNode(nicks[i])); + + // nobr is not xhtml valid but it's a workeround + // for IE which doesn't support 'white-space: pre' css rule + var nobr = document.createElement('nobr'); + nobr.appendChild(document.createTextNode(nicks[i])); + li.appendChild(nobr); li.style.borderBottom = '1px solid #AAA'; ul.appendChild(li); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-19 19:54:10
|
Revision: 457 Author: kerphi Date: 2006-04-19 12:54:05 -0700 (Wed, 19 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=457&view=rev Log Message: ----------- Bug fix: IE doesn't support 'white-space: pre' css rule, a workaround is to use <nobr> element. This is not xhtml complient but it's just a workeround for this crappy IE... (thanks to Rhialto for the tip) Modified Paths: -------------- branches/0.x/themes/default/templates/pfcclient.js.tpl.php Modified: branches/0.x/themes/default/templates/pfcclient.js.tpl.php =================================================================== --- branches/0.x/themes/default/templates/pfcclient.js.tpl.php 2006-04-19 19:40:32 UTC (rev 456) +++ branches/0.x/themes/default/templates/pfcclient.js.tpl.php 2006-04-19 19:54:05 UTC (rev 457) @@ -341,8 +341,11 @@ { var li = document.createElement('li'); li.setAttribute('class', '<?php echo $prefix; ?>nickmarker <?php echo $prefix; ?>nick_'+ hex_md5(nicks[i])); - var txt = document.createTextNode(nicks[i]); - li.appendChild(txt); + // nobr is not xhtml valid but it's a workeround + // for IE which doesn't support 'white-space: pre' css rule + var nobr = document.createElement('nobr'); + nobr.appendChild(document.createTextNode(nicks[i])); + li.appendChild(nobr); ul.appendChild(li); } var fc = nickdiv.firstChild; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-19 19:40:44
|
Revision: 456 Author: kerphi Date: 2006-04-19 12:40:32 -0700 (Wed, 19 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=456&view=rev Log Message: ----------- Bug fix: some php include paths were wrong Modified Paths: -------------- trunk/themes/default/templates/chat.html.tpl.php trunk/themes/default/templates/chat.js.tpl.php Modified: trunk/themes/default/templates/chat.html.tpl.php =================================================================== --- trunk/themes/default/templates/chat.html.tpl.php 2006-04-19 19:10:11 UTC (rev 455) +++ trunk/themes/default/templates/chat.html.tpl.php 2006-04-19 19:40:32 UTC (rev 456) @@ -70,11 +70,9 @@ <div id="<?php echo $prefix; ?>misc6"></div> <script type="text/javascript"> - <!-- - - <?php include($c->getFileUrlFromTheme('templates/chat.js.tpl.php')); ?> - - --> + // <![CDATA[ + <?php include($c->getFilePathFromTheme('templates/chat.js.tpl.php')); ?> + // ]] </script> </div> </div> @@ -105,4 +103,4 @@ <![endif]--> */ -?> \ No newline at end of file +?> Modified: trunk/themes/default/templates/chat.js.tpl.php =================================================================== --- trunk/themes/default/templates/chat.js.tpl.php 2006-04-19 19:10:11 UTC (rev 455) +++ trunk/themes/default/templates/chat.js.tpl.php 2006-04-19 19:40:32 UTC (rev 456) @@ -1,6 +1,6 @@ //function alert() {} -<?php include($c->getFileUrlFromTheme('templates/chat-pre.js.tpl.php')); ?> +<?php include($c->getFilePathFromTheme('templates/chat-pre.js.tpl.php')); ?> /* preload smileys */ preloadImages( @@ -36,4 +36,4 @@ } <?php } ?> -<?php include($c->getFileUrlFromTheme('templates/chat-post.js.tpl.php')); ?> \ No newline at end of file +<?php include($c->getFilePathFromTheme('templates/chat-post.js.tpl.php')); ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-19 19:10:17
|
Revision: 455 Author: kerphi Date: 2006-04-19 12:10:11 -0700 (Wed, 19 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=455&view=rev Log Message: ----------- Bug fix: some php include paths were wrong Modified Paths: -------------- branches/0.x/themes/default/templates/chat.html.tpl.php branches/0.x/themes/default/templates/chat.js.tpl.php Modified: branches/0.x/themes/default/templates/chat.html.tpl.php =================================================================== --- branches/0.x/themes/default/templates/chat.html.tpl.php 2006-04-19 16:31:59 UTC (rev 454) +++ branches/0.x/themes/default/templates/chat.html.tpl.php 2006-04-19 19:10:11 UTC (rev 455) @@ -78,11 +78,9 @@ <div id="<?php echo $prefix; ?>misc6"></div> <script type="text/javascript"> - <!-- - - <?php include($c->getFileUrlFromTheme('templates/chat.js.tpl.php')); ?> - - --> + // <![CDATA[ + <?php include($c->getFilePathFromTheme('templates/chat.js.tpl.php')); ?> + // ]] </script> </div> </div> @@ -113,4 +111,4 @@ <![endif]--> */ -?> \ No newline at end of file +?> Modified: branches/0.x/themes/default/templates/chat.js.tpl.php =================================================================== --- branches/0.x/themes/default/templates/chat.js.tpl.php 2006-04-19 16:31:59 UTC (rev 454) +++ branches/0.x/themes/default/templates/chat.js.tpl.php 2006-04-19 19:10:11 UTC (rev 455) @@ -1,4 +1,4 @@ -<?php include($c->getFileUrlFromTheme('templates/chat-pre.js.tpl.php')); ?> +<?php include($c->getFilePathFromTheme('templates/chat-pre.js.tpl.php')); ?> /* preload smileys */ preloadImages( @@ -32,4 +32,4 @@ } <?php } ?> -<?php include($c->getFileUrlFromTheme('templates/chat-post.js.tpl.php')); ?> \ No newline at end of file +<?php include($c->getFilePathFromTheme('templates/chat-post.js.tpl.php')); ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-19 16:32:08
|
Revision: 454 Author: kerphi Date: 2006-04-19 09:31:59 -0700 (Wed, 19 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=454&view=rev Log Message: ----------- fix a prb with tab image src attribute Modified Paths: -------------- trunk/themes/default/templates/pfcgui.js.tpl.php Modified: trunk/themes/default/templates/pfcgui.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcgui.js.tpl.php 2006-04-19 12:11:17 UTC (rev 453) +++ trunk/themes/default/templates/pfcgui.js.tpl.php 2006-04-19 16:31:59 UTC (rev 454) @@ -255,13 +255,10 @@ var img = $('<?php echo $prefix; ?>tabimg'+tabid); if (img) { - var src = ''; if (tabtype == 'ch') - src = '<?php echo $c->getFileUrlFromTheme('images/ch-active.gif'); ?>'; + img.src = '<?php echo $c->getFileUrlFromTheme('images/ch-active.gif'); ?>'; if (tabtype == 'pv') - src = '<?php echo $c->getFileUrlFromTheme('images/pv-active.gif'); ?>'; - preloadImages(src); - img.src = src; + img.src = '<?php echo $c->getFileUrlFromTheme('images/pv-active.gif'); ?>'; } }, @@ -275,13 +272,10 @@ var img = $('<?php echo $prefix; ?>tabimg'+tabid); if (img) { - var src = ''; if (tabtype == 'ch') - src = '<?php echo $c->getFileUrlFromTheme('images/ch.gif'); ?>'; + img.src = '<?php echo $c->getFileUrlFromTheme('images/ch.gif'); ?>'; if (tabtype == 'pv') - src = '<?php echo $c->getFileUrlFromTheme('images/pv.gif'); ?>'; - preloadImages(src); - img.src = src; + img.src = '<?php echo $c->getFileUrlFromTheme('images/pv.gif'); ?>'; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-19 12:11:33
|
Revision: 453 Author: kerphi Date: 2006-04-19 05:11:17 -0700 (Wed, 19 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=453&view=rev Log Message: ----------- Bug fix: the oldmsg CSS class was not set in some cases Modified Paths: -------------- branches/0.x/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php branches/0.x/src/pfccommand_connect.class.php branches/0.x/src/pfccommand_getnewmsg.class.php Modified: branches/0.x/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php =================================================================== --- branches/0.x/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php 2006-04-19 07:28:12 UTC (rev 452) +++ branches/0.x/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php 2006-04-19 12:11:17 UTC (rev 453) @@ -24,6 +24,7 @@ div.<?php echo $prefix; ?>oldmsg { background-image: url(<?php echo $c->getFileUrlFromTheme('images/oldmsg.gif'); ?>); + background-color: #EEE; } span.<?php echo $prefix; ?>heure { @@ -63,4 +64,4 @@ } .<?php echo $prefix; ?>cmd_msg { color: #555; -} \ No newline at end of file +} Modified: branches/0.x/src/pfccommand_connect.class.php =================================================================== --- branches/0.x/src/pfccommand_connect.class.php 2006-04-19 07:28:12 UTC (rev 452) +++ branches/0.x/src/pfccommand_connect.class.php 2006-04-19 12:11:17 UTC (rev 453) @@ -12,6 +12,8 @@ // i.e. be ready to re-get all last posted messages $container =& $c->getContainerInstance(); $_SESSION[$c->prefix."from_id_".$c->getId()."_".$clientid] = $container->getLastMsgId()-$c->max_msg; + // initialize the number of new read messages in order to be able to know how old a message is + $_SESSION[$c->prefix."nbreadmsg_".$c->getId()."_".$clientid] = 0; // reset the nickname cache $_SESSION[$c->prefix."nicklist_".$c->getId()."_".$clientid] = NULL; @@ -58,4 +60,4 @@ } } -?> \ No newline at end of file +?> Modified: branches/0.x/src/pfccommand_getnewmsg.class.php =================================================================== --- branches/0.x/src/pfccommand_getnewmsg.class.php 2006-04-19 07:28:12 UTC (rev 452) +++ branches/0.x/src/pfccommand_getnewmsg.class.php 2006-04-19 12:11:17 UTC (rev 453) @@ -24,6 +24,7 @@ $container =& $c->getContainerInstance(); $from_id = isset($_SESSION[$c->prefix."from_id_".$c->getId()."_".$clientid]) ? $_SESSION[$c->prefix."from_id_".$c->getId()."_".$clientid] : $container->getLastMsgId()-$c->max_msg; + $nbnewmsg = isset($_SESSION[$c->prefix."nbreadmsg_".$c->getId()."_".$clientid]) ? $_SESSION[$c->prefix."nbreadmsg_".$c->getId()."_".$clientid] : 0; $new_msg = $container->readNewMsg($from_id); $new_from_id = $new_msg["new_from_id"]; @@ -48,7 +49,7 @@ $m_cmd = "cmd_me"; } - $js .= "Array(".$m_id.",'".addslashes($m_date)."','".addslashes($m_heure)."','".addslashes($m_nick)."','".addslashes($m_words)."','".addslashes($m_cmd)."',".(date("d/m/Y") == $m_date ? 1 : 0).",".($from_id <= 0? 1 : 0)."),"; + $js .= "Array(".$m_id.",'".addslashes($m_date)."','".addslashes($m_heure)."','".addslashes($m_nick)."','".addslashes($m_words)."','".addslashes($m_cmd)."',".(date("d/m/Y") == $m_date ? 1 : 0).",".($nbnewmsg == 0 ? 1 : 0)."),"; $msg_sent = true; } if ($js != "") @@ -62,6 +63,7 @@ { // store the new msg id $_SESSION[$c->prefix."from_id_".$c->getId()."_".$clientid] = $new_from_id; + $_SESSION[$c->prefix."nbreadmsg_".$c->getId()."_".$clientid] = $nbnewmsg + count($messages); } // remove the lock This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-19 07:28:17
|
Revision: 452 Author: kerphi Date: 2006-04-19 00:28:12 -0700 (Wed, 19 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=452&view=rev Log Message: ----------- Bux fix: remove the http error popup in the compressed xajax.js Modified Paths: -------------- trunk/lib/xajax_0.2.3/xajax_js/xajax.js Modified: trunk/lib/xajax_0.2.3/xajax_js/xajax.js =================================================================== --- trunk/lib/xajax_0.2.3/xajax_js/xajax.js 2006-04-19 07:25:32 UTC (rev 451) +++ trunk/lib/xajax_0.2.3/xajax_js/xajax.js 2006-04-19 07:28:12 UTC (rev 452) @@ -91,7 +91,7 @@ xajax.processResponse(r.responseXML);else{var errorString="Error: the XML response that was returned from the server is invalid.";errorString+="\nReceived:\n"+r.responseText;trimmedResponseText=r.responseText.replace(/^\s+/g,"");trimmedResponseText=trimmedResponseText.replace(/\s+$/g,"");if(trimmedResponseText!=r.responseText) errorString+="\nYou have whitespace in your response.";alert(errorString);document.body.style.cursor='default';if(xajaxStatusMessages==true)window.status='Invalid XML response error';} } -else{var errorString="Error: the server returned the following HTTP status: "+r.status;errorString+="\nReceived:\n"+r.responseText;alert(errorString);document.body.style.cursor='default';if(xajaxStatusMessages==true)window.status='Invalid XML response error';} +else{var errorString="Error: the server returned the following HTTP status: "+r.status;errorString+="\nReceived:\n"+r.responseText;/*alert(errorString);*/document.body.style.cursor='default';if(xajaxStatusMessages==true)window.status='Invalid XML response error';} delete r;r=null;} if(xajaxDebug)this.DebugMessage("Calling "+sFunction+" uri="+uri+" (post:"+postData+")");r.send(postData);if(xajaxStatusMessages==true)window.status='Waiting for data...';delete r;return true;} this.getBrowserHTML=function(html){tmpXajax=this.$(this.workId);if(!tmpXajax){tmpXajax=document.createElement("div");tmpXajax.setAttribute('id',this.workId);tmpXajax.style.display="none";tmpXajax.style.visibility="hidden";document.body.appendChild(tmpXajax);} @@ -145,4 +145,4 @@ } delete xml;delete i;document.body.style.cursor='default';if(xajaxStatusMessages==true)window.status='Done';} } -var xajax=new Xajax();xajaxLoaded=true; \ No newline at end of file +var xajax=new Xajax();xajaxLoaded=true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-19 07:25:37
|
Revision: 451 Author: kerphi Date: 2006-04-19 00:25:32 -0700 (Wed, 19 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=451&view=rev Log Message: ----------- fix the http error popup in the compressed xajax.js Modified Paths: -------------- branches/0.x/lib/xajax_0.2.3/xajax_js/xajax.js Modified: branches/0.x/lib/xajax_0.2.3/xajax_js/xajax.js =================================================================== --- branches/0.x/lib/xajax_0.2.3/xajax_js/xajax.js 2006-04-18 15:09:27 UTC (rev 450) +++ branches/0.x/lib/xajax_0.2.3/xajax_js/xajax.js 2006-04-19 07:25:32 UTC (rev 451) @@ -91,7 +91,7 @@ xajax.processResponse(r.responseXML);else{var errorString="Error: the XML response that was returned from the server is invalid.";errorString+="\nReceived:\n"+r.responseText;trimmedResponseText=r.responseText.replace(/^\s+/g,"");trimmedResponseText=trimmedResponseText.replace(/\s+$/g,"");if(trimmedResponseText!=r.responseText) errorString+="\nYou have whitespace in your response.";alert(errorString);document.body.style.cursor='default';if(xajaxStatusMessages==true)window.status='Invalid XML response error';} } -else{var errorString="Error: the server returned the following HTTP status: "+r.status;errorString+="\nReceived:\n"+r.responseText;alert(errorString);document.body.style.cursor='default';if(xajaxStatusMessages==true)window.status='Invalid XML response error';} +else{var errorString="Error: the server returned the following HTTP status: "+r.status;errorString+="\nReceived:\n"+r.responseText;/*alert(errorString);*/document.body.style.cursor='default';if(xajaxStatusMessages==true)window.status='Invalid XML response error';} delete r;r=null;} if(xajaxDebug)this.DebugMessage("Calling "+sFunction+" uri="+uri+" (post:"+postData+")");r.send(postData);if(xajaxStatusMessages==true)window.status='Waiting for data...';delete r;return true;} this.getBrowserHTML=function(html){tmpXajax=this.$(this.workId);if(!tmpXajax){tmpXajax=document.createElement("div");tmpXajax.setAttribute('id',this.workId);tmpXajax.style.display="none";tmpXajax.style.visibility="hidden";document.body.appendChild(tmpXajax);} @@ -145,4 +145,4 @@ } delete xml;delete i;document.body.style.cursor='default';if(xajaxStatusMessages==true)window.status='Done';} } -var xajax=new Xajax();xajaxLoaded=true; \ No newline at end of file +var xajax=new Xajax();xajaxLoaded=true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-18 15:09:36
|
Revision: 450 Author: kerphi Date: 2006-04-18 08:09:27 -0700 (Tue, 18 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=450&view=rev Log Message: ----------- 0.9.2 release Added Paths: ----------- tags/0.9.2/ Copied: tags/0.9.2 (from rev 443, branches/0.x) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-18 08:38:42
|
Revision: 449 Author: kerphi Date: 2006-04-18 01:38:36 -0700 (Tue, 18 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=449&view=rev Log Message: ----------- report 0.x branche change Modified Paths: -------------- trunk/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php Modified: trunk/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php =================================================================== --- trunk/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php 2006-04-18 08:37:11 UTC (rev 448) +++ trunk/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php 2006-04-18 08:38:36 UTC (rev 449) @@ -7,6 +7,9 @@ color: black; margin: auto; } +div#<?php echo $prefix; ?>chat { + background-color: #FFF; +} div#<?php echo $prefix; ?>content { border: none; @@ -52,3 +55,12 @@ border: 1px solid #000; background-color: #CCC; } + + +/* commands */ +.<?php echo $prefix; ?>cmd_notice { + color: red; +} +.<?php echo $prefix; ?>cmd_msg { + color: #555; +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-18 08:37:23
|
Revision: 448 Author: kerphi Date: 2006-04-18 01:37:11 -0700 (Tue, 18 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=448&view=rev Log Message: ----------- Bug fix: the oldmsg style was not set correctly to old message elements (limit is set with max_msg) Modified Paths: -------------- branches/0.x/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php branches/0.x/src/pfccommand_getnewmsg.class.php Modified: branches/0.x/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php =================================================================== --- branches/0.x/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php 2006-04-17 19:45:09 UTC (rev 447) +++ branches/0.x/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php 2006-04-18 08:37:11 UTC (rev 448) @@ -7,6 +7,9 @@ color: black; margin: auto; } +div#<?php echo $prefix; ?>chat { + background-color: #FFF; +} div#<?php echo $prefix; ?>content { border: none; @@ -52,3 +55,12 @@ border: 1px solid #000; background-color: #CCC; } + + +/* commands */ +.<?php echo $prefix; ?>cmd_notice { + color: red; +} +.<?php echo $prefix; ?>cmd_msg { + color: #555; +} \ No newline at end of file Modified: branches/0.x/src/pfccommand_getnewmsg.class.php =================================================================== --- branches/0.x/src/pfccommand_getnewmsg.class.php 2006-04-17 19:45:09 UTC (rev 447) +++ branches/0.x/src/pfccommand_getnewmsg.class.php 2006-04-18 08:37:11 UTC (rev 448) @@ -48,7 +48,7 @@ $m_cmd = "cmd_me"; } - $js .= "Array(".$m_id.",'".addslashes($m_date)."','".addslashes($m_heure)."','".addslashes($m_nick)."','".addslashes($m_words)."','".addslashes($m_cmd)."',".(date("d/m/Y") == $m_date ? 1 : 0).",".($from_id == 0? 1 : 0)."),"; + $js .= "Array(".$m_id.",'".addslashes($m_date)."','".addslashes($m_heure)."','".addslashes($m_nick)."','".addslashes($m_words)."','".addslashes($m_cmd)."',".(date("d/m/Y") == $m_date ? 1 : 0).",".($from_id <= 0? 1 : 0)."),"; $msg_sent = true; } if ($js != "") @@ -69,4 +69,4 @@ } } -?> \ No newline at end of file +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-17 19:45:24
|
Revision: 447 Author: kerphi Date: 2006-04-17 12:45:09 -0700 (Mon, 17 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=447&view=rev Log Message: ----------- Highlight the tab icon when a something occurs in hidden tabs in order to catch the attention Modified Paths: -------------- trunk/misc/tabs.svg trunk/themes/default/images/ch.gif trunk/themes/default/images/pv.gif trunk/themes/default/templates/pfcclient.js.tpl.php trunk/themes/default/templates/pfcgui.js.tpl.php Added Paths: ----------- trunk/themes/default/images/ch-active.gif trunk/themes/default/images/pv-active.gif Modified: trunk/misc/tabs.svg =================================================================== --- trunk/misc/tabs.svg 2006-04-17 19:14:41 UTC (rev 446) +++ trunk/misc/tabs.svg 2006-04-17 19:45:09 UTC (rev 447) @@ -14,7 +14,7 @@ id="svg2" sodipodi:version="0.32" inkscape:version="0.43" - sodipodi:docbase="/home/kerphi/public_html/pfc-1.0/trunk/misc" + sodipodi:docbase="/home/kerphi/public_html/pfc-1.x/misc" sodipodi:docname="tabs.svg"> <defs id="defs4"> @@ -131,6 +131,36 @@ y1="390.89087" x2="487.51208" y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2207" + id="linearGradient1351" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.707107,0.707107,-0.707107,0.707107,759.9246,165.0014)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2207" + id="linearGradient2229" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.707107,0.707107,-0.707107,0.707107,776.8066,-126.4271)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2207" + id="linearGradient2232" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.433136,0.433136,-0.433136,0.433136,659.6914,109.3019)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> </defs> <sodipodi:namedview id="base" @@ -179,7 +209,7 @@ inkscape:export-ydpi="5.3417435" /> <g id="g3964" - inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/ch.png" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/ch.png" inkscape:export-xdpi="5.1439257" inkscape:export-ydpi="5.1439257"> <path @@ -215,22 +245,71 @@ style="fill:url(#linearGradient3962);fill-opacity:1;fill-rule:nonzero;stroke:#2b752b;stroke-width:7.61000013;stroke-linejoin:miter;stroke-miterlimit:2.5;stroke-dasharray:none;stroke-opacity:1" d="M 333.03813,569.31539 C 252.79573,570.33301 188.31938,603.23164 188.31938,643.59664 C 188.31937,682.269 247.50785,714.04025 323.03812,717.53415 C 325.0606,722.16887 327.24474,726.963 329.60063,731.87789 C 353.08832,780.87834 435.81419,788.34127 396.25687,775.72164 C 378.83553,770.16386 364.5783,744.44366 354.10062,717.37789 C 428.01584,713.10933 485.44438,681.69247 485.44437,643.59664 C 485.44437,602.59093 418.8933,569.31538 336.88187,569.31539 C 335.60044,569.31539 334.31181,569.29924 333.03813,569.31539 z " id="path4042" - inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/pv.png" inkscape:export-xdpi="5.3160944" inkscape:export-ydpi="5.3160944" /> <path style="fill:#40b340;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="path4044" d="M 220.54545,609.46419 C 224.97582,597.64358 233.41072,597.60795 244.57002,598.19856 C 258.8771,605.02931 271.71997,614.19723 286.93645,618.39683 C 300.41176,597.84009 294.8373,597.8761 326.79986,618.95141 C 341.11483,631.92803 312.84247,628.80461 327.85125,599.54552 C 339.6388,587.71009 398.04287,635.16256 351.76816,605.4233 C 375.60159,600.02611 365.52412,594.35026 398.29546,615.57074 C 371.05197,600.06673 387.97162,612.37197 412.5449,606.01422 C 415.93502,602.20389 420.52981,601.90384 424.94008,600.42516 L 446.29866,616.94146 C 442.39697,618.08408 437.81007,617.1715 434.80656,621.20448 C 410.39952,628.94913 395.10512,621.91375 373.50297,604.97187 C 378.71832,607.99313 403.40507,617.57766 372.23081,622.76431 C 318.38943,590.19406 349.79437,603.39512 350.45021,613.47771 C 336.70836,640.3188 321.89868,628.39132 302.1721,607.85539 C 317.66779,617.24672 325.97335,616.69573 308.213,634.85318 C 292.38309,631.97465 279.27996,623.23925 265.18576,615.11295 C 255.57748,613.71595 248.14611,612.30201 244.85482,622.82838 L 220.54545,609.46419 z " - inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/pv.png" inkscape:export-xdpi="5.3160944" inkscape:export-ydpi="5.3160944" /> <path style="fill:#40b340;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="path4046" d="M 249.11688,658.03562 C 258.45103,634.3361 253.86072,633.45585 284.21407,652.4544 C 315.78397,688.73726 243.65728,634.69895 302.15277,671.34075 C 308.24601,675.15757 290.02652,663.61178 283.9634,659.74729 C 295.43114,664.62802 301.21132,659.1372 309.37754,651.67843 C 329.33843,659.63829 368.65221,695.18803 333.52088,670.06393 C 347.53882,667.73922 351.38378,652.44825 356.95858,641.02909 C 368.77724,642.55334 427.61292,688.14183 380.88221,657.84586 C 394.07882,662.17942 400.39133,655.85602 408.14719,646.26556 C 462.74164,680.59735 422.76281,653.5135 422.48065,653.30731 L 443.40962,670.11795 C 428.86132,662.47436 381.54411,634.92256 430.4992,662.20451 C 422.47769,670.73458 414.91495,678.24405 401.52336,675.17231 C 381.08355,662.83381 341.9547,633.47163 379.61876,656.05623 C 373.03882,667.58625 368.78091,682.8011 354.65762,686.81032 C 343.235,680.65281 280.91663,638.41295 331.76144,667.1771 C 323.27896,674.54399 316.47957,680.93522 304.41898,677.14935 C 276.55472,660.21726 287.83097,678.24527 259.11746,641.60637 C 287.50805,659.11706 279.14581,648.28391 273.42625,671.39981 L 249.11688,658.03562 z " - inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/pv.png" inkscape:export-xdpi="5.3160944" inkscape:export-ydpi="5.3160944" /> + <path + style="fill:url(#linearGradient2232);fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:7.60999441;stroke-linejoin:miter;stroke-miterlimit:2.5;stroke-dasharray:none;stroke-opacity:1" + d="M 634.63132,379.71502 C 585.47905,380.33836 545.98425,400.49033 545.98425,425.2158 C 545.98424,448.90444 582.23998,468.36583 628.50583,470.50601 C 629.7447,473.34499 631.08259,476.28163 632.52569,479.29222 C 646.91301,509.30731 697.58651,513.87872 673.35578,506.14859 C 662.68439,502.74419 653.95116,486.98936 647.53309,470.41029 C 692.80965,467.7956 727.98734,448.55129 727.98734,425.2158 C 727.98734,400.09786 687.22166,379.71502 636.98578,379.71502 C 636.20085,379.71502 635.4115,379.70513 634.63132,379.71502 z " + id="path1333" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/ch-active.png" + inkscape:export-xdpi="5.1439257" + inkscape:export-ydpi="5.1439257" /> + <path + style="fill:url(#linearGradient2229);fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:7.61000013;stroke-linejoin:miter;stroke-miterlimit:2.5;stroke-dasharray:none;stroke-opacity:1" + d="M 735.89531,315.02966 C 655.65291,316.04728 591.17656,348.94591 591.17656,389.31091 C 591.17655,427.98327 650.36503,459.75452 725.8953,463.24842 C 727.91778,467.88314 730.10192,472.67727 732.45781,477.59216 C 755.9455,526.59261 838.67137,534.05554 799.11405,521.43591 C 781.69271,515.87813 767.43548,490.15793 756.9578,463.09216 C 830.87302,458.8236 888.30156,427.40674 888.30155,389.31091 C 888.30155,348.3052 821.75048,315.02965 739.73905,315.02966 C 738.45762,315.02966 737.16899,315.01351 735.89531,315.02966 z " + id="path1335" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/ch-active.png" + inkscape:export-xdpi="5.1439257" + inkscape:export-ydpi="5.1439257" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + id="path1337" + d="M 623.40263,355.17846 C 627.833,343.35785 636.2679,343.32222 647.4272,343.91283 C 661.73428,350.74358 674.57715,359.9115 689.79363,364.1111 C 703.26894,343.55436 697.69448,343.59037 729.65704,364.66568 C 743.97201,377.6423 715.69965,374.51888 730.70843,345.25979 C 742.49598,333.42436 800.90005,380.87683 754.62534,351.13757 C 778.45877,345.74038 768.3813,340.06453 801.15264,361.28501 C 773.90915,345.781 790.8288,358.08624 815.40208,351.72849 C 818.7922,347.91816 823.38699,347.61811 827.79726,346.13943 L 849.15584,362.65573 C 845.25415,363.79835 840.66725,362.88577 837.66374,366.91875 C 813.2567,374.6634 797.9623,367.62802 776.36015,350.68614 C 781.5755,353.7074 806.26225,363.29193 775.08799,368.47858 C 721.24661,335.90833 752.65155,349.10939 753.30739,359.19198 C 739.56554,386.03307 724.75586,374.10559 705.02928,353.56966 C 720.52497,362.96099 728.83053,362.41 711.07018,380.56745 C 695.24027,377.68892 682.13714,368.95352 668.04294,360.82722 C 658.43466,359.43022 651.00329,358.01628 647.712,368.54265 L 623.40263,355.17846 z " + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/ch-active.png" + inkscape:export-xdpi="5.1439257" + inkscape:export-ydpi="5.1439257" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + id="path1339" + d="M 651.97406,403.74989 C 661.30821,380.05037 656.7179,379.17012 687.07125,398.16867 C 718.64115,434.45153 646.51446,380.41322 705.00995,417.05502 C 711.10319,420.87184 692.8837,409.32605 686.82058,405.46156 C 698.28832,410.34229 704.0685,404.85147 712.23472,397.3927 C 732.19561,405.35256 771.50939,440.9023 736.37806,415.7782 C 750.396,413.45349 754.24096,398.16252 759.81576,386.74336 C 771.63442,388.26761 830.4701,433.8561 783.73939,403.56013 C 796.936,407.89369 803.24851,401.57029 811.00437,391.97983 C 865.59882,426.31162 825.61999,399.22777 825.33783,399.02158 L 846.2668,415.83222 C 831.7185,408.18863 784.40129,380.63683 833.35638,407.91878 C 825.33487,416.44885 817.77213,423.95832 804.38054,420.88658 C 783.94073,408.54808 744.81188,379.1859 782.47594,401.7705 C 775.896,413.30052 771.63809,428.51537 757.5148,432.52459 C 746.09218,426.36708 683.77381,384.12722 734.61862,412.89137 C 726.13614,420.25826 719.33675,426.64949 707.27616,422.86362 C 679.4119,405.93153 690.68815,423.95954 661.97464,387.32064 C 690.36523,404.83133 682.00299,393.99818 676.28343,417.11408 L 651.97406,403.74989 z " + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/ch-active.png" + inkscape:export-xdpi="5.1439257" + inkscape:export-ydpi="5.1439257" /> + <path + style="fill:url(#linearGradient1351);fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:7.61000013;stroke-linejoin:miter;stroke-miterlimit:2.5;stroke-dasharray:none;stroke-opacity:1" + d="M 719.01339,606.45822 C 638.771,607.47584 574.29464,640.37447 574.29464,680.73947 C 574.29463,719.41183 633.48311,751.18308 709.01338,754.67698 C 711.03586,759.3117 713.22,764.10583 715.57589,769.02072 C 739.06359,818.02117 821.78946,825.4841 782.23213,812.86447 C 764.8108,807.30669 750.55356,781.58649 740.07588,754.52072 C 813.9911,750.25216 871.41964,718.8353 871.41963,680.73947 C 871.41963,639.73376 804.86856,606.45821 722.85713,606.45822 C 721.5757,606.45822 720.28707,606.44207 719.01339,606.45822 z " + id="path1345" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/pv-active.png" + inkscape:export-xdpi="5.3160944" + inkscape:export-ydpi="5.3160944" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + id="path1347" + d="M 606.52071,646.60702 C 610.95108,634.78641 619.38598,634.75078 630.54528,635.34139 C 644.85236,642.17214 657.69523,651.34006 672.91171,655.53966 C 686.38702,634.98292 680.81256,635.01893 712.77513,656.09424 C 727.09009,669.07086 698.81774,665.94744 713.82651,636.68835 C 725.61406,624.85292 784.01813,672.30539 737.74343,642.56613 C 761.57685,637.16894 751.49939,631.49309 784.27073,652.71357 C 757.02723,637.20956 773.94688,649.5148 798.52016,643.15705 C 801.91028,639.34672 806.50507,639.04667 810.91535,637.56799 L 832.27392,654.08429 C 828.37223,655.22691 823.78533,654.31433 820.78182,658.34731 C 796.37478,666.09196 781.08038,659.05658 759.47823,642.1147 C 764.69358,645.13596 789.38033,654.72049 758.20607,659.90714 C 704.36469,627.33689 735.76964,640.53795 736.42547,650.62054 C 722.68363,677.46163 707.87394,665.53415 688.14736,644.99822 C 703.64305,654.38955 711.94861,653.83856 694.18826,671.99601 C 678.35836,669.11748 665.25523,660.38208 651.16103,652.25578 C 641.55275,650.85878 634.12137,649.44484 630.83008,659.97121 L 606.52071,646.60702 z " + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/pv-active.png" + inkscape:export-xdpi="5.3160944" + inkscape:export-ydpi="5.3160944" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + id="path1349" + d="M 635.09215,695.17845 C 644.42629,671.47893 639.83598,670.59868 670.18933,689.59723 C 701.75923,725.88009 629.63254,671.84178 688.12803,708.48358 C 694.22128,712.3004 676.00178,700.75461 669.93866,696.89012 C 681.4064,701.77085 687.18658,696.28003 695.3528,688.82126 C 715.31369,696.78112 754.62747,732.33086 719.49614,707.20676 C 733.51408,704.88205 737.35904,689.59108 742.93384,678.17192 C 754.7525,679.69617 813.58818,725.28466 766.85747,694.98869 C 780.05408,699.32225 786.36659,692.99885 794.12245,683.40839 C 848.7169,717.74018 808.73807,690.65633 808.45591,690.45014 L 829.38488,707.26078 C 814.83658,699.61719 767.51938,672.06539 816.47446,699.34734 C 808.45295,707.87741 800.89021,715.38688 787.49862,712.31514 C 767.05882,699.97664 727.92996,670.61446 765.59403,693.19906 C 759.01408,704.72908 754.75617,719.94393 740.63288,723.95315 C 729.21026,717.79564 666.89189,675.55578 717.7367,704.31993 C 709.25422,711.68682 702.45483,718.07805 690.39424,714.29218 C 662.52998,697.36009 673.80623,715.3881 645.09272,678.7492 C 673.48331,696.25989 665.12107,685.42674 659.40151,708.54264 L 635.09215,695.17845 z " + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/pv-active.png" + inkscape:export-xdpi="5.3160944" + inkscape:export-ydpi="5.3160944" /> </g> </svg> Added: trunk/themes/default/images/ch-active.gif =================================================================== (Binary files differ) Property changes on: trunk/themes/default/images/ch-active.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/themes/default/images/ch.gif =================================================================== (Binary files differ) Added: trunk/themes/default/images/pv-active.gif =================================================================== (Binary files differ) Property changes on: trunk/themes/default/images/pv-active.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/themes/default/images/pv.gif =================================================================== (Binary files differ) Modified: trunk/themes/default/templates/pfcclient.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcclient.js.tpl.php 2006-04-17 19:14:41 UTC (rev 446) +++ trunk/themes/default/templates/pfcclient.js.tpl.php 2006-04-17 19:45:09 UTC (rev 447) @@ -19,7 +19,6 @@ this.privmsgs = Array(); this.privmsgids = Array(); - this.timeout = null; this.refresh_delay = <?php echo $refresh_delay; ?>; /* unique client id for each windows used to identify a open window @@ -516,7 +515,6 @@ handleComingRequest: function( cmds ) { var msg_html = $H(); - var msg_ids = $H(); // alert(cmds.inspect()); @@ -575,11 +573,6 @@ msg_html[recipientid] = line; else msg_html[recipientid] += line; - - if (msg_ids[recipientid] == null) - msg_ids[recipientid] = Array(id); - else - msg_ids[recipientid].push(id); } // loop on all recipients and post messages @@ -589,6 +582,9 @@ var recipientid = keys[i]; var tabid = recipientid; + if (this.gui.getTabId() != tabid) + this.gui.notifyTab(tabid); + // create the tab if it doesn't exists yet var recipientdiv = this.gui.getChatContentFromTabId(tabid); @@ -694,12 +690,6 @@ nickdiv.appendChild(ul,fc); this.colorizeNicks(tabid,nickdiv); }, - - test: function(evt) - { - alert(evt); - return false; - }, /** * clear the nickname list Modified: trunk/themes/default/templates/pfcgui.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcgui.js.tpl.php 2006-04-17 19:14:41 UTC (rev 446) +++ trunk/themes/default/templates/pfcgui.js.tpl.php 2006-04-17 19:45:09 UTC (rev 447) @@ -14,6 +14,7 @@ this.current_tab_id = ''; this.tabs = Array(); this.tabids = Array(); + this.tabtypes = Array(); this.chatcontent = $H(); this.onlinecontent = $H(); this.smileycontent = $H(); @@ -72,6 +73,8 @@ // restore the scroll pos var content = this.getChatContentFromTabId(tabid); content.scrollTop = this.scrollpos[tabid]; + + this.unnotifyTab(tabid); }, getTabId: function() @@ -157,6 +160,7 @@ var name = this.tabs[tabpos]; this.tabids = this.tabids.without(this.tabids[tabpos]); this.tabs = this.tabs.without(this.tabs[tabpos]); + this.tabtypes = this.tabtypes.without(this.tabtypes[tabpos]); // this.tabprefixs = this.tabprefixs.without(this.tabprefixs[tabpos]); tabpos--; if (tabpos<0) tabpos = 0; this.setTabById(this.tabids[tabpos]); @@ -188,6 +192,7 @@ //alert(name+'='+tabid); this.tabs.push(name); this.tabids.push(tabid); + this.tabtypes.push(type); // this.tabprefixs.push(prefix); var li_title = document.createElement('li'); @@ -197,6 +202,7 @@ li_title.appendChild(li_div); var img = document.createElement('img'); + img.setAttribute('id', '<?php echo $prefix; ?>tabimg'+tabid); if (type == 'ch') img.setAttribute('src', '<?php echo $c->getFileUrlFromTheme('images/ch.gif'); ?>'); if (type == 'pv') @@ -235,9 +241,48 @@ $('<?php echo $prefix; ?>channels_list').appendChild(li_title); $('<?php echo $prefix; ?>channels_content').appendChild(div_content); + + return tabid; + }, + /** + * This function change the tab icon in order to catch the attention + */ + notifyTab: function(tabid) + { + var tabpos = this.tabids.indexOf(tabid); + var tabtype = this.tabtypes[tabpos]; + var img = $('<?php echo $prefix; ?>tabimg'+tabid); + if (img) + { + var src = ''; + if (tabtype == 'ch') + src = '<?php echo $c->getFileUrlFromTheme('images/ch-active.gif'); ?>'; + if (tabtype == 'pv') + src = '<?php echo $c->getFileUrlFromTheme('images/pv-active.gif'); ?>'; + preloadImages(src); + img.src = src; + } + }, - return tabid; + /** + * This function restore the tab icon to its default value + */ + unnotifyTab: function(tabid) + { + var tabpos = this.tabids.indexOf(tabid); + var tabtype = this.tabtypes[tabpos]; + var img = $('<?php echo $prefix; ?>tabimg'+tabid); + if (img) + { + var src = ''; + if (tabtype == 'ch') + src = '<?php echo $c->getFileUrlFromTheme('images/ch.gif'); ?>'; + if (tabtype == 'pv') + src = '<?php echo $c->getFileUrlFromTheme('images/pv.gif'); ?>'; + preloadImages(src); + img.src = src; + } } }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-17 19:14:47
|
Revision: 446 Author: kerphi Date: 2006-04-17 12:14:41 -0700 (Mon, 17 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=446&view=rev Log Message: ----------- design improvments (background-color) Modified Paths: -------------- trunk/themes/blune/templates/style.css.tpl.php Modified: trunk/themes/blune/templates/style.css.tpl.php =================================================================== --- trunk/themes/blune/templates/style.css.tpl.php 2006-04-17 16:46:13 UTC (rev 445) +++ trunk/themes/blune/templates/style.css.tpl.php 2006-04-17 19:14:41 UTC (rev 446) @@ -1,34 +1,38 @@ - -div#<?php echo $prefix; ?>container { - color: #2A4064; - background-color: #BEC5D0; - background-image: url(<?php echo $c->getFileUrlFromTheme('images/shade.gif'); ?>); -} - -div.<?php echo $prefix; ?>message { - background-color:#CED4DF; -} - -div.<?php echo $prefix; ?>oldmsg { - background-color:#DCDEE4; -} - -span.<?php echo $prefix; ?>nick { -color:#2A4064; -} - -div.<?php echo $prefix; ?>btn img:hover { - border: 1px solid #000; -} - -div#<?php echo $prefix; ?>online { - height: 48%; -} - -div#<?php echo $prefix; ?>smileys { - height: 48%; -} - + +div#<?php echo $prefix; ?>container { + color: #2A4064; + background-color: #BEC5D0; + background-image: url(<?php echo $c->getFileUrlFromTheme('images/shade.gif'); ?>); +} + +div#<?php echo $prefix; ?>chat { + background-color:#CED4DF; +} + +div.<?php echo $prefix; ?>message { + background-color:#CED4DF; +} + +div.<?php echo $prefix; ?>oldmsg { + background-color:#DCDEE4; +} + +span.<?php echo $prefix; ?>nick { + color:#2A4064; +} + +div.<?php echo $prefix; ?>btn img:hover { + border: 1px solid #000; +} + +div#<?php echo $prefix; ?>online { + height: 48%; +} + +div#<?php echo $prefix; ?>smileys { + height: 48%; +} + p#<?php echo $prefix; ?>errors { display: none; margin-top: 5px; @@ -36,7 +40,7 @@ height: 18px; border: black solid 1px; - color: #EC4A1F; + color: #EC4A1F; background-color: #BEC5D0; text-align: center; font-style: italic; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-17 16:46:27
|
Revision: 445 Author: kerphi Date: 2006-04-17 09:46:13 -0700 (Mon, 17 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=445&view=rev Log Message: ----------- greek translation update Modified Paths: -------------- trunk/i18n/el_GR/main.php Modified: trunk/i18n/el_GR/main.php =================================================================== --- trunk/i18n/el_GR/main.php 2006-04-17 16:45:43 UTC (rev 444) +++ trunk/i18n/el_GR/main.php 2006-04-17 16:46:13 UTC (rev 445) @@ -39,52 +39,52 @@ $GLOBALS["i18n"]["Text cannot be empty"] = "Το κείμενο δεν μπορεί να είναι άδειο."; // line 392 in phpfreechat.class.php -$GLOBALS["i18n"]["%s changes his nickname to %s"] = "%s αλλάζει το ψευδώνυμο του σε %s"; +$GLOBALS["i18n"]["%s changes his nickname to %s"] = "Ο/Η %s αλλάζει το ψευδώνυμο του σε %s"; // line 398 in phpfreechat.class.php -$GLOBALS["i18n"]["%s is connected"] = "%s συνδέθηκε"; +$GLOBALS["i18n"]["%s is connected"] = " Ο/Η %s συνδέθηκε"; // line 452 in phpfreechat.class.php -$GLOBALS["i18n"]["%s quit"] = "%s έφυγε"; +$GLOBALS["i18n"]["%s quit"] = " Ο/Η %s έφυγε"; // line 468 in phpfreechat.class.php -$GLOBALS["i18n"]["%s disconnected (timeout)"] = "%s αποσυνδέθηκε (timeout)"; +$GLOBALS["i18n"]["%s disconnected (timeout)"] = " Ο/Η %s αποσυνδέθηκε (timeout)"; // line 262 in phpfreechat.class.php $GLOBALS["i18n"]["Unknown command [%s]"] = "Άγνωστη εντολή [%s]"; // line 149 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s doesn't exist: %s"] = "%s δεν υπάρχει: %s"; +$GLOBALS["i18n"]["%s doesn't exist: %s"] = "Το %s δεν υπάρχει: %s"; // line 180 in phpfreechatconfig.class.php $GLOBALS["i18n"]["You need %s"] = "Χρειάζεσαι %s"; // line 241 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s doesn't exist, %s library can't be found"] = "%s δεν υπάρχει, %s η βιβλιοθήκη δεν μπορεί να βρεθεί"; +$GLOBALS["i18n"]["%s doesn't exist, %s library can't be found"] = "Το %s δεν υπάρχει, %s η βιβλιοθήκη δεν μπορεί να βρεθεί"; // line 280 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s doesn't exist"] = "%s δεν υπάρχει"; +$GLOBALS["i18n"]["%s doesn't exist"] = "Το %s δεν υπάρχει"; // line 433 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s directory must be specified"] = "%s φάκελος πρέπει να είναι συγκεκριμένος."; +$GLOBALS["i18n"]["%s directory must be specified"] = "Ο %s κατάλογος πρέπει να είναι συγκεκριμένος."; // line 439 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s must be a directory"] = "%s πρέπει να είναι φάκελος"; +$GLOBALS["i18n"]["%s must be a directory"] = "Το %s πρέπει να είναι κατάλογος"; // line 446 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s can't be created"] = "%s δεν μπορεί να δημιουργηθεί"; +$GLOBALS["i18n"]["%s can't be created"] = "Το %s δεν μπορεί να δημιουργηθεί"; // line 451 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s is not writeable"] = "%s δεν είναι δυνατόν να εγγραφεί."; +$GLOBALS["i18n"]["%s is not writeable"] = "Το %s δεν είναι δυνατόν να εγγραφεί."; // line 496 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s is not readable"] = "%s δεν είναι δυνατόν να διαβαστεί"; +$GLOBALS["i18n"]["%s is not readable"] = "Το %s δεν είναι δυνατόν να διαβαστεί"; // line 469 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s is not a file"] = "%s δεν είναι αρχείο"; +$GLOBALS["i18n"]["%s is not a file"] = "Το %s δεν είναι αρχείο"; // line 491 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s is not a directory"] = "%s δεν είναι φάκελος"; +$GLOBALS["i18n"]["%s is not a directory"] = "Το %s δεν είναι κατάλογος"; // line 23 in chat.html.tpl.php $GLOBALS["i18n"]["PHP FREE CHAT [powered by phpFreeChat-%s]"] = "PHP FREE CHAT [powered by phpFreeChat-%s]"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-17 16:45:54
|
Revision: 444 Author: kerphi Date: 2006-04-17 09:45:43 -0700 (Mon, 17 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=444&view=rev Log Message: ----------- greek translation update Modified Paths: -------------- branches/0.x/i18n/el_GR/main.php Modified: branches/0.x/i18n/el_GR/main.php =================================================================== --- branches/0.x/i18n/el_GR/main.php 2006-04-17 15:11:09 UTC (rev 443) +++ branches/0.x/i18n/el_GR/main.php 2006-04-17 16:45:43 UTC (rev 444) @@ -39,52 +39,52 @@ $GLOBALS["i18n"]["Text cannot be empty"] = "Το κείμενο δεν μπορεί να είναι άδειο."; // line 392 in phpfreechat.class.php -$GLOBALS["i18n"]["%s changes his nickname to %s"] = "%s αλλάζει το ψευδώνυμο του σε %s"; +$GLOBALS["i18n"]["%s changes his nickname to %s"] = "Ο/Η %s αλλάζει το ψευδώνυμο του σε %s"; // line 398 in phpfreechat.class.php -$GLOBALS["i18n"]["%s is connected"] = "%s συνδέθηκε"; +$GLOBALS["i18n"]["%s is connected"] = " Ο/Η %s συνδέθηκε"; // line 452 in phpfreechat.class.php -$GLOBALS["i18n"]["%s quit"] = "%s έφυγε"; +$GLOBALS["i18n"]["%s quit"] = " Ο/Η %s έφυγε"; // line 468 in phpfreechat.class.php -$GLOBALS["i18n"]["%s disconnected (timeout)"] = "%s αποσυνδέθηκε (timeout)"; +$GLOBALS["i18n"]["%s disconnected (timeout)"] = " Ο/Η %s αποσυνδέθηκε (timeout)"; // line 262 in phpfreechat.class.php $GLOBALS["i18n"]["Unknown command [%s]"] = "Άγνωστη εντολή [%s]"; // line 149 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s doesn't exist: %s"] = "%s δεν υπάρχει: %s"; +$GLOBALS["i18n"]["%s doesn't exist: %s"] = "Το %s δεν υπάρχει: %s"; // line 180 in phpfreechatconfig.class.php $GLOBALS["i18n"]["You need %s"] = "Χρειάζεσαι %s"; // line 241 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s doesn't exist, %s library can't be found"] = "%s δεν υπάρχει, %s η βιβλιοθήκη δεν μπορεί να βρεθεί"; +$GLOBALS["i18n"]["%s doesn't exist, %s library can't be found"] = "Το %s δεν υπάρχει, %s η βιβλιοθήκη δεν μπορεί να βρεθεί"; // line 280 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s doesn't exist"] = "%s δεν υπάρχει"; +$GLOBALS["i18n"]["%s doesn't exist"] = "Το %s δεν υπάρχει"; // line 433 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s directory must be specified"] = "%s φάκελος πρέπει να είναι συγκεκριμένος."; +$GLOBALS["i18n"]["%s directory must be specified"] = "Ο %s κατάλογος πρέπει να είναι συγκεκριμένος."; // line 439 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s must be a directory"] = "%s πρέπει να είναι φάκελος"; +$GLOBALS["i18n"]["%s must be a directory"] = "Το %s πρέπει να είναι κατάλογος"; // line 446 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s can't be created"] = "%s δεν μπορεί να δημιουργηθεί"; +$GLOBALS["i18n"]["%s can't be created"] = "Το %s δεν μπορεί να δημιουργηθεί"; // line 451 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s is not writeable"] = "%s δεν είναι δυνατόν να εγγραφεί."; +$GLOBALS["i18n"]["%s is not writeable"] = "Το %s δεν είναι δυνατόν να εγγραφεί."; // line 496 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s is not readable"] = "%s δεν είναι δυνατόν να διαβαστεί"; +$GLOBALS["i18n"]["%s is not readable"] = "Το %s δεν είναι δυνατόν να διαβαστεί"; // line 469 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s is not a file"] = "%s δεν είναι αρχείο"; +$GLOBALS["i18n"]["%s is not a file"] = "Το %s δεν είναι αρχείο"; // line 491 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["%s is not a directory"] = "%s δεν είναι φάκελος"; +$GLOBALS["i18n"]["%s is not a directory"] = "Το %s δεν είναι κατάλογος"; // line 23 in chat.html.tpl.php $GLOBALS["i18n"]["PHP FREE CHAT [powered by phpFreeChat-%s]"] = "PHP FREE CHAT [powered by phpFreeChat-%s]"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |