All pastes #28730 Raw Edit

itrebal

public c v1 · immutable
#28730 ·published 2005-11-14 23:59 UTC
rendered paste body
#include <stdio.h>char* create(char* email, char* docroot, char* domain){  char* out;  char* def;  /*def = "<VirtualHost *:80>\n  ServerAdmin ";  out = email + "\n  DocumentRoot /home/shrinks/public_html\n  ServerName shrinksoffice.org\n  ServerAlias www.shrinksoffice.org\n  ErrorLog /home/shrinks/logs/error.log\n  CustomLog /home/shrinks/logs/access.log common\n</VirtualHost>";*/  return email;}    int main(){  char* email;  char* docroot;  char* domain;  char* out;  printf("Welcome to the Itrebal Creations Virtual Host Automater.\n");  printf("Please enter the email of the administrator: ");  scanf("%s", &email);  printf("Now enter the document root of the website. (DON'T INCLUDE THE WEB-DIRECTORY):");  scanf("%s", &docroot);  printf("Now enter the domain name. (Do not add the www, this will be automaticly added.");  scanf("%s", &domain);  out = create(email, docroot, domain);  printf("%s", out);  return 0;}