Вы находитесь на странице: 1из 257

Table of Contents

Table of Contents...................................................................................................1 Introduction........................................................................................................... 4 What is a SUBdomain.............................................................................................4 SUBDOMAIN REGISTRATION...................................................................................4 TIPS FOR CHOOSING A SUBDOMAIN NAME............................................................4 THE RIGHT SUBDOMAIN NAME...............................................................................4 TIPS........................................................................................................................ 4 PROJECT Planning ................................................................................................. 4 Project Development Approach and Justification................................................4 Justification:........................................................................................................ 5 Project Plan.........................................................................................................5 SYSTEM REQUIREMENT STUDY..............................................................................5 User Characteristics............................................................................................5 HARDWARE AND SOFTWARE REQUIREMENT......................................................5 Hardware requirements:.....................................................................................5 Software requirements: .....................................................................................5 Getting Started...................................................................................................... 5 STEP BY STEP SUBDOMAIN Registration ...............................................................6 Step 1:................................................................................................................ 6 Steps 2:.............................................................................................................. 6 Step 3:................................................................................................................ 9 Step 4:.............................................................................................................. 10 Step 5: ............................................................................................................. 11 Step 6:.............................................................................................................. 12 Functions of Control Panel...................................................................................13 Uploading files..................................................................................................... 13 Creating files........................................................................................................16

Creating folders................................................................................................... 17 Viewing Files and Folders.....................................................................................19 Creating a Subdomain.........................................................................................19 Mail...................................................................................................................... 21 Access and Error Log...........................................................................................21 Folder Directory...................................................................................................21 Testing Plan and Test Results Evidence...............................................................22 Test for email delivery......................................................................................22 Test Result........................................................................................................23 Test to create a database.................................................................................23 Test Result........................................................................................................23 Test to create an FTP Account..........................................................................24 Test Result........................................................................................................24 Testing for Cron Job functionality......................................................................25 Test Result........................................................................................................26 Results from MySQL Database.............................................................................26 Test Log and Test Plan Results............................................................................31 Diagrams............................................................................................................. 32 Flowchart ......................................................................................................... 32 Sequence Diagram for Login............................................................................33 State Diagram for Creating Account/ Registration............................................34 Use Case Diagram ...........................................................................................35 State Diagram for Registration.........................................................................35 State Diagram for User Login...........................................................................36 Activity Diagram for User Login........................................................................36 Pseudo Code........................................................................................................ 36 Program Codes.................................................................................................... 41 README............................................................................................................. 255

About Linux Slackware v13.1.............................................................................255 Linux Slackware v13.1...................................................................................255 System Requirements.....................................................................................255 Recommendations:.........................................................................................255 Installation for Linux Slackware v13.1............................................................255 Important:.......................................................................................................256 CONCLUSION..................................................................................................... 256 References.........................................................................................................256

INTRODUCTION
The program runs on Linux Slackware v13.1 and its works with php and mysql. The coding of this program was written with PHP codes and the database attached to it is MySQL database.

WHAT IS A SUBDOMAIN
Simply, i would say a subdomain is an easy way to create a memorable Web address for unique content areas of a site.

SUBDOMAIN REGISTRATION
When a subdomain is been created or registered then Norfolk and Goode (nfg), we send an email of confirmation to your new created email account which you would use to enable you to activate your account. After your activation you can now begin with the process of creating sub-domains, uploading files, creating files and folders and lots more which can be accessed from the control panel of your 'Home Page'. On completion of your activation, your contact information will remain associated with your sub-domain and database in 'nfg' will not be made available to the public without your consent.

TIPS FOR CHOOSING A SUBDOMAIN NAME


A memorable name Easy to prononuce Easy to spell Make is very short

THE RIGHT SUBDOMAIN NAME


In building a website you should choose the right name that goes with what your website is all about not a name that contradicts what your website is all about.

TIPS
Register a subdomain name that users can easily remember. Keep in mind the fact that not everyone who will visit your site is going bookmark it, so you have to put other users in mind when setting up a sub-domain name.

PROJECT PLANNING
Project Development Approach and Justification
Most of the requirements of the project are fixed and already thought of very less functionality updation is expected in future.

Justification:
As this project is a subdomain website the requirements are very clear as there are lots of other webistes that can be used as references so by looking that our requirements and functionalities that are to be implemented are clear.

Project Plan
This project was well planned and began with gathering user requirements, than diagrammatic representation of the functionalities was designed. Required Database was designed and normalized as required. Code was written in such a way that maximum functionality was coded with minimum possible lines of code though might be maximum depends on the way you look at it.

SYSTEM REQUIREMENT STUDY


User Characteristics
Norfolk and Goode system would be used by two users as follows: Admin User: This type of user will be responsible to manage the entire site and also content that will be published in site. This type of user(s) will be well familiarized with the site; special training can be given for doing this if required. Registered User: This type of user will be able to visit our site and navigate to different pages to get information they will not be able to change any content on website.

HARDWARE AND SOFTWARE REQUIREMENT


Minimum software and hardware requirements to run our system are as follows.

Hardware requirements:
The system should have these hardware requirements: The system processor should be at least Pentium 3 or above The system processor speed should be greater than 400 MHz RAM should be or greater than 120MB

Software requirements:
Linux Operating System Linux Slackware v13.1 fully installed MySQL Server as Database Management System (DBMS) for managing database

GETTING STARTED
Its user friendly and one can get used to it easily by accessing the home page as a new user all you need do is to create a new account and subdomain, for new users you cannot register without creating a subdomain because its all in one form and has to be validated together.

After you have registered, an email would be sent to you so you can confirm your account and get ready to start using it. Existing users would need to just login to access their account.

STEP BY STEP SUBDOMAIN REGISTRATION


To get started with the registration process below are the processes which you need to follow. The following are the important steps you need to take in order to enjoy our services.

Step 1:
Open a browser in your linux slackware e.g konqueror in the url you type http://localhost/ (if is gives you lists of projects or folders then you select norfolk) or you can type in the url http://localhost/norfolk (questions arising) why do we use localhost? Localhost is used because Im using a localhost server with that then the program is never going to run.

Pointing to the url where you need to type http://localhost / to take you here

Image 1: Shows the output when you enter http://localhost/ into your url

Steps 2:
Now you click on the folder Norfolk and Norfolk happens to be the Norfolk where all the files associated with this assignment is saved in.

Norfolk has been clicked and it takes you to the home page

Norfolk has been clicked and it takes you to the home page

Norfolk has been clicked and it takes you to the home page

Norfolk has been clicked and it takes you to the home page

Image 2-5: Shows the output when you have clicked on the norfolk folder

Step 3:
Follow the instructions and get a subdomain and register an account

Image 6: Registration page

Step 4:
New account and subdomain is created

Account and subdomain are created

Confirmation email is sent

Account status

Account details

Domain name

Image 7&8: Confirmation of new account

Step 5:
Go to your inbox and click on the email so that your account would be activated

Click on the email to activate your account

Click on the email to get account activated

Image 9&10: Inbox and activation email

Step 6:
Immediately you click on the email, automatically you are signed off then you need to sign in again to be able to access your account and get it activated.

Account status is now active and user can get to see the control which is also functionality of this system

Image 11&12: Login and account activation

FUNCTIONS OF CONTROL PANEL


After successfully logging in and the new account is activated the user is going to see the control panel and get started with their account. From the control panel everything the user needs is all there. I would demonstrate some functionalities of this system here. Starting from the MANAGE SITE. From the manage site we can UPLOAD, DELETE and CREATE files and folders. Those are the main functionalities and my demonstrations would be on that.

UPLOADING FILES
After clicking on Manage Site the below image show how it looks like

Click on view subdomain

Image 1-6: Shows the output of successfully uploading a file

CREATING FILES
To create file you click on create file then you name the file and click on create. The following screenshots would show how files are created successfully.

Image 1-3: Shows the output of successfully creating a file

CREATING FOLDERS
To create folders you click on create folder then you name the folder and click on create. The following screenshots would show how folders are created successfully.

Image 1-3: Shows the output of successfully creating a folder

VIEWING FILES AND FOLDERS


To view the uploaded, created files and folders. Go to manage site then click on the subdomain name. The below image shows items in a subdomain.

Image 1: Shows the files and folders in a subdomain

CREATING A SUBDOMAIN
To create a subdomain into a subdomain this is very simple just click on subdomain in the control panel.

Image 1-3: Shows the new subdomain created into the existing one

The new subdomain does not need any activation, because it relies on the parent one to exist and since the parent one is already activated and existing automatically the child subdomain needs no other activation. It can be used right away.

MAIL
There are 2 types of email system namely: Internal External Internal email is the one that works with this system whereby you can send an email from one account to another account. External email does not work with this system because it would rely on an smtp (Simple Mail Transfer Protocol) there must be an smtp present for the external email to work. This application is well configured to work internally; emails can be sent and received as lond as you are an active user on this system.

ACCESS AND ERROR LOG


Access and error log helps in effectively managing a web server. For a good design, it's necessary to get feedback about the activity and performance of the server as well as problems that might occur. The Apache HTTP Server provides flexible and more comprehensive logging capabilities. This file helps to understand what the logs contain and how to configure its logging capabilities.

FOLDER DIRECTORY
When a new suddomain is created automatically a folder is created for it and this folder can be found in the www folder of this Norfolk application. In the Norfolk folder you would see another 4 folders inside it, then you locate a folder called www in the folder there you would get to see all other subdomain folders for subdomain that have being successfully activated.

TESTING PLAN AND TEST RESULTS EVIDENCE


Test for email delivery
To test if emails sent to another user is received

The below shows confirmation that the email has been sent

Test Result
To check if the email sent was received by another user, this can be viewed on the database of logging into the user which the email was sent to and view the inbox if the email has delivered or not.

Here we can see that the Test Result is successful, looking at the inbox we can see that the message is delivered and awaiting to be read by the user of the account.

Test to create a database


To successfully create a database for a subdomain

Test Result
The below is the evidence of the test result for creating a database successfully. To create a database for your domain, from control panel you click on MySql and fill in the space required here is result for a database created.

Test to create an FTP Account


In order to publish flies on the web you to upload them to our server and this can be achieved via FTP. An FTP account has to be created on your subdomain account.

Test Result
The evidence of successfully creating an FTP account

Testing for Cron Job functionality


The name cron comes from the word chronograph (a time-piece). Cron is a time-based job scheduler. Cron enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates. It is commonly used to automate system maintenance or administration. Cron enables users to schedule jobs (commands or shell scripts) to run automatically at a certain time or date.

Test Result
This is better done by the user so as to see how it works and the results. After setting a command the functionality of the Cron Job was successful. There is no evidence it better done by the marker or user.

RESULTS FROM MYSQL DATABASE

Image 1: List of tables in my database(Norfolk)

Image 2: Showing records from cronjob & ftp_account tables

Image 3: Showing records from inbox table

Image 4: Showing records from mail table

Image 5: Showing records from mysql_db table

Image 6: Showing records from note table

Image 7: Showing records from registration table

Image 8: Showing records from sentbox table

Image 9: Showing records from subdomain table

TEST LOG AND TEST PLAN RESULTS


Ref Test Scenario Test Result Date Tested April, 10th 2011 April, 10th 2011 April, 10th 2011 April, 10th 2011 April, 10th 2011 April, 10th 2011 April, 10th 2011 April, 10th 2011 April, 10th 2011 April, 10th 2011 Tested By Me Test Outcome Successful

Non-existing user logs in

Invalid user

Code error

Invalid security code, try again Cant upload file, try again Cant create file, try again Cant create folder, try again Invalid user

Me

Successful

Uploading invalid file type

Me

Successful

Creating invalid file type

Me

Successful

Creating invalid folder type

Me

Successful

Wrong password

Me

Successful

Sent email

Notification of sent message Notification that database was created Visible from manage site Visible from manage site under the parent subdomain

Me

Successful

Database created

Me

Successful

Uploaded, created files and folders Subdomain

Me

Successful

10

Me

Successful

DIAGRAMS
Flowchart page Home

Existing user

New user

alid login details

Valid login details Register

Login to account Registration unsuccessful [subdomain name or email already exist] Login successful Registration completed

Registration successful

Confirm email to activate account

Logout

Sequence Diagram for Login

: L o g in D ia lo g

:L o g in M a n a g e r

:D a ta b a s e A c c e s s

lo g in () :va lid a te L o g in (u s e rN a m e , p a s s w o rd ) :e x e c u t e Q u e ry (q u e ry s trin g to c h e c k u s e rn a m e & p a s s w o rd w ith databas e)

A ctor

[lo g in s u c c e s s fu l] h id e ()

[lo g in fa ile d ] s h o w ()

State Diagram for Creating Account/ Registration

Home Page

Registration page

New user to do online registration

Confirmation email of new account sent

Account activation

Invalid login details

Valid login details

Re-login

Login successful

Access user home page

Use Case Diagram

extends create account uses uses uses uses create files extends User uses create folders upload files extends extends view account status

view files and folders

create database

State Diagram for Registration

Unregistered

[Request]

Waiting

Registered

[Details]

State Diagram for User Login

Unlog State

[Login Request] = true

Waiting

Login

[Username & Password] = true

Activity Diagram for User Login

Try count >3


System prompts Login Screen System shows Login Error

User enters Login Details

Valid = false:

System checks Login Details

Login Successful

PSEUDO CODE
Writing pseudocode will save ones time during the planning and testing phase of a program`s development.

CLASS Registration_form 02 Form_Entry () 03 Get the subdomain name user wants 04 Get the user's first name 05

06 Get the user's last name 07

08 Get the email-id user wants 09 Get the user's password 10 Get the security code 11 IF submitted 12 IF subdomain or email-id already exists in database THEN 13 Prompt user for another email-id 14 Get another subdomain name or email-id from the user

15 ELSE 16 IF fields validated THEN 17 Create the account/ subdomain 18 Save the record to database 19 Call get_url() method 20

21 ELSE 22 Call return() method 23 END IF 24

25 END IF 26 END IF 27 return() 28 Display the user's subdomain name 29 Display the user's email-id 30

Display the user's password 31 Display the user's name 32 IF email-id and password are valid THEN 33 Access control panel 34 ELSE 35 Call registration_form () method 36 END IF

ENDIF DISPLAY *home page* REGISTER registration form to be filled DISPLAY choose your free subdomain:

INPUT subdomain name DISPLAY first name: INPUT first name DISPLAY last name: INPUT last name DISPLAY password: INPUT password DISPLAY type password again: INPUT password DISPLAY type words that you see in the image: INPUT security code

DO DISPLAY 1: details accepted DISPLAY 2: print out customer details DISPLAY 3: status of account DISPLAY 4: activate your account INPUT click on message DISPLAY automatic logout DO LOGIN re-login DISPLAY account status active DO DISPLAY control panel INPUT choice

BREAK;

Logout: END

PROGRAM CODES
Access.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) || $_SESSION['status'] ! = 'active') { header('location: http://localhost/norfolk/inactive_user.php'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Access log :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <link href="css/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" /> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <script src="css/SpryCollapsiblePanel.js" type="text/javascript"></script></head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div>

<div id="main_bg"> <br /> <table width="100%"> <tr> <td id="cpanel"> <ul> <li><a href="http://localhost/norfolk/managesite.php" title="Manage Site :::" target="_parent">Manage site</a></li> <li><a href="http://localhost/norfolk/subdomain.php" title="Sub domain :::" target="_parent">Subdomain</a></li> <li><a href="http://localhost/norfolk/mail.php" title="Mail :::" target="_parent">Mail</a></li> <li><a href="http://localhost/norfolk/cronjob.php" title="Cron Job :::" target="_parent">Cron job</a></li> <li><a href="http://localhost/norfolk/mysql.php" title="Mysql :::" target="_parent">Mysql</a></li ><li><a href="http://localhost/norfolk/filemanager.php" title="File Manager :::" target="_parent">File manager</a></li> <li><a href="http://localhost/norfolk/ftpaccount.php" title="Ftp account :::" target="_parent">Ftp account</a></li> </ul></td> </tr> </table> <br /> <div id="sidebar1"> <p style="margin-top:70px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?>;</td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td>

<td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/contact.gif" /></td> <td width="166" valign="bottom"><h4>Access and Error log</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr>

<td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Access And Error Log</td> </tr> </table> </div> <div class="cpanel"> <br /> <table width="100%"> <tr class="cont"> <td>Hostname</td> <td>Access</td> <td>Error</td> <td>Delect</td> </tr> <tr class="cont1"> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> <br /> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp">

<td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td>

</tr> </tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {enableAnimation:false, contentIsOpen:false}); //--> </script> </body> </html> <?php mysql_close($con);?> Account.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) && $_SESSION['status'] != "inactive") {

header('location: http://localhost/norfolk/login.php?comment=Invalid User'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Account Setting :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <link href="css/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" /> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <script src="css/SpryCollapsiblePanel.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <br /> <div id="sidebar1"> <p style="margin-top:70px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td>

</tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"><table width="400"> <tr>

<td width="50"><img src="images/images.jpg" /></td> <td width="166" valign="bottom"><h4>Account Setting</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Account</td> </tr> </table> </div> <div class="cpanel"> <form action="account_code.php" method="post"> <table width="100%"> <tr> <td><div id="CollapsiblePanel1" class="CollapsiblePanel"> <div class="CollapsiblePanelTab"><a title="Add Mail">Change password</a></div> <div class="CollapsiblePanelContent">

<table width="100%"> <tr> <td width="14%">&nbsp;</td> <td width="60%">&nbsp;</td> <td width="26%">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Old Password</strong><br /> <span id="sprytextfield1"> <input type="password" name="oldpass" id="oldpass" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>New Password</strong><br /> <span id="sprytextfield1"> <input type="password" name="newpass" id="newpass" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Confirm Password</strong><br /> <span id="sprytextfield2"> <input type="password" name="cpass" id="cpass" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><input type="submit" name="create" id="create" value="Create" /> &nbsp; <input type="reset" name="reset" id="reset" value="Cancel" /></td> <td>&nbsp;</td> </tr> </table> </div></div></td> </tr> <tr> <td>&nbsp;</td> </tr> </table> </form>

<br /> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table>

<br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {enableAnimation:false, contentIsOpen:false}); var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1"); var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2"); //--> </script> </body> </html>

<?php mysql_close($con);?> Account_code.php <?php session_start(); include 'conn.inc'; class changepass{ public $g_url; function __construct(){ $this->g_url = $this->get_url(); $this->create(); } function get_url() { $possible = '23456789bcdfghjkmnpqrstvwxyz'; $code = ''; $i = 0; while($i < 10) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } function create(){ if($_POST['cpass'] == $_POST['newpass']) { $select = "SELECT password FROM registration WHERE email='{$_SESSION['user_id']}' AND password='{$_POST['oldpass']}'"; $selected = mysql_query($select); if(mysql_num_rows($selected) > 0) { $update = "UPDATE registration SET password='{$_POST['newpass']}' WHERE email='{$_SESSION['user_id']}'"; $updated = mysql_query($update);

if(mysql_affected_rows()) { header('location: http://localhost/norfolk/account.php?comment=Password Updated&url_id='.$this->g_url); } else { header('location: http://localhost/norfolk/account.php?comment=Can`t update password&url_id='.$this>g_url); } } else { header('location: http://localhost/norfolk/account.php? comment=Invalid User enter old password&url_id='.$this->g_url); } } else { header('location: http://localhost/norfolk/account.php? comment=Confirm password must match new password&url_id='.$this->g_url); } } } $pass = new changepass(); mysql_close($con); ?> Account.php <?php session_start(); include 'conn.inc'; class actionB{ public $g_url; function __construct(){ $this->g_url = $this->get_url();

if(isset($_POST['uploadfile'])) { $this->uploadFile(); } if(isset($_POST['foldername'])) { $this->createFolder(); } if(isset($_POST['filename'])) { $this->createFile(); } } function uploadFile(){ if(isset($_FILES['lanre']['name'])) { $path = getcwd(); $path .='/www/'; $path .= $_POST['path'].'/'; $path .= $_POST['folder']; $upload = $path . basename($_FILES['lanre'] ['name']); //$name = $_FILES['lanre']['error']; //echo $name; if(move_uploaded_file($_FILES['lanre']['tmp_name'], $upload)) { header('location: http://localhost/norfolk/upload.php?comment=File uploaded&url_id='.$this->g_url); } else { header('location: http://localhost/norfolk/upload.php?comment=Can`t upload File Try Again&url_id='.$this>g_url); } } else

{ header('location: http://localhost/norfolk/upload.php? comment=Select File And Path To upload&url_id='.$this->g_url); } } function createFile(){ if(isset($_POST['file']) && isset($_POST['path'])) { $path = getcwd(); $path .= '/www/'; $path .= $_POST['path'].'/'; $filename = $_POST['file']; $file = $path . $filename; if(fopen($file,"x+")) { header('location: http://localhost/norfolk/createfile.php?comment=File Created&url_id='.$this->g_url); } else { header('location: http://localhost/norfolk/createfile.php?comment=Can`t Create File Try Again&url_id='.$this>g_url); } } else { header('location: http://localhost/norfolk/createfile.php?comment=Select Path And Give Filename&url_id='. $this->g_url); } } function createFolder(){ if(isset($_POST['folder']) && isset($_POST['path'])) { $path = getcwd(); $path .= '/www/'; $path .= $_POST['path'].'/'; $foldername = $_POST['folder'];

$folder = $path . $foldername; if(mkdir($folder, 0777)) { header('location: http://localhost/norfolk/createfolder.php?comment=Folder Created&url_id='.$this->g_url); } else { header('location: http://localhost/norfolk/createfolder.php?comment=Can`t Create Folder Try Again&url_id='. $this->g_url); } } else { header('location: http://localhost/norfolk/createfolder.php?comment=Select Path And Give Foldername&url_id='.$this->g_url); } } function moveFile(){ } function copyFile(){ } function deleteFile(){ } function get_url() { $possible = '23456789bcdfghjkmnpqrstvwxyz'; $code = ''; $i = 0; while($i < 10) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code;

} } $action = new actionB(); mysql_close($con); ?> Active.php <?php session_start(); unset($_SESSION['user_id']); unset($_SESSION['name']); unset($_SESSION['status']); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Mail :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <table width="800"> <tr> <td width="523"><div id="hmenu"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li>

<li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> </div></td> <td width="16"></td> <td width="245">&nbsp;</td> </tr> </table> </div> <div id="main_bg"> <br /> <br /> <div id="mainContent"><br /> <table width="100%"> <tr> <td width="21%">&nbsp;</td> <td width="55%">&nbsp;</td> <td width="24%">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td>

</tr> </table> </div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Mail</td> </tr> </table> </div> <form method="post" action="active_code.php"> <div class="cpanel"> <table width="100%"> <tr> <td width="14%"><img src="images/login.gif" /></td> <td width="63%" valign="bottom"><h4>Please login to active your account</h4></td> <td width="12%">&nbsp;</td> <td width="11%">&nbsp;</td> </tr> <tr> <td height="29">&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Email</strong><br /> <span id="sprytextfield1"> <input type="text" name="email" id="email" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Password</strong><br /> <span id="sprytextfield2"> <input type="password" name="password" id="password" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr>

<td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Type words that you see in the image:</strong></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><img src="CaptchaSecurityImages.php?width=160&height=40&characters=7" alt="captcha"/> <br /> <br /> <strong>Security Code</strong><br /> <span id="sprytextfield3"> <input type="text" name="code" id="code" size="30"/> <span class="textfieldRequiredMsg">A value is required.</span></span></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><table width="100%"> <tr> <td width="39%">&nbsp;</td> <td width="26%" align="right"><input type="submit" name="button" id="button" value="login" /></td> <td width="35%">&nbsp;</td> </tr> </table></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> <br /> </div> </form> </td> <td>&nbsp;</td> </tr>

<tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> <br /> </div></div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1"); var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2"); var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3"); //--> </script> </body> </html> Active_code.php <?php session_start();

include 'conn.inc'; class active_user { public $g_url; public $account; function __construct() { $this->g_url = $this->get_url(); $this->login(); } function get_url() { $possible = '23456789bcdfghjkmnpqrstvwxyz'; $code = ''; $i = 0; while($i < 10) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } function createsub(){ $sub = "SELECT subdomain, status FROM subdomain WHERE email='{$_POST['email']}'"; $subdomain = mysql_query($sub); $set = mysql_fetch_row($subdomain); if($set[1] == "Created") { $this->account = "Account Already Exist"; } else { $path = getcwd(); $path .= '/www/'; $path .= $set[0]; if(mkdir($path, 0777))

{ $this->account = "Account Created"; $update = "UPDATE subdomain SET status='Created' WHERE email='{$_POST['email']}'"; $updated = mysql_query($update); $delete = "DELETE FROM inbox WHERE user_id_from='Site Auto Generate' AND user_id_to='{$_POST['email']}' AND check_read='yes'"; $deleted = mysql_query($delete); } } } function login() { if($_SESSION['security_code'] == $_POST['code'] && ! empty($_SESSION['security_code'])) { $g_url = $this->get_url(); $email = $_POST['email']; $password = $_POST['password']; $status = 'active'; if(!empty($email) && !empty($password)) { $select = "SELECT first_name FROM registration WHERE email ='$email' AND password='$password'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected);

if(mysql_num_rows($selected) > 0) { $this->createsub(); $last = date("Y-m-d H:i:s"); $pass = "UPDATE registration SET last_login_date='$last', status='$status' WHERE email='$email'"; $passed = mysql_query($pass); $_SESSION['name'] = $result[0];

$_SESSION['user_id'] = $email; $_SESSION['status'] = $status; header('location: http://localhost/norfolk/user.php'); } else { header('location: http://localhost/norfolk/active.php? comment=Invalid User&url_id='.$this->g_url); } } else { header('location: http://localhost/norfolk/active.php?comment=Enter ur username and password&url_id='.$this->g_url); } } else { header('location: http://localhost/norfolk/active.php?comment=Incorrect Security Code&url_id='.$this->g_url); } } } $user = new active_user(); mysql_close($con); ?> Blog.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) && $_SESSION['status'] != "inactive") { header('location: http://localhost/norfolk/login.php?comment=Invalid User'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected);

$name = $result[0]; $name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>User blog :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <link href="css/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" /> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <script src="css/SpryCollapsiblePanel.js" type="text/javascript"></script></head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <br /> <div id="sidebar1"> <p style="margin-top:70px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td>

</tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/images.jpg"/></td> <td width="166" valign="bottom"><h4>Blog</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div>

<div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Cron job</td> </tr> </table> </div> <div class="cpanel"><table width="100%"> <tr> <td><div id="CollapsiblePanel1" class="CollapsiblePanel"> <div class="CollapsiblePanelTab"><a title="Add Mail">Create Cron job</a></div> <div class="CollapsiblePanelContent"> <table width="100%"> <tr> <td width="14%">&nbsp;</td> <td width="60%">&nbsp;</td> <td width="26%">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Command</strong><br /><input type="text" name="command" id="command" /></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Result Email</strong><br /><input type="text" name="email" id="email" /></td> <td>&nbsp;</td> </tr>

<tr> <td>&nbsp;</td> <td><strong>Experience Level</strong><br /><input type="text" name="level" id="level" /></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Minutes</strong><br /><input type="text" name="minutes" id="minutes" /></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Hours</strong><br /><input type="text" name="hours" id="hours" /></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Days</strong><br /><input name="days" type="text" id="days" value="" /></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Month</strong><br /><input type="text" name="month" id="month" /></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Weekdays</strong><br /> <input type="text" name="weekdays" id="weekdays" /></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td>

<td><input type="submit" name="create" id="create" value="Create" /> &nbsp; <input type="reset" name="reset" id="reset" value="Cancel" /></td> <td>&nbsp;</td> </tr> </table> </div></div></td> </tr> <tr> <td>&nbsp;</td> </tr> </table> <br /> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr>

</tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!--

var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {enableAnimation:false, contentIsOpen:false}); //--> </script> </body> </html> <?php mysql_close($con);?> Captchatsecurityimages.php <?php session_start();

class CaptchaSecurityImages { var $font = 'images/monofont.ttf'; function generateCode($characters) { /* list all possible characters, similar looking characters and vowels have been removed */ $possible = '23456789bcdfghjkmnpqrstvwxyz'; $code = ''; $i = 0; while ($i < $characters) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } function CaptchaSecurityImages($width='120',$height='40',$characters='6') { $code = $this->generateCode($characters); /* font size will be 75% of the image height */ $font_size = $height * 0.75; $image = @imagecreate($width, $height) or die('Cannot initialize new GD image stream'); /* set the colours */ $background_color = imagecolorallocate($image, 255, 255, 255); $text_color = imagecolorallocate($image, 20, 40, 100); $noise_color = imagecolorallocate($image, 100, 120, 180); /* generate random dots in background */

for( $i=0; $i<($width*$height)/3; $i++ ) { imagefilledellipse($image, mt_rand(0,$width), mt_rand(0,$height), 1, 1, $noise_color); } /* generate random lines in background */ for( $i=0; $i<($width*$height)/150; $i++ ) { imageline($image, mt_rand(0,$width), mt_rand(0,$height), mt_rand(0,$width), mt_rand(0,$height), $noise_color); } /* create textbox and add text */ $textbox = imagettfbbox($font_size, 0, $this->font, $code) or die('Error in imagettfbbox function'); $x = ($width - $textbox[4])/2; $y = ($height - $textbox[5])/2; imagettftext($image, $font_size, 0, $x, $y, $text_color, $this->font , $code) or die('Error in imagettftext function'); /* output captcha image to browser */ header("Content-Type: image/jpeg"); imagejpeg($image); imagedestroy($image); $_SESSION['security_code'] = $code; } } $width = isset($_GET['width']) ? $_GET['width'] : '120'; $height = isset($_GET['height']) ? $_GET['height'] : '40'; $characters = isset($_GET['characters']) && $_GET['characters'] > 1 ? $_GET['characters'] : '6'; $captcha = new CaptchaSecurityImages($width,$height,$characters); ?> Contact.php <?php session_start();?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Contact Us :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />

</head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"><?php include'user.inc';?> </div> <div id="main_bg"> <table width="800"> <tr> <td class="capt"><h2>Contact Us</h2></td> </tr> <tr> <td id="cap"> By far the easiest and best way to contact us is via our off-network support forum, that can be found here:<br /> <a href="">http://www.NFGForum.com</a> <br /> <br /> You can also email us with comments, feedback and abuse reports. Please note that we get a LOT of email so for support requests you <strong>must</strong> use the online forum if you want a reply:<br /> Email: Contact5GBFree[at]Gmail[dot]com </td> </tr> </table> </div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div>

</div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> Createfile.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) || $_SESSION['status'] ! = "active") { header('location: http://localhost/norfolk/inactive_user.php'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Create file :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?>

</div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <table width="100%"> <tr> <td id="cpanel"> <ul> <li><a href="http://localhost/norfolk/filemanager.php" title="File Manager :::" target="_parent">Manage site</a></li> <li><a href="http://localhost/norfolk/subdomain.php" title="Sub domain :::" target="_parent">Subdomain</a></li> <li><a href="http://localhost/norfolk/mail.php" title="Mail :::" target="_parent">Mail</a></li> <li><a href="http://localhost/norfolk/cronjob.php" title="Cron Job :::" target="_parent">Cron job</a></li> <li><a href="http://localhost/norfolk/mysql.php" title="Mysql :::" target="_parent">Mysql</a></li> <li><a href="http://localhost/norfolk/filemanager.php" title="File Manager :::" target="_parent">File manager</a></li> <li><a href="http://localhost/norfolk/ftpaccount.php" title="Ftp account :::" target="_parent">Ftp account</a></li> <li><a href="http://localhost/norfolk/access.php" title="Access :::" target="_parent">Access and Error</a></li> </ul></td> </tr> </table> <br /> <div id="sidebar1"> <p style="margin-top:70px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td>

</tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/folder_48.png" /></td> <td width="166" valign="bottom"><h4>Create files</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460">

<tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Subdomain</td> </tr> </table> </div> <div class="cpanel"> <br /> <form action="action.php" method="post"> <table width="100%"> <tr> <td width="52%"><h4>File</h4><br /> <span id="sprytextfield1"> <input type="text" name="file" id="file" /> <span class="textfieldRequiredMsg">required</span></span></td> <td width="45%" valign="bottom"><select name="path" id="path" > <option>&lt;Select&gt;</option> <?php

$select = "SELECT subdomain FROM subdomain WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); while($row = mysql_fetch_array($selected)) { echo"<option>$row[0]</option>"; } ?> </select></td> <td width="3%">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td><table width="98%"> <tr> <td width="21%" align="center">Eg:</td> <td width="53%">file.html</td> <td width="26%">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>file.txt</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>file.php</td> <td>&nbsp;</td> </tr> </table></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td colspan="2"><div id="dott"></div></td> <td>&nbsp;</td> </tr> <tr> <td align="right"><input type="reset" name="cancel" id="cancel" value="Cancel" /></td>

<td><input type="submit" name="filename" id="filename" value="Create file" /></td> <td>&nbsp;</td> </tr> </table> </form> <br /> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td>

<td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1"); //-->

</script> </body> </html> <?php mysql_close($con);?> Cpanel.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) || $_SESSION['status'] ! = "active") { header('location: http://localhost/norfolk/inactive_user.php'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Control Panel :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /></head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <br />

<div id="sidebar1"> <p style="margin-top:70px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?>;</td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table>

</div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/control-panel-7.jpg" /></td> <td width="166" valign="bottom"><h4>User Control Panel</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Control panel</td> </tr> </table> </div> <div class="cpanel"><table width="458"> <tr>

<td width="108" align="center"><table width="99"> <tr> <td align="center"><img src="images/images (4).jpg" alt="manage site" /></td> </tr> <tr> <td align="center"><a href="managesite.php" title="manage site" target="_parent">Manage site</a></td> </tr> </table></td> <td width="100" align="center"><table width="95"> <tr> <td align="center"><img src="images/images (5).jpg" title="subdomain" /></td> </tr> <tr> <td align="center"><a href="subdomain.php" target="_parent"title="subdomain">Subdomain</a></td> </tr> </table></td> <td width="103" align="center"><table width="90"> <tr> <td align=""><img src="images/images (6).jpg" title="mail" /></td> </tr> <tr> <td align="center"><a href="mail.php" target="_parent" title="mail">Mail</a></td> </tr> </table></td> <td align="center"><table width="100"> <tr> <td align="center"><img src="images/linux-crontab-300x270.jpg" title="cron job" /></td> </tr> <tr> <td align="center"><a href="cronjob.php" target="_parent" title="ron job">Cron job</a></td> </tr> </table></td> </tr> <tr> <td align="center"><table width="99"> <tr> <td align="center"><img src="images/images (9).jpg" title="mysql"/></td> </tr> <tr>

<td align="center"><a href="mysql.php" target="_parent" title="mysql">My Sql</a></td> </tr> </table></td> <td align="center"><table width="95"> <tr> <td align="center"><img src="images/images (10).jpg" title="file manager" /></td> </tr> <tr> <td align="center"><a href="filemanager.php" target="_parent" title="file manager">File Manager</a></td> </tr> </table></td> <td align="center"><table width="90"> <tr> <td align="center"><img src="images/images (11).jpg" title="ftp account" /></td> </tr> <tr> <td align="center"><a href="ftpaccount.php" target="_parent" title="ftp account">Ftp Account</a></td> </tr> </table></td> <td align="center"><table width="100"> <tr> <td align="center"><img src="images/contact.gif" title="access and error"/></td> </tr> <tr> <td><a href="access.php" target="_parent" title="access and error">Access and Error log</a></td> </tr> </table></td> </tr> </table> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr>

<td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div> <br /> </div> </div>

<div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> <?php mysql_close($con);?> Createfolder.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) || $_SESSION['status'] ! = "active") { header('location: http://localhost/norfolk/inactive_user.php'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected);

$name = $result[0]; $name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Create file :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <table width="100%"> <tr> <td id="cpanel"> <ul> <li><a href="http://localhost/norfolk/filemanager.php" title="File Manager :::" target="_parent">Manage site</a></li> <li><a href="http://localhost/norfolk/subdomain.php" title="Sub domain :::" target="_parent">Subdomain</a></li> <li><a href="http://localhost/norfolk/mail.php" title="Mail :::" target="_parent">Mail</a></li> <li><a href="http://localhost/norfolk/cronjob.php" title="Cron Job :::" target="_parent">Cron job</a></li> <li><a href="http://localhost/norfolk/mysql.php" title="Mysql :::" target="_parent">Mysql</a></li> <li><a href="http://localhost/norfolk/filemanager.php" title="File Manager :::" target="_parent">File manager</a></li>

<li><a href="http://localhost/norfolk/ftpaccount.php" title="Ftp account :::" target="_parent">Ftp account</a></li> <li><a href="http://localhost/norfolk/access.php" title="Access :::" target="_parent">Access and Error</a></li> </ul></td> </tr> </table> <br /> <div id="sidebar1"> <p style="margin-top:70px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table>

<br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/folder_48.png" /></td> <td width="166" valign="bottom"><h4>Create folder</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br />

<div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Subdomain</td> </tr> </table> </div> <div class="cpanel"> <br /> <form action="action.php" method="post"> <table width="100%"> <tr> <td width="52%"><h4>Folder</h4><br /> <span id="sprytextfield1"> <input type="text" name="folder" id="folder" /> <span class="textfieldRequiredMsg">required.</span></span> </td> <td width="45%" valign="bottom"><select name="path" id="path" > <option>&lt;Select&gt;</option> <?php $select = "SELECT subdomain FROM subdomain WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); while($row = mysql_fetch_array($selected)) { echo"<option>$row[0]</option>"; } ?> </select></td> <td width="3%">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td><table width="98%"> <tr> <td width="21%" align="center">Eg:</td> <td width="53%">folder1</td> <td width="26%">&nbsp;</td> </tr>

<tr> <td>&nbsp;</td> <td>folder2</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>folder3</td> <td>&nbsp;</td> </tr> </table></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td colspan="2"><div id="dott"></div></td> <td>&nbsp;</td> </tr> <tr> <td align="right"><input type="reset" name="cancel" id="cancel" value="Cancel" /></td> <td><input type="submit" name="foldername" id="foldername" value="Create folder" /></td> <td>&nbsp;</td> </tr> </table> </form> <br /> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0">

<tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul>

<li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1"); //--> </script> </body> </html> <?php mysql_close($con);?> Cronjob.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) || $_SESSION['status'] ! = "active") { header('location: http://localhost/norfolk/inactive_user.php'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Cron Job :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <link href="css/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" /> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <script src="css/SpryCollapsiblePanel.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <table width="100%"> <tr> <td id="cpanel"> <ul> <li><a href="http://localhost/norfolk/managesite.php" title="Manage Site :::" target="_parent">Manage site</a></li> <li><a href="http://localhost/norfolk/subdomain.php" title="Sub domain :::" target="_parent">Subdomain</a></li> <li><a href="http://localhost/norfolk/mail.php" title="Mail :::" target="_parent">Mail</a></li> <li><a href="http://localhost/norfolk/mysql.php" title="My sql :::" target="_parent">Mysql</a></li> <li><a href="http://localhost/norfolk/filemanager.php" title="File Manager :::" target="_parent">File manager</a></li> <li><a href="http://localhost/norfolk/ftpaccount.php" title="Ftp account :::" target="_parent">Ftp account</a></li> <li><a href="http://localhost/norfolk/access.php" title="Access :::" target="_parent">Access and Error</a></li> </ul></td> </tr>

</table> <br /> <div id="sidebar1"> <p style="margin-top:70px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td>

</tr> </table> </div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/linux-crontab-300x270.jpg"/></td> <td width="166" valign="bottom"><h4>Cron job</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Cron job</td> </tr> </table> </div>

<div class="cpanel"> <form action="cronjob_code.php" method="post"> <table width="100%"> <tr> <td><div id="CollapsiblePanel1" class="CollapsiblePanel"> <div class="CollapsiblePanelTab"><a title="Add Mail">Create Cron job</a></div> <div class="CollapsiblePanelContent"> <table width="100%"> <tr> <td width="14%">&nbsp;</td> <td width="60%">&nbsp;</td> <td width="26%">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Command</strong><br /> <span id="sprytextfield1"> <input type="text" name="command" id="command" /> <span class="textfieldRequiredMsg">required.</span></span></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Result Email</strong><br /> <span id="sprytextfield2"> <input type="text" name="email" id="email" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Experience Level</strong><br /> <span id="sprytextfield3"> <input type="text" name="level" id="level" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Minutes</strong><br /> <span id="sprytextfield4"> <input type="text" name="minutes" id="minutes" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> <td>&nbsp;</td>

</tr> <tr> <td>&nbsp;</td> <td><strong>Hours</strong><br /> <span id="sprytextfield5"> <input type="text" name="hours" id="hours" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Days</strong><br /> <span id="sprytextfield6"> <input name="days" type="text" id="days" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Month</strong><br /> <span id="sprytextfield7"> <input type="text" name="month" id="month" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Weekdays</strong><br /> <span id="sprytextfield8"> <input type="text" name="weekdays" id="weekdays" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><input type="submit" name="create" id="create" value="Create" /> &nbsp; <input type="reset" name="reset" id="reset" value="Cancel" /></td> <td>&nbsp;</td> </tr>

</table> </div></div></td> </tr> <tr> <td>&nbsp;</td> </tr> </table> </form> <table width="100%"> <tr class="cont"> <td>Command</td> <td>Result Email</td> </tr> <?php $select = "SELECT command, email FROM cronjob WHERE user_id='{$_SESSION['user_id']}'"; $selected = mysql_query($select); while($row = mysql_fetch_array($selected)) { echo"<tr class='cont1'>"; echo"<td>$row[0]</td>"; echo"<td>$row[1]</td>"; echo"</tr>"; } ?> </table> <br /> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table>

<br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer">

<ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {enableAnimation:false, contentIsOpen:false}); var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1"); var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2"); var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3"); var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4"); var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5"); var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6"); var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7"); var sprytextfield8 = new Spry.Widget.ValidationTextField("sprytextfield8"); //--> </script> </body> </html> <?php mysql_close($con);?> Cronjob_code.php <?php session_start(); include 'conn.inc'; class cronjob{

public $g_url; function __construct(){ $this->g_url = $this->get_url(); $this->createjob(); } function get_url() { $possible = '23456789bcdfghjkmnpqrstvwxyz'; $code = ''; $i = 0; while($i < 10) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } function createjob(){ $command = $_POST['command']; $user_id = $_SESSION['user_id']; $email = $_POST['email']; $level = $_POST['level']; $minutes = $_POST['minutes']; $hours = $_POST['hours']; $days = $_POST['days']; $month = $_POST['month']; $weekdays = $_POST['weekdays']; $insert = sprintf("INSERT INTO cronjob(user_id, command, email, level, minutes, hours, days, month, weekdays)VALUES('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", mysql_real_escape_string($user_id), mysql_real_escape_string($command), mysql_real_escape_string($email), mysql_real_escape_string($level),

mysql_real_escape_string($minutes), mysql_real_escape_string($hours), mysql_real_escape_string($days), mysql_real_escape_string($month), mysql_real_escape_string($weekdays)); $inserted = mysql_query($insert); if(mysql_affected_rows() > 0) { header('location: http://localhost/norfolk/cronjob.php?comment=Cron job created&url_id='.$this->g_url); } else { header('location: http://localhost/norfolk/cronjob.php?comment=Can`t Insert Record Pls Contact Admin&url_id='.$this->g_url); } } } $job = new cronjob(); mysql_close($con); ?> Delectinbox.php <?php session_start(); include 'conn.inc'; class deleteMail{ public $g_url; function __construct(){ $this->g_url = $this->get_url();

$this->deletema(); } function get_url() { $possible = '23456789bcdfghjkmnpqrstvwxyz'; $code = ''; $i = 0; while($i < 10) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } function deletema(){ if(isset($_GET['4rm']) && $_GET['4rm'] == 'inbox') { $delete = "DELETE FROM inbox WHERE message_id='{$_GET['message_id']}' AND user_id_to='{$_SESSION['user_id']}'"; $deleted = mysql_query($delete); if(mysql_affected_rows()) { header('location: http://localhost/norfolk/message.php? comment=Mail Delected&url_id='.$this->g_url); } else { header('location: http://localhost/norfolk/message.php? comment=Can`t Delect Mail&url_id='.$this->g_url); } } if(isset($_GET['4rm']) && $_GET['4rm'] == 'sentbox') { $delete1 = "DELETE FROM sentbox WHERE message_id='{$_GET['message_id']}' AND user_id_from='{$_SESSION['user_id']}'"; $deleted1 = mysql_query($delete1); if(mysql_affected_rows()) {

header('location: http://localhost/norfolk/sentbox.php? comment=Mail Delected&url_id='.$this->g_url); } else { header('location: http://localhost/norfolk/sentbox.php? comment=Can`t Delect Mail&url_id='.$this->g_url); } } } } $del = new deleteMail(); mysql_close($con); ?> Email.inc.php <?php $name = $_SESSION['name']; $email = $_SESSION['user_id']; $password = $_SESSION['pass']; $message = "<table width='100%' cellpadding='2' cellspacing='1'> <tr> <td width='4%'>&nbsp;</td> <td width='84%'>Welcome ".$name.",<br/> <br /> Your registration to Norfolk is almost complete! We'd love to get you started, but we need you to verify your email first.</td> <td width='12%'>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td align='center' ><table width='100%'> <tr> <td width='28%'>&nbsp;</td> <td width='41%' align='center' ><a href='login.php' target='_blank' >Click here to verify your account</a></td> <td width='31%'>&nbsp;</td> </tr> </table> <td>&nbsp;</td>

</tr> <tr> <td>&nbsp;</td> <td><p><strong> MANAGING YOUR SITE </strong><br/> You can manage it by logging into nfg.com and entering your email address and password:<br/> <br/> </p> <ul> <strong>Email:</strong> ".$email."<br/> <strong>Password:</strong> ".$password." </ul> <p><strong>STARTER'S TIPS</strong><br/> The first days of site building are exciting, here are some helpful tips:</p> <ol> <li><strong>Your Website Address</strong>: Did you know that you can get a custom site address like www.nfg.com? Just sign in and visit the Domain Name section to learn more about domain names</li> </ol> <p>Thanks again for joining. During your first week, we`ll be sending you helpful tips &amp; tricks to support the successful launch of your new website.<br/> <br/> Happy site building!<br/> <br/> Sincerely,<br/> The Norfolk Team</p></td> <td>&nbsp;</td> </tr> </table>"; ?> Filemanager.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) || $_SESSION['status'] ! = "active") { header('location: http://localhost/norfolk/inactive_user.php'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select);

$result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>File Manager :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /></head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <table width="100%"> <tr> <td id="cpanel"> <ul> <li><a href="http://localhost/norfolk/filemanager.php" title="File Manager :::" target="_parent">Manage site</a></li> <li><a href="http://localhost/norfolk/subdomain.php" title="Sub domain :::" target="_parent">Subdomain</a></li> <li><a href="http://localhost/norfolk/mail.php" title="Mail :::" target="_parent">Mail</a></li> <li><a href="http://localhost/norfolk/cronjob.php" title="Cron Job :::" target="_parent">Cron job</a></li> <li><a href="http://localhost/norfolk/mysql.php" title="Mysql :::" target="_parent">Mysql</a></li> <li><a href="http://localhost/norfolk/ftpaccount.php" title="Ftp account :::" target="_parent">Ftp account</a></li> <li><a href="http://localhost/norfolk/access.php" title="Access :::" target="_parent">Access and Error</a></li> </ul></td>

</tr> </table> <br /> <div id="sidebar1"> <p style="margin-top:70px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td>

<td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/images (4).jpg" /></td> <td width="166" valign="bottom"><h4>File Manager</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Ftp Account</td> </tr> </table>

</div> <div class="cpanel"> <br /> <table width="100%" cellpadding="2" cellspacing="1"> <tr class="cont"> <td width="20%"></td> <td width="33%">Subomain</td> <td width="20%">Size</td> <td width="27%">Updated</td> </tr> <?php $select = "SELECT subdomain, subdomain_id, updated_date FROM subdomain WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); while($row = mysql_fetch_array($selected)) { echo"<tr class='cont1'>"; echo"<td><input name='action' id='action' type='checkbox' value='$row[0]' /></td>"; echo"<td><a href='folder.php?id=$row[0]'>$row[0]</a></td>"; echo"<td></td>"; echo"<td>$row[2]</td>"; echo"</tr>"; } ?> </table> <br /> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr>

</tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div>

<div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> <?php mysql_close($con);?> Folder.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) || $_SESSION['status'] ! = "active") { header('location: http://localhost/norfolk/inactive_user.php'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1];

?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Folder and File :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /></head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <table width="100%"> <tr> <td id="cpanel"> <ul> <li><a href="http://localhost/norfolk/filemanager.php" title="File Manager :::" target="_parent">Manage site</a></li> <li><a href="http://localhost/norfolk/subdomain.php" title="Sub domain :::" target="_parent">Subdomain</a></li> <li><a href="http://localhost/norfolk/mail.php" title="Mail :::" target="_parent">Mail</a></li> <li><a href="http://localhost/norfolk/cronjob.php" title="Cron Job :::" target="_parent">Cron job</a></li> <li><a href="http://localhost/norfolk/mysql.php" title="Mysql :::" target="_parent">Mysql</a></li> <li><a href="http://localhost/norfolk/filemanager.php" title="File Manager :::" target="_parent">File manager</a></li> <li><a href="http://localhost/norfolk/ftpaccount.php" title="Ftp account :::" target="_parent">Ftp account</a></li> <li><a href="http://localhost/norfolk/access.php" title="Access :::" target="_parent">Access and Error</a></li> </ul></td> </tr> </table>

<br /> <div id="sidebar1"> <p style="margin-top:70px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr>

</table> </div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/images (4).jpg" /></td> <td width="166" valign="bottom"><h4>Folder and File</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Ftp Account</td> </tr> </table> </div> <div class="cpanel">

<br /> <table width="100%" cellpadding="2" cellspacing="1" bgcolor="#999999"> <tr class="cont2"> <td align="center"><img src="images/document_up_24.png" name="upload" id="upload" value="lanre"/><a href="upload.php" target="_parent"><br />Upload</a></td> <td align="center"><img src="images/document_add_24.png" name="file" id="file" /><a href="createfile.php" target="_parent"><br />Create file</a></td> <td align="center"><img src="images/folder_add_24.png" name="folder" id="folder" /><a href="createfolder.php" target="_parent"><br />Create folder</a></td> <td align="center"><a><img src="images/copy_24.png" name="copy" id="copy" /><br />Copy</a></td> <td align="center"><a><img src="images/copy_next_24.png" name="move" id="move"/><br />Move</a></td> <td align="center"><a><img src="images/document_close_24.png" name="delete" id="delete" /><br />Delect</a></td> </tr> </table> <br /> <table width="100%" cellpadding="2" cellspacing="1"> <tr class="cont"> <td width="50%">Subomain</td> <td width="23%">Size</td> <td width="27%">Updated</td> </tr> <?php $dir; if(empty($dir)) { $dir = ""; $dir = getcwd(); $dir .= '/www/'; //$dir .= $_GET['id']; //$dir .= '/'; } $dir .= $_GET['pre'].$_GET['id'].'/';

$len = $_GET['id']; $na = substr($dir, strrpos($dir, '/')-strlen($len));

//echo $dir;

if(is_dir($dir)) { if($dh = opendir($dir)) { while(($file = readdir($dh)) !== false) { if($file != '..' && $file != '.') { if(filetype($dir . $file) == 'dir') { echo"<tr class='cont1'>"; echo"<td align='left'><img src='images/folder.png' />&nbsp;<a href='folder.php?id=$file&pre=$na'>$file</a></td>"; echo"<td>".(filesize($dir . $file) / 1024)."</td>"; echo"<td>".date("Y-m-d H:i:s", filemtime($dir . $file))."</td>"; echo"</tr>"; } elseif(filetype($dir . $file) == 'file' && substr($dir . $file, strrpos($dir . $file, '.')+1) == 'php' || substr($dir . $file, strrpos($dir . $file, '.')+1) == 'PHP') { echo"<tr class='cont1'>"; echo"<td align='left'><img src='images/asax.png' />&nbsp; $file</td>"; echo"<td>".(filesize($dir . $file) / 1024)."</td>"; echo"<td>".date("Y-m-d H:i:s", filemtime($dir . $file))."</td>"; echo"</tr>"; } elseif(filetype($dir . $file) == 'file' && substr($dir . $file, strrpos($dir . $file, '.')+1) == 'html' || substr($dir . $file, strrpos($dir . $file, '.')+1) == 'HTML') { echo"<tr class='cont1'>"; echo"<td align='left'><img src='images/config.png' />&nbsp; $file</td>"; echo"<td>".(filesize($dir . $file)/ 1024)."</td>"; echo"<td>".date("Y-m-d H:i:s", filemtime($dir . $file))."</td>"; echo"</tr>"; } elseif(filetype($dir . $file) == 'file' && substr($dir . $file, strrpos($dir . $file, '.')+1) == 'css' || substr($dir . $file, strrpos($dir . $file, '.')+1) == 'CSS')

{ echo"<tr class='cont1'>"; echo"<td align='left'><img src='images/config.png' />&nbsp; $file</td>"; echo"<td>".(filesize($dir . $file)/ 1024)."</td>"; echo"<td>".date("Y-m-d H:i:s", filemtime($dir . $file))."</td>"; echo"</tr>"; } elseif(filetype($dir . $file) == 'file' && substr($dir . $file, strrpos($dir . $file, '.')+1) == 'js' || substr($dir . $file, strrpos($dir . $file, '.') +1) == 'JS') { echo"<tr class='cont1'>"; echo"<td align='left'><img src='images/config.png' />&nbsp; $file</td>"; echo"<td>".(filesize($dir . $file)/ 1024)."</td>"; echo"<td>".date("Y-m-d H:i:s", filemtime($dir . $file))."</td>"; echo"</tr>"; } elseif(filetype($dir . $file) == 'file' && substr($dir . $file, strrpos($dir . $file, '.')+1) == 'gif' || substr($dir . $file, strrpos($dir . $file, '.')+1) == 'GIF') { echo"<tr class='cont1'>"; echo"<td align='left'><img src='images/gif.png' />&nbsp; $file</td>"; echo"<td>".(filesize($dir . $file)/ 1024)."</td>"; echo"<td>".date("Y-m-d H:i:s", filemtime($dir . $file))."</td>"; echo"</tr>"; } elseif(filetype($dir . $file) == 'file' && substr($dir . $file, strrpos($dir . $file, '.')+1) == 'png' || substr($dir . $file, strrpos($dir . $file, '.')+1) == 'PNG') { echo"<tr class='cont1'>"; echo"<td align='left'><img src='images/gif.png' />&nbsp; $file</td>"; echo"<td>".(filesize($dir . $file)/ 1024)."</td>"; echo"<td>".date("Y-m-d H:i:s", filemtime($dir . $file))."</td>"; echo"</tr>"; } elseif(filetype($dir . $file) == 'file' && substr($dir . $file, strrpos($dir . $file, '.')+1) == 'jpg' || substr($dir . $file, strrpos($dir . $file, '.')+1) == 'JPG') { echo"<tr class='cont1'>"; echo"<td align='left'><img src='images/gif.png' />&nbsp; $file</td>"; echo"<td>".(filesize($dir . $file)/ 1024)."</td>"; echo"<td>".date("Y-m-d H:i:s", filemtime($dir . $file))."</td>";

echo"</tr>"; } elseif(filetype($dir . $file) == 'file' && substr($dir . $file, strrpos($dir . $file, '.')+1) == 'txt' || substr($dir . $file, strrpos($dir . $file, '.')+1) == 'TXT') { echo"<tr class='cont1'>"; echo"<td align='left'><img src='images/unknown.png' />&nbsp; $file</td>"; echo"<td>".(filesize($dir . $file)/ 1024)."</td>"; echo"<td>".date("Y-m-d H:i:s", filemtime($dir . $file))."</td>"; echo"</tr>"; } if(filetype($dir . $file) == 'unknown') { echo"<tr class='cont1'>"; echo"<td align='left'><img src='images/unknown.png' />&nbsp; $file</td>"; echo"<td>".(filesize($dir . $file)/ 1024)."</td>"; echo"<td>".date("Y-m-d H:i:s", filemtime($dir . $file))."</td>"; echo"</tr>"; } } } } } ?> </table> <br /> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table>

<br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer">

<ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> <?php mysql_close($con);?> Ftpaccount.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) || $_SESSION['status'] ! = "active") { header('location: http://localhost/norfolk/inactive_user.php'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Ftp account :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <link href="css/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" /> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <script src="css/SpryCollapsiblePanel.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <table width="100%"> <tr> <td id="cpanel"> <ul> <li><a href="http://localhost/norfolk/managesite.php" title="Manage Site :::" target="_parent">Manage site</a></li> <li><a href="http://localhost/norfolk/subdomain.php" title="Sub domain :::" target="_parent">Subdomain</a></li> <li><a href="http://localhost/norfolk/mail.php" title="Mail :::" target="_parent">Mail</a></li> <li><a href="http://localhost/norfolk/cronjob.php" title="Cron Job :::" target="_parent">Cron job</a></li> <li><a href="http://localhost/norfolk/mysql.php" title="Mysql :::" target="_parent">Mysql</a></li> <li><a href="http://localhost/norfolk/filemanager.php" title="File Manager :::" target="_parent">File manager</a></li> <li><a href="http://localhost/norfolk/access.php" title="Access :::" target="_parent">Access and Error</a></li> </ul></td>

</tr> </table> <br /> <div id="sidebar1"> <p style="margin-top:70px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td>

<td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/images (11).jpg"/></td> <td width="166" valign="bottom"><h4>Ftp account</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Ftp Account</td> </tr> </table>

</div> <div class="cpanel"> <form action="ftpaccount_code.php" method="post"> <table width="100%"> <tr> <td><div id="CollapsiblePanel1" class="CollapsiblePanel"> <div class="CollapsiblePanelTab"><a title="Add Mail">Create Ftp Account</a></div> <div class="CollapsiblePanelContent"> <table width="100%"> <tr> <td width="16%">&nbsp;</td> <td width="45%">&nbsp;</td> <td width="39%">&nbsp;</td> </tr> <tr> <td></td> <td><strong>Username</strong><br /> <span id="sprytextfield1"> <input type="text" name="username" id="username" />@ <span class="textfieldRequiredMsg">A value is required.</span></span> </td> <td valign="bottom"><select name="subdomain" id="subdomain"> <option>&lt;Select&gt;</option> <?php $select = "SELECT url FROM subdomain WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); while($row = mysql_fetch_array($selected)) { echo"<option>$row[0]</option>"; } ?> </select> </td> </tr> <tr> <td></td> <td><strong>Password</strong><br /> <span id="sprytextfield2"> <input type="password" name="password" id="password" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> <td>&nbsp;</td> </tr> <tr>

<td>&nbsp;</td> <td><strong>Path</strong><br /> <span id="sprytextfield3"> <input type="text" name="path" id="path" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><input type="submit" name="create" id="create" value="Create" /> &nbsp; <input type="reset" name="reset" id="reset" value="Cancel" /></td> <td>&nbsp;</td> </tr> </table> </div></div></td> </tr> <tr> <td>&nbsp;</td> </tr> </table> </form> <table width="100%"> <tr class="cont"> <td>Username</td> <td>Path</td> <td>Password</td> </tr> <?php $select = "SELECT username, password, path FROM ftp_account WHERE user_id='{$_SESSION['user_id']}'"; $selected = mysql_query($select); while($row = mysql_fetch_array($selected)) { echo"<tr class='cont1'>"; echo"<td>$row[0]</td>"; echo"<td>$row[2]</td>"; echo"<td>$row[1]</td>";

echo"</tr>"; } ?> </table> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your

account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {enableAnimation:false, contentIsOpen:false}); var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1"); var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");

var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3"); //--> </script> </body> </html> <?php mysql_close($con);?> Ftpaccount_code.php <?php session_start(); include 'conn.inc'; class ftpaccount{ public $g_url; function __construct(){ $this->g_url = $this->get_url(); $this->createftp(); } function get_url() { $possible = '23456789bcdfghjkmnpqrstvwxyz'; $code = ''; $i = 0; while($i < 10) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } function createftp(){ $user_id = $_SESSION['user_id']; $username = $_POST['username']; $password = $_POST['password']; $path = $_POST['path'];

$insert = sprintf("INSERT INTO ftp_account(user_id, username, password, path)VALUES('%s', '%s', '%s', '%s')", mysql_real_escape_string($user_id), mysql_real_escape_string($username), mysql_real_escape_string($password), mysql_real_escape_string($path)); $inserted = mysql_query($insert); if(mysql_affected_rows() > 0) { header('location: http://localhost/norfolk/ftpaccount.php? comment=Account created&url_id='.$this->g_url); } else { header('location: http://localhost/norfolk/ftpaccount.php? comment=Can`t Insert Record Pls Contact Admin&url_id='.$this->g_url); } } } $db = new ftpaccount(); mysql_close($con); ?> Hosting.php <?php session_start();?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Hosting :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div>

<div id="header4"><?php include'user.inc';?> </div> <div id="main_bg"><table width="800"> <tr> <td height="30" colspan="7" class="capt"><h2>Hosting plans</h2></td> </tr> <tr> <td width="142" height="30">&nbsp;</td> <td width="132">&nbsp;</td> <td width="75">&nbsp;</td> <td width="75" class="host" align="center" > 5GBFree </td> <td width="109">&nbsp;</td> <td width="75" class="host" align="center"> 5GBPro </td> <td width="160">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td class="host"> CPanel (tm) </td> <td>&nbsp;</td> <td class="ser" align="center"> No </td> <td>&nbsp;</td> <td class="ser" align="center">Yes</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td class="host"> Server </td> <td>&nbsp;</td> <td class="ser" align="center">Basic</td> <td>&nbsp;</td> <td class="ser" align="center"> Advanced </td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td class="host"> Domains </td> <td>&nbsp;</td> <td class="ser" align="center">1</td> <td>&nbsp;</td> <td class="ser" align="center"> Unlimited </td> <td>&nbsp;</td> </tr> <tr>

<td>&nbsp;</td> <td class="host"> Max file size </td> <td>&nbsp;</td> <td class="ser" align="center">1MB</td> <td>&nbsp;</td> <td class="ser" align="center"> Unlimited </td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td class="host"> FTP accounts </td> <td>&nbsp;</td> <td class="ser" align="center">1</td> <td>&nbsp;</td> <td class="ser" align="center"> Unlimited </td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td class="host"> Email </td> <td>&nbsp;</td> <td class="ser" align="center">No</td> <td>&nbsp;</td> <td class="ser" align="center"> Unlimited </td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td class="host"> File types </td> <td>&nbsp;</td> <td class="ser" align="center"> Restricted </td> <td>&nbsp;</td> <td class="ser" align="center"> Unlimited </td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td class="host"> MySQL databases </td> <td>&nbsp;</td> <td class="ser" align="center">3</td> <td>&nbsp;</td> <td class="ser" align="center"> Unlimited </td> <td>&nbsp;</td> </tr>

<tr> <td>&nbsp;</td> <td class="host"> PHP </td> <td>&nbsp;</td> <td class="ser" align="center">Yes</td> <td>&nbsp;</td> <td class="ser" align="center">Yes</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td class="host"> Custom error pages </td> <td>&nbsp;</td> <td class="ser" align="center">No</td> <td>&nbsp;</td> <td class="ser" align="center">Yes</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td class="host"> Cron jobs </td> <td>&nbsp;</td> <td class="ser" align="center">No</td> <td>&nbsp;</td> <td class="ser" align="center">Yes</td> <td>&nbsp;</td> </tr> <tr> <td >&nbsp;</td> <td class="host"> Ads </td> <td>&nbsp;</td> <td class="ser" align="center">Yes</td> <td>&nbsp;</td> <td class="ser" align="center">None</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td class="host"> Support </td> <td>&nbsp;</td> <td class="ser" align="center">Forum</td> <td>&nbsp;</td> <td class="ser" align="center">Email</td> <td>&nbsp;</td>

</tr> <tr> <td height="21" >&nbsp;</td> <td class="host"> Price </td> <td>&nbsp;</td> <td class="ser" align="center">Free</td> <td>&nbsp;</td> <td class="ser" align="center"> From $4.9</td> <td>&nbsp;</td> </tr> <tr> <td height="38">&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td align="center"><img src="images/btn_more.gif"/></td> <td>&nbsp;</td> <td align="center"><img src="images/btn_more.gif"/></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td colspan="7"><table width="800"> <tr> <td width="113">&nbsp;</td> <td colspan="5" align="center" id="cap">Use the <strong>voucher code</strong> '5GBFree' to get one month free at <a href="http://www.5gbpro.com/">5GBPro</a>.</td> <td width="16">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td width="34">&nbsp;</td> <td width="111">&nbsp;</td> <td width="164">&nbsp;</td> <td width="164">&nbsp;</td> <td width="166">&nbsp;</td>

<td>&nbsp;</td> </tr> </table> </td> </tr> </table> </div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li ></ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> Inactive_user.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) && $_SESSION['status'] != "inactive") { header('location: http://localhost/norfolk/login.php?comment=Invalid User'); } include 'conn.inc';

$select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; $sub = "SELECT subdomain_id, url FROM subdomain WHERE email='{$_SESSION['user_id']}'"; $subdomain = mysql_query($sub); $result2 = mysql_fetch_row($subdomain); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Inactive User :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /></head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <br /> <div id="sidebar1"> <p style="margin-top:70px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td>

<td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"> <table width="400"> <tr> <td width="50"><img src="images/home.gif" /></td> <td width="166" valign="bottom"><h4>List of your domains</h4></td>

<td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br /> <div class="left_ta"> <table width="458" cellpadding="2" cellspacing="1" border="0" bgcolor="#CCCCCC"> <tbody> <tr class="dblue"> <td width="150"> Domain</td> <td width="150"> Status</td> <td width="150"> Action</td> </tr> <tr class="list_accounts"> <td><?php echo $result2[1]?></td> <td><?php echo $result[5]?></td> <td><a>Go to Cpanel</a></td> </tr> </tbody> </table>

</div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br>

<table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> <?php mysql_close($con);?> Index.php <?php session_start();?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Home :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="home_c"><img align="middle" alt="Servers" src="images/serverbar.jpg" /></div> <div id="home_in"><table width="800" height="500"> <tr> <td width="16" height="193">&nbsp;</td> <td width="231" align="center"><table width="231" height="206" > <tr> <td width="9" height="200">&nbsp;</td> <td width="195"><div id="reg"> <table width="203" height="196"> <tr> <td width="45">&nbsp;</td> <td width="36">&nbsp;</td> <td width="54">&nbsp;</td> <td width="47">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td height="63">&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr>

<tr> <td height="46" colspan="2">&nbsp;<img src="images/btn_more.gif" /></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </div></td> <td width="10">&nbsp;</td> </tr> </table></td> <td width="21">&nbsp;</td> <td width="232"><table width="231" height="206" > <tr> <td width="9" height="200">&nbsp;</td> <td width="195"><div id="acti"> <table width="203" height="199"> <tr> <td width="45">&nbsp;</td> <td width="36">&nbsp;</td> <td width="54">&nbsp;</td> <td width="47">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td height="63">&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td height="46" colspan="2">&nbsp;<img src="images/btn_more.gif" /></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </div></td> <td width="10">&nbsp;</td> </tr>

</table></td> <td width="21">&nbsp;</td> <td width="231"><table width="231" height="206" > <tr> <td width="9" height="200">&nbsp;</td> <td width="195"><div id="man"> <table width="203" height="199"> <tr> <td width="45">&nbsp;</td> <td width="36">&nbsp;</td> <td width="54">&nbsp;</td> <td width="47">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td height="63">&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td height="46" colspan="2">&nbsp;<img src="images/btn_more.gif" /></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </div></td> <td width="10">&nbsp;</td> </tr> </table></td> <td width="16">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><br /><img id="hdr_services" src="images/hdr_services.gif" width="67" height="21" alt="Service" /></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td>

<td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td colspan="6" class="ser"> We offer fully featured hosting that usually costs around $20 absolutely free. All accounts have 5GB space, 20GB bandwidth, 10 MySQL Databases and PHP scripting. You can either use your own domain name, if you have one, or get a free subdomain. Many other features as standard. We display one small advert on the bottom of your site but you are free to run adverts of your own. The only condition we put on members sites is that no illegal or pornographic material is permitted.<br /> Our servers are hosted at several large providers and all have 100 mbit, unmetered uplinks to provide the best hosting quality money can buy! Our servers are monitored 24/7; both the server hardware and your site. We immediately come to the rescue if any problems occur. If you have any comments, tips or complaints obout our service, you can always mail us and we will help you! Customer satisfaction is our number one. </td> </tr> <tr> <td>&nbsp;</td> <td><table width="231" height="106"> <tr> <td><img src="images/dynamic1.jpg"/></td> </tr> </table></td> <td>&nbsp;</td> <td><table width="231" height="106"> <tr> <td><img src="images/dynamic.jpg"/></td> </tr> </table></td> <td>&nbsp;</td> <td><table width="231" height="106"> <tr> <td><img src="images/dynamic2.jpg"/></td> </tr> </table></td> <td>&nbsp;</td> </tr> </table> </div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul>

<li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> Login.php <?php session_start();?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Registration :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <script src="css/SpryValidationTextField.js" type="text/javascript"></script> <script src="css/SpryValidationCheckbox.js" type="text/javascript"></script> <link href="css/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> <link href="css/SpryValidationCheckbox.css" rel="stylesheet" type="text/css" /></head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?>

</div></div> <div id="header3"></div> <div id="header4"> <table width="800"> <tr> <td><div id="hmenu"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> </div></td> <td></td> <td></td> <td></td> </tr> </table> </div> <div id="main_bg"><table width="800"> <form action="login_code.php" method="post"> <tr> <td width="31">&nbsp;</td> <td width="62">&nbsp;</td> <td width="349"><table width="100%"> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td >&nbsp;</td> </tr> <tr> <td colspan="3"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment";

echo"</div>"; ?></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table></td> <td width="29">&nbsp;</td> <td width="30">&nbsp;</td> <td width="30">&nbsp;</td> <td width="30">&nbsp;</td> <td width="30">&nbsp;</td> <td width="30">&nbsp;</td> <td width="30">&nbsp;</td> <td width="101">&nbsp;</td> </tr> <tr> <td height="41">&nbsp;</td> <td><img src="images/login.gif" /></td> <td valign="bottom"><h4>Please login to your account</h4></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td height="41"> </tr> <tr> <td height="27">&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr>

<tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><strong>Email</strong><br /> <span id="sprytextfield2"> <input type="text" name="email" id="email" size="30"/> <span class="textfieldRequiredMsg">Subdomain required.</span></span></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><strong>Password</strong><br /> <span id="sprytextfield5"> <input type="password" name="password" id="password" size="30"/> <span class="textfieldRequiredMsg">Your name is required.</span></span></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td>

</tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><strong>Type words that you see in the image:</strong></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><img src="CaptchaSecurityImages.php?width=160&height=40&characters=7" alt="captcha"/> <br /> <br /> <strong>Security Code</strong><br /> <span id="sprytextfield1"> <input type="text" name="security_code" id="security_code" size="30" /> <span class="textfieldRequiredMsg">Image value is required.</span></span></td><td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><table width="349"> <tr> <td width="33">&nbsp;</td> <td width="107" align="right"><input type="submit" name="button" id="button" value="login" /></td> <td width="193">&nbsp;</td> </tr>

</table> </td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </form> </table> </div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div>

<script type="text/javascript"> <!-var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1"); var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2"); var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5"); var sprycheckbox1 = new Spry.Widget.ValidationCheckbox("sprycheckbox1"); var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> Login_code.php <?php session_start(); include 'conn.inc'; class login_user { function __construct() { $this->login(); } function get_url() { $possible = '23456789bcdfghjkmnpqrstvwxyz'; $code = ''; $i = 0; while($i < 10) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } function login() {

$g_url = $this->get_url(); $email = $_POST['email']; $password = $_POST['password']; if(!empty($email) && !empty($password)) { $select = "SELECT first_name, status FROM registration WHERE email ='$email' AND password='$password'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected);

if(mysql_num_rows($selected) > 0) { $_SESSION['name'] = $result[0]; $_SESSION['user_id'] = $email; $status = $result[1]; $_SESSION['status'] = $result[1]; $last = date("Y-m-d H:i:s"); $pass = "UPDATE registration SET last_login_date='$last' WHERE email='$email'"; $passed = mysql_query($pass); if($status == "inactive") { header('location: http://localhost/norfolk/inactive_user.php? comment=Pls verity your account with your email&url_id'.$this->g_url); } elseif($status == "active") { header('location: http://localhost/norfolk/user.php'); } else { unset($_SESSION['name']); unset($_SESSION['user_id']); unset($_SESSION['status']); header('location: http://localhost/norfolk/login.php? comment=Invalid User&url_id='.$this->g_url);

} } else { header('location: http://localhost/norfolk/login.php? comment=Invalid User&url_id='.$this->g_url); } } else { header('location: http://localhost/norfolk/login.php?comment=Enter ur username and password&url_id='.$this->g_url); } } } $user = new login_user(); mysql_close($con); ?> Logout.php <?php session_start(); unset($_SESSION['user_id']); unset($_SESSION['name']); unset($_SESSION['status']); unset($_SESSION['url']); header('location: http://localhost/norfolk/index.php'); ?> Mail.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) || $_SESSION['status'] ! = "active") { header('location: http://localhost/norfolk/inactive_user.php'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select);

$result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Mail :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <link href="css/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" /> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <script src="css/SpryCollapsiblePanel.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <table width="100%"> <tr> <td id="cpanel"> <ul> <li><a href="http://localhost/norfolk/managesite.php" title="Manage Site :::" target="_parent">Manage site</a></li> <li><a href="http://localhost/norfolk/subdomain.php" title="Sub domain :::" target="_parent">Subdomain</a></li> <li><a href="http://localhost/norfolk/cronjob.php" title="Cron Job :::" target="_parent">Cron job</a></li> <li><a href="http://localhost/norfolk/mysql.php" title="Mysql :::" target="_parent">Mysql</a></li>

<li><a href="http://localhost/norfolk/filemanager.php" title="File Manager :::" target="_parent">File manager</a></li> <li><a href="http://localhost/norfolk/ftpaccount.php" title="Ftp account :::" target="_parent">Ftp account</a></li> <li><a href="http://localhost/norfolk/access.php" title="Access :::" target="_parent">Access and Error</a></li> </ul></td> </tr> </table> <br /> <div id="sidebar1"> <p style="margin-top:70px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td>

</tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/images (6).jpg"/></td> <td width="166" valign="bottom"><h4>Mail</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table>

</div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Mail</td> </tr> </table> </div> <div class="cpanel"> <form action="mail_code.php" method="post"> <table width="100%"> <tr> <td><div id="CollapsiblePanel1" class="CollapsiblePanel"> <div class="CollapsiblePanelTab"><a title="Add Mail">Create Mail Account</a></div> <div class="CollapsiblePanelContent"> <table width="100%"> <tr> <td width="19%">&nbsp;</td> <td width="40%">&nbsp;</td> <td width="41%">&nbsp;</td> </tr> <tr> <td></td> <td><strong>Email</strong><br /> <span id="sprytextfield1"> <input type="text" name="email" id="email" />@ <span class="textfieldRequiredMsg">*</span></span></td> <td valign="bottom"><select name="subdomain" id="subdomain" > <option>&lt;Select&gt;</option> <?php $select = "SELECT url FROM subdomain WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); while($row = mysql_fetch_array($selected)) { echo"<option>$row[0]</option>"; } ?> </select> </td> </tr> <tr>

<td></td> <td><strong>Password</strong><br /> <span id="sprytextfield2"> <input type="password" name="password" id="password" /> <span class="textfieldRequiredMsg">*</span></span></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Confirm Password</strong><br /> <span id="sprytextfield3"> <input type="password" name="cpassword" id="cpassword" /> <span class="textfieldRequiredMsg">*</span></span></td> <td>&nbsp;</td> </tr> <tr> <td></td> <td><strong>Mailbox Size Limit, MB</strong><br /><input type="text" name="mailbox" id="mailbox" /></td> <td>&nbsp;</td> </tr> <tr> <td></td> <td><strong>Reply to Address</strong><br /><input type="text" name="reply" id="reply" /></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td></td> <td><strong>Enable Autoresponder</strong><br /><input type="checkbox" name="auto" id="auto" /></td> <td>&nbsp;</td> </tr> <tr> <td></td> <td><strong>Subject</strong><br /><input type="text" name="subject" id="subject" /></td> <td>&nbsp;</td> </tr>

<tr> <td></td> <td><strong>Message</strong><br /> <textarea name="message" id="message"></textarea></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td></td> <td><strong>Forward Mail to Address</strong><br /><input type="text" name="forward" id="forward" /></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><input type="submit" name="create" id="create" value="Create" /> &nbsp; <input type="reset" name="reset" id="reset" value="Cancel" /></td> <td>&nbsp;</td> </tr> </table> </div></div></td> </tr> <tr> <td>&nbsp;</td> </tr> </table> </form> <table width="100%"> <tr class="cont"> <td>Mail Account</td> </tr> <?php $sel = "SELECT email_sub FROM mail WHERE user_id='{$_SESSION['user_id']}'"; $sele = mysql_query($sel);

while($row = mysql_fetch_array($sele)) { echo"<tr class='cont1'>"; echo"<td>$row[0]</td>"; echo"</tr>"; } ?> </table> <br /> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br>

<table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!--

var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {enableAnimation:false, contentIsOpen:false}); var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1"); var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2"); var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3"); //--> </script> </body> </html> <?php mysql_close($con);?> Mail_code.php <?php session_start(); include 'conn.inc'; class email{ public $g_url; function __construct(){ $this->g_url = $this->get_url(); $this->createmail(); } function get_url(){ $possible = '23456789bcdfghjkmnpqrstvwxyz'; $code = ''; $i = 0; while($i < 10) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; }

function check(){

} function createmail(){ if($_POST['subdomain'] == '<Select>' || $_POST['subdomain'] == '') { header('location: http://localhost/norfolk/mail.php?comment=Select a subdomain&url_id='.$this->g_url); } elseif($_POST['cpassword'] != $_POST['password']) { header('location: http://localhost/norfolk/mail.php? comment=Confirm password must be password&url_id='.$this->g_url); } else { if($_POST['create'] == "Create") { $user_id = $_SESSION['user_id']; $subdomain = $_POST['subdomain']; $email = $_POST['email']; $password = $_POST['password']; $mailbox = $_POST['mailbox']; $reply = $_POST['reply']; $auto = $_POST['auto']; $subject = $_POST['subject']; $message = $_POST['message']; $forward = $_POST['forward']; $mail = $email.'@'.$subdomain;

$insert = sprintf("INSERT INTO mail(user_id, email_sub, password, size, reply_add, autoresponds, subject, message, forward_add)VALUES('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", mysql_real_escape_string($user_id), mysql_real_escape_string($mail), mysql_real_escape_string($password),

mysql_real_escape_string($mailbox), mysql_real_escape_string($reply), mysql_real_escape_string($auto), mysql_real_escape_string($subject), mysql_real_escape_string($message), mysql_real_escape_string($forward)); $inserted = mysql_query($insert); if(mysql_affected_rows()) { header('location: http://localhost/norfolk/mail.php? comment=Email Added&url_id='.$this->g_url); } else { header('location: http://localhost/norfolk/mail.php? comment=Can`t inser Email&url_id='.$this->g_url); } } else { header('location: http://localhost/norfolk/mail.php? comment=Enter Email Information&url_id='.$this->g_url); } } } } $mail = new email(); mysql_close($con); ?> Managesite.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) || $_SESSION['status'] ! = "active") { header('location: http://localhost/norfolk/inactive_user.php'); }

include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Manage site :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /></head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <table width="100%"> <tr> <td id="cpanel"> <ul> <li><a href="http://localhost/norfolk/subdomain.php" title="Sub domain :::" target="_parent">Subdomain</a></li> <li><a href="http://localhost/norfolk/mail.php" title="Mail :::" target="_parent">Mail</a></li> <li><a href="http://localhost/norfolk/cronjob.php" title="Cron Job :::" target="_parent">Cron job</a></li> <li><a href="http://localhost/norfolk/mysql.php" title="Mysql :::" target="_parent">Mysql</a></li>

<li><a href="http://localhost/norfolk/filemanager.php" title="File Manager :::" target="_parent">File manager</a></li> <li><a href="http://localhost/norfolk/ftpaccount.php" title="Ftp account :::" target="_parent">Ftp account</a></li> <li><a href="http://localhost/norfolk/access.php" title="Access :::" target="_parent">Access and Error</a></li> </ul></td> </tr> </table> <br /> <div id="sidebar1"> <p style="margin-top:70px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td>

</tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/images (4).jpg" /></td> <td width="166" valign="bottom"><h4>Manage your site</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table>

</div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Manage Site</td> </tr> </table> </div> <div class="cpanel"> <br /> <table width="100%" cellpadding="2" cellspacing="1"> <tr class="cont"> <td width="50%">Subomain</td> <td width="23%">Action</td> <td width="27%">Updated</td> </tr> <?php $select = "SELECT subdomain, subdomain_id, updated_date FROM subdomain WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); while($row = mysql_fetch_array($selected)) { echo"<tr class='cont1'>"; echo"<td>$row[0]</td>"; echo"<td><a href='folder.php?id=$row[0]' title='view subdomain' ><img src='images/b_view.png' alt='view subdomain' /></a>&nbsp; &nbsp; <a href='folder.php? id=$row[0]' title='edit subdomain' ><img src='images/b_edit.png' alt='edit subdomain' /></a></td>"; echo"<td>$row[2]</td>"; echo"</tr>"; } ?> </table> <br /> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div>

<div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div>

<br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> <?php mysql_close($con);?> Message.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) && $_SESSION['status'] != "inactive") { header('location: http://localhost/norfolk/login.php?comment=Invalid User'); } include 'conn.inc';

$select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Messages :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <div id="sidebar1"> <p style="margin-top:85px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr>

<tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/images.jpg"/></td> <td width="166" valign="bottom"><h4>Messages</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp">

<td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Inbox</td> </tr> </table> </div> <div class="cpanel"> <form action="delectinbox.php" method="post"> <table width="100%" cellpadding="2" cellspacing="1"> <tr> <td width="16%" height="38"><a class="butt" href="sentbox.php" target="" title="sentbox">SentBox</a></td> <td width="11%">&nbsp;</td> <td width="12%">&nbsp;</td> <td width="21%">&nbsp;</td> <td width="13%">&nbsp;</td> <td width="27%"><a class="butt" href="newmail.php" target="" title="New Message">New Message</a></td> </tr> <tr> <td height="27"></td> <td></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td>

</tr> </table> <table width="100%" cellpadding="2" cellspacing="1"> <tr class="cont"> <td width="5%">&nbsp;</td> <td width="25%">From</td> <td width="39%">Subject</td> <td width="28%">Date</td> <td width="3%">&nbsp;</td> </tr> <?php $select = "SELECT user_id_from, subject, message_date, check_read, message_id FROM inbox WHERE user_id_to='{$_SESSION['user_id']}'"; $selected = mysql_query($select); while($row = mysql_fetch_array($selected)) { echo"<tr class='$row[3]'>"; echo"<td><input name='check' id='check' type='checkbox' value='$row[4]' /></td>"; echo"<td>$row[0]</td>"; echo"<td><a href='viewmessage.php?message_id=$row[4]' target='_parent' title''>$row[1]</a></td>"; echo"<td>$row[2]</td>"; echo"<td align='right'><a href='delectinbox.php? message_id=$row[4]&4rm=inbox' title='delete' ><img src='images/b_drop.png' alt='delete' /></a></td>"; echo"</tr>"; } ?> </table> </form> <br /> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0">

<tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div> <br /> </div> </div>

<div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> <?php mysql_close($con);?> Mysql.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) || $_SESSION['status'] ! = "active") { header('location: http://localhost/norfolk/inactive_user.php'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select);

$result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>My Sql :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <link href="css/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" /> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <script src="css/SpryCollapsiblePanel.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <table width="100%"> <tr> <td id="cpanel"> <ul> <li><a href="http://localhost/norfolk/managesite.php" title="Manage Site :::" target="_parent">Manage site</a></li> <li><a href="http://localhost/norfolk/subdomain.php" title="Sub domain :::" target="_parent">Subdomain</a></li> <li><a href="http://localhost/norfolk/mail.php" title="Mail :::" target="_parent">Mail</a></li> <li><a href="http://localhost/norfolk/cronjob.php" title="Cron Job :::" target="_parent">Cron job</a></li> <li><a href="http://localhost/norfolk/filemanager.php" title="File Manager :::" target="_parent">File manager</a></li>

<li><a href="http://localhost/norfolk/ftpaccount.php" title="Ftp account :::" target="_parent">Ftp account</a></li> <li><a href="http://localhost/norfolk/access.php" title="Access :::" target="_parent">Access and Error</a></li> </ul></td> </tr> </table> <br /> <div id="sidebar1"> <p style="margin-top:70px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr>

</table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/images (9).jpg" /></td> <td width="166" valign="bottom"><h4>MySql</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br />

<div class="cpanelheader"><table width="460"> <tr class="cp"> <td> MySql</td> </tr> </table> </div> <div class="cpanel"> <form action="mysql_code.php" method="post"> <table width="100%"> <tr> <td width="12%">&nbsp;</td> <td width="62%">&nbsp;</td> <td width="26%">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Database Name</strong><br /> <span id="sprytextfield1"> <input type="text" name="database" id="database" /> <span class="textfieldRequiredMsg">A value is required.</span></span> </td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><strong>Password</strong><br /> <span id="sprytextfield2"> <input type="password" name="password" id="password" /> <span class="textfieldRequiredMsg">A value is required.</span></span> </td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><input type="submit" name="create" id="create" value="Create" /> &nbsp; <input type="reset" name="reset" id="reset" value="Cancel" /></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td>

<td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </form> <br /> <table width="100%"> <tr class="cont"> <td>Database</td> <td>Size</td> <td>Password</td> </tr> <?php $select ="SELECT database_name, password, size FROM mysql_db WHERE user_id='{$_SESSION['user_id']}'"; $selected = mysql_query($select); while($row = mysql_fetch_array($selected)) { echo"<tr class='cont1'>"; echo"<td>$row[0]</td>"; echo"<td>$row[1]</td>"; echo"<td>$row[2]</td>"; echo"</tr>"; } ?> </table> <br /> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr>

</tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div>

<div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {enableAnimation:false, contentIsOpen:false}); var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1"); var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2"); //--> </script> </body> </html> <?php mysql_close($con);?> Mysql_code.php <?php session_start(); include 'conn.inc'; class mysqldb{ public $g_url; function __construct(){ $this->g_url = $this->get_url();

$this->createdb(); } function get_url() { $possible = '23456789bcdfghjkmnpqrstvwxyz'; $code = ''; $i = 0; while($i < 10) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } function createdb(){ $user_id = $_SESSION['user_id']; $database = $_POST['database']; $password = $_POST['password']; $size = 500; $insert = sprintf("INSERT INTO mysql_db(user_id, database_name, password, size)VALUES('%s', '%s', '%s', '%s')", mysql_real_escape_string($user_id), mysql_real_escape_string($database), mysql_real_escape_string($password), mysql_real_escape_string($size)); $inserted = mysql_query($insert); if(mysql_affected_rows() > 0) { header('location: http://localhost/norfolk/mysql.php? comment=Database created&url_id='.$this->g_url); } else { header('location: http://localhost/norfolk/mysql.php? comment=Can`t Insert Record Pls Contact Admin&url_id='.$this->g_url); } } }

$db = new mysqldb(); mysql_close($con); ?> Newmail.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) && $_SESSION['status'] != "inactive") { header('location: http://localhost/norfolk/login.php?comment=Invalid User'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Inbox Messages :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br />

<div id="sidebar1"> <p style="margin-top:85px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table>

</div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/images.jpg"/></td> <td width="166" valign="bottom"><h4>Messages</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> New Message</td> </tr> </table> </div> <div class="cpanel"> <form action="newmail_code.php" method="post">

<table width="100%"> <tr> <td height="34" align="right">To:</td> <td><input type="text" name="to" id="to" size="50"/></td> <td></td> </tr> <tr> <td height="34" align="right">Subject:</td> <td><input type="text" name="subject" id="subject" size="50" /></td> <td></td> </tr> <tr> <td width="23%" height="34" align="right">Message:</td> <td width="59%"><textarea name="message" cols="40" id="message"></textarea></td> <td width="18%"></td> </tr> <tr> <td height="27"></td> <td align="right"><input type="submit" name="submit" id="submit" value="Send" />&nbsp;<input name="cancel" type="reset" value="Cancel"/></td> <td>&nbsp;</td> </tr> </table> </form> <table width="100%" cellpadding="2" cellspacing="1"> <tr> <td width="13%" height="49"><a class="butt" href="inbox.php" target="" title="Inbox">InBox</a></td> <td width="78%"><a class="butt" href="sentbox.php" target="" title="sentbox">SentBox</a></td> <td width="9%">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> <br /> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td>

</tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr>

</tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> <?php mysql_close($con);?> Newmail_code.php <?php session_start(); include 'conn.inc'; class sendMessage{

public $g_url; function __construct(){ $this->g_url = $this->get_url(); $this->createmail(); } function auto(){ $possible = '123456789'; $code = ''; $i = 0; while($i < 6) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } function get_url() { $possible = '23456789bcdfghjkmnpqrstvwxyz'; $code = ''; $i = 0; while($i < 10) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } function sendmail($email){ $possible = '123456789'; $message_id = ''; $i = 0; while($i < 6) {

$message_id .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } $sender = 'Site Auto Generate'; $receiver = $email; $subject = 'Active Ur Account'; $mail = $message; $date = date("Y-m-d H:i:s"); $check = 'no'; $mail = sprintf("INSERT INTO inbox(user_id_from, message_id, user_id_to, subject, message, message_date, check_read)VALUES('%s', $message_id, '%s', '%s', '%s', '$date', '%s')", mysql_real_escape_string($sender), mysql_real_escape_string($receiver), mysql_real_escape_string($subject), mysql_real_escape_string($mail), mysql_real_escape_string($check)); $mailed = mysql_query($mail); } function createmail(){ $message_id = $this->auto(); $user_id = $_SESSION['user_id']; $to = $_POST['to']; $subject = $_POST['subject']; $message = $_POST['message']; $date = date("Y-m-d H:i:s"); $check = 'no';

$mail = sprintf("INSERT INTO inbox(user_id_from, message_id, user_id_to, subject, message, message_date, check_read)VALUES('%s', $message_id, '%s', '%s', '%s', '$date', '%s')", mysql_real_escape_string($user_id), mysql_real_escape_string($to), mysql_real_escape_string($subject), mysql_real_escape_string($message), mysql_real_escape_string($check)); $mailed = mysql_query($mail);

if(mysql_affected_rows()) { $sent = sprintf("INSERT INTO sentbox(user_id_from, message_id, user_id_to, subject, message, message_date)VALUES('%s', $message_id, '%s', '%s', '%s', '$date')", mysql_real_escape_string($user_id), mysql_real_escape_string($to), mysql_real_escape_string($subject), mysql_real_escape_string($message)); $sentbox = mysql_query($sent); if(mysql_affected_rows()) { header('location: http://localhost/norfolk/newmail.php?comment=Mail Sent&url_id='.$this->g_url); } else { $del = "DELECT FROM inbox WHERE message_id='$message_id'"; $deleted = mysql_query($del); header('location: http://localhost/norfolk/newmail.php?comment=Can`t send mail&url_id='.$this->g_url); } } else { header('location: http://localhost/norfolk/newmail.php? comment=Can`t send mail&url_id='.$this->g_url); } } } $message = new sendMessage(); mysql_close($con); ?> Notecode.php <?php session_start();

include 'conn.inc'; class sendNote{ public $g_url; function __construct(){ $this->g_url = $this->get_url(); $this->createnote(); } function auto(){ $possible = '123456789'; $code = ''; $i = 0; while($i < 6) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } function get_url() { $possible = '23456789bcdfghjkmnpqrstvwxyz'; $code = ''; $i = 0; while($i < 10) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } function createnote(){ $noteid = $this->auto(); $user_id = $_SESSION['user_id']; $note = $_POST['note'];

$date = date("Y-m-d H:i:s");

$note = sprintf("INSERT INTO note(user_id, note_id, message, note_date)VALUES('%s', $noteid, '%s', '$date')", mysql_real_escape_string($user_id), mysql_real_escape_string($note)); $noted = mysql_query($note); if(mysql_affected_rows()) { header('location: http://localhost/norfolk/user.php'); } else { header('location: http://localhost/norfolk/user.php? comment=Can`t send mail&url_id='.$this->g_url); } } } $message = new sendNote(); mysql_close($con); ?> Registration.php <?php session_start();?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Registration :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <script src="css/SpryValidationTextField.js" type="text/javascript"></script> <script src="css/SpryValidationCheckbox.js" type="text/javascript"></script> <link href="css/SpryValidationTextField.css" rel="stylesheet" type="text/css" />

<link href="css/SpryValidationCheckbox.css" rel="stylesheet" type="text/css" /> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"><table width="800"> <form action="registration_code.php" method="post"> <tr> <td width="31">&nbsp;</td> <td width="62">&nbsp;</td> <td width="349"><table width="100%"> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td >&nbsp;</td> </tr> <tr> <td colspan="3"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table></td> <td width="29">&nbsp;</td> <td width="30">&nbsp;</td> <td width="30">&nbsp;</td> <td width="30">&nbsp;</td> <td width="30">&nbsp;</td>

<td width="30">&nbsp;</td> <td width="30">&nbsp;</td> <td width="101">&nbsp;</td> </tr> <tr> <td height="40">&nbsp;</td> <td><img src="images/contact.gif" /></td> <td><h4>Order Free Web Hosting</h4></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td height="41"> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><strong>Choose your free subdomain</strong><br /> <span id="sprytextfield1"> <input type="text" name="subdomain" id="subdomain" size="30"/>.nfg.com <span class="textfieldRequiredMsg">Subdomain required.</span></span></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td>

<td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><strong>First name</strong><br /> <span id="sprytextfield2"> <input type="text" name="fname" id="fname" size="30"/> <span class="textfieldRequiredMsg">Your name is required.</span></span></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr>

<tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><strong>Last name</strong><br /> <span id="sprytextfield3"> <input type="text" name="lname" id="lname" size="30"/> <span class="textfieldRequiredMsg">Your name is required.</span></span></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><strong>Your email</strong> (details will be sent there also ur username)<br /> <span id="sprytextfield4"> <input type="text" name="email" id="email" size="30" /> <span class="textfieldRequiredMsg">Your email is required.</span></span></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td>

</tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><strong>Password</strong> (at least 6 symbols, both letters and numbers)<br /> <span id="sprytextfield5"> <input type="password" name="pass" id="pass" size="30" /> <span class="textfieldRequiredMsg">Password is required.</span></span></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><strong>Type password again</strong><br /> <span id="sprytextfield6"> <input type="password" name="cpass" id="cpass" size="30"/> <span class="textfieldRequiredMsg">Confirm password required.</span></span></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td height="24">&nbsp;</td> <td>&nbsp;</td> <td></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td>

<td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><strong>Type words that you see in the image:</strong></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><img src="CaptchaSecurityImages.php?width=160&height=40&characters=7" alt="captcha"/> <br /> <br /> <strong>Security Code</strong><br /> <span id="sprytextfield7"> <input type="text" name="security_code" id="security_code" size="30" /> <span class="textfieldRequiredMsg">Image value is required.</span></span></td><td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td>

<td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><span id="sprycheckbox1"> <input type="checkbox" name="term" id="term" />I agree to <a href="" target="_blank">Terms Of Service</a> <span class="checkboxRequiredMsg">Term must be acepted.</span></span> </td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><table width="349"> <tr> <td width="33">&nbsp;</td> <td width="123"><input type="submit" name="button" id="button" value="Create my account" /></td> <td width="177">&nbsp;</td> </tr> </table> </td>

<td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </form> </table> </div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript">

<!-var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1"); var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2"); var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3"); var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4"); var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5"); var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6"); var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7"); var sprycheckbox1 = new Spry.Widget.ValidationCheckbox("sprycheckbox1"); var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> Registration_code.php <?php session_start(); include 'conn.inc'; class Registration{ public $g_url; function __construct(){ $this->g_url = $this->get_url(); $this->event_submit(); } function sendmail($email){ $possible = '123456789'; $message_id = ''; $i = 0; while($i < 6) { $message_id .= substr($possible, mt_rand(0, strlen($possible)-1), 1);

$i++; } $sender = 'Site Auto Generate'; $receiver = $email; $subject = 'Active Ur Account'; $mail = "<table width='350px'> <tr> <td>&nbsp;</td> <td align='center'><a href='http://localhost/norfolk/active.php' target='_parent' >Click here to verify your account</a></td> <td>&nbsp;</td> </tr> </table>"; $date = date("Y-m-d H:i:s"); $check = 'no'; $mail = sprintf("INSERT INTO inbox(user_id_from, message_id, user_id_to, subject, message, message_date, check_read)VALUES('%s', $message_id, '%s', '%s', '%s', '$date', '%s')", mysql_real_escape_string($sender), mysql_real_escape_string($receiver), mysql_real_escape_string($subject), mysql_real_escape_string($mail), mysql_real_escape_string($check)); $mailed = mysql_query($mail); } function auto() { $possible = '123456789'; $code = ''; $i = 0; while($i < 6) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } function get_url() {

$possible = '23456789bcdfghjkmnpqrstvwxyz'; $code = ''; $i = 0; while($i < 10) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } function event_submit(){ if(isset($_POST['button'])){ if($_POST['pass'] == $_POST['cpass']) { $this->check_subdomain(); } else{ /* Confirm password must match the password field*/ header('location: http://localhost/norfolk/registration.php?comment=Confirm Password Must Match Password&url_id='.$this->g_url); } } else{ header('location: http://localhost/norfolk/registration.php? comment=Invalid User&url_id='.$this->g_url); } } function check_subdomain(){

if($_SESSION['security_code'] == $_POST['security_code'] && ! empty($_SESSION['security_code'])){ $select = "SELECT subdomain FROM subdomain WHERE subdomain= '{$_POST['subdomain']}'"; $selected = mysql_query($select);

if(mysql_num_rows($selected) > 0) { header('location: http://localhost/norfolk/registration.php?comment=Subdomain Already Exist Pls Try Another&url_id='.$this->g_url); } else { $sel_username= "SELECT email FROM registration WHERE email= '{$_POST['email']}'"; $select_username = mysql_query($sel_username); if(mysql_num_rows($select_username) > 0) { header('location: http://localhost/norfolk/registration.php?comment=Email already exist pls use another&url_id='.$this->g_url); } else { $sub_id = $this->auto(); $fname = $_POST['fname']; $lname = $_POST['lname']; $subdomain = $_POST['subdomain']; $password = $_POST['pass']; $email = $_POST['email']; $url = $subdomain.'.nfg.com'; $status = 'inactive'; $reg_date = date("Y-m-d H:i:s"); $last = date("Y-m-d H:i:s"); $role = 'user'; $statusub = 'Not Created'; $insert = sprintf("INSERT INTO registration(first_name, last_name, email, password, role, status, registration_date, last_login_date)VALUES('%s', '%s', '%s', '%s', '%s', '%s', '$reg_date', '$last')", mysql_real_escape_string($fname), mysql_real_escape_string($lname),

mysql_real_escape_string($email), mysql_real_escape_string($password), mysql_real_escape_string($role), mysql_real_escape_string($status)); $inserted = mysql_query($insert); if(mysql_affected_rows()) { $sub = sprintf("INSERT INTO subdomain(subdomain_id, subdomain, updated_date, email, url, status)VALUES($sub_id, '%s', '$reg_date', '%s', '%s', '%s')", mysql_real_escape_string($subdomain), mysql_real_escape_string($email), mysql_real_escape_string($url), mysql_real_escape_string($statusub)); $subdomain = mysql_query($sub); if(mysql_affected_rows()) { $_SESSION['user_id'] = $email; $_SESSION['name'] = $fname; $_SESSION['status'] = $status; $this>sendmail($email); header('location: http://localhost/norfolk/inactive_user.php?comment=Confirmation mail is sent to your email pls verify&url_id='.$this->g_url);

} else { header('location: http://localhost/norfolk/registration.php?comment=Can`t Insert Record Pls Contact Admin&url_id='.$this->g_url); } } else { header('location: http://localhost/norfolk/registration.php?comment=Can`t Insert Record Pls Contact Admin&url_id='.$this->g_url); } } } } else { header('location: http://localhost/norfolk/registration.php?comment=Incorrect Security Code, Try Again&url_id='.$this->g_url); } } } $regi = new registration(); mysql_close($con); ?> Sentbox.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) && $_SESSION['status'] != "inactive") { header('location: http://localhost/norfolk/login.php?comment=Invalid User'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected); $name = $result[0];

$name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Sent Messages :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <div id="sidebar1"> <p style="margin-top:85px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr>

<td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/images.jpg"/></td> <td width="166" valign="bottom"><h4>Messages</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458">

<tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Inbox</td> </tr> </table> </div> <div class="cpanel"> <table width="100%" cellpadding="2" cellspacing="1"> <tr> <td width="13%" height="34"><a class="butt" href="message.php" target="_parent" title="Inbox">Inbox</a></td> <td width="18%">&nbsp;</td> <td width="8%">&nbsp;</td> <td width="21%">&nbsp;</td> <td width="15%">&nbsp;</td> <td width="25%"><a class="butt" href="newmail.php" target="" title="New Message">New Message</a></td> </tr> <tr> <td height="27"></td> <td></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table>

<table width="100%" cellpadding="2" cellspacing="1"> <tr class="cont"> <td width="4%">&nbsp;</td> <td width="26%">To</td> <td width="39%">Subject</td> <td width="28%">Date</td> <td width="3%">&nbsp;</td> </tr> <?php $select = "SELECT user_id_to, subject, message_date, message_id FROM sentbox WHERE user_id_from='{$_SESSION['user_id']}'"; $selected = mysql_query($select); while($row = mysql_fetch_array($selected)) { echo"<tr class='cont1'>"; echo"<td><input name='check' type='checkbox' value='$row[3]' /></td>"; echo"<td>$row[0]</td>"; echo"<td><a href='viewmessage.php' target='_parent' title='$row[1]'>$row[1]</a ></td>"; echo"<td>$row[2]</td>"; echo"<td><a href='delectinbox.php?message_id=$row[3]&4rm=sentbox' title='delete' ><img src='images/b_drop.png' alt='delete' /></a></td>"; echo"</tr>"; } ?> </table> <br /> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table>

<br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer">

<ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> <?php mysql_close($con);?> Sentmail.php <?php session_start(); /*<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />*/ $name = $_SESSION['name']; $email = $_SESSION['user_id']; $status = "active"; $header = '!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'. "\r\n"; $header .= 'MIME-Version: 1.0' . "\r\n"; $header .= 'Content-Type content=text/html; charset=utf-8'; $message = "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head>

<title>Activation mail :::</title> <link href='css/style.css' type='text/css' rel='stylesheet' /> </head> <body class='twoColFixRtHdr'> <div id='header1'> <div id='header2'></div> <div id='header3'></div> <div id='main_bg'> <table width='100%'> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td width='4%'>&nbsp;</td> <td width='84%'> Welcome ".$name."<br /> <br /> Your registration to Norfolk is almost complete! We'd love to get you started, but <strong>we need you to verify your email first.</strong> </td> <td width='12%'>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td align='center' ><table width='100%'> <tr> <td width='24%'>&nbsp;</td> <td width='52%' align='center' ><a href='login.php?status=".$status."' target='_blank' >Click here to verify your account </a></td> <td width='24%'>&nbsp;</td> </tr> </table> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td>

<td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><p><strong>MANAGING YOUR SITE</strong> <br /> You can manage it by logging into nfg.com and entering your email address and password: <br /> <br /> </p> <ul> <strong>Email:</strong> ".$email."<br /> <strong>Password</strong> ********</a> </ul> <p><strong>STARTER'S TIPS</strong><br /> The first days of site building are exciting, here are some helpful tips:</p> <ol> <li><strong>Your Website Address</strong> is <a href='http://www.jopooshun.webs.com/' target='_blank'>http://jopooshun.webs.com</a>. Did you know that you can get a custom site address like www.jopooshun.com? Just sign in and visit the Domain Name section to learn more about domain names.</li> <li><strong>Search Engines</strong> like Google and Yahoo are great places to get traffic. Learn how to get your site listed by visiting the Marketing &amp; Site Promotion section of your account.</li> <li><strong>Get Members</strong> for your site to help it grow. Encourage members of your group/organization to join the site. Studies show that sites with active communities do a lot better. Invite members to join your site today. Manage Members.</li> <li><strong>Help and Customer Support</strong> is always one click away. The Support center can be located by clicking on the question mark icon located along the top section your account. It gives you access to all types of help from searchable knowledge base, to community forums, to video tutorials. Get Help.</li> <li><strong>Go pro</strong> with our Premium Packages. Get more site control, storage, bandwidth and a host of additional features including 24/7 live customer support by upgrading to premium. Learn More.</li> </ol> <p>Thanks again for joining. During your first week, well be sending you helpful tips &amp; tricks to support the successful launch of your new website. <br /> <br /> Happy site building! <br /> <br /> Sincerely, <br /> The Webs Team</p></td> <td>&nbsp;</td> </tr> <tr>

<td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </div> <div id='dott'></div> <div class='clear'></div> <div id='footer'> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> </body> </html>"; echo $message; ?>

Services.php <?php session_start();?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Services :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> </head> <body class="twoColFixRtHdr"> <div id="header1">

<div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"><?php include'user.inc';?> </div> <div id="main_bg"> <table width="800"> <tr> <td colspan="7" class="capt" ><h2>Hosting Services</h2> </td> </tr> <tr> <td colspan="7" id="cap"> Our hosting facilities are of the highest quality and performance characteristics. You can expect great service and uptime from our servers and systems. We offer: <ul> <li>High performance, dual and quad core Inter server machines</li> <li>No cheap hardware, but high quality, A-grade machines</li> <li>Fast and redundant networks, routers and firewalls</li> <li>Monitoring of all systems to provide 24/7, 100% uptime</li> <li>24/7 support on our hardware and network services</li> <li>Managed software and hardware for your guaranteed uptime</li> </ul> We continuesly work to update and upgrade our hosting and network systems to give you the best performance we can possibly manage for you. We will continue to do this for you as long as we are in business </td> </tr> <tr> <td >&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li>

<li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li ></ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> Subdomain.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) || $_SESSION['status'] ! = "active") { header('location: http://localhost/norfolk/inactive_user.php'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Subdomain :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <table width="100%"> <tr> <td id="cpanel"> <ul> <li><a href="http://localhost/norfolk/managesite.php" title="Manage Site :::" target="_parent">Manage site</a></li> <li><a href="http://localhost/norfolk/mail.php" title="Mail :::" target="_parent">Mail</a></li> <li><a href="http://localhost/norfolk/cronjob.php" title="Cron Job :::" target="_parent">Cron job</a></li> <li><a href="http://localhost/norfolk/mysql.php" title="Mysql :::" target="_parent">Mysql</a></li> <li><a href="http://localhost/norfolk/filemanager.php" title="File Manager :::" target="_parent">File manager</a></li> <li><a href="http://localhost/norfolk/ftpaccount.php" title="Ftp account :::" target="_parent">Ftp account</a></li> <li><a href="http://localhost/norfolk/access.php" title="Access :::" target="_parent">Access and Error</a></li> </ul></td> </tr> </table> <br /> <div id="sidebar1"> <p style="margin-top:70px"></p> <table width="250" cellpadding="2" cellspacing="1">

<tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"><table width="400">

<tr> <td width="50"><img src="images/images (5).jpg" /></td> <td width="166" valign="bottom"><h4>Subdomain</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Subdomain</td> </tr> </table> </div> <div class="cpanel"> <br /> <form action="subdomain_code.php" method="post"> <table width="100%"> <tr>

<td width="67%"> <strong>New Subdomain</strong><br /> <span id="sprytextfield1"> <input type="text" name="subdomain" id="subdomain"/>.nfg.com <span class="textfieldRequiredMsg">Subdomain required.</span></span></td> <td width="27%" valign="bottom"><input type="submit" name="addsub" id="addsub" value="Add New Subdomain" /></td> <td width="3%">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </form> <br /> <table width="100%" cellpadding="2" cellspacing="1"> <tr class="cont"> <td>Subdomain</td> <td>Updated</td> </tr> <?php $select = "SELECT subdomain, updated_date FROM subdomain WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); while($row = mysql_fetch_array($selected)) { echo"<tr class='cont1'>"; echo"<td>$row[0]</td>"; echo"<td>$row[1]</td>"; echo"</tr>"; } ?> </table> <br /> </div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp">

<td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td>

</tr> </tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1"); //--> </script> </body> </html> <?php mysql_close($con);?> Subdomain_code.php <?php session_start(); include 'conn.inc';

class Subdomain{ public $g_url; function __construct(){ $this->g_url = $this->get_url(); $this->create(); } function get_url(){ $possible = '23456789bcdfghjkmnpqrstvwxyz'; $code = ''; $i = 0; while($i < 10) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } function auto(){ $possible = '123456789'; $code = ''; $i = 0; while($i < 6) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } function create(){ if($_POST['addsub'] == 'Add New Subdomain' && ! empty($_POST['subdomain'])) { $select = "SELECT subdomain FROM subdomain WHERE subdomain= '{$_POST['subdomain']}'";

$selected = mysql_query($select); if(mysql_num_rows($selected) > 0) { header('location: http://localhost/norfolk/subdomain.php?comment=Subdomain Already Exist Pls Try Another&url_id='.$this->g_url); } else { $subdomain_id = $this->auto(); $subdomain = $_POST['subdomain']; $user_id = $_SESSION['user_id']; $reg_date = date("Y-m-d H:i:s"); $url = $subdomain.'.nfg.com'; $status = 'Created'; $insert = sprintf("INSERT INTO subdomain(subdomain_id, subdomain, updated_date, email, url, status)VALUES($subdomain_id, '%s', '$reg_date', '%s', '%s', '%s')", mysql_real_escape_string($subdomain), mysql_real_escape_string($user_id), mysql_real_escape_string($url), mysql_real_escape_string($status)); $inserted = mysql_query($insert); if(mysql_affected_rows() > 0) { $path = getcwd(); $path .= '/www/'; $path .= $subdomain; mkdir($path, 0777) ; header('location: http://localhost/norfolk/subdomain.php?comment=Subdomain Added&url_id='.$this->g_url); } else {

header('location: http://localhost/norfolk/subdomain.php?comment=Can`t insert subdomain try again&url_id='.$this->g_url); } } } else { header('location: http://localhost/norfolk/subdomain.php? comment=Enter Subdomain here&url_id='.$this->g_url); } } } $sub = new Subdomain(); mysql_close($con); ?> Support.php <?php session_start();?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Support :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"><?php include'user.inc';?> </div> <div id="main_bg"> <table width="800"> <tr> <td class="capt"><h2>Support</h2></td> </tr>

<tr> <td id="cap"> By far the easiest way to get support is to visit our forum. From our forum we can help you out on all aspects off your 5GBFree account. Don't feel discouraged - we read AND respond to every single forum post: <br /> <a href="">http://www.nfgforum.com</a> <br /> <br /> We would also suggest you join our Facebook group - that way if there's ever a service outage we can keep in touch with you there, just visit our<a href="http://www.facebook.com/pages/Homeland-4-megacity/138186059578002">Facebook group</a> and click like. </td> </tr> </table> </div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li ></ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> Upload.php <?php session_start();

if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) || $_SESSION['status'] ! = "active") { header('location: http://localhost/norfolk/inactive_user.php'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Upload :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <table width="100%"> <tr> <td id="cpanel"> <ul> <li><a href="http://localhost/norfolk/filemanager.php" title="File Manager :::" target="_parent">Manage site</a></li>

<li><a href="http://localhost/norfolk/subdomain.php" title="Sub domain :::" target="_parent">Subdomain</a></li> <li><a href="http://localhost/norfolk/mail.php" title="Mail :::" target="_parent">Mail</a></li> <li><a href="http://localhost/norfolk/cronjob.php" title="Cron Job :::" target="_parent">Cron job</a></li> <li><a href="http://localhost/norfolk/mysql.php" title="Mysql :::" target="_parent">Mysql</a></li> <li><a href="http://localhost/norfolk/filemanager.php" title="File Manager :::" target="_parent">File manager</a></li> <li><a href="http://localhost/norfolk/ftpaccount.php" title="Ftp account :::" target="_parent">Ftp account</a></li> <li><a href="http://localhost/norfolk/access.php" title="Access :::" target="_parent">Access and Error</a></li> </ul></td> </tr> </table> <br /> <div id="sidebar1"> <p style="margin-top:70px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr>

</table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/folder_48.png" /></td> <td width="166" valign="bottom"><h4>Upload files</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; }

$comment = $_GET['comment']; echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Subdomain</td> </tr> </table> </div> <div class="cpanel"> <br /> <form action="action.php" method="post" enctype="multipart/form-data"> <table width="100%"> <tr> <td width="51%"><h4>Upload</h4><br /><input type="file" name="lanre" id="lanre"/> </td> <td width="46%" valign="bottom"><select name="path" id="path" onchange=""> <option>&lt;Select&gt;</option> <?php $select = "SELECT subdomain FROM subdomain WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); while($row = mysql_fetch_array($selected)) { echo"<option>$row[0]</option>"; } ?> </select></td> <td width="3%">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr>

<tr> <td><table width="98%"> <tr> <td width="21%" align="center">Eg:</td> <td width="53%">file</td> <td width="26%">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>image</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>archives</td> <td>&nbsp;</td> </tr> </table></td> <td><table width="100%"> <tr> <td><h4>Folder Name</h4><input name="folder" type="text" /></td> </tr> <tr> <td class="inf">If u want to upload into a folder on ur subdomain directory enter the folder name u wish to upload ur file to, u have to end it with a /. ( Eg : images/) for all folder in ur subdomain to avoid error. if u have another folder in the (images/ eg) u have to add a / at the end (Eg images/book/). But if u are uploading to ur subdomain direct leave the textbox empty.</td> </tr> </table></td> <td>&nbsp;</td> </tr> <tr> <td colspan="2"><div id="dott"></div></td> <td>&nbsp;</td> </tr> <tr> <td align="right"><input type="reset" name="cancel" id="cancel" value="Cancel" /></td> <td><input type="submit" name="uploadfile" id="upload" value="Upload" /></td> <td>&nbsp;</td> </tr> </table> </form> <br />

</div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br>

<table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> <?php mysql_close($con);?> User.php <?php session_start();

if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) && $_SESSION['status'] != "inactive") { header('location: http://localhost/norfolk/login.php?comment=Invalid User'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>User home :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <br /> <div id="sidebar1"> <p style="margin-top: 85px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td>

</tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table> <br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"><table width="400"> <tr>

<td width="50"><img src="images/images.jpg"/></td> <td width="166" valign="bottom"><h4>User</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table> <br /> </div> <div class="cpanel"> <?php $mail = "SELECT * FROM inbox WHERE check_read='no' AND user_id_to='{$_SESSION['user_id']}'"; $mailed = mysql_query($mail); $unread = mysql_num_rows($mailed); if(mysql_num_rows($mailed) > 0) { echo"<table width='100%' cellpadding='2' cellspacing='1' bgcolor='#999999'>"; echo"<tr class='cont2'>"; echo"<td width='19%'>Unread Mail</td>"; echo"<td width='31%' align='left' class='unread'> $unread</td>"; echo"<td width='25%'>&nbsp;</td>"; echo"<td width='25%'>&nbsp;</td>"; echo"</tr>"; echo"</table>"; } ?> <br /> <table width="100%" cellpadding="2" cellspacing="1"> <tr> <td width="16%" height="38"><a class="butt" href="sentbox.php" target="" title="sentbox">SentBox</a></td> <td width="11%">&nbsp;</td> <td width="12%">&nbsp;</td> <td width="21%">&nbsp;</td> <td width="13%">&nbsp;</td> <td width="27%"><a class="butt" href="newmail.php" target="" title="New Message">New Message</a></td>

</tr> <tr> <td height="27"></td> <td></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> <table width="100%" cellpadding="2" cellspacing="1"> <tr class="cont"> <td width="5%">&nbsp;</td> <td width="25%">From</td> <td width="39%">Subject</td> <td width="28%">Date</td> <td width="3%">&nbsp;</td> </tr> <?php $select = "SELECT user_id_from, subject, message_date, check_read, message_id FROM inbox WHERE user_id_to='{$_SESSION['user_id']}'"; $selected = mysql_query($select); while($row = mysql_fetch_array($selected)) { echo"<tr class='$row[3]'>"; echo"<td><input name='check' id='check' type='checkbox' value='$row[4]' /></td>"; echo"<td>$row[0]</td>"; echo"<td><a href='viewmessage.php?message_id=$row[4]' target='_parent' title''>$row[1]</a></td>"; echo"<td>$row[2]</td>"; echo"<td align='right'><a href='delectinbox.php? message_id=$row[4]&4rm=inbox' title='delete' ><img src='images/b_drop.png' alt='delete' /></a></td>"; echo"</tr>"; } ?> </table> <br /> </div> <br /> <?php

if(isset($_SESSION['user_id']) && !empty($_SESSION['name']) && $_SESSION['status'] == "active") { echo"<div class='cpanelheader'><table width='460'>"; echo"<tr class='cp'>"; echo"<td> Control Panel</td>"; echo"</tr>"; echo"</table>"; echo"<br />"; echo"</div>"; echo"<div class='cpanel'>"; echo"<table width='458'>"; echo"<tr>"; echo"<td width='108' align='center'><table width='99'>"; echo"<tr>"; echo"<td align='center'><img src='images/images (4).jpg' alt='manage site' /></td>"; echo"</tr>"; echo"<tr>"; echo"<td align='center'><a href='managesite.php' title='manage site' target='_parent'>Manage site</a></td>"; echo"</tr>"; echo"</table></td>"; echo"<td width='100' align='center'><table width='95'>"; echo"<tr>"; echo"<td align='center'><img src='images/images (5).jpg' title='subdomain' /></td>"; echo"</tr>"; echo"<tr>"; echo"<td align='center'><a href='subdomain.php' target='_parent'title='subdomain'>Subdomain</a></td>"; echo"</tr>"; echo"</table></td>"; echo"<td width='103' align='center'><table width='90'>"; echo"<tr>"; echo"<td align=''><img src='images/images (6).jpg' title='mail' /></td>"; echo"</tr>"; echo"<tr>"; echo"<td align='center'><a href='mail.php' target='_parent' title='mail'>Mail</a></td>"; echo"</tr>"; echo"</table></td>"; echo"<td align='center'><table width='100'>"; echo"<tr>";

echo"<td align='center'><img src='images/linux-crontab-300x270.jpg' title='cron job' /></td>"; echo"</tr>"; echo"<tr>"; echo"<td align='center'><a href='cronjob.php' target='_parent' title='ron job'>Cron job</a></td>"; echo"</tr>"; echo"</table></td>"; echo"</tr>"; echo"<tr>"; echo"<td align='center'><table width='99'>"; echo"<tr>"; echo"<td align='center'><img src='images/images (9).jpg' title='mysql'/></td>"; echo"</tr>"; echo"<tr>"; echo"<td align='center'><a href='mysql.php' target='_parent' title='mysql'>My Sql</a></td>"; echo"</tr>"; echo"</table></td>"; echo"<td align='center'><table width='95'>"; echo"<tr>"; echo"<td align='center'><img src='images/images (10).jpg' title='file manager' /></td>"; echo"</tr>"; echo"<tr>"; echo"<td align='center'><a href='filemanager.php' target='_parent' title='file manager'>File Manager</a></td>"; echo"</tr>"; echo"</table></td>"; echo"<td align='center'><table width='90'>"; echo"<tr>"; echo"<td align='center'><img src='images/images (11).jpg' title='ftp account' /></td>"; echo"</tr>"; echo"<tr>"; echo"<td align='center'><a href='ftpaccount.php' target='_parent' title='ftp account'>Ftp Account</a></td>"; echo"</tr>"; echo"</table></td>"; echo"<td align='center'><table width='100'>"; echo"<tr>"; echo"<td align='center'><img src='images/contact.gif' title='access and error'/></td>"; echo"</tr>";

echo"<tr>"; echo"<td><a href='access.php' target='_parent' title='access and error'>Access and Error log</a></td>"; echo"</tr>"; echo"</table></td>"; echo"</tr>"; echo"</table>"; echo"</div>"; echo"<br />"; } ?> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Note</td> </tr> </table></div> <div class="cpanel"> <br /> <div id="dott"></div> <br /> <?php $select = "SELECT note_id, message, note_date FROM note WHERE user_id='{$_SESSION['user_id']}'"; $selected = mysql_query($select); while($row = mysql_fetch_array($selected)) { echo"<table width='100%' cellpadding='5' cellspacing='1'>"; echo"<tr>"; echo"<td>$row[2]</td>"; echo"<td>&nbsp;</td>"; echo"<td>&nbsp;</td>"; echo"<td align='right'><a href=''>Delete</a></td>"; echo"</tr>"; echo"<tr>"; echo"<td width='39%'>&nbsp;</td>"; echo"<td width='14%'>&nbsp;</td>"; echo"<td width='27%'>&nbsp;</td>"; echo"<td width='20%' align='right'></td>"; echo"</tr>"; echo"<tr>"; echo" <td colspan='4'>$row[1]</td>"; echo"</tr>";

echo"</table>"; echo"<div id='dott'></div>"; } ?> <form method="post" action="notecode.php"> <table width="100%" cellpadding="2" cellspacing="1"> <tr> <td colspan="3"></td> </tr> <tr> <td align="right">Note:</td> <td colspan="2"><textarea name="note" id="note" cols="45"></textarea></td> </tr> <tr> <td>&nbsp;</td> <td colspan="2" align="right"><table width="100%"> <tr> <td width="11%">&nbsp;</td> <td width="11%">&nbsp;</td> <td width="75%" align="right"><input type="submit" name="submit" id="submit" value="Add note" /></td> <td width="3%">&nbsp;</td> </tr> </table> </td> </tr> </table> </form> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li>

<li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> <?php mysql_close($con);?> Viewmessage.php <?php session_start(); if(!isset($_SESSION['user_id']) && empty($_SESSION['name']) && $_SESSION['status'] != "inactive") { header('location: http://localhost/norfolk/login.php?comment=Invalid User'); } include 'conn.inc'; $select = "SELECT * FROM registration WHERE email='{$_SESSION['user_id']}'"; $selected = mysql_query($select); $result = mysql_fetch_row($selected); $name = $result[0]; $name .= " "; $name .= $result[1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Messages :::</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <link href="css/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <script src="css/SpryMenuBar.js" type="text/javascript"></script> </head> <body class="twoColFixRtHdr"> <div id="header1"> <div id="header2"><div id="wel"><?php include'welcome.inc'?> </div></div> <div id="header3"></div> <div id="header4"> <?php include'user.inc';?> </div> <div id="main_bg"> <br /> <div id="sidebar1"> <p style="margin-top:85px"></p> <table width="250" cellpadding="2" cellspacing="1"> <tr class="dblue"> <td colspan="2">&nbsp;Customer Details</td> </tr> <tr> <td width="103">Full Name</td> <td width="135"><?php echo $name;?></td> </tr> <tr> <td>Email</td> <td><?php echo $result[2];?></td> </tr> <tr> <td>Role</td> <td><?php echo $result[4];?></td> </tr> <tr> <td>Created</td> <td><?php echo $result[6];?></td> </tr> <tr> <td>Updated</td> <td><?php echo $result[7];?></td> </tr> </table>

<br /> <br /> <table width="250" cellpadding="0" cellspacing="1"> <tr> <td width="39" class="stat">status</td> <td width="198" valign="top" ><div class="st_bg"></div></td> <td width="7" valign="top"><div class="st_bg1"></div></td> </tr> </table> <br /> <table width="250"> <tr> <td width="41">&nbsp;</td> <td width="152" class="status"><?php echo $result[5];?></td> <td width="41">&nbsp;</td> </tr> </table> </div> <div id="mainContent"><table width="400"> <tr> <td width="50"><img src="images/images.jpg"/></td> <td width="166" valign="bottom"><h4>Messages</h4></td> <td width="119">&nbsp;</td> <td width="45">&nbsp;</td> </tr> </table> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Message</td> </tr> </table></div> <div class="cpanel"> <table width="458"> <tr> <td width="19">&nbsp;</td> <td width="410"><?php if(!isset($_GET['comment'])) { $_GET['comment'] = ""; } $comment = $_GET['comment'];

echo"<div align='center' id='comm'>$comment"; echo"</div>"; ?></td> <td width="13">&nbsp;</td> </tr> </table> </div> <br /> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td> Inbox</td> </tr> </table> </div> <div class="cpanel"> <table width="100%" cellpadding="2" cellspacing="1"> <tr> <td width="13%" height="40"><a class="butt" href="message.php" target="" title="sentbox">InBox</a></td> <td width="16%"><a class="butt" href="sentbox.php" target="" title="sentbox">SentBox</a></td> <td width="15%">&nbsp;</td> <td width="16%">&nbsp;</td> <td width="14%">&nbsp;</td> <td width="26%"><a class="butt" href="" target="" title="New Message">New Message</a></td> </tr> <tr> <td height="27"></td> <td></td> <td></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> <div id="dott"></div> <table width="100%" cellpadding="2" cellspacing="1"> <?php $select = "SELECT user_id_from, message_date, subject, message FROM inbox WHERE message_id='{$_GET['message_id']}'"; $selected = mysql_query($select);

$row = mysql_fetch_row($selected); echo"<tr>"; echo"<td width='15%'>&nbsp;</td>"; echo"<td width='49%'>$row[0]</td>"; echo"<td width='36%'>$row[1]</td>"; echo"</tr>"; echo"<tr>"; echo"<td>&nbsp;</td>"; echo"<td colspan='2'>$row[2]</td>"; echo"</tr>"; echo"<tr>"; echo"<td>&nbsp;</td>"; echo"<td colspan='2'>$row[3]</td>"; echo"</tr>"; $update ="UPDATE inbox SET check_read='yes' WHERE message_id={$_GET['message_id']}"; $updated = mysql_query($update); ?> <tr> <td colspan="3"><div id="dott"></div></td> </tr> <tr> <td align="right">Reply:</td> <td colspan="2"><textarea name="reply" id="reply" cols="45"></textarea></td> </tr> <tr> <td>&nbsp;</td> <td colspan="2" align="right"><input type="submit" name="submit" id="submit" value="Reply" />&nbsp; &nbsp;</td> </tr> </table> <br /> <table width="100%"> <tr> <td width="26%" align="center"><a href="message.php" target="_parent" title="Back">Back to Inbox</a></td> <td width="25%">&nbsp;</td> <td width="38%">&nbsp;</td> <td width="11%">&nbsp;</td> </tr> </table> <br />

</div> <p></p> <div class="cpanelheader"><table width="460"> <tr class="cp"> <td > Donate</td> </tr> </table></div> <div class="cpanel"> <br /> <table width="455" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td>&nbsp;If you like our free hosting services you can help us in any of these 3 ways:</td> </tr> </tbody></table> <br /> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/link_to_us.gif" width="48" height="48"></td> <td width="85%"><strong>Put a link from your website</strong><br> You can help us by putting a link from your website to <a href="">http://www.dynamicintel.com/</a>, get HTML code <a href="">here</a>.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/donate.gif" width="48" height="48"></td> <td width="85%"><strong>Donate by Paypal</strong><br>If you found our services useful - <a href="">send a donation</a>. Each dollar will help us to run this free web hosting service.</td> </tr> </tbody></table> <br> <table width="430" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"><img src="images/upgrade.gif" width="48" height="48"></td> <td width="85%"><strong>Upgrade your account!</strong><br>Want a faster more reliable and truly <b>unlimited</b> web hosting service? <a href="">Upgrade your account</a> and you will get the best available web hosting service for just $4.84 per month.</td> </tr> </tbody></table> <br>

<table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td width="15%"></td> <td width="85%">&nbsp;</td> </tr> </tbody></table> </div> <br /> </div> </div> <div class="clear"></div> <div id="dott"></div> <div class="clear"></div> <div id="footer"> <ul> <li><a href="http://localhost/norfolk/index.php" title="Home :::" target="_parent">Home</a></li> <li><a href="http://localhost/norfolk/hosting.php" title="Hosting :::" target="_parent">Hosting</a></li> <li><a href="http://localhost/norfolk/services.php" title="Services :::" target="_parent">Services</a></li> <li><a href="http://localhost/norfolk/support.php" title="Support :::" target="_parent">Support</a></li> <li><a href="http://localhost/norfolk/contact.php" title="Contact :::" target="_parent">Contact</a></li> </ul> <span> Norfolk And Goode 2011. All rights reserved.</span> </div> </div> <script type="text/javascript"> <!-var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html> <?php mysql_close($con);?>

README
In the CD Disk you would find the Norfolk folder and when its being opened you would get to find 4 folders and other files. There is a folder named www that is where all the subfolders of accounts and sub-domains are stored immediately they are created and activated. The folders would be the same name as the name of the subdomain that is newly registered/ created. If you have created a new sub-domain and uploaded or created files and folders and you cannot view them, you have to go to the created folder and go and set the permission to have full control of that folder.

ABOUT LINUX SLACKWARE V13.1


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Linux Slackware v13.1


=-=-=-=-=-=-=-=-=-=-=-=-=-=-= This file contains some important notes you should know to be able to run Linux Slackware.

System Requirements
=================== Norfolk and Goode system is designed for Linux Slackware v13.1

Recommendations:
=================== I recommend that you install Linux Slackware. You can download it from the www.linux.com or by purchasing a copy.

Installation for Linux Slackware v13.1


============================ - Run the setup from a CD or iso file. Follow the instructions carefully. - Start Linux Slackware - On your keyborad press Ctrl+G to able you work on the environment. - Input login name and password

Important:
=========== IF YOU ARE USING ANY OTHER OPERATING SYETEM OTHER THAN LINUX SLACKWARE AND YOU STILL WANT TO RETAIN IT, I RECOMMEND YOU TO INSTALL VMWARE MACHINE AND INSTALL THE LINUX SLACKWARE FROM THE VMWARE THAT WAY YOU CAN HAVE TWO OR MORE OPERATING SYSTEMS. IT'S ADVISEABLE THAT YOU HAVE LARGE MEMORY SO AS TO ENABLE YOU WORK MORE EFFECTIVELY.

CONCLUSION
After taken and applied all the above steps and gotten your subdomain name registered. You can now go ahead with the remaining part which is a very vital part of your project. This is web hosting. It is crucial to select the right web host because this is where you build, maintain and publish your web pages. I hope you found this very easy to accomplish. Best of luck enjoy registering your sub-domain name.

REFERENCES
Title: How to start MySQL server daemon on a Slackware just installed Author: Marco Segato Available at: http://www.marcosegato.tk/ Title: Installing Apache Web Server under Slackware Linux [Book] Author: Stuart Reedy Title: Installing PHP with Slackware Linux [Book]

Author: Stuart Reedy How To Setup, Configure, Manage and Secure a Linux Server (http://www.linuxserverhowto.com/about.html) [Online] Accessed on February 2, 2011 How To Setup LAMP For Slackware (http://www.hydronitrogen.com/91/how-to-setup-lamp-for-slackware/) [Online] Accessed on February 4, 2011 Slackware Linux Essentials Available at: http://www.slackbook.org/html/book.html Accessed on March 5, 2011

Some Useful Linux Commands Steve Ambler, February 2002 (http://www.er.uqam.ca/nobel/r10735/unixcomm.html) [Online] Book Title: Slackware Linux Essentials Author: By David Cantrell, Logan Johnson and Chris Lumens

Вам также может понравиться