$_G['username'], 'bbname' => daddslashes($_G['setting']['bbname']))); $visitstr = $regstr = ''; foreach($_G['setting']['extcredits'] as $key => $credit) { $creditkey = 'extcredits'.$key; if($visit[$creditkey]) { $visitstr .= $credit['title'].($visit[$creditkey] > 0 ? '+'.$visit[$creditkey] : $visit[$creditkey])." "; } if($register[$creditkey]) { $regstr .= $credit['title'].($register[$creditkey] > 0 ? '+'.$register[$creditkey] : $register[$creditkey])." "; } } include_once template("home/spacecp_promotion"); ?>