GithubHelp home page GithubHelp logo

carlosvarela / murl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dengel/murl

1.0 2.0 0.0 406 KB

Mini Uniform Resource Locator. Convert a long web address into a short one.

Home Page: http://murl.net/

murl's Introduction

mURL

This is a re-write in cakePHP for the original custom mURL.net application.

Setup

  • Download the latest from GitHub onto a new directory hierarchy.
  • Download the latest cakePHP1.3 and place at same level as this README file as cake.
  • Create MySQL database with the sctructure defined below.
  • Create file config/database.php based on the sample provided.

Database

-- MySQL dump 10.11

--
-- Table structure for table `hits`
--

DROP TABLE IF EXISTS `hits`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `hits` (
  `id` int(11) NOT NULL auto_increment,
  `murl_id` int(11) NOT NULL,
  `remote` varchar(20) default NULL,
  `referer` varchar(255) default NULL,
  `agent` varchar(255) default NULL,
  `created` datetime default NULL,
  `modified` datetime default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `murls`
--

DROP TABLE IF EXISTS `murls`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `murls` (
 `id` int(11) NOT NULL auto_increment,
  `code` varchar(255) NOT NULL default '',
  `protect` varchar(255) NOT NULL,
  `uri` varchar(255) NOT NULL,
  `created` datetime default NULL,
  `modified` datetime default NULL,
  `destruct` tinyint(1) NOT NULL default '0',
  `private` tinyint(1) NOT NULL default '0',
  `hits` int(11) NOT NULL default '0',
  `remote` varchar(20) NOT NULL default '0.0.0.0',
  `referer` varchar(255) NOT NULL,
  `agent` varchar(255) NOT NULL,
  PRIMARY KEY  (`id`),
  UNIQUE KEY `nick` (`code`),
  KEY `nick_index` (`code`(10))
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

DROP TABLE IF EXISTS `bans`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `bans`(
  `id` int(11) NOT NULL auto_increment,
  `type` enum('ip','domain') NOT NULL default 'ip',
  `user_id` int(11) NOT NULL,
  `string` varchar(255) NOT NULL,
  `created` datetime default NULL,
  `modified` datetime default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

DROP TABLE IF EXISTS `users`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE IF NOT EXISTS `users` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `username` char(50) DEFAULT NULL,
    `password` char(40) DEFAULT NULL,
    PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;
SET character_set_client = @saved_cs_client;

Contributing

  1. Fork it.
  2. Create a branch (git checkout -b my_murl)
  3. Commit your changes (git commit -am "Added Cool Feature")
  4. Push to the branch (git push origin my_murl)
  5. Create an Issue with a link to your branch

murl's People

Contributors

dengel avatar ssalvatori avatar

Stargazers

Carlos Varela avatar

Watchers

Carlos Varela avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.