Url Shortener

Url Shortener Created by forza020. This templates have specific characteristics, namely: This is advanced URL Shortener, which allows you to create your shorts URLs, for example domain.name/a3vd.Also users will have possibility to share links in popular social networks or save link as a QR-Code. In addition, this application has admin panel. You can easy customize any part of .

You can use this Url Shortener on Php scripts category for short url, tiny url, tinyurl, url shortener, url shortener script, yii and another uses.

Url Shortener
© Copyright by forza020

Features:

  • None: None
  • Yii: Yii
  • Php 5.0 5.2, php 5.3, mysql 4.x, mysql 5.x: PHP 5.0 – 5.2, PHP 5.3, MySQL 4.x, MySQL 5.x
  • Ie7, ie8, ie9, firefox, safari, opera, chrome: IE7, IE8, IE9, Firefox, Safari, Opera, Chrome
  • Javascript js, html, css, php, swf/flv, sql: JavaScript JS, HTML, CSS, PHP, SWF/FLV, SQL
  • No: No

This is advanced URL Shortener, which allows you to create your shorts URLs, for example domain.name/a3vd.Also users will have possibility to share links in popular social networks or save link as a QR-Code. In addition, this application has admin panel. You can easy customize any part of application starting with language and ending with social settings. Also flexible and advanced url search module, in admin panel, makes your work easier to control URLs.

Applications demo

Site: http://short.php5developer.com
Admin panel http://short.php5developer.com/admin
Login: admin
Password: admin

Features

  • Your own URL shortening service
  • Admin URL Managment system, advanced searching and sorting
  • QR Code
  • Autocopy button
  • Social Sharing
  • SEO, Og propirties customizaiotn
  • Adsense, analytics support
  • Changing interface language
  • Like buttons
  • Google, Bing, Yandex verification
  • Clean and friendly user interface
  • Installation file
  • Developer API
  • Statistic

Installation

Run installation file (http://domain.name/install.php) Follow installation instructions.AFTER INSTALLATION DO NOT FORGET TO REMOVE INSTALL.PHP FILE AND CHANGE ADMIN DATA IN ADMIN PANEL.Note. If your main index.php file located not in the root folder – you need to add RewriteBase /subfolder/ into .htaccess file after RewriteEngine on

Documentation

http://docs.php5developer.com/url-shortener/

Developer API

Developers can easy use this API by request http://domain.name/api?url=your_long_url URL.This service can handle 3 response methods:

  • XML
  • JSON
  • Array (serialized)

Example: http://domain.name/api?url=url&method=arrayYou will get response as serialized array

Updates

v 1.0 – 2016.01.10

  • Updated Cookie EU Law Javascript plugin

Already bought? Replace following file.

~root/js/cookieconsent.latest.min.js

v 0.9 – 2015.09.28

  • Solution for EU cookie law

Already bought? Replace/add below listed files.

~root/js/cookieconsent.latest.min.js~root/app/components/FrontEndController.php~root/app/config/cookie_law.php

v 0.8 – 2015.03.23

  • Small bug fixes

Already bought? Replace/add listed below files

Modified files:

~rootjsfrontend.js~rootappcontrollersfrontendApiController.php~rootappcontrollersfrontendApplicationController.php

New file:

~rootappcomponentsUrlValidator.php

v 0.7 – 2015.02.17

  • Improved URL recognition pattern

Already bought? Replace listed below files

~rootjsfrontend.js~rootappcontrollersfrontendApiController.php~rootappcontrollersfrontendApplicationController.php

v 0.6 – 2015.02.06

  • HTML, JS, PHP bug fixes

Already bought? Firstly, open rootappconfigmain.php and add new key=>value pair into urlManager array

'urlManager'=>array(   ...   'routeVar'=>'ar',   ...)

Finally, replace listed below files and remove all files from rootapp
untimecache
directory.

~rootjsfrontend.js~rootappviewsfrontendapplicationindex.php~rootappcontrollersfrontendApiController.php~rootappcontrollersfrontendApplicationController.php

v 0.5 – 2015.01.07

  • Some bug fixes

Already bought? Replace/add listed below files.

Modified files:

~rootappviewsfrontendapplicationindex.php~rootjsfrontend.js~rootappviewsfrontendapplication
edirect.php

New files:

~rootappcomponentsHelper.php

v 0.4 – 2014.06.05

Unique title on 'redirect' pagePossibility to set limit of requests for usersOne URL can be shortened only once.

Already bought?
1. Run following queries into DB.
2. Add/replace below listed files.
3. Clean cache direcotry (~app/runtime/cache/)

NOTE! Make DB/Code backup before do changes.
Queries:

ALTER TABLE `sl_url` ADD COLUMN `Md5Url` VARCHAR( 32 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;UPDATE `sl_url` set Md5Url = MD5(Url);ALTER TABLE `sl_url` ADD INDEX `ix_md5url` ( `Md5Url` );ALTER TABLE `sl_url` ENGINE = InnoDB;INSERT INTO `sl_lang_settings` (`Key`, `Value`, `end`) VALUES ('Redirect_Title', 'You are going to %s', 'front');DROP TABLE IF EXISTS `sl_request_count`;CREATE TABLE `sl_request_count` ( `day` date NOT NULL, `ip` varchar(46) NOT NULL, `total` int(10) unsigned NOT NULL, PRIMARY KEY (`day`,`ip`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;ALTER TABLE  `sl_basic_settings` ADD  `API_Request` INT unsigned NOT NULL DEFAULT  '1000' AFTER  `Redirect`;

Files:

~app/models/Basic.php~app/views/backend/settings/basic.php~app/components/CShortlink.php~app/components/FrontEndController.php~app/models/Shortlink.php~app/controllers/front/ApplicationController.php~app/controllers/front/ApiController.php~app/data/url_shortener~js/frontend.js~app/views/frontend/error.php~app/views/frontend/layouts/main.phpNew files:app/components/ShortUrlAccessFilter.phpapp/commands/ClearstatCommand.phpapp/config/console.php

Version 0.3

– Bug fix
– QR-Code generator works without curl library

Version 0.2

– Added countdown timer before redirect.
– Documentation has been updated.

Version 0.1

– Bug fixes