This is a tutorial, not a program.
Step 1 First, create a file for your website, and name it "admin.html".
Step 2 Now on it, say, "You must log in to view admin, blah,blah,blah. Click here to launch our client."
Step 3 Link "Click here" with the C++ .exe file we will create later.
Step 4 Now, create a new file with a bunch of random letters, then ".html". Make the file name AT LEAST 100 characters long. All your admin stuff will go here.
Step 5 Now Start a C++ program, and type the following:
#include <iostream>
#include <windows.h>
using namespace std;
int main(void){
start:
cout << "Welcome to EnergeticLeadershipParenting admin login" << endl;
cout << "Login using your administrator password:" << endl;
string login;
getline (cin, login);
if (login == "yourPassword"){
ShellExecute(NULL, "open", "http://www.yourdomain.com/hundredCharacterFile.html",
NULL, NULL, SW_SHOWNORMAL);
return 0;
}
else { cout << "Login failed" << endl; goto start;}
cin.get();
return 0;
}
That's it! Sorry it is so brief, I have a lot of homework to do.
Any questions?
~arithehun