int GenerateUpgradeAsp(webs_t wp)
{
FILE *fp;
unsigned long ulReadSize;
int fdFW = -1,checklen=0;
char pBuf[64]={0},pChecksum[128]={0};
unsigned short int crcsum;
{
FILE *fp;
unsigned long ulReadSize;
int fdFW = -1,checklen=0;
char pBuf[64]={0},pChecksum[128]={0};
unsigned short int crcsum;
fp=fopen("/tmp/webs/man_upgrade.asp","w+");
if(!fp)
{
//formErrMsg(wp,"This man_upgrade.asp error!.");
return EZL_TF_FAIL;
}
checklen = AscStrToHexStr(pChecksum,FirmFlag,16);
pChecksum[checklen] = '\0';
float totalSize = (float)FileSize(EZL_CPFW_NAME)/(1024*1024);
fputs("\n",fp'>\">\n",fp);
fputs("\n",fp);
fputs("\n",fp);
fputs( "\n",fp);
fputs("\n",fp);
fputs("\n",fp);
if(!fp)
{
//formErrMsg(wp,"This man_upgrade.asp error!.");
return EZL_TF_FAIL;
}
checklen = AscStrToHexStr(pChecksum,FirmFlag,16);
pChecksum[checklen] = '\0';
float totalSize = (float)FileSize(EZL_CPFW_NAME)/(1024*1024);
fputs("\n",fp'>\">\n",fp);
fputs("\n",fp);
fputs("\n",fp);
fputs( "\n",fp);
fputs("\n",fp);
fputs("\n",fp);
fputs("\n",fp);
fputs("sysmanage configuration \n",fp);
fputs("\n",fp);
fputs("\n",fp);
fputs("\n",fp);
fputs("
fputs("\n",fp);
fputs("\n",fp);
fputs("
fputs("\n",fp);
fputs("\n",fp);
fputs("\n",fp);
fputs("
\n",fp);
fputs("
fputs("
\n",fp);fputs("
\n",fp);
fputs(" \n",fp);
\n",fp);
fputs("
\n",fp);
fputs(" The flash image was uploaded.\n",fp);
fputs(" Below is the checksum and file size listed,\n",fp);
fputs(" compare them with the original file to ensure data integrity.\n",fp);
fputs(" Click \"Proceed\" below to start the flash procedure. \n",fp);
fputs("
\n",fp);
\n",fp);
fputs(" Flash Firmware - Verify\n",fp);
fputs("
\n",fp);fputs("
\n",fp);
fputs(" The flash image was uploaded.\n",fp);
fputs(" Below is the checksum and file size listed,\n",fp);
fputs(" compare them with the original file to ensure data integrity.\n",fp);
fputs(" Click \"Proceed\" below to start the flash procedure. \n",fp);
fputs("
\n",fp);
fputs(" \n",fp);
fputs("\n",fp);
fputs("
\n",fp);fputs("\n",fp);
fputs("
fputs("
fputs("\n",fp);
fputs("\n",fp);
fclose(fp);
return EZL_TF_OK;
}
}