github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

winks / shortcore

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 5
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

a small url shortener service — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

forgot the prepared statement patch 
winks (author)
Fri Jul 03 01:24:22 -0700 2009
commit  53de3c5377a3c36df38fa1d3512fcffd246db34e
tree    a327ad499775221a3099ca96b9c9bb6fb248c563
parent  918cbe47ad225d72c979ddcd7a51c652b20177f9
shortcore /
name age
history
message
file .htaccess Thu Jul 02 16:20:14 -0700 2009 forgot .htaccess [winks]
file LICENCE Thu Jul 02 15:49:18 -0700 2009 initial commit [winks]
file README Thu Jul 02 15:49:18 -0700 2009 initial commit [winks]
directory db/ Thu Jul 02 15:49:18 -0700 2009 initial commit [winks]
directory docs/ Thu Jul 02 15:49:18 -0700 2009 initial commit [winks]
file index.html Thu Jul 02 15:49:18 -0700 2009 initial commit [winks]
file shortcore.config.php Thu Jul 02 16:48:49 -0700 2009 added 301 and add() now redirects to _id_ [winks]
file shortcore.php Fri Jul 03 01:24:22 -0700 2009 forgot the prepared statement patch [winks]
README
  Shortcore, a small url shortener service
    (c) 2009 Florian Anderiasch, <fa at art dash core dot org>
    BSD-licenced


Requirements
~~~~~~~~~~~~
* a reasonably recent installation of PHP5, probably 5.2.0+
* PDO with sqlite enabled


Installation
~~~~~~~~~~~~
* git checkout
* put into its own VirtualHost
* edit .htaccess (or rewrite for lighty)
* edit shortcore.config.php with sensible values
* use the shortcore.db or create your own:

CREATE TABLE shortcore (id TEXT, url TEXT, title TEXT, counter INT, created INT, PRIMARY KEY(id));
INSERT INTO shortcore VALUES ("self", "http://example.org", "My example", 0, 1246465921);

* possibly put shortcore.db out of docroot
* make absolutely sure your webserver user has write access to the *directory* with shortcore.db in it.

Usage
~~~~~
* browse to cfg['home'] /shortcore.php?help and check the bookmarklet
* find an interesting site
* click the bookmarklet
 a) insert an id
 b) don't insert an id
* hit enter or press ok
* it's getting saved and you're redirected

the urls are of the form:

http://example.org/_<id>

if you want to preview, use:

http://example.org/_<id>_
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server