Add files via upload

This commit is contained in:
wibyweb 2023-08-14 00:39:32 -04:00 committed by GitHub
parent 1b9fe43d19
commit b10640348a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

10
c/rs.c
View file

@ -142,16 +142,12 @@ int main(int argc, char **argv)
if(num_cr > 0){
printf("\nCrawler ID: %d",cr_count);
}else{
printf("\nCrawler ID: (null)");
printf("\nCrawler ID: 1");
}
char sqlqueryinsertindexqueue[2000];
memset(sqlqueryinsertindexqueue,0,2000);
if(num_cr == 0){
strcpy(sqlqueryinsertindexqueue,"INSERT INTO indexqueue (url,worksafe,approver,surprise,updatable,crawl_tree,crawl_family,crawl_pages,crawl_type,crawl_repeat,force_rules,task) VALUES ('");
}else{
strcpy(sqlqueryinsertindexqueue,"INSERT INTO indexqueue (url,worksafe,approver,surprise,updatable,crawl_tree,crawl_family,crawl_pages,crawl_type,crawl_repeat,force_rules,task,crawler_id) VALUES ('");
}
strcpy(sqlqueryinsertindexqueue,"INSERT INTO indexqueue (url,worksafe,approver,surprise,updatable,crawl_tree,crawl_family,crawl_pages,crawl_type,crawl_repeat,force_rules,task,crawler_id) VALUES ('");
strcat(sqlqueryinsertindexqueue,url);strcat(sqlqueryinsertindexqueue,"','");
strcat(sqlqueryinsertindexqueue,worksafe);strcat(sqlqueryinsertindexqueue,"','");
strcat(sqlqueryinsertindexqueue,approver);strcat(sqlqueryinsertindexqueue,"','");
@ -189,6 +185,8 @@ int main(int argc, char **argv)
}
if(num_cr > 0){
strcat(sqlqueryinsertindexqueue,"','");strcat(sqlqueryinsertindexqueue,str_cr_count);
}else{
strcat(sqlqueryinsertindexqueue,"','1");
}
strcat(sqlqueryinsertindexqueue,"');");