Parse error: parse error, unexpected T_ELSE in C:\AppServ\www\com_buss\function.php on line 43
<? function dateShow($datetime)
{
$monthname = array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
$monthnum = array("01","02","03","04","05","06","07","08","09","10","11","12");
$tmpSplit = split(" ",$datetime);
$datadate = $tmpSplit[0];
$datatime = $tmpSpilt[1];
$splitDate = split("-",$datadate);
$output = $splitDate[2]."".str_replace($monthnum,$monthname,$splitDate[1])." ".$splitDate[0]." ".$datatime;
return $output;
}
function showIP($ipaddress){
if($ipaddress<>"::1"){
$tmpSplit = split("\.",$ipaddress);
$output = $tmpSplit[0].".".$tmpSplit[1].".".$tmpSpilt[2].".xxx";
} else {
$output = "127.0.0.xxx";
}
return $output;
}
function showAttachfile($imagename){
if($imagename<>""){
$imagesize = getimagesize("attach/imagename.jpg");
if($imagesize[0]>$imagesize[1]){
if($imagesize[0]>$imagesize[1]){
if ($imagesize[0] > 150) {
$w = 150;
$h = ($imagesize[1]*150)/$imagesize[0];
}else{
$w = $imagesize[0];
$h = $imagesize[1];
}
}else{
if($imagesize[0] > 150) {
$h = 150;
$w = ($imagesize[0]*150)/$imagesize[1];
}else{
$w = $imagesize[0];
$w = ($imagesize[0]*150)/$imagesize[1];
}else{
$w = $imagesize[0];
$h = $imagesize[1];
}
}
$output = "<img src=\"attach/$imagename.jpg\" width=\"$w\" height=\"$h\" />";
} else {
$output = " ";
}
return $output;
}
function showEmo($detail) {
for($i=1;$i<=15;$i++) {
$detail = str_replace("[<? function dateShow($datetime)
{
$monthname = array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
$monthnum = array("01","02","03","04","05","06","07","08","09","10","11","12");
$tmpSplit = split(" ",$datetime);
$datadate = $tmpSplit[0];
$datatime = $tmpSpilt[1];
$splitDate = split("-",$datadate);
$output = $splitDate[2]."".str_replace($monthnum,$monthname,$splitDate[1])." ".$splitDate[0]." ".$datatime;
return $output;
}
function showIP($ipaddress){
if($ipaddress<>"::1"){
$tmpSplit = split("\.",$ipaddress);
$output = $tmpSplit[0].".".$tmpSplit[1].".".$tmpSpilt[2].".xxx";
} else {
$output = "127.0.0.xxx";
}
return $output;
}
function showAttachfile($imagename){
if($imagename<>""){
$imagesize = getimagesize("attach/imagename.jpg");
if($imagesize[0]>$imagesize[1]){
if($imagesize[0]>$imagesize[1]){
if ($imagesize[0] > 150) {
$w = 150;
$h = ($imagesize[1]*150)/$imagesize[0];
}else{
$w = $imagesize[0];
$h = $imagesize[1];
}
}else{
if($imagesize[0] > 150) {
$h = 150;
$w = ($imagesize[0]*150)/$imagesize[1];
}else{
$w = $imagesize[0];
$w = ($imagesize[0]*150)/$imagesize[1];
}else{
$w = $imagesize[0];
$h = $imagesize[1];
}
}
$output = "<img src=\"attach/$imagename.jpg\" width=\"$w\" height=\"$h\" />";
} else {
$output = " ";
}
return $output;
}
function showEmo($detail) {
for($i=1;$i<=15;$i++) {
$detail = str_replace("[$1]","<img src=\"emo/$i.gif\" />",$detail);
}
}
}
?>
]","<img src=\"emo/$i.gif\" />",$detail);
}
}
}
?>