ultimatepp/uppdev/cvlink/cvlink.cpp
cxl 351994a6cc Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

20 lines
611 B
C++

#include <Core/Core.h>
CONSOLE_APP_MAIN
{
FindFile ff("d:/wwwupp/*.html");
while(ff) {
String url = "http://www.ultimatepp.org/" + ff.GetName();
SaveFile(AppendFileName("d:/wwwlink", ff.GetName()),
"<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\r\n"
"<meta HTTP-EQUIV=\"Refresh\" CONTENT=\"3; URL=" + url + "\">\r\n"
"<title>Redirecting ... </title>\r\n"
"</head>\r\n"
"<body bgcolor=\"#FFFFFF\">\r\n"
"<H4>\r\n"
"<a href=\"" + url + "\">Ultimate++ homepage has moved</p>\r\n"
"</body></html>"
);
ff.Next();
}
}