"; __("Last Login: "); if ($mem->user["lastlogin"]=="0000-00-00 00:00:00") { __("Never"); } else { echo format_date(_('the %3$d-%2$d-%1$d at %4$d:%5$02d'),$mem->user["lastlogin"]); printf(" "._('from: %1$s ')."
",$mem->user["lastip"]); } echo "

"; if ($mem->user["lastfail"]) { printf(_("%1\$d login failed since last login")."
",$mem->user["lastfail"]); } echo $msg->msg_html_all(); if (!empty($error) ) { echo "

$error

";$error=''; } $feed_url = variable_get('rss_feed', '', 'This is an RSS feed that will be displayed on the users homepages when they log in.', array('desc'=>'URL','type'=>'string')); if (!empty($feed_url)) { $cache_time = 60*5; // 5 minutes $cache_file = "/tmp/alterncpanel_cache_main.rss"; $timedif = @(time() - filemtime($cache_file)); if (file_exists($cache_file) && $timedif < $cache_time) { $string = file_get_contents($cache_file); } else { $string = file_get_contents("$feed_url"); file_put_contents($cache_file,$string); } $xml = @simplexml_load_string($string); if ( ! $xml === FALSE ) { echo '
'; echo ""; //echo ''; $count = 0; $max = 5; foreach ($xml->channel->item as $val) { if ($count < $max) { echo "\n'; if (!empty($val->pubDate)) { echo ''; } echo ''; } $count++; } //foreach echo "
".$xml->channel->title."
".$xml->channel->description."
'._("Title").''._("Date").'
pubDate)?'colpan=2':'').'>'.$val->title.''.strftime("%d/%m/%Y" , strtotime($val->pubDate)).'
\n"; echo "
"; } // $xml === FALSE } // empty feed_url if($admin->enabled) { $expiring = $admin->renew_get_expiring_accounts(); if(!empty($expiring) ) { echo "

" . _("Expired or about to expire accounts") . "

\n"; echo "\n"; echo "\n"; if (is_array($expiring)) { foreach($expiring as $account) { echo ""; if($admin->checkcreator($account['uid'])) { echo ""; }else{ echo ""; } echo "\n"; } } echo "
"._("uid").""._("Last name, surname").""._("Expiry")."
{$account['uid']}{$account['nom']}, {$account['prenom']}{$account['nom']}, {$account['prenom']}{$account['expiry']}
\n"; } echo "

"; __("You are using the AlternC Panel. You can contact the AlternC community for information or feedback by joining the mailing-list"); echo " users@alternc.org"; echo "

"; } // if $admin->enabled $blocks=$hooks->invoke("hook_homepageblock"); uasort($blocks, function($a, $b) {return $a->pos<$b->pos ? -1 : 1;}); foreach ($blocks as $v) { if (property_exists($v, "call")) { $func=$v->call; $func(); } if (property_exists($v, "include")) { include $v->include; } } ?>