Install

".TABLE_PREFIX."db.php exits! You will be overwriting this file once you click continue."; $Connection = TRUE; } else { $db = "
".TABLE_PREFIX."db.php does not exits!
"; $Connection = FALSE; } $level = (isset($_POST['level']))?$_POST['level']:""; if ($level == ""){ ?>
Welcome to the install. In order for you to install this product, you will need to follow the steps in the next few screens.

Step #1, MySql Connection Info

This information is generally given to you by your host. It is important to have this for the script to work.

Hostname : (often localhost)

DB Username :

DB Password :

Database Name:

Unable to create ".TABLE_PREFIX."db.php in adminpanel. Please chmod this folder to 777 and press refresh on this page."); $str_gen = ""; $len_gen = strlen( $str_gen ); fwrite( $fd, $str_gen, $len_gen ); fclose( $fd ); ?>

Step #2, Connection Info Saved

db.php has been wrtten to adminpanel succesfully.

The next step will create the mysql tables for you so the script can function properly.

Tables have been created successfully."; $GetResult .= "

If you are wanting to create password protection for your adminpanel, Continue to the next step. Otherwise click here to login to your Admin Panel to add products to your New $name_of_site Script.

Login to Your Admin

Thank you for the Installing The $name_of_site Script. It is required to Delete this install script once done.

\n"; $submitbtn = "\n"; $go = "4"; } else { $GetResult = "
Table creation failed. Error below:

".mysql_error()."
"; $submitbtn = "\n"; $go = "3"; } } else { $GetResult = "
".TABLE_PREFIX."db.php is not found. No Connection to mysql can be established. Please go back to setp 1 to create this file.
"; $submitbtn = "\n"; $go = "1"; } ?>

Step #3, Mysql Table Creation

Step #4, Password Protect The Admin

You can now password protect your admin directory. By pushing the submit button, .htaccess and .htpasswd file in the admin dir will be deleted, and recreated with information given below.

You might get an error message when trying to set the protection. If this happens to you, do the following: Log into Telnet, go to your admin dir, and type chmod 755 adminpanel, and then do the below (this can also be done with cuteftp by rightclicking the admin catalog, choosing CHMOD, and typing in 777 in the box).

Afterwards, remember to set the permission back to default. Often by doing this in Telnet: chmod 755 adminpanel. Be sure to set $logintype["http"] equal to '1' in the config file or this htaccess file will not work.

Your .htaccess and .htpasswd files will be created in

according to your config.php file.

"; } else { echo"No .htaccess file exists
"; } if (file_exists("c:/wamp/www/phpfile/Scripts/adminpanel/.htpasswd")) { $filemodtime = filemtime ("c:/wamp/www/phpfile/Scripts/adminpanel/.htpasswd"); $last_mod_htp = date("d.m.Y - H:i:s", $filemodtime); echo"Your existing htpasswd file was last modified $last_mod_htp
"; } else { echo" No .htpasswd file exists"; } ?>

 

Username :

Password :

Unable to create .htaccess file in adminpanel. Please chmod this folder to 777 and press refresh on this page.
"); $fd2 = @fopen( "c:/wamp/www/phpfile/Scripts/adminpanel/.htpasswd", "w+" ) or die("
Unable to create .htpasswd file in adminpanel. Please chmod this folder to 777 and press refresh on this page.
"); $str = "$usernamenew:$passwordnew"; $len = strlen( $str ); $str_gen = "AuthUserFile $full_path/adminpanel/.htpasswd\nAuthGroupFile /dev/null\nAuthName \"$name_of_site\"\nAuthType Basic\n\nrequire user $usernamenew\n"; $len_gen = strlen( $str_gen ); fwrite($fd, $str_gen, $len_gen); fwrite($fd2, $str, $len); fclose($fd); fclose($fd2); $GetResult ="If you did not recieve any errors, NICE...files have be written.

Click here to login to the your Admin Panel to add products to your New $name_of_site Script.

Login to Your Admin

Thank you for the Installing The $name_of_site Script.

"; } else { $GetResult ="No username and/or password given....
"; } ?>

Step #5, htacces File Creation

Finished