# SM Short URL Script with Stats and Admin panel v2.5

## a powerful short url script with stats and admin panel

- Created: 03/08/2012
- latest Update: 09/19/2015
- By: Semantic, Inc

Thank you for the purchase. This read me file serves you as reference book to avoid misunderstandings for your questions regarding installation and configuration as well as the adjustment of the interface.Lets Begin!

### System Requirements

The requirements are pretty basic so just let me write them down here.

1. PHP5 Server

2. MySql database

3. Mod_Rewrite enabled

4. CSS3 supported web browser

5. Register_globals enabled

### Change log

Created: 03/02/2012
latest Update: 09/19/2015
By: Semantic, Inc.
v2.5
Read changelog file

### Installation

The installation is actually very easy and it circles around only 2 files. I am writing down the steps to install and customize.

1. Unzip the archive to your server

2. Open "includes/db.php" and fill the database settings (read more in configuration option)

3. Open "includes/config.php" and fill the optional site settings (read more in configuration option)

4. Finally import the MySql database from the folder "SQL" in phpMyadmin

5. Go to admin panel from yourdomain.com/admin and use accordingly by logging inside with Username: "admin" and Password: "20script". You can later change the password from admin panel

6. Script is all ready now. Feel free to customize the design but DON'T temper the code

7. The script offers 7 bundled themes: white, grey, citrus, voilet, metro and orange and shadows which you can apply using the config.php file in includes folder

8. For letting the bookmarklet to function properly, please open bookmarklet.js in the root and replace the current url to your url and save

### Upgrade

Since the nature of the coded language is changed from HTML4 to HTML5, you may have to re-install the entire script and replace all the files. Follow the installation procedure to make a clean installation. The next updates will be written in HTML5 as well.

### Configuration

Here i will tell you how to configure the necessary installation files db.php and config.php

## db.php

1. $db_host - Enter the server address of the mysql server in this field. It is usually localhost in most of the cases

2. $db_user - Enter the database username

3. $db_pass - Enter the database password

4. $db_server - Enter the name of the database you have created and imported the sql file into

## config.php

1. $title - Enter the name or title for the website

2. $slogan - Enter the slogan or subline for the website

3. $description - Enter description for the website

4. $keywords - Enter keywords for the website so that search engines may find you

5. $adminstatslimit - Enter the number of statistics you want to see in admin panel dashboard. CHOOSE FROM 1-INFINITE

6. $webpath - Enter the url address for the website. Do not include www in the url and also add NO trailing slash in the end. Ex: http://domain.com

7. $footer - Enter footer text or copyright text to be displayed in the website footer. You can add special characters.

8. $stylesheet - This is the part where you will enter the name of your favorite design you want to set default for the website. You have to choose between shadows, orange, voilet, citrus and white. Please do not change case

9. $link_length - Enter here the length of the trimmed url link you want to make. You can choose between 1-10. The value must not exceed above 10. Ex: http://domain.com/abc

### Themes

Here you can preview the 5 bundled themes and set it to default accordingly.

1. Shadows theme

2. Orange theme

3. Voilet theme

4. Citrus theme

5. White theme

6. Metro theme

7. Grey theme

### Template

Editing the content is very easy as the script is based on a custom template which you can easily modify by going to the templates folder. The text is clearly written and it won't need any other design, you just have to replace the text and the script will automatically render it with design.

The main frontend text you will find in the create_tpl.php file. Just modify the text but be sure that you don't temper with the function or the script won't serve its purpose.

The API text you can find in the api_tpl.php file.

### Support

For support and more inquiries please use the contact form by visiting my codecanyon profile page by clicking below url.

http://codecanyon.net/user/mysticmetal

### Credits

Thanks to Thumbnail.ws for using their live thumbnail preview api in the script.