[ Index ] |
|
Code source de e107 0.7.8 |
1 if (ADMIN) { 2 if (!function_exists('admin_latest')) { 3 function admin_latest() { 4 global $sql, $ns, $pref; 5 6 $active_uploads = $sql -> db_Count("upload", "(*)", "WHERE upload_active = '0' "); 7 $submitted_news = $sql -> db_Count("submitnews", "(*)", "WHERE submitnews_auth = '0' "); 8 9 $text = "<div style='padding-bottom: 2px;'>".E_16_NEWS.($submitted_news ? " <a href='".e_ADMIN."newspost.php?sn'>".ADLAN_LAT_2.": $submitted_news</a>" : " ".ADLAN_LAT_2.": 0")."</div>"; 10 $text .= "<div style='padding-bottom: 2px;'>".E_16_UPLOADS.($active_uploads ? " <a href='".e_ADMIN."upload.php'>".ADLAN_LAT_7.": $active_uploads</a>" : " ".ADLAN_LAT_7.": ".$active_uploads)."</div>"; 11 12 foreach($pref['e_latest_list'] as $val) 13 { 14 if (is_readable(e_PLUGIN.$val."/e_latest.php")) 15 { 16 include_once(e_PLUGIN.$val."/e_latest.php"); 17 } 18 } 19 20 $messageTypes = array("Broken Download", "Dev Team Message"); 21 $queryString = ""; 22 foreach($messageTypes as $types) { 23 $queryString .= " gen_type='$types' OR"; 24 } 25 $queryString = substr($queryString, 0, -3); 26 27 if($amount = $sql -> db_Select("generic", "*", $queryString)) { 28 $text .= "<br /><b><a href='".e_ADMIN."message.php'>".ADLAN_LAT_8." [".$amount."]</a></b>"; 29 } 30 31 return $ns -> tablerender(ADLAN_LAT_1, $text, '', TRUE); 32 } 33 } 34 35 if ($parm == 'request') { 36 if (function_exists('latest_request')) { 37 if (latest_request()) { 38 return admin_latest(); 39 } 40 } 41 } else { 42 return admin_latest(); 43 } 44 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |