GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/chat/inc/classes/
Upload File :
Current File : /home/serb/public_html/chat/inc/classes/doGetLanguage.php

<?php

			if($lang && $save == true) $this->lang = $lang;
			if($save_only != 1)
			{
				$v = $GLOBALS['fc_config']['languages'][$this->lang];
				$vDef = $GLOBALS['fc_config']['languages']['en'];

				if (!function_exists('comp')) {
					function comp(&$cur, $def) {
						foreach ($def as $defKey => $defItem) {
							if (is_array($defItem)) {
								if (!isset($cur[$defKey])) {
									$cur[$defKey] = array();
								}
								comp($cur[$defKey], $defItem);
							}
							else {
								if (is_array($cur) && !array_key_exists($defKey, $cur)) {
									$cur[$defKey] = $defItem;
								}
							  else {

							  }
							}
						}
					}
				}
				comp($v, $vDef);

				$msg = ($save == true)? new Message('glng') : new Message('lng');
fb($v);
				$msg->txt  = '<language loaded="1" id="'.$this->lang.'" name="'.$v['name'].'">';
				$msg->txt .= '<messages ' . array2attrsHtml($v['messages']) . '/>';
				$msg->txt .= '<desktop ' . array2attrs($v['desktop']) . '/>';

				if(is_array($v) && sizeof($v) > 0)
				{
					foreach($v['dialog'] as $dk => $dv)
					{
						$msg->txt .= '<dialog id="'.$dk.'" '.array2attrsHtml($dv).'/>';
					}
				}
				$msg->txt .= '<status ' . array2attrs($v['status']) . '/>';
				$msg->txt .= '<usermenu ' . array2attrs($v['usermenu']) . '/>';
				$msg->txt .= '</language>';

				$ret = $this->sendBack($msg);
			}

			if($save == true) $this->save();

			return ($ret);
?>

./BlackJoker Mini Shell 1.0