Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ETH Simple Shortlinks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WP Plugins
ETH Simple Shortlinks
Commits
677588e3
Commit
677588e3
authored
9 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Initial commit
parents
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
eth-simple-shortlinks.php
+59
-0
59 additions, 0 deletions
eth-simple-shortlinks.php
readme.txt
+0
-0
0 additions, 0 deletions
readme.txt
with
59 additions
and
0 deletions
eth-simple-shortlinks.php
0 → 100644
+
59
−
0
View file @
677588e3
<?php
/*
Plugin Name: ETH Simple Shortlinks
Plugin URI: https://ethitter.com/plugins/
Description: Simple non-GET shortlinks using post IDs
Author: Erick Hitter
Version: 0.1
Author URI: https://ethitter.com/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class
ETH_Simple_Shortlinks
{
/**
* PLUGIN SETUP
*/
/**
* Singleton
*/
private
static
$instance
=
null
;
/**
* Instantiate singleton
*/
public
static
function
get_instance
()
{
if
(
!
is_a
(
self
::
$instance
,
__CLASS__
)
)
{
self
::
$instance
=
new
self
;
}
return
self
::
$instance
;
}
/**
* Dummy magic methods
*/
public
function
__clone
()
{
_doing_it_wrong
(
__FUNCTION__
,
'Cheatin’ huh?'
,
'0.1'
);
}
public
function
__wakeup
()
{
_doing_it_wrong
(
__FUNCTION__
,
'Cheatin’ huh?'
,
'0.1'
);
}
public
function
__call
(
$name
=
''
,
$args
=
array
()
)
{
unset
(
$name
,
$args
);
return
null
;
}
/**
*
*/
private
function
__construct
()
{}
}
ETH_Simple_Shortlinks
::
get_instance
();
This diff is collapsed.
Click to expand it.
readme.txt
0 → 100644
+
0
−
0
View file @
677588e3
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment