| [ Index ] |
PHP Cross Reference of Nuke-Evolution v2.0.5 |
[Summary view] [Print] [Text view]
1 <?php 2 /*======================================================================= 3 Nuke-Evolution Basic: Enhanced PHP-Nuke Web Portal System 4 =======================================================================*/ 5 6 /************************************************************************/ 7 /* PHP-NUKE: Web Portal System */ 8 /* =========================== */ 9 /* */ 10 /* Copyright (c) 2002 by Francisco Burzi */ 11 /* http://phpnuke.org */ 12 /* */ 13 /* This program is free software. You can redistribute it and/or modify */ 14 /* it under the terms of the GNU General Public License as published by */ 15 /* the Free Software Foundation; either version 2 of the License. */ 16 /************************************************************************/ 17 18 /*****[CHANGES]********************************************************** 19 -=[Base]=- 20 Nuke Patched v3.1.0 06/26/2005 21 ************************************************************************/ 22 23 if(!defined('NUKE_EVO')) exit; 24 25 include_once(NUKE_MODULES_DIR .'Evo_UserBlock/addons/core.php'); 26 global $lang_evo_userblock; 27 28 function evouserinfo_block_getactive () { 29 global $prefix, $db, $lang_evo_userblock, $cache; 30 if(isset($active) && is_array($active)) return $active; 31 32 if ((($active = $cache->load('active', 'evouserinfo')) === false) || !isset($active)) { 33 $sql = 'SELECT * FROM '.$prefix.'_evo_userinfo WHERE active=1 ORDER BY position ASC'; 34 $result = $db->sql_query($sql); 35 while($row = $db->sql_fetchrow($result)) { 36 $active[] = $row; 37 } 38 $db->sql_freeresult($result); 39 $cache->save('active', 'evouserinfo', $active); 40 } 41 return $active; 42 } 43 44 function evouserinfo_block_display () { 45 define('EVO_BLOCK', true); 46 global $lang_evo_userblock; 47 $active = evouserinfo_block_getactive(); 48 $content = ""; 49 $blank = 0; 50 foreach ($active as $element) { 51 if($element['filename'] != 'Break') { 52 if(file_exists(NUKE_MODULES_DIR .'Evo_UserBlock/addons/'.$element['filename'].'.php')) { 53 include_once(NUKE_MODULES_DIR .'Evo_UserBlock/addons/'.$element['filename'].'.php'); 54 $output = 'evouserinfo_'.$element['filename']; 55 $content .= $$output; 56 if(isset($$output) && !empty($$output)) { 57 $blank = 1; 58 } 59 } 60 } else { 61 if($blank) { 62 $content .= "<hr />"; 63 } 64 $blank = 0; 65 } 66 } 67 return $content; 68 } 69 70 $content = evouserinfo_block_display(); 71 72 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jun 6 11:38:01 2007 | Cross-referenced by PHPXref 0.7 |