make use of the new constants of the config file for db connection and base path

This commit is contained in:
Jonathan Ernst
2004-12-23 01:12:03 +00:00
committed by WineHQ
parent d5a6d34be6
commit ca749d32d9
25 changed files with 100 additions and 146 deletions

View File

@@ -13,15 +13,9 @@ require(BASE."include/"."appdb.php");
require(BASE."include/"."rating.php");
require(BASE."include/"."category.php");
global $apidb_root;
function get_screenshot_img($appId, $versionId)
{
global $apidb_root;
if(!$versionId)
$versionId = 0;
@@ -29,7 +23,7 @@ function get_screenshot_img($appId, $versionId)
if(!$result || !mysql_num_rows($result))
{
$imgFile = "<img src='".$apidb_root."images/no_screenshot.gif' alt='No Screenshot'>";
$imgFile = "<img src='".BASE."images/no_screenshot.gif' alt='No Screenshot'>";
}
else
{
@@ -248,4 +242,3 @@ echo p();
apidb_footer();
?>