';
if ($user = verify_active_user("populate")) {
//if (!$user->membership){$user->membership="Basic membership";$user->renewal_date="N/A";}
//check to see if the user is a developer
//if so, give options to enter the developer portal
if ($user->developer && $user->DeveloperID>0){
//add link to developer portal
}
$content = "
[Contributing Software Developers]
$content";
//if there is a specific developer selected, display it
//show expanded details like contact information here
if (isset($action) && is_numeric($action)){
$developer = new Developer($dbi, $action, false);
//$developer->display_developer();
$cumulative_ratings = "";
$cumulative_downloads = "";
if ($developer->PackageIDs){
$id_array = explode("::", $developer->PackageIDs);
$package_html = "";
foreach ($id_array as $this_id){
if ($this_id > 0){
$tmp_pkg = new Pkg($dbi, $this_id, false);
$time_key = "4".$unix_time."3";
$package_html .= '
';
}
}
}
else{
$package_html = "
This vendor does not currently have any active packages!";
}
$package_html = '
'.$package_html.'
';
$developer_website = trim(str_replace(array("http://", "https://"),"",$developer->Website));
$content .= '
Software Developer Company Details:
'.$developer->DeveloperName.'
joined '.$developer->SignupDate.'
'.$developer->CompanySummary.'
Free Software Packages:
'.$package_html.'
Other Products:
';
}
//otherwise, display all in summary format
else {
$query = "SELECT * FROM `developers` where `Active` = 1";
$result = $dbi->query($query);
while ($obj = $result->fetch_object()){
$developer = new Developer($dbi, $obj->DeveloperID, false);
//$developer->display_developer();
$cumulative_ratings = "";
$cumulative_downloads = "";
if ($developer->PackageIDs){
$id_array = explode("::", $developer->PackageIDs);
$package_html = "";
foreach ($id_array as $this_id){
if ($this_id > 0){
$tmp_pkg = new Pkg($dbi, $this_id, false);
$time_key = "4".$unix_time."3";
$package_html .= '
';
}
}
}
else{
$package_html = "
This vendor does not currently have any active packages!";
}
$package_html = '
'.$package_html.'
';
$developer_website = trim(str_replace(array("http://", "https://"),"",$developer->Website));
$content .= '
Software Developer Company Details:
'.$developer->DeveloperName.'
joined '.$developer->SignupDate.'
'.$developer->CompanySummary.'
Free Software Packages:
'.$package_html.'
Other Products:
';
}
}
}
//otherwise clear session and show login form
else {
$content .= $body_login_form;
}
$content .= "
";
//remove an extra div if it got created
$content = str_replace('