summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-08-29 20:58:39 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-08-29 20:58:39 +0800
commitd20d9f5fed3e364d109c226803cb751120a758ef (patch)
tree6ad9e1da973f78343bfff41f6cd51f8ae1cf6376 /util
parent7b0304c98bf9fac17eaf017c10fa07567758b525 (diff)
downloadpttbbs-d20d9f5fed3e364d109c226803cb751120a758ef.tar
pttbbs-d20d9f5fed3e364d109c226803cb751120a758ef.tar.gz
pttbbs-d20d9f5fed3e364d109c226803cb751120a758ef.tar.bz2
pttbbs-d20d9f5fed3e364d109c226803cb751120a758ef.tar.lz
pttbbs-d20d9f5fed3e364d109c226803cb751120a758ef.tar.xz
pttbbs-d20d9f5fed3e364d109c226803cb751120a758ef.tar.zst
pttbbs-d20d9f5fed3e364d109c226803cb751120a758ef.zip
Chess country files adding.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2174 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/chesscountry.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/util/chesscountry.c b/util/chesscountry.c
index c34d549f..453636ee 100644
--- a/util/chesscountry.c
+++ b/util/chesscountry.c
@@ -74,12 +74,13 @@ main(void)
}
bid = getbnum(brd.brdname);
- sprintf(file1, "etc/%s", brd.brdname);
+ setapath(str, brd.brdname);
+ sprintf(file1, "%s/chess_list", str);
if (stat(file1, &st) == 0 && st.st_mtime > (dtime - UPDATE_FREQUENCY * 60))
continue;
- sprintf(file2, "etc/%s.tmp", brd.brdname);
+ sprintf(file2, "%s/chess_list.tmp", str);
if ((ftmp = fopen(file2, "w")) == NULL)
continue;
@@ -131,7 +132,7 @@ main(void)
fprintf(ftmp, "#%s", str);
setapath(str, brd.brdname);
- sprintf(buf, "%s/photo/.DIR", str);
+ sprintf(buf, "%s/chess_photo/.DIR", str);
num = get_num_records(buf, sizeof(fileheader_t));
for (i = 1; i <= num; i++)
{
@@ -145,7 +146,7 @@ main(void)
//sprintf(buf, "home/%c/%s/photo_cchess", userid[0], userid);
if ((fp1 = fopen(buf, "w")))
{
- sprintf(buf, "%s/photo/%s", str, item.filename);
+ sprintf(buf, "%s/chess_photo/%s", str, item.filename);
f_suck6(fp1, buf);
fprintf(fp1, "%d\n", bid);
if (strcmp("ĞR¸¸", name))