download Fonts and Languages from Tuxfamily

This commit is contained in:
Christopher Roy Bratusek 2011-10-17 20:56:21 +02:00
parent 12d0419afd
commit 4a8e493eb7
3 changed files with 8 additions and 8 deletions

View File

@ -86,7 +86,7 @@ void fontDownload(string fontname)
char buffer[100];
msgTxt.SetText(fontname.c_str());
sprintf(buffer, "http://hbf.hamachi-mp.bplaced.net/Fonts/%s", fontname.c_str());
sprintf(buffer, "http://download.tuxfamily.org/hbf/Fonts/%s", fontname.c_str());
struct block file = downloadfile(buffer);
if (file.data && file.size > 0 && folder_exists())
{
@ -126,7 +126,7 @@ string FontList()
bool stop = false;
char buffer[100];
sprintf(buffer, "http://hbf.hamachi-mp.bplaced.net/Fonts/");
sprintf(buffer, "http://download.tuxfamily.org/hbf/Fonts/");
struct block file = downloadfile(buffer);
if (file.data != NULL)
@ -373,4 +373,4 @@ string checkFontsPrompt()
ResumeGui();
return downloadfont;
}
}

View File

@ -86,7 +86,7 @@ void languageDownload(string languagename)
char buffer[100];
msgTxt.SetText(languagename.c_str());
sprintf(buffer, "http://hbf.hamachi-mp.bplaced.net/Languages/%s", languagename.c_str());
sprintf(buffer, "http://download.tuxfamily.org/hbf/Languages/%s", languagename.c_str());
struct block file = downloadfile(buffer);
if (file.data && file.size > 0 && folder_exists())
{
@ -126,7 +126,7 @@ string LanguageList()
bool stop = false;
char buffer[100];
sprintf(buffer, "http://hbf.hamachi-mp.bplaced.net/Languages/");
sprintf(buffer, "http://download.tuxfamily.org/hbf/Languages/");
struct block file = downloadfile(buffer);
if (file.data != NULL)
@ -374,4 +374,4 @@ string checkLanguagesPrompt()
ResumeGui();
return downloadlanguage;
}
}

View File

@ -85,7 +85,7 @@ void themeDownload(string themename)
char buffer[100];
// download counter
sprintf(buffer, "http://hbf.hamachi-mp.bplaced.net/Themes/counter.php?theme=%s", themename.c_str());
\\sprintf(buffer, "http://hbf.hamachi-mp.bplaced.net/Themes/counter.php?theme=%s", themename.c_str());
struct block file = downloadfile(buffer);
sprintf(buffer, "http://hbf.hamachi-mp.bplaced.net/Themes/index.php?path=Themes/%s", themename.c_str());
@ -401,4 +401,4 @@ string checkThemesPrompt()
ResumeGui();
return downloadtheme;
}
}