''.$tx['menu']['print'].'';} function mailformlink(){global $cf;if($cf['mailform']['email']!='')return ml('mailform');} function guestbooklink(){global $cf;if($cf['guestbook']['maxlength']>0)return ml('guestbook');} function loginlink(){global $cf,$adm,$sn,$u,$s,$tx;if(!$adm){if($cf['security']['wwwaut']!='true')return '
'.tag('input type="hidden" name="login" value="true"').tag('input type="hidden" name="selected" value="'.$u[$s].'"').tag('input type="hidden" name="passwd" id="passwd" value=""').'
'.$tx['menu']['login'].'';else return a($s,amp().'login').$tx['menu']['login'].'';}} function lastupdate($br){global $tx,$pth;$t=$tx['lastupdate']['text'].':';if(!(isset($br)))$t.=tag('br');else $t.=' ';return $t.date($tx['lastupdate']['dateformat'], filemtime($pth['file']['content']));} function locator(){global $title,$h,$s,$f,$c,$l,$hc;if(preg_match("/\#CMSimple hide\#/is",$c[$s]))return $h[$s];if($title!=''&&$h[$s]!=$title)return $title;$t='';$tl=$l[$s];if($tl>1){for($i=$s-1;$i>0 ;$i--){if($l[$i]<$tl){$t=a($i,'').$h[$i].' > '.$t;$tl--;}if($tl<2)break;}}if($s==$hc[0])return $h[$s];else if($s>0)return a($hc[0],'').$h[$hc[0]].' > '.$t.$h[$s];else if($f!='')return ucfirst($f);else return ' ';} function editmenu(){global $adm,$edit,$s,$sn,$tx;if($adm){$t='
';if($edit)$t.=a($s,amp().'normal').$tx['editmenu']['normal'].'';else $t.=a($s,amp().'edit').$tx['editmenu']['edit'].'';return $t.''.$tx['editmenu']['validate'].''.$tx['editmenu']['images'].''.$tx['editmenu']['downloads'].''.$tx['editmenu']['settings'].''.$tx['editmenu']['help'].''.a($s,amp().'logout').$tx['editmenu']['logout'].'
';}} function content(){global $s,$o,$c,$edit,$adm;if(!($edit&&$adm)&&$s>-1)return $o.preg_replace("/\#CMSimple.*\#/is","",$c[$s]);else return $o;} function submenu(){global $s,$c,$cl,$l,$tx;$ta=array();if(!($l[$s]==1||$l[$s]==2))return;$s3=true;for($i=$s+1;$i<$cl;$i++){if($l[$i]==1)break;if($l[$i]==2){if($l[$s]!=1)break;else{$ta[]=$i;$s3=false;}}if($l[$i]==3&&$s3)$ta[]=$i;}if(count($ta)!=0)return '

'.$tx['submenu']['heading'].'

'.li($ta,'submenu');} function previouspage(){global $hs,$hc,$tx;if(isset($hc[$hs-1]))return a($hc[$hs-1],'').$tx['navigator']['previous'].'';} function nextpage(){global $hs,$hc,$tx;if(isset($hc[$hs+1])&&$hs>-1)return a($hc[$hs+1],'').$tx['navigator']['next'].'';} function top(){global $tx;return ''.$tx['navigator']['top'].'';} function languagemenu(){global $pth,$cf,$sl;$t='';$r=array();$fd=@opendir($pth['folder']['base']);while(($p=@readdir($fd))==true ){if(@is_dir($pth['folder']['base'].$p)){if(preg_match('/^[A-z]{2}$/',$p))$r[]=$p;}}if($fd==true)closedir($fd);if(count($r)==0)return '';if($cf['language']['default']!=$sl)$t.=''.$cf['language']['default'].' ';$v=count($r);for($i=0;$i<$v;$i++){if($sl!=$r[$i]){if(is_file($pth['folder']['flags'].'/'.$r[$i].'.gif')){$t.=''.$r[$i].' ';}else{$t.='['.$r[$i].'] ';}}}return ''.$t.'';} ?>