Xaraya / Postnuke CVS Notices - Message

Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites

View Statistics - Next Notice - Previous Notice

Directory filter : [ all ] / postnuke_modules / PostContact / global_functions [ view in CVS ]


Deprecated: Function gmstrftime() is deprecated in /home/mikespub/www/list.php on line 509
Date Directory [filter] File(s) [view] Author [filter]
25 Jul 2002 11:24:12postnuke_modules/PostContact/global_functionslangFunctions.php,1.2,1.3Bjarne Var�ystrand
 Changed the way to show countrynames. Now it uses the languagefile.

Update of /home/cvsroot/postnuke_modules/PostContact/global_functions
In directory ns7.hostnuke.net:/tmp/cvs-serv1794/postnuke_modules/PostContact/global_functions

Modified Files:
	langFunctions.php 
Log Message:
Changed the way to show countrynames.
Now it uses the languagefile.


Index: langFunctions.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/PostContact/global_functions/langFunctions.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** langFunctions.php	23 Jul 2002 11:58:49 -0000	1.2
--- langFunctions.php	25 Jul 2002 11:24:10 -0000	1.3
***************
*** 21,34 ****
  	}
  	asort($langlist);
! 	foreach ($langlist as $k=>$v){
! 		echo '<option value="'.$k.'"';
! 		if ( $currentlang == $k){
! 			echo ' selected';
  		}
! 		if($country){
! 			$lang = "_COUNTRY_".strtoupper($k);
! 			$all = get_defined_constants();
! 			echo ">".$all[$lang]."</option> ";
! 		}else{
  			echo '>'. pnVarPrepForDisplay($v) . '</option> ';
  		}
--- 21,46 ----
  	}
  	asort($langlist);
! 	
! 	if($country){
! 		$alla_define 	= get_defined_constants();
! 		$nycklar 		= array_keys ($alla_define);
! 		for($i = 0;$i < count($nycklar);$i++){
! 			$keyName = $nycklar[$i];
! 			if(substr($keyName,0,strlen("_COUNTRY_")) == "_COUNTRY_"){
! 				$define_data	= $alla_define[$keyName];
! 				$keyData		= substr($keyName,strlen("_COUNTRY_"),strlen($keyName));
! 				echo '<option value="'.$keyData.'"';
! 				if ( $currentlang == $keyData){
! 					echo ' selected';
! 				}
! 				echo ">".$define_data."</option> ";
! 			}
  		}
! 	}else{
! 		foreach ($langlist as $k=>$v){
! 			echo '<option value="'.$k.'"';
! 			if ( $currentlang == $k){
! 				echo ' selected';
! 			}
  			echo '>'. pnVarPrepForDisplay($v) . '</option> ';
  		}


Directory filter : [ all ] / postnuke_modules / PostContact / global_functions [ view in CVS ]

View Statistics - Next Notice - Previous Notice


Visit Developer Site - Browse CVS Repository Syndicate via backend.rss
(max. once per hour please)
Powered by CVSNotice 0.1.3