I'm writeing this game that you play through the web. I use the bbs web server and its accounting system to control access to the game. I have a game program that runs on a day or so and prossess game orders that the players enter through the web pages.
What I need is a way to drop commands to a text file in a format I can use in the off line program. I would like to controll access to the sections of the website (update the access control file) from the web pages.
Any thoughts?
I would write the whole program in a bbs module but I'm not that good at c++.
Joe
Need a little program.
Moderator: Mod Squad
Need a little program.
++++++++++++++++++++
Retro BBS Games
Telnet://bbs.retrobbsgames.net
++++++++++++++++++++
Retro BBS Games
Telnet://bbs.retrobbsgames.net
++++++++++++++++++++
Re: Need a little program.
you just want the game to create a text file?ccs wrote:I'm writeing this game that you play through the web. I use the bbs web server and its accounting system to control access to the game. I have a game program that runs on a day or so and prossess game orders that the players enter through the web pages.
What I need is a way to drop commands to a text file in a format I can use in the off line program. I would like to controll access to the sections of the website (update the access control file) from the web pages.
Any thoughts?
I would write the whole program in a bbs module but I'm not that good at c++.
Joe
FILE *myfile;
if((myfile=fopen("MYFILE.TXT",FOPAA))!=NULL)
{
fprint(myfile,"entry #1\n");
fprint(myfile,"entry #2\n");
fclose(myfile);
} else shocst("FILE ERROR","MYFILE.TXT CANNOT BE OPENED OR MODIFIED");
works to write variables too.
fprint(myfile,"Name: %s\n",uacoff(usrnum)->userid);
thats just to create/edit simple text files.
to deleted it just use unlink(myfile);
that would delete the file pending itsn ot in use.
hope it helps.
Daniel
Re: Need a little program.
I guss what I'm looking for is a mod to the web server thats built in to wg that will let me do all this. I can use php or perl but I want to use wg and its key and class accounting system.dspain wrote:you just want the game to create a text file?ccs wrote:I'm writeing this game that you play through the web. I use the bbs web server and its accounting system to control access to the game. I have a game program that runs on a day or so and prossess game orders that the players enter through the web pages.
What I need is a way to drop commands to a text file in a format I can use in the off line program. I would like to controll access to the sections of the website (update the access control file) from the web pages.
Any thoughts?
I would write the whole program in a bbs module but I'm not that good at c++.
Joe
FILE *myfile;
if((myfile=fopen("MYFILE.TXT",FOPAA))!=NULL)
{
fprint(myfile,"entry #1\n");
fprint(myfile,"entry #2\n");
fclose(myfile);
} else shocst("FILE ERROR","MYFILE.TXT CANNOT BE OPENED OR MODIFIED");
works to write variables too.
fprint(myfile,"Name: %s\n",uacoff(usrnum)->userid);
thats just to create/edit simple text files.
to deleted it just use unlink(myfile);
that would delete the file pending itsn ot in use.
hope it helps.
Daniel
Joe
++++++++++++++++++++
Retro BBS Games
Telnet://bbs.retrobbsgames.net
++++++++++++++++++++
Retro BBS Games
Telnet://bbs.retrobbsgames.net
++++++++++++++++++++
Re: Need a little program.
ok shoot me a private message that explains more on exactly what it is you're wanting to output to this file and how you want it read back.ccs wrote:I guss what I'm looking for is a mod to the web server thats built in to wg that will let me do all this. I can use php or perl but I want to use wg and its key and class accounting system.dspain wrote:you just want the game to create a text file?ccs wrote:I'm writeing this game that you play through the web. I use the bbs web server and its accounting system to control access to the game. I have a game program that runs on a day or so and prossess game orders that the players enter through the web pages.
What I need is a way to drop commands to a text file in a format I can use in the off line program. I would like to controll access to the sections of the website (update the access control file) from the web pages.
Any thoughts?
I would write the whole program in a bbs module but I'm not that good at c++.
Joe
FILE *myfile;
if((myfile=fopen("MYFILE.TXT",FOPAA))!=NULL)
{
fprint(myfile,"entry #1\n");
fprint(myfile,"entry #2\n");
fclose(myfile);
} else shocst("FILE ERROR","MYFILE.TXT CANNOT BE OPENED OR MODIFIED");
works to write variables too.
fprint(myfile,"Name: %s\n",uacoff(usrnum)->userid);
thats just to create/edit simple text files.
to deleted it just use unlink(myfile);
that would delete the file pending itsn ot in use.
hope it helps.
Daniel
Joe