Welcome

Username:

Password:


Remember me

[ Signup ]
[ Forgot password? ]


db_Select("event", "*", "(event_start>='$monthstart' AND event_start<= '$monthend') OR (event_rec_y='$current_month')"); $events = $sql -> db_Rows(); while($row = $sql -> db_Fetch()){ extract($row); $evf = getdate($event_start); $tmp = $evf['mday']; $event_true[$tmp] = $event_category; } // ----------------------------------------------------------------------------------------------------------- // set up arrays for calender display ------------------------------------------------------------------ $week = Array(EC_LAN_25,EC_LAN_19,EC_LAN_20,EC_LAN_21,EC_LAN_22,EC_LAN_23,EC_LAN_24); $months = Array(EC_LAN_0,EC_LAN_1,EC_LAN_2,EC_LAN_3,EC_LAN_4,EC_LAN_5,EC_LAN_6,EC_LAN_7,EC_LAN_8,EC_LAN_9,EC_LAN_10,EC_LAN_11); $calendar_title = $months[$datearray[mon]-1]." ".$current_year; // ----------------------------------------------------------------------------------------------------------- $text = "
"; if($events){ $text .= EC_LAN_26 . ": ".$events; }else{ $text .= EC_LAN_27; } $start = $monthstart; $text .= "

"; foreach($week as $day){ $text .= ""; } $text .= ""; $thismonth = $datearray['mon']; $thisday = $datearray['mday']; for($c=0; $c<$firstdayarray['wday']; $c++){ $text .= ""; } $loop = $firstdayarray['wday']; for($c=1; $c<=31; $c++){ $dayarray = getdate($start+($c*84460)); if($dayarray['mon'] == $thismonth){ if($thisday == $c){ $text .= "\n"; $loop++; if($loop == 7){ $loop = 0; $text .= ""; } } } for($a=($loop+1); $a<=7; $a++){ $text .=""; } $text .= "
".$day."

"; }else{ $text .=""; } if($event_true[($c)]){ $sql -> db_Select("event_cat", "*", "event_cat_id='".$event_true[($c)]."' "); $icon = $sql -> db_Fetch(); extract($icon); $img = ""; }else{ $img = ""; } $linkut = mktime(0 ,0 ,0 ,$dayarray['mon'], $c, $datearray['year']); $text .="$img
$c
"; if($thisday == $c){ } $text .= "
 
"; $ns -> tablerender($calendar_title, $text); ?>
DHL News
Our headlines can be syndicated by using either our rss or text feeds.
news.xml - news.txt


db_Select("download_category", "*", "download_category_parent='0' ")){ $ns -> gen_tablerend(LAN_dl_18, "
".LAN_dl_2."
"); ?>
"; $sql2 = new db; $sql3 = new db; while($row = $sql-> db_Fetch()){ extract($row); if(($download_category_class && check_class($download_category_class)) || !$download_category_class || ($download_category_class == 254 && USER) ){ $text .= ""; $parent_status == "open"; }else{ $parent_status == "closed"; } $categories = $sql2 -> db_Select("download_category", "*", "download_category_parent='".$download_category_id."' "); if(!$categories){ $text .= ""; }else{ while($row = $sql2-> db_Fetch()){ extract($row); $total_filesize=0; $total_downloadcount=0; if($filecount = $sql3 -> db_Select("download", "*", "download_category='$download_category_id'")){ while($row = $sql3 -> db_Fetch()){ extract($row); $total_filesize += $download_filesize; $total_downloadcount += $download_requested; } $total_filesize = parsesize($total_filesize); } $new = (USER && $sql3 -> db_Count("download", "(*)", "WHERE download_category='$download_category_id' AND download_datestamp>".USERLV) ? "" : ""); if(!$download_category_class || ($download_category_class && check_class($download_category_class))){ $text .= ""; } } } } $text .= "
  ".LAN_dl_19." ".LAN_dl_20." ".LAN_dl_21." ".LAN_dl_18."
". ($download_category_icon ? "" : " ")." ".$download_category_name."
".LAN_dl_3."
". ($download_category_icon ? "" : " ")." $new ".($filecount ? "".$download_category_name."" : $download_category_name)."
".$download_category_description ."
".$filecount." ".$total_filesize." ".$total_downloadcount."

".LAN_dl_36." "; $ns -> gen_tablerend(LAN_dl_18.$type, $text); ?>
db_Select("download", "*", "download_category='$id' AND download_active='1'"); if(!$total_downloads){ require_once(FOOTERF); exit; } $sql -> db_Select("download_category", "*", "download_category_id='$id'"); $row = $sql -> db_Fetch(); extract($row); $core_total = $sql -> db_Count("download WHERE download_category='$id' AND download_active=1"); $type = $download_category_name." [ ".$download_category_description." ]"; $text = "
"; $gen = new convert; require_once(e_HANDLER."rate_class.php"); $rater = new rater; $sql2 = new db; $filetotal = $sql -> db_Select("download", "*", "download_category='$id' AND download_active='1' ORDER BY $order $sort LIMIT $from, $view"); $ft = ($filetotal < $view ? $filetotal : $view); while($row = $sql -> db_Fetch()){ extract($row); $new = (USER && $download_datestamp>USERLV ? "" : ""); $datestamp = $gen->convert_date($download_datestamp, "short"); $download_filesize = parsesize($download_filesize); $ratearray = $rater -> getrating("download", $download_id); if(!$ratearray[0]){ $rating = LAN_dl_13; }else{ $rating = ($ratearray[2] ? $ratearray[1].".".$ratearray[2]."/".$ratearray[0] : $ratearray[1]."/".$ratearray[0]); } $text .= ""; $tdownloads += $download_requested; } $text .= "
".LAN_dl_37."   ".LAN_dl_38."   ".LAN_dl_39."  
".LAN_dl_28." ".LAN_dl_22." ".LAN_dl_24." ".LAN_dl_21." ".LAN_dl_29." ".LAN_dl_12." ".LAN_dl_8."
$new $download_name $datestamp $download_author $download_filesize $download_requested $rating

$tdownloads ".LAN_dl_16." $ft ".LAN_dl_17."
"; $ns -> gen_tablerend($type, $text); echo ""; require_once(e_HANDLER."np_class.php"); $ix = new nextprev("download.php", $from, $view, $total_downloads, "Downloads", "list.".$id.".".$view.".".$order.".".$sort); ?>
db_Select("download", "*", "download_id='$id'")){ ?> db_Fetch(); extract($row); $sql2 -> db_Select("download_category", "*", "download_category_id='$download_category'"); $row = $sql2 -> db_Fetch(); extract($row); $type = $download_category_name." [ ".$download_category_description." ]"; $text = "
"; if($download_author_email){ $text .= ""; } if($download_author_website){ $text .= ""; } $text .= ""; if($download_thumb){ $text .= ""; }else if($download_image){ $text .= ""; } $text .= ""; $dl_id = $download_id; if($sql -> db_Select("download", "*", "download_category='$download_category_id' AND download_id<$dl_id ORDER BY download_datestamp DESC")){ $row = $sql -> db_Fetch(); extract($row); $prev = ""; }else{ $prev = " "; } if($sql -> db_Select("download", "*", "download_category='$download_category_id' AND download_id>$dl_id ORDER BY download_datestamp ASC")){ $row = $sql -> db_Fetch(); extract($row); $next = ""; }else{ $next = " "; } if($prev || $next){ $text .= ""; } $text .= "
$download_name
".LAN_dl_24.": $download_author
".LAN_dl_30.": ".str_replace("@", ".at.", $download_author_email)."
".LAN_dl_31.": $download_author_website
".LAN_dl_7.": ".$aj -> tpa($download_description)."
Image: ". ($download_image ? "" : "")."
".LAN_dl_11.": ".LAN_dl_40."
".LAN_dl_10.": ".parsesize($download_filesize)."
".LAN_dl_18.": $download_requested
".LAN_dl_32.":
".LAN_dl_12.":
"; if($ratearray = $rater -> getrating("download", $download_id)){ for($c=1; $c<= $ratearray[1]; $c++){ $text .= ""; } if($ratearray[2]){ $text .= ""; } if($ratearray[2] == ""){ $ratearray[2] = 0; } $text .= " ".$ratearray[1].".".$ratearray[2]." - ".$ratearray[0]." "; $text .= ($ratearray[0] == 1 ? "vote" : "votes"); }else{ $text .= LAN_dl_13; } $text .= ""; if(!$rater -> checkrated("download", $download_id) && USER){ $text .= $rater -> rateselect("     ".LAN_dl_14, "download", $download_id).""; }else if(!USER){ $text .= " "; }else{ $text .= LAN_dl_15; } $text .= "
$prev $next
"; $ns -> gen_tablerend($type, $text); ?> gen_tablerend(LAN_dl_18, LAN_dl_2); //require_once(FOOTERF); function parsesize($size){ $kb = 1024; $mb = 1024 * $kb; $gb = 1024 * $mb; $tb = 1024 * $gb; if($size < $kb) { return $size." b"; }else if($size < $mb) { return round($size/$kb,2)." kb"; }else if($size < $gb) { return round($size/$mb,2)." mb"; }else if($size < $tb) { return round($size/$gb,2)." gb"; }else { return round($size/$tb,2)." tb"; } } ?>