$s
";
$s = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?type=release';
echo "$s
";
$s = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?plugin=pluginID';
echo "$s
";
echo 'Examples:
';
$handle=opendir("../plugins/details/");
$plugs=array();
$x = 0;
while (($file = readdir($handle)) && ($x < 3 )) {
if ( substr($file, -4) == ".php" ) {
include("../plugins/details/".$file);
$s = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?plugin='.substr($file, 0, -4);
echo "$s
";
array_push($plugs,$file);
$x++;
}
}
closedir($handle);
$s = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?plugin='.substr($plugs[1], 0, -4).','.substr($plugs[2], 0, -4);
echo "$s
";
}
} else {
header('Content-type: text/plain');
clearPluginVars();
$requestPluginsArray = explode(",", $requestedPlugins);
foreach($requestPluginsArray as $plug) {
include("../plugins/details/".$plug.'.php');
echo $plug.'.name='.$name."\n";
echo $plug.'.author='.$author."\n";
echo $plug.'.version='.$version."\n";
if (file_exists("../" . $dl_link)) {
echo $plug.'.dl_link='.$dl_link."\n";
}
if (file_exists("../" . $src_link)) {
echo $plug.'.src_link='.$src_link."\n";
}
echo $plug.'.version_cvs='.$version_cvs."\n";
if (file_exists("../" . $dl_link_cvs)) {
echo $plug.'.dl_link_cvs='.$dl_link_cvs."\n";
}
if (file_exists("../" . $src_link_cvs)) {
echo $plug.'.src_link_cvs='.$src_link_cvs."\n";
}
echo $plug.'.description='.$description."\n";
echo $plug.'.comment='.$comment."\n";
}
}
function right ($str, $howManyCharsFromRight)
{
$strLen = strlen ($str);
return substr ($str, $strLen - $howManyCharsFromRight, $strLen);
}
?>